Download WINDOWS IMAGE MANAGER USER`S MANUAL
Transcript
Segmentation 6.9 disconnected pixels. It is the same routine as Edge - Edge Clean that is simply duplicated here for the convenience of the segmentation user. Connect Allows to connect disconnected edge pixels. It uses an image of edge pixels and looks for loose ends among edges (edge pixels are different from zero and non-edge pixels are zero). It then reads tries to continue the loose ends along the gradient image (actually, perpendicularly to gradients). You therefore need to have the edge (gradient) direction image as well in memory (it was produced during edge finding (Edge Find). Prompts for the maximal number of pixels that will be traced in both directions along the assumed edge direction. If another edge pixel is found, the intermediate pixels are converted to new edge pixels (value 128, different from the original edge pixels = 255). If image border or is reached, or the maximum number of gaps traced has been reached without reaching another edge - nothing is converted. Quite often this routine does not produce acceptable results as the gradients may be followed in parallel to another edge. You can then try Dilate and Thin Line operations from the Edge menu section, or may wish to skip this operation at all. Distance From an edge image creates a new image of distances to the nearest edge pixel using a method called chamfering (Borgefors, 1983). It includes thresholding where you can specify the threshold level between edge and not edge pixels. Normally edge pixels are set at 255 and not edge pixels at 0. If the distances get larger than 255, the routine has to scale them in order to be able to store the values in an 8-bit image. The distances are transformed by taking square root of them, and then scaled from 0 to 255. Kernel Find Finds local maxima, i.e. kernels for segmentation, and the gradient directions. Makes 2 new images - the kernel and the gradient direction image. The gradient direction image is later used for connecting adjacent kernels as well as for growing the kernels and tracing the pixels to kernels. The gradient direction is coded as following: 1 - right, 2 - up-right, 3 - up, 4 up-left, 5 - left, 6 - down-left, 7 - down, 8 - down-right (the direction points to the higher side). Kernel Combine Is used to combine closely located kernels (maxima) into the same class (segment). This routine uses the kernel images from the previous operation and the distance image to the nearest edge (Edge Distance). It tries to connect only kernels for which to sum of separation in rows and columns is less than 100. The criterion for linking two maxima m1 and m2 is: dist(m1, m2) < (dt(m1) + dt(m2)) * a, where dt is the distance transform from the nearest edge (Edge Distance) of the pixel, and a is a coefficient (initially 0.6). The final number of different kernels must be less than 255 (value 0 is WIM User’s Manual 94