Class EdgeMenu

Class EdgeMenu

This class lets the user to extract edges from the image in the image panel. There are two methods used to do this. One is Sobel method and the other is Roberts. In Sobel method we compute the gradient of the pixel values along x and y direction in a 3 by 3 window in order to detect horizontal and vertical edges. We have large gradient where we expect to see an edge. Each pixel has an x and y component and we can compute the magnitude of the edge as the combination of them. We can also compute the the edge oriention using these components. In the tools menu under the "Edge" user can choose to see either only the magnitude of the edge as a single band image or the two band image where one of the band is magnitude and the other one is the orientation. The second method is Roberts method which is similiar to Sobel but it uses a 2 by 2 window to compute the gradient. An example of using this tool is shown below.

The result of using Sobel Magnitude or Roberts is a single band image with the magnitude of the edge.High values(white) means there are edges and low values correspond to no edge.