#include #include #include #include using namespace std; using namespace cv; int main() { Mat cow_binary = imread("cow_binary.bmp", IMREAD_GRAYSCALE); Mat castle_grayScale = imread("castle_original.jpg", IMREAD_GRAYSCALE); Mat book_grayScale = imread("book_original.jpg", IMREAD_GRAYSCALE); Mat eroded, dilated, opened, closed; Mat gradient, black_top_hat; Mat structuringElement_5x5 = Mat(5, 5, CV..
#include #include #include #include using namespace std; using namespace cv; Mat adaptiveThresholding(Mat &image, int inputThreshold = 10) { Mat result = image.clone(); // compute integral image Mat integralImage; integral(image, integralImage, CV_32S); int blockSize = 21; // size of the neighborhood int threshold = 10;// pixel will be compared to (mean - threshold) // for each row int halfSize ..
#include #include #include #include using namespace std; using namespace cv; class ColorHistogram { private: int histSize[3]; // size of each dimension float hranges[2]; // range of values (same for the 3 dimensions) const float* ranges[3]; // array of ranges for each dimension int channels[3]; // channel to be considered public: ColorHistogram() { // Prepare default arguments for a color histog..
- Total
- Today
- Yesterday
- canny
- pyrDown
- top hat
- laplacian of gaussian
- mean filter
- canny operator
- bilateral filter
- gradient
- median filter
- hough transform
- OpenCV
- black top hat
- Line Detection
- upsampling
- morphological operation
- morphology
- pyrUp
- adaptive thresholding
- Sobel
- Low pass filter
- dilation
- difference of gaussian
- Filter
- high pass filter
- direction detection
- segmentation
- equalizing
- 캐니 엣지
- 영상처리
- erosion
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |