Puupintojen Laadunvalvonta Ja Luokittelu
Total Page:16
File Type:pdf, Size:1020Kb
Image thresholding During the thresholding process, individual pixels in an image are marked as “object” pixels if their value is greater than some threshold value (assuming an object to be brighter than the background) and as “background” pixels otherwise. This convention is known as threshold above. Variants include threshold below, which is opposite of threshold above; threshold inside, where a pixel is labeled "object" if its value is between two thresholds; and threshold outside, which is the opposite of threshold inside (Shapiro, et al. 2001:83). Typically, an object pixel is given a value of “1” while a background pixel is given a value of “0.” Finally, a binary image is created by coloring each pixel white or black, depending on a pixel's label. Image thresholding Sezgin and Sankur (2004) categorize thresholding methods into the following six groups based on the information the algorithm manipulates (Sezgin et al., 2004): • histogram shape-based methods, where, for example, the peaks, valleys and curvatures of the smoothed histogram are analyzed • clustering-based methods, where the gray-level samples are clustered in two parts as background and foreground (object), or alternately are modeled as a mixture of two Gaussians • entropy-based methods result in algorithms that use the entropy of the foreground and background regions, the cross-entropy between the original and binarized image, etc. • object attribute-based methods search a measure of similarity between the gray-level and the binarized images, such as fuzzy shape similarity, edge coincidence, etc. • spatial methods [that] use higher-order probability distribution and/or correlation between pixels • local methods adapt the threshold value on each pixel to the local image characteristics." Mathematical morphology • Mathematical Morphology was born in 1964 from the collaborative work of Georges Matheron and Jean Serra, at the École des Mines de Paris, France. • • Matheron supervised the PhD thesis of Serra, devoted to the quantification of mineral characteristics from thin cross sections, and this work resulted in a novel practical approach, as well as theoretical advancements in integral geometry and topology. • In 1968, the Centre de Morphologie Mathématique was founded by the École des Mines de Paris in Fontainebleau, France, lead by Matheron and Serra. • During the rest of the 1960's and most of the 1970's, MM dealt essentially with binary images, treated as sets, and generated a large number of binary operators and techniques: Hit-or-miss transform, dilation, erosion, opening, closing, granulometry, thinning, skeletonization, ultimate erosion, conditional bisector, and others. • A random approach was also developed, based on novel image models. Most of the work in that period was developed in Fontainebleau. • The name ‘Mathematical Morphology’ for the new discipline was coined in a pub. • From mid-1970's to mid-1980's, MM was generalized to grayscale functions and images as well. • Besides extending the main concepts (such as dilation, erosion, etc...) to functions, this generalization yielded new operators, such as morphological gradients, top-hat transform and the Watershed (MM's main segmentation approach). • In the 1980's and 1990's, MM gained a wider recognition, as research centers in several countries began to adopt and investigate the method. • MM started to be applied to a large number of imaging problems and applications. • In 1986, Jean Serra further generalized MM, this time to a theoretical framework based on complete lattices. • This generalization brought flexibility to the theory, enabling its application to a much larger number of structures, including color images, video, graphs, meshes, etc... • At the same time, Matheron and Serra also formulated a theory for morphological filtering, based on the new lattice framework. • The 1990's and 2000's also saw further theoretical advancements, including the concepts of connections and levelings. Vecooo Linooo Rhombus Square Circle When the structuring element B has a center (e.g., B is a disk or a square), and this center is located on the origin of E, then the erosion of A by B can be understood as the locus of points reached by the center of B when B moves inside A. Erosion and dilation in Matlab The erosion of the dark-blue square by a disk, resulting in the light-blue square. Dilation Alternative way to "see it" Opening Opening Alternative way to "see it" Closing The End.