MATLAB: Calculate center point of curve created using improfile()

Image Processing Toolboximprofile

hi I have created the intensity curve using improfile() matlab function on y-axis i got intensities and on x-axis i got distance along the profile How can i get the center point of the distance along the profile, i have the intensity values.
Thanks

Best Answer

Use all output arguments of improfile
[cx,cy,c,xi,yi] = improfile
center=(xi+yi)/2
Related Question