i want to mark the highest point of any non-black pixel within the image to find the max point.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nurul Najmah
am 26 Apr. 2015
Beantwortet: jimmy
am 2 Jan. 2020
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.
>>
0 Kommentare
Akzeptierte Antwort
Mohammad Abouali
am 26 Apr. 2015
Bearbeitet: Mohammad Abouali
am 26 Apr. 2015
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 Kommentare
Image Analyst
am 27 Apr. 2015
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.
Weitere Antworten (1)
jimmy
am 2 Jan. 2020
i want to ask how i can sect the column which have maximum number of black pixel
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!