KR102401018B1 - Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof - Google Patents

Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof Download PDF

Info

Publication number
KR102401018B1
KR102401018B1 KR1020220010688A KR20220010688A KR102401018B1 KR 102401018 B1 KR102401018 B1 KR 102401018B1 KR 1020220010688 A KR1020220010688 A KR 1020220010688A KR 20220010688 A KR20220010688 A KR 20220010688A KR 102401018 B1 KR102401018 B1 KR 102401018B1
Authority
KR
South Korea
Prior art keywords
value
correction
reference value
histogram
limit value
Prior art date
Application number
KR1020220010688A
Other languages
Korean (ko)
Inventor
정인택
박성기
권주몽
Original Assignee
(주)디라직
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by (주)디라직 filed Critical (주)디라직
Priority to KR1020220010688A priority Critical patent/KR102401018B1/en
Application granted granted Critical
Publication of KR102401018B1 publication Critical patent/KR102401018B1/en

Links

Images

Classifications

    • G06T5/001
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4015Image demosaicing, e.g. colour filter arrays [CFA] or Bayer patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/646Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/67Circuits for processing colour signals for matrixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

The present invention relates to a low-visibility digital image correction apparatus capable of forced setting within a correction section and a method thereof. According to the present invention, the low-visibility digital image correction apparatus comprises: an input unit receiving a target image to be corrected from an image server; a pre-processing unit acquiring a pixel value corresponding to blue (B) from RGB and a pixel value corresponding to brightness for each of a plurality of pixels included in the target image; an initial value extraction unit using the pixel value corresponding to the brightness to acquire a first histogram, using the pixel value corresponding to the blue (B) to acquire a second histogram, acquiring a first initial value from the first histogram, and acquiring a second initial value from the second histogram; a correction section extraction unit smoothing the first histogram to acquire a first reference value, smoothing the second histogram to acquire a second reference value, and using the first reference value and the second reference value to acquire each correction section; a control unit matching a correction interval for the brightness acquired through the first reference value with the correction interval for blue (B) acquired through the second reference value and using the matched correction interval to determine a final correction interval; and a correction unit calculating an average value of the pixel values included in the extracted final correction section and forcibly correcting the brightness of the target image in response to the calculated average value.

Description

보정 구간내 강제 설정이 가능한 저시정 디지털 이미지 보정 장치 및 그 방법{Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof}Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof

본 발명은 보정 구간내 강제 설정이 가능한 저시정 디지털 이미지 보정 장치 및 그 방법에 관한 것으로서, 더욱 상세하게 설명하면 이미지 데이터에 대한 보정 표준 데이터를 설정하고, 설정된 보정 표준 데이터를 기반으로 이미지를 보정하는 저시정 디지털 이미지 보정 장치 및 그 방법에 관한 것이다. The present invention relates to a low-visibility digital image correction apparatus and method capable of forcibly setting within a correction section, and in more detail, sets correction standard data for image data, and corrects the image based on the set correction standard data It relates to a low-visibility digital image correction apparatus and method therefor.

디지털 영상 처리는 목적에 따라 다양한 알고리즘을 이용하여 아날로그 신호로 구성된 사진 영상을 디지털 신호로 변환하는 것을 나타낸다. 디지털 영상 처리는 화소 점 처리, 영역 처리, 기하학 처리 및 프레임 처리를 수행하여 밝기를 수정하거나 선명도를 높여 영상의 인식률을 높일 수 있다. Digital image processing refers to converting a photographic image composed of an analog signal into a digital signal using various algorithms depending on the purpose. In digital image processing, pixel point processing, area processing, geometry processing, and frame processing may be performed to correct brightness or increase sharpness to increase image recognition rate.

그러나, 아날로그 신호를 디지털 신호로 변환할 경우에는 데이터의 양이 방대해지므로, 동일한 주파수 대역폭을 갖는 매체(유선, 전파)를 통해 디지털 신호를 보내려면 아날로그 신호를 보내는 시간보다 16~24의 시간이 소요되거나 같은 시간에 보내려면 16~24배의 매체수가 필요하게 된다. However, when converting an analog signal to a digital signal, the amount of data becomes vast, so it takes 16 to 24 hours to send a digital signal through a medium (wired, radio) with the same frequency bandwidth than to send an analog signal. or 16 to 24 times the number of media is required to send them at the same time.

따라서, 디지털화에 의해 필연적으로 증가하는 데이터의 양을 화질, 음질의 저하를 최소화시키며 압축시키는 다양한 기술이 개발되고 있다. Accordingly, various technologies have been developed for compressing the amount of data that is inevitably increased due to digitization while minimizing deterioration in image quality and sound quality.

그러나, 대용량의 데이터는 전송망과 중간 장비의 데이터 처리 한계에 따라 압축과 해체를 반복하여 수행하게 되므로, 영상 데이터에 대한 손실이 발생될 수 있다. 그리고, 데이터 손실에 따라 수신된 영상을 최종 표출 할 경우, 출력되는 영상이 초기의 영상보다 더 흐리게 또는 더 어둡게 출력되어 영상에 대한 식별력을 저하시키는 문제점이 있었다. However, since large-capacity data is repeatedly compressed and decompressed according to the data processing limit of the transmission network and intermediate equipment, loss of image data may occur. In addition, when the received image is finally expressed due to data loss, the output image is output more dimly or darker than the initial image, thereby deteriorating the discrimination power of the image.

방범, 범죄, 화재 등과 같은 다양한 목적으로 설치되는 CCTV 카메라는 이미지 센서를 통해 입사된 광을 디지털 영상 신호로 변환하고, 변환된 디지털 영상신호를 서버에 전송한다. 이때, 대기 환경이 깨끗할 경우, 이미지 센서는 선명한 영상 이미지를 생성할 수 있으나, 안개, 눈, 비 등으로 인해 대기 환경이 깨끗하지 못하면 흐릿한 영상이미지를 생성하므로 영상 이미지로부터 객체를 인식하기 매우 어려운 문제점이 있었다. 따라서, 객체의 식별력을 높이기 위하여 원격지에서 CCTV 카메라를 통해 생성되는 영상 이미지를 분석하고 처리하는 기술이 요구되고 있다.CCTV cameras installed for various purposes, such as crime prevention, crime, and fire, convert light incident through an image sensor into a digital image signal, and transmit the converted digital image signal to a server. At this time, when the atmospheric environment is clean, the image sensor can generate a clear image image, but if the atmospheric environment is not clean due to fog, snow, rain, etc., it generates a blurred image image, so it is very difficult to recognize an object from the image image there was Therefore, in order to increase object identification, there is a need for a technique for analyzing and processing a video image generated by a CCTV camera at a remote location.

본 발명의 배경이 되는 기술은 한국등록특허 제10-0555755호(2006. 03. 03. 공고)에 개시되어 있다.The technology that is the background of the present invention is disclosed in Korean Patent Registration No. 10-0555755 (published on March 3, 2006).

이와 같이 본 발명에 따르면, 이미지 데이터에 대한 보정 표준 데이터를 설정하고, 설정된 보정 표준 데이터를 기반으로 이미지를 보정하는 디지털 이미지 보정 장치 및 그 방법을 제공하기 위한 것이다.As described above, according to the present invention, it is to provide a digital image correction apparatus and method for setting correction standard data for image data and correcting an image based on the set correction standard data.

