How do to comparatively analyze 2 points of an image to distinguish them
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
I need to come up with a way to comparatively analyze 2 points to show that they are different (i.e. one box is lighter and one box is brighter or some other way to distinguish two points).
I thought about summing the matrix it creates but I don't think this is the best way.
Any suggestions?
댓글 수: 0
답변 (2개)
Chad Greene
2014년 5월 28일
0 개 추천
Can you convert the image to grayscale see which point has a higher value?
댓글 수: 0
Image Analyst
2014년 5월 28일
row1 = hem_ul(2); % y
row2 = hem_ll(2);
col1 = hem_ul(1); % x
col2 = hem_ur(1);
meanValue = mean2(yourImage(row1:row2, col1:col2));
댓글 수: 1
Image Analyst
2014년 5월 29일
For anyone wondering, those hem_** values came from your m-file, which you have since removed.
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!