bhanditz / binaryimageanalyzer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kehongyou/binaryimageanalyzer
This MATLAB script will read an existing image and convert it into a gray level image. An equivalence tree structure is created to keep track of labels for each component label. Upon the first pass of the image, the script will give a label (number) to each pixel based on its neighbor’s pixel value. The second pass will use the equivalence tree to match connected components and give them the same label value. Once fully labeled, a random number generator is used for RGB values to give each component its own unique color and will display the new image. The next part of the script will calculate and display the area, position, perimeter, angle, and elongation of each component.