Manual thresholding cropping [image processing]

조회 수: 2 (최근 30일)
Esther
Esther 2012년 11월 8일
Hi. May i know if manual thresholding allows autocropping? where i set T a value, bw = im2bw(J,T);
because usually auto thresholding was done with autocropping. but i was told me to set a value for my image instead of using graythresh.

답변 (1개)

Image Analyst
Image Analyst 2012년 11월 8일
Cropping and thresholding are two totally separate and independent operations. One operation does not need, depend on, allow, or enable the other operation at all. I would not say that autothresholding is usually done with autocropping - not in general, though it may be in some specific situation you maybe referring to, like your co-worker's program. You can use graythresh() if you want to determine a threshold value, though in my experience it seldom selects the best threshold. It seems to work best for high contrast situations where foreground and background are well separated in the histogram (i.e., they have vastly different intensities).
  댓글 수: 4
Esther
Esther 2012년 11월 8일
편집: Esther 2012년 11월 8일
i didn't use imcrop(). but i use method by getting the outmost object border coordinates to crop it out.
Image Analyst
Image Analyst 2012년 11월 8일
You mean like
submatrix = fullMatrix(row1:row2, col1:col2);
? What about this threw an exception?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by