# finding x and y coordinates of the image and spline fit

조회 수: 2 (최근 30일)
Natalja 2013년 6월 25일
I have binary image 'sceleton.tif' (black line and white background) How can I find x and y coordinates for pixels to make spline fit of the image?

댓글을 달려면 로그인하십시오.

### 답변 (3개)

Nitin 2013년 6월 26일
편집: Nitin 2013년 6월 26일
if your boundary is black on the binary image, you can try the following:
[a,b]= find(Im==0);
##### 댓글 수: 0이전 댓글 -2개 표시이전 댓글 -2개 숨기기

댓글을 달려면 로그인하십시오.

Image Analyst 2013년 6월 26일
What do you mean by spline fit? Spline fit of what? The skeleton is continuous so there's nothing to interpolate, unless for some reason you want sub pixel resolution but that wouldn't make sense since the skeletonization was done with pixel resolution.
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Natalja 2013년 6월 26일
You are right I have continuous pixel line and in my case I would like to have homogenous line (no pixel to pixel jumps) I am not sure if reducing pixel size will help.

댓글을 달려면 로그인하십시오.

Leah 2013년 6월 26일
편집: Leah 2013년 6월 26일
You have to define the coordinate system then decide which points you want to use for interpolation. Why are you after an equation as opposed to just the (x,y) coordinates?
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Natalja 2013년 6월 26일
Yes, I am after (x,y) coordinates. My goal at the end is to divide the skeleton line with many short perpendicular lines. It is a big challenge for me, cause I have never worked on MatLab before.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Splines에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by