pixel values of an edge image (canny algorithm)

Hi

I simply wish to know what does the EdgeImage pixels getting calling "getEdgeImage()" method in the Canny algorithm founded in this forum, mean.

I print the values for each pixel in this way:

cannyObj.process();

Image edgeImg = cannyObj.getEdgeImage();

...........

pixels = cannyObj.image2pixels(edgeImg);

iw = edgeImg.getWidth(null);

ih = edgeImg.getHeight(null);

System.out.println(" EDGE IMAGE PIXELS");

for (int i = 0; i<iw*ih ; i++)

System.out.println(pixels><i>);

(I've substiuted quad parenthesis with angular one due to problems with html code of this post )

obtaining an array filled with values equals to 255 or 0, and nothing else.

Can anyone tell me what do these array values mean?

To implement my algorithm (dual active contours for shape extraction) I need to find a high gradient value........

thanks very very much in advance, to anyone who will help me!!

(please, help me :p)

[1025 byte] By [shilkiea] at [2007-11-26 17:46:52]
# 1

if 0 indicates a black pixel, and 255 a white one,

the canny edge detector algorithm posted in http://forum.java.sun.com/thread.jspa?threadID=546211&tstart=0

doesn't return a grey-scaled image, but only black-and-white image? (of course we're talking about an original coloured image)

if it's so how can i obtain a grey-scaled image in which a certain pixel value indicates an edge?

shilkiea at 2007-7-9 4:59:09 > top of Java-index,Security,Cryptography...
# 2
maybe it's better if I reformulate my question:"How can I obtain a measure of how close I am to one of my edges, starting from a canny edge image?"(where the Canny edge Image has been obtained applying the canny edge algorithm leandrotrevisan published in this forum)
shilkiea at 2007-7-9 4:59:09 > top of Java-index,Security,Cryptography...