Filter löschen
Filter löschen

superimpose extremas of region on image

4 Ansichten (letzte 30 Tage)
tala
tala am 28 Apr. 2017
Bearbeitet: Image Analyst am 28 Apr. 2017
hello everyone im a beginner in matlab. could anybody help me please: i have found the extremas of a region wich comes frome extrema property of 'regionprops'command. this 'extrema' matrix is a 8-by-2 matrix. now, i want to show this 8 points on my original image. could anybody help me how can i do this?
s=regionprops(im6,'all'); Extremas=cat(1,s.Extrema);

Akzeptierte Antwort

Image Analyst
Image Analyst am 28 Apr. 2017
Why not try plot()?
  2 Kommentare
tala
tala am 28 Apr. 2017
Bearbeitet: Image Analyst am 28 Apr. 2017
thanks for your attention
areas=cat(1,s.Area);
[~,ind]=max(areas);
Extremas=cat(1,s.Extrema);
% figure;imshow(img)
% hold on
% plot(Extremas(ind),Extremas(ind), 'b*')
% hold off
I have written this but it doesn't show anything.
Image Analyst
Image Analyst am 28 Apr. 2017
Bearbeitet: Image Analyst am 28 Apr. 2017
Try removing the % at the beginning of the line to uncomment them. And then getting x and y coordinates from s.Extrema.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type 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!

Translated by