KR102089084B1 - High dynamic range image generation system, method and computer readable recording medium thereof - Google Patents

High dynamic range image generation system, method and computer readable recording medium thereof Download PDF

Info

Publication number
KR102089084B1
KR102089084B1 KR1020180017750A KR20180017750A KR102089084B1 KR 102089084 B1 KR102089084 B1 KR 102089084B1 KR 1020180017750 A KR1020180017750 A KR 1020180017750A KR 20180017750 A KR20180017750 A KR 20180017750A KR 102089084 B1 KR102089084 B1 KR 102089084B1
Authority
KR
South Korea
Prior art keywords
image
saturation region
ldr
hdr
brightness value
Prior art date
Application number
KR1020180017750A
Other languages
Korean (ko)
Other versions
KR102089084B9 (en
KR20190097838A (en
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 KR1020180017750A priority Critical patent/KR102089084B1/en
Publication of KR20190097838A publication Critical patent/KR20190097838A/en
Application granted granted Critical
Publication of KR102089084B1 publication Critical patent/KR102089084B1/en
Publication of KR102089084B9 publication Critical patent/KR102089084B9/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/007
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20208High dynamic range [HDR] image processing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

HDR 영상 생성 시스템, 방법 및 컴퓨터 판독 가능한 기록매체가 개시된다. 본 발명의 일 실시예에 따른 HDR 영상 생성 시스템은, LDR 영상을 수신하는 영상 수신부, 상기 LDR 영상에서 포화 영역을 검출하고, 상기 LDR 영상에서 상기 포화 영역을 제거하는 포화 영역 제거부 및 상기 포화 영역에 대응하는 대체 영상을 생성하고, 상기 포화 영역이 제거된 LDR 영상에 상기 대체 영상을 삽입하는 영상 대체부를 포함한다.Disclosed is an HDR image generation system, method and computer readable recording medium. The HDR image generation system according to an embodiment of the present invention includes an image receiving unit receiving an LDR image, a saturation region removing unit detecting a saturation region from the LDR image, and removing the saturation region from the LDR image. And an image replacement unit that generates a replacement image corresponding to and inserts the replacement image into the LDR image in which the saturation region is removed.

Description

HDR 영상 생성 시스템, 방법 및 컴퓨터 판독 가능한 기록매체{HIGH DYNAMIC RANGE IMAGE GENERATION SYSTEM, METHOD AND COMPUTER READABLE RECORDING MEDIUM THEREOF}HDR DYNAMIC RANGE IMAGE GENERATION SYSTEM, METHOD AND COMPUTER READABLE RECORDING MEDIUM THEREOF

본 발명은 HDR 영상 생성 시스템, 방법 및 컴퓨터 판독 가능한 기록매체에 관한 것으로, 보다 구체적으로는 LDR 영상의 일부분에 대체 영상을 적용함으로써 HDR 영상을 생성할 수 있는 HDR 영상 생성 시스템, 방법 및 컴퓨터 판독 가능한 기록매체에 관한 것이다.The present invention relates to an HDR image generation system, method, and computer-readable recording medium, and more specifically, an HDR image generation system, method, and computer readable capable of generating an HDR image by applying an alternative image to a portion of an LDR image. It is about the record carrier.

그 동안의 디스플레이의 입력 영상 소스는 SDR (Standard Dynamic Range)로 밝고 어두움의 범위가 사람의 눈으로 보는 범위보다 협소하여 특정 객체의 색상을 표현하지 못하는 문제점이 존재한다. 그 예로, 용접을 하는 경우, 용접의 불꽃을 일반적인 카메라로 찍게 되면, 해당 부분의 intensity가 포화되어 백색으로 나타나는 경우가 있으며, 일반 사진의 경우에도 햇빛에 과노출된 경우, 해당 부분의 색상 intensity가 포화되어 백색으로 나타나는 경우가 발생한다.In the meantime, the input image source of the display is SDR (Standard Dynamic Range), and the range of darkness is narrower than the range seen by the human eye, and there is a problem that the color of a specific object cannot be expressed. For example, in the case of welding, when the spark of the welding is taken with a general camera, the intensity of the corresponding part may appear saturated and appear white, and even in the case of a normal picture, the color intensity of the corresponding part may be Saturation occurs in white.

고광원(용접, 용광로, 레이저 포인팅 등) 산업에서는 생산라인을 검사하거나 제작되는 물품(제품)을 검사하기 위해서 고광원에서도 영상 정보의 손실이 일어나지 않는 HDR (High Dynamic Range) 카메라의 수요가 절실하다. 이 밖에 HDR 카메라는 영상이 중요한 역할을 하는 머신 비전 분야와 자율주행 시스템에서도 중요한 역할을 할 것으로 기대된다.In the high light source (welding, furnace, laser pointing, etc.) industry, there is an urgent need for an HDR (High Dynamic Range) camera that does not cause loss of image information even in a high light source in order to inspect a production line or inspect an article (product) being manufactured. In addition, HDR cameras are expected to play an important role in machine vision and autonomous driving systems where video plays an important role.

일반적으로 판매되는 HDR 카메라 이미지 센서의 가격이 고가이므로 제품의 단가가 높다. 따라서 LDR (Low Dynamic Range) 센서를 사용하면서도 HDR 카메라 영상의 효과를 낼 수 있다면 이는 비용적인 측면에서도 큰 이점을 가질 수 있다.In general, the price of a high-end HDR camera image sensor is high, so the unit price is high. Therefore, if an HDR camera image can be effected while using a low dynamic range (LDR) sensor, this can have a great advantage in terms of cost.

이를 위해서는 LDR 센서로 촬영한 영상을 HDR 영상으로 확장시키는 영상 처리 알고리즘이 필요하다.For this, an image processing algorithm is needed to expand the image captured by the LDR sensor into an HDR image.

본 발명은 저 복잡도를 갖는 알고리즘을 적용하여 LDR 영상으로부터 HDR 영상을 생성할 수 있는 HDR 영상 생성 시스템, 방법 및 컴퓨터 판독 가능한 기록매체를 제공하는 것을 목적으로 한다.An object of the present invention is to provide an HDR image generation system, method and a computer-readable recording medium capable of generating an HDR image from an LDR image by applying an algorithm having low complexity.

본 발명의 일 실시예에 따른 HDR 영상 생성 시스템은, LDR 영상을 수신하는 영상 수신부, 상기 LDR 영상에서 포화 영역을 검출하고, 상기 LDR 영상에서 상기 포화 영역을 제거하는 포화 영역 제거부 및 상기 포화 영역에 대응하는 대체 영상을 생성하고, 상기 포화 영역이 제거된 LDR 영상에 상기 대체 영상을 삽입하는 영상 대체부를 포함한다.The HDR image generation system according to an embodiment of the present invention includes an image receiving unit receiving an LDR image, a saturation region removing unit detecting a saturation region from the LDR image, and removing the saturation region from the LDR image. And an image replacement unit that generates a replacement image corresponding to and inserts the replacement image into the LDR image in which the saturation region is removed.

또한, 상기 포화 영역 제거부는 상기 LDR 영상에 포함되는 각 화소의 화소 값 중 최소 값들의 평균, 상기 최소 값들의 표준 편차를 이용하여 상기 포화 영역을 검출할 수 있다.In addition, the saturation region removal unit may detect the saturation region by using an average of minimum values among pixel values of each pixel included in the LDR image and a standard deviation of the minimum values.

또한, 상기 영상 대체부는 상기 포화 영역에 대응하는 화소의 화소 값과 상기 LDR 영상에 포함되는 화소 전체의 화소 값의 평균의 차이를 연산하여 상기 대체 영상을 생성할 수 있다.Also, the image replacement unit may generate the replacement image by calculating an average difference between a pixel value of a pixel corresponding to the saturation region and a pixel value of all pixels included in the LDR image.

또한, 상기 영상 대체부에서 생성된 영상에 톤 맵핑(Tone Mapping)을 수행하는 톤 맵핑부를 더 포함할 수 있으며, 상기 톤 맵핑부는 상기 대체 영상에 포함되는 화소의 밝기 값의 평균과 각 화소의 밝기 값의 비율로부터 상기 각 화소에 적용될 밝기 값을 결정할 수 있다.In addition, the tone mapping unit may perform a tone mapping (Tone Mapping) on the image generated by the image replacement unit, the tone mapping unit may average the brightness value of each pixel included in the replacement image and the brightness of each pixel. A brightness value to be applied to each pixel may be determined from a ratio of values.

한편, 본 발명의 일 실시예에 따른 HDR 영상 생성 방법은, LDR 영상을 수신하는 단계, 상기 LDR 영상에서 포화 영역을 검출하고, 상기 LDR 영상에서 상기 포화 영역을 제거하는 단계, 상기 포화 영역에 대응하는 대체 영상을 생성하는 단계 및 상기 포화 영역이 제거된 LDR 영상에 상기 대체 영상을 삽입하는 단계를 포함한다.Meanwhile, a method for generating an HDR image according to an embodiment of the present invention includes receiving an LDR image, detecting a saturated region from the LDR image, removing the saturated region from the LDR image, and corresponding to the saturated region. And generating the replacement image and inserting the replacement image into the LDR image in which the saturation region is removed.

또한, 상기 포화 영역을 제거하는 단계에서는, 상기 LDR 영상에 포함되는 각 화소의 화소 값 중 최소 값들의 평균, 상기 최소 값들의 표준 편차를 이용하여 상기 포화 영역을 검출할 수 있다.In addition, in the step of removing the saturation region, the saturation region may be detected using an average of minimum values among pixel values of each pixel included in the LDR image and a standard deviation of the minimum values.

또한, 상기 대체 영상을 생성하는 단계에서는, 상기 포화 영역에 대응하는 화소의 화소 값과 상기 LDR 영상에 포함되는 화소 전체의 화소 값의 평균의 차이를 연산하여 상기 대체 영상을 생성할 수 있다.Also, in the step of generating the replacement image, the replacement image may be generated by calculating a difference between an average of pixel values of pixels corresponding to the saturation region and pixel values of all pixels included in the LDR image.

또한, 상기 대체 영상이 삽입된 영상에 톤 맵핑(Tone Mapping)을 수행하는 단계를 더 포함할 수 있으며, 상기 톤 맵핑을 수행하는 단계에서는 상기 대체 영상에 포함되는 화소의 밝기 값의 평균과 각 화소의 밝기 값의 비율로부터 상기 각 화소에 적용될 밝기 값을 결정할 수 있다.In addition, the method may further include performing tone mapping on an image in which the replacement image is inserted, and in performing the tone mapping, the average of the brightness values of the pixels included in the replacement image and each pixel. A brightness value to be applied to each pixel may be determined from a ratio of the brightness values of.

한편, 본 발명에 따른 HDR 영상 생성 방법을 수행하기 위한 프로그램이 기록된 컴퓨터 판독 가능한 기록매체가 제공될 수 있다.Meanwhile, a computer-readable recording medium in which a program for performing the HDR image generation method according to the present invention is recorded may be provided.

본 발명은 저 복잡도를 갖는 알고리즘을 적용하여 LDR 영상으로부터 HDR 영상을 생성할 수 있는 HDR 영상 생성 시스템, 방법 및 컴퓨터 판독 가능한 기록매체를 제공할 수 있다.The present invention can provide an HDR image generation system, method, and computer-readable recording medium capable of generating an HDR image from an LDR image by applying an algorithm having low complexity.

도 1은 본 발명의 일 실시예에 따른 HDR 영상 생성 시스템의 구성을 개략적으로 나타내는 도면이다.
도 2는 본 발명의 다른 실시예에 따른 HDR 영상 생성 시스템의 구성을 개략적으로 나타내는 도면이다.
도 3은 본 발명에 따른 HDR 영상 생성 시스템을 이용하여 LDR 영상으로부터 HDR 영상을 생성하는 과정을 예시적으로 나타내는 도면이다.
도 4는 본 발명의 일 실시예에 따른 HDR 영상 생성 방법을 개략적으로 나타내는 순서도이다.
도 5는 본 발명의 다른 실시예에 따른 HDR 영상 생성 방법을 개략적으로 나타내는 순서도이다.
1 is a view schematically showing the configuration of an HDR image generation system according to an embodiment of the present invention.
2 is a diagram schematically showing the configuration of an HDR image generation system according to another embodiment of the present invention.
FIG. 3 is a diagram exemplarily showing a process of generating an HDR image from an LDR image using the HDR image generation system according to the present invention.
4 is a flowchart schematically showing a method for generating an HDR image according to an embodiment of the present invention.
5 is a flowchart schematically illustrating a method for generating an HDR image according to another embodiment of the present invention.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 설명되는 실시예들을 참조하면 명확해질 것이다. 그러나 본 발명은 아래에서 제시되는 실시예들로 한정되는 것이 아니라, 서로 다른 다양한 형태로 구현될 수 있고, 본 발명의 사상 및 기술 범위에 포함되는 모든 변환, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 아래에 제시되는 실시예들은 본 발명의 개시가 완전하도록 하며, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이다. 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우, 그 상세한 설명을 생략한다.Advantages and features of the present invention, and a method of achieving them will become apparent by referring to embodiments described in detail with reference to the accompanying drawings. However, the present invention is not limited to the embodiments presented below, but can be implemented in various different forms, and should be understood to include all transformations, equivalents, and substitutes included in the spirit and scope of the present invention. do. The embodiments presented below are provided to make the disclosure of the present invention complete, and to fully disclose the scope of the invention to those skilled in the art to which the present invention pertains. In the description of the present invention, when it is determined that detailed descriptions of related known technologies may obscure the subject matter of the present invention, detailed descriptions thereof will be omitted.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함한다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다. 제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다.The terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this application, terms such as "comprises" or "have" are intended to indicate the presence of features, numbers, steps, actions, components, parts or combinations thereof described in the specification, but one or more other features. It should be understood that the existence or addition possibilities of fields or numbers, steps, operations, components, parts or combinations thereof are not excluded in advance. Terms such as first and second may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from other components.

도 1은 본 발명의 일 실시예에 따른 HDR 영상 생성 시스템의 구성을 개략적으로 나타내는 도면이다.1 is a view schematically showing the configuration of an HDR image generation system according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일 실시예에 따른 HDR 영상 생성 시스템(100)은 영상 수신부(110), 포화 영역 제거부(120) 및 영상 대체부(130)를 포함한다. 본 발명에 따른 HDR 영상 생성 시스템(100)은 LDR (Low Dynamic Range) 영상으로부터 HDR (High Dynamic Range) 영상을 생성하는 것을 목적으로 하며, 영상 수신부(110)는 HDR 영상을 생성하기 위한 LDR 영상을 수신한다.Referring to FIG. 1, the HDR image generation system 100 according to an embodiment of the present invention includes an image receiving unit 110, a saturation region removal unit 120, and an image replacement unit 130. The HDR image generation system 100 according to the present invention aims to generate an HDR (High Dynamic Range) image from an LDR (Low Dynamic Range) image, and the image receiving unit 110 generates an LDR image for generating an HDR image. To receive.

디지털 영상의 동적 대역(Dynamic Range, DR)은 영상 내에서 가장 밝은 화소값과 가장 어두운 화소값의 비율로 정의될 수 있으며, HDR 영상은 높은 동적 영역을 갖는 영상으로 이해할 수 있다. 한편, 동적 대역은 측정 가능한 최대 빛의 세기 (white intensity) 대비 최소 빛의 세기 (dark intensity)의 비를 나타내는 것으로도 이해할 수 있으며, 다음의 식으로 정의될 수 있다.The dynamic range (DR) of a digital image may be defined as a ratio of the brightest pixel value and the darkest pixel value in the image, and the HDR image may be understood as an image having a high dynamic range. On the other hand, the dynamic band can also be understood as representing the ratio of the minimum intensity of light (dark intensity) to the maximum intensity of light (white intensity) that can be measured, and can be defined by the following equation.

Figure 112018015761339-pat00001
Figure 112018015761339-pat00001

포화 영역 제거부(120)는 영상 수신부(110)가 수신하는 상기 LDR 영상에서 포화 영역(highlight area)을 검출하고, 상기 LDR 영상에서 상기 포화 영역을 제거한다. 포화 영역 제거부(120)는 상기 포화 영역을 검출하기에 앞서 상기 LDR 영상에 포함되는 화소의 RGB 데이터(화소 값, pixel data) 중 최소 값을 추출한다. 본 발명에 따른 HDR 영상 생성 시스템(100)은 LDR 영상을 프레임 단위로 처리(frame by frame)하여 HDR 영상을 생성하며, 따라서 상기 RGB 데이터의 최소 값은 하나의 LDR 프레임에 포함되는 화소의 RGB 데이터 중 최소 값을 의미한다. 예를 들어, 상기 LDR 프레임의 (10, 10)에 해당하는 화소의 RGB 데이터가 (100, 150, 200)인 경우 해당 화소에서는 100이 최소 값으로 추출될 수 있다.The saturation region removing unit 120 detects a highlight area in the LDR image received by the image receiving unit 110 and removes the saturation region from the LDR image. The saturation region removing unit 120 extracts a minimum value of RGB data (pixel values) of pixels included in the LDR image before detecting the saturation region. The HDR image generation system 100 according to the present invention generates an HDR image by processing an LDR image frame by frame, so the minimum value of the RGB data is the RGB data of a pixel included in one LDR frame. Means the minimum value. For example, when RGB data of a pixel corresponding to (10, 10) of the LDR frame is (100, 150, 200), 100 may be extracted as a minimum value in the corresponding pixel.

이후, 포화 영역 제거부(120)는 상기 최소 값들의 표준 편차와 평균을 산출하고, 상기 최소 값, 표준 편차 및 평균을 이용하여 임계값(threshold)과 오프셋(offset)을 산출할 수 있으며, 보다 구체적으로 상기 임계값과 상기 오프셋은 다음의 수식을 통해 산출될 수 있다.Thereafter, the saturation region removing unit 120 may calculate a standard deviation and an average of the minimum values, and calculate a threshold and an offset using the minimum value, the standard deviation, and the average. Specifically, the threshold and the offset may be calculated through the following equation.

Figure 112018015761339-pat00002
Figure 112018015761339-pat00002

Figure 112018015761339-pat00003
Figure 112018015761339-pat00003

여기서, Thd는 임계값,

Figure 112018015761339-pat00004
은 각 화소의 RGB 데이터 중 최소 값들의 평균, Istd는 각 화소의 RGB 데이터 중 최소 값들의 표준 편차,
Figure 112018015761339-pat00005
는 표준 편차의 계수, 그리고
Figure 112018015761339-pat00006
는 (x, y) 위치의 화소에 대한 오프셋을 의미한다. 한편, 상기 표준 편차의 계수는 실험적으로 약 2.5로 정해질 수 있으나 그 수치가 특정한 값으로 제한되는 것은 아니다.Where T hd is the threshold,
Figure 112018015761339-pat00004
Is the average of the minimum values of the RGB data of each pixel, I std is the standard deviation of the minimum values of the RGB data of each pixel,
Figure 112018015761339-pat00005
Is the coefficient of standard deviation, and
Figure 112018015761339-pat00006
Denotes an offset for a pixel at (x, y). On the other hand, the coefficient of the standard deviation may be experimentally determined to be about 2.5, but the number is not limited to a specific value.

상기 계수는 LDR 영상에 따라 다른 값이 적용될 수 있으며, 아래 첨자 hd는 highlight detection을 의미한다.Different values may be applied to the coefficient according to the LDR image, and subscript hd means highlight detection.

한편, 포화 영역 제거부(120)는 다음의 수식을 통해 상기 포화 영역을 검출할 수 있다.Meanwhile, the saturation region removal unit 120 may detect the saturation region through the following equation.

Figure 112018015761339-pat00007
Figure 112018015761339-pat00007

여기서,

Figure 112018015761339-pat00008
는 포화 영역,
Figure 112018015761339-pat00009
는 포화 영역에 해당하지 않는 영역을 의미한다. 따라서, 상기 LDR 영상에 포함되는 화소의 총 개수는 상기 포화 영역에 해당하는 화소의 개수와 나머지 영역에 해당하는 화소의 개수의 합과 같은 것으로 이해할 수 있다.here,
Figure 112018015761339-pat00008
Is the saturated region,
Figure 112018015761339-pat00009
Means a region that does not correspond to a saturated region. Therefore, it can be understood that the total number of pixels included in the LDR image is equal to the sum of the number of pixels corresponding to the saturation region and the number of pixels corresponding to the remaining region.

이때,

Figure 112018015761339-pat00010
값은 포화 영역에 대해서는 1, 나머지 영역에 대해서는 0의 값을 가질 수 있으며,
Figure 112018015761339-pat00011
값은 포화 영역에 대해서는 0, 나머지 영역에 대해서는 1의 값을 가질 수 있다.At this time,
Figure 112018015761339-pat00010
The value can have a value of 1 for the saturated region and 0 for the remaining region,
Figure 112018015761339-pat00011
The value can have a value of 0 for the saturated region and 1 for the remaining region.

한편, 상기 수학식 3에서 포화 영역 제거부(120)는 LDR 영상에 포함되는 각 화소의 화소 값의 최소 값들의 평균, 표준 편차를 이용하여 임계값을 설정하고, 상기 임계값과 상기 최소 값들의 평균을 비교하여 상기 포화 영역을 검출하는 것으로 이해할 수 있다.Meanwhile, in Equation 3, the saturation region removing unit 120 sets a threshold using the average and standard deviation of the minimum values of the pixel values of each pixel included in the LDR image, and the threshold and the minimum values It can be understood that the saturation region is detected by comparing the means.

포화 영역 제거부(120)는 상기 포화 영역을 검출한 이후, 상기 LDR 영상에서 상기 포화 영역을 제거한다. 상기 포화 영역에 해당하여 제거된 영상은 영상 대체부(130)에 의해 다른 영상으로 대체된다.After detecting the saturation region, the saturation region removal unit 120 removes the saturation region from the LDR image. The image removed corresponding to the saturated region is replaced with another image by the image replacement unit 130.

영상 대체부(130)는 상기 포화 영역에 대응하는 대체 영상을 생성하며, 상기 대체 영상은 다음의 수식을 이용해 생성될 수 있다.The image replacement unit 130 generates a replacement image corresponding to the saturation region, and the replacement image may be generated using the following equation.

Figure 112018015761339-pat00012
Figure 112018015761339-pat00012

여기서,

Figure 112018015761339-pat00013
는 상기 대체 영상을 의미하며,
Figure 112018015761339-pat00014
는 상기 LDR 영상에 포함된 픽셀(x, y)의 RGB 값,
Figure 112018015761339-pat00015
는 픽셀(x, y)의 RGB 값 중 최소 값을 의미한다. 그리고,
Figure 112018015761339-pat00016
는 다음의 수식으로 정의될 수 있다.here,
Figure 112018015761339-pat00013
Means the replacement image,
Figure 112018015761339-pat00014
Is an RGB value of a pixel (x, y) included in the LDR image,
Figure 112018015761339-pat00015
Denotes the minimum value of the RGB values of the pixels (x, y). And,
Figure 112018015761339-pat00016
Can be defined by the following equation.

Figure 112018015761339-pat00017
Figure 112018015761339-pat00017

Figure 112018015761339-pat00018
Figure 112018015761339-pat00018

여기서,

Figure 112018015761339-pat00019
는 상기 대체 영상에 대한 임계값,
Figure 112018015761339-pat00020
Figure 112018015761339-pat00021
에 대한 계수이다.here,
Figure 112018015761339-pat00019
Is the threshold for the replacement image,
Figure 112018015761339-pat00020
The
Figure 112018015761339-pat00021
Is the coefficient for.

영상 대체부(130)는 상기 수학식 4 및 5를 통해 상기 대체 영상을 생성하고, 포화 영역 제거부(120)에서 검출된 상기 포화 영역을 상기 대체 영상으로 대체한다.The image replacement unit 130 generates the replacement image through Equations 4 and 5, and replaces the saturation region detected by the saturation region removal unit 120 with the replacement image.

상기 포화 영역의 상기 대체 영상으로의 대체 과정은 다음의 수식으로 표현될 수 있다.The replacement process of the saturated region with the replacement image may be expressed by the following equation.

Figure 112018015761339-pat00022
Figure 112018015761339-pat00022

Figure 112018015761339-pat00023
는 포화 영역이 대체 영상으로 대체된 영상을 의미하며, 상기 수식은 포화 영역(
Figure 112018015761339-pat00024
)은 대체 영상(
Figure 112018015761339-pat00025
)으로 대체되고, 나머지 영역(
Figure 112018015761339-pat00026
)은 원래의 LDR 영상(
Figure 112018015761339-pat00027
)으로 유지되는 것을 의미한다.
Figure 112018015761339-pat00023
Means an image in which the saturated region is replaced by an alternative image, and the above formula is a saturated region (
Figure 112018015761339-pat00024
) Is an alternative video (
Figure 112018015761339-pat00025
), And the rest of the area (
Figure 112018015761339-pat00026
) Is the original LDR image (
Figure 112018015761339-pat00027
).

한편, 상기 수학식 6을 통해 생성되는 영상은 픽셀 간의 밝기 불균형이 존재할 수 있으며, 이러한 불균형을 해소하기 위하여

Figure 112018015761339-pat00028
항은 다음과 같이
Figure 112018015761339-pat00029
항으로 대체될 수 있다.On the other hand, the image generated through Equation 6 may have a brightness imbalance between pixels, and in order to solve this imbalance
Figure 112018015761339-pat00028
The term is as follows
Figure 112018015761339-pat00029
Term.

Figure 112018015761339-pat00030
Figure 112018015761339-pat00030

Figure 112018015761339-pat00031
Figure 112018015761339-pat00031

여기서,

Figure 112018015761339-pat00032
Figure 112018015761339-pat00033
의 밝기를 의미하고, V 값은 이미지에 따라 다른 값이 적용되는 계수, 그리고
Figure 112018015761339-pat00034
는 밝기 값이 조정된 대체 영상을 의미한다.here,
Figure 112018015761339-pat00032
The
Figure 112018015761339-pat00033
Means the brightness, V value is the coefficient to which different values are applied depending on the image, and
Figure 112018015761339-pat00034
Indicates an alternative image in which the brightness value is adjusted.

따라서, 상기 수학식 6은 다음과 같이 표현될 수 있다.Accordingly, Equation 6 may be expressed as follows.

Figure 112018015761339-pat00035
Figure 112018015761339-pat00035

여기서,

Figure 112018015761339-pat00036
는 포화 영역이 제거된 HDR 영상으로, Highlight Free Imgae를 의미한다.here,
Figure 112018015761339-pat00036
Is the HDR image with the saturation region removed, which means Highlight Free Imgae.

도 2는 본 발명의 다른 실시예에 따른 HDR 영상 생성 시스템의 구성을 개략적으로 나타내는 도면이다.2 is a diagram schematically showing the configuration of an HDR image generation system according to another embodiment of the present invention.

도 2를 참조하면, 본 발명의 다른 실시예에 따른 HDR 영상 생성 시스템(200)은 영상 수신부(210), 포화 영역 제거부(220), HDR 영상 대체부(230), 및 톤 맵핑부(240)를 포함한다. 영상 수신부(210), 포화 영역 제거부(220), 및 영상 대체부(230)는 도 1을 참조로 하여 설명한 영상 수신부(110), 포화 영역 제거부(120), 및 영상 대체부(130)와 실질적으로 동일한 기능을 수행하므로 중복되는 내용에 한하여 구체적인 설명은 생략하도록 한다.Referring to FIG. 2, the HDR image generation system 200 according to another embodiment of the present invention includes an image receiving unit 210, a saturation region removal unit 220, an HDR image replacement unit 230, and a tone mapping unit 240 ). The image receiving unit 210, the saturation region removal unit 220, and the image replacement unit 230 are the image receiving unit 110, the saturation region removal unit 120, and the image replacement unit 130 described with reference to FIG. 1. And performs substantially the same function, so detailed descriptions will be omitted only for overlapping contents.

톤 맵핑부(240)는 영상 대체부(230)에서 생성된 영상에 톤 맵핑(Tone Mapping)을 수행한다. 상기 톤 맵핑은 영상 대체부(230)에서 출력되는 상기 영상(즉, Highlight Free Image)이 보다 자연스럽도록 새로운 밝기 값을 적용하는 것으로 이해할 수 있다.The tone mapping unit 240 performs tone mapping on the image generated by the image replacement unit 230. The tone mapping may be understood as applying a new brightness value so that the image (ie, Highlight Free Image) output from the image replacement unit 230 is more natural.

톤 맵핑부(240)는 먼저 수학식 8을 통해 계산되는 영상의 밝기 값의 로그 평균을 계산할 수 있다.The tone mapping unit 240 may first calculate the logarithm average of the brightness value of the image calculated through Equation (8).

Figure 112018015761339-pat00037
Figure 112018015761339-pat00037

여기서,

Figure 112018015761339-pat00038
Figure 112018015761339-pat00039
의 로그 평균 밝기 값을 의미하며,
Figure 112018015761339-pat00040
Figure 112018015761339-pat00041
의 밝기 값을 의미한다. 또한,
Figure 112018015761339-pat00042
를 계산하는 방법과 동일한 방법을 이용하여 계산될 수 있다.here,
Figure 112018015761339-pat00038
The
Figure 112018015761339-pat00039
Means the logarithmic average brightness value of
Figure 112018015761339-pat00040
The
Figure 112018015761339-pat00041
Means the brightness value of In addition,
Figure 112018015761339-pat00042
It can be calculated using the same method as the method for calculating.

한편, 톤 맵핑을 수행하기 위한 새로운 밝기 값은 다음과 같이 정의될 수 있다.Meanwhile, a new brightness value for performing tone mapping may be defined as follows.

Figure 112018015761339-pat00043
Figure 112018015761339-pat00043

여기서, a는 대상 이미지에 따라 다르게 적용되는 키 값(key value)을 의미하며, 상대적으로 밝은 프레임에는 높은 값, 상대적으로 어두운 프레임에는 낮은 값이 적용될 수 있다.Here, a means a key value applied differently according to the target image, and a high value may be applied to a relatively bright frame and a low value to a relatively dark frame.

본 발명에서는 종래의 방법을 변형하여 수학식 11과 같이 최종적으로 적용되는 밝기 값을 적용할 수 있다.In the present invention, a brightness value finally applied as shown in Equation 11 may be applied by modifying the conventional method.

Figure 112018015761339-pat00044
Figure 112018015761339-pat00044

여기서,

Figure 112018015761339-pat00045
값은 상기 키 값과 마찬가지로 더 나은 HDR 영상을 얻기 위하여 대상 이미지마다 서로 다른 값이 적용될 수 있다.here,
Figure 112018015761339-pat00045
As for the key value, different values may be applied to each target image to obtain a better HDR image.

한편, 톤 맵핑부(240)는 상기 수학식 11을 통해 계산되는 밝기 값(Ld)을 적용하기 위하여 각각의 화소 값을 다음과 같이 산출할 수 있다.Meanwhile, the tone mapping unit 240 may calculate each pixel value as follows in order to apply the brightness value L d calculated through Equation (11).

Figure 112018015761339-pat00046
Figure 112018015761339-pat00046

여기서,

Figure 112018015761339-pat00047
는 톤 맵핑을 거쳐 최종적으로 생성되는 HDR 영상을 의미하며,
Figure 112018015761339-pat00048
를 만족한다.here,
Figure 112018015761339-pat00047
Means the HDR image that is finally generated through tone mapping,
Figure 112018015761339-pat00048
Is satisfied.

도 3은 본 발명에 따른 HDR 영상 생성 시스템을 이용하여 LDR 영상으로부터 HDR 영상을 생성하는 과정을 예시적으로 나타내는 도면이다.3 is a view exemplarily showing a process of generating an HDR image from an LDR image using the HDR image generation system according to the present invention.

도 3(a)부터 도 3(f)까지는 각각 LDR 영상, 포화 영역, 대체 영상, 상기 대체 영상으로 대체된 영상, 밝기 불균형이 해소된 영상 및 톤 맵핑이 적용된 영상을 나타낸다.3 (a) to 3 (f) respectively show an LDR image, a saturated region, an alternative image, an image replaced by the replacement image, an image in which brightness imbalance is resolved, and an image to which tone mapping is applied.

도 3에 도시되는 이미지에서

Figure 112018015761339-pat00049
값은 0.5가 적용되었으며, 밝기 불균형을 해소하기 위한 V 값은 1.2가 적용되었다. 한편, a 값과 Lwhite 값은 최종 결과물인 HDR 영상의 밝기 값의 표준 편차가 최소가 되도록 선택될 수 있으며, 도 3에서는 각각 0.05와 0.19가 적용되었다.In the image shown in Figure 3
Figure 112018015761339-pat00049
The value of 0.5 was applied, and the V value of 1.2 was applied to solve the brightness imbalance. Meanwhile, the a value and the L white value may be selected so that the standard deviation of the brightness value of the final result HDR image is minimum, and in FIG. 3, 0.05 and 0.19 were applied, respectively.

도 3을 참조하면, 본 발명에 따른 HDR 영상 생성 시스템을 적용하여 LDR 영상으로부터 HDR 영상을 생성한 결과, 과노출되거나 부족 노출되는 부분이 제거되고 이미지 전체적으로 시인성이 향상된 결과를 얻을 수 있다.Referring to FIG. 3, as a result of generating an HDR image from an LDR image by applying the HDR image generation system according to the present invention, an overexposed or underexposed portion may be removed and an overall image may have improved visibility.

도 4는 본 발명의 일 실시예에 따른 HDR 영상 생성 방법을 개략적으로 나타내는 순서도이다.4 is a flowchart schematically illustrating a method for generating an HDR image according to an embodiment of the present invention.

도 4를 참조하면, 본 발명의 일 실시예에 따른 HDR 영상 생성 방법은, LDR 영상 수신 단계(S110), 포화 영역 제거 단계(S120), 대체 영상 생성 단계(S130) 및 대체 영상 삽입 단계(S140)를 포함한다.Referring to FIG. 4, an HDR image generation method according to an embodiment of the present invention includes an LDR image reception step (S110), a saturation region removal step (S120), an alternate image generation step (S130), and an alternate image insertion step (S140). ).

본 발명에 따른 HDR 영상 생성 방법은 LDR (low Dynamic Range) 영상으로부터 HDR (High Dynamic Range) 영상을 생성하는 것을 목적으로 하며, LDR 영상 수신 단계(S110)에서는 HDR 영상을 생성하기 위한 LDR 영상을 수신한다. 한편, 디지털 영상의 동적 대역(Dynamic Range, DR)은 수학식 1과 같이 정의될 수 있다.The HDR image generation method according to the present invention aims to generate a high dynamic range (HDR) image from a low dynamic range (LDR) image, and the LDR image reception step (S110) receives an LDR image for generating an HDR image. do. Meanwhile, a dynamic range (DR) of a digital image may be defined as in Equation 1.

포화 영역 제거 단계(S120)에서는 상기 LDR 영상에서 포화 영역(highlight area)을 검출하고, 상기 LDR 영상에서 상기 포화 영역을 제거한다. 상기 포화 영역 제거 단계(S120)에서는 상기 포화 영역을 검출하기에 앞서 상기 LDR 영상에 포함되는 화소의 RGB 데이터 중 최소 값을 추출한다. 본 발명에 따른 HDR 영상 생성 방법은 LDR 영상을 프레임 단위로 처리(frame by frame)하여 HDR 영상을 생성하며, 따라서 상기 RGB 데이터의 최소 값은 하나의 LDR 프레임에 포함되는 화소의 RGB 데이터 중 최소 값을 의미한다. 예를 들어, 상기 LDR 프레임의 (10, 10)에 해당하는 화소의 RGB 데이터가 (100, 150, 200)인 경우 해당 화소에서는 100이 최소 값으로 추출될 수 있다.In the saturation region removal step (S120), a highlight area is detected in the LDR image, and the saturation region is removed from the LDR image. In the saturation region removal step (S120), a minimum value among RGB data of pixels included in the LDR image is extracted before detecting the saturation region. In the HDR image generating method according to the present invention, an HDR image is generated by processing an LDR image frame by frame, so the minimum value of the RGB data is the minimum value among the RGB data of pixels included in one LDR frame. Means For example, when RGB data of a pixel corresponding to (10, 10) of the LDR frame is (100, 150, 200), 100 may be extracted as a minimum value in the corresponding pixel.

이후, 포화 영역 제거 단계(S120)에서는 상기 최소 값들의 표준 편차와 평균을 산출하고, 상기 최소 값, 표준 편차 및 평균을 이용하여 임계값(threshold)과 오프셋(offset)을 산출할 수 있으며, 보다 구체적으로 상기 임계값과 상기 오프셋은 상기 수학식 2를 통해 산출될 수 있다.Thereafter, in the saturation region removal step (S120), a standard deviation and an average of the minimum values are calculated, and a threshold and an offset can be calculated using the minimum value, the standard deviation, and the average. Specifically, the threshold and the offset may be calculated through Equation (2).

한편, 포화 영역 제거 단계(S120)에서는 상기 임계값과 오프셋을 이용하여 상기 포화 영역을 검출할 수 있으며, 일 예로서 상기 수학식 3을 통해 상기 포화 영역을 검출할 수 있다.Meanwhile, in the saturation region removal step (S120), the saturation region may be detected using the threshold and offset, and as an example, the saturation region may be detected through Equation (3).

대체 영상 생성 단계(S130)에서는 상기 포화 영역에 대응하는 대체 영상을 생성하며, 상기 대체 영상은 상기 수학식 4 및 5를 통해 생성될 수 있다. 상기 수학식 4 및 5는 상기 포화 영역에 대응하는 화소의 화소 값과 상기 LDR 영상에 포함되는 화소 전체의 화소 값의 평균을 차이를 연산하는 것으로 해석될 수 있다.In the replacement image generation step S130, the replacement image corresponding to the saturated region is generated, and the replacement image may be generated through Equations 4 and 5. Equations 4 and 5 may be interpreted as calculating a difference between a pixel value of a pixel corresponding to the saturation region and a pixel value of all pixels included in the LDR image.

마지막으로 대체 영상 삽입 단계(S140)에서는 상기 포화 영역이 제거된 LDR 영상에 상기 대체 영상을 삽입하며, 상기 대체 영상으로 대체되는 과정은 상기 수학식 6을 통해 표현될 수 있다. 또한, 상기 대체 영상을 삽입한 이후, 화소 사이의 밝기 불균형을 해소하기 위하여 상기 수학식 7을 통해 화소 간의 밝기에 균형을 맞출 수 있다.Finally, in the replacement image insertion step (S140), the replacement image is inserted into the LDR image in which the saturation region is removed, and the process of replacing the replacement image with the replacement image may be expressed through Equation (6). In addition, after inserting the replacement image, the brightness between pixels may be balanced through Equation 7 in order to solve the brightness imbalance between pixels.

도 5는 본 발명의 다른 실시예에 따른 HDR 영상 생성 방법을 개략적으로 나타내는 순서도이다.5 is a flowchart schematically illustrating a method for generating an HDR image according to another embodiment of the present invention.

도 5를 참조하면, 본 발명의 다른 실시예에 따른 HDR 영상 생성 방법은, LDR 영상 수신 단계(S210), 포화 영역 제거 단계(S220), 대체 영상 생성 단계(S230), 대체 영상 삽입 단계(S240) 및 톤 맵핑 단계(S250)를 포함한다. LDR 영상 수신 단계(S210), 포화 영역 제거 단계(S220), 대체 영상 생성 단계(S230), 및 대체 영상 삽입 단계(S240)에서는 도 4를 참조로 하여 설명한 LDR 영상 수신 단계(S110), 포화 영역 제거 단계(S120), 대체 영상 생성 단계(S130) 및 대체 영상 삽입 단계(S140)에서와 실질적으로 동일한 동작이 수행되므로 중복되는 내용에 대하여 구체적인 설명은 생략하도록 한다.5, the HDR image generation method according to another embodiment of the present invention, LDR image receiving step (S210), saturation region removal step (S220), replacement image generation step (S230), replacement image insertion step (S240) ) And a tone mapping step (S250). In the LDR image reception step (S210), the saturation area removal step (S220), the replacement image generation step (S230), and the replacement image insertion step (S240), the LDR image reception step (S110) and the saturation area described with reference to FIG. Since substantially the same operation is performed in the removal step (S120), the replacement image generation step (S130), and the replacement image insertion step (S140), detailed description of the overlapped content will be omitted.

톤 맵핑 단계(S250)에서는 상기 대체 영상이 삽입된 영상에 대하여 톤 맵핑(Tone Mapping)을 수행한다. 상기 톤 맵핑은 상기 대체 영상 삽입 단계(S240)에서 생성된 영상이 보다 자연스럽도록 새로운 밝기 값을 적용하는 것으로 이해할 수 있다. 톤 맵핑 단계(S250)에서는 먼저 상기 수학식 8을 통해 계산되는 영상의 밝기 값의 로그 평균을 계산할 수 있다.In the tone mapping step (S250), tone mapping is performed on an image in which the replacement image is inserted. The tone mapping may be understood as applying a new brightness value so that the image generated in the replacement image insertion step (S240) is more natural. In the tone mapping step (S250), first, a logarithm average of the brightness value of the image calculated through Equation 8 may be calculated.

톤 맵핑 단계(S250)에서는 상기 대체 영상에 포함되는 화소의 밝기 값의 평균과 각 화소의 밝기 값의 비율로부터 상기 각 화소에 적용될 밝기 값을 결정할 수 있으며, 구체적으로는 상기 수학식 9 내지 11을 통해 톤 맵핑을 수행할 수 있다. 그리고, 최종적으로는 상기 수학식 12를 통해 톤 맵핑 적용된 HDR 영상을 생성할 수 있다.In the tone mapping step (S250), a brightness value to be applied to each pixel may be determined from an average of the brightness values of pixels included in the replacement image and a brightness value of each pixel, and specifically, Equations 9 to 11 Tone mapping can be performed. And, finally, an HDR image to which tone mapping is applied may be generated through Equation (12).

한편, 본 발명은 컴퓨터로 읽을 수 있는 기록 매체에 컴퓨터가 읽을 수 있는 코드로 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록 매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록 매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장 장치 등이 있다.Meanwhile, the present invention can be embodied in computer readable codes on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data readable by a computer system are stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disks, and optical data storage devices.

또한, 컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산 방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. 그리고 본 발명을 구현하기 위한 기능적인(functional) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술 분야의 프로그래머들에 의하여 용이하게 추론될 수 있다.In addition, the computer-readable recording medium can be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. In addition, functional programs, codes, and code segments for implementing the present invention can be easily inferred by programmers in the technical field to which the present invention pertains.

본 발명에 따른 방법을 구성하는 단계들에 대하여 명백하게 순서를 기재하거나 반하는 기재가 없다면, 상기 단계들은 적당한 순서로 행해질 수 있다. 반드시 상기 단계들의 기재 순서에 따라 본 발명이 한정되는 것은 아니다.Unless explicitly stated or contrary to the steps constituting the method according to the invention, the steps can be done in a suitable order. The present invention is not necessarily limited to the description order of the above steps.

본 발명에서 모든 예들 또는 예시적인 용어(예를 들어, 등등)의 사용은 단순히 본 발명을 상세히 설명하기 위한 것으로서 특허청구범위에 의해 한정되지 않는 이상 상기 예들 또는 예시적인 용어로 인해 본 발명의 범위가 한정되는 것은 아니다. 또한 해당 기술 분야의 통상의 기술자는 다양한 수정, 조합 및 변경이 부가된 특허청구범위 또는 그 균등물의 범주 내에서 설계 조건 및 팩터(factor)에 따라 구성될 수 있음을 알 수 있다.The use of all examples or exemplary terms (eg, etc.) in the present invention is merely for describing the present invention in detail, and the scope of the present invention is due to the examples or exemplary terms, unless it is limited by the claims. It is not limited. In addition, a person skilled in the art can recognize that various modifications, combinations, and changes can be configured according to design conditions and factors within the scope of the appended claims or equivalents thereof.

따라서, 본 발명의 사상은 상기 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐만 아니라, 이 특허청구범위와 균등한 또는 이로부터 등가적으로 변경된 모든 범위는 본 발명의 사상의 범주에 속한다고 할 것이다.Accordingly, the spirit of the present invention should not be limited to the above-described embodiments, and the scope of the present invention, as well as the claims to be described later, and all ranges that are equivalent to or equivalently changed from the claims of the present invention It would be said to fall into the category.

100, 200: HDR 영상 생성 시스템
110, 210: 영상 수신부
120, 220: 포화 영역 제거부
130, 230: 영상 대체부
240: 톤 맵핑부
100, 200: HDR image generation system
110, 210: video receiver
120, 220: saturation region removal unit
130, 230: video replacement
240: tone mapping unit

Claims (11)

LDR(Low Dynamic Range) 영상을 수신하는 영상 수신부;
상기 LDR 영상에서 포화 영역을 검출하고, 상기 LDR 영상에서 상기 포화 영역을 제거하는 포화 영역 제거부; 및
상기 포화 영역에 대응하는 대체 영상을 생성하고, 상기 포화 영역이 제거된 LDR 영상에 상기 대체 영상을 삽입하여 제1 HDR 영상을 획득하는 영상 대체부; 및
톤 맵핑 맵핑 밝기 값을 산출하고, 상기 톤 맵핑 밝기 값을 기초로 제1 HDR 영상에 톤 맵핑(Tone Mapping)을 수행하여 톤 맵핑된 제2 HDR 영상을 획득하는 톤 맵핑부;
를 포함하고,
상기 톤 맵핑 밝기 값 Ld(x,y)은,
Figure 112020501296043-pat00055
을 통해 산출되고,
상기 L(x,y)는 상기 제1 HDR 영상의 제1 밝기 값을 상기 제1 HDR 영상의 로그 평균 밝기 값으로 나눈 제2 밝기 값이고, Lwhite는 상기 제2 HDR 영상의 밝기 값의 표준 편차가 최소가 되도록 설정된 값인, HDR(High Dynamic Range) 영상 생성 시스템.
An image receiving unit that receives a low dynamic range (LDR) image;
A saturation region removal unit detecting a saturation region from the LDR image and removing the saturation region from the LDR image; And
An image replacement unit generating an alternate image corresponding to the saturation region, and inserting the replacement image in the LDR image from which the saturation region is removed to obtain a first HDR image; And
A tone mapping unit calculating a tone mapping mapping brightness value and obtaining a second tone mapped HDR image by performing tone mapping on a first HDR image based on the tone mapping brightness value;
Including,
The tone mapping brightness value L d (x, y) is
Figure 112020501296043-pat00055
Is calculated through,
The L (x, y) is a second brightness value obtained by dividing the first brightness value of the first HDR image by the log average brightness value of the first HDR image, and L white is the standard of the brightness value of the second HDR image. HDR (High Dynamic Range) image generation system, which is a value set so that the deviation is minimum.
제1항에 있어서,
상기 포화 영역 제거부는 상기 LDR 영상에 포함되는 각 화소의 화소 값 중 최소 값들의 평균, 상기 최소 값들의 표준 편차를 이용하여 상기 포화 영역을 검출하는 HDR 영상 생성 시스템.
According to claim 1,
The saturation region removing unit detects the saturation region using an average of minimum values among pixel values of each pixel included in the LDR image and a standard deviation of the minimum values.
제1항에 있어서,
상기 영상 대체부는 상기 포화 영역에 대응하는 화소의 화소 값과 상기 LDR 영상에 포함되는 화소 전체의 화소 값의 평균의 차이를 연산하여 상기 대체 영상을 생성하는 HDR 영상 생성 시스템.
According to claim 1,
The image replacement unit HDR image generation system to generate the replacement image by calculating the difference between the average of the pixel values of the pixels included in the LDR image and the pixel value of the pixel corresponding to the saturation region.
삭제delete 삭제delete LDR(Low Dynamic Range) 영상을 수신하는 단계;
상기 LDR 영상에서 포화 영역을 검출하고, 상기 LDR 영상에서 상기 포화 영역을 제거하는 단계;
상기 포화 영역에 대응하는 대체 영상을 생성하는 단계; 및
상기 포화 영역이 제거된 LDR 영상에 상기 대체 영상을 삽입하여 제1 HDR 영상을 획득하는 단계;및
톤 맵핑 밝기 값을 산출하고, 상기 톤 맵핑 밝기 값을 기초로 제1 HDR 영상에 톤 맵핑(Tone Mapping)을 수행하여 톤 맵핑된 제2 HDR 영상을 획득하는 단계;
를 포함하고,
상기 톤 맵핑 밝기 값 Ld(x,y)은,
Figure 112020501296043-pat00056
을 통해 산출되고,
상기 L(x,y)는 상기 제1 HDR 영상의 제1 밝기 값을 상기 제1 HDR 영상의 로그 평균 밝기 값으로 나눈 제2 밝기 값이고, Lwhite는 상기 제2 HDR 영상의 밝기 값의 표준 편차가 최소가 되도록 설정된 값인, HDR(High Dynamic Range) 영상 생성 방법.
Receiving a low dynamic range (LDR) image;
Detecting a saturation region in the LDR image and removing the saturation region from the LDR image;
Generating an alternate image corresponding to the saturated region; And
Obtaining a first HDR image by inserting the replacement image into the LDR image from which the saturation region is removed; and
Calculating a tone mapping brightness value, and performing tone mapping on a first HDR image based on the tone mapping brightness value to obtain a tone-mapped second HDR image;
Including,
The tone mapping brightness value L d (x, y) is
Figure 112020501296043-pat00056
Is calculated through,
The L (x, y) is a second brightness value obtained by dividing the first brightness value of the first HDR image by the log average brightness value of the first HDR image, and L white is the standard of the brightness value of the second HDR image. A method of generating a high dynamic range (HDR) image, which is a value set to have a minimum deviation.
제6항에 있어서,
상기 포화 영역을 제거하는 단계에서는, 상기 LDR 영상에 포함되는 각 화소의 화소 값 중 최소 값들의 평균, 상기 최소 값들의 표준 편차를 이용하여 상기 포화 영역을 검출하는 HDR 영상 생성 방법.
The method of claim 6,
In the step of removing the saturation region, an HDR image generation method of detecting the saturation region using an average of minimum values among pixel values of each pixel included in the LDR image and a standard deviation of the minimum values.
제6항에 있어서,
상기 대체 영상을 생성하는 단계에서는, 상기 포화 영역에 대응하는 화소의 화소 값과 상기 LDR 영상에 포함되는 화소 전체의 화소 값의 평균의 차이를 연산하여 상기 대체 영상을 생성하는 HDR 영상 생성 방법.
The method of claim 6,
In the generating of the replacement image, an HDR image generation method of generating the replacement image by calculating an average difference between a pixel value of a pixel corresponding to the saturation region and a pixel value of all pixels included in the LDR image.
삭제delete 삭제delete 제6항 내지 제8항 중 어느 한 항에 따른 방법을 수행하기 위한 프로그램이 기록된 컴퓨터 판독 가능한 기록매체.A computer-readable recording medium in which a program for performing the method according to any one of claims 6 to 8 is recorded.
KR1020180017750A 2018-02-13 2018-02-13 High dynamic range image generation system, method and computer readable recording medium thereof KR102089084B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180017750A KR102089084B1 (en) 2018-02-13 2018-02-13 High dynamic range image generation system, method and computer readable recording medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180017750A KR102089084B1 (en) 2018-02-13 2018-02-13 High dynamic range image generation system, method and computer readable recording medium thereof

Publications (3)

Publication Number Publication Date
KR20190097838A KR20190097838A (en) 2019-08-21
KR102089084B1 true KR102089084B1 (en) 2020-05-27
KR102089084B9 KR102089084B9 (en) 2021-11-16

Family

ID=67808739

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180017750A KR102089084B1 (en) 2018-02-13 2018-02-13 High dynamic range image generation system, method and computer readable recording medium thereof

Country Status (1)

Country Link
KR (1) KR102089084B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004282416A (en) * 2003-03-17 2004-10-07 Oki Data Corp Method and apparatus for processing image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3535585B2 (en) * 1994-11-18 2004-06-07 キヤノン株式会社 Image processing method, image processing device, and imaging device
US8339475B2 (en) * 2008-12-19 2012-12-25 Qualcomm Incorporated High dynamic range image combining

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004282416A (en) * 2003-03-17 2004-10-07 Oki Data Corp Method and apparatus for processing image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Yongqing Huo ET AL:"High-dynamic range image generation from single low-dynamic range image", IET Image Processing, Volume: 10, Issue: 3, pp.198-205, 1 March 2016(2016.03.01.) 1부.*

Also Published As

Publication number Publication date
KR102089084B9 (en) 2021-11-16
KR20190097838A (en) 2019-08-21

Similar Documents

Publication Publication Date Title
JP5389903B2 (en) Optimal video selection
EP3306915B1 (en) Method and apparatus for controlling image data
US10169655B2 (en) Detection of logos in a sequence of video frames
CN105046655B (en) A kind of automatic sharpening method of video image and device
US20150170389A1 (en) Automatic selection of optimum algorithms for high dynamic range image processing based on scene classification
CA3039239C (en) Conformance of media content to original camera source using optical character recognition
CN103945145A (en) Apparatus and method for processing image
CN107172354B (en) Video processing method and device, electronic equipment and storage medium
KR102059906B1 (en) Method and image capturing device for detecting fog in a scene
CN108364275B (en) Image fusion method and device, electronic equipment and medium
JP2011135509A (en) Method for processing image, image processing apparatus, and imaging apparatus
CN110717865B (en) Picture detection method and device
CN101686321B (en) Method and system for reducing noise in image data
US8165421B2 (en) Method and apparatus for image processing by using stored image
KR101854432B1 (en) Method and apparatus for detecting and compensating back light frame
KR20150059302A (en) Method for recognizing character by fitting image shot, and information processing device for executing it
KR102089084B1 (en) High dynamic range image generation system, method and computer readable recording medium thereof
JP2008305122A (en) Image-processing apparatus, image processing method and program
KR20150040559A (en) Apparatus for Improving Image Quality and Computer-Readable Recording Medium with Program Therefor
CN110211085B (en) Image fusion quality evaluation method and system
CN113674158A (en) Image processing method, device, equipment and storage medium
JP2009194786A (en) Object detecting device, and imaging apparatus
CN105450909B (en) Information processing method and electronic equipment
CN116647760B (en) Wide dynamic implementation method, device, camera and storage medium for target detection
CN111383180B (en) Image enhancement method, device and computer storage medium

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
X091 Application refused [patent]
AMND Amendment
X701 Decision to grant (after re-examination)
GRNT Written decision to grant
G170 Re-publication after modification of scope of protection [patent]
G170 Re-publication after modification of scope of protection [patent]