Will the white portions(edges) found after canny edge detection be binary value 1? Or on what basis the value of each pixel of edge detected image be 1 or 0 ?

1 view (last 30 days)
I have done the edge detection using canny edge detector. Then i need to plot each edges in the image. So when do it , the plotting is not done accurately , that is its plotting on the regions where no white indications or edges... thanks in advance.....

Answers (1)

Image Analyst
Image Analyst on 23 Nov 2012
Type
whos(edgeImage);
to find out the class of the output image. The help says "BW = edge(I) takes a grayscale or a binary image I as its input, and returns a binary image BW of the same size as I, with 1's where the function finds edges in I and 0's elsewhere." so I expect it to be an image of class " logical."

Community Treasure Hunt

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

Start Hunting!