이러한 기술적 과제를 이루기 위한 본 발명의 실시예에 따르면 보정 구간내 강제 설정이 가능한 저시정 디지털 이미지 보정 장치에 있어서, 이미지 서버로부터 보정하고자 하는 대상 이미지를 입력받는 입력부, 상기 대상 이미지에 포함된 복수의 픽셀마다 명암에 대응하는 픽셀값과 RGB 중에서 블루(B)에 대응하는 픽셀값을 획득하는 전처리부, 상기 명암에 대응하는 픽셀값을 이용하여 제1 히스토그램을 획득하고, 상기 블루(B)에 대응하는 픽셀값을 이용하여 제2 히스토그램을 획득한 다음, 상기 제1 히스토그램으로부터 제1 초기값을 획득하고, 상기 제2 히스토그램으로부터 제2 초기값을 획득하는 초기값 추출부, 상기 제1 히스토그램을 평활화하여 제1 기준값을 획득하고, 상기 제2 히스토그램을 평활화하여 제2 기준값을 획득한 다음, 상기 제1 기준값 및 상기 제2 기준값을 이용하여 각각의 보정 구간을 추출하는 보정구간 추출부, 상기 제1 기준값을 통해 획득한 명암에 대한 보정구간과 제2 기준값을 통해 획득한 블루(B)에 대한 보정구간을 매칭하고, 매칭된 보정 구간을 이용하여 최종 보정 구간을 추출하는 제어부, 그리고 상기 추출된 최종 보정 구간에 포함된 픽셀값들의 평균값을 산출하고, 산출된 평균값에 대응하여 상기 대상 이미지의 명암을 강제 보정하는 보정부를 포함한다. According to an embodiment of the present invention for achieving this technical problem, in the low visibility digital image correction device capable of compulsory setting within a correction section, an input unit for receiving a target image to be corrected from an image server, a plurality of target images included in the target image A preprocessor that obtains a pixel value corresponding to the light and dark pixel value for each pixel and a pixel value corresponding to blue (B) among RGB, obtains a first histogram using the pixel value corresponding to the light and dark, and corresponds to the blue (B) an initial value extractor that obtains a second histogram using pixel values of to obtain a first reference value, obtain a second reference value by smoothing the second histogram, and then extract each correction interval using the first reference value and the second reference value; A control unit that matches the correction section for the contrast obtained through the reference value and the correction section for the blue (B) obtained through the second reference value, and extracts the final correction section using the matched correction section, and the extracted final and a correction unit that calculates an average value of pixel values included in the correction section and forcibly corrects the contrast of the target image in response to the calculated average value.

상기 전처리부는, 상기 대상 이미지의 RGB 값을 YCrCb값으로 변환한 다음, 변환된 YCrCb값 중에서 Y값만을 추출하여 명암에 대응하는 픽셀값을 획득할 수 있다. The preprocessor may convert the RGB value of the target image into a YCrCb value, and then extract only a Y value from the converted YCrCb value to obtain a pixel value corresponding to lightness and darkness.

상기 초기값 추출부는, 상기 제1 히스토그램에서 픽셀의 빈도수가 가장 높은 값에 대응하는 상기 명암에 대응하는 픽셀값을 제1 초기값으로 추출하고, 상기 제2 히스토그램에서 픽셀의 빈도수가 가장 높은 값에 대응하는 상기 블루(B)에 대응하는 픽셀값을 제2 초기값으로 추출할 수 있다. The initial value extraction unit extracts, as a first initial value, a pixel value corresponding to the brightness and darkness corresponding to a value having the highest frequency of pixels in the first histogram, and sets the pixel value in the second histogram to a value with the highest frequency. A pixel value corresponding to the corresponding blue (B) may be extracted as a second initial value.

상기 보정구간 추출부는, 상기 제1 기준값에서 제1 초기값만큼 차감한 값을 제1 하한값으로 추출하고, 상기 제1 기준값에서 상기 제1 초기값만큼 증가시킨 값을 제1 상한값으로 추출한 다음, 상기 제1 하한값보다 크고 제1 상한값보다 작은 범위를 명암에 대한 보정구간으로 설정할 수 있다. The correction section extractor extracts a value obtained by subtracting a first initial value from the first reference value as a first lower limit value, and extracts a value increased by the first initial value from the first reference value as a first upper limit value, and then A range greater than the first lower limit value and smaller than the first upper limit value may be set as a correction section for the contrast.

상기 보정구간 추출부는, 상기 제2 기준값에서 제2 초기값만큼 차감한 값을 제2 하한값으로 추출하고, 상기 제2 기준값에 제2 초기값만큼 증가시킨 값을 제2 상한값으로 추출한 다음, 상기 제2 하한값보다 크고 제2 상한값보다 작은 범위를 블루(B)에 대한 보정구간으로 설정할 수 있다. The correction section extractor extracts a value obtained by subtracting a second initial value from the second reference value as a second lower limit value, and extracts a value increased by a second initial value from the second reference value as a second upper limit value, and then 2 A range greater than the lower limit value and smaller than the second upper limit value may be set as a correction section for blue (B).

상기 블루(B)에 대한 보정구간은 제2 하한값보다 크고 제2 상한값보다 작되, 상기 제2 하한값은 상기 제1 하한값보다 크고, 상기 제2 상한값은 상기 제1 상한값보다 작을 수 있다. The correction period for the blue (B) may be greater than a second lower limit and less than a second upper limit, the second lower limit may be greater than the first lower limit, and the second upper limit may be smaller than the first upper limit.

상기 제어부는, 상기 제2 기준값이 상기 제1 기준값보다 작으면, 상기 제2 하한값부터 상기 제1 기준값까지를 최종 보정 구간으로 결정할 수 있다. When the second reference value is smaller than the first reference value, the controller may determine a final correction interval from the second lower limit value to the first reference value.

상기 제어부는, 상기 제2 기준값이 상기 제1 기준값 이상이고, 상기 제2 하한값이 상기 제1 기준값보다 작으면, 상기 제2 하한값부터 상기 제2 상한값까지를 최종 보정 구간으로 결정할 수 있다. When the second reference value is greater than or equal to the first reference value and the second lower limit is less than the first reference value, the controller may determine a final correction interval from the second lower limit to the second upper limit.

상기 제어부는, 상기 제2 하한값 및 제2 기준값이 상기 제1 기준값보다 크면, 상기 제1 기준값부터 제2 기준값까지를 최종 보정 구간으로 결정할 수 있다. When the second lower limit value and the second reference value are greater than the first reference value, the controller may determine a final correction interval from the first reference value to the second reference value.

상기 보정부는, 상기 최종 보정 구간에 포함되는 픽셀값들의 평균값에 대응하여 상기 대상 이미지에 포함된 복수의 픽셀의 히스토그램을 변환하여 상기 대상 이미지의 명암을 강제적으로 조절할 수 있다. The compensator may forcibly adjust the contrast of the target image by converting a histogram of a plurality of pixels included in the target image in response to an average value of pixel values included in the final compensation section.

또한, 본 발명의 실시예에 따르면 저시정 디지털 이미지 보정 장치를 이용하여 보정 구간내 강제 설정이 가능한 저시정 디지털 이미지 보정 방법에 있어서, 이미지 서버로부터 보정하고자 하는 대상 이미지를 입력받는 단계, 상기 대상 이미지에 포함된 복수의 픽셀마다 명암에 대응하는 픽셀값과 RGB 중에서 블루(B)에 대응하는 픽셀값을 획득하는 단계, 상기 명암에 대응하는 픽셀값을 이용하여 제1 히스토그램을 획득하고, 상기 블루(B)에 대응하는 픽셀값을 이용하여 제2 히스토그램을 획득한 다음, 상기 제1 히스토그램으로부터 제1 초기값을 획득하고, 상기 제2 히스토그램으로부터 제2 초기값을 획득하는 단계, 상기 제1 히스토그램을 평활화하여 제1 기준값을 획득하고, 상기 제2 히스토그램을 평활화하여 제2 기준값을 획득한 다음, 상기 제1 기준값 및 상기 제2 기준값을 이용하여 각각의 보정 구간을 추출하는 단계, 상기 제1 기준값을 통해 획득한 명암에 대한 보정구간과 제2 기준값을 통해 획득한 블루(B)에 대한 보정구간을 매칭하고, 매칭된 보정 구간을 이용하여 최종 보정 구간을 추출하는 단계, 그리고 상기 추출된 최종 보정 구간에 포함된 복수의 픽셀값에 대한 평균값을 산출하고, 산출된 평균값에 대응하여 상기 대상 이미지의 명암을 강제 보정하는 단계를 포함한다. In addition, according to an embodiment of the present invention, in the low-visibility digital image correction method capable of forcibly setting within a correction section using a low-visibility digital image correction device, receiving an image to be corrected from an image server, the target image obtaining a pixel value corresponding to blue (B) from among the pixel values corresponding to the brightness and the RGB for each of a plurality of pixels included in the , obtaining a first histogram using the pixel values corresponding to the brightness, obtaining a second histogram using the pixel values corresponding to B), obtaining a first initial value from the first histogram, and obtaining a second initial value from the second histogram; obtaining a first reference value by smoothing, obtaining a second reference value by smoothing the second histogram, and then extracting each correction section using the first reference value and the second reference value, the first reference value Matching the correction period for the contrast obtained through the correction period for the blue (B) obtained through the second reference value and extracting the final correction period using the matched correction period, and the extracted final correction period and calculating an average value for a plurality of pixel values included in , and forcibly correcting the contrast of the target image in response to the calculated average value.

