#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
- Sobel
- laplacian of gaussian
- median filter
- hough transform
- 영상처리
- Low pass filter
- high pass filter
- pyrDown
- bilateral filter
- gradient
- morphological operation
- 캐니 엣지
- canny
- equalizing
- erosion
- adaptive thresholding
- morphology
- mean filter
- top hat
- black top hat
- canny operator
- OpenCV
- segmentation
- upsampling
- direction detection
- dilation
- pyrUp
- Line Detection
- Filter
- difference of gaussian
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |