이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
Performs LOCAL Otsu thresholding on an image; user can specify blocksize. Facilitates the threshold-segmentation of images with uneven illumination, without the need for background normalization.
SYNTAX: B = thresholdLocally(A,blksz,varargin)
THRESHOLDLOCALLY processes an image, calling graythresh on LOCAL blocks in an image. This facilitates easy thresholding of images with uneven background illumination, for which global thresholding is inadequate. Uses the Image Processing Toolbox function BLOCKPROC (R2009b).
INPUTS:
A: Any image (or path/name of an image) suitable for processing with im2bw()
BLKSZ: (Optional) Block size of A, for determination of Otsu thresholding using graythresh(). In the form or [M,N]. Default is as determined by BESTBLK.
OPTIONAL:
1) Any P-V pair accepted by BLOCKPROC.
2) FudgeFactor: a scalar value by which to multiply the local value returned by graythresh.
OUTPUT:
B: Output image
EXAMPLE:
img = imread('rice.png');
thresholded = thresholdLocally(img);
인용 양식
Brett Shoelson (2026). ThresholdLocally (https://kr.mathworks.com/matlabcentral/fileexchange/29764-thresholdlocally), MATLAB Central File Exchange. 검색 날짜: .
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.4.0.1 | Updated license |
||
| 1.4.0.0 | Minor change to replace default blocksize of [32 32] by that returned by function BESTBLK. |
||
| 1.3.0.0 | Fixed problem with screenshot. (Image was inappropriately rotated.) |
||
| 1.2.0.0 | Modified significantly to accept as optional inputs all parameter-value pairs accepted by BLOCKPROC, as well as an additional "fudge factor" parameter that allows one to scale the local graythresh value by a scalar multiple. |
||
| 1.0.0.0 |
