필터 지우기
필터 지우기

How do I calculate the mean, maximum, minimum and std of the detected region of an image?

조회 수: 1 (최근 30일)
detected region in binary image
  댓글 수: 2
vaishali
vaishali 2013년 9월 7일
편집: Walter Roberson 2013년 9월 11일
columnwise processed used function:
[xmax,imax,xmin,imin] = extrema(BW(:,i));
obtain Result:
[],[],[],[]
Randy Souza
Randy Souza 2013년 9월 24일
I have changed the question and description back to the original values.

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

답변 (1개)

Image Analyst
Image Analyst 2013년 9월 7일
Assuming img is your gray scale image, and BW is a binary image specifying the "detected region":
meanValue = mean(img(BW));
minValue = min(img(BW));
maxValue = max(img(BW));
stdDev = std(img(BW));
Those values refer to the values in your gray scale image, not the binary image.
  댓글 수: 3
Image Analyst
Image Analyst 2013년 9월 8일
편집: Image Analyst 2013년 9월 8일
My answer is very confusing now because you removed the edited the original subject and body so that it's now a totally different question. I'd recommend not doing that again. It would have been better to just add a followup question here or start a totally new discussion.
You're not using active contours and I don't even know what your loop is now trying to do. Are you trying to find the first and last place on each line where the binary image is true (1)? Or the distance between them?
Image Analyst
Image Analyst 2013년 9월 8일
That didn't answer my questions. I just sort of asked one of me. Do you still need help? If so, please state more clearly what you're after.

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

Community Treasure Hunt

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

Start Hunting!

Translated by