In a system and method for optimizing images, a digital image of an object is captured by an image capturing device, and a standard image of the object is obtained from a storage system of a computing device. The system calculates an image average energy density (iaed) value of the digital image based on RGB (red, green, blue) channels of the digital image, and calculates an iaed value of the standard image based on RGB channels of the standard image. The system is further calculates a difference between the iaed value of the digital image and the iaed value of the standard image, and applies any difference to optimize every pixel point of the digital image to generate optimized pixel points. The system integrates all the optimized pixel points or original pixel points to generate an optimized image for display.
|
6. A computerized method for optimizing images captured by an image capturing device, the method comprising:
capturing a digital image of an object using the image capturing device, and obtaining a standard image of the object from a storage system of a computing device;
calculating an image average energy density (iaed) value of the digital image based on RGB (red, green, blue) channels of the digital image, wherein the iaed value of the digital image is an image energy density of each pixel point of the digital image;
calculating an iaed value of the standard image based on RGB channels of the standard image, wherein the iaed value of the standard image is an image energy density of each pixel point of the standard image;
calculating a difference value between the iaed value of the digital image and the iaed value of the standard image;
optimizing each pixel point of the digital image to generate an optimized pixel point according to the iaed difference value of the digital image and the standard image; and
integrating all the optimized pixel points to generate an optimized image, and displaying the optimized image on a display device of the computing device wherein an iaed value is of an image is calculated by a calculation equation IAED=(r+g+b)/N/N, wherein r represents a pixel value of an r channel, g represents a pixel value of a g channel, and b represents a pixel value of a b channel, and N represents a total number of pixel points of the image.
11. A non-transitory computer-readable medium having stored thereon instructions that, when executed by at least one processor of a computing device, causes the method for optimizing images captured by an image capturing device, the method comprising:
capturing a digital image of an object using the image capturing device, and obtaining a standard image of the object from a storage system of the computing device;
calculating an image average energy density (iaed) value of the digital image based on RGB (red, green, blue) channels of the digital image, wherein the iaed value of the digital image is an image energy density of each pixel point of the digital image;
calculating an iaed value of the standard image based on RGB channels of the standard image, wherein the iaed value of the standard image is an image energy density of each pixel point of the standard image;
calculating a difference value between the iaed value of the digital image and the iaed value of the standard image;
optimizing each pixel point of the digital image to generate an optimized pixel point according to the iaed difference value of the digital image and the standard image; and
integrating all the optimized pixel points to generate an optimized image, and displaying the optimized image on a display device of the computing device, wherein an iaed value is calculated by a calculation equation IAED=(r+g+b)/N/N, wherein r represents a pixel value of an r channel, g represents a pixel value of a g channel, and b represents a pixel value of a b channel, and N represents a total number of pixel points of the image.
1. A computing device, the computing device connected to an image capturing device, the computing device comprising: a storage system; at least one processor; and
one or more programs stored in the storage system and executable by the at least one processor, the one or more programs comprising:
an image obtaining module operable to capture a digital image of an object using the image capturing device, and obtain a standard image of the object from the storage system;
an image calculation module is operable to calculate an image average energy density (iaed) value of the digital image based on RGB (red, green, blue) channels of the digital image, and an iaed value of the standard image based on RGB channels of the standard image, and calculate a difference value between the iaed value of the digital image and the iaed value of the standard image, wherein the iaed value of the digital image is an image energy density of each pixel point of the digital image, and the iaed value of the standard image is an image energy density of each pixel point of the standard image; an image conversion module operable to optimize each pixel point of the digital image to generate an optimized pixel point according to the iaed difference value of the digital image and the standard image; and
an image generating module operable to integrate all the optimized pixel points to generate an optimized image, and display the optimized image on a display device of the computing device, wherein an iaed value is calculated by a calculation equation IAED=(r+g+b)/N/N, wherein r represents a pixel value of an r channel, g represents a pixel value of a g channel, b represents a pixel value of a b channel, and N represents a total number of pixel points of the image.
2. The computing device according to
3. The computing device according to
4. The computing device according to
5. The computing device according to
7. The method according to
8. The method according to
9. The method according to
10. The method according to
creating an index for each pixel point of the digital image;
determining whether all the pixel points of the digital image are converted by checking whether the index is less than N, wherein N represents a total number of pixel points of the digital image; and
controlling the index to search for the next pixel point of the digital image until all the optimized pixel points have been converted.
12. The non-transitory computer-readable medium according to
13. The non-transitory computer-readable medium according to
14. The non-transitory computer-readable medium according to
15. The non-transitory computer-readable medium according to
creating an index for each pixel point of the digital image;
determining whether all the pixel points of the digital image are converted by checking whether the index is less than N, wherein N represents a total number of pixel points of the digital image; and
controlling the index to search for the next pixel point of the digital image until all the optimized pixel points have been converted.
|
1. Technical Field
Embodiments of the present disclosure relate to image processing systems and methods, and particularly to an image optimization system and a method for optimizing images.
2. Description of Related Art
In general, a user must perform multiple operations to optimize images captured from an image capturing device (e.g., a typical digital camera); such operations are time-consuming and operator dependent. Furthermore, an inexperienced user may obtain suboptimal images increasing the likelihood of an incorrect diagnosis on the images. A common practice is to pre-set image optimization parameters for improving the quality of images captured by the digital camera. Each of the captured images is analyzed to obtain optimized brightness, contrast, and uniformity of the images. However, such techniques only addresses a proportion of the image optimization issues and do not overcome the differences in the levels of light overall, or anomalies caused by reflections of light, which are also critical to image quality.
Therefore, an improved image optimization system method is desirable to address the aforementioned issues.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
The storage system 12 stores a standard image of the object 3, as shown in
In one embodiment, the image optimization system 11 includes an image obtaining module 111, an image calculation module 112, an image conversion module 113, and an image generating module 114. The modules 111-114 may comprise computerized instructions in the form of one or more programs that are stored in the storage system 12, and executed by the at least one processor 13 to provide functions for optimizing the digital image to generate an optimized image of the object 3, and to display the optimized image on the display device 14.
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a program language. In one embodiment, the program language may be Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The image obtaining module 111 is operable to capture a digital image of the object 3 using the image capturing device 2, and to obtain a standard image of the object 3 from the storage system 12. As shown in
The image calculation module 112 is operable to calculate an image average energy density (IAED) value of the digital image based on RGB (red, green, blue) channels of the digital image, and an IAED value of the standard image based on the RGB channels of the standard image. In one embodiment, the IAED is defined as an image energy density of each pixel point of the image having N*N pixels, and is calculated by a calculation equation IAED=(R+G+B)/N/N, where R represents a pixel value of the R channel, G represents a pixel value of the G channel, and B represents a pixel value of the B channel.
One example with respect to
Furthermore, assuming that the standard image has 32*32 pixels divided into Bn pixel blocks, the pixel values of the pixel block Bn based on the RGB channels may be described as R=152179, G=135539, and B=31091. In the embodiment, the image calculation module 112 calculates the IAED value of the R channel of the standard image as IAED_b_R=R/32/32=152179/32/32=148.61, the IAED value of the G channel of the standard image as IAED_b_G=G/32/32=135539/32/32=132.36, and the IAED value of the B channel of the standard image as IAED_b_B=31091/32/32=30.36.
The image calculation module 112 is further operable to calculate a difference D_R between the values of IAED_a_R and IAED_b_R, a difference D_G between the values of IAED_a_G and IAED_b_G, and a difference D_B between the values of IAED_a_B and IAED_b_B. In the embodiment, the difference D_R is solved as IAED_a_R minus IAED_b_R=143.80−148.61=−4.81, the difference D_G is solved as IAED_a_G minus IAED_b_G=141.37−132.36=9.01, and the difference D_B is solved as IAED_a_B minus IAED_b_B=140.80−30.36=110.44.
The image conversion module 113 is operable to convert and optimize each of the pixel points of the digital image to generate an optimized pixel point according to the value of the IAED difference between the digital image and the standard image. In the embodiment, the image conversion module 113 creates an index (denoted as n_index) of all pixel points of the digital image, searches each pixel point in the digital image according to the index, and then converts the RGB value of each pixel point in An to an R′G′B′ value to generate optimized pixel points in An′, wherein R′=R minus D_R, G′=G minus D_G, and B′=B minus D_B. For example, if the pixel block An has a pixel point, of which the RGB value is (230,137,175), the image conversion module 113 optimizes the pixel point to an RGB value of (235,128,65).
The image generating module 114 is operable to integrate all the optimized pixel points An′ to generate an overall optimized image, and to display the optimized image on the display device 14, or store the optimized image in the storage system 12. In the embodiment, the optimized image a higher level of brightness and contrast than that of the digital image captured by the image capturing device 2.
In block S20, the image obtaining module 111 captures a digital image of the object 3 using the image capturing device 2, and obtains a standard image of the object 3 from a storage system 12. As shown in
In block S21, the image calculation module 112 calculates an IAED value of the digital image based on the RGB channels of the digital image. As mentioned above, the IAED is defined as an image energy density of each pixel point of the image having N*N pixels, and is calculated by the equation IAED=(R+G+B)/N/N. In the embodiment, the image calculation module 112 calculates an IAED_a_R value for the R channel of the digital image, an IAED_a_G value for the G channel of the digital image, and an IAED_a_B value for the B channel of the digital image.
In block S22, the image calculation module 112 calculates an IAED value of the standard image based on the RGB channels of the standard image. In the embodiment, the image calculation module 112 calculates an IAED_b_R value of the R channel of the standard image, an IAED_b_G value of the G channel of the standard image, and an IAED_b_B value of the B channel of the standard image.
In block S23, the image calculation module 112 calculates difference D_R between the values of IAED_a_R and IAED_b_R, a difference D_G between the values of IAED_a_G and IAED_b_G, and a difference D_B between the values of IAED_a_B and IAED_b_B. In the embodiment, the difference D_R is solved as IAED_a_R minus IAED_b_R=143.80−148.61=−4.81, the difference D_G is solved as IAED_a_G minus IAED_b_G=141.37−132.36=9.01, and the difference D_B is solved as IAED_a_B minus IAED_b_B=140.80−30.36=110.44.
In block S24, the image conversion module 113 creates an index (denoted as n_index) for all the pixel points of the digital image, and searches each pixel point in the digital image according to the index, i.e., sets n_Index=1 to represent the first pixel point of the digital image.
In block S25, the image conversion module 113 converts and optimizes the RGB values each pixel point in An into R′G′B′ values in An′, wherein R′=R minus D_R, G′=G minus D_G, and B′=B minus D_B. For example, if the pixel block An has a particular pixel point with RGB values of (230,137,175), the image conversion module 113 converts and optimizes that pixel point into values of (235,128,65).
In block S26, the image conversion module 113 determines whether all the pixel points of the digital image have been converted by checking the index. If the index n_Index is less than N, where N represents the total number of pixel points of the digital image, block S27 is implemented, but if the index n_Index is equal to N, block S28 is implemented.
In block S27, the image conversion module 113 calculates n_Index=n_Index+1 to control the index to search for the next pixel point of the digital image, until all the pixel points are optimal.
In block S28, the image generating module 114 integrates all the optimized pixel points to generate an optimized image, and displays the optimized image on the display device 14, or stores the optimized image to the storage system 12. As such, the optimized image has a similar brightness and contrast to the digital image of the object 3 captured by the image capturing device 2.
Although certain disclosed embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
7221476, | Jun 07 2001 | Noritsu Koki Co., Ltd. | Picture image processing apparatus and method, and picture processing system |
8218064, | Oct 30 2007 | Nikon Corporation | Image recognition device, focus adjustment device, image-capturing device, and image recognition method |
20100073466, | |||
20100265361, | |||
20110043628, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jun 24 2011 | WANG, GUANG-JIAN | HONG FU JIN PRECISION INDUSTRY SHENZHEN CO , LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 026501 | /0052 | |
Jun 24 2011 | WANG, GUANG-JIAN | HON HAI PRECISION INDUSTRY CO , LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 026501 | /0052 | |
Jun 27 2011 | Hong Fu Jin Precision Industry (ShenZhen) Co., Ltd. | (assignment on the face of the patent) | / | |||
Jun 27 2011 | Hon Hai Precision Industry Co., Ltd. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Mar 26 2018 | REM: Maintenance Fee Reminder Mailed. |
Sep 17 2018 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Aug 12 2017 | 4 years fee payment window open |
Feb 12 2018 | 6 months grace period start (w surcharge) |
Aug 12 2018 | patent expiry (for year 4) |
Aug 12 2020 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 12 2021 | 8 years fee payment window open |
Feb 12 2022 | 6 months grace period start (w surcharge) |
Aug 12 2022 | patent expiry (for year 8) |
Aug 12 2024 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 12 2025 | 12 years fee payment window open |
Feb 12 2026 | 6 months grace period start (w surcharge) |
Aug 12 2026 | patent expiry (for year 12) |
Aug 12 2028 | 2 years to revive unintentionally abandoned end. (for year 12) |