Plot binary image with all coordinates of points
이전 댓글 표시
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
KSSV
2017년 10월 12일
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
2017년 10월 12일
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!