Image processing device, image processing method, and program
By using protection maps with varying sizes based on pore size to correct acne, the method addresses the issue of unnatural corrections, ensuring the skin's natural appearance is maintained.
Patent Information
- Application Number
- JP2023180705
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-03-25
AI Technical Summary
Existing image processing techniques struggle to correct specific areas like acne without making the difference from surrounding skin noticeable, leading to unnatural images.
Apply a pair of protection maps with different sizes to target areas like acne, generating corrected images by setting the size difference based on pore size, and synthesizing these images to maintain the skin's natural appearance.
The method effectively makes acne less noticeable while preserving the skin's texture and shadows, resulting in a more natural-looking image.
Smart Images

Figure 0007548396000001 
Figure 0007548396000003 
Figure 0007548396000002
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device, an image processing method, and a program. [Background technology]
[0002] Conventionally, techniques for correcting face images have been proposed. For example, Patent Document 1 describes a method for masking characteristic areas such as the eyes, nose, and mouth of a face and performing a smoothing process on the remaining skin area to make fine skin roughness less noticeable and generate a face image that reproduces a smooth skin condition. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2009-70260 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, with the technology of Patent Document 1, it is difficult to correct only the unique areas that differ from the surrounding skin, and if correction processing is performed, there is a foreseeable problem that the difference between the surrounding areas that have not been corrected will become noticeable.
[0005] The present invention has been made in consideration of such problems, and has an object to make correction locations less noticeable when a subject image is corrected. [Means for solving the problem]
[0006] In order to solve the above problems, the present invention Related to The image processing device includes: a processing means for performing a predetermined image processing so as to make acne inconspicuous in a person image and performing a predetermined correction processing only on an area corresponding to the acne, the processing means applying a pair of protection maps generated so that the sizes of the areas targeted for the predetermined correction processing are different from each other to the targeted areas to generate a pair of corrected images by performing the predetermined correction processing on the targeted areas, and synthesizing the pair of generated correction images; and a setting means for setting the size difference between the pair of protection maps based on the size of pores in the person image. The present invention is characterized by comprising:
[0007] In addition, the present invention Related to The image processing method is An image processing method executed by an image processing device, the method comprising: a processing step of, when performing a predetermined image processing so as to make acne inconspicuous in a person image and performing a predetermined correction processing limited to an area corresponding to the acne, generating a pair of corrected images by separately applying a pair of protection maps generated so that the sizes of areas targeted for the predetermined correction processing are different from each other and performing the predetermined correction processing on the targeted areas, and synthesizing the pair of generated correction images; and a setting step of setting the size difference between the pair of protection maps based on the size of pores in the person image. It is characterized by:
[0008] In addition, the present invention The program causes a computer to function as a processing means for, when performing a predetermined image processing so as to make acne inconspicuous in a human image and performing a predetermined correction processing limited to an area corresponding to the acne, separately applying a pair of protection maps generated so that the sizes of areas targeted for the predetermined correction processing are different from each other to perform the predetermined correction processing on the targeted areas, thereby generating a pair of corrected images, and synthesizing the pair of generated correction images, and a setting means for setting the size difference between the pair of protection maps based on the size of pores in the human image. It is characterized by: Effect of the Invention
[0009] According to the present invention, when a subject image is corrected, it is possible to make the correction locations less noticeable. [Brief description of the drawings]
[0010] [Figure 1] 1 is a block diagram showing a functional configuration of an imaging apparatus according to an embodiment of the present invention. [Diagram 2] 2 is a diagram for explaining an outline of processing in an analysis unit and a second image processing unit in FIG. 1. FIG. [Diagram 3] 2 is a diagram showing a process flow in an analysis unit and a second image processing unit in FIG. 1. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to the illustrated examples.
[0012] [Configuration of imaging device 1] Fig. 1 is a block diagram showing the functional configuration of an imaging device 1 according to this embodiment. As shown in Fig. 1, the imaging device 1 includes a control unit 101, a storage unit 102, a display unit 103, a communication unit 104, an operation unit 105, an imaging unit 106, a first image processing unit 107, an image memory 108, an analysis unit 109, a second image processing unit 110, a lighting control unit 111, a light emitting unit 112, etc. The control unit 101 and each unit are connected by a bus.
[0013] The control unit 101 is configured with a CPU (Central Processing Unit), a RAM (Random Access Memory), etc., and executes various programs stored in the storage unit 102 to perform predetermined calculations and control each unit.
[0014] The storage unit 102 is configured with a non-volatile semiconductor memory, a hard disk, etc. The storage unit 102 stores system programs and various processing programs executed by the control unit 101, data required for executing these programs, etc.
[0015] The display unit 103 is composed of an LCD (Liquid Crystal Display) or the like, and displays, in accordance with a display control signal from the control unit 101, for example, a live view image showing the state captured by the imaging unit 106, or an image acquired by the imaging unit 106 in response to a shooting instruction.
[0016] The communication unit 104 is an interface for performing wireless or wired data communication with an external device.
[0017] The operation unit 105 is equipped with various function buttons including a shutter key, and a transparent touch panel layered on the display unit 103, and accepts inputs such as user pressing of buttons, touching of the touch panel, and slide operations, and outputs the operation information to the control unit 101.
[0018] The imaging unit 106 is configured with an imaging lens 106a, an imaging element consisting of an image sensor such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal-Oxide Semiconductor) (not shown), an A / D conversion circuit, etc., and converts an optical image that has passed through the imaging lens 106a into a two-dimensional image signal by the imaging element, thereby acquiring image data of the subject (RGB image data).
[0019] The first image processing unit 107 performs color processing including pixel interpolation and gamma correction on the RGB data acquired by the imaging unit 106, and then converts it into image data consisting of a digital value luminance signal Y and color difference signals Cb, Cr (image data for each of the Y, U, and V components).
[0020] The image memory 108 is configured, for example, by a flash memory or the like, and is a recording unit that records image data captured by the imaging unit 106 and processed by the first image processing unit 107.
[0021] When the correction mode according to the present invention is set in advance, the analysis unit 109 analyzes the image data (subject image) of the subject acquired by the imaging unit 106 and processed by the first image processing unit 107 to acquire texture information (skin surface information) of the subject's skin and outputs the acquired information to the second image processing unit 110. The analysis unit 109 also analyzes an image area around a unique area (for example, an area where a foreign object such as a pimple exists) different from the surrounding skin in the image data processed by the first image processing unit 107 to generate texture protection maps M11, M12 and shadow protection maps M21, M22 (see FIG. 2) used when performing correction processing on the unique area in the second image processing unit 110. Here, the texture protection maps M11, M12 and shadow protection maps M21, M22 are mask data for protecting (masking) image areas not to be corrected among image areas around the unique area when performing correction processing on the unique area. The analysis unit 109 functions as a texture information acquisition means, an edge component acquisition means, a detection means, an analysis means, and a correction means.
[0022] The second image processing unit 110 performs correction processing such as smoothing on the unique regions of the image data acquired by the imaging unit 106 and processed by the first image processing unit 107, using the texture protection maps M11, M12 and the shadow protection maps M21, M22 generated by the analysis unit 109, and generates a corrected image by adding texture information to the processing result and combining it with the original image data (original image). The second image processing unit 110 functions as a processing means and a processing means.
[0023] The analysis unit 109 and the second image processing unit 110 are executed by cooperation between the control unit 101 and a program stored in the storage unit 102, but may be realized by dedicated hardware.
[0024] The lighting control unit 111 (driver) is connected to each of the LEDs (Light Emitting Diodes) of the light emitting unit 112, and controls the light intensity and on / off of the light emitting unit 112 according to instructions from the control unit 101.
[0025] The light emitting unit 112 is configured with an LED or the like, and irradiates the subject with light.
[0026] [Operation of imaging device 1] Next, the operations of the analysis unit 109 and the second image processing unit 110 of the imaging device 1 will be described. FIG. 2 is a diagram showing an outline of the processing executed by the analysis unit 109 and the second image processing unit 110. G1 in FIG. 2 is a diagram showing a typical peculiar region in an original image and its surrounding Y component image (luminance component image) using image data processed by the first image processing unit 107 as the original image. In G1 in FIG. 2, the diagonal lines 51 represent the peculiar region, the dots 52 represent the texture of the skin, and the shaded areas 53 represent the shading on the skin. The shading may be caused by unevenness due to facial organs or wrinkles, or by hair, eyelashes, eyebrows, or their shadows. In FIG. 2, the texture 52 exists over the entire G1. In addition to the peculiar region 51 (an image of a foreign object such as a pimple), a shading 53 exists around the peculiar region.
[0027] When a correction process is performed on the original image corresponding to this Y component image G1 to make the unique region 51 less noticeable, the skin surface condition (texture) of the region to be corrected is also lost, resulting in an unnatural image. For example, G2 in Fig. 2 shows an example in which the texture of the unique region is lost. When the region to be corrected is expanded to the periphery, the shadows around the unique region are also lost, resulting in an even more unnatural image.
[0028] Therefore, in this embodiment, first, the analysis unit 109 generates a Y-component image G1 of the unique region and its surrounding area from the original image. Next, as shown in Fig. 2, the Y-component image G1 is analyzed, and a texture protection map M11 (large), a texture protection map M12 (small), a shadow protection map M21 (large), and a shadow protection map M22 (small) are generated based on the analysis results. Then, the second image processing unit 110 performs a correction process to make the unique region less noticeable in the original image using the generated texture protection maps M11, M12, and shadow protection maps M21, M22. In Fig. 2, the image after the correction process is shown as G2. Furthermore, the analysis unit 109 analyzes the Y component image G1 before correction to obtain information (texture information) indicating the surface condition (texture) of the subject's skin, and the second image processing unit 110 performs processing to add the texture information obtained from the information before correction in the analysis unit 109 to the image G2 after correction processing, thereby generating a corrected image G3 in which the texture and shadows are not lost.
[0029] Here, the method of detecting the peculiar region to be corrected from the original image is not particularly limited, and any method may be used. For example, a region designated by the user through the operation unit 105 from the face region of the original image displayed on the display unit 103 may be detected as the peculiar region. Alternatively, a face region may be detected from the original image, an image of the detected face region may be cut out, and a region of pixel values (suddenly occurring pixel values) different from the surroundings may be extracted from data of the V component image data within the contour region of the face region with the eyes, nose, and mouth masked, and the peculiar region may be detected based on the size of the region.
[0030] FIG. 3 is a block diagram showing the functional configuration of the analysis unit 109 and the second image processing unit 110. As shown in FIG. As shown in Fig. 3, the analysis unit 109 includes a skin analysis unit 20, a protection map data setting unit 21, a low-frequency data generation unit 22, an edge information generation unit 23, a region division unit 24, a shadow protection map generation unit 25, and a texture protection map generation unit 26. The second image processing unit 110 includes a protection map boundary reliability determination unit 27, a correction processing unit 28, a transparent synthesis processing unit 29, and a synthesis processing unit 30. Hereinafter, the processing of the analysis unit 109 and the second image processing unit 110 will be described with reference to Fig. 3.
[0031] First, the analysis unit 109 generates a Y component image composed of a Y (brightness) component from an original image having each of the YUV components, and then cuts out a rectangular area of a predetermined size containing a unique area in the center detected from the face area of the Y component image, and inputs the cutout to the skin analysis unit 20 and the edge information generation unit 23.
[0032] The skin analysis unit 20 analyzes the Y-component image in the input rectangular area to detect the image area of the pore, and obtains the size data (size) of the pore and the contrast data (con) of the pore in the image area of the pore. Then, for the obtained pore size data, the skin analysis unit 20 calculates the average data (size_ave) of the pore size data and the standard deviation data (size_sd) of the pore size data, and outputs them to the protection map data setting unit 21 and the low-frequency data generating unit 22. For the obtained contrast data of the pore, the skin analysis unit 20 calculates the average data (con_ave) of the contrast data of the pore and the standard deviation data (con_sd) of the contrast data of the pore, and outputs them to the skin texture protection map generating unit 26.
[0033] When correcting the unique region, protection map data setting unit 21 generates protection maps M1, M2 consisting of mask data having two different sizes of elliptical protection exclusion regions 61, 62 (see FIG. 2) (large and small) so that other regions are not also corrected, and outputs these to region dividing unit 24 and texture protection map generating unit 26. A unique region is a nearly circular region containing pimples such as acne or undulations that stand out from the surroundings, and the protection exclusion regions 61, 62 of protection maps M1, M2 are elliptical in shape surrounding the unique region. For example, protection map data setting unit 21 first reads out a basic protection map having a protection exclusion region of a basic ellipse size stored in storage unit 102. Next, skin analysis unit 20 calculates a radius of the pore size based on the sum of the average data (size_ave) of the pore size data and the standard deviation data (size_sd) of the pore size data calculated, and calculates the radius of the pore size. A protection map M1 is generated having a protection exclusion region obtained by adding the radius to the radius of the ellipse of the basic protection map, and a protection map M2 is generated having a protection exclusion region of an ellipse size obtained by subtracting the determined radius from the radius of the ellipse of the basic protection map. In addition, since there is generally little individual difference in pore size, protection maps M1 and M2 of two different sizes may be generated in advance and stored in the storage unit 102. In addition, in this embodiment, protection maps M1 and M2 of two different sizes are generated as templates, but this is not limited to this, and multiple types may be generated according to size. The more sizes there are, the more accurate correction of the peculiar area is possible.
[0034] The low-frequency data generating unit 22 smoothes the Y component image using an average filter with a parameter being the sum of the average data (size_ave) of the pore size data and the standard deviation data (size_sd) of the pore size data input from the skin analyzing unit 20, removes edge components in the Y component image, and generates low-frequency data (data in a low frequency band) that shows a rough shading state. This makes it possible to remove the influence of pores from the shading of the skin. The low-frequency data generating unit 22 outputs the generated low-frequency data to the edge information generating unit 23 and the region dividing unit 24.
[0035] The edge information generating unit 23 generates and acquires positive (positive value) difference data and negative (negative value) difference data between the low-frequency data generated by the low-frequency data generating unit 22 and the Y component image. This makes it possible to extract texture in a frequency band higher than pores. The edge information generating unit 23 outputs this positive and negative difference data to the synthesis processing unit 30 as edge information (texture information) corresponding to the texture.
[0036] Based on the low-frequency data input from the low-frequency data generation unit 22, the area division unit 24 identifies a shadow area within the annular area between the ellipse of the protection map M1 and the ellipse of the protection map M2 input from the protection map data setting unit 21, where correction will cause the shadow to disappear, thereby affecting the original shadow expression, and divides this area from other areas.
[0037] Specifically, the region dividing unit 24 calculates a histogram of pixel values (pixel values of the low-frequency data) in a ring-shaped region that is the difference in size between the ellipse of the protection map M1 and the ellipse of the protection map M2 when the large and small protection maps M1 and M2 are superimposed on the low-frequency data, obtains a mode (peak) from this histogram, and divides the region of pixel values from the obtained mode to the range where the minimum value exists as a shaded region from other regions. Then, information on the shaded region is output to the shaded protection map generating unit 25.
[0038] The shadow protection map generating unit 25 generates the shadow protection maps M11, M12 as shown in FIG. 2 by adding the shadow region to the region to be protected by the protection maps M1, M2 based on the information of the shadow region input from the region dividing unit 24. This makes it possible to add the entire shadow region, which is outside the unique region but falls into the protection exclusion region when processed using the protection maps M1, M2, to the protection target, with a partial or complete (in most cases, partial) information loss and resulting in an unnatural appearance. In other words, by having the correction processing unit 28 perform correction processing using the shadow protection maps M11, M12, it becomes possible to perform correction processing excluding the shadow regions included in the protection exclusion regions 61, 62. The shadow protection map generating unit 25 outputs the generated shadow protection maps M11, M12 to the correction processing unit 28 and the protection map boundary reliability determining unit 27.
[0039] The texture protection map generating unit 26 adds the average data (con_ave) of the contrast data of the pores acquired from the skin analysis unit 20 and the standard deviation data (con_sd) of the contrast data of the pores, and finds pixels having positive edges (edges with higher brightness than the surroundings) and pixels having negative edges (edges with lower brightness than the surroundings) with a larger intensity than the average data (con_ave) of the contrast data of the pores. Next, the pixels of the positive edges and the negative edges in the pixel regions on the boundary with the non-protection regions in each of the protection maps M1 and M2 are added to the protection target regions of the protection maps M1 and M2 to generate the texture protection maps M21 and M22. In this way, pixels with edge intensity equal to or greater than that of the pores on the boundary with the non-protection regions of the protection maps can be excluded from the correction processing, and unnaturalness remaining in the corrected image can be eliminated. The texture protection map generating unit 26 outputs the generated texture protection maps M21 and M22 to the correction processing unit 28 and the protection map boundary reliability determining unit 27.
[0040] Protection map boundary reliability determination unit 27 determines the reliability of each of the image regions corrected using a large-sized protection map combining two large-sized protection maps M11, M21 generated by shadow protection map generation unit 25 and texture protection map generation unit 26, and a small-sized protection map combining two small-sized protection maps M12, M22. Then, in a transparent compositing process described below, a map is generated that increases the influence of pixels with higher reliability and decreases the influence of pixels with lower reliability, and outputs the map to transparent compositing processor 29. Note that the reliability of each of the image regions after the correction process may be determined before the correction process.
[0041] Here, in an image area where the protected areas of the large protection map and the small protection map overlap, and in an image area where the protected excluded areas of both the large and small protection maps overlap, the processing result is the same regardless of whether the large or small protection map is used for correction processing, so the reliability is the same. Therefore, here, the reliability is determined for each pixel of the image area sandwiched between the boundary with the protected excluded area of the large protection map and the boundary with the protected excluded area of the small protection map. In this embodiment, the reliability is determined to be higher for the area that is more elliptical in appearance. For example, the boundary sharing rate, area sharing rate, boundary regression analysis matching rate, etc. are calculated for each pixel, and the reliability of the large and small protection maps is determined based on the calculation results.
[0042] Here, the boundary sharing rate is the ratio of the length of the boundary between the protection exclusion region in the large protection map and the protection exclusion region in the small protection map to the length of the boundary that coincides (shares) with the protection exclusion region in the large and small protection maps. If the protection exclusion region (i.e., the region to be corrected) in the large and small protection maps is an ellipse, the boundary between the protection exclusion region in the large and small protection maps is not shared, so the higher the rate of the shared portion, the lower the reliability. The area sharing ratio is the ratio of the area of the protected edge (the area added to the protected region) to the area of the protection map in each of the large and small protection maps. The smaller the ratio of the protected edge (the lower the sharing ratio), the higher the reliability. The boundary regression analysis match rate is a value that indicates how many boundary values are within the range of the regression analysis results when a regression analysis is performed on the boundary with the protection exclusion area in each of the large-sized protection map and the small-sized protection map. If the boundary regression analysis match rate is low, the reliability is reduced. It should be noted that the above-mentioned reliability calculation method is merely an example, and the concept of reliability determination and the specific method are not limited to this.
[0043] The correction processor 28 applies a large-sized protection map, which is a combination of the two large-sized protection maps M11 and M21 generated by the shadow protection map generator 25 and the texture protection map generator 26, to a rectangular region including a unique region of the image of each YUV component of the original image, to perform correction processing to make the boundary between the image region of the protection exclusion region surrounded by the protection maps and the other image regions and the unique state less noticeable. Similarly, the correction processor 28 applies a small-sized protection map, which is a combination of the two small-sized protection maps M12 and M22 generated by the shadow protection map generator 25 and the texture protection map generator 26, to a rectangular region including a unique region of the image of each YUV component of the original image, to perform correction processing to make the boundary between the image region of the protection exclusion region surrounded by the protection maps and the other image regions and the unique state less noticeable. The above correction processing mainly involves smoothing processing (processing to smooth the skin condition and provide transparency), but in some cases color correction processing (processing to correct the skin color to a more natural color) may also be used. The correction processor 28 outputs to the transparent synthesis processor 29 the YUV component images corrected using the large-sized protection map and the YUV component images corrected using the small-sized protection map.
[0044] Based on the map output from the protection map boundary reliability determination unit 27, the transparent synthesis processing unit 29 transparently synthesizes and outputs each YUV component image corrected using the large-sized protection map and each YUV component image corrected using the small-sized protection map by setting an alpha value for each pixel that is subject to correction processing by the two protection maps so that the influence of the pixel determined to be more reliable is greater.
[0045] The synthesis processing unit 30 adds edge information corresponding to the texture input from the edge information generation unit 23 to the correction processing target area of each YUV component image transparently synthesized by the transparent synthesis processing unit 29, alpha-blends the image with the texture state added (corrected image) with the original image at a predetermined blend ratio, and outputs the corrected image.
[0046] By carrying out the above processing in the analysis unit 109 and the second image processing unit 110, it is possible to carry out image processing that makes unusual areas such as pimples less noticeable while preserving the shadows and texture caused by facial irregularities and wrinkles, as shown in the corrected image G3 in Figure 2.
[0047] As described above, according to the imaging device 1, the analysis unit 109 acquires an image of a subject, and acquires surface condition information of the subject from the acquired image of the subject. The second image processing unit 110 processes the image of the subject based on the surface condition information acquired by the analysis unit 109. Therefore, it is possible to obtain a subject image that retains the surface condition of the subject based on the surface condition information of the subject. Also, when the surface condition of the subject is lost due to correction of the subject image, it is possible to make the correction part less noticeable based on the surface condition information.
[0048] Also, for example, the analysis unit 109 acquires edge components in a predetermined frequency band in the image region of the subject image, and acquires the acquired edge components as surface condition information. Therefore, it is possible to obtain a subject image that maintains the surface state of the subject, which is made up of edges in a predetermined frequency band.
[0049] Also, for example, the second image processing unit 110 processes the subject image that has been subjected to the predetermined processing based on the acquired surface condition information. Therefore, it is possible to add the surface condition of the subject to the subject image that has been subjected to the predetermined processing.
[0050] Furthermore, for example, when a process for making a peculiar region in the subject image less noticeable, such as a smoothing process, is performed, the second image processing unit 110 performs processing based on the surface condition information acquired by the analysis unit 109. Therefore, even if the surface condition of the subject is lost as a result of performing a process for making a peculiar region in the subject image less noticeable, it is possible to perform processing based on the surface condition to make the processed area less noticeable.
[0051] Also, for example, the second image processing unit 110 uses protection maps of multiple sizes that mimic the shape surrounding the peculiar region, performs a predetermined process on each image region including the peculiar region surrounded by the protection maps, obtains reliability information for each image region that has been subjected to the predetermined process using each of the protection maps of multiple sizes, and synthesizes the results of the predetermined processes using the multiple protection maps with different degrees of influence based on the obtained reliability information. Therefore, the processing results using the more reliable protection maps can be reflected in the subject image.
[0052] Also, for example, the analysis unit 109 analyzes the luminance information of the subject image and modifies the shapes of the multiple types of protection maps based on the analysis results. Therefore, it is possible to process the unique region of the subject image using a protection map with a mask shape corresponding to the subject image.
[0053] Furthermore, the analysis section 109 and the second image processing section 110 of the imaging device 1 perform the above-mentioned processing on a subject image including a human skin region, so that it is possible to obtain a subject image that retains the texture of the person's skin.
[0054] In addition, the second image processing unit 110 of the imaging device 1 performs correction so that the peculiar region in the subject image becomes less noticeable compared to the surroundings, and performs processing to add the surface state of the subject in the subject image before the correction to the corrected peculiar region. Therefore, when a correction is performed to make the peculiar region of the subject image less noticeable, the corrected part can be made less noticeable.
[0055] The description of the above embodiment is merely a preferred example of the present invention, and the present invention is not limited to this.
[0056] For example, in the above embodiment, the image processing device of the present invention is provided in an imaging device, but the image processing device of the present invention may be separate from the imaging device. For example, the image processing device may perform the processing described with reference to Figs. 2 and 3 on image data received from the imaging device. Furthermore, the original image is not limited to a recorded image, but may be something like a live view image that is sequentially captured by the imaging unit 106 and sequentially displayed on the display unit 103. In this way, it is possible to provide the user with a subject image (face) that always reflects the corrected result.
[0057] Furthermore, in the above embodiment, the case where YUV image data is used has been described as an example, but the type of image data is not particularly limited.
[0058] In the above embodiment, the case where both texture and shadow are protected has been described as an example, but it is also possible to protect only one of them. When only the texture is to be protected, a plurality of texture protection maps with different sizes of protection exclusion areas are generated based on the Y component image of the original image, a correction process is performed on the YUV component image of the original image using each of the plurality of texture protection maps, a reliability of each of the image areas corrected using each of the plurality of texture protection maps is calculated, an α value is calculated for each pixel based on the reliability, and a transparent composite of a plurality of images corrected using each of the plurality of texture protection maps is performed. Also, texture information obtained from the Y component image is added to the transparent composite image and composited with the YUV component image of the original image at a predetermined α value. When only shadows are to be protected, a plurality of shadow protection maps with different sizes of protection exclusion areas are generated based on the Y component image of the original image, a correction process is performed on the YUV component image of the original image using each of the plurality of shadow protection maps, a reliability of each of the image areas corrected using each of the plurality of shadow protection maps is calculated, an α value is calculated for each pixel based on the reliability, and a transparent composite of the plurality of images corrected using each of the plurality of shadow protection maps is performed, and the transparent composite image is then composited with the YUV component image of the original image using a predetermined α value.
[0059] Also, for example, in the above description, a hard disk or a semiconductor non-volatile memory is used as a computer-readable medium for the program according to the present invention, but the present invention is not limited to this example. As other computer-readable media, a portable recording medium such as a CD-ROM can be applied. Furthermore, a carrier wave can be applied as a medium for providing data of the program according to the present invention via a communication line.
[0060] In addition, the detailed configurations and operations of the devices constituting the imaging device may be modified as appropriate without departing from the spirit and scope of the invention.
[0061] Although several embodiments of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and its equivalents. The inventions described in the claims originally attached to this application are set forth below. The claim numbers in the appended claims are the same as those in the claims originally attached to this application. [Note] <Claim 1> An acquisition means for acquiring a subject image; a texture information acquiring means for acquiring texture information of the subject from the subject image acquired by the acquiring means; a processing means for processing the subject image based on the texture information acquired by the texture information acquisition means; An image processing device comprising: <Claim 2> an edge component acquiring means for acquiring an edge component of a predetermined frequency band in an image area of the subject image, 2. The image processing apparatus according to claim 1, wherein the texture information acquiring means acquires the edge components acquired by the edge component acquiring means as the texture information. <Claim 3> Further comprising a processing means for performing a predetermined image processing on the subject image, 3. The image processing apparatus according to claim 1, wherein the processing means processes the subject image, which has been subjected to a predetermined process by the processing means, based on the texture information acquired by the texture information acquisition means. <Claim 4> A detection unit is further provided for detecting a peculiar area different from the surrounding area in the subject image, 4. The image processing device according to claim 3, wherein the predetermined processing is processing for making the peculiar area in the subject image less noticeable. <Claim 5> The processing means includes: using mask data of a plurality of sizes imitating shapes surrounding the peculiar region, the predetermined processing is performed on image regions including the peculiar region surrounded by the mask data; a reliability information acquiring means for acquiring reliability information of each of the image regions to which the predetermined processing has been performed using each of the mask data of the plurality of sizes; a synthesis means for synthesizing results of predetermined processes in each mask data processed by the processing means while changing the degree of influence based on the reliability information acquired by the reliability information acquisition means; 5. The image processing device according to claim 4, further comprising: <Claim 6> an analysis means for analyzing luminance information of the subject image; a correction means for correcting shapes of the plurality of types of mask data based on an analysis result by the analysis means; 6. The image processing device according to claim 5, further comprising: <Claim 7> 5. The image processing apparatus according to claim 4, wherein the predetermined processing is a smoothing processing. <Claim 8> 8. The image processing device according to claim 1, wherein the subject image is an image including a human skin region. <Claim 9> An acquisition means for acquiring a subject image; A detection means for detecting a peculiar area from the subject image that is different from its surroundings; a correction means for correcting the peculiar area detected by the detection means so as to make it less noticeable compared to the surrounding area; a control means for controlling a process to add a surface state of the subject in the subject image before the correction by the correction means to the unique region corrected by the correction means so as to be inconspicuous; An image processing device comprising: <Claim 10> An acquisition means for acquiring a subject image; a detection means for detecting a peculiar area different from a surrounding area in the subject image acquired by the acquisition means; a processing means for performing a predetermined process on an image area including the peculiar area detected by the detection means and surrounded by a plurality of sizes of mask data imitating shapes surrounding the peculiar area; a reliability information acquiring means for acquiring reliability information of each of the image regions to which the predetermined processing has been performed using each of the mask data of the plurality of sizes; a synthesis means for synthesizing results of predetermined processes in each mask data processed by the processing means while changing the degree of influence based on the reliability information acquired by the reliability information acquisition means; An image processing device comprising: <Claim 11> An image processing method in an image processing device, comprising: acquiring an image of a subject; acquiring texture information of the object from the acquired image of the object; processing the subject image based on the acquired texture information; 13. An image processing method comprising: <Claim 12> An image processing method in an image processing device, comprising: acquiring an image of a subject; detecting a peculiar area from the subject image that is different from its surroundings; A step of correcting the detected peculiar area so as to make it less noticeable compared to the surrounding area; a step of performing a process of adding a surface state of the subject in the subject image before the correction to the unique region corrected to be less noticeable; 13. An image processing method comprising: <Claim 13> An image processing method in an image processing device, comprising: acquiring an image of a subject; detecting a peculiar area in the acquired subject image that is different from a surrounding area; a step of performing a predetermined process on an image area including the peculiar area surrounded by mask data of a plurality of sizes imitating a shape surrounding the detected peculiar area; acquiring reliability information for each of the image regions that have been subjected to the predetermined processing using each of the mask data of the plurality of sizes; a synthesis means for synthesizing the results of the predetermined processing in each of the mask data by changing the degree of influence based on the acquired reliability information; 13. An image processing method comprising: <Claim 14> Computer, An acquisition means for acquiring a subject image; a texture information acquiring means for acquiring texture information of the subject from the subject image acquired by the acquiring means; a processing means for processing the subject image based on the texture information acquired by the texture information acquisition means; A program to function as a <Claim 15> Computer, An acquisition means for acquiring a subject image; A detection means for detecting a peculiar area from the subject image that is different from its surroundings; a correction means for correcting the peculiar area detected by the detection means so as to make it less noticeable compared to the surrounding area; a control means for controlling a process to add a surface state of the subject in the subject image before the correction by the correction means to the unique region corrected by the correction means so as to be inconspicuous; A program to function as a <Claim 16> Computer, An acquisition means for acquiring a subject image; a detection means for detecting a peculiar area different from the surrounding area in the subject image acquired by the acquisition means; a processing means for performing a predetermined process on an image region including the peculiar region detected by the detection means and surrounded by a plurality of sizes of mask data imitating shapes surrounding the peculiar region; a reliability information acquiring means for acquiring reliability information of each of the image regions to which the predetermined processing has been performed, using each of the mask data of the plurality of sizes; a synthesis means for synthesizing results of predetermined processes in each mask data processed by the processing means while changing the degree of influence based on the reliability information acquired by the reliability information acquisition means; A program to function as a [Explanation of symbols]
[0062] 1. Imaging device 101 Control section 102 Storage section 103 Display section 104 Communications Department 105 Operation section 106 Imaging unit 106a Imaging lens 107 First image processing unit 108 Image Memory 109 Analysis Department 20 Skin Analysis Department 21 Protection map data setting section 22 Low-frequency data generation section 23 Edge information generation unit 24 Area division part 25 Shadow protection map generator 26 Texture protection map generator 27 Protection map boundary reliability judgement unit 110 Second image processing unit 28 Correction processing section 29 Transparent composition processing section 30 Synthesis Processing Unit 111 Lighting control unit 112 Light emitting part
Claims
1. When performing a predetermined image processing so as to make acne inconspicuous in a human image, and when performing a predetermined correction processing limited to an area corresponding to the acne, a processing means for generating a pair of corrected images by separately applying a pair of protection maps generated so that the sizes of the areas targeted for the predetermined correction processing are different from each other, and performing the predetermined correction processing on the targeted areas, and then synthesizing the pair of generated corrected images; a setting means for setting the size difference between the pair of protection maps based on a pore size in the person image; An image processing device comprising:
2. The processing means performs a smoothing process or a texture information adding process as the predetermined correction process.
2. The image processing apparatus according to claim 1,
3. When the pair of corrected images are synthesized, the processing means judges the reliability of each pixel of the pair of corrected images, and synthesizes the pair of corrected images so that the influence of the pixel judged to be more highly reliable between the pair of corrected images is greater.
3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.
4. An image processing method executed by an image processing device, comprising: a processing step of performing a predetermined image processing so as to make acne inconspicuous in a person image and performing a predetermined correction processing only on an area corresponding to the acne, separately applying a pair of protection maps generated so that the sizes of areas targeted for the predetermined correction processing are different from each other to perform the predetermined correction processing on the targeted areas, thereby generating a pair of corrected images, and synthesizing the pair of generated corrected images; a setting step of setting the size difference between the pair of protection maps based on a pore size in the person image; 13. An image processing method comprising:
5. A computer comprising: a processing means for performing a predetermined image processing so as to make acne inconspicuous in a person image and performing a predetermined correction processing only on an area corresponding to the acne, the processing means applying a pair of protection maps generated so that the sizes of the areas targeted for the predetermined correction processing are different from each other separately to perform the predetermined correction processing on the targeted areas, thereby generating a pair of corrected images, and synthesizing the pair of generated corrected images; a setting means for setting the size difference between the pair of protection maps based on a pore size in the person image; A program characterized by causing the program to function as a
Citation Information
Patent Citations
Image processing program, image processor and automatic photographing device
JP2006031195A
Image processing method and apparatus, and program
JP2007087234A
Image processor, image processing method and program
JP2009070260A
Image processing method and image processing apparatus for correcting skin color, digital photographing apparatus using the image processing apparatus, and computer-readable storage medium for executing the method
US20110013829A1
