Remove ghosts from binarized images

버전 1.1.0.0 (56.9 KB) 작성자: Jan Motl
This method removes speckles in the binarized images.
다운로드 수: 1.2K
업데이트 날짜: 2014/4/1

라이선스 보기

The postprocessing step used in Yanowitz and Bruckstein's binarization method removes "ghost" objects, and can be incorporated into other methods as well. The average gradient value at the edge of each printed object is calculated. Objects having an average gradient below a threshold TP are labeled as misclassified, and are removed. The main steps of the algorithm are given below:
1. Smooth the original image by a (3x3) mean filter to remove noise.
2. Calculate the gradient magnitude image G of the smoothed image, using, e.g., Sobel's edge operator.
3. Select a value for TP.
4. For all 4-connected print components, calculate the average gradient of the edge pixels. Edge pixels are print pixels that are 4-connected to the background. Remove print components having an average edge gradient below the threshold TP.
Reference:
Øivind Due Trier , Torfinn Taxt. Evaluation of Binarization Methods for Document Images (1995). Available at: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.53.4360

인용 양식

Jan Motl (2024). Remove ghosts from binarized images (https://www.mathworks.com/matlabcentral/fileexchange/41786-remove-ghosts-from-binarized-images), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Added example image.

1.0.0.0