KR102215607B1 - Electronic device capable of correction to improve the brightness of dark images and operating method thereof - Google Patents
Electronic device capable of correction to improve the brightness of dark images and operating method thereof Download PDFInfo
- Publication number
- KR102215607B1 KR102215607B1 KR1020190168506A KR20190168506A KR102215607B1 KR 102215607 B1 KR102215607 B1 KR 102215607B1 KR 1020190168506 A KR1020190168506 A KR 1020190168506A KR 20190168506 A KR20190168506 A KR 20190168506A KR 102215607 B1 KR102215607 B1 KR 102215607B1
- Authority
- KR
- South Korea
- Prior art keywords
- value
- image
- brightness
- pixels
- correction
- Prior art date
Links
- 238000012937 correction Methods 0.000 title claims abstract description 172
- 238000011017 operating method Methods 0.000 title abstract description 4
- 238000012545 processing Methods 0.000 claims abstract description 26
- 239000013598 vector Substances 0.000 claims description 58
- 238000000034 method Methods 0.000 claims description 28
- 238000004364 calculation method Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 3
- 239000000284 extract Substances 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 239000003086 colorant Substances 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000005226 mechanical processes and functions Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G06T5/007—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
-
- G06T5/001—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
-
- H04N5/235—
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Image Communication Systems (AREA)
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
Abstract
Description
본 발명은 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치 및 그 동작 방법에 대한 것이다.The present invention relates to an electronic device capable of performing a correction process for improving the brightness of a dark image and an operating method thereof.
최근, 컴퓨터나 스마트폰 또는 태블릿 PC 등이 널리 보급됨에 따라, 이러한 전자 장치를 이용하여 전자 문서를 열람, 작성, 편집할 수 있도록 하는 다양한 종류의 전자 문서 관련 프로그램들이 출시되고 있다. In recent years, as computers, smartphones, tablet PCs, etc. are widely spread, various types of electronic document-related programs are being released that enable users to view, create, and edit electronic documents using such electronic devices.
이러한 전자 문서 관련 프로그램들로는 기본적인 문서의 작성, 편집 등을 지원하는 워드프로세서, 데이터의 입력, 산술연산, 데이터 관리를 보조하는 스프레드시트, 발표자의 발표를 보조하기 위한 프레젠테이션 프로그램들이 있다. Examples of such electronic document related programs include a word processor that supports basic document creation and editing, data input, arithmetic operations, spreadsheets that assist data management, and presentation programs to assist presenters' presentations.
관련해서, 사용자는 이러한 전자 문서 관련 프로그램들에 디지털 카메라를 통해 촬영된 이미지를 삽입하여 문서를 작성하는 경우가 많은데, 디지털 이미지 중에는 해가 지고 난 저녁에 야외에서 촬영되거나 빛이 거의 없는 장소에서 촬영되어, 이미지가 어둡게 생성된 경우가 종종 발견된다. Relatedly, users often create documents by inserting images captured by digital cameras into these electronic document-related programs. Among digital images, they are taken outdoors in the evening after sunset or in places where there is little light. As a result, it is often found that the image is created dark.
기존에는, 전자 문서에 삽입된 이미지가 밝기 보정이 필요한 어두운 이미지에 해당하는지 분석하기 위해, 이미지를 구성하는 픽셀들의 밝기에 따른 히스토그램을 생성하여 히스토그램의 형태를 분석하는 방식, 이미지의 색상을 YUV 값으로 변환하여 휘도 값을 분석하는 방식 또는 이미지의 색상을 CIE Lab으로 변환하여 명도 값을 분석하는 방식을 주로 사용하였다.Conventionally, in order to analyze whether an image inserted in an electronic document corresponds to a dark image that needs brightness correction, a histogram according to the brightness of pixels constituting the image is generated to analyze the shape of the histogram, and the color of the image is set to the YUV value. The method of analyzing the luminance value by converting it to or by converting the color of the image to the CIE Lab to analyze the luminance value was mainly used.
그러나, 이러한 과정들은 이미지의 밝기를 분석하기 위해, 이미지의 RGB 값을 다른 색상 값들로 변환하는 복잡한 과정을 거치므로, 연산을 수행하는 데에 오랜 시간과 비용이 소요된다는 아쉬움이 있었다. However, since these processes go through a complex process of converting the RGB value of the image into other color values in order to analyze the brightness of the image, there is a regret that it takes a long time and cost to perform the operation.
만약, 사용자가 전자 문서 관련 프로그램 상에 이미지를 삽입하였을 때, 상기 이미지를 구성하는 픽셀들의 RGB 값만으로 이미지의 밝기를 파악하여 적절한 밝기로 빠르게 보정할 수 있는 기능이 있다면, 사용자는 전자 문서 관련 프로그램상에서 디지털 카메라를 통해 촬영된 이미지를 자유롭게 활용할 수 있어 매우 유용할 것이다. If a user inserts an image on an electronic document related program, if there is a function to quickly correct the brightness to an appropriate brightness by grasping the brightness of the image using only the RGB values of the pixels constituting the image, the user can use the electronic document related program It will be very useful to be able to freely use the image taken through the digital camera on the screen.
따라서, 이미지의 RGB 값을 분석하여 어두운 이미지에 해당하는 경우, 이미지의 밝기를 개선할 수 있는 보정 처리 기술에 대한 연구가 필요하다.Therefore, in the case of a dark image by analyzing the RGB value of the image, a study on a correction processing technique capable of improving the brightness of the image is required.
본 발명에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치 및 그 동작 방법은 사용자로부터 제1 이미지에 대한 밝기 보정 명령이 수신되면, 상기 제1 이미지를 구성하는 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 색상 값 중 중간 크기의 색상 값을 밝기 값으로 추출하고, 상기 복수의 픽셀들 각각에 대해 밝기 보정을 수행하여 상기 제1 이미지에 대한 보정 이미지를 생성함으로써, 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능하도록 지원하고자 한다.An electronic device capable of correcting the brightness of a dark image according to the present invention, and an operation method thereof, when a brightness correction command for a first image is received from a user, each of a plurality of pixels constituting the first image is On the other hand, by extracting a color value of a medium size among color values constituting the RGB value as a brightness value, and performing brightness correction on each of the plurality of pixels to generate a corrected image for the first image, It is intended to support correction processing to improve brightness.
본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치는 사용자로부터 제1 이미지에 대한 밝기 보정 명령이 수신되면, 상기 제1 이미지에 대한 복제 이미지를 생성한 후, 상기 제1 이미지를 구성하는 복수의 픽셀(pixel)들 각각에 대한 RGB 값을 추출하는 픽셀 값 추출부, 상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값 중 중간 크기의 값을 갖는 채널의 색상 값을 밝기 값으로 추출함으로써, 상기 복수의 픽셀들 각각에 대한 밝기 값을 산출하는 밝기 값 산출부, 상기 복수의 픽셀들에 대한 밝기 값의 평균 값을 연산하는 평균 연산부, 미리 정해진 밝기 기준치로부터 상기 평균 값을 차감함으로써, 오차 값을 산출하는 오차 산출부, 상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행함으로써, 상기 제1 이미지에 대한 보정 이미지를 생성하는 보정 이미지 생성부, 상기 제1 이미지에 대한 상기 보정 이미지가 생성되면, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지와 상기 제1 이미지에 대한 상기 복제 이미지 중 어느 하나의 이미지가 상기 제1 이미지에 대한 최종 이미지로 선택될 수 있도록, 상기 제1 이미지에 대한 상기 복제 이미지와 상기 제1 이미지에 대한 상기 보정 이미지를 화면 상에 동시에 표시하는 이미지 표시부 및 상기 사용자에 의해 상기 제1 이미지에 대한 상기 복제 이미지가 선택되면, 상기 제1 이미지에 대한 상기 보정 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 복제 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하고, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지가 선택되면, 상기 제1 이미지에 대한 상기 복제 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하는 최종 이미지 선택부를 포함한다.According to an embodiment of the present invention, an electronic device capable of performing correction processing for improving the brightness of a dark image generates a duplicate image for the first image when a brightness correction command for a first image is received from a user, A pixel value extracting unit that extracts RGB values for each of a plurality of pixels constituting the first image, and for each of the plurality of pixels, a red color value, a green color value, and a blue color constituting an RGB value A brightness value calculator that calculates a brightness value for each of the plurality of pixels by extracting a color value of a channel having a medium size among color values as a brightness value, and an average value of brightness values for the plurality of pixels An average calculation unit that calculates a value, an error calculation unit that calculates an error value by subtracting the average value from a predetermined brightness reference value, and increases the brightness of each of the plurality of pixels when the error value is a positive number. A correction image generator for generating a correction image for the first image by performing brightness correction for, and when the correction image for the first image is generated, the correction image for the first image and The duplicate image for the first image and the correction image for the first image are displayed on a screen so that any one of the duplicate images for the first image can be selected as a final image for the first image. When the duplicate image for the first image is selected by the image display unit and the user to simultaneously display an image, by deleting the correction image for the first image, the brightness of the duplicate image for the first image When the corrected image for the first image is selected as the final image according to the correction command and the user selects the corrected image for the first image, the duplicated image for the first image is deleted, so that the corrected image for the first image is A final image selection unit that selects a final image according to the brightness correction command Includes.
또한, 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법은 사용자로부터 제1 이미지에 대한 밝기 보정 명령이 수신되면, 상기 제1 이미지에 대한 복제 이미지를 생성한 후, 상기 제1 이미지를 구성하는 복수의 픽셀들 각각에 대한 RGB 값을 추출하는 단계, 상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값 중 중간 크기의 값을 갖는 채널의 색상 값을 밝기 값으로 추출함으로써, 상기 복수의 픽셀들 각각에 대한 밝기 값을 산출하는 단계, 상기 복수의 픽셀들에 대한 밝기 값의 평균 값을 연산하는 단계, 미리 정해진 밝기 기준치로부터 상기 평균 값을 차감함으로써, 오차 값을 산출하는 단계, 상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행함으로써, 상기 제1 이미지에 대한 보정 이미지를 생성하는 단계, 상기 제1 이미지에 대한 상기 보정 이미지가 생성되면, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지와 상기 제1 이미지에 대한 상기 복제 이미지 중 어느 하나의 이미지가 상기 제1 이미지에 대한 최종 이미지로 선택될 수 있도록, 상기 제1 이미지에 대한 상기 복제 이미지와 상기 제1 이미지에 대한 상기 보정 이미지를 화면 상에 동시에 표시하는 단계 및 상기 사용자에 의해 상기 제1 이미지에 대한 상기 복제 이미지가 선택되면, 상기 제1 이미지에 대한 상기 보정 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 복제 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하고, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지가 선택되면, 상기 제1 이미지에 대한 상기 복제 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하는 단계를 포함한다.In addition, the method of operating an electronic device capable of correcting the brightness of a dark image according to an embodiment of the present invention is, when a brightness correction command for a first image is received from a user, a duplicate image for the first image is received. After generating, extracting an RGB value for each of a plurality of pixels constituting the first image, for each of the plurality of pixels, a red color value, a green color value, and a blue color constituting an RGB value Computing a brightness value for each of the plurality of pixels by extracting a color value of a channel having a medium-sized value among the values as a brightness value, calculating an average value of brightness values for the plurality of pixels , Calculating an error value by subtracting the average value from a predetermined brightness reference value, when the error value is a positive number, performing brightness correction to increase the brightness of each of the plurality of pixels, Generating a correction image for the first image, when the correction image for the first image is generated, one of the correction image for the first image and the duplicate image for the first image by the user Simultaneously displaying the duplicate image for the first image and the corrected image for the first image on a screen so that any one image can be selected as a final image for the first image, and to the user When the duplicate image for the first image is selected by, by deleting the correction image for the first image, the duplicate image for the first image is selected as a final image according to the brightness correction command, and the When the correction image for the first image is selected by the user, the duplicate image for the first image is deleted, thereby selecting the corrected image for the first image as a final image according to the brightness correction command. Includes steps.
본 발명에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치 및 그 동작 방법은 사용자로부터 제1 이미지에 대한 밝기 보정 명령이 수신되면, 상기 제1 이미지를 구성하는 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 색상 값 중 중간 크기의 색상 값을 밝기 값으로 추출하고, 상기 복수의 픽셀들 각각에 대해 밝기 보정을 수행하여 상기 제1 이미지에 대한 보정 이미지를 생성함으로써, 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능하도록 지원할 수 있다.An electronic device capable of correcting the brightness of a dark image according to the present invention, and an operation method thereof, when a brightness correction command for a first image is received from a user, each of a plurality of pixels constituting the first image is On the other hand, by extracting a color value of a medium size among color values constituting the RGB value as a brightness value, and performing brightness correction on each of the plurality of pixels to generate a corrected image for the first image, It can be supported to enable correction processing to improve brightness.
도 1은 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 구조를 도시한 도면이다.
도 2는 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법을 도시한 순서도이다. 1 is a diagram illustrating a structure of an electronic device capable of performing correction processing to improve brightness of a dark image according to an embodiment of the present invention.
2 is a flowchart illustrating a method of operating an electronic device capable of performing correction processing to improve brightness of a dark image according to an embodiment of the present invention.
이하에서는 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명하기로 한다. 이러한 설명은 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였으며, 다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. This description is not intended to limit the present invention to a specific embodiment, it is to be understood to include all changes, equivalents, and substitutes included in the spirit and scope of the present invention. While describing each drawing, similar reference numerals have been used for similar components, and unless otherwise defined, all terms used in the present specification including technical or scientific terms refer to common knowledge in the technical field to which the present invention belongs. It has the same meaning as commonly understood by someone who has it.
본 문서에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있다는 것을 의미한다. 또한, 본 발명의 다양한 실시예들에 있어서, 각 구성요소들, 기능 블록들 또는 수단들은 하나 또는 그 이상의 하부 구성요소로 구성될 수 있고, 각 구성요소들이 수행하는 전기, 전자, 기계적 기능들은 전자회로, 집적회로, ASIC(Application Specific Integrated Circuit) 등 공지된 다양한 소자들 또는 기계적 요소들로 구현될 수 있으며, 각각 별개로 구현되거나 2 이상이 하나로 통합되어 구현될 수도 있다. In this document, when a part "includes" a certain component, it means that other components may be further included rather than excluding other components unless otherwise stated. In addition, in various embodiments of the present invention, each component, functional blocks or means may be composed of one or more sub-components, and the electrical, electronic, and mechanical functions performed by each component are electronic. A circuit, an integrated circuit, or an application specific integrated circuit (ASIC) may be implemented with various known devices or mechanical elements, and may be implemented separately or two or more may be integrated into one.
한편, 첨부된 블록도의 블록들이나 흐름도의 단계들은 범용 컴퓨터, 특수용 컴퓨터, 휴대용 노트북 컴퓨터, 네트워크 컴퓨터 등 데이터 프로세싱이 가능한 장비의 프로세서나 메모리에 탑재되어 지정된 기능들을 수행하는 컴퓨터 프로그램 명령들(instructions)을 의미하는 것으로 해석될 수 있다. 이들 컴퓨터 프로그램 명령들은 컴퓨터 장치에 구비된 메모리 또는 컴퓨터에서 판독 가능한 메모리에 저장될 수 있기 때문에, 블록도의 블록들 또는 흐름도의 단계들에서 설명된 기능들은 이를 수행하는 명령 수단을 내포하는 제조물로 생산될 수도 있다. 아울러, 각 블록 또는 각 단계는 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 명령들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 가능한 실시예들에서는 블록들 또는 단계들에서 언급된 기능들이 정해진 순서와 달리 실행되는 것도 가능함을 주목해야 한다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들 또는 단계들은 실질적으로 동시에 수행되거나, 역순으로 수행될 수 있으며, 경우에 따라 일부 블록들 또는 단계들이 생략된 채로 수행될 수도 있다.On the other hand, the blocks of the attached block diagram and the steps in the flowchart are computer program instructions that are mounted on a processor or memory of equipment capable of processing data such as a general-purpose computer, a special-purpose computer, a portable notebook computer, and a network computer to perform specified functions It can be interpreted as meaning. Since these computer program instructions can be stored in a memory provided in a computer device or in a memory readable by a computer, the functions described in the blocks in the block diagram or in the steps in the flowchart are produced as a product containing the instruction means to perform this. It could be. In addition, each block or each step may represent a module, segment, or part of code including one or more executable instructions for executing the specified logical function(s). In addition, it should be noted that in some alternative embodiments, functions mentioned in blocks or steps may be executed in a different order. For example, two blocks or steps shown in succession may be performed substantially simultaneously or may be performed in reverse order, and in some cases, some blocks or steps may be omitted.
도 1은 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 구조를 도시한 도면이다. 1 is a diagram illustrating a structure of an electronic device capable of performing a correction process for improving brightness of a dark image according to an embodiment of the present invention.
도 1을 참조하면, 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치(110)는 픽셀 값 추출부(111), 밝기 값 산출부(112), 평균 연산부(113), 오차 산출부(114), 보정 이미지 생성부(115), 이미지 표시부(116) 및 최종 이미지 선택부(117)를 포함한다.Referring to FIG. 1, an
픽셀 값 추출부(111)는 사용자로부터 제1 이미지에 대한 밝기 보정 명령이 수신되면, 상기 제1 이미지에 대한 복제 이미지를 생성한 후, 상기 제1 이미지를 구성하는 복수의 픽셀(pixel)들 각각에 대한 RGB 값을 추출한다.When a brightness correction command for the first image is received from the user, the pixel
예컨대, '이미지 1'이 6개의 픽셀로 구성된다고 가정하면, 픽셀 값 추출부(111)는 사용자로부터 '이미지 1'에 대한 밝기 보정 명령이 수신되는 경우, '이미지 1'에 대한 복제 이미지를 생성한 후, '이미지 1'을 구성하는 6개의 픽셀들 각각에 대한 RGB 값을 하기의 표 1과 같이 추출할 수 있다.For example, assuming that'image 1'is composed of 6 pixels, the
밝기 값 산출부(112)는 상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값 중 중간 크기의 값을 갖는 채널의 색상 값을 밝기 값으로 추출함으로써, 상기 복수의 픽셀들 각각에 대한 밝기 값을 산출한다.For each of the plurality of pixels, the
여기서, RGB 값은 0부터 255 사이에 있는 어느 하나의 수치를 갖는 Red 색상 값, Green 색상 값 및 Blue 색상 값으로 구성됨으로써, 서로 다른 색상으로 표현될 수 있다.Here, the RGB value is composed of a red color value, a green color value, and a blue color value having any one value between 0 and 255, and thus may be expressed in different colors.
평균 연산부(113)는 상기 복수의 픽셀들에 대한 밝기 값의 평균 값을 연산한다.The
오차 산출부(114)는 미리 정해진 밝기 기준치로부터 상기 평균 값을 차감함으로써, 오차 값을 산출한다.The
보정 이미지 생성부(115)는 상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행함으로써, 상기 제1 이미지에 대한 보정 이미지를 생성한다.When the error value is a positive (+) number, the corrected
예컨대, 앞선 예와 같이 '이미지 1'을 구성하는 6개의 픽셀들로 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6'이 존재한다고 가정하는 경우, 밝기 값 산출부(112)는 상기 6개의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값 중 중간 크기의 값을 갖는 채널의 색상 값을 밝기 값으로 추출함으로써, '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각에 대한 밝기 값을 산출할 수 있다.For example, as in the previous example, it is said that'Pixel 1','Pixel 2','Pixel 3','Pixel 4','Pixel 5'and'Pixel 6'exist as 6 pixels constituting'Image 1'. Assuming that, for each of the six pixels, the
구체적으로, 상기의 표 1을 참조하면, 밝기 값 산출부(112)는 '픽셀 1'에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값, Blue 색상 값인 '32', '64', '12' 중 중간 크기의 값인 '32'를 '픽셀 1'에 대한 밝기 값으로 추출할 수 있고, '픽셀 2'에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값, Blue 색상 값인 '150', '96', '180' 중 중간 크기의 값인 '150'을 '픽셀 2'에 대한 밝기 값으로 추출할 수 있으며, '픽셀 3'에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값, Blue 색상 값인 '96', '32', '160' 중 중간 크기의 값인 '96'을 '픽셀 3'에 대한 밝기 값으로 추출할 수 있다.Specifically, referring to Table 1 above, the
또한, 밝기 값 산출부(112)는 '픽셀 4'에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값, Blue 색상 값인 '128', '192', '64' 중 중간 크기의 값인 '128'을 '픽셀 4'에 대한 밝기 값으로 추출할 수 있고, '픽셀 5'에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값, Blue 색상 값인 '32', '100', '64' 중 중간 크기의 값인 '64'를 '픽셀 5'에 대한 밝기 값으로 추출할 수 있으며, '픽셀 6'에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값, Blue 색상 값인 '64', '148', '192' 중 중간 크기의 값인 '148'을 '픽셀 6'에 대한 밝기 값으로 추출할 수 있다.In addition, for'pixel 4', the brightness
이후, 평균 연산부(113)는 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6'에 대한 밝기 값인 '32', '150', '96', '128', '64' 및 '148'의 평균 값으로 '103'을 연산할 수 있고, 오차 산출부(114)는 밝기 기준치가 '128'로 미리 정해졌다고 가정하는 경우, 상기 밝기 기준치인 '128'로부터 상기 평균 값인 '103'을 차감함으로써, 오차 값으로 '25'를 산출할 수 있다.Thereafter, the
이렇게 산출된 상기 오차 값이 '25'와 같이 양(+)의 수인 경우, 보정 이미지 생성부(115)는 상기 복수의 픽셀들인 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각의 밝기를 증가시키기 위한 밝기 보정을 수행함으로써, '이미지 1'에 대한 보정 이미지를 생성할 수 있다.When the calculated error value is a positive number such as '25', the
이때, 본 발명의 일실시예에 따르면, 보정 이미지 생성부(115)는 밝기 보정 테이블 유지부(118), 명도 확인부(119), 보정 값 추출부(120) 및 밝기 보정부(121)를 포함할 수 있다.At this time, according to an embodiment of the present invention, the corrected
밝기 보정 테이블 유지부(118)는 상한 값과 하한 값으로 구성된 미리 정해진 서로 다른 복수의 범위 값들과 상기 복수의 범위 값들 각각에 대응되는 미리 정해진 밝기 보정 값이 기록되어 있는 밝기 보정 테이블을 저장하여 유지한다.The brightness correction
예컨대, 밝기 보정 테이블 유지부(118)는 하기의 표 2와 같은 밝기 보정 테이블을 저장하여 유지할 수 있다.For example, the brightness correction
명도 확인부(119)는 상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각에 대하여, RGB 값을 HSV 값으로 변환한 후, 상기 HSV 값을 구성하는 Hue(색조) 값, Saturation(채도) 값, Value(명도) 값 중 Value 값의 크기를 확인한다.When the error value is a positive number, the
여기서, HSV 값은 컴퓨터 그래픽 상의 색상을 색조, 채도, 명도에 따라 표현한 색상 모델로, Hue 값, Saturation 값, Value 값과 같은 3가지 성분으로 구성된다. Here, the HSV value is a color model that expresses hue, saturation, and brightness in computer graphics, and is composed of three components such as Hue value, Saturation value, and Value value.
관련해서, Hue 값은 0° ~ 360°의 범위 내에서 표현될 수 있는 것으로, 0°는 적색, 60°는 황색, 120°는 녹색, 180°는 청록색, 240°는 청색, 300°는 적보라색을 나타내고, Saturation 값은 0% ~ 100%의 범위 내에서 표현될 수 있는 것으로 색이 선명할수록 큰 값을 갖는다. Value 값은 0% ~ 100%의 범위 내에서 표현될 수 있는 것으로, 색이 밝을수록 큰 값을 가지므로, Value 값이 0%이면 검은색을 의미하고, Value 값이 100%이면 흰색을 의미한다. Relatedly, the Hue value can be expressed within the range of 0° to 360°, where 0° is red, 60° is yellow, 120° is green, 180° is cyan, 240° is blue, and 300° is red. Violet is displayed, and the saturation value can be expressed within the range of 0% to 100%. The sharper the color, the larger the value. Value value can be expressed within the range of 0% to 100%. Since the brighter the color, the larger the value, so if the value is 0%, it means black, and if the value is 100%, it means white. .
보정 값 추출부(120)는 상기 밝기 보정 테이블로부터 상기 복수의 범위 값들 중 상기 오차 값이 속하는 제1 범위 값을 추출하고, 상기 제1 범위 값에 대응되는 제1 밝기 보정 값을 추출한다.The correction
밝기 보정부(121)는 상기 복수의 픽셀들 각각에 대한 Value 값에 상기 제1 밝기 보정 값을 합산하는 연산을 수행함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행한다.The
예컨대, 명도 확인부(119)는 전술한 예와 같이, 상기 오차 값이 '25'로 양(+)의 수라면, 상기 복수의 픽셀들인 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각에 대하여, RGB 값을 HSV 값으로 변환한 후, 상기 HSV 값을 구성하는 Hue 값, Saturation 값, Value 값 중 Value 값의 크기를 확인할 수 있다.For example, as in the above-described example, if the error value is a positive (+) number as '25', the
구체적으로, 명도 확인부(119)는 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각에 대하여, 하기의 표 3과 같이 RGB 값을 HSV 값으로 변환할 수 있다.Specifically, the
이후, 명도 확인부(119)는 상기 복수의 픽셀인 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각에 대하여 Value 값의 크기인 '25', '71', '63', '75', '39' 및 '75'를 확인할 수 있다.Thereafter, the
이후, 보정 값 추출부(120)는 상기 표 2와 같은 밝기 보정 테이블로부터 상기 복수의 범위 값들 중 상기 오차 값인 '25'가 속하는 제1 범위 값으로 '20 이상 ~ 40 미만'을 추출할 수 있고, '20 이상 ~ 40 미만'에 대응되는 제1 밝기 보정 값으로 '10'을 추출할 수 있다.Thereafter, the correction
밝기 보정부(121)는 상기 복수의 픽셀들인 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각에 대한 Value 값인 '25', '71', '63', '75', '39' 및 '75'에 상기 제1 밝기 보정 값인 '10'을 합산하는 연산을 수행함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행할 수 있다.The
이때, 본 발명의 일실시예에 따르면, 밝기 보정부(121)는 좀 더 정밀한 밝기 보정을 수행하기 위해, 벡터 생성부(122), 유클리드 거리 연산부(123), 픽셀 확인부(124) 및 보정 처리부(125)를 포함할 수 있다.At this time, according to an embodiment of the present invention, the
벡터 생성부(122)는 상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 포함하는 3차원의 벡터를 생성한다.The
유클리드 거리 연산부(123)는 상기 복수의 픽셀들 중 상기 복수의 픽셀들 각각에 대한 밝기 값이 최소 값인 제1 픽셀을 선택한 후, 상기 제1 픽셀에 대응되는 3차원의 벡터와 상기 복수의 픽셀들 각각에 대응되는 3차원의 벡터 간의 유클리드 거리(Euclidean Distance)를 연산한다.The
여기서, 유클리드 거리란 두 벡터 간의 거리를 의미하는 것으로 하기의 수학식 1에 따라 연산될 수 있다.Here, the Euclidean distance means a distance between two vectors and can be calculated according to Equation 1 below.
상기 수학식 1에서 D는 유클리드 거리, pi와 qi는 두 벡터에 포함되어 있는 i번째 성분들을 의미한다. 두 벡터 간의 유클리드 거리가 작을수록 두 벡터는 유사한 벡터라고 볼 수 있고, 두 벡터 간의 유클리드 거리가 클수록 두 벡터는 비유사한 벡터라고 볼 수 있다.In Equation 1, D denotes a Euclidean distance, and p i and q i denote the i-th components included in the two vectors. As the Euclidean distance between two vectors is smaller, the two vectors can be regarded as similar vectors, and as the Euclidean distance between two vectors is larger, the two vectors can be regarded as dissimilar vectors.
픽셀 확인부(124)는 상기 복수의 픽셀들 중, 상기 제1 픽셀에 대응되는 3차원의 벡터와의 유클리드 거리가 기설정된(predetermined) 거리 이내로 연산된 3차원의 벡터를 갖는 적어도 하나의 제2 픽셀을 확인한다.The
보정 처리부(125)는 상기 복수의 픽셀들 중 상기 적어도 하나의 제2 픽셀에 대해 상기 적어도 하나의 제2 픽셀 각각에 대한 Value 값과, 상기 제1 밝기 보정 값에 기설정된 가중치(1보다 큰 값임)가 곱해진 값을 합산하고, 상기 복수의 픽셀들 중 상기 적어도 하나의 제2 픽셀을 제외한 나머지 픽셀에 대해 상기 나머지 픽셀 각각에 대한 Value 값과 상기 제1 밝기 보정 값을 합산함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 Value 값 조정을 수행한다.The
예컨대, 앞선 예를 따르면, 벡터 생성부(122)는 상기 복수의 픽셀들 중 '픽셀 1'에 대하여 RGB 값을 성분으로 포함하는 3차원의 벡터로 '[32 64 12]'를 생성할 수 있고, '픽셀 2'에 대하여 RGB 값을 성분으로 포함하는 3차원의 벡터로 '[150 96 180]'을 생성할 수 있으며, '픽셀 3'에 대하여 RGB 값을 성분으로 포함하는 3차원의 벡터로 '[96 32 160]'을 생성할 수 있다. For example, according to the previous example, the
또한, 벡터 생성부(122)는 상기 복수의 픽셀들 중 '픽셀 4'에 대하여 RGB 값을 성분으로 포함하는 3차원의 벡터로 '[128 192 64]'를 생성할 수 있고, '픽셀 5'에 대하여 RGB 값을 성분으로 포함하는 3차원의 벡터로 '[32 100 64]'를 생성할 수 있으며, '픽셀 6'에 대하여 RGB 값을 성분으로 포함하는 3차원의 벡터로 '[64 148 192]'를 생성할 수 있다.In addition, the
유클리드 거리 연산부(123)는 상기 복수의 픽셀들인 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 중 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각에 대한 밝기 값이 최소 값인 '픽셀 1'(밝기 값 '32')을 선택할 수 있고, ' 픽셀 1'에 대응되는 3차원의 벡터와 상기 복수의 픽셀들인 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각에 대응되는 3차원의 벡터 간의 유클리드 거리를 상기의 수학식 1에 따라 연산할 수 있다.The Euclidean
구체적으로, 유클리드 거리 연산부(123)는 '픽셀 1'에 대응되는 3차원의 벡터인 '[32 64 12]'와 상기 복수의 픽셀들 중 '픽셀 1'에 대응되는 3차원의 벡터인 '[32 64 12]' 간의 유클리드 거리를 '0'으로 연산할 수 있고, '픽셀 1'에 대응되는 3차원의 벡터인 '[32 64 12]'와 상기 복수의 픽셀들 중 '픽셀 2'에 대응되는 3차원의 벡터인 '[150 96 180]' 간의 유클리드 거리를 '약 208'로 연산할 수 있으며, '픽셀 1'에 대응되는 3차원의 벡터인 '[32 64 12]'와 상기 복수의 픽셀들 중 '픽셀 3'에 대응되는 3차원의 벡터인 '[96 32 160]' 간의 유클리드 거리를 '약 164'로 연산할 수 있다.Specifically, the
또한, 유클리드 거리 연산부(123)는 '픽셀 1'에 대응되는 3차원의 벡터인 '[32 64 12]'와 상기 복수의 픽셀들 중 '픽셀 4'에 대응되는 3차원의 벡터인 '[128 192 64]' 간의 유클리드 거리로 '약 168'을 연산할 수 있고, '픽셀 1'에 대응되는 3차원의 벡터인 '[32 64 12]'와 상기 복수의 픽셀들 중 '픽셀 5'에 대응되는 3차원의 벡터인 '[32 100 64]' 간의 유클리드 거리로 '약 63'을 연산할 수 있으며, '픽셀 1'에 대응되는 3차원의 벡터인 '[32 64 12]'와 상기 복수의 픽셀들 중 '픽셀 6'에 대응되는 3차원의 벡터인 '[64 148 192]' 간의 유클리드 거리로 '약 201'을 연산할 수 있다.In addition, the
만약, 상기 기설정된 거리가 '100'이라고 가정하면, 픽셀 확인부(124)는 '픽셀 1'에 대응되는 3차원의 벡터 '[32 64 12]'와의 유클리드 거리가 '100' 이내로 연산된 3차원의 벡터를 갖는 적어도 하나의 제2 픽셀로 '픽셀 1'(유클리드 거리 '0')과 '픽셀 5'(유클리드 거리 '약 63')를 확인할 수 있다.If, assuming that the preset distance is '100', the
그러면, 보정 처리부(125)는 상기 복수의 픽셀들인 '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 중 '픽셀 1'과 '픽셀 5'에 대해 Value 값과, 상기 제1 밝기 보정 값인 '10'에 기설정된 가중치가 곱해진 값을 합산하고, '픽셀 2', '픽셀 3', '픽셀 4' 및 '픽셀 6'에 대해 Value 값과 상기 제1 밝기 보정 값인 '10'을 합산함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 Value 값 조정을 수행할 수 있다.Then, the
구체적으로, 상기 기설정된 가중치가 '1.2'라면, 보정 처리부(125)는 상기 제1 밝기 보정 값인 '10'에 '1.2'를 곱하여 '12'를 가중 보정 값으로 연산한 후, '픽셀 1'에 대해서, '픽셀 1'의 Value 값인 '25'에 상기 가중 보정 값인 '12'를 합산하고, '픽셀 5'에 대해서, '픽셀 5'의 Value 값인 '39'에 상기 가중 보정 값인 '12'를 합산할 수 있다.Specifically, if the preset weight is '1.2', the
그리고, 보정 처리부(125)는 '픽셀 2'에 대해서는, '픽셀 2'의 Value 값인 '71'에 상기 제1 밝기 보정 값인 '10'을 합산하고, '픽셀 3'에 대해서는, '픽셀 3'의 Value 값인 '63'에 상기 제1 밝기 보정 값인 '10'을 합산하며, '픽셀 4'에 대해서는, '픽셀 4'의 Value 값인 '75'에 상기 제1 밝기 보정 값인 '10'을 합산하고, '픽셀 6'에 대해서는, '픽셀 6'의 Value 값인 '75'에 상기 제1 밝기 보정 값인 '10'을 합산함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 Value 값 조정을 수행할 수 있다.Further, for'pixel 2', the
결론적으로, 보정 처리부(125)는 '픽셀 1'의 Value 값을 '25'에서 '37'로, '픽셀 2'의 Value 값을 '71'에서 '81'로, '픽셀 3'의 Value 값을 '63'에서 '73'으로, '픽셀 4'의 Value 값을 '75'에서 '85'로, '픽셀 5'의 Value 값을 '39'에서 '51'로, '픽셀 6'의 Value 값을 '75'에서 '85'로 조정함으로써, '픽셀 1', '픽셀 2', '픽셀 3', '픽셀 4', '픽셀 5' 및 '픽셀 6' 각각의 밝기를 증가시킬 수 있다. In conclusion, the
또한, 본 발명의 일실시예에 따르면, 보정 이미지 생성부(115)는 상기 오차 값이 음(-)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행하지 않음으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 생성하지 않을 수 있다.In addition, according to an embodiment of the present invention, when the error value is a negative (-) number, the corrected
예컨대, 상기 복수의 픽셀들에 대한 밝기 값의 상기 평균 값이 '103'이고, 상기 밝기 기준치가 앞선 예와 달리 '100'이라고 가정하면, 오차 산출부(114)는 상기 밝기 기준치인 '100'으로부터 상기 평균 값인 '103'을 차감함으로써, 오차 값으로 '-3'을 산출할 수 있다.For example, assuming that the average value of the brightness values of the plurality of pixels is '103', and the brightness reference value is '100', unlike the previous example, the
이렇게, 오차 산출부(114)에 의해 상기 오차 값으로 음(-)의 수인 '-3'이 산출된 경우, 보정 이미지 생성부(115)는 상기 복수의 픽셀들의 밝기 값에 대해, 밝기 보정을 수행할 필요가 없는 상태로 보고, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행하지 않을 수 있다.In this way, when'-3', which is a negative (-) number, is calculated by the
이미지 표시부(116)는 상기 제1 이미지에 대한 상기 보정 이미지가 생성되면, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지와 상기 제1 이미지에 대한 상기 복제 이미지 중 어느 하나의 이미지가 상기 제1 이미지에 대한 최종 이미지로 선택될 수 있도록, 상기 제1 이미지에 대한 상기 복제 이미지와 상기 제1 이미지에 대한 상기 보정 이미지를 화면 상에 동시에 표시한다.When the correction image for the first image is generated, the
최종 이미지 선택부(117)는 상기 사용자에 의해 상기 제1 이미지에 대한 상기 복제 이미지가 선택되면, 상기 제1 이미지에 대한 상기 보정 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 복제 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하고, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지가 선택되면, 상기 제1 이미지에 대한 상기 복제 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택한다.When the duplicate image for the first image is selected by the user, the final
즉, 최종 이미지 선택부(117)는 상기 사용자의 상기 밝기 보정 명령에 따라 상기 제1 이미지에 대한 상기 보정 이미지를 생성한 이후에도, 상기 사용자의 선택에 따라 상기 제1 이미지의 보정 전 이미지로 되돌릴 수 있도록 지원할 수 있다.That is, even after generating the corrected image for the first image according to the user's brightness correction command, the final
도 2는 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법을 도시한 순서도이다.2 is a flowchart illustrating a method of operating an electronic device capable of performing correction processing to improve brightness of a dark image according to an exemplary embodiment of the present invention.
단계(S210)에서는 사용자로부터 제1 이미지에 대한 밝기 보정 명령이 수신되면, 상기 제1 이미지에 대한 복제 이미지를 생성한 후, 상기 제1 이미지를 구성하는 복수의 픽셀(pixel)들 각각에 대한 RGB 값을 추출한다.In step S210, when a brightness correction command for the first image is received from the user, a duplicate image for the first image is generated, and then RGB for each of a plurality of pixels constituting the first image is generated. Extract the value.
단계(S220)에서는 상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값 중 중간 크기의 값을 갖는 채널의 색상 값을 밝기 값으로 추출함으로써, 상기 복수의 픽셀들 각각에 대한 밝기 값을 산출한다.In step S220, for each of the plurality of pixels, a color value of a channel having an intermediate size among the red color value, the green color value, and the blue color value constituting the RGB value is extracted as a brightness value. The brightness value for each of the pixels of is calculated.
단계(S230)에서는 상기 복수의 픽셀들에 대한 밝기 값의 평균 값을 연산한다.In step S230, an average value of brightness values of the plurality of pixels is calculated.
단계(S240)에서는 미리 정해진 밝기 기준치로부터 상기 평균 값을 차감함으로써, 오차 값을 산출한다.In step S240, an error value is calculated by subtracting the average value from a predetermined brightness reference value.
단계(S250)에서는 상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행함으로써, 상기 제1 이미지에 대한 보정 이미지를 생성한다.In step S250, when the error value is a positive number, brightness correction is performed to increase the brightness of each of the plurality of pixels, thereby generating a correction image for the first image.
단계(S260)에서는 상기 제1 이미지에 대한 상기 보정 이미지가 생성되면, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지와 상기 제1 이미지에 대한 상기 복제 이미지 중 어느 하나의 이미지가 상기 제1 이미지에 대한 최종 이미지로 선택될 수 있도록, 상기 제1 이미지에 대한 상기 복제 이미지와 상기 제1 이미지에 대한 상기 보정 이미지를 화면 상에 동시에 표시한다.In step S260, when the correction image for the first image is generated, one of the correction image for the first image and the duplicate image for the first image by the user The duplicate image for the first image and the correction image for the first image are simultaneously displayed on the screen so that the image can be selected as a final image for the image.
단계(S270)에서는 상기 사용자에 의해 상기 제1 이미지에 대한 상기 복제 이미지가 선택되면, 상기 제1 이미지에 대한 상기 보정 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 복제 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하고, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지가 선택되면, 상기 제1 이미지에 대한 상기 복제 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택한다.In step S270, if the duplicate image for the first image is selected by the user, the correction image for the first image is deleted, so that the duplicate image for the first image is sent to the brightness correction command. When the corrected image for the first image is selected by the user and the corrected image for the first image is selected, the corrected image for the first image is corrected for the brightness by deleting the duplicate image for the first image. Select the final image according to the command.
이때, 본 발명의 일실시예에 따르면, 단계(S250)에서는 상한 값과 하한 값으로 구성된 미리 정해진 서로 다른 복수의 범위 값들과 상기 복수의 범위 값들 각각에 대응되는 미리 정해진 밝기 보정 값이 기록되어 있는 밝기 보정 테이블을 저장하여 유지하는 단계, 상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각에 대하여, RGB 값을 HSV 값으로 변환한 후, 상기 HSV 값을 구성하는 Hue 값, Saturation 값, Value 값 중 Value 값의 크기를 확인하는 단계, 상기 밝기 보정 테이블로부터 상기 복수의 범위 값들 중 상기 오차 값이 속하는 제1 범위 값을 추출하고, 상기 제1 범위 값에 대응되는 제1 밝기 보정 값을 추출하는 단계 및 상기 복수의 픽셀들 각각에 대한 Value 값에 상기 제1 밝기 보정 값을 합산하는 연산을 수행함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행하는 단계를 포함할 수 있다.In this case, according to an embodiment of the present invention, in step S250, a plurality of different predetermined range values consisting of an upper limit value and a lower limit value and a predetermined brightness correction value corresponding to each of the plurality of range values are recorded. Storing and maintaining a brightness correction table, when the error value is a positive number, a Hue value constituting the HSV value after converting an RGB value to an HSV value for each of the plurality of pixels, Checking the size of the Value value among the saturation value and the Value value, extracting a first range value to which the error value belongs from the plurality of range values from the brightness correction table, and a first brightness corresponding to the first range value Performing brightness correction to increase brightness of each of the plurality of pixels by extracting a correction value and performing an operation of summing the first brightness correction value to Value values for each of the plurality of pixels It may include.
또한, 본 발명의 일실시예에 따르면, 단계(S250)에서는 상기 오차 값이 음(-)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행하지 않음으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 생성하지 않을 수 있다.In addition, according to an embodiment of the present invention, in step S250, when the error value is a negative (-) number, brightness correction for increasing the brightness of each of the plurality of pixels is not performed. The correction image for 1 image may not be generated.
또한, 본 발명의 일실시예에 따르면, 상기 밝기 보정을 수행하는 단계는 상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 포함하는 3차원의 벡터를 생성하는 단계, 상기 복수의 픽셀들 중 상기 복수의 픽셀들 각각에 대한 밝기 값이 최소 값인 제1 픽셀을 선택한 후, 상기 제1 픽셀에 대응되는 3차원의 벡터와 상기 복수의 픽셀들 각각에 대응되는 3차원의 벡터 간의 유클리드 거리를 연산하는 단계, 상기 복수의 픽셀들 중, 상기 제1 픽셀에 대응되는 3차원의 벡터와의 유클리드 거리가 기설정된 거리 이내로 연산된 3차원의 벡터를 갖는 적어도 하나의 제2 픽셀을 확인하는 단계 및 상기 복수의 픽셀들 중 상기 적어도 하나의 제2 픽셀에 대해 상기 적어도 하나의 제2 픽셀 각각에 대한 Value 값과, 상기 제1 밝기 보정 값에 기설정된 가중치가 곱해진 값을 합산하고, 상기 복수의 픽셀들 중 상기 적어도 하나의 제2 픽셀을 제외한 나머지 픽셀에 대해 상기 나머지 픽셀 각각에 대한 Value 값과 상기 제1 밝기 보정 값을 합산함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 Value 값 조정을 수행하는 단계를 포함할 수 있다.In addition, according to an embodiment of the present invention, the performing of the brightness correction includes, for each of the plurality of pixels, a red color value, a green color value, and a blue color value constituting an RGB value. Generating a dimensional vector, selecting a first pixel having a minimum brightness value for each of the plurality of pixels among the plurality of pixels, and then selecting a three-dimensional vector corresponding to the first pixel and the plurality of pixels Computing a Euclidean distance between three-dimensional vectors corresponding to each of the plurality of pixels, a three-dimensional vector in which a Euclidean distance between the plurality of pixels and a three-dimensional vector corresponding to the first pixel is calculated within a preset distance Checking at least one second pixel having a and a Value value for each of the at least one second pixel for the at least one second pixel among the plurality of pixels, and the first brightness correction value. By summing a value multiplied by a set weight, and summing a Value value for each of the remaining pixels and the first brightness correction value for the remaining pixels other than the at least one second pixel among the plurality of pixels, the plurality of pixels It may include the step of performing a value adjustment to increase the brightness of each of the pixels of.
이상, 도 2를 참조하여 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법에 대해 설명하였다. 여기서, 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법은 도 1을 이용하여 설명한 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치(110)의 동작에 대한 구성과 대응될 수 있으므로, 이에 대한 보다 상세한 설명은 생략하기로 한다.In the above, a method of operating an electronic device capable of performing a correction process for improving brightness of a dark image according to an embodiment of the present invention has been described with reference to FIG. 2. Here, the method of operating an electronic device capable of correcting the brightness of a dark image according to an embodiment of the present invention is an
본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.The method of operating an electronic device capable of performing correction processing for improving the brightness of a dark image according to an embodiment of the present invention may be implemented as a computer program stored in a storage medium to be executed through a combination with a computer.
또한, 본 발명의 일실시예에 따른 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 컴퓨터 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. In addition, the method of operating an electronic device capable of correction processing to improve the brightness of a dark image according to an embodiment of the present invention is implemented in the form of a computer program command for execution through a combination with a computer and recorded in a computer-readable medium. Can be. The computer-readable medium may include program instructions, data files, data structures, etc. alone or in combination. The program instructions recorded in the medium may be specially designed and configured for the present invention, or may be known and usable to those skilled in computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic media such as floptical disks. -A hardware device specially configured to store and execute program instructions such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of the program instructions include not only machine language codes such as those produced by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like.
이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. As described above, in the present invention, specific matters such as specific components, etc., and limited embodiments and drawings have been described, but this is provided only to help a more general understanding of the present invention, and the present invention is not limited to the above embodiments. , If a person of ordinary skill in the field to which the present invention belongs, various modifications and variations are possible from these descriptions.
따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Therefore, the spirit of the present invention is limited to the described embodiments and should not be defined, and all things that are equivalent or equivalent to the claims as well as the claims to be described later fall within the scope of the spirit of the present invention. .
110: 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치
111: 픽셀 값 추출부 112: 밝기 값 산출부
113: 평균 연산부 114: 오차 산출부
115: 보정 이미지 생성부 116: 이미지 표시부
117: 최종 이미지 선택부 118: 밝기 보정 테이블 유지부
119: 명도 확인부 120: 보정 값 추출부
121: 밝기 보정부 122: 벡터 생성부
123: 유클리드 거리 연산부 124: 픽셀 확인부
125: 보정 처리부110: Electronic device capable of correction processing to improve the brightness of dark images
111: pixel value extraction unit 112: brightness value calculation unit
113: average calculation unit 114: error calculation unit
115: corrected image generation unit 116: image display unit
117: final image selection unit 118: brightness correction table holding unit
119: brightness check unit 120: correction value extraction unit
121: brightness correction unit 122: vector generation unit
123: Euclidean distance calculating unit 124: Pixel checking unit
125: correction processing unit
Claims (10)
상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값 중 중간 크기의 값을 갖는 채널의 색상 값을 밝기 값으로 추출함으로써, 상기 복수의 픽셀들 각각에 대한 밝기 값을 산출하는 밝기 값 산출부;
상기 복수의 픽셀들에 대한 밝기 값의 평균 값을 연산하는 평균 연산부;
미리 정해진 밝기 기준치로부터 상기 평균 값을 차감함으로써, 오차 값을 산출하는 오차 산출부;
상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행함으로써, 상기 제1 이미지에 대한 보정 이미지를 생성하는 보정 이미지 생성부;
상기 제1 이미지에 대한 상기 보정 이미지가 생성되면, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지와 상기 제1 이미지에 대한 상기 복제 이미지 중 어느 하나의 이미지가 상기 제1 이미지에 대한 최종 이미지로 선택될 수 있도록, 상기 제1 이미지에 대한 상기 복제 이미지와 상기 제1 이미지에 대한 상기 보정 이미지를 화면 상에 동시에 표시하는 이미지 표시부; 및
상기 사용자에 의해 상기 제1 이미지에 대한 상기 복제 이미지가 선택되면, 상기 제1 이미지에 대한 상기 보정 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 복제 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하고, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지가 선택되면, 상기 제1 이미지에 대한 상기 복제 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하는 최종 이미지 선택부
를 포함하고,
상기 보정 이미지 생성부는
상한 값과 하한 값으로 구성된 미리 정해진 서로 다른 복수의 범위 값들과 상기 복수의 범위 값들 각각에 대응되는 미리 정해진 밝기 보정 값이 기록되어 있는 밝기 보정 테이블을 저장하여 유지하는 밝기 보정 테이블 유지부;
상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각에 대하여, RGB 값을 HSV 값으로 변환한 후, 상기 HSV 값을 구성하는 Hue(색조) 값, Saturation(채도) 값, Value(명도) 값 중 Value 값의 크기를 확인하는 명도 확인부;
상기 밝기 보정 테이블로부터 상기 복수의 범위 값들 중 상기 오차 값이 속하는 제1 범위 값을 추출하고, 상기 제1 범위 값에 대응되는 제1 밝기 보정 값을 추출하는 보정 값 추출부; 및
상기 복수의 픽셀들 각각에 대한 Value 값에 상기 제1 밝기 보정 값을 합산하는 연산을 수행함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행하는 밝기 보정부
를 포함하는 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치.A pixel for extracting an RGB value for each of a plurality of pixels constituting the first image after generating a duplicate image for the first image when a brightness correction command for the first image is received from the user A value extraction unit;
For each of the plurality of pixels, by extracting a color value of a channel having a medium-sized value among the red color value, the green color value, and the blue color value constituting the RGB value as a brightness value, each of the plurality of pixels is A brightness value calculator that calculates a brightness value for the corresponding brightness value;
An average calculation unit that calculates an average value of brightness values of the plurality of pixels;
An error calculator for calculating an error value by subtracting the average value from a predetermined brightness reference value;
A corrected image generator configured to generate a corrected image for the first image by performing brightness correction to increase brightness of each of the plurality of pixels when the error value is a positive number;
When the correction image for the first image is generated, any one of the correction image for the first image and the duplicate image for the first image by the user is a final image for the first image An image display unit that simultaneously displays the duplicate image for the first image and the correction image for the first image so that it can be selected as. And
When the duplicate image for the first image is selected by the user, the duplicate image for the first image is selected as the final image according to the brightness correction command by deleting the correction image for the first image And, when the corrected image for the first image is selected by the user, the duplicate image for the first image is deleted, so that the corrected image for the first image is a final image according to the brightness correction command. The final image selection section to select with
Including,
The corrected image generation unit
A brightness correction table holding unit that stores and maintains a brightness correction table in which a plurality of different predetermined range values consisting of an upper limit value and a lower limit value and a predetermined brightness correction value corresponding to each of the plurality of range values are recorded;
When the error value is a positive number, for each of the plurality of pixels, after converting the RGB value to an HSV value, a Hue (hue) value, a saturation (saturation) value, and a Value constituting the HSV value (Brightness) A brightness check unit that checks the size of the Value value among the values;
A correction value extracting unit for extracting a first range value to which the error value belongs from among the plurality of range values from the brightness correction table, and extracting a first brightness correction value corresponding to the first range value; And
A brightness correction unit that performs brightness correction to increase the brightness of each of the plurality of pixels by performing an operation of summing the first brightness correction value to the Value values of each of the plurality of pixels
Electronic device capable of a correction process for improving the brightness of a dark image comprising a.
상기 보정 이미지 생성부는
상기 오차 값이 음(-)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행하지 않음으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 생성하지 않는 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치.The method of claim 1,
The corrected image generation unit
When the error value is a negative (-) number, brightness correction for increasing the brightness of each of the plurality of pixels is not performed, thereby reducing the brightness of a dark image that does not generate the corrected image for the first image. An electronic device capable of correction processing to improve.
상기 밝기 보정부는
상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 포함하는 3차원의 벡터를 생성하는 벡터 생성부;
상기 복수의 픽셀들 중 상기 복수의 픽셀들 각각에 대한 밝기 값이 최소 값인 제1 픽셀을 선택한 후, 상기 제1 픽셀에 대응되는 3차원의 벡터와 상기 복수의 픽셀들 각각에 대응되는 3차원의 벡터 간의 유클리드 거리(Euclidean Distance)를 연산하는 유클리드 거리 연산부;
상기 복수의 픽셀들 중, 상기 제1 픽셀에 대응되는 3차원의 벡터와의 유클리드 거리가 기설정된(predetermined) 거리 이내로 연산된 3차원의 벡터를 갖는 적어도 하나의 제2 픽셀을 확인하는 픽셀 확인부; 및
상기 복수의 픽셀들 중 상기 적어도 하나의 제2 픽셀에 대해 상기 적어도 하나의 제2 픽셀 각각에 대한 Value 값과, 상기 제1 밝기 보정 값에 기설정된 가중치(1보다 큰 값임)가 곱해진 값을 합산하고, 상기 복수의 픽셀들 중 상기 적어도 하나의 제2 픽셀을 제외한 나머지 픽셀에 대해 상기 나머지 픽셀 각각에 대한 Value 값과 상기 제1 밝기 보정 값을 합산함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 Value 값 조정을 수행하는 보정 처리부
를 포함하는 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치.The method of claim 1,
The brightness correction unit
For each of the plurality of pixels, a vector generator generating a three-dimensional vector including a red color value, a green color value, and a blue color value constituting an RGB value as components;
After selecting a first pixel whose brightness value for each of the plurality of pixels is the minimum value among the plurality of pixels, a 3D vector corresponding to the first pixel and a 3D vector corresponding to each of the plurality of pixels are selected. A Euclidean distance calculating unit for calculating a Euclidean distance between vectors;
A pixel identification unit that checks at least one second pixel having a three-dimensional vector calculated within a predetermined distance in which a Euclidean distance with a three-dimensional vector corresponding to the first pixel is within a predetermined distance among the plurality of pixels ; And
A value obtained by multiplying a value of each of the at least one second pixel with respect to the at least one second pixel among the plurality of pixels and a predetermined weight (a value greater than 1) by the first brightness correction value Summing, and summing the value of each of the remaining pixels and the first brightness correction value for the remaining pixels other than the at least one second pixel among the plurality of pixels, thereby increasing the brightness of each of the plurality of pixels. Correction processing unit that adjusts the value to increase
Electronic device capable of a correction process for improving the brightness of a dark image comprising a.
상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값 중 중간 크기의 값을 갖는 채널의 색상 값을 밝기 값으로 추출함으로써, 상기 복수의 픽셀들 각각에 대한 밝기 값을 산출하는 단계;
상기 복수의 픽셀들에 대한 밝기 값의 평균 값을 연산하는 단계;
미리 정해진 밝기 기준치로부터 상기 평균 값을 차감함으로써, 오차 값을 산출하는 단계;
상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행함으로써, 상기 제1 이미지에 대한 보정 이미지를 생성하는 단계;
상기 제1 이미지에 대한 상기 보정 이미지가 생성되면, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지와 상기 제1 이미지에 대한 상기 복제 이미지 중 어느 하나의 이미지가 상기 제1 이미지에 대한 최종 이미지로 선택될 수 있도록, 상기 제1 이미지에 대한 상기 복제 이미지와 상기 제1 이미지에 대한 상기 보정 이미지를 화면 상에 동시에 표시하는 단계; 및
상기 사용자에 의해 상기 제1 이미지에 대한 상기 복제 이미지가 선택되면, 상기 제1 이미지에 대한 상기 보정 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 복제 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하고, 상기 사용자에 의해 상기 제1 이미지에 대한 상기 보정 이미지가 선택되면, 상기 제1 이미지에 대한 상기 복제 이미지를 삭제함으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 상기 밝기 보정 명령에 따른 최종 이미지로 선택하는 단계
를 포함하고,
상기 제1 이미지에 대한 보정 이미지를 생성하는 단계는
상한 값과 하한 값으로 구성된 미리 정해진 서로 다른 복수의 범위 값들과 상기 복수의 범위 값들 각각에 대응되는 미리 정해진 밝기 보정 값이 기록되어 있는 밝기 보정 테이블을 저장하여 유지하는 단계;
상기 오차 값이 양(+)의 수인 경우, 상기 복수의 픽셀들 각각에 대하여, RGB 값을 HSV 값으로 변환한 후, 상기 HSV 값을 구성하는 Hue(색조) 값, Saturation(채도) 값, Value(명도) 값 중 Value 값의 크기를 확인하는 단계;
상기 밝기 보정 테이블로부터 상기 복수의 범위 값들 중 상기 오차 값이 속하는 제1 범위 값을 추출하고, 상기 제1 범위 값에 대응되는 제1 밝기 보정 값을 추출하는 단계; 및
상기 복수의 픽셀들 각각에 대한 Value 값에 상기 제1 밝기 보정 값을 합산하는 연산을 수행함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행하는 단계
를 포함하는 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법.When a brightness correction command for the first image is received from a user, generating a duplicate image for the first image and then extracting RGB values for each of a plurality of pixels constituting the first image ;
For each of the plurality of pixels, by extracting a color value of a channel having a medium-sized value among the red color value, the green color value, and the blue color value constituting the RGB value as a brightness value, each of the plurality of pixels is Calculating a brightness value for;
Calculating an average value of brightness values for the plurality of pixels;
Calculating an error value by subtracting the average value from a predetermined brightness reference value;
Generating a corrected image for the first image by performing brightness correction to increase brightness of each of the plurality of pixels when the error value is a positive number;
When the correction image for the first image is generated, any one of the correction image for the first image and the duplicate image for the first image by the user is a final image for the first image Simultaneously displaying the duplicate image for the first image and the corrected image for the first image on a screen so that it can be selected as. And
When the duplicate image for the first image is selected by the user, the duplicate image for the first image is selected as the final image according to the brightness correction command by deleting the correction image for the first image And, when the corrected image for the first image is selected by the user, the duplicate image for the first image is deleted, so that the corrected image for the first image is a final image according to the brightness correction command. Steps to choose
Including,
Generating a correction image for the first image
Storing and maintaining a brightness correction table in which a plurality of different predetermined range values consisting of an upper limit value and a lower limit value and a predetermined brightness correction value corresponding to each of the plurality of range values are recorded;
When the error value is a positive number, for each of the plurality of pixels, after converting an RGB value to an HSV value, a Hue (hue) value, a saturation (saturation) value, and a Value constituting the HSV value Checking the size of the Value value among the (brightness) values;
Extracting a first range value to which the error value belongs from among the plurality of range values from the brightness correction table, and extracting a first brightness correction value corresponding to the first range value; And
Performing brightness correction to increase brightness of each of the plurality of pixels by performing an operation of summing the first brightness correction value to Value values of each of the plurality of pixels
A method of operating an electronic device capable of performing correction processing for improving the brightness of a dark image comprising a.
상기 제1 이미지에 대한 보정 이미지를 생성하는 단계는
상기 오차 값이 음(-)의 수인 경우, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 밝기 보정을 수행하지 않음으로써, 상기 제1 이미지에 대한 상기 보정 이미지를 생성하지 않는 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법.The method of claim 5,
Generating a correction image for the first image
When the error value is a negative (-) number, brightness correction for increasing the brightness of each of the plurality of pixels is not performed, thereby reducing the brightness of a dark image that does not generate the corrected image for the first image. A method of operating an electronic device capable of correction processing for improvement.
상기 밝기 보정을 수행하는 단계는
상기 복수의 픽셀들 각각에 대하여, RGB 값을 구성하는 Red 색상 값, Green 색상 값 및 Blue 색상 값을 성분으로 포함하는 3차원의 벡터를 생성하는 단계;
상기 복수의 픽셀들 중 상기 복수의 픽셀들 각각에 대한 밝기 값이 최소 값인 제1 픽셀을 선택한 후, 상기 제1 픽셀에 대응되는 3차원의 벡터와 상기 복수의 픽셀들 각각에 대응되는 3차원의 벡터 간의 유클리드 거리(Euclidean Distance)를 연산하는 단계;
상기 복수의 픽셀들 중, 상기 제1 픽셀에 대응되는 3차원의 벡터와의 유클리드 거리가 기설정된(predetermined) 거리 이내로 연산된 3차원의 벡터를 갖는 적어도 하나의 제2 픽셀을 확인하는 단계; 및
상기 복수의 픽셀들 중 상기 적어도 하나의 제2 픽셀에 대해 상기 적어도 하나의 제2 픽셀 각각에 대한 Value 값과, 상기 제1 밝기 보정 값에 기설정된 가중치(1보다 큰 값임)가 곱해진 값을 합산하고, 상기 복수의 픽셀들 중 상기 적어도 하나의 제2 픽셀을 제외한 나머지 픽셀에 대해 상기 나머지 픽셀 각각에 대한 Value 값과 상기 제1 밝기 보정 값을 합산함으로써, 상기 복수의 픽셀들 각각의 밝기를 증가시키기 위한 Value 값 조정을 수행하는 단계
를 포함하는 어두운 이미지의 밝기를 개선하기 위한 보정 처리가 가능한 전자 장치의 동작 방법.The method of claim 5,
Performing the brightness correction
For each of the plurality of pixels, generating a three-dimensional vector including a red color value, a green color value, and a blue color value constituting an RGB value as components;
After selecting a first pixel whose brightness value for each of the plurality of pixels is the minimum value among the plurality of pixels, a 3D vector corresponding to the first pixel and a 3D vector corresponding to each of the plurality of pixels are selected. Calculating a Euclidean distance between vectors;
Checking at least one second pixel, among the plurality of pixels, having a three-dimensional vector calculated within a predetermined distance in which a Euclidean distance from a three-dimensional vector corresponding to the first pixel is within a predetermined distance; And
A value obtained by multiplying a value of each of the at least one second pixel with respect to the at least one second pixel among the plurality of pixels and a predetermined weight (a value greater than 1) by the first brightness correction value Summing, and summing the value of each of the remaining pixels and the first brightness correction value for the remaining pixels other than the at least one second pixel among the plurality of pixels, thereby increasing the brightness of each of the plurality of pixels. Steps to perform value adjustment to increase
A method of operating an electronic device capable of performing correction processing for improving the brightness of a dark image comprising a
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020190168506A KR102215607B1 (en) | 2019-12-17 | 2019-12-17 | Electronic device capable of correction to improve the brightness of dark images and operating method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020190168506A KR102215607B1 (en) | 2019-12-17 | 2019-12-17 | Electronic device capable of correction to improve the brightness of dark images and operating method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR102215607B1 true KR102215607B1 (en) | 2021-02-15 |
Family
ID=74560705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020190168506A KR102215607B1 (en) | 2019-12-17 | 2019-12-17 | Electronic device capable of correction to improve the brightness of dark images and operating method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102215607B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113689333A (en) * | 2021-08-23 | 2021-11-23 | 深圳前海微众银行股份有限公司 | Image enhancement method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009060516A1 (en) * | 2007-11-06 | 2009-05-14 | Fujitsu Limited | Image correction device, image correction method, and image correction program |
JP2009271096A (en) * | 2008-04-30 | 2009-11-19 | Seiko Epson Corp | Image processor, integrated circuit device and electronic apparatus |
JP2013218349A (en) * | 2013-06-12 | 2013-10-24 | Tatsumi Denshi Kogyo Kk | Imaging apparatus for game, imaging method for game, and computer program |
KR101874738B1 (en) * | 2017-02-10 | 2018-07-04 | 국민대학교산학협력단 | Apparatus and method for generating hdr image from ldr image through image processing |
-
2019
- 2019-12-17 KR KR1020190168506A patent/KR102215607B1/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009060516A1 (en) * | 2007-11-06 | 2009-05-14 | Fujitsu Limited | Image correction device, image correction method, and image correction program |
JP2009271096A (en) * | 2008-04-30 | 2009-11-19 | Seiko Epson Corp | Image processor, integrated circuit device and electronic apparatus |
JP2013218349A (en) * | 2013-06-12 | 2013-10-24 | Tatsumi Denshi Kogyo Kk | Imaging apparatus for game, imaging method for game, and computer program |
KR101874738B1 (en) * | 2017-02-10 | 2018-07-04 | 국민대학교산학협력단 | Apparatus and method for generating hdr image from ldr image through image processing |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113689333A (en) * | 2021-08-23 | 2021-11-23 | 深圳前海微众银行股份有限公司 | Image enhancement method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11455516B2 (en) | Image lighting methods and apparatuses, electronic devices, and storage media | |
US11323676B2 (en) | Image white balance processing system and method | |
US8666156B2 (en) | Image-based backgrounds for images | |
KR101942987B1 (en) | Method, system for removing background of a video, and a computer-readable storage device | |
JP2009038523A (en) | Unit and method for processing image | |
CN112328345B (en) | Method, apparatus, electronic device and readable storage medium for determining theme colors | |
JP2007014008A (en) | Automatic color correction for sequences of images | |
CN103440674B (en) | A kind of rapid generation of digital picture wax crayon specially good effect | |
JP2005151282A (en) | Apparatus and method of image processing, and program | |
CN108230256A (en) | Image processing method, device, computer installation and computer readable storage medium | |
CN105808645B (en) | Picture processing method and device and electronic equipment | |
JP2017187994A (en) | Image processing apparatus, image processing method, image processing system, and program | |
US10043098B2 (en) | Method of detecting color object by using noise and system for detecting light emitting apparatus by using noise | |
JP5943112B1 (en) | Image processing apparatus, image processing system, and program | |
KR102215607B1 (en) | Electronic device capable of correction to improve the brightness of dark images and operating method thereof | |
US10621769B2 (en) | Simplified lighting compositing | |
US8462171B2 (en) | Saturation contrast image enhancement | |
KR102215603B1 (en) | Electronic device capable of partial correction of an image to improve the value of dark areas within the image and operating method thereof | |
JP5824423B2 (en) | Illumination light color estimation device, illumination light color estimation method, and illumination light color estimation program | |
US20050219259A1 (en) | Color correction of images while maintaining constant luminance | |
CN113762058A (en) | Video synthesis method and device, computer equipment and storage medium | |
CN113191376A (en) | Image processing method, image processing device, electronic equipment and readable storage medium | |
Zhou et al. | Saliency preserving decolorization | |
WO2018066344A1 (en) | Image processing device, image processing method and image processing program | |
CN115118947B (en) | Image processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |