i want to mark the highest point of any non-black pixel within the image to find the max point.
2 ビュー (過去 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.
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149492/image.png)
the last of my output will be like this.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149494/image.png)
>>
0 件のコメント
採用された回答
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
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
2020 年 1 月 2 日
i want to ask how i can sect the column which have maximum number of black pixel
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!