Clear Filters
Clear Filters

Plotting Euclidean distance versus Boundary Pixel Index

1 view (last 30 days)
Hello,
It says, to find the Euclidean distance of all the boundary pixels with respect to the starting reference point which I have already done.
However, when plotting the distance(y axis) versus index of boundary pixels(x axis), I am not getting the graph as it should be in the paper. Picture (g) on the top is the expected graph to be obtained and at the bottom is the graph which I have got.
<<imageshack-us-a-img849-1584-f7v-png.n>>
<<imageshack-us-a-img560-5245-dony-png.n>>
The index of the pixels is obtained by using the line of code below.
pixelvalue = img_resize(sub2ind(size(img_resize), Col1, Col2))
where img_resize is the resize shape of the original image; Col1 and Col2 are the row and column of the boundary pixel (x and y coordinate).
I will be grateful if someone could guide me where I went wrong or what I need to do.
Thank You.
  1 Comment
Shirah
Shirah on 27 Jun 2013
Hi again,
According to my research on other published papers, picture (g) is known as a curvegram. However, there is not much info about the curvegram on the net.
So how do I go about plotting the curvegram of Euclidean distance versus index of boundary pixels in matlab. Thank You.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!