KR101349239B1 - Apparatus and method for compressing image - Google Patents
Apparatus and method for compressing image Download PDFInfo
- Publication number
- KR101349239B1 KR101349239B1 KR1020070121090A KR20070121090A KR101349239B1 KR 101349239 B1 KR101349239 B1 KR 101349239B1 KR 1020070121090 A KR1020070121090 A KR 1020070121090A KR 20070121090 A KR20070121090 A KR 20070121090A KR 101349239 B1 KR101349239 B1 KR 101349239B1
- Authority
- KR
- South Korea
- Prior art keywords
- image
- luminance level
- occupancy
- pixel
- distribution
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/57—Control of contrast or brightness
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration by the use of histogram techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20208—High dynamic range [HDR] image processing
Abstract
영상 계조 압축 장치 및 방법이 제공된다. 본 발명의 실시예에 따른 영상 계조 압축 장치는 입력된 영상의 각 픽셀에 대한 휘도 레벨을 분석하여 휘도 레벨의 점유 분포를 구하는 점유율 분석부, 휘도 레벨의 점유 분포에서 소정의 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 점유 분포를 제외한 나머지 점유 분포를 이용해서 입력된 영상의 점유 분포를 재배치하고, 점유 분포의 재배치에 의하여 영상의 각 픽셀의 휘도 레벨을 변경하는 휘도 레벨 변경부 및 휘도 레벨이 변경된 영상의 계조를 압축하는 영상 계조 압축부를 포함한다. An image grayscale compression device and method are provided. An image gray scale compression apparatus according to an exemplary embodiment of the present invention analyzes a luminance level of each pixel of an input image to obtain an occupancy distribution of luminance levels, and an occupancy ratio lower than a predetermined threshold in the occupancy distribution of luminance levels. A luminance level changing unit for relocating the occupancy distribution of the input image using the remaining occupancy distribution except for the occupancy distribution of the luminance level, and changing the luminance level of each pixel of the image by relocating the occupancy distribution, and the image whose luminance level is changed. And an image gray scale compression unit for compressing gray scales.
영상, 압축, 휘도, 콘트라스트, HDR Image, Compression, Luminance, Contrast, HDR
Description
본 발명은 영상 계조 압축 장치 및 방법에 관한 것으로, 보다 상세하게는 영상의 계조를 압축할 때 로컬 컨트러스트(local contrast)가 손실되는 것을 방지하는 영상 계조 압축 장치 및 방법에 관한 것이다.The present invention relates to an image gray scale compression apparatus and method, and more particularly, to an image gray scale compression apparatus and method for preventing the loss of local contrast when compressing the gray scale of the image.
최근 디지털 카메라, 무비 카메라 등과 같이 고해상도 카메라를 장착한 장치들의 보급이 확산되고 있다.Recently, the spread of devices equipped with high resolution cameras such as digital cameras and movie cameras has been spreading.
통상, 상기 장치에서 획득한 영상을 CRT(Cathode Ray Tube)나 액정 모니터 등의 영상 표시 장치에 입력하여 영상은 표시된다. In general, an image obtained by the apparatus is input to an image display device such as a cathode ray tube (CRT) or a liquid crystal monitor, and the image is displayed.
이때, 영상을 획득하는 장치에서 얻어진 영상의 다이나믹 레인지(dynamic range)와 영상 표시 장치의 다이나믹 레인지가 다를 때, 특히 영상을 획득하는 장치에서 얻어진 영상이 하이 다이나믹 레인지(HDR: High Dynamic Range) 영상(광대역 영상을 위한 센서에서 획득한 HDR 영상 또는 다중 노출에 의한 영상 합성을 통한 HDR 영상)이고 영상 표시 장치가 로우 다이나믹 레인지(LDR: Low Dynamic Range)만 지원할 때에는 영상 표시 장치가 지원하는 비트 심도(bit depth)에 맞게 획득한 HDR 영상의 계조를 압축해야 한다. In this case, when the dynamic range of the image obtained by the image capturing apparatus and the dynamic range of the image display apparatus are different, in particular, the image obtained by the image capturing apparatus is a high dynamic range (HDR) image ( Bit depth supported by the image display device when the HDR image acquired from the sensor for the wideband image or the HDR image through image synthesis by multiple exposures and the image display device supports only the low dynamic range (LDR) It is necessary to compress the gradation of the acquired HDR image according to the depth.
그러나, 이러한 영상의 계조 압축 과정에서 계조 손실 또는 로컬 콘트러스트(local contrast) 손실이 발생해서 화질이 떨어지게 된다. However, grayscale loss or local contrast loss occurs in the grayscale compression process of the image, resulting in deterioration of image quality.
본 발명은 상기한 문제점을 개선하기 위해 고안된 것으로, 본 발명이 이루고자 하는 목적은 영상의 히스토그램을 재배치하여 영상 영상의 계조 압축시 로컬 콘트러스트가 손실되는 것을 방지하는 것이다.The present invention has been devised to improve the above problems, and an object of the present invention is to rearrange histograms of an image to prevent loss of local contrast during grayscale compression of the image.
또한, 계조 압축되기 전의 로컬 콘트러스트 정보를 이용하여 압축된 영상을 보정함으로써 영상 계조 압축 시 로컬 콘트러스트가 손실되는 것을 방지하는 것이다. In addition, it is possible to prevent the loss of local contrast during image gray level compression by correcting the compressed image using local contrast information before gray level compression.
본 발명의 목적들은 이상에서 언급한 목적들로 제한되지 않으며, 언급되지 않은 또 다른 목적들은 아래의 기재로부터 당업자에게 명확하게 이해될 수 있을 것이다.The objects of the present invention are not limited to the above-mentioned objects, and other objects not mentioned can be clearly understood by those skilled in the art from the following description.
상기 목적을 달성하기 위하여, 본 발명의 실시예에 따른 영상의 계조 압축 장치는 입력된 영상의 각 픽셀에 대한 휘도 레벨을 분석하여 상기 휘도 레벨의 점유 분포를 구하는 점유율 분석부; 상기 휘도 레벨의 점유 분포에서 소정의 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 점유 분포를 제외한 나머지 점유 분포를 이용해서 상기 입력된 영상의 점유 분포를 재배치하고, 상기 점유 분포의 재배치에 의하여 상기 영상의 각 픽셀의 휘도 레벨을 변경하는 휘도 레벨 변경부; 및 상기 휘도 레벨이 변경된 영상의 계조를 압축하는 영상의 계조 압축부를 포함한다. In order to achieve the above object, a gradation compression apparatus of an image according to an embodiment of the present invention comprises: an occupancy analysis unit for analyzing the luminance level of each pixel of the input image to obtain the occupation distribution of the luminance level; The occupancy distribution of the input image is rearranged using the remaining occupancy distribution except for the occupancy distribution of the luminance level having an occupancy lower than a predetermined threshold in the occupancy distribution of the luminance level, and by the rearrangement of the occupancy distribution. A luminance level changing unit for changing the luminance level of each pixel; And a gradation compressor of an image for compressing the gradation of the image in which the luminance level is changed.
상기 목적을 달성하기 위하여, 본 발명의 실시예에 따른 영상의 계조 압축 장치는 입력된 영상의 계조를 압축하는 영상의 계조 압축부; 상기 입력된 영상의 각 픽셀과 인접한 픽셀의 차 영상을 생성하는 차 영상 생성부; 및 상기 차 영상을 상기 압축된 영상에 더하는 영상 보정부를 포함한다. In order to achieve the above object, a gradation compression apparatus of an image according to an embodiment of the present invention includes a gradation compression unit of an image for compressing the gradation of the input image; A difference image generation unit configured to generate a difference image of a pixel adjacent to each pixel of the input image; And an image corrector configured to add the difference image to the compressed image.
상기 목적을 달성하기 위하여, 본 발명의 실시예에 따른 영상 압축 방법은 입력된 영상의 각 픽셀에 대한 휘도 레벨을 분석하여 상기 휘도 레벨의 점유 분포를 구하는 단계; 상기 휘도 레벨의 점유 분포에서 소정의 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 점유 분포를 제외한 나머지 점유 분포를 이용해서 상기 입력된 영상의 점유 분포를 재배치하고, 상기 점유 분포의 재배치에 의하여 상기 영상의 각 픽셀의 휘도 레벨을 변경하는 단계; 및 상기 휘도 레벨이 변경된 영상의 계조를 압축하는 단계를 포함한다. In order to achieve the above object, the image compression method according to an embodiment of the present invention comprises the steps of obtaining the occupancy distribution of the brightness level by analyzing the brightness level for each pixel of the input image; The occupancy distribution of the input image is rearranged using the remaining occupancy distribution except for the occupancy distribution of the luminance level having an occupancy lower than a predetermined threshold in the occupancy distribution of the luminance level, and by the rearrangement of the occupancy distribution. Changing the luminance level of each pixel; And compressing a gray level of the image in which the luminance level is changed.
상기 목적을 달성하기 위하여, 본 발명의 실시예에 따른 영상의 계조 압축 방법은 입력된 영상의 계조를 압축하는 단계; 상기 입력된 영상의 각 픽셀과 인접한 픽셀의 차 영상을 생성하는 단계; 및 상기 차 영상을 상기 압축된 영상에 더하는 단계를 포함한다. In order to achieve the above object, a gray scale compression method of an image according to an embodiment of the present invention comprises the steps of: compressing the gray scale of the input image; Generating a difference image of a pixel adjacent to each pixel of the input image; And adding the difference image to the compressed image.
실시예들의 구체적인 사항들은 상세한 설명 및 도면들에 포함되어 있다. The details of the embodiments are included in the detailed description and the drawings.
본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하고, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다.Advantages and features of the present invention and methods for achieving them will be apparent with reference to the embodiments described below in detail with the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. To fully disclose the scope of the invention to those skilled in the art, and the invention is only defined by the scope of the claims.
이하, 본 발명의 실시예들에 의한 영상의 계조 압축 장치 및 방법을 설명하기 위한 블록도 또는 처리 흐름도에 대한 도면들을 참고하여 본 발명에 대해 설명하도록 한다. 이 때, 처리 흐름도 도면들의 각 블록과 흐름도 도면들의 조합들은 컴퓨터 프로그램 인스트럭션들에 의해 수행될 수 있음을 이해할 수 있을 것이다. 이들 컴퓨터 프로그램 인스트럭션들은 범용 컴퓨터, 특수용 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비의 프로세서에 탑재될 수 있으므로, 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비의 프로세서를 통해 수행되는 그 인스트럭션들이 흐름도 블록(들)에서 설명된 기능들을 수행하는 수단을 생성하게 된다. 이들 컴퓨터 프로그램 인스트럭션들은 특정 방식으로 기능을 구현하기 위해 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비를 지향할 수 있는 컴퓨터 이용 가능 또는 컴퓨터 판독 가능 메모리에 저장되는 것도 가능하므로, 그 컴퓨터 이용가능 또는 컴퓨터 판독 가능 메모리에 저장된 인스트럭션들은 흐름도 블록(들)에서 설명된 기능을 수행하는 인스트럭션 수단을 내포하는 제조 품목을 생산하는 것도 가능하다. 컴퓨터 프로그램 인스트럭션들은 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비 상에 탑제되는 것도 가능하므로, 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비 상에서 일련의 동작 단계들이 수행되어 컴퓨터로 실행되는 프로세스를 생성해서 컴퓨터 또는 기타 프로그램 가능한 데이터 프로세싱 장비를 수행하는 인스트럭션들은 흐름도 블록(들)에서 설명된 기능들을 실행하기 위한 단계들을 제공하는 것도 가능하다.Hereinafter, the present invention will be described with reference to a block diagram or a flowchart for explaining a grayscale compression apparatus and method according to embodiments of the present invention. At this time, it will be understood that each block of the flowchart illustrations and combinations of flowchart illustrations may be performed by computer program instructions. Since these computer program instructions may be mounted on a processor of a general purpose computer, special purpose computer, or other programmable data processing equipment, those instructions executed through the processor of the computer or other programmable data processing equipment may be described in flow chart block (s). It creates a means to perform the functions. These computer program instructions may be stored in a computer usable or computer readable memory that can be directed to a computer or other programmable data processing equipment to implement functionality in a particular manner, and thus the computer usable or computer readable memory. It is also possible for the instructions stored in to produce an article of manufacture containing instruction means for performing the functions described in the flowchart block (s). The computer program instructions It will be appreciated that a computer or other programmable data processing apparatus may be implemented on a computer or other programmable data processing apparatus, so that a series of operating steps may be performed on the computer or other programmable data processing apparatus to create a computer-executed process to perform a computer or other programmable data processing apparatus May also provide steps for performing the functions described in the flowchart block (s).
또한, 각 블록은 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 인스트럭션들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 실행예들에서는 블록들에서 언급된 기능들이 순서를 벗어나서 발생하는 것도 가능함을 주목해야 한다. 예컨데, 잇달아 도시되어 있는 두 개의 블록들은 사실 실질적으로 동시에 수행되는 것도 가능하고 또는 그 블록들이 때때로 해당하는 기능에 따라 역순으로 수행되는 것도 가능하다. In addition, each block may represent a portion of a module, segment, or code that includes one or more executable instructions for executing a specified logical function (s). It should also be noted that in some alternative implementations, the functions mentioned in the blocks may occur out of order. For example, two blocks that are shown one after the other may actually be executed substantially concurrently, or the blocks may sometimes be performed in reverse order according to the corresponding function.
도 1은 본 발명의 일 실시예에 따른 영상의 계조 압축 장치의 블록도이고, 도 2는 본 발명의 일 실시예에 따른 영상의 휘도 레벨에 따른 점유 분포를 재배치하고 계조를 압축하는 과정을 도시한 도면이며, 도 3은 도 2와 다른 방법으로 영상의 휘도 레벨에 따른 점유 분포를 재배치하고 계조를 압축하는 과정을 도시한 도면이다. 1 is a block diagram of a grayscale compression apparatus of an image according to an embodiment of the present invention, and FIG. 2 is a diagram illustrating a process of rearranging an occupancy distribution and compressing grayscales according to luminance levels of an image according to an embodiment of the present invention. FIG. 3 is a diagram illustrating a process of rearranging occupancy distribution and compressing gray scale according to a luminance level of an image by a method different from FIG. 2.
본 발명의 일 실시예에 따른 영상의 계조 압축 장치는 점유율 분석부(110), 휘도 레벨 변경부(120) 및 영상 계조 압축부(130)를 포함할 수 있다. 또한, 차 영상 생성부(210) 및 영상 보정부(220)를 더 포함할 수 있다. The grayscale compression apparatus of an image according to an exemplary embodiment of the present invention may include an
이 때, 본 실시예에서 사용되는 '~부'는 일종의 모듈로 구현될 수 있다. 여기서 '모듈'은 소프트웨어 또는 Field Programmable Gate Array(FPGA) 또는 주문형 반도체(Application Specific Integrated Circuit, ASIC)와 같은 하드웨어 구성요소를 의미하며, 모듈은 어떤 역할들을 수행한다. 그렇지만 모듈은 소프트웨어 또는 하드웨어에 한정되는 의미는 아니다. 모듈은 어드레싱할 수 있는 저장 매체에 있도록 구성될 수도 있고 하나 또는 그 이상의 프로세서들을 재생시키도록 구성될 수도 있다. 따라서, 일 예로서 모듈은 소프트웨어 구성요소들, 객체지향 소프트웨어 구 성요소들, 클래스 구성요소들 및 태스크 구성요소들과 같은 구성요소들과, 프로세스들, 함수들, 속성들, 프로시저들, 서브루틴들, 프로그램 코드의 세그먼트들, 드라이버들, 펌웨어, 마이크로코드, 회로, 데이터, 데이터베이스, 데이터 구조들, 테이블들, 어레이들, 및 변수들을 포함한다. 구성요소들과 모듈들 안에서 제공되는 기능은 더 작은 수의 구성요소들 및 '~부'들로 결합되거나 추가적인 구성요소들 및 모듈들로 결합되거나 추가적인 구성요소들과 모듈들로 더 분리될 수 있다. In this case, '~' used in this embodiment can be implemented as a kind of module. A "module" refers to a hardware component such as software or a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC), and the module performs certain roles. However, a module is not limited to software or hardware. A module may be configured to reside on an addressable storage medium and configured to play back one or more processors. Thus, as an example, a module may include components such as software components, object-oriented software components, class components, and task components, and processes, functions, properties, procedures, subroutines. , Segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables. The functionality provided within the components and modules may be combined into a smaller number of components and components or may be combined into additional components and modules or further separated into additional components and modules .
점유율 분석부(110)는 입력된 영상의 각 픽셀에 대하여 휘도 레벨을 분석하여 휘도 레벨의 점유 분포를 구한다. 입력된 영상의 각 픽셀은 특정 휘도 레벨값을 가지는데, 각각의 픽셀에 대한 휘도 레벨을 구하고 특정 휘도 레벨을 가지는 픽셀의 수를 분석하여 점유 분포를 구한다. 도 2의 (a)는 입력된 영상의 점유 분포를 보여주는 도면인데, 가로축은 입력된 영상의 휘도 레벨 범위를, 세로축은 각 휘도 레벨에 대한 점유율을 보여준다. 가로축인 휘도 레벨의 가장 큰 값에 N을 표시하고 있는데, 이는 생성된 영상의 휘도 레벨 범위를 의미한다. 예를 들어 N=10인 경우 입력된 영상의 휘도 레벨의 범위는 0~1023이 된다. The
휘도 레벨 변경부(120)는 점유율 분석부(110)에서 구한 휘도 레벨의 점유 분포에서 소정의 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 점유 분포를 제외한 나머지 휘도 레벨의 점유 분포를 이용해서 입력된 영상의 점유 분포를 재배치하여 각 픽셀의 휘도 레벨을 변경시킨다. The luminance
도 2의 (b)는 휘도 레벨 변경부(120)에 의해 입력된 영상의 점유 분포를 재배치하는 일 실시예를 도시하고 있다. 도 2의 (a)에서 B구간과 D구간은 임의의 설 정된 문턱값보다 낮은 점유율을 가지고 있는 휘도 레벨 구간이다. 이때 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 픽셀은 입력된 영상에서 인접한 픽셀의 휘도 레벨로 변경할 수 있다. 이때 인접한 픽셀은 문턱값보다 높은 점유율을 가지는 휘도 레벨을 가지고 있어야 한다. 인접한 픽셀의 휘도 레벨로 변경한다 함은 변경하고자 하는 픽셀의 좌, 우, 상, 하에 있는 픽셀 값 중의 하나 일 수도 있고, 상, 하, 좌, 우에 있는 픽셀 값의 평균일 수도 있으며, 이 외에 다양한 방법으로 변경할 수 있을 것이다. FIG. 2B illustrates an embodiment of rearranging the occupation distribution of the image input by the brightness
문턱값보다 낮은 점유율을 가지는 휘도 레벨의 픽셀을 인접한 픽셀의 휘도 레벨로 변경하고, 문턱값보다 낮은 점유율을 가지는 휘도 레벨 부분의 좌우의 점유 분포를 스트레칭해서 연결하여 휘도 레벨의 점유 분포를 재배치한다. 도 2의 (a)에서 B 구간의 왼쪽에 있는 A 구간의 우측 끝단을 잡아당겨 B 구간의 오른쪽에 있는 C 구간의 좌측 끝단에 연결하는 방식으로 A 구간과 B 구간의 점유 분포 곡선을 변경시킬 수가 있다. 따라서, 점유 분포 곡선이 변경됨에 따라서 A 구간과 B 구간을 점유하는 각 픽셀의 휘도 레벨은 쉬프트되어 변경될 수 있다. (도 2의 (b)에서 A 구간도 점유 분포 곡선이 스트레칭 됨에 따라서 도 2의 (a) A 구간과 비교해서 전체적인 곡선의 형태는 비슷하나 곡선이 스트레칭 되어 모양이 바뀜을 알 수 있다.) D 구간도 마찬가지로 D 구간의 픽셀을 인접한 픽셀 값으로 변경하고 C 구간의 점유 분포 곡선을 스트레칭하여 E 구간과 연결시키는 방법으로 점유 분포를 재배치하여 각 픽셀의 휘도 레벨을 변경시킬 수 있다. Pixels having luminance occupancy lower than the threshold value are changed to luminance levels of adjacent pixels, and the occupancy distribution of luminance levels is rearranged by stretching the occupancy distributions to the left and right of the luminance level portion having occupancy lower than the threshold value. In FIG. 2A, the occupancy distribution curves of the A and B sections may be changed by pulling the right end of the A section on the left side of the B section and connecting to the left end of the C section on the right side of the B section. have. Therefore, as the occupancy distribution curve is changed, the luminance level of each pixel occupying the A section and the B section may be shifted and changed. (As shown in (b) of FIG. 2, the occupancy distribution curve is stretched, and thus the overall shape of the curve is similar to that of section A of FIG. 2, but the shape is changed due to the stretching of the curve.) D In the same manner, the luminance level of each pixel may be changed by rearranging the occupancy distribution by changing a pixel in the D region to an adjacent pixel value and stretching the occupancy distribution curve in the C region to connect with the E region.
도 3의 (b)는 휘도 레벨 변경부(120)에 의해 입력된 영상의 점유 분포를 재 배치하는 다른 일 실시예를 도시하고 있다. 도 3의 (a)는 전술한 도 2의 (a)와 동일한 그림인데, 전술한 바와 마찬가지로 B구간과 D구간은 임의의 설정된 문턱값보다 낮은 점유율을 가지고 있는 휘도 레벨 구간이며, 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 픽셀은 인접한 픽셀의 휘도 레벨로 변경할 수 있다. FIG. 3B illustrates another embodiment in which the occupancy distribution of the image input by the brightness
문턱값보다 낮은 점유율을 가지는 휘도 레벨의 픽셀을 인접한 픽셀의 휘도 레벨로 변경하고, 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 좌우에 있는 점유 분포 중에서 높은 휘도 레벨을 갖는 점유 분포를 낮은 휘도 레벨을 갖는 점유 분포로 쉬프트하여 연결하는 방법으로 휘도 레벨의 점유 분포를 재배치한다. 도 3의 (a)에서 C 구간의 점유 분포를 A 구간과 연결되게 쉬프트하여 연결하는 방식으로 점유 분포 곡선을 변경시킬 수가 있다. 따라서, 점유 분포 곡선이 변경됨에 따라서 C 구간을 점유하는 각 픽셀의 휘도 레벨은 왼쪽으로 쉬프트된 값으로 변경될 수 있다. D 구간도 마찬가지로 D 구간의 픽셀을 인접한 픽셀 값으로 변경하고 E 구간의 점유 분포 곡선을 쉬프트하여 쉬프트된 C 구간과 연결시키는 방법으로 점유 분포를 재배치할 수 있다. 이때, E 구간의 휘도 레벨값도 왼쪽으로 쉬프트된 값으로 변경될 수 있다. A pixel having a luminance level having a lower share than a threshold is changed to a luminance level of an adjacent pixel, and an occupancy distribution having a high luminance level among the distributions to the left and right of the luminance level having a share below the threshold has a low luminance level. The occupancy distribution of the luminance level is rearranged by shifting and occupying the occupancy distribution. In FIG. 3A, the occupation distribution curve may be changed by shifting the occupation distribution of the C section to be connected to the A section. Therefore, as the occupancy distribution curve is changed, the luminance level of each pixel occupying the C section may be changed to a value shifted to the left. Similarly, in the D section, the occupancy distribution may be rearranged by changing a pixel of the D section to an adjacent pixel value and shifting the occupancy distribution curve of the E section to connect with the shifted C section. In this case, the luminance level value of the section E may also be changed to a value shifted to the left.
영상 계조 압축부(130)는 휘도 레벨 변경부(120)에 의해 휘도 레벨이 변경된 영상의 계조를 압축한다. 이때, 영상을 출력하는 장치가 지원하는 휘도 레벨 범위로 영상의 계조를 압축할 수 있다. 영상 계조 압축부(130)에서 행하는 계조 압축방법은 여러 가지가 될 수 있다. 선형적 계조 압축을 예를 들면, 도 2의 (c)는 최초 N(N=10인 경우 휘도 레벨의 범위는 0~1023)의 휘도 레벨을 가졌던 입력 영상의 휘 도 레벨을 변경한 후(도 2의 (b)), N'(N'=9인 경우 휘도 레벨의 범위는 0~511) 휘도 레벨을 가지는 영상으로 압축하는 것을 보여준다. 즉, 각 픽셀의 휘도 레벨값은 압축비에 따라서 선형적으로 바뀐다. 예를 들어, 특정 최초 입력된 HDR 영상의 휘도 레벨 범위가 0~1023이고 영상 표시 장치의 휘도 레벨 범위가 0~511인 경우 반으로 압축되므로 160의 휘도 레벨값을 가지는 픽셀은 80으로 선형적으로 압축되어 바뀌게 된다. 도 3에서는 휘도 레벨이 변경된 도 3의(b)가 영상 계조 압축부(130)에 압축되어 점유 분포가 도 3의 (c)로 바뀜을 알 수 있다. The image
도 2와 도 3과 같이 점유율이 낮은 픽셀을 인접한 픽셀의 휘도 레벨 값으로 바꾸고 휘도 레벨의 점유 분포를 재배치함으로써 단순 계조 압축에 비해서 고화질의 영상을 생성할 수 있고 로컬 컨트러스트의 선명도를 향상시킬 수가 있다. As shown in FIG. 2 and FIG. 3, by replacing the low occupancy pixel with the luminance level value of the adjacent pixel and redistributing the occupancy distribution of the luminance level, it is possible to generate a higher quality image than the simple gradation compression and improve the sharpness of the local contrast. have.
본 발명의 일 실시예에 따른 영상 생성 장치는 차 영상 생성부(210) 및 영상 보정부(220)를 더 포함할 수 있다. The image generating apparatus according to an embodiment of the present invention may further include a difference
차 영상 생성부(210)는 입력된 영상의 각 픽셀과 인접한 픽셀의 차 영상을 생성한다. 차 영상 생성부(210)는 최초 입력된 영상에서 입력된 영상의 각 픽셀을 좌, 우, 상, 하 중 하나의 방향으로 한 픽셀만큼 쉬프트한 영상을 빼서 생성할 수 있다. The
도 4는 본 발명의 일 실시예에 따른 입력된 영상으로부터 인접한 픽셀과의 차 영상을 생성하는 과정을 도시한 도면이다. 4 is a diagram illustrating a process of generating a difference image with adjacent pixels from an input image according to an embodiment of the present invention.
본 발명에서 차 영상은 압축되기 전의 최초 입력된 영상으로부터 구한다. 도 4에서는 최초 입력된 영상을 좌측으로 한 픽셀만큼 쉬프트시킨다. 그리고, 최초 입 력된 영상의 영상에서 쉬프트된 영상을 빼서 차 영상을 생성한다. 즉, 두 개의 영상에서 동일 위치의 픽셀값을 각각 빼는 방법으로 차 영상을 구한다. 이러한 차 영상은 계조 압축되기 전 영상에 대한 로컬 콘트라스트에 대한 정보를 가지게 된다.In the present invention, the difference image is obtained from the first input image before compression. In FIG. 4, the first input image is shifted by one pixel to the left. Then, the difference image is generated by subtracting the shifted image from the image of the first input image. That is, a difference image is obtained by subtracting pixel values of the same position from two images. Such a difference image has information on local contrast of an image before gradation compression.
영상 보정부(220)는 차 영상 생성부(210)에서 구한 차 영상을 영상 계조 압축부(130)에서 구한 영상에 더함으로써 영상을 보정한다. The
도 5는 압축된 영상에 차 영상을 더하여 로컬 콘트러스트가 향상되도록 영상을 보정하는 과정을 도시한 도면이다.5 is a diagram illustrating a process of correcting an image such that a local image is improved by adding a difference image to a compressed image.
압축된 영상에서 도 4에서 구한 차 영상을 더해서 최종 출력되는 영상을 생성하는 모습을 보여준다. 차 영상은 압축되기 전의 N 비트의 휘도 레벨 범위를 가지고 계조 압축된 영상은 N' 비트의 휘도 레벨 범위를 가지는데, 압축된 영상에 차 영상을 더할 때 일부 픽셀 값은 N' 비트 휘도 레벨 범위를 초과하는 값을 가질 수 있다. 이때, 해당 픽셀은 N' 비트 값을 가지도록 한다. 예를 들어 계조 압축된 영상이 9비트의 휘도 레벨 범위(0~511)를 가질 때, 특정 픽셀의 위치에 차 영상의 픽셀값이 200이고 동일 위치의 계조 압축된 영상의 픽셀값이 320일 때, 두 값을 더 한 값은 520이다. 이때 그 픽셀을 값을 압축된 영상의 휘도 레벨값의 최대값인 511의 값을 가지도록 한다. The difference image obtained in FIG. 4 is added to the compressed image to generate a final output image. The difference image has a range of N bits of luminance levels before compression, and the grayscale image has a range of N 'bits of luminance levels. When adding a difference image to a compressed image, some pixel values have a range of N' bit luminance levels. It may have a value exceeding that. At this time, the pixel has a N 'bit value. For example, when the gray-compressed image has a luminance level range (0 to 511) of 9 bits, when the pixel value of the difference image is 200 at a specific pixel position and the pixel value of the gray-compressed image at the same position is 320 The sum of the two values is 520. At this time, the pixel has a value of 511 which is the maximum value of the luminance level of the compressed image.
영상의 계조 압축에 의해 로컬 콘트러스트가 손상되는데, 본 발명에서는 차 영상을 통해서 계조 압축되기 전의 로컬 콘트러스트 정보를 압축된 영상에 보정함으로써 압축된 후에도 로컬 콘트러스트 정보를 유지 및 향상시킬 수가 있다. 따라서, 고화질의 HDR영상을 저사양의 LDR 영상 표시 장치를 통하여 보여줄 때 화질을 유지하면서 HDR 영상을 구현할 수 있다. Local contrast is damaged by gradation compression of an image. In the present invention, local contrast information can be maintained and improved even after compression by compensating local contrast information before gradation compression through a difference image to a compressed image. Therefore, when displaying a high quality HDR image through a low specification LDR image display device, the HDR image may be implemented while maintaining the image quality.
도 6은 본 발명의 다른 일 실시예에 따른 영상 계조 압축 장치의 블록도이다. 6 is a block diagram of an image grayscale compression apparatus according to another exemplary embodiment of the present invention.
본 발명의 다른 일 실시예에 따른 영상 압축 장치는 영상 계조 압축부(130), 차영상 생성부(210) 및 영상 보정부(220)를 포함할 수 있다. The image compression apparatus according to another exemplary embodiment of the present invention may include an image
영상 계조 압축부(130)는 입력된 영상을 압축한다. 전술한 실시예에서의 영상 계조 압축부(130)는 입력된 영상의 휘도 레벨값을 변경시킨 영상에 대해서 계조 압축을 수행하다 본 실시예에서의 영상 계조 압축부(130)는 입력된 영상을 계조를 압축한다.The image gray
차 영상 생성부(210)는 전술한 바와 같이 입력된 영상의 각 픽셀과 인접한 픽셀의 차 영상을 생성한다. As described above, the
그리고 영상 보정부(220)는 차 영상 생성부(210)에서 구한 차 영상을 영상 계조 압축부(130)에서 계조 압축된 영상에 더함으로써 최초 입력된 영상의 로컬 콘트러스트 정보가 손실되지 않도록 영상을 보정한다. In addition, the
이하, 본 발명의 일 실시예에 따른 영상 계조 압축 방법을 설명하기로 한다. Hereinafter, an image gray scale compression method according to an embodiment of the present invention will be described.
도 7은 본 발명의 일 실시예에 따른 영상 계조 압축 방법의 흐름도이다. 7 is a flowchart of an image gray scale compression method according to an embodiment of the present invention.
점유율 분석부(110)는 영상의 각 픽셀에 대한 휘도 레벨을 분석해서 휘도 레벨의 점유 분포를 구한다(S310). The
다음, 휘도 레벨 변경부(120)는 점유율 분석부(110)에서 구한 휘도 레벨의 점유 분포에서 소정의 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 점유 분포를 제외한 나머지 점유 분포를 이용해서 입력된 영상의 점유 분포를 재배치하여 입력된 영상의 각 픽셀의 휘도 레벨을 변경시킨다(S320). 휘도 레벨을 변경시키는 일 실시예로 도 2의 (b)를 참조로 전술한 바와 같이 소정의 문턱값을 가지는 휘도 레벨의 픽셀은 소정의 문턱값보다 높은 점유율을 가지는 인접한 픽셀의 휘도 레벨로 변경하고 소정의 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 좌우의 점유 분포를 스트레칭하여 연결하는 방법으로 영상의 각 픽셀의 휘도 레벨을 변경시킬 수 있다. 또 다른 실시예로 도 3의 (b)를 참조로 전술한 바와 같이 소정의 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 픽셀은 소정의 문턱값보다 높은 점유율을 가지는 인접한 픽셀의 휘도 레벨로 변경하고 소정의 문턱값보다 낮은 점유율을 가지는 휘도 레벨의 좌우에 있는 점유 분포 중에서 높은 휘도 레벨을 갖는 점유 분포를 낮은 휘도 레벨을 갖는 점유 분포로 쉬프트하여 연결하는 방법으로 입력된 영상의 각 픽셀의 휘도 레벨을 변경시킬 수 있다. Next, the brightness
다음, 영상 계조 압축부(130)는 휘도 레벨이 변경된 영상을 압축한다(S330). 이때 영상을 출력하는 장치가 지원하는 휘도 레벨 범위로 영상의 계조를 압축할 수 있다. Next, the image
또한, 입력된 영상의 각 픽셀과 인접한 픽셀의 차 영상을 생성하고(S340), 차 영상을 영상 계조 압축부(130)에서 계조 압축된 영상에 더하여 영상을 보정하는 단계(S350)를 더 포함할 수 있다. The method may further include generating a difference image of the pixel adjacent to each pixel of the input image (S340), and correcting the image by adding the difference image to the grayscale compressed image by the image grayscale compressor 130 (S350). Can be.
본 발명의 다른 실시예에 따른 영상 계조 압축 방법은 아래와 같다. An image gray scale compression method according to another embodiment of the present invention is as follows.
도 8은 본 발명의 다른 일 실시예에 따른 영상 계조 압축 방법의 흐름도이 다. 8 is a flowchart of an image gray scale compression method according to another embodiment of the present invention.
영상 계조 압축부(130)는 최초 입력된 영상의 계조를 압축하고(S410), 차 영상 생성부(210)는 입력된 영상의 각 픽셀과 인접한 픽셀 사이의 차 영상을 생성한다(S420). 그리고, 영상 보정부(220)는 차 영상 생성부(210)에서 생성한 차 영상을 영상 압축부(130)에서 압축한 영상에 더해서 영상을 보정한다(S430).The image gray
본 발명이 속하는 기술분야의 통상의 지식을 가진 자는 본 발명이 그 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다. 본 발명의 범위는 상기 상세한 설명보다는 후술하는 특허청구의 범위에 의하여 나타내어지며, 특허청구의 범위의 의미 및 범위 그리고 그 균등 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.It will be understood by those skilled in the art that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. It is therefore to be understood that the above-described embodiments are illustrative in all aspects and not restrictive. The scope of the present invention is defined by the appended claims rather than the foregoing detailed description, and all changes or modifications derived from the meaning and scope of the claims and the equivalents thereof are included in the scope of the present invention Should be interpreted.
도 1은 본 발명의 일 실시예에 따른 영상 계조 압축 장치의 블록도이다. 1 is a block diagram of an image grayscale compression device according to an embodiment of the present invention.
도 2는 본 발명의 일 실시예에 따른 영상의 휘도 레벨에 따른 점유 분포를 재배치하고 계조 압축하는 과정을 도시한 도면이다.2 is a diagram illustrating a process of rearranging and gradation compression of occupancy distributions according to luminance levels of an image according to an exemplary embodiment of the present invention.
도 3은 도 2와 다른 방법으로 영상의 휘도 레벨에 따른 점유 분포를 재배치하고 계조를 압축하는 과정을 도시한 도면이다. FIG. 3 is a diagram illustrating a process of rearranging occupancy distribution and compressing gray levels according to a luminance level of an image in a method different from that of FIG. 2.
도 4는 본 발명의 일 실시예에 따른 입력된 영상으로부터 인접한 픽셀과의 차 영상을 생성하는 과정을 도시한 도면이다. 4 is a diagram illustrating a process of generating a difference image with adjacent pixels from an input image according to an embodiment of the present invention.
도 5는 압축된 영상에 차 영상을 더하여 로컬 콘트러스트가 향상되도록 영상을 보정하는 과정을 도시한 도면이다. 5 is a diagram illustrating a process of correcting an image such that a local image is improved by adding a difference image to a compressed image.
도 6은 본 발명의 다른 일 실시예에 따른 영상 계조 압축 장치의 블록도이다. 6 is a block diagram of an image grayscale compression apparatus according to another exemplary embodiment of the present invention.
도 7은 본 발명의 일 실시예에 따른 영상 계조 압축 방법의 흐름도이다. 7 is a flowchart of an image gray scale compression method according to an embodiment of the present invention.
도 8은 본 발명의 다른 일 실시예에 따른 영상 계조 압축 방법의 흐름도이다. 8 is a flowchart of an image grayscale compression method according to another embodiment of the present invention.
<도면의 주요 부분에 관한 부호의 설명>DESCRIPTION OF THE REFERENCE NUMERALS
110: 점유율 분석부110: share analysis
120: 휘도 레벨 변경부120: brightness level changing section
130: 영상 계조 압축부130: image gradation compression unit
210: 차 영상 생성부210: car image generating unit
220: 영상 보정부220: image correction unit
Claims (22)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070121090A KR101349239B1 (en) | 2007-11-26 | 2007-11-26 | Apparatus and method for compressing image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070121090A KR101349239B1 (en) | 2007-11-26 | 2007-11-26 | Apparatus and method for compressing image |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20090054298A KR20090054298A (en) | 2009-05-29 |
KR101349239B1 true KR101349239B1 (en) | 2014-01-10 |
Family
ID=40861483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020070121090A KR101349239B1 (en) | 2007-11-26 | 2007-11-26 | Apparatus and method for compressing image |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101349239B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9386318B2 (en) * | 2012-12-12 | 2016-07-05 | Apple Inc. | Lossless image compression using differential transfer |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0728997A (en) * | 1993-06-23 | 1995-01-31 | Toyobo Co Ltd | Method and device for improving picture quality |
JPH10294911A (en) * | 1997-04-21 | 1998-11-04 | Kawasaki Heavy Ind Ltd | Method and device for compressing dynamic range of picture |
JP2000050081A (en) | 1998-07-06 | 2000-02-18 | Eastman Kodak Co | Automatic tone control method by contrast gain control of edge |
JP2000306088A (en) | 1999-02-19 | 2000-11-02 | Nikon Corp | Image correcting device and recording medium storing image correcting program |
-
2007
- 2007-11-26 KR KR1020070121090A patent/KR101349239B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0728997A (en) * | 1993-06-23 | 1995-01-31 | Toyobo Co Ltd | Method and device for improving picture quality |
JPH10294911A (en) * | 1997-04-21 | 1998-11-04 | Kawasaki Heavy Ind Ltd | Method and device for compressing dynamic range of picture |
JP2000050081A (en) | 1998-07-06 | 2000-02-18 | Eastman Kodak Co | Automatic tone control method by contrast gain control of edge |
JP2000306088A (en) | 1999-02-19 | 2000-11-02 | Nikon Corp | Image correcting device and recording medium storing image correcting program |
Also Published As
Publication number | Publication date |
---|---|
KR20090054298A (en) | 2009-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6697755B2 (en) | Video display device and video display method | |
US8526730B2 (en) | Image processing apparatus and method of processing color image data that perform overdrive | |
JP4816970B2 (en) | Image processing apparatus, display apparatus, image processing method, and program | |
KR102307501B1 (en) | Optical compensation system and Optical compensation method thereof | |
JP6921886B2 (en) | Information processing device and information processing method | |
JP6548517B2 (en) | Image processing apparatus and image processing method | |
JP2005301238A (en) | Image data processing apparatus and image display device | |
JP2007129600A (en) | Image data processor | |
US7271828B2 (en) | Display screen burn-in prevention device and burn-in prevention method | |
KR101349239B1 (en) | Apparatus and method for compressing image | |
JP2011199785A (en) | Imaging apparatus and method | |
JP2018007133A (en) | Image processing device, control method therefor and program | |
US8125436B2 (en) | Pixel dithering driving method and timing controller using the same | |
JP2016142783A (en) | Display device | |
JP2006106120A (en) | Video display device and video signal processor | |
KR102282464B1 (en) | Image processing apparatus and image processing method | |
JP5826980B1 (en) | Image processing apparatus and image processing method | |
US20100002011A1 (en) | Image process method and circuit thereof | |
JP2008111910A (en) | Video processing circuit and video display apparatus | |
JP2016045392A (en) | Image processor, image processing method, and program | |
KR100508306B1 (en) | An Error Diffusion Method based on Temporal and Spatial Dispersion of Minor Pixels on Plasma Display Panel | |
WO2018047753A1 (en) | Display device and signal processing method | |
CN113516946B (en) | Luminance compensation method and device of OLED panel, driving chip and storage medium | |
CN106847149B (en) | Tone mapping and displaying method for high dynamic contrast image | |
KR102160911B1 (en) | Image processing apparatus for organic light emitting diode display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
LAPS | Lapse due to unpaid annual fee |