The present invention relates to a digital photographing apparatus, a method of controlling the same, and a recording medium having recorded thereon a program for executing the method, and more particularly, to a digital photographing apparatus in which user convenience is maximized when a subject is photographed while varying a distance between the subject and the digital photographing apparatus, a method of controlling the same, and a recording medium having recorded thereon a program for executing the method.
Generally, digital photographing apparatuses obtain data from light that is incident on an image capturing device and store the obtained data in a storage medium or display an image on a display unit. Digital photographing apparatuses focus on a certain subject from among subjects to be photographed and then obtain image data from light that is incident on the image capturing device.
Conventional digital photographing apparatuses have an automatic focus-on function. Thus, when photographing is performed using a conventional digital photographing apparatus, the conventional digital photographing apparatus focuses on a certain subject from among a plurality of subjects to be photographed and then obtains image data. However, the certain subject that is focused on by the digital photographing apparatus may not be the subject that the user desires the digital photographing apparatus to focus on. When this occurs, the user has to take the photograph again. However, due to the time difference between the initial photographing that has been already performed and the subsequent photographing, the desired image may not be obtained.
The present invention provides a digital photographing apparatus in which user convenience is maximized when a subject is photographed while varying a distance between the subject and the digital photographing apparatus, a method of controlling the same, and a recording medium having recorded thereon a program for executing the method.
According to an aspect of the present invention, there is provided a digital photographing apparatus including: a lens unit including a focusing lens adjustable to a focal length; an image capturing device that obtains image data from incident light that is incident on the image capturing device through the lens unit; a border image data obtaining unit that obtains border image data from image data that is obtained by the image capturing device; and a clear image determining unit that determines an image including an area that is the clearest from among images that respectively correspond to a plurality of image data, wherein, when the focusing lens of the lens unit is controlled to vary the focal length, the image capturing device obtains first through n-th image data (where n is an integer), and the border image data obtaining unit obtains first through n-th border image data from the first through n-th image data, and the clear image determining unit determines an image including a first area that is the clearest from among first through n-th images that respectively correspond to the first through n-th border image data, by using the first through n-th border image data, and the clear image determining unit determines an image including a second area that is the clearest from among the first through n-th images that respectively correspond to the first through n-th border image data and that is different from the first area, by using the first through n-th border image data.
The apparatus may further include an image matching unit correcting image data about an image so that the image and another image may be matched with each other.
The border image data obtaining unit may obtain a first result by applying a Gaussian filter to image data by using a first standard deviation and obtain a second result by applying the Gaussian filter to the image data by using a second standard deviation that is different from the first standard deviation and then, may obtain border image data from a difference between the first result and the second result.
The apparatus may further include a final image data obtaining unit obtaining image data corresponding to the image including the first area that is the clearest and image data corresponding to the image including the second area that is the clearest and obtaining final image data corresponding to a final image in which both the first area and the second area are clear.
The apparatus may further include a display unit displaying a final image, and after the final image is displayed on the display unit, if any one of the first and second areas is selected, an image including the selected area that is the clearest, from among the first through n-th images, is displayed on the display unit.
According to another aspect of the present invention, there is provided a digital photographing apparatus including: a lens unit including a focusing lens adjustable to a focal length; an image capturing device that obtains image data from incident light that is incident on the image capturing device via the lens unit; a border image data obtaining unit that obtains border image data from image data that is obtained by the image capturing device; a clarity data obtaining unit that obtains a difference between maximum border image data and minimum border image data in an area k×l based on a pixel (x,y) of a border image that is obtained from the border image data obtained by the border image data obtaining unit, as clarity data of the pixel (x,y); and a clear image determining unit that determines an image including an area that is the clearest from among images that respectively correspond to a plurality of image data, wherein, when the focusing lens of the lens unit is controlled to vary the focal length, the image capturing device obtains first through n-th image data (where n is an integer), and the border image data obtaining unit obtains first through n-th border image data from the first through n-th image data, and obtains a first result that is obtained by applying a Gaussian filter to m-th image data by using a first standard deviation and obtains a second result that is obtained by applying the Gaussian filter to the m-th image data by using a second standard deviation that is different from the first standard deviation, and then obtains m-th border image data (where 1≦m≦n) from a difference between the first result and the second result, and the clarity data obtaining unit obtains clarity data in each of pixels that respectively correspond to the first through n-th border images, and the clear image determining unit determines one image from among first through n-th images, which corresponds to a border image that represents the greatest clarity data in each of pixels that respectively correspond to the first through n-th border images, as a clear image in the pixel.
The apparatus may further include an image matching unit that corrects image data about an image so that the image and another image may be matched with each other.
The apparatus may further include a final image data obtaining unit that obtains image data in a pixel that corresponds to a pixel (x,y) from an image that corresponds to a border image having the greatest clarity data in the pixel that corresponds to the pixel (x,y) from among the first through n-th border images and obtaining final image data.
The apparatus may further include a display unit that displays a final image, and after the final image is displayed on the display unit, if any one of the first and second areas is selected, an image corresponding to a border image that represents the greatest clarity data in the selected area, from among the first through n-th images, is displayed on the display unit.
According to another aspect of the present invention, there is provided a method of controlling a digital photographing apparatus, the method including: obtaining first through n-th image data (where n is an integer) by varying a focal length; obtaining first through n-th border image data from the first through n-th image data; determining an image including a first area that is the clearest from among first through n-th images that respectively correspond to the first through n-th border image data by using the first through n-th border image data; and determining an image including a second area that is the clearest from among the first through n-th images that respectively correspond to the first through n-th border image data so that the second area is different from the first area, by using the first through n-th border image data.
The determining of the image including the first area and the determining of the image including the second image may be performed after the first through n-th images are matched with one another.
The obtaining of the first through n-th border image data may include obtaining a first result that is obtained by applying a Gaussian filter to m-th image data by using a first standard deviation and obtaining a second result that is obtained by applying the Gaussian filter to the m-th image data by using a second standard deviation that is different from the first standard deviation and then obtaining m-th border image data (where 1≦m≦n) from a difference between the first result and the second result.
The method may further include obtaining image data corresponding to the image including the first area that is the clearest and image data corresponding to the image including the second area that is the clearest and obtaining final image data corresponding to a final image in which both the first area and the second area are clear.
The method may further include, after the final image is displayed on the display unit, if any one of the first and second areas is selected, displaying an image including the selected area that is the clearest, from among the first through n-th images on the display unit.
According to another aspect of the present invention, there is provided a method of controlling a digital photographing apparatus, the method including: obtaining first through n-th image data (where n is an integer) by varying a focal length; obtaining first through n-th border image data from the first through n-th image data, obtaining a first result that is obtained by applying a Gaussian filter to m-th image data by using a first standard deviation and obtaining a second result that is obtained by applying the Gaussian filter to the m-th image data by using a second standard deviation that is different from the first standard deviation, and then obtaining m-th border image data (where 1≦m≦n) from a difference between the first result and the second result; obtaining a difference between maximum border image data and minimum border image data in an area k×l based on a pixel (x,y) of a border image that is obtained from the first through n-th border image data obtained by a border image data obtaining unit, as clarity data of the pixel (x,y) and obtaining clarity data in each of pixels that respectively correspond to the first through n-th border images; and determining one image from among first through n-th images, which corresponds to a border image that represents the greatest clarity data in each of pixels that respectively correspond to the first through n-th border images, as a clear image in the pixel.
The determining of the one image may be performed after the first through n-th images are matched with one another.
The method may further include obtaining image data in a pixel that corresponds to a pixel (x,y) from an image that corresponds to a border image having the greatest clarity data in the pixel that corresponds to the pixel (x,y) from among the first through n-th border images and obtaining final image data.
The method may further include, after the final image obtained from the final image data is displayed on a display unit, if any one of the first and second areas is selected, displaying an image corresponding to a border image that represents the greatest clarity data in the selected area, from among the first through n-th images on the display unit.
According to another aspect of the present invention, there is provided
a computer program product, comprising a computer usable medium having a computer readable program code embodied therein, the computer readable program code adapted to be executed to implement one of the above-described methods.
The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:
Hereinafter, the present invention will be described in detail by explaining exemplary embodiments of the invention with reference to the attached drawings.
The overall operation of the digital photographing apparatus of
In a photographing mode, as the electrical signal generated by user manipulation is applied to the CPU 100, the CPU 100 controls a lens driving unit 11, an iris diaphragm driving unit 21, and an image capturing device controller 31 according to the electrical signal. As such, the position of a lens in a lens unit 10, the degree of opening of an iris diaphragm 20, and sensitivity of an image capturing device 30 are controlled. The lens unit 10 includes a focusing lens 10a that adjusts a focal length, and a lens 10b. The image capturing device 30 generates data from input light, and an analog/digital (A/D) converter 40 converts analog data that is output by the image capturing device 30 into digital data. The A/D converter 40 may not be present due to a characteristic of the image capturing device 30.
The data generated by the image capturing device 30 may be input to a digital signal processor 50 via a memory 60 or may be directly input to the digital signal processor 50. If necessary, the data may be input to the CPU 100. Here, the memory 60 may be a read only memory (ROM) or a random access memory (RAM).
The digital signal processor 50 performs digital signal processing, such as gamma correction or white balance setting, if necessary. Also, as will be described later, the digital signal processor 50 includes a border image data obtaining unit 51 (
Data output from the digital signal processor 50 are transmitted to a display controller 81 (
The above-described elements are not always essential in the digital photographing apparatus of
In the digital photographing apparatus of
When the first through n-th image data are obtained, the border image data obtaining unit 51 obtains first through n-th border image data from the first through n-th image data.
Referring to
Referring to
Referring to
The clear image determining unit 55 determines an image including an area that is the clearest from among images that respectively correspond to a plurality of image data. First, the clear image determining unit 55 determines an image including a first area that is the clearest from among first through n-th images that respectively correspond to first through n-th border image data, by using the first through n-th border image data. Also, the clear image determining unit 55 determines an image including a second area that is the clearest from among the first through n-th images that respectively correspond to the first through n-th border image data and that is different from the first area, by using the first through n-th border image data.
For example, referring to
The first, second, and third persons h1, h2, and h3 are photographed, as described with reference to
In the digital photographing apparatus according to the present embodiment, a plurality of image data are obtained from a signal that is input at one time by user manipulation, by varying a focal length so that the user may select a desired image and user convenience may be maximized. In particular, when an undesired subject that is an image obtained by a conventional digital photographing apparatus having an automatic focus-on function is focused on, the user does not need to photograph again.
The digital photographing apparatus of
The border image data obtaining unit 51 may obtain border image data by using various methods. In this case, it is efficient to use a Gaussian filter. In other words, the border image data obtaining unit 51 may obtain a first result that is obtained by applying the Gaussian filter using a first standard deviation to image data and a second result that is obtained by applying the Gaussian filter using a second standard deviation that is different from the first standard deviation and then may obtain border image data from a difference between the first result and the second result. Obtaining of the border image data in this way is described in detail at the web site http://micro.magnet.fsu.edu/primer/java/digitalimaging/processinq/diffgaussans/index.html (as downloaded on Jan. 30, 2010) that is operated by the National High Magnetic Field Laboratory of the Florida State University, herein, incorporated by reference.
The Gaussian filter applied to coordinates (0,0) is expressed as Equation 1 (where σ is a predetermined standard deviation):
Thus, when the Gaussian filter is applied to a pixel, assuming that the coordinates of the pixel are (0,0), the pixel has a resultant value IG, as expressed by Equation 2. Here, I(x,y) is data in a pixel corresponding to coordinates (x,y) assuming that the coordinates of the pixel is (0,0), and Im is an overall image.
The border image data represents a difference between the first result that is obtained by applying the Gaussian filter to the image data by using the first standard deviation σ1 and the second result that is obtained by applying the Gaussian filter to the image data by using the second standard deviation σ2 that is different from the first standard deviation σ1. Thus, when coordinates of a pixel are (0,0), the border image data of the pixel may be expressed by Equation 3 (where, σ1<σ2). Clarity of a border image may be set by adjusting a standard deviation.
In this way, the border image data obtaining unit 51 may obtain border image data from each of pixels of the first through n-th images.
The digital photographing apparatus of
After the clear image determining unit 55 determines an image including a first area that is the clearest from among first through n-th images that respectively correspond to first through n-th border image data and also determines an image including a second area that is the clearest from among the first through n-th images that respectively correspond to the first through n-th border image data, as described in the digital photographing apparatus of
For example, when the first, second, and third images Im1, Im2, and Im3 illustrated in
In a conventional digital photographing apparatus, only the focused-on subject is clear and other subjects are not clear. However, in the digital photographing apparatus of
The digital photographing apparatus of
In Operation S40, an image including a first area that is the clearest from among first through n-th images that respectively correspond to first through n-th border image data is determined by using the first through n-th border image data. Also, in Operation S50, an image including a second area that is the clearest from among the first through n-th images that respectively correspond to the first through n-th border image data is determined by using the first through n-th border image data. Here, the second area is different from the first area.
In the method of controlling the digital photographing apparatus of
In the method of controlling the digital photographing apparatus of
After Operation S50, the method may further include obtaining image data corresponding to the image including the first area that is the clearest and image data corresponding to the image including the second area that is the clearest and obtaining final image data corresponding to a final image in which both the first area and the second area are clear. Here, even in more areas apart from the first and second areas, an image in which an area is clear, may be determined, and by using the image, final image data corresponding to a final image in which the area is clear, may be obtained. Thus, an image in which a plurality of subjects located at different distances from the digital photographing apparatus are clear, may be obtained.
After the final image is displayed on a display unit such as the display unit 80 of
In the digital photographing apparatus according to the present embodiment, if a signal is input by user manipulation, a focusing lens such as 10a of
When the first through n-th image data are obtained, the border image data obtaining unit 51 obtains first through n-th border image data from the first through n-th image data.
The clarity data obtaining unit 53 obtains a difference between maximum border image data and minimum border image data in an area k×l based on a pixel (x,y) of a border image that is obtained from the border image data obtained by the border image data obtaining unit 51, as clarity data of the pixel (x,y).
The border images of
For example, clarity data in a pixel that corresponds to the first person h1 in the first border image Im1′ illustrated in
The clear image determining unit 55 determines an image including the clearest area from among images that respectively correspond to a plurality of image data. Specifically, the clear image determining unit 55 determines one image from among first through n-th images, which corresponds to a border image that represents the greatest clarity data in each of pixels that respectively correspond to the first through n-th border images, as a clear image in the pixel. For example, in a pixel included in the first person h1, a pixel having the greatest clarity data from among pixels that respectively correspond to the first, second, and third images Im1′, Im2′, and Im3′ is a pixel in the first border image Im1′. Thus, the clear image determining unit 55 determines the first image Im1 from among the first, second, and third images Im1, Im2, and Im3 as a clear image in the pixel included in the first person h1. In this way, the clear image determining unit 55 determines clear images in all of the pixels that respectively correspond to the first through n-th border images.
In the digital photographing apparatus of
The digital photographing apparatus of
The digital photographing apparatus of
After the clear image determining unit 55 determines clear images in all of the pixels that respectively correspond to the first through n-th border images, as described in the digital photographing apparatus of
For example, when the first, second, and third images Im1, Im2, and Im3 illustrated in
In a conventional digital photographing apparatus, image data is obtained about an image in which only a focused-on subject is clear and other subjects are not clear. However, in the digital photographing apparatus of
The digital photographing apparatus of
Subsequently, in Operation S30, a difference between maximum border image data and minimum border image data in an area k×l based on a pixel (x,y) of a m-th border image that is obtained from the m-th border image data, is obtained as clarity data of the pixel (x,y) of the m-th border image, and clarity data in each of pixels that respectively correspond to the first through n-th border images are obtained. After that, in Operation S60, one image from among first through n-th images, which corresponds to a border image that represents the greatest clarity data in each of pixels that respectively correspond to the first through n-th border images, are determined as a clear image in the pixel.
In the method of controlling the digital photographing apparatus of
In the method of controlling the digital photographing apparatus of
After Operation S60, the method may further include obtaining image data in a pixel that corresponds to a pixel (x,y) from an image that corresponds to a border image having the greatest clarity data in the pixel that corresponds to the pixel (x,y) from among the first through n-th border images, thereby obtaining final image data. Thus, an image may be obtained in which a plurality of subjects located at different distances from the digital photographing apparatus are clear.
After the final image is displayed on a display unit such as the display unit 80 of
A program for executing the method of controlling the digital photographing apparatus according to the above-mentioned embodiments and modified embodiments thereof in the digital photographing apparatus according to the present invention may be recorded on a recording medium. Here, the recording medium may be a storage medium such as the storage medium 70 of
As described above, in the digital photographing apparatus, the method of controlling the same and the recording medium having recorded thereon a program for executing the method according to the present invention, user convenience may be maximized when a subject is photographed while varying a distance between the subject and the digital photographing apparatus.
For the purposes of promoting an understanding of the principles of the invention, reference has been made to the preferred embodiments illustrated in the drawings, and specific language has been used to describe these embodiments. However, no limitation of the scope of the invention is intended by this specific language, and the invention should be construed to encompass all embodiments that would normally occur to one of ordinary skill in the art.
The present invention may be described in terms of functional block components and various processing steps. Such functional blocks may be realized by any number of hardware and/or software components configured to perform the specified functions. For example, the present invention may employ various integrated circuit components, e.g., memory elements, processing elements, logic elements, look-up tables, and the like, which may carry out a variety of functions under the control of one or more microprocessors or other control devices. Similarly, where the elements of the present invention are implemented using software programming or software elements the invention may be implemented with any programming or scripting language such as C, C++, Java, assembler, or the like, with the various algorithms being implemented with any combination of data structures, objects, processes, routines or other programming elements. Furthermore, the present invention could employ any number of conventional techniques for electronics configuration, signal processing and/or control, data processing and the like. The words “mechanism” and “element” are used broadly and are not limited to mechanical or physical embodiments, but can include software routines in conjunction with processors, etc.
The particular implementations shown and described herein are illustrative examples of the invention and are not intended to otherwise limit the scope of the invention in any way. For the sake of brevity, conventional electronics, control systems, software development and other functional aspects of the systems (and components of the individual operating components of the systems) may not be described in detail. Furthermore, the connecting lines, or connectors shown in the various figures presented are intended to represent exemplary functional relationships and/or physical or logical couplings between the various elements. It should be noted that many alternative or additional functional relationships, physical connections or logical connections may be present in a practical device. Moreover, no item or component is essential to the practice of the invention unless the element is specifically described as “essential” or “critical”.
The use of the terms “a” and “an” and “the” and similar referents in the context of describing the invention (especially in the context of the following claims) are to be construed to cover both the singular and the plural. Furthermore, recitation of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein, and each separate value is incorporated into the specification as if it were individually recited herein. Finally, the steps of all methods described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context.
Numerous modifications and adaptations will be readily apparent to those skilled in this art without departing from the spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
10-2009-0078173 | Aug 2009 | KR | national |
This application is a divisional application of U.S. patent application Ser. No. 12/859,886, filed Aug. 20, 2010, which claims the benefit of Korean Patent Application No. 10-2009-0078173, filed on Aug. 24, 2009, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 12859886 | Aug 2010 | US |
Child | 13912379 | US |