Plotting Euclidean distance versus Boundary Pixel Index
Show older comments
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.
Answers (0)
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!