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

3 vues (au cours des 30 derniers jours)
Natalja le 25 Juin 2013
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?
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (3)

Nitin le 26 Juin 2013
Modifié(e) : Nitin le 26 Juin 2013
if your boundary is black on the binary image, you can try the following:
[a,b]= find(Im==0);
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

Image Analyst le 26 Juin 2013
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 commentaireAfficher -1 commentaires plus anciensMasquer -1 commentaires plus anciens
Natalja le 26 Juin 2013
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.

Connectez-vous pour commenter.

Leah le 26 Juin 2013
Modifié(e) : Leah le 26 Juin 2013
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 commentaireAfficher -1 commentaires plus anciensMasquer -1 commentaires plus anciens
Natalja le 26 Juin 2013
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.

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Splines dans Help Center et File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by