Effacer les filtres
Effacer les filtres

How to get pixel index / x,y coordinates of bright regions?

4 vues (au cours des 30 derniers jours)
Tahira Batool
Tahira Batool le 6 Mai 2017
Réponse apportée : Sara le 16 Nov 2020
Hey there ! I have an image and it contains 5 bright regions ,after thresholding I want to get the pixel indices or x,y coordinates of those five regions in 5 different arrays. How this should be done ?

Réponses (2)

LO le 14 Nov 2020
binarize the image, use regionprops,
get the PixelList properties and use bwconncomp to identfy separate objects in the selected pixels corresponding to the different objects.

Sara le 16 Nov 2020
Try imregionalmax
or imtool

Community Treasure Hunt

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

Start Hunting!

Translated by