본문 바로가기

Image Processing/Image Binarization

(4)
[논문 읽기/2007] Adaptive Thresholding Using the Integral Image link: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.420.7883&rep=rep1&type=pdf 결과 영상: Abstract: adaptive thresholding은 조명에 따른 spatial variation를 고려하는 이진화 기법을 말함. 제안한 방법은 입력 영상에 대해 integral image를 이용한 실시간 적응적 이진화 기법을 제안함. 제안한 방법은 조명 변화에 강건하며, 단순하고 구현이 쉽고 실시간 처리에 적합함. 1. Introduction 고정된 이진화 임계값을 사용하면 비디오 스트림 내에서 조명이 spatial하게 변화하는 경우에 실패하게 됨. 조명 변화를 고려하기 위한 일반적인 솔루션은 adaptive threshold..
[구현(c)/no ref.]Hysteresis Thresholding link: No #define LOW_THRESHOLD_INTENSITY63 #define HIGH_THRESHOLD_INTENSITY127 void RunHysteresisThresholding(unsigned char* input, unsigned char* output, int imageWidth, int imageHeight) { int low = LOW_THRESHOLD_INTENSITY; int high = HIGH_THRESHOLD_INTENSITY; register int i, j; for(i=0; i0) { return 0; } if(i>0 && target[(i-1)*imageWidth+j]>0) { return 1; } if(i>0 && j>0 && target[(i-1)*imageW..
[구현(c)/1979] A threshold selection method from gray level histograms Link: https://ieeexplore.ieee.org/document/4310076 #define OBJECT255 #define BACKGROUND0 void RunOtsu(unsigned char* srcImage, unsigned char* binaryImage, int imageWidth, int imageHeight) { int findedThreshold = FindThresholdBasedOnGrayLevelHistogram(srcImage, imageWidth, imageHeight); RunFixedThresholding(srcImage, binaryImage, imageWidth, imageHeight, findedThreshold); } int FindThresholdBased..
[구현(c)/2008] Efficient Implementation of Local Adaptive Thresholding Techniques Using Integral Images link: https://staffhome.ecm.uwa.edu.au/~00082689/papers/Shafait-efficient-binarization-SPIE08.pdf #define OBJECT255 #define BACKGROUND0 #define SAUVOLA_WINDOW_SIZE31 #define SAUVOLA_K_VAL0.85f #define SAUVOLA_R_VAL128 #define FIND_MAX(a,b)(((a) > (b)) ? (a) : (b)) #define FIND_MIN(a,b)(((a) < (b)) ? (a) : (b)) #define MAKE_INTEGRAL_IMAGE(x, y)(integralImage[(y)*imageWidth+(x)]) #define MAKE_INTE..