이와 같이 본 발명에 따르면, RGB 색상에 대한 보정 데이터 범위를 설정하고, 설정된 보정 데이터 범위 내에서 입력된 이미지에 대한 최종 보정 범위를 추출하므로 이미지에 대한 보정 범위를 추출하는데 소요하는 시간을 단축시킬 수 있다.As described above, according to the present invention, since the correction data range for RGB color is set and the final correction range for the input image is extracted within the set correction data range, the time required for extracting the correction range for the image can be reduced. have.

또한, 본 발명에 따르면, 설정된 보정 데이터 범위 내에서 이미지를 보정하므로 이미지에 대한 인식률을 높일 수 있으며, 별도의 노이즈 처리 없이 이미지에 대한 보정이 가능하고, 명암과 블루(B)를 이용하여 보정값을 획득하므로 휘도에 의해 영상의 한쪽 영역만 흐릿하게 표현되는 것을 완화시킬 수 있다. In addition, according to the present invention, since the image is corrected within the set correction data range, the recognition rate for the image can be increased, the image can be corrected without separate noise processing, and the correction value using the contrast and blue (B) Since , it is possible to alleviate the blurring of only one area of the image due to the luminance.

도 1은 본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치에 대한 구성도이다.
도 2는 본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치를 이용한 저시정 디지털 이미지 보정 방법을 설명하기 위한 순서도이다.
도 3은 도 2에 도시된 S230단계에서 제1 초기값을 획득하는 방법을 설명하기 위한 예시도이다.
도 4는 도2에 도시된 S240단계에서 명암에 대한 보정구간을 설명하기 위한 예시도이다,
도 5는 도2에 도시된 S240단계에서 블루(B)에 대한 보정구간을 설명하기 위한 예시도이다.
도 6은 도 2에 도시된 S250단계에서 최종 보정 구간을 결정하는 방법을 설명하기 위한 예시도이다.
도 7은 도 2에 도시된 S260단계를 설명하기 위한 예시도이다.
1 is a block diagram of a low visibility digital image correction apparatus according to an embodiment of the present invention.
2 is a flowchart illustrating a low-visibility digital image correction method using a low-visibility digital image correction apparatus according to an embodiment of the present invention.
FIG. 3 is an exemplary diagram for explaining a method of acquiring a first initial value in step S230 illustrated in FIG. 2 .
4 is an exemplary view for explaining the correction section for the contrast in step S240 shown in FIG.
FIG. 5 is an exemplary diagram for explaining a correction section for blue (B) in step S240 shown in FIG. 2 .
FIG. 6 is an exemplary view for explaining a method of determining a final correction section in step S250 shown in FIG. 2 .
FIG. 7 is an exemplary diagram for explaining step S260 shown in FIG. 2 .

이하 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세히 설명하기로 한다. 이 과정에서 도면에 도시된 선들의 두께나 구성요소의 크기 등은 설명의 명료성과 편의상 과장되게 도시되어 있을 수 있다. Hereinafter, preferred embodiments according to the present invention will be described in detail with reference to the accompanying drawings. In this process, the thickness of the lines or the size of the components shown in the drawings may be exaggerated for clarity and convenience of explanation.

또한 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서, 이는 사용자, 운용자의 의도 또는 관례에 따라 달라질 수 있다. 그러므로 이러한 용어들에 대한 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.In addition, the terms to be described later are terms defined in consideration of functions in the present invention, which may vary according to intentions or customs of users and operators. Therefore, definitions of these terms should be made based on the content throughout this specification.

이하에서는 도 1을 이용하여 본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치에 대하여 더욱 상세하게 설명한다. Hereinafter, a low visibility digital image correcting apparatus according to an embodiment of the present invention will be described in more detail with reference to FIG. 1 .

도 1은 본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치에 대한 구성도이다. 1 is a block diagram of a low visibility digital image correction apparatus according to an embodiment of the present invention.

도 1에 도시된 바와 같이, 본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치(100)는 입력부(110), 전처리부(120), 초기값 추출부(130), 보정구간 추출부(140), 제어부(150) 및 보정부(160)를 포함한다. As shown in FIG. 1 , the low visibility digital image correction apparatus 100 according to an embodiment of the present invention includes an input unit 110 , a preprocessor 120 , an initial value extractor 130 , and a correction section extractor 140 . ), a control unit 150 and a correction unit 160 .

먼저, 입력부(110)는 보정하고자 하는 대상 이미지를 입력받는다. First, the input unit 110 receives a target image to be corrected.

전처리부(120)는 입력된 대상 이미지로부터 명암에 대응하는 픽셀값과 블루(B)에 대응하는 픽셀값을 각각 획득한다.The pre-processing unit 120 obtains a pixel value corresponding to brightness and a pixel value corresponding to blue (B) from the input target image, respectively.

즉, 전처리부(120)는 대상 이미지에 포함된 복수의 픽셀마다 명암에 대응하는 픽셀값을 획득한다. 그리고, 전처리부(120)는 대상 이미지에 포함된 복수의 픽셀마다 블루(B)에 대응하는 픽셀값을 획득한다.That is, the preprocessor 120 obtains a pixel value corresponding to lightness and darkness for each of a plurality of pixels included in the target image. In addition, the preprocessor 120 obtains a pixel value corresponding to blue (B) for each of a plurality of pixels included in the target image.

이때, 입력된 대상 이미지가 컬러 이미지일 경우, 전처리부(120)는 대상 이미지의 RGB 값을 YCrCb값으로 변환한 다음, 변환된 YCrCb값 중에서 Y값만을 추출하여 명암에 대응하는 픽셀값을 획득한다. At this time, when the input target image is a color image, the preprocessor 120 converts the RGB value of the target image to a YCrCb value, and then extracts only the Y value from the converted YCrCb values to obtain a pixel value corresponding to the contrast. .

그 다음, 초기값 추출부(130)는 획득한 픽셀값을 이용하여 초기값을 추출한다. Next, the initial value extraction unit 130 extracts an initial value using the acquired pixel value.

부연하자면, 초기값 추출부(130)는 명암에 대응하는 픽셀값을 이용하여 제1 히스토그램을 생성하고, 생성된 제1 히스토그램으로부터 제1 초기값을 추출한다. In other words, the initial value extractor 130 generates a first histogram by using pixel values corresponding to light and dark, and extracts a first initial value from the generated first histogram.

그리고, 초기값 추출부(130)는 블루(B)에 대응하는 픽셀값을 이용하여 제2 히스토그램을 생성하고, 생성된 제2 히스토그램으로부터 제2 초기값을 추출한다. Then, the initial value extractor 130 generates a second histogram by using a pixel value corresponding to blue (B), and extracts a second initial value from the generated second histogram.

보정구간 추출부(140)는 추출된 제1 초기값 및 제2 초기값을 이용하여 보정 구간을 추출한다. The correction section extractor 140 extracts a correction section using the extracted first and second initial values.

자세히는, 보정구간 추출부(140)는 제1 히스토그램에 대한 평활화를 수행하고, 평활화가 수행된 제1 히스트로그램으로부터 제1 기준값을 획득한다. 그리고, 보정구간 추출부(140)는 획득한 제1 기준값에서 제1 초기값만큼 차감하여 제1 하한값을 추출하고, 제1 기준값에서 제1 초기값만큼 증가시켜 제1 상한값을 추출한다. In detail, the correction section extractor 140 smoothes the first histogram and obtains a first reference value from the smoothed first histogram. Then, the correction interval extractor 140 extracts a first lower limit value by subtracting the first initial value from the obtained first reference value, and increases the first reference value by the first initial value to extract the first upper limit value.

보정구간 추출부(140)는 제1 하한값보다 크고 제1 상한값보다 작은 범위를 명암에 대한 보정구간으로 추출한다. The correction section extractor 140 extracts a range larger than the first lower limit and smaller than the first upper limit as a correction section for the contrast.

