Plot binary image with all coordinates of points
Ältere Kommentare anzeigen
I have a matrix with 2 rows:
First is x-coordinate
Second is y-coordinate
How can i plot a binary image with all coordinates of points in that matrix
3 Kommentare
KSSV
am 12 Okt. 2017
What data you have as pixel or z data?
Actually, I plot a contour from a blood sample and receive a contour matrix. So, my coordinates don't have natural spacing; I want to count cell by counting closed loop in contour image. Is there any way to do so?
Walter Roberson
am 12 Okt. 2017
I would recommend a different approach for that.
- quantize the readings according to the contour levels you want.
- replace each array entry by the bin number of the quantized level
- now use regionprops to figure out all of the distinct regions. If you only need to know how many there are, then ask for any simple property, but then look at the size of the returned structure to see how many regions there were.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!