Plot binary image with all coordinates of points
Mostrar comentarios más antiguos
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 comentarios
KSSV
el 12 de Oct. de 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
el 12 de Oct. de 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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Lighting, Transparency, and Shading en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!