[OpenCV] binarization 2진화
int threshold=128;const static int ThresholdType[]={CV_THRESH_BINARY,CV_THRESH_BINARY_INV,CV_THRESH_TRUNC,CV_THRESH_TOZERO,CV_THRESH_TOZERO_INV}; int ThresholdTypeSize=sizeof(ThresholdType)/sizeof(int);IplImage* imgGray = cvCreateImage( cvGetSize(imgIn), IPL_DEPTH_8U, 1);IplImage* imgBinary = cvCreateImage( cvGetSize(imgIn), IPL_DEPTH_8U, 1); cvCvtColor(imgIn, imgGray, CV_RGB2GRAY);cvThreshold(i..
2012. 11. 17.