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

조회 수: 7 (최근 30일)
Tahira Batool
Tahira Batool 2017년 5월 6일
답변: Sara 2020년 11월 16일
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 ?

답변 (2개)

LO
LO 2020년 11월 14일
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
Sara 2020년 11월 16일
Hi,
Try imregionalmax
or imtool

카테고리

Help CenterFile Exchange에서 Explore and Edit Images with Image Viewer App에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by