또한, 보정구간 추출부(140)는 제2 히스토그램에 대한 평활화를 수행하고, 평활화가 수행된 제2 히스토그램으로부터 제2 기준값을 획득한다. 그리고, 보정구간 추출부(140)는 획득한 제2 기준값에서 제2 초기값만큼 차감하여 제2 하한값을 추출하고, 제2 기준값에서 제2 초기값만큼 증가시켜 제2 상한값을 추출한다. Also, the correction section extractor 140 smoothes the second histogram and obtains a second reference value from the smoothed second histogram. Then, the correction interval extractor 140 extracts a second lower limit value by subtracting a second initial value from the obtained second reference value, and increases the second initial value by a second initial value to extract a second upper limit value.

보정구간 추출부(140)는 제2 하한값보다 크고 제2 상한값보다 작은 범위를 블루(B)에 대한 보정구간으로 추출한다. The correction section extractor 140 extracts a range larger than the second lower limit and smaller than the second upper limit as a correction section for blue (B).

보정구간에 대한 추출이 완료되면, 제어부(150)는 명암에 대한 보정구간과 블루(B)에 대한 보정구간을 매칭하여 최종 보정 구간을 결정한다. When the extraction of the correction section is completed, the controller 150 determines the final correction section by matching the correction section for the contrast with the correction section for the blue (B).

마지막으로 보정부(150)는 최종 보정 구간 내에 포함된 픽셀들의 평균값을 산출하고, 산출된 평균값에 대응하는 대상 이미지의 명암을 강제적으로 보정한다. Finally, the compensator 150 calculates an average value of pixels included in the final correction section, and forcibly corrects the contrast of the target image corresponding to the calculated average value.

이하에서는 도 2 내지 도 7을 이용하여 본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치(100)를 이용한 저시정 디지털 이미지 보정 방법에 대해 더욱 상세하게 설명한다. Hereinafter, a low visibility digital image correction method using the low visibility digital image correcting apparatus 100 according to an embodiment of the present invention will be described in more detail with reference to FIGS. 2 to 7 .

도 2는 본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치를 이용한 저시정 디지털 이미지 보정 방법을 설명하기 위한 순서도이다. 2 is a flowchart illustrating a low-visibility digital image correction method using a low-visibility digital image correction apparatus according to an embodiment of the present invention.

도 2에 도시된 바와 같이, 본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치(100)는 이미지 서버(도시하지 않음)로부터 보정하고자 하는 대상 이미지를 입력받는다(S210). As shown in FIG. 2 , the low visibility digital image correction apparatus 100 according to an embodiment of the present invention receives a target image to be corrected from an image server (not shown) ( S210 ).

부연하자면, 사용자는 이미지 서버(도시하지 않음)에 수집된 복수의 디지털 이미지 중에서 보정하고자 하는 대상 이미지를 선택한다. 그러면, 이미지 서버는 사용자에 의해 선택된 대상 이미지를 저시정 디지털 이미지 보정 장치(100)에 전달한다. In other words, the user selects a target image to be corrected from among a plurality of digital images collected in an image server (not shown). Then, the image server transmits the target image selected by the user to the low visibility digital image correction apparatus 100 .

이때, 입력되는 대상 이미지는 정지된 상태의 이미지일 수도 있고, 동영상일 수도 있다. In this case, the input target image may be a still image or a moving image.

그 다음, 전처리부(120)는 입력된 대상 이미지로부터 픽셀값을 추출한다(S220). Next, the preprocessor 120 extracts a pixel value from the input target image (S220).

부연하자면, 모든 이미지는 픽셀 집합으로 구성된다. 그러므로, 전처리부(120)는 대상 이미지에 포함된 복수의 픽셀로부터 명암 및 블루(B)에 대응하는 각각의 픽셀값을 획득한다. In other words, every image is made up of a set of pixels. Therefore, the preprocessor 120 obtains each pixel value corresponding to the contrast and blue (B) from a plurality of pixels included in the target image.

즉, 전처리부(120)는 각각의 픽셀마다 명암에 대응하는 픽셀값과 블루(B)에 대응하는 픽셀값을 각각 획득한다. That is, the preprocessor 120 obtains a pixel value corresponding to lightness and a pixel value corresponding to blue (B) for each pixel, respectively.

한편, 입력된 대상 이미지가 컬러 이미지일 경우, 전처리부(120)는 대상 이미지의 RGB 값을 YCrCb값으로 변환한 다음, 변환된 YCrCb값 중에서 Y값만을 추출하여 명암에 대응하는 픽셀값을 획득한다. On the other hand, when the input target image is a color image, the preprocessor 120 converts the RGB value of the target image into a YCrCb value, and then extracts only the Y value from the converted YCrCb value to obtain a pixel value corresponding to the contrast. .

본 발명에서는 RGB 값을 YCrCb값으로 변환하여 명암에 대응하는 픽셀값을 획득하였으나, 이에 한정하지 않고, 입력된 대상 이미지를 회색조(Gray scale) 형태로 변환하여 명암에 대응하는 픽셀값을 획득할 수도 있다. In the present invention, a pixel value corresponding to light and dark is obtained by converting RGB values into YCrCb values, but the present invention is not limited thereto, and a pixel value corresponding to light and dark may be obtained by converting an input target image into a gray scale form. have.

S220단계가 완료되면, 초기값 추출부(130)는 명암에 대응하는 픽셀값 및 블루(B)에 대응하는 픽셀값을 이용하여 각각의 히스토그램을 생성하고, 생성된 히스토그램을 통해 초기값을 획득한다(S230)When step S220 is completed, the initial value extraction unit 130 generates each histogram using a pixel value corresponding to light and dark and a pixel value corresponding to blue (B), and obtains an initial value through the generated histogram. (S230)

먼저, 초기값 추출부(130)는 0부터 i까지의 명암에 대응하는 픽셀값의 빈도수를 측정하고, X축을 픽셀값으로 하고 Y축을 빈도수로 하는 그래프에 측정된 결과를 적용하여 제1 히스토그램을 생성한다. First, the initial value extraction unit 130 measures the frequency of pixel values corresponding to the contrast from 0 to i, and applies the measured result to a graph in which the X-axis is the pixel value and the Y-axis is the frequency to obtain a first histogram. create

도 3은 도 2에 도시된 S230단계에서 제1 초기값을 획득하는 방법을 설명하기 위한 예시도이다. FIG. 3 is an exemplary diagram for explaining a method of acquiring a first initial value in step S230 illustrated in FIG. 2 .

예를 들어 도 3에 도시된 바와 같이, 초기값 추출부(130)는 4*4 행렬의 명암에 대응하는 픽셀값을 이용하여 빈도수를 산출한다. 그리고, 초기값 추출부(130)는 산출된 빈도수를 이용하여 제1 히스토그램을 생성하고, 제1 히스토그램에서 픽셀의 빈도수가 가장 높은 값 즉, "1"을 제1 초기값으로 추출한다. For example, as shown in FIG. 3 , the initial value extraction unit 130 calculates the frequency by using pixel values corresponding to the brightness and darkness of a 4*4 matrix. Then, the initial value extractor 130 generates a first histogram by using the calculated frequency, and extracts a value with the highest frequency of pixels in the first histogram, that is, “1” as the first initial value.

그 다음, 초기값 추출부(130)는 도 3에 도시된 방법과 동일한 방법으로 제2 초기값을 추출한다. 즉, 초기값 추출부(130)는 0부터 i까지의 블루(B)에 대응하는 픽셀값의 빈도수를 측정하고, 측정된 빈도수를 이용하여 제2 히스토그램을 생성한다. Next, the initial value extraction unit 130 extracts the second initial value in the same manner as the method illustrated in FIG. 3 . That is, the initial value extractor 130 measures the frequency of pixel values corresponding to blue (B) from 0 to i, and generates a second histogram by using the measured frequency.

그리고, 초기값 추출부(130)는 제2 히스토그램에서 픽셀의 빈도수가 가장 높은 값에 대응하는 픽셀값을 제2 초기값으로 추출한다. In addition, the initial value extractor 130 extracts a pixel value corresponding to a value having the highest frequency of pixels in the second histogram as a second initial value.

S230 단계가 완료되면, 보정구간 추출부(140)는 제1 히스토그램 및 제2 히스토그램에 평활화 과정을 수행하여 명암에 대한 보정구간 및 블루(B)에 대한 보정구간을 추출한다(S240).When step S230 is completed, the correction section extractor 140 performs a smoothing process on the first histogram and the second histogram to extract a correction section for contrast and a correction section for blue (S240).

도 4는 도2에 도시된 S240단계에서 명암에 대한 보정구간을 설명하기 위한 예시도이다. FIG. 4 is an exemplary diagram for explaining a correction section for contrast in step S240 shown in FIG. 2 .

