90 likes | 231 Views
ECE 533. Greg Yoblin & Joseph Marino. Blemish Removal Using Edge Detection and Gaussian Smoothening. What is this about?. Many photographs that are taken (portraits) have blemishes that people wish to remove.
E N D
ECE 533 Greg Yoblin & Joseph Marino Blemish Removal Using Edge Detection and Gaussian Smoothening
What is this about? • Many photographs that are taken (portraits) have blemishes that people wish to remove. • There are programs that allow for the removal of these blemishes, however the methods are tedious and very manual. Transformation done with our program
What we have Added • The first major difference between our program and existing programs is that our program can be run on regions to remove multiple blemishes at once (Avoids the “eraser”-like methodologies from Photoshop, etc) • Designed to work on color and BW images. • Produces “ideal” filling information based on surrounding area to leave a minimal demarcation in the image to indicate removals • An automated blemish removal process that will scan the image and determine what things to remove on its own (future)
How Does it Work? • Contrast Stretching • Perform Canny Edge detection on selected region (produces binary image) • Flood fill background to isolate “blemishes” (similar to watersheding) • Invert the binary Blemish-Mask and AND it with the original region • Fill in newly removed areas with the average background value from the region • Perform a simple (size adaptive) Gaussian Blurring on the region • Replace the region in the original image without blemishes
What is Canny? • Smoothen the Image with a Gaussian Mask. • Calculate Gradients using a vertical Sobel Mask, and a horizontal Sobel Mask. Sum the values to get the final gradient. • Calculate Edge Direction using • Determine the maximum value perpendicular to the direction of the gradient. • Apply a hysteresis to eliminate edges that fall below the low, include those that are higher than the high, and decide about the ones in the middle.
How Does Removal Work? Blemishes Removed