The present invention relates to the field of digital photography. In particular the present invention discloses a system for digital image processing.
With improved technology and sharply reduced digital camera pricing, digital photography is rapidly replacing traditional film photography. With digital photography, there is no waiting for photographic film to be processed. Instead, most digital cameras allow the photographer to instantly review the digitally captured images. With this ability, the photographer may take another shot if he or she is not satisfied with the first digital images.
Digital photography has given amateur digital photographers new avenues of image distribution. Amateur digital photographs can easily be published on the world-wide web (WWW) to allow anyone on the Internet to view the digital photographs. Internet users can also email digital photographs as attachments or embedded within HTML formatted email messages.
One of the most powerful aspects of digital photography is ability to perform digital image manipulation. Digital image manipulation programs can be used to manipulate digital photographs in order to correct flaws, modify colors, etc. However, the potential of digital image manipulation by amateurs remains largely unrealized. The only image manipulation used by most amateur digital photographers is the rotation of digital images to correct the orientation of the image. Digital image manipulation largely remains the domain of experts since quality image manipulation software is often too expensive for the amateur photographer and too difficult to use for the casual user.
To better realize the great potential of amateur digital photography, it would be very desirable to have improved digital image manipulation tools that are available for amateur digital photography enthusiasts. These digital image manipulation tools should be highly intuitive yet provide powerful features for manipulating digital images.
To better realize the great potential of amateur digital photography, the present invention introduces an intuitive system for digital manipulation. The system of the present invention allows a user to simply fix small blemishes in digital images. In one embodiment, the user merely places a cursor on the image blemish and activates a cursor control device such as a mouse button.
In one embodiment, the blemish repair system is implemented using one of Dirichlet's theorems. The theorem provides a method of creating a smooth surface within a circle by using the values of points around the circle. To prevent the result from appearing too smooth, some pixelization may be added.
Other objects, features, and advantages of present invention will be apparent from the company drawings and from the following detailed description.
The objects, features, and advantages of the present invention will be apparent to one skilled in the art in view of the following detailed description in which:
a illustrates one embodiment of an example graphical user interface for the blemish removal system of the present invention.
b illustrates the graphical user interface embodiment of
c illustrates the graphical user interface embodiment of
d illustrates a flow diagram of one embodiment of the present invention.
a illustrates an imaginary number plotted on a Cartesian coordinate system with the real number portion on the x-axis and the imaginary portion on the y-axis.
b illustrates a vector subtraction of a vector to a point in the unit circle from a vector to a point on the unit circle.
c illustrates a method of determining the magnitude of the difference vector of
A method and apparatus for the digital manipulation of images to removal blemishes is disclosed. In the following description, for purposes of explanation, specific nomenclature is set forth to provide a thorough understanding of the present invention. However, it will be apparent to one skilled in the art that these specific details are not required in order to practice the present invention. For example, the present invention has been described with reference to one of Dirichelt's Theorems. However, the system of the present invention may use other types of function interpolation methods.
Digital photography is rapidly replacing traditional film photography. One of the most powerful aspects of digital photography is ability to perform image manipulation upon captured digital images. Digital image manipulation programs can be used to manipulate digital photographs in order to correct image flaws, modify image colors, and perform other image corrections. Most image manipulation can be performed on a typical personal computer system such as the iMac personal computers from Apple Computer, Inc. of Cupertino, Calif.
Image Processing Computer System
The image manipulation system 125 of the present invention resides in the memory 120 of computer system 100 as a set of computer instructions. The image manipulation system may also reside as a program on a fixed media device 181 such as Compact Disc Read-Only-Memory (CD-ROM) or Digital Versatile Disc Read-Only-Memory (DVD-ROM). The fixed media device is used with an associated fixed media drive 180 such as a CD-ROM drive or DVD-ROM drive, respectively. Alternatively, the image manipulation system 125 may be downloaded from across a network such as the global Internet 199 accessible through network interface 191.
The first task of the image blemish removal system of the present invention is to acquire digital images to process. Referring to
To acquire images, the system of the present invention may include driver software necessary to automatically identify and interoperate with several different types of digital cameras that may be coupled to the host computer system. For example,
The system can also acquire images in a number of other manners. For example, film photographs may be placed onto a floppy disc (not shown) or onto a fixed media device 181 by a film developer at the request of the film photographer. Such photos may be acquire by image manipulation system 125 by having the user place the floppy disc (not shown) or the fixed media device 181 into the appropriate drive such as floppy disc drive (not show) or the fixed media drive 180.
Digital images may also be obtained through a computer network interface 191 of computer system 100. For example, a user may obtain digital images from a World Wide Web (WWW) site on the global Internet 199. Digital images may also be obtained using a digital scanner (not shown) coupled to computer system 100 as is well known in the art.
To repair a blemish in a digital image, some embodiments provide a method illustrated in
Image Blemishes
Captured digital images do not always appear the way we would like the digital images to appear. For example, acne appearing at an inopportune time can mar the digital image captured of a teen-ager on his Senior Prom. An airplane in the corner sky may disturb any otherwise perfect digital image of a beautiful sunset in a nature setting. A particle of dust on the Charge Coupled Device (CCD) sensor of a digital camera, or on its lens, may result in a black spot on every image. Such small undesirable flaws in a digital image are referred to as ‘blemishes.’
Film photographs tend to be even more susceptible to having image blemishes. The source film may become scratched causing a white line or white dot to appear on a photograph. Hair or dust may be present on a film lens or during the scan of a traditional film-based photograph used to bring the photograph into the digital domain. These blemishes distract the viewer from completely enjoying the image.
It would therefore be desirable to provide users with a blemish removal tool for repairing such image blemishes. Ideally, the blemish removal solution should be simple and intuitive such that any computer user could easily use the blemish removal tool.
The present invention introduces a simple and intuitive blemish removal tool that may be used to remove unsightly blemishes from digital images. For example,
b illustrates the graphical user interface embodiment of
In another embodiment, the user is allowed to determine the size of circle 240. However, the blemish removal tool will work best with small circles.
Referring again to
A number of different methods of performing the blemish removal may be used to implement the invention. In one embodiment, one of Dirichiet's Theorems in the imaginary number domain is used to perform blemish removal. The use of the Dirichlet Theorem allows the blemish repair tool to calculate the only unwrinkled surface that fits exactly into the existing photo at the edges of a circle around the blemish point.
The Math
The Dirichlet Theorem in the imaginary number domain used by the present invention is expressed as follows:
where Z is an imaginary number that can be expressed in the form of:
Z=x+yi (3)
Imaginary numbers are commonly plotted on a Cartesian coordinate system with the real number portion on the x-axis and the imaginary portion on the y-axis as illustrated in
|Z|=|x+yi|=√{square root over (x2+y2)} (4)
The Dirichlet Theorem of equation (2) generates a smooth two-dimensional function for all the area enclosed within a unit circle on the real/imaginary plane since:
eiθ=cos θ+i(sin θ) (5)
Equation (2) operates by computing a value for internal pixel (Z) as a function of all the vales of pixels around the unit circle (f (eiθ)). Substituting equations (3), (4), and (5) into equation (2) yields:
The denominator contains the vector subtraction x+yi−cos θ−(sin θ)i which is subtracting the vector of the x+yi position (x, y) being analyzed from the current vector on the unit circle (x0, y0). This vector subtraction is illustrated in
Equation (6) serves as the basis for one embodiment of the blemish removal tool of the present invention.
An Implementation
Every pixel in the circle surrounding the blemish may be fixed by using equation (7) on every pixel within the blemish circle. This may be performed by iterating across a square and fixing every point within the circle in the square as illustrated in
Equation (7) can be implemented with a discrete integral that integrates around a circle of pixels that surround a blemish as conceptually illustrated by
where image buffer contains the image, r1 is the radius of the pixel circle around the blemish, xcenter is the x value of center of the blemish, y is the y value of center of the blemish, and x1 & y1 define the point in the unit circle being fixed.
The blemish removal system described in the previous section will provide a perfectly smooth replacement for the area within the blemish circle. However, a perfectly smooth replacement may appear too perfect. Thus, some pixelization may be created to prevent the repair from appearing unnaturally smooth. The pixelization may be added equally to the red, blue, and green components in order to prevent undesirable color changes.
One embodiment operates by first dividing the blemish border into octants as illustrated by
To further blend the blemish repair into the existing image, the blemish repair tool may generate Gaussian noise, the statistical type found in general in digital photos, to modulate the smoothed surface with the computed Gaussian noise. The modulation with Gaussian noise achieves a pixelization that blends with the existing photo.
The following code segments the circle around the blemish into eight octants, calculates the mean and variance in brightness in each of those segments, sorts them, chooses an appropriate variance level, and generates a matching Gaussian noise:
The above code to cause the pixelization may be combined with the code to perform the pixel repair for a more efficient solution. Specifically, the brightness calculation only needs to be performed once.
The foregoing has described a method and apparatus for the digital manipulation of images to removal blemishes. It is contemplated that changes and modifications may be made by one of ordinary skill in the art, to the materials and arrangements of elements of the present invention without departing from the scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
5229864 | Moronaga et al. | Jul 1993 | A |
6160923 | Lawton et al. | Dec 2000 | A |
6313840 | Bilodeau et al. | Nov 2001 | B1 |
6587592 | Georgiev et al. | Jul 2003 | B2 |
6870954 | Gupta | Mar 2005 | B1 |
7002594 | Yoshida et al. | Feb 2006 | B2 |
20030012452 | Trifonov et al. | Jan 2003 | A1 |