Image processing includes a wide range of tactics including edge detection. Among many things, edge detection enables computer to detect shapes and patterns and is used in shape recognition. The human mind is capable of differentiating shapes by drawing inferences about distance, direction, volume, and area consequently allowing humans to be able to “guess” the shape by summarizing the information in which they observe. Computers, on the other hand, have to be programmed to be able to “see” the way a human can. Shape recognition is used for games, biomedical and investigative applications, art and design software, and robotics. It is found on radar systems, surveillance and forensics, and is used to create robots more human-like. (Levine, 1985) Image processing is implemented in machine vision, which is a process by which a computer-driven device optically senses external objects. From the analysis of the sensed data, the device infers information about objects it senses or “sees”. The device is usually a type of camera connected to a computer that digitizes the images and then analyzes them. Machine vision is used for small tasks such as checking size and shape for automobiles, x-rays, photographs, chromosome slides, and cancer smears. ("Machine Vision", 1991)
For this project, an image is imported and processed through a computer. The computer uses image processing, manipulating data in the form of an image, in order for the computer to “read” or interpret the image. An image is usually interpreted as a two-dimensional array of numbers, which resemble the image’s brightness values. Each point, or pixel, has a number according to the color that is shows. A pixel is a number that represents the brightness value of the image at a particular location. (See Appendix) Another important aspect of this project is noise, which is the independent variable. Image noise is the random variation of brightness or color in images creating the image to look fuzzy and grainy. It affects the pattern recognition by making it more difficult for the program to decipher the edges because of the random brightness values. (Sean, 2010) To create noise, a random number is generated from -1 to +1. This generated number is then multiplied by 256, which is the largest color value and represents the blackest black, because the color value should be a double between -256 and +256. This number is then multiplied by the desired percentage change and is added to the original value of the pixel. . (Smith, 2008) For example: if the original color were 100, the generated number came out 0.5293719173, and you wanted to change the pixel by 25%, 33.8798028 would be added to 100 to change the value.
When the image is finished processing, edge detection is used. Edge detection is the process when a computer detects a change in brightness representing the edges in an image or of a particular shape. The edge detection in the experiment uses derivatives to find the edges. A derivative is the slope at a single point. To find all of these, a simple algorithm is written to scan the image horizontal and vertical finding the slope between every point that lay next to each other. To find the efficiency of the algorithm, the signal to noise ratio is calculated. The signal to noise ratio is the contrast between the signal, which is what is being measured without variation, to the undesired signal known as the noise. More noise in the image results in a lower signal to noise ratio, correspondingly, less noise results in a higher signal to noise ratio. (TopBits.com, 2010)
The purpose of this experiment is to find out how random noise in image pixels affects the efficiency of an edge detection algorithm. The independent variable is the noise level on the image; the dependent variable is the efficiency of the algorithm. The efficiency is calculated by the signal to noise ratio. The hypothesis reads that if the amount of noise increases, the efficiency of the algorithm will decrease because it will not be able to detect the shape due to the high and low derivative becoming closer.
No comments:
Post a Comment