먼저, 보정구간 추출부(140)는 제1 히스토그램을 토대로 누적 빈도수를 산출하고, 산출된 누적 빈도수를 누적합으로 정규화하여 제1 기준값(k)을 획득한다. First, the correction interval extractor 140 calculates a cumulative frequency based on the first histogram, and normalizes the calculated cumulative frequency to a cumulative sum to obtain a first reference value k.

도 4에 도시된 바와 같이, 보정구간 추출부(140)는 제1 기준값(k)에서 제1 초기값만큼 차감하여 제1 하한값(k1)을 추출한다. 그리고, 보정구간 추출부(140)는 제1 기준값(k)에서 제1 초기값만큼 증가시켜 제1 상한값(k1')을 추출한다.As shown in FIG. 4 , the correction section extractor 140 extracts the first lower limit value k1 by subtracting the first initial value from the first reference value k. Then, the correction interval extractor 140 extracts the first upper limit value k1' by increasing the first reference value k by the first initial value.

그리고, 보정구간 추출부(140)는 제1 하한값(k1)보다 크고 제1 상한값(k1')보다 작은 범위를 명암에 대한 보정구간으로 설정한다. Then, the correction section extractor 140 sets a range greater than the first lower limit value k1 and smaller than the first upper limit value k1 ′ as the correction section for the contrast.

도 5는 도2에 도시된 S240단계에서 블루(B)에 대한 보정구간을 설명하기 위한 예시도이다. FIG. 5 is an exemplary diagram for explaining a correction section for blue (B) in step S240 shown in FIG. 2 .

보정구간 추출부(140)는 제2 히스토그램을 토대로 누적 빈도수를 산출하고, 산출된 누적 빈도수를 누적합으로 정규화하여 제2 기준값(b)을 획득한다. The correction interval extractor 140 calculates a cumulative frequency based on the second histogram, and normalizes the calculated cumulative frequency to a cumulative sum to obtain a second reference value b.

도 5에 도시된 바와 같이, 보정구간 추출부(140)는 제2 기준값(b)에서 제2 초기값만큼 차감하여 제2 하한값(b1)을 추출한다. 그리고, 보정구간 추출부(140)는 제2 기준값(b)에서 제2 초기값만큼 증가시켜 제2 상한값(b1')을 추출한다.As shown in FIG. 5 , the correction section extractor 140 extracts the second lower limit value b1 by subtracting the second initial value from the second reference value b. Then, the correction section extractor 140 extracts the second upper limit value b1' by increasing the second reference value b by the second initial value.

그리고, 보정구간 추출부(140)는 제2 하한값(b1)보다 크고 제2 상한값(b1')보다 작은 범위를 블루(B)에 대한 보정구간으로 설정한다. Then, the correction section extractor 140 sets a range greater than the second lower limit value b1 and smaller than the second upper limit value b1 ′ as the correction section for blue (B).

이때, 제2 하한값(b1)은 제1 하한값(k1)보다 크고, 제2 상한값(b1')은 제1 상한값(k1')보다 작게 형성된다. In this case, the second lower limit value b1 is greater than the first lower limit value k1 , and the second upper limit value b1 ′ is smaller than the first upper limit value k1 ′.

보정구간에 대한 설정이 완료되면, 제어부(150)는 명암에 대한 보정구간과 블루(B)에 대한 보정구간을 매칭하여 최종 보정 구간을 결정한다(S250). When the setting of the correction section is completed, the controller 150 determines the final correction section by matching the correction section for the contrast with the correction section for the blue (B) (S250).

본 발명의 실시예에 따른 저시정 디지털 이미지 보정 장치(100)는 명암에 대한 상한값과 하한값 내에서 보정을 수행한다. 이때 입력된 픽셀값이 상한값으로 할수록 대상 이미지가 밝아져 일부 영역이 희미해질 수 있고, 하한값으로 갈수록 대상 이미지가 어두워져 일부 영역에 대한 구분이 모호해질 수 있다. 따라서, 저시정 디지털 이미지 보정 장치(100)는 명암에 대한 보정 구간 내에 포함하되, 블루(B)에 대한 보정구간을 적용하여 대상 이미지의 명암뿐만 아니라 색 보정을 수행하여 식별성을 높일 수 있도록 한다. The low visibility digital image correcting apparatus 100 according to an exemplary embodiment of the present invention performs correction within an upper limit value and a lower limit value for contrast. In this case, as the input pixel value is set to the upper limit value, the target image may become brighter and some regions may be dimmed, and as the input pixel value is set to the upper limit value, the target image may become darkened toward the lower limit value, thereby making the distinction between some regions ambiguous. Accordingly, the low visibility digital image compensating apparatus 100 is included in the contrast correction section, but applies the blue (B) correction section to perform color correction as well as the contrast of the target image to increase the discrimination.

따라서, 제어부(150)는 명암에 대한 보정구간과 블루(B)에 대한 보정구간을 매칭시키고, 제1 기준값(k)과 제2 기준값(b)의 픽셀값을 비교한 다음, 비교 결과에 따라 각각 상이한 방법으로 최종 보정 구간을 결정한다. Accordingly, the control unit 150 matches the correction period for the contrast and the correction period for the blue (B), compares the pixel values of the first reference value (k) and the second reference value (b), and then according to the comparison result Each different method determines the final calibration interval.

이하에서는 도 6a 내지 도 6c를 이용하여 제1 기준값(k)과 제2 기준값(b)의 크기에 따라 최종 보정 구간을 결정하는 방법에 대하여 설명한다. Hereinafter, a method of determining the final correction section according to the magnitudes of the first reference value k and the second reference value b will be described with reference to FIGS. 6A to 6C .

도 6은 도 2에 도시된 S250단계에서 최종 보정 구간을 결정하는 방법을 설명하기 위한 예시도이다. FIG. 6 is an exemplary view for explaining a method of determining a final correction section in step S250 shown in FIG. 2 .

도 6a에 도시된 바와 같이, 제2 기준값(b)이 제1 기준값(k)보다 작으면, 제어부(150)는 제2 하한값(b1)부터 상기 제1 기준값(k)까지를 최종 보정 구간으로 결정한다. 부연하자면, 제어부(150)는 제2 하한값(b1)부터 제2 기준값(b)까지의 구간과 제2 기준값(b)부터 제1 기준값(k)까지의 구간을 최종 보정 구간으로 결정한다.As shown in FIG. 6A , when the second reference value b is smaller than the first reference value k, the control unit 150 uses the second lower limit value b1 to the first reference value k as the final correction section. decide In other words, the controller 150 determines the section from the second lower limit value b1 to the second reference value b and the section from the second reference value b to the first reference value k as the final correction section.

도 6b에 도시된 바와 같이, 제2 기준값(b)이 제1 기준값(k) 이상이고, 제2 하한값(b1)이 제1 기준값(k)보다 작으면, 제어부(150)는 제2 하한값(b1)부터 제2 상한값(b1')까지를 최종 보정 구간으로 결정한다. 부연하자면, 제어부(150)는 제2 하한값(b1)부터 제1 기준값(k) 또는 제2 기준값(b)까지의 구간과, 제1 기준값(k) 또는 제2 기준값(b)부터 제2 상한값(b1')까지의 구간을 최종 보정 구간으로 결정한다.As shown in FIG. 6B , when the second reference value b is greater than or equal to the first reference value k, and the second lower limit value b1 is smaller than the first reference value k, the control unit 150 controls the second lower limit value ( From b1) to the second upper limit value b1' is determined as the final correction section. In other words, the control unit 150 includes a section from the second lower limit value (b1) to the first reference value (k) or the second reference value (b), and the second upper limit value from the first reference value (k) or the second reference value (b). The section up to (b1') is determined as the final correction section.

도 6c에 도시된 바와 같이, 제2 하한값(b1) 및 제2 기준값(b)이 제1 기준값(k)보다 크면, 제어부(150)는 제1 기준값(k)부터 제2 기준값(b)까지를 최종 보정 구간으로 결정한다. 부연하자면, 제어부(150)는 제1 기준값(k)부터 제2 하한값(b1)까지의 구간과 제2 하한값(b1)부터 2 기준값(b)까지의 구간을 최종 보정 구간으로 결정한다.As shown in FIG. 6C , when the second lower limit value b1 and the second reference value b are greater than the first reference value k, the control unit 150 controls from the first reference value k to the second reference value b. is determined as the final calibration interval. In other words, the control unit 150 determines the section from the first reference value (k) to the second lower limit value (b1) and the section from the second lower limit value (b1) to the second reference value (b) as the final correction section.

즉, 도 6a 내지 도 6c에 나타낸 것처럼, 제1 하한값(k1), 제1 기준값(k), 제1 상한값(k1') 그리고, 제2 하한값(b1), 제2 기준값(b), 제2 상한값(b1')의 크기 순서에 따라 최종 보정 구간이 결정되며, 제어부(150)는 크기를 나열한 순서에서 2번째부터 4번째 크기에 해당되는 구간을 최종 보정 구간으로 결정한다. That is, as shown in FIGS. 6A to 6C , the first lower limit value k1 , the first reference value k, the first upper limit value k1 ′, and the second lower limit value b1 , the second reference value b, and the second The final correction section is determined according to the order of magnitude of the upper limit value b1', and the controller 150 determines the section corresponding to the second to fourth sizes in the order of the sizes as the final correction section.

마지막으로, 보정부(160)는 결정된 최종 보정 구간 내에 포함된 픽셀값들의 평균값을 산출하고, 산출된 평균값을 이용하여 대상 이미지의 명암을 보정한다(S260). Finally, the corrector 160 calculates an average value of pixel values included in the determined final correction section, and corrects the contrast of the target image using the calculated average value ( S260 ).

도 7은 도 2에 도시된 S260단계를 설명하기 위한 예시도이다. FIG. 7 is an exemplary diagram for explaining step S260 shown in FIG. 2 .

도 7에 도시된 바와 같이, 보정부(160)는 최종 보정 구간에 포함되는 픽셀값들의 평균값을 산출하고, 산출된 평균값에 대응하여 대상 이미지에 포함된 복수의 픽셀의 히스토그램을 강제적으로 변환한다. 7 , the correction unit 160 calculates an average value of pixel values included in the final correction section, and forcibly transforms a histogram of a plurality of pixels included in the target image in response to the calculated average value.

이와 같이 본 발명에 따른 저시정 디지털 이미지 보정장치는 RGB 색상에 대한 보정 데이터 범위를 설정하고, 설정된 보정 데이터 범위 내에서 입력된 이미지에 대한 최종 보정 구간을 추출하므로 이미지에 대한 보정 구간을 추출하는데 소요하는 시간을 단축할 수 있다.As described above, the low visibility digital image correcting apparatus according to the present invention sets a correction data range for RGB colors and extracts the final correction period for the input image within the set correction data range, so it takes time to extract the correction period for the image. time can be shortened.

또한, 본 발명에 따른 저시정 디지털 이미지 보정장치는 설정된 최종 보정 구간내에서 이미지를 보정하므로 이미지에 대한 인식률을 높일 수 있으며, 별도의 노이즈 처리 없이 이미지에 대한 보정이 가능하고, 명암과 블루(B)를 이용하여 보정값을 획득하므로 휘도에 의해 영상의 한쪽 영역만 흐릿하게 표현되는 것을 완화시킬 수 있다. In addition, the low visibility digital image correcting apparatus according to the present invention corrects the image within the set final correction section, so it is possible to increase the recognition rate of the image, and it is possible to correct the image without separate noise processing, and the contrast and blue (B) ) to obtain a correction value, it is possible to alleviate the blurring of only one area of the image due to the luminance.

본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나 이는 예시적인 것에 불과하며, 당해 기술이 속하는 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 진정한 기술적 보호범위는 아래의 특허청구범위의 기술적 사상에 의하여 정해져야 할 것이다.Although the present invention has been described with reference to the embodiments shown in the drawings, which are merely exemplary, those of ordinary skill in the art will understand that various modifications and equivalent other embodiments are possible therefrom. will be. Therefore, the true technical protection scope of the present invention should be determined by the technical spirit of the following claims.

100: 저시정 디지털 이미지 보정 장치
110 : 입력부
120 : 전처리부
130 : 초기값 추출부
140 : 보정구간 추출부
150 : 제어부
160 : 보정부
100: low visibility digital image correction device
110: input unit
120: preprocessor
130: initial value extraction unit
140: correction section extraction unit
150: control unit
160: correction unit

Claims (20)

보정 구간내 강제 설정이 가능한 저시정 디지털 이미지 보정 장치에 있어서,
이미지 서버로부터 보정하고자 하는 대상 이미지를 입력받는 입력부,
상기 대상 이미지에 포함된 복수의 픽셀마다 명암에 대응하는 픽셀값과 RGB 중에서 블루(B)에 대응하는 픽셀값을 획득하는 전처리부,
상기 명암에 대응하는 픽셀값을 이용하여 제1 히스토그램을 획득하고, 상기 블루(B)에 대응하는 픽셀값을 이용하여 제2 히스토그램을 획득한 다음, 상기 제1 히스토그램으로부터 제1 초기값을 획득하고, 상기 제2 히스토그램으로부터 제2 초기값을 획득하는 초기값 추출부,
상기 제1 히스토그램을 평활화하여 제1 기준값을 획득하고, 상기 제2 히스토그램을 평활화하여 제2 기준값을 획득한 다음, 상기 제1 기준값 및 상기 제2 기준값을 이용하여 각각의 보정 구간을 추출하는 보정구간 추출부,
상기 제1 기준값을 통해 획득한 명암에 대한 보정구간과 제2 기준값을 통해 획득한 블루(B)에 대한 보정구간을 매칭하고, 매칭된 보정 구간을 이용하여 최종 보정 구간을 추출하는 제어부, 그리고
상기 추출된 최종 보정 구간에 포함된 픽셀값들의 평균값을 산출하고, 산출된 평균값에 대응하여 상기 대상 이미지에 포함된 복수의 픽셀의 히스토그램을 변환하여 대상 이미지의 명암을 조절하는 보정부를 포함하는 저시정 디지털 이미지 보정 장치.
In the low visibility digital image correction device capable of forcibly setting within the correction section,
an input unit that receives the target image to be corrected from the image server;
A pre-processing unit for obtaining a pixel value corresponding to the contrast and a pixel value corresponding to blue (B) among RGB for each of a plurality of pixels included in the target image;
A first histogram is obtained using a pixel value corresponding to the contrast, a second histogram is obtained using a pixel value corresponding to the blue (B), and a first initial value is obtained from the first histogram, , an initial value extractor for obtaining a second initial value from the second histogram;
A correction interval in which a first reference value is obtained by smoothing the first histogram, a second reference value is obtained by smoothing the second histogram, and then each correction interval is extracted using the first reference value and the second reference value extractor,
A control unit that matches the correction period for the contrast obtained through the first reference value and the correction period for blue (B) obtained through the second reference value, and extracts the final correction period using the matched correction period, and
Low visibility including a correction unit calculating an average value of pixel values included in the extracted final correction section, and converting a histogram of a plurality of pixels included in the target image in response to the calculated average value to adjust the contrast of the target image Digital image correction device.
제1항에 있어서,
상기 전처리부는,
상기 대상 이미지의 RGB 값을 YCrCb값으로 변환한 다음, 변환된 YCrCb값 중에서 Y값만을 추출하여 명암에 대응하는 픽셀값을 획득하는 저시정 디지털 이미지 보정 장치.
According to claim 1,
The preprocessor is
Low visibility digital image compensating apparatus for converting RGB values of the target image into YCrCb values, and then extracting only Y values from the converted YCrCb values to obtain pixel values corresponding to brightness and darkness.
제2항에 있어서,
상기 초기값 추출부는,
상기 제1 히스토그램에서 픽셀의 빈도수가 가장 높은 값에 대응하는 상기 명암에 대응하는 픽셀값을 제1 초기값으로 추출하고,
상기 제2 히스토그램에서 픽셀의 빈도수가 가장 높은 값에 대응하는 상기 블루(B)에 대응하는 픽셀값을 제2 초기값으로 추출하는 저시정 디지털 이미지 보정 장치.
3. The method of claim 2,
The initial value extraction unit,
extracting, as a first initial value, a pixel value corresponding to the brightness and darkness corresponding to a value having the highest frequency of pixels in the first histogram;
and extracting, as a second initial value, a pixel value corresponding to the blue (B) corresponding to a value having the highest pixel frequency in the second histogram.
제3항에 있어서,
상기 보정구간 추출부는,
상기 제1 기준값에서 제1 초기값만큼 차감한 값을 제1 하한값으로 추출하고,
상기 제1 기준값에서 상기 제1 초기값만큼 증가시킨 값을 제1 상한값으로 추출한 다음,
상기 제1 하한값보다 크고 제1 상한값보다 작은 범위를 명암에 대한 보정구간으로 설정하는 저시정 디지털 이미지 보정 장치.
4. The method of claim 3,
The correction interval extraction unit,
A value obtained by subtracting a first initial value from the first reference value is extracted as a first lower limit value,
After extracting a value increased by the first initial value from the first reference value as a first upper limit value,
A low visibility digital image correcting apparatus for setting a range greater than the first lower limit value and smaller than the first upper limit value as a correction section for contrast.
제4항에 있어서,
상기 보정구간 추출부는,
상기 제2 기준값에서 제2 초기값만큼 차감한 값을 제2 하한값으로 추출하고,
상기 제2 기준값에 제2 초기값만큼 증가시킨 값을 제2 상한값으로 추출한 다음,
상기 제2 하한값보다 크고 제2 상한값보다 작은 범위를 블루(B)에 대한 보정구간으로 설정하는 저시정 디지털 이미지 보정 장치.
5. The method of claim 4,
The correction interval extraction unit,
A value obtained by subtracting a second initial value from the second reference value is extracted as a second lower limit value,
After extracting a value increased by a second initial value to the second reference value as a second upper limit value,
A low visibility digital image compensating apparatus for setting a range greater than the second lower limit value and smaller than the second upper limit value as a correction section for blue (B).
제5항에 있어서,
상기 블루(B)에 대한 보정구간은 제2 하한값보다 크고 제2 상한값보다 작되,
상기 제2 하한값은 상기 제1 하한값보다 크고, 상기 제2 상한값은 상기 제1 상한값보다 작은 저시정 디지털 이미지 보정 장치.
6. The method of claim 5,
The correction period for the blue (B) is greater than the second lower limit value and smaller than the second upper limit value,
The second lower limit value is greater than the first lower limit value, and the second upper limit value is smaller than the first upper limit value.
제6항에 있어서,
상기 제어부는,
상기 제2 기준값이 상기 제1 기준값보다 작으면, 상기 제2 하한값부터 상기 제1 기준값까지를 최종 보정 구간으로 결정하는 저시정 디지털 이미지 보정 장치.
7. The method of claim 6,
The control unit is
When the second reference value is smaller than the first reference value, the low visibility digital image correction apparatus determines a final correction interval from the second lower limit value to the first reference value.
제6항에 있어서,
상기 제어부는,
상기 제2 기준값이 상기 제1 기준값 이상이고, 상기 제2 하한값이 상기 제1 기준값보다 작으면,
상기 제2 하한값부터 상기 제2 상한값까지를 최종 보정 구간으로 결정하는 저시정 디지털 이미지 보정 장치.
7. The method of claim 6,
The control unit is
When the second reference value is greater than or equal to the first reference value and the second lower limit value is less than the first reference value,
A low visibility digital image compensating apparatus for determining a range from the second lower limit value to the second upper limit value as a final correction section.
제6항에 있어서,
상기 제어부는,
상기 제2 하한값 및 제2 기준값이 상기 제1 기준값보다 크면,
상기 제1 기준값부터 제2 기준값까지를 최종 보정 구간으로 결정하는 저시정 디지털 이미지 보정 장치.
7. The method of claim 6,
The control unit is
When the second lower limit value and the second reference value are greater than the first reference value,
A low visibility digital image compensating apparatus for determining a period from the first reference value to the second reference value as a final correction section.
제6항에 있어서,
상기 보정부는,
상기 최종 보정 구간에 포함되는 픽셀값들의 평균값에 대응하여 상기 대상 이미지에 포함된 복수의 픽셀의 히스토그램을 변환하여 상기 대상 이미지의 명암을 강제적으로 조절하는 저시정 디지털 이미지 보정 장치.
7. The method of claim 6,
The correction unit,
A low visibility digital image compensating apparatus for forcibly adjusting the contrast of the target image by converting a histogram of a plurality of pixels included in the target image corresponding to an average value of pixel values included in the final compensation section.
저시정 디지털 이미지 보정 장치를 이용하여 보정 구간내 강제 설정이 가능한 저시정 디지털 이미지 보정 방법에 있어서,
이미지 서버로부터 보정하고자 하는 대상 이미지를 입력받는 단계,
상기 대상 이미지에 포함된 복수의 픽셀마다 명암에 대응하는 픽셀값과 RGB 중에서 블루(B)에 대응하는 픽셀값을 획득하는 단계,
상기 명암에 대응하는 픽셀값을 이용하여 제1 히스토그램을 획득하고, 상기 블루(B)에 대응하는 픽셀값을 이용하여 제2 히스토그램을 획득한 다음, 상기 제1 히스토그램으로부터 제1 초기값을 획득하고, 상기 제2 히스토그램으로부터 제2 초기값을 획득하는 단계,
상기 제1 히스토그램을 평활화하여 제1 기준값을 획득하고, 상기 제2 히스토그램을 평활화하여 제2 기준값을 획득한 다음, 상기 제1 기준값 및 상기 제2 기준값을 이용하여 각각의 보정 구간을 추출하는 단계,
상기 제1 기준값을 통해 획득한 명암에 대한 보정구간과 제2 기준값을 통해 획득한 블루(B)에 대한 보정구간을 매칭하고, 매칭된 보정 구간을 이용하여 최종 보정 구간을 추출하는 단계, 그리고
상기 추출된 최종 보정 구간에 포함된 복수의 픽셀값에 대한 평균값을 산출하고, 산출된 평균값에 대응하여 상기 대상 이미지에 포함된 복수의 픽셀의 히스토그램을 변환하여 대상 이미지의 명암을 보정하는 단계를 포함하는 저시정 디지털 이미지 보정 방법.
In the low visibility digital image correction method capable of forcibly setting within a correction section using a low visibility digital image correction device,
receiving the target image to be corrected from the image server;
obtaining a pixel value corresponding to blue (B) from among a pixel value corresponding to light and dark for each of a plurality of pixels included in the target image and RGB;
A first histogram is obtained using a pixel value corresponding to the contrast, a second histogram is obtained using a pixel value corresponding to the blue (B), and a first initial value is obtained from the first histogram, , obtaining a second initial value from the second histogram;
obtaining a first reference value by smoothing the first histogram, obtaining a second reference value by smoothing the second histogram, and then extracting each correction section using the first reference value and the second reference value;
Matching the correction period for the contrast obtained through the first reference value and the correction period for the blue (B) obtained through the second reference value, and extracting the final correction period using the matched correction period, and
Calculating an average value for a plurality of pixel values included in the extracted final correction section, and converting a histogram of a plurality of pixels included in the target image in response to the calculated average value to correct the contrast of the target image A low-visibility digital image correction method.
제11항에 있어서,
상기 픽셀값을 획득하는 단계는,
상기 대상 이미지의 RGB 값을 YCrCb값으로 변환한 다음, 변환된 YCrCb값 중에서 Y값만을 추출하여 명암에 대응하는 픽셀값을 획득하는 저시정 디지털 이미지 보정 방법.
12. The method of claim 11,
The step of obtaining the pixel value comprises:
A low visibility digital image correction method for converting RGB values of the target image into YCrCb values, and then extracting only Y values from the converted YCrCb values to obtain pixel values corresponding to brightness and darkness.
제12항에 있어서,
상기 초기값을 획득하는 단계는,
상기 제1 히스토그램에서 픽셀의 빈도수가 가장 높은 값에 대응하는 상기 명암에 대응하는 픽셀값을 제1 초기값으로 추출하고,
상기 제2 히스토그램에서 픽셀의 빈도수가 가장 높은 값에 대응하는 상기 블루(B)에 대응하는 픽셀값을 제2 초기값으로 추출하는 저시정 디지털 이미지 보정 방법.
13. The method of claim 12,
The step of obtaining the initial value includes:
extracting, as a first initial value, a pixel value corresponding to the brightness and darkness corresponding to a value having the highest frequency of pixels in the first histogram;
A low visibility digital image correction method for extracting a pixel value corresponding to the blue (B) corresponding to a value having the highest frequency of pixels in the second histogram as a second initial value.
제13항에 있어서,
상기 보정 구간을 추출하는 단계는,
상기 제1 기준값에서 제1 초기값만큼 차감한 값을 제1 하한값으로 추출하고,
상기 제1 기준값에서 상기 제1 초기값만큼 증가시킨 값을 제1 상한값으로 추출한 다음,
상기 제1 하한값보다 크고 제1 상한값보다 작은 범위를 명암에 대한 보정구간으로 설정하는 저시정 디지털 이미지 보정 방법.
14. The method of claim 13,
The step of extracting the correction section,
A value obtained by subtracting a first initial value from the first reference value is extracted as a first lower limit value,
After extracting a value increased by the first initial value from the first reference value as a first upper limit value,
A low visibility digital image correction method for setting a range greater than the first lower limit value and smaller than the first upper limit value as a correction section for contrast.
제14항에 있어서,
상기 보정 구간을 추출하는 단계는,
상기 제2 기준값에서 제2 초기값만큼 차감한 값을 제2 하한값으로 추출하고,
상기 제2 기준값에 제2 초기값만큼 증가시킨 값을 제2 상한값으로 추출한 다음,
상기 제2 하한값보다 크고 제2 상한값보다 작은 범위를 블루(B)에 대한 보정구간으로 설정하는 저시정 디지털 이미지 보정 방법.
15. The method of claim 14,
The step of extracting the correction section,
A value obtained by subtracting a second initial value from the second reference value is extracted as a second lower limit value,
After extracting a value increased by a second initial value to the second reference value as a second upper limit value,
A low visibility digital image correction method for setting a range greater than the second lower limit and smaller than the second upper limit as a correction section for blue (B).
제15항에 있어서,
상기 블루(B)에 대한 보정구간은 제2 하한값보다 크고 제2 상한값보다 작되,
상기 제2 하한값은 상기 제1 하한값보다 크고, 상기 제2 상한값은 상기 제1 상한값보다 작은 저시정 디지털 이미지 보정 방법.
16. The method of claim 15,
The correction period for the blue (B) is greater than the second lower limit value and smaller than the second upper limit value,
The second lower limit value is greater than the first lower limit value, and the second upper limit value is smaller than the first upper limit value.
제16항에 있어서,
상기 최종 보정 구간을 결정하는 단계는,
상기 제2 기준값이 상기 제1 기준값보다 작으면, 상기 제2 하한값부터 상기 제1 기준값까지를 최종 보정 구간으로 결정하는 저시정 디지털 이미지 보정 방법.
17. The method of claim 16,
The step of determining the final correction section is,
When the second reference value is smaller than the first reference value, a low visibility digital image correction method for determining a final correction interval from the second lower limit value to the first reference value.
제16항에 있어서,
상기 최종 보정 구간을 결정하는 단계는,
상기 제2 기준값이 상기 제1 기준값 이상이고, 상기 제2 하한값이 상기 제1 기준값보다 작으면,
상기 제2 하한값부터 상기 제2 상한값까지를 최종 보정 구간으로 결정하는 저시정 디지털 이미지 보정 방법.
17. The method of claim 16,
The step of determining the final correction section is,
When the second reference value is greater than or equal to the first reference value and the second lower limit value is less than the first reference value,
A low visibility digital image correction method for determining from the second lower limit value to the second upper limit value as a final correction section.
제16항에 있어서,
상기 최종 보정 구간을 결정하는 단계는,
상기 제2 하한값 및 제2 기준값이 상기 제1 기준값보다 크면,
상기 제1 기준값부터 제2 기준값까지를 최종 보정 구간으로 결정하는 저시정 디지털 이미지 보정 방법.
17. The method of claim 16,
The step of determining the final correction section is,
When the second lower limit value and the second reference value are greater than the first reference value,
A low visibility digital image correction method for determining from the first reference value to the second reference value as a final correction section.
제16항에 있어서,
상기 대상 이미지의 명암을 보정하는 단계는,
상기 최종 보정 구간 내에서 산출된 픽셀의 평균값에 대응하여 상기 대상 이미지에 포함된 복수의 픽셀의 히스토그램을 변환하여 상기 대상 이미지의 명암을 강제적으로 조절하는 저시정 디지털 이미지 보정 방법.
17. The method of claim 16,
The step of correcting the contrast of the target image,
A low visibility digital image correction method for forcibly adjusting the contrast of the target image by converting a histogram of a plurality of pixels included in the target image corresponding to the average value of the pixels calculated within the final correction section.
KR1020220010688A 2022-01-25 2022-01-25 Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof KR102401018B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220010688A KR102401018B1 (en) 2022-01-25 2022-01-25 Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220010688A KR102401018B1 (en) 2022-01-25 2022-01-25 Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof

Publications (1)

Publication Number Publication Date
KR102401018B1 true KR102401018B1 (en) 2022-05-24

Family

ID=81806837

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220010688A KR102401018B1 (en) 2022-01-25 2022-01-25 Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof

Country Status (1)

Country Link
KR (1) KR102401018B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008042768A (en) * 2006-08-09 2008-02-21 Toshiba Corp Image display device and display image gradation correcting method used therefor
JP2008187429A (en) * 2007-01-30 2008-08-14 Seiko Epson Corp Device, method and program for processing image and recording medium with the program stored
KR20150069585A (en) * 2013-12-13 2015-06-24 청주대학교 산학협력단 Luminance Correction Method for Stereo Images using Histogram Interval Calibration and Recording medium use to the Method
JP2017139678A (en) * 2016-02-05 2017-08-10 Necプラットフォームズ株式会社 Image data converter, image data conversion method, image data conversion program, pos terminal, and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008042768A (en) * 2006-08-09 2008-02-21 Toshiba Corp Image display device and display image gradation correcting method used therefor
JP2008187429A (en) * 2007-01-30 2008-08-14 Seiko Epson Corp Device, method and program for processing image and recording medium with the program stored
KR20150069585A (en) * 2013-12-13 2015-06-24 청주대학교 산학협력단 Luminance Correction Method for Stereo Images using Histogram Interval Calibration and Recording medium use to the Method
JP2017139678A (en) * 2016-02-05 2017-08-10 Necプラットフォームズ株式会社 Image data converter, image data conversion method, image data conversion program, pos terminal, and server

Similar Documents

Publication Publication Date Title
KR100467610B1 (en) Method and apparatus for improvement of digital image quality
US7764319B2 (en) Image processing apparatus, image-taking system, image processing method and image processing program
US8154628B2 (en) Image processing apparatus and imaging apparatus and method
KR100983037B1 (en) Method for controlling auto white balance
US10521887B2 (en) Image processing device and image processing method
CN105960658B (en) Image processing apparatus, image capturing apparatus, image processing method, and non-transitory storage medium that can be processed by computer
US20050206776A1 (en) Apparatus for digital video processing and method thereof
JP2007094742A (en) Image signal processor and image signal processing program
US8085316B2 (en) Image-processing unit, imaging apparatus, and computer program product
KR102144577B1 (en) Low-light image correction method based on optimal gamma correction
US20160125618A1 (en) Method, device, and system for pre-processing a video stream for subsequent motion detection processing
CN110298796B (en) Low-illumination image enhancement method based on improved Retinex and logarithmic image processing
US8655098B2 (en) Image signal processing apparatus and computer-readable recording medium recording image signal processing program
JP2016126750A (en) Image processing system, image processing device, imaging device, image processing method, program, and recording medium
KR102401019B1 (en) Apparatus for correcting low visibility digital image based on color value reference
JP4637812B2 (en) Image signal processing apparatus, image signal processing program, and image signal processing method
CN114998122A (en) Low-illumination image enhancement method
CN111654686B (en) Method for removing color noise of image, method for removing color noise of video and related device
US11640654B2 (en) Image processing method and apparatus
KR102401018B1 (en) Apparatus for correcting low visibility digital image able to forcible set within the correction section and method thereof
KR102401017B1 (en) Apparatus for correcting low visibility digital image able to manual set within the correction section and method thereof
KR101920369B1 (en) Apparatus and method for image processing of thermal imaging camera
US8072516B2 (en) Dynamic range enhancement method and apparatus
KR102318196B1 (en) A method for auto white balance of image and an electronic device to process auto white balance method
KR101143834B1 (en) Aparatus and metod for controlling auto white balance

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant