hii.. Is it possible to get the coordinates of all the points in a line drawn through plot function in an image?
이전 댓글 표시
I have two coordinates say (150,200) and (53,250) in an image. I have drawn a line connecting these two points using plot function. Now I want to find all the coordinates on which the line is drawn.
답변 (1개)
Matt Fig
2012년 11월 15일
Aren't there an infinite number of coordinates? Just look at the equation for a line:
y = m*x + b;
So if you have a segment then x will be on [A,B]. But since x is on R, the line passes through an infinite number of coordinates, given by
(x,m*x+b) for x on [A,B]
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!