i want to mark the highest point of any non-black pixel within the image to find the max point.

조회 수: 1 (최근 30일)
here is my image. I had ask before at https://www.mathworks.com/matlabcentral/answers/213198-i-want-to-mark-only-the-highest-middle-point-of-binary-image-but-it-show-the-min-point-too but i might ask in not clear question.
<<
the last of my output will be like this.
>>

채택된 답변

Mohammad Abouali
Mohammad Abouali 2015년 4월 26일
편집: Mohammad Abouali 2015년 4월 26일
row=find(sum(BWImage,2)==0,1,'last')+1;
col=find(BWImage(row,:)~=0);
row=row*ones(size(col));
Points=[row(:) col(:)];
Points contains the row and column of the point or points at the top.
  댓글 수: 5
Image Analyst
Image Analyst 2015년 4월 27일
As would have the code in your duplicate question. Anyway, please vote for his answer and mark it as Accepted so he can get "reputation points" for it.

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

추가 답변 (1개)

jimmy
jimmy 2020년 1월 2일
i want to ask how i can sect the column which have maximum number of black pixel

카테고리

Help CenterFile Exchange에서 Get Started with Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by