KR100843817B1 - Tone correcting apparatus, mobile terminal, image capturing apparatus, mobile phone, and tone correcting method - Google Patents

Tone correcting apparatus, mobile terminal, image capturing apparatus, mobile phone, and tone correcting method Download PDF

Info

Publication number
KR100843817B1
KR100843817B1 KR1020067024786A KR20067024786A KR100843817B1 KR 100843817 B1 KR100843817 B1 KR 100843817B1 KR 1020067024786 A KR1020067024786 A KR 1020067024786A KR 20067024786 A KR20067024786 A KR 20067024786A KR 100843817 B1 KR100843817 B1 KR 100843817B1
Authority
KR
South Korea
Prior art keywords
correction
correction amount
gradation
luminance
average
Prior art date
Application number
KR1020067024786A
Other languages
Korean (ko)
Other versions
KR20070017391A (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 KR1020067024786A priority Critical patent/KR100843817B1/en
Publication of KR20070017391A publication Critical patent/KR20070017391A/en
Application granted granted Critical
Publication of KR100843817B1 publication Critical patent/KR100843817B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/407Control or modification of tonal gradation or of extreme levels, e.g. background level
    • H04N1/4072Control or modification of tonal gradation or of extreme levels, e.g. background level dependent on the contents of the original
    • H04N1/4074Control or modification of tonal gradation or of extreme levels, e.g. background level dependent on the contents of the original using histograms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/56Processing of colour picture signals
    • H04N1/60Colour correction or control
    • H04N1/6002Corrections within particular colour systems
    • H04N1/6005Corrections within particular colour systems with luminance or chrominance signals, e.g. LC1C2, HSL or YUV

Abstract

본 발명은 디지털화된 화상의 계조를 보정하기 위한 기술에 관한 것으로, 휴대 단말 기기 등에 이용된다. 종래의 화상 계조 보정 기술을 역광 보정에 적용한 경우에는, 밝은 영역 또는 어두운 영역 내의 국소적인 콘트라스트를 개선하는 데에 한계가 있었다. 본 발명에서는, 블록 타이밍 발생부(102)는 1 화면 내를 복수의 블록으로 분할하고, 평균 휘도 산출부(103)는 동 부재(102)에서 지정된 블록 단위로의 평균 휘도 레벨을 산출하며, 블록 단위 보정량 산출부(104)는 블록 단위로의 평균 휘도 레벨로부터 보정의 방향 및 보정량을 산출하고, 화소 단위 보정량 산출부(105)는 블록 단위의 보정량을 당해 블록 내의 각 화소 단위로의 보정량으로 보간하며, 계조 변환부(107)는 화소 단위의 보정량과 기억부(106)로부터 판독한 당해 화소의 휘도 데이터를 어드레스로 하여 최종적인 보정량을 계조 변환 테이블(108)로부터 판독해 계조 변환을 행한다.

Figure 112006086679882-pct00001

BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for correcting the gradation of a digitized image and is used in portable terminal equipment and the like. When the conventional image gradation correction technique is applied to backlight correction, there is a limit in improving local contrast in bright areas or dark areas. In the present invention, the block timing generator 102 divides one screen into a plurality of blocks, and the average luminance calculator 103 calculates an average luminance level in units of blocks designated by the member 102. The unit correction amount calculating unit 104 calculates the direction and correction amount of the correction from the average luminance level in blocks, and the pixel unit correction amount calculating unit 105 interpolates the correction amount in blocks by the correction amount in each pixel unit in the block. The gradation converter 107 reads the final correction amount from the gradation conversion table 108 and performs gradation conversion using the correction amount in units of pixels and the luminance data of the pixel read out from the storage unit 106 as addresses.

Figure 112006086679882-pct00001

Description

계조 보정 장치, 휴대 단말 기기, 촬상 장치, 휴대 전화 및 계조 보정 방법{TONE CORRECTING APPARATUS, MOBILE TERMINAL, IMAGE CAPTURING APPARATUS, MOBILE PHONE, AND TONE CORRECTING METHOD}Gradation correction device, mobile terminal device, imaging device, mobile phone and gradation correction method {TONE CORRECTING APPARATUS, MOBILE TERMINAL, IMAGE CAPTURING APPARATUS, MOBILE PHONE, AND TONE CORRECTING METHOD}

본 발명은 디지털화된 화상의 계조를 보정하기 위한 기술에 관한 것이다.The present invention relates to a technique for correcting the gradation of a digitized image.

화상의 계조를 보정하기 위한 종래 기술로서, 입력 화상의 화면 전체에 걸쳐 각 화소의 휘도값 또는 농도값을 산출하여, 동일한 계조의 값을 갖는 화소, 또는 계조의 양자화수보다 적은 구간으로 구획한 동일 구간에 포함되는 화소의 출현 빈도를 나타내는 히스토그램을 작성하고, 이 작성한 히스토그램의 형상이 최적으로 되도록 하는 계조 보정 처리를 화면 전체에 걸쳐 행하는 「히스토그램 균등화법」이 일반적으로 잘 알려져 있다(예컨대, 비특허문헌 1 참조). 이 히스토그램을 이용하여 화상의 계조를 보정하는 히스토그램 균등화법을 이용함으로써, 화면 내의 계조가 임의의 레벨에 치우쳐 있는 경우, 계조의 분포를 최적화하는 것에 의해 화면 전체의 계조 특성을 개선할 수 있다.In the prior art for correcting the gradation of an image, a luminance value or a density value of each pixel is calculated over the entire screen of the input image, and the same partitioned into pixels having the same gradation value or divided into sections smaller than the quantization number of the gradation. The "histogram equalization method" which generally produces a histogram indicating the frequency of appearance of pixels included in a section and performs a gradation correction process for optimizing the shape of the created histogram over the entire screen is generally well known (e.g., non-patent). See Document 1). By using the histogram equalization method of correcting the gradation of the image using this histogram, when the gradation in the screen is at an arbitrary level, the gradation characteristics of the entire screen can be improved by optimizing the distribution of the gradations.

또, 이러한 「히스토그램 균등화법」을 역광 보정에 응용한 기술도 제안되어 있다(예컨대, 특허문헌 1 및 특허문헌 2 참조). 이들 기술에 있어서는, 화면 전체의 히스토그램을 기초로 역광 상태를 판단하여, 최적의 히스토그램에 가까워지도록 계조 보정을 행하고 있다.Moreover, the technique which applied such a "histogram equalization method" to the backlight correction is also proposed (for example, refer patent document 1 and patent document 2). In these techniques, the backlight state is determined based on the histogram of the entire screen, and gradation correction is performed so as to be close to the optimum histogram.

한편, 화면 전체가 아니라, 화면 내를 복수의 블록으로 분할하고, 분할한 블록 내의 평균 휘도값을 기초로 하여 국소적인 콘트라스트인 국소 콘트라스트의 보정을 행하는 「국소 콘트라스트 보정법」을 이용한 기술도 제안되어 있다(예컨대, 특허문헌 3 참조). 이 「국소 콘트라스트 보정법」을 이용하는 동시에, 윤곽에 휘도 구배(句配;gradient)를 갖게 하면 인간의 눈의 특성에 의해 착시가 일어나는 크레이크 오브라이언 효과(Craik O'Brien effect)도 함께 이용함으로써, 의사적(擬似的)으로 다이나믹 레인지를 확대할 수 있다.On the other hand, a technique using a "local contrast correction method" that divides the inside of the screen into a plurality of blocks instead of the entire screen and corrects local contrast, which is a local contrast, based on the average luminance value in the divided blocks, is also proposed. (For example, refer patent document 3). By using this "local contrast correction method" and using the gradient O'Brien effect, which causes illusions due to the characteristics of the human eye when the contour has a luminance gradient, It is possible to expand the dynamic range pseudo-intentionally.

(특허문헌 1) 일본 공개 특허 공보 제2003-69825호(Patent Document 1) Japanese Unexamined Patent Publication No. 2003-69825

(특허문헌 2) 일본 공개 특허 공보 제2003-299107호(Patent Document 2) Japanese Unexamined Patent Publication No. 2003-299107

(특허문헌 3) 일본 공개 특허 공보 평9-65252호(Patent Document 3) Japanese Unexamined Patent Publication No. Hei 9-65252

(비특허문헌 1) ANIL K. JAIN 저(著), "Fundamentals of Digital Image Processing", Prentice-Hall International, Inc. 출판, 1989년, pp.241-244(Non-Patent Document 1) ANIL K. JAIN, "Fundamentals of Digital Image Processing", Prentice-Hall International, Inc. Pub. 1989, pp.241-244

그러나, 전술한 화상의 계조를 보정하기 위한 종래 기술인 「히스토그램 균등화법」 혹은 「국소 콘트라스트 보정법」을 그대로 역광 보정에 적용하는 경우에는, 밝은 영역 또는 어두운 영역 내의 국소 콘트라스트를 개선하는 데에 한계가 발 생한다고 하는 문제점이 있다. 이 점의 이유를 이하에 상세히 기재한다.However, when the "histogram equalization method" or "local contrast correction method", which is a conventional technique for correcting the gradation of the image described above, is applied to backlight correction as it is, there is a limit to improving local contrast in a bright area or a dark area. There is a problem that occurs. The reason for this point is described in detail below.

즉, 종래의 「히스토그램 균등화법」을 이용한 기술에서는, 1 화면 내의 전체에 걸쳐 동일한 계조 보정 커브를 이용하기 때문에, 계조 보정 커브의 기울기가 부(負;negative)의 값을 갖지 않는 한, 혹은, 불연속의 계조 보정 커브를 이용하지 않는 한, 1 화면 내에서 계조 레벨의 상하 관계가 바뀌는 일은 일어나지 않았다. 예컨대, 입력 화상의 히스토그램이, 도 10에 나타내는 바와 같이, 저휘도 영역과 고휘도 영역이 각각 특정 계조 부근에 집중되어 있는 경우에는, 「히스토그램 균등화법」을 이용하여 계조 보정을 행하면, 도 11에 나타내는 실선과 같은 분포로 된다. 즉, 저휘도 영역의 히스토그램(601)은, 변환 후에는 보다 넓어진 계조 분포(611)로 되어, 저휘도 영역 내의 국소 콘트라스트는 올라간다. 고휘도 영역의 히스토그램(602)도 마찬가지로, 변환 후에는 보다 넓어진 계조 분포(612)로 되어, 고휘도 영역 내의 국소 콘트라스트가 올라간다. 그러나, 상기 선행 기술은 모두, 도 12에 나타내는 바와 같은, 변환 후의 저휘도 영역의 히스토그램(621)과 고휘도 영역의 히스토그램(622)이 각각 일부의 계조에서 계조 레벨의 상하 관계의 역전을 일으키는 것과 같은 변환을 행하는 것은 불가능하였다. 따라서, 1 화면 내의 밝은 영역의 암부(暗部;dark part) 쪽이 동일 화면 내의 다른 어두운 영역의 명부(明部;bright part)보다 밝은 경우에는, 보정 후에도 그 계조 레벨의 상하 관계가 보존되기 때문에, 1 화면 내의 밝은 영역의 암부 쪽이 동일 화면 내의 다른 어두운 영역의 명부보다 밝거나, 또는 라운딩되어 동일하게 되거나 중 어느 하나였다. 이 때문에, 밝은 영역의 암부와 어두운 영역의 명부와의 보정량의 한계가 존재하여, 화면 내의 밝은 영역 내, 또는 화면 내의 어두운 영역 내의 국소 콘트라스트를 개선할 때에, 필연적으로 한계가 발생하고 있었다.That is, in the conventional technique using the "histogram equalization method", since the same gradation correction curve is used throughout the entire screen, as long as the slope of the gradation correction curve does not have a negative value, or Unless a discontinuous gradation correction curve is used, the vertical relationship of gradation levels does not change in one screen. For example, as shown in FIG. 10, when the histogram of the input image is concentrated in the vicinity of the specific gradation, respectively, the gradation correction is performed using the "histogram equalization method". It has the same distribution as the solid line. That is, the histogram 601 of the low luminance region becomes a wider gradation distribution 611 after conversion, and the local contrast in the low luminance region increases. Similarly, the histogram 602 of the high luminance region also becomes wider gradation distribution 612 after the conversion, so that the local contrast in the high luminance region is increased. However, all of the above prior arts are such that the histogram 621 of the low luminance region and the histogram 622 of the high luminance region, as shown in Fig. 12, cause the inversion of the vertical relationship of the gradation levels in some gradations, respectively. It was impossible to do the conversion. Therefore, when the dark part of the bright area in one screen is brighter than the bright part of the other dark area in the same screen, the upper and lower relations of the gradation levels are preserved even after correction. The dark side of the bright area in one screen was either brighter or rounded to the same as the other dark areas in the same screen. For this reason, there exists a limit of the correction amount between the dark part of the bright area and the dark part of the dark area, and a limit is inevitably generated when the local contrast in the bright area in the screen or in the dark area in the screen is improved.

또한, 종래의 「국소 콘트라스트 보정법」을 이용한 기술에서는, 장소에 따라 계조 레벨의 상하 관계의 역전 현상이 있을 수 있지만, 전체 계조에 걸쳐 국소 콘트라스트 보정의 효과가 나타나게 하기 위하여, 국소 영역의 평균 휘도값을 임의의 정도로 유지하도록 작용하기 때문에, 밝은 영역 전체 또는 어두운 영역 전체로서의 역광 보정 효과에는 한계가 있었다. 예컨대, 분할한 블록의 크기, 또는 블록 단위의 필터 형상에 따라 결정하는 분할한 블록 크기의 소정 배(倍)의 크기를 초과하는 영역에 걸쳐서 밝은 영역 또는 어두운 영역이 연속하는 경우에는, 그 연속하는 밝은 영역 또는 어두운 영역 전체의 평균 휘도 레벨에 대해서는 보정 후에도 계조 레벨이 유지되고, 보정 후의 평균 휘도 레벨도 보정 전과 비교하여 크게는 변화하지 않기 때문에, 국소 영역의 콘트라스트는 개선되지만, 밝은 영역 전체 또는 어두운 영역 전체로서의 역광 보정 효과에는 한계가 있었다.In addition, in the conventional technique using the "local contrast correction method", although there may be an inversion phenomenon of the up-down relationship of the gradation level depending on the place, in order to make the effect of the local contrast correction over the entire gradation appear, the average luminance of the local region is Since it acts to maintain a value to an arbitrary degree, the backlight correction effect as whole bright area or whole dark area has a limit. For example, when the bright area or the dark area is continuous over an area exceeding the size of the divided block or the predetermined size of the divided block size determined according to the filter shape of the block unit, the continuous The gradation level is maintained even after correction for the average luminance level of the entire bright or dark region, and since the average luminance level after the correction does not change significantly compared to before the correction, the contrast of the local region is improved, but the whole or dark region is improved. There was a limit to the backlight correction effect as a whole region.

또, 종래의 「국소 콘트라스트 보정법」을 이용한 기술은, 전체 계조에 걸쳐 국소 콘트라스트 보정의 효과를 발휘하게 하기 때문에, 당해 보정법을 역광 보정에 적용한 경우, 그대로로는, 어두운 영역이나 밝은 영역으로의 보정 효과를 높이고자 하면 본래의 목적이 아닌 중간 계조 레벨의 블록의 국소 콘트라스트도 올려버리기 때문에, 중간 계조 레벨이 과(過)보정이 되지 않는 정도로밖에 국소 콘트라스트를 개선할 수가 없었다.In addition, since the conventional technique using the "local contrast correction method" brings about the effect of local contrast correction over the entire gradation, when the correction method is applied to backlight correction, it remains in a dark area or a bright area as it is. In order to increase the correction effect, the local contrast of the block of the halftone level, which is not the original purpose, is also raised, so that the local contrast can be improved only to the extent that the halftone level is not overcorrected.

본 발명은 상술한 바와 같은 과제를 해결하기 위해서 이루어진 것으로, 그 목적은, 역광 보정시에 밝은 영역 또는 어두운 영역 내의 국소 콘트라스트를 보다 한층 개선 가능하게 하는 점에 있다.This invention is made | formed in order to solve the above-mentioned subject, The objective is to make it possible to further improve local contrast in a bright area | region or a dark area | region at the time of backlight correction.

본 발명의 주제는, 디지털 화상의 1 화면 내를 복수의 국소 영역으로 분할한 후에 계조 보정을 행하는 계조 보정 장치로서, 상기 디지털 화상의 상기 1 화면에 걸쳐서, 상기 국소 영역마다의 평균 휘도를 구하는 평균 휘도 산출부와, 상기 국소 영역마다의 평균 휘도에 의해 당해 국소 영역마다의 보정량을 구하는 보정량 산출부와, 상기 국소 영역마다의 보정량으로부터 화소 단위마다의 보정량으로의 보간을 행하는 보간부와, 상기 국소 영역마다의 보정량과 전체 휘도 계조 레벨의 중앙값에 대응하는 보정량과의 대소(大小), 또는 상기 화소 단위마다의 보정량과 상기 전체 휘도 계조 레벨의 중앙값에 대응하는 보정량과의 대소에 근거하여, 미리 준비한 복수의 계조 변환 함수로부터 1개의 계조 변환 함수를 선택하고, 상기 국소 영역마다의 보정량과 상기 화소 단위마다의 보정량 중 어느 한쪽을 파라미터로 하여, 화소마다의 휘도를 상기 선택된 계조 변환 함수에 의해 보정하는 계조 보정을 행하는 계조 변환부를 구비한 것을 특징으로 한다.A subject of the present invention is a gradation correction device for performing gradation correction after dividing an inside of one screen of a digital image into a plurality of local areas, the average of obtaining an average luminance for each local area over the one screen of the digital image. A luminance calculator, a correction amount calculator for calculating a correction amount for each local area by the average luminance of each local area, an interpolation unit for interpolating from the correction amount for each local area to the correction amount for each pixel unit, and the local Preliminarily prepared based on the magnitude of the correction amount for each region and the correction amount corresponding to the median value of the entire luminance gradation level, or the magnitude of the correction amount for each pixel unit and the correction amount corresponding to the median value of the overall luminance gradation level One gradation conversion function is selected from a plurality of gradation conversion functions, and the correction amount and image for each local area are selected. And either one of the correction amount of each pixel by the parameter, characterized in that it includes parts of gradation conversion performed by the tone correction for correcting the gradation conversion function is selected the the brightness of each pixel.

본 발명의 주제는 이하에 설명하는 1)∼3)의 효과를 발휘한다.The subject matter of the present invention exhibits the effects of 1) to 3) described below.

1) 화면 내를 복수의 국소 영역(예컨대, 블록)으로 분할한 후에, 국소 영역의 평균 휘도 레벨로부터 보정 후의 휘도 레벨로의 변화량을 국소 영역의 평균 휘도 레벨에 의해 제어하도록 하고 있기 때문에, 국소 콘트라스트를 개선하면서, 밝은 영역이나 어두운 영역과 같은, 동일 정도의 계조 레벨이 면적적으로 넓게 연속하는 부분의 전체에 있어서도, 전체적으로 양호한 계조 보정 결과를 얻을 수 있다고 하는 효과가 있다.1) After the screen is divided into a plurality of local regions (for example, blocks), the amount of change from the average luminance level of the local region to the corrected luminance level is controlled by the average luminance level of the local region. While improving the above-mentioned, there is an effect that a good gradation correction result can be obtained as a whole even in a portion where the same level of gradation level, such as a bright area or a dark area, is widely continuous in area.

2) 각 국소 영역의 평균 휘도 레벨을, 당해 국소 영역의 평균 휘도 레벨이 낮을 때에는 레벨을 올리도록 제어하고 있기 때문에, 어두운 영역이 면적적으로 넓게 연속하는 부분 전체에 있어서도, 전체적으로 양호한 계조 보정 결과를 얻을 수 있다고 하는 효과가 있다.2) Since the average luminance level of each local area is controlled to be raised when the average luminance level of the local area is low, even in the entire area where the dark area is continuously continuous, good overall gray level correction results are obtained. There is an effect that can be obtained.

3) 각 국소 영역의 평균 휘도 레벨을, 당해 국소 영역의 평균 휘도 레벨이 높을 때에는 레벨을 내리도록 제어하고 있기 때문에, 밝은 영역이 면적적으로 넓게 연속하는 부분 전체에 있어서도, 전체적으로 양호한 계조 보정 결과를 얻을 수 있다고 하는 효과가 있다.3) Since the average luminance level of each local area is controlled to be lowered when the average luminance level of the local area is high, even in the entire area where the bright area is continuously continuous, good overall gray level correction results are obtained. There is an effect that can be obtained.

이하, 본 발명의 목적, 특징, 국면 및 이점은, 이하의 상세한 설명과 첨부 도면에 의해 보다 명백해진다.The objects, features, aspects, and advantages of the present invention will become apparent from the following detailed description and the accompanying drawings.

도 1은 본 발명의 실시예 1에 따른 계조 보정 장치의 구성예를 나타내는 블록도,1 is a block diagram showing a configuration example of a gradation correction device according to a first embodiment of the present invention;

도 2는 화상의 블록 분할을 나타내는 도면,2 is a diagram illustrating block division of an image;

도 3은 블록 평균 휘도값에 의해 보정량을 제어하는 것을 나타내는 도면,3 is a diagram illustrating control of a correction amount based on a block average luminance value;

도 4는 화소마다의 보정량을 구하기 위한 보간의 형태를 나타내는 도면,4 is a diagram showing a form of interpolation for obtaining a correction amount for each pixel;

도 5는 저휘도 영역에 있어서의 계조 변환 커브를 나타내는 도면,5 is a diagram illustrating a gray scale conversion curve in a low luminance region;

도 6은 고휘도 영역에 있어서의 계조 변환 커브를 나타내는 도면,6 is a diagram illustrating a gray scale conversion curve in a high luminance region;

도 7은 본 발명의 실시예 1에 따른 계조 보정 방법을 나타내는 흐름도,7 is a flowchart illustrating a gradation correction method according to Embodiment 1 of the present invention;

도 8은 본 발명의 실시예 2에 따른 계조 보정 장치의 구성예를 나타내는 블록도,8 is a block diagram showing a configuration example of a gradation correction device according to a second embodiment of the present invention;

도 9는 본 발명의 실시예 2에 따른 계조 보정 방법을 나타내는 흐름도,9 is a flowchart illustrating a gradation correction method according to a second embodiment of the present invention;

도 10은 입력 화상의 히스토그램을 나타내는 도면,10 is a diagram showing a histogram of an input image;

도 11은 변환 후의 화상의 히스토그램을 나타내는 도면,11 is a diagram showing a histogram of an image after conversion;

도 12는 변환 후의 화상의 히스토그램을 나타내는 도면,12 is a diagram showing a histogram of an image after conversion;

도 13은 본 발명의 실시예 3에 따른 계조 보정 장치의 구성예를 나타내는 블록도,13 is a block diagram showing a configuration example of a gradation correction device according to a third embodiment of the present invention;

도 14는 본 발명의 실시예 3에 따른 맵핑 커브를 나타내는 도면,14 is a diagram showing a mapping curve according to a third embodiment of the present invention;

도 15는 직선의 맵핑 커브를 나타내는 도면이다.15 is a diagram illustrating a mapping curve of straight lines.

(실시예 1)(Example 1)

본 실시예의 특징점은, 화면 내를 복수의 블록으로 분할한 후에, 블록으로서 분할된 각 국소 영역의 평균 휘도 레벨로부터 그 보정 후의 휘도 레벨로의 변화량을 당해 국소 영역의 평균 휘도 레벨에 의해 제어하는 점에 있다. 특히, 본 실시예의 특징점은, 각 국소 영역의 평균 휘도 레벨을, 당해 국소 영역의 평균 휘도 레 벨이 전체 휘도 계조 레벨의 중앙값보다 상대적으로 낮을 때에는 올리도록 제어하는 점에 있다. 반대로, 본 실시예의 특징점은, 각 국소 영역의 평균 휘도 레벨을, 당해 국소 영역의 평균 휘도 레벨이 전체 휘도 계조 레벨의 중앙값보다 상대적으로 높을 때에는 내리도록 제어하는 점에 있다. 또, 본 실시예의 특징점은, (1) 국소 영역의 평균 휘도 레벨이 전체 휘도 계조 레벨의 중앙값보다 상대적으로 낮을 때에는, 당해 국소 영역의 휘도 보정에 있어서의 보정량을 크게 제어하고, (2) 평균 휘도 레벨이 전체 휘도 계조 레벨의 중앙값보다 높을 때에도, 당해 국소 영역의 휘도 보정에 있어서의 보정량을 크게 제어하는 한편, (3) 국소 영역의 평균 휘도 레벨이 중간 정도(전체 휘도 계조 레벨 정도)일 때에는, 당해 국소 영역의 휘도 보정에 있어서의 보정량을 작게 하도록 제어하는 점에 있다. 혹은, 본 실시예에서는, 국소 영역의 평균 휘도 레벨이 전체 휘도 계조 레벨의 중앙값보다 낮을 때에는 당해 국소 영역의 휘도 보정에 있어서의 보정량을 크게 하고, 평균 휘도 레벨이 중간 정도일 때에는 당해 국소 영역의 휘도 보정에 있어서의 보정량을 작게 하며, 평균 휘도 레벨이 전체 휘도 계조 레벨의 중앙값보다 높을 때에는 당해 국소 영역의 휘도 보정에 있어서의 보정량을 중간 정도로 하도록 제어된다. 이하, 첨부 도면에 기초하여 본 실시예의 특징점을 상세히 기술한다.The characteristic point of this embodiment is that after dividing the screen into a plurality of blocks, the amount of change from the average luminance level of each local region divided as a block to the luminance level after the correction is controlled by the average luminance level of the local region. Is in. In particular, the feature of this embodiment is that the average brightness level of each local area is controlled to be raised when the average brightness level of the local area is relatively lower than the median value of the entire brightness gradation level. On the contrary, the feature of the present embodiment lies in that the average brightness level of each local area is controlled to decrease when the average brightness level of the local area is relatively higher than the median value of the entire brightness gradation level. In addition, the characteristic point of this embodiment is that (1) when the average luminance level of the local region is relatively lower than the median value of the overall luminance gradation level, the correction amount in the luminance correction of the local region is greatly controlled, and (2) the average luminance. Even when the level is higher than the median of the entire luminance gradation levels, the amount of correction in the luminance correction of the local region is largely controlled, and (3) when the average luminance level of the local region is medium (about the entire luminance gradation level), The point of control is to reduce the amount of correction in the luminance correction of the local area. Alternatively, in the present embodiment, when the average luminance level of the local region is lower than the median of all luminance gradation levels, the amount of correction in the luminance correction of the local region is increased, and when the average luminance level is medium, the luminance correction of the local region is medium. The amount of correction is reduced, and when the average luminance level is higher than the median of all luminance gradation levels, the amount of correction in the luminance correction of the local area is controlled to be about medium. EMBODIMENT OF THE INVENTION Hereinafter, the characteristic point of this embodiment is described in detail based on an accompanying drawing.

도 1은 본 실시예에 따른 계조 보정 장치의 구성 내지는 기능부를 나타내는 블록도이다. 도 1에 있어서, 계조 보정 장치에 입력된 디지털 화상 데이터는 보정량 산출부(101)와 기억부(106)에 입력된다. 보정량 산출부(101)는 그 내포하는 블록 타이밍 발생부(102)의 제어 하에서 블록 단위(국소 영역 단위)의 처리를 행한 다. 우선, (1) 평균 휘도 산출부(103)는 입력된 화상 데이터로부터 블록 단위의 평균 휘도값을 산출한다. 다음에, (2) 블록 단위 보정량 산출부(104)는 입력된 블록 단위의 평균 휘도값으로부터 블록 단위로의 보정량을 산출한다. 또, (3) 화소 단위 보정량 산출부(105)는 입력된 블록 단위의 보정량으로부터 화소 단위의 보정량을 산출한다. 즉, 화소 단위 보정량 산출부(105)는 블록 단위마다의 보정량으로부터 화소 단위에 기초한 보정량으로의 보간을 행하는 「보간부」로서 기능한다.1 is a block diagram showing a configuration or a functional part of a gradation correction device according to the present embodiment. In Fig. 1, the digital image data input to the gradation correction device is input to the correction amount calculation unit 101 and the storage unit 106. The correction amount calculation unit 101 performs a block unit (local area unit) processing under the control of the nested block timing generation unit 102. First, (1) the average brightness calculator 103 calculates an average brightness value in units of blocks from the input image data. Next, (2) the block unit correction amount calculating unit 104 calculates a correction amount in block units from the input average luminance value in block units. (3) The pixel unit correction amount calculating section 105 calculates the correction amount in units of pixels from the input block unit correction amount. In other words, the pixel unit correction amount calculation unit 105 functions as an "interpolation unit" which interpolates from the correction amount for each block unit to the correction amount based on the pixel unit.

계조 변환부(107)는, 블록 타이밍 발생부(102)로부터 출력되는 제어 신호에 근거하여, 화소 단위 보정량 산출부(105)로부터 입력되는 보정량과 계조 변환 테이블부(108)의 변환 테이블값을 이용하여, 동 부재(107)가 기억부(106)로부터 판독한 화상 데이터(휘도값 데이터)에 대해 계조 변환을 행한다.The gray level conversion unit 107 uses the correction amount input from the pixel unit correction amount calculation unit 105 and the conversion table value of the gray level conversion table 108 based on the control signal output from the block timing generation unit 102. Then, the same member 107 performs gradation conversion on the image data (luminance value data) read out from the storage unit 106.

다음에, 각 처리 블록의 상세한 동작에 대하여 기재한다. 우선, 기억부(106)에 대해 기재한다. 보정량 산출부(101) 전체로서는, 1∼수 블록 라인 만큼의 지연이 발생하기 때문에, 통상, 기억부(106)는 동등한 1∼수 블록 라인의 지연을 발생하는 라인 메모리로 구성되어 있다. 만일 보정량 산출부(101) 측에 있어서 프레임 단위의 지연이 발생하는 경우에는, 기억부(106)도 동등한 프레임 단위의 지연을 발생하는 프레임 메모리로 구성된다.Next, the detailed operation of each processing block will be described. First, the storage unit 106 will be described. Since the delay amount by one or several block lines occurs as the correction amount calculation unit 101 as a whole, the storage unit 106 is usually configured with a line memory that generates delays of equivalent one to several block lines. If a delay in units of frames occurs on the correction amount calculating unit 101 side, the storage unit 106 also includes a frame memory that generates delays in units of equivalent frames.

한편, 보정량 산출부(101) 내에 입력된 화상 데이터에 대해서는, 블록 타이밍 발생부(102)에서 발생된 블록 번호마다, 평균 휘도 산출부(103)가 블록 단위의 평균 휘도값('블록 내 평균 휘도'라고도 칭함)을 구한다. 만일 화상 데이터가 평균 휘도 산출부(103)에 입력될 때에, 그 화상 데이터 형식이 휘도·색차 형식으로 되어 있지 않은 경우에는, 평균 휘도를 구하기 전에 휘도·색차 형식으로의 포맷 변환을 행할 필요가 있다. 그 경우에는, 그와 같은 포맷 변환을 행하는 블록 내지는 기능부가 보정량 산출부(101)의 전(前)단계에 마련된다. 이에 반하여, 만일 RGB 형식 그대로 입력 화상 데이터를 사용하는 경우에는, 평균 휘도 산출부(103)는 RGB의 평균값을 의사적으로 「블록 단위의 평균 휘도값」으로서 결정하여도 좋지만, 이하의 기재에서는, 디지털 화상 데이터는 미리 휘도·색차 형식으로 변환된 후에, 보정량 산출부(101) 내에 입력된 것으로 하여 취급하기로 한다.On the other hand, with respect to the image data input into the correction amount calculation unit 101, for each block number generated by the block timing generation unit 102, the average luminance calculation unit 103 performs an average luminance value in units of blocks ('average average luminance in blocks). (Also called '). If the image data format is not set to the luminance / color difference format when the image data is input to the average luminance calculating section 103, it is necessary to perform format conversion to the luminance / color difference format before obtaining the average luminance. . In that case, a block or a functional unit for performing such a format conversion is provided in the previous step of the correction amount calculation unit 101. On the other hand, if the input image data is used in the RGB format, the average brightness calculator 103 may determine the average value of RGB pseudoly as an "average brightness value in units of blocks", but in the following description, After the digital image data is converted into the luminance / color difference format in advance, it is assumed that the digital image data is input into the correction amount calculation unit 101.

또한, 블록 타이밍 발생부(102)는, 1) 보정량 산출부(101) 내에 입력되는 디지털 화상이 텔레비젼 영상 신호나 디지털 카메라 모듈의 촬상 신호인 경우에는, 당해 화상 신호의 동기 신호에 동기하여 각 부재(103, 104, 105, 107)의 처리를 제어하는 제 1∼제 4 제어 신호를 출력한다. 그에 반하여, 2) 임의의 메모리(도시하지 않음) 내에 보정량 산출부(101)에 입력될 디지털 화상이 이미 저장되어 있고, 그 디지털 화상을 CPU(도시하지 않음)가 판독하여 보정량 산출부(101)에 입력하는 것과 같은 경우에 있어서는, 블록 타이밍 발생부(102)는 상기 CPU의 상기 메모리의 판독 개시 클록에 동기하여 각 부재(103, 104, 105, 107)의 처리를 제어하는 제 1∼제 4 제어 신호를 출력한다.In addition, the block timing generator 102, 1) When the digital image input into the correction amount calculation unit 101 is a television video signal or an imaging signal of a digital camera module, each member is synchronized with the synchronization signal of the image signal. The first to fourth control signals for controlling the processing of (103, 104, 105, 107) are output. In contrast, 2) a digital image to be input to the correction amount calculating unit 101 is already stored in an arbitrary memory (not shown), and the digital image is read by the CPU (not shown), and the correction amount calculating unit 101 In the case of inputting into the, the block timing generating unit 102 controls the processing of the respective members 103, 104, 105, and 107 in synchronization with the read start clock of the memory of the CPU. Output a control signal.

여기서, 블록 타이밍 발생부(102)의 지령(제 1 제어 신호)에 의해 지정되는, 1 화면을 분할하는 블록에 대해, 도 2를 이용하여 설명한다. 도 2는 화상의 블록 분할을 나타내는 도면이다. 도 2에 있어서, 참조 부호 501은 1 화면 전체를 나타내며, 종횡으로 연장되는 경계선(502)에 의해 1 화면 전체(501)가 복수의 블록으로 분할되어 있다. 만일 역광 보정을 행할 때에는, 예컨대 입력 화상에 상당히 밝은 영역과 상당히 어두운 영역이 존재하고 있었던 경우에는, 화상 내의 밝은 영역에 포함되는 블록(503) 및 화상 내의 어두운 영역에 포함되는 블록(504)이 1 화면 전체(501) 내에 존재하게 된다.Here, a block for dividing one screen, which is designated by an instruction (first control signal) of the block timing generator 102, will be described with reference to FIG. 2 is a diagram illustrating block division of an image. In FIG. 2, reference numeral 501 denotes the entirety of one screen, and the entirety of one screen 501 is divided into a plurality of blocks by a boundary line 502 extending vertically and horizontally. When performing backlight correction, for example, if there are considerably bright areas and considerably dark areas in the input image, the block 503 included in the bright areas in the image and the block 504 included in the dark areas in the image are 1; It is present in the entire screen 501.

평균 휘도 산출부(103)는, 입력된 화상 데이터의 휘도값을 동일한 블록 영역 내에서 누적 가산해 가서, 마지막에 블록 내의 화소수로 나눔으로써, 블록 단위의 평균 휘도값을 산출한다. 여기서, 나눗셈 처리의 간략화를 위해, 통상, 블록 크기에는 세로·가로 모두 각각 2의 멱승의 화소수를 이용하는 경우가 많다. 도 2에 있어서의 블록(503)은 밝은 영역이기 때문에, 평균 휘도 산출부(103)에 의해 구해진 각 블록(503)의 평균 휘도값은 비교적 높은 값으로 된다. 반대로, 도 2에 있어서의 블록(504)은 어두운 영역이기 때문에, 평균 휘도 산출부(103)에 의해 구해진 각 블록(504)의 평균 휘도값은 비교적 낮은 값으로 된다.The average luminance calculation unit 103 calculates the average luminance value in units of blocks by accumulating and adding the luminance value of the input image data in the same block area and finally dividing by the number of pixels in the block. Here, for the sake of simplicity of division, the number of pixels of powers of 2 in both vertical and horizontal directions is usually used for the block size. Since the block 503 in FIG. 2 is a bright area, the average luminance value of each block 503 obtained by the average luminance calculator 103 becomes a relatively high value. On the contrary, since the block 504 in FIG. 2 is a dark area, the average luminance value of each block 504 obtained by the average luminance calculation unit 103 becomes a relatively low value.

또한, 동 부재(103)의 상기 처리 대상 블록(당해 블록 번호는 상기 제 1 제어 신호에 의해 지정됨)에 있어서의 「화소수의 정보」는, 1) 그것이 가변 정보인 경우에는, 각각의 블록마다 CPU(도시하지 않음)로부터 「화소수의 정보」가 양 부재(102, 103)에 인가되고, 반면, 2) 그것이 고정값인 경우에는, 당해 고정의 「화소수의 정보」가 양 부재(102, 103) 내에 저장되어 있다.In addition, the "pixel number information" in the said process object block (the block number is designated by the said 1st control signal) of the said member 103 is 1) for each block, when it is variable information. "Pixel number information" is applied to both members 102 and 103 from the CPU (not shown). On the other hand, when 2) it is a fixed value, the fixed "pixel number information" is applied to both members 102; , 103).

평균 휘도 산출부(103)에서 구해진 블록 단위의 평균 휘도값은 블록 단위 보정량 산출부(104)에 입력된다. 블록 단위 보정량 산출부(간단히 '보정량 산출부'라고도 함)(104)는, 블록 타이밍 발생부(102)에서 발생되는 타이밍(제 2 제어 신호 가 지시하는 처리 개시 타이밍)에 따라서, 블록 단위로의 보정의 방향 및 보정량을 산출한다. 그 보정량 산출 방법은 다음과 같다. 즉, 블록 단위 보정량 산출부(104)에 입력된, 1 화면 내의 처리 대상인 임의의 블록(단위)의 평균 휘도값이 전체 휘도 계조 레벨의 중앙값보다 비교적 낮은 경우에는, 도 3에 나타내는 바와 같이, 블록 단위 보정량 산출부(104)는 당해 블록(단위)의 평균 휘도값에 대한 보정량을 크게 설정하고(이 경우, 보정의 방향을 플러스로 설정함), 이렇게 하여 생성된 비교적 큰 당해 블록(단위)에 대한 보정량을 출력한다. 반대로, 블록 단위 보정량 산출부(104)에 입력된 블록 단위의 평균 휘도값이 상기 중앙값보다 비교적 높은 경우에는, 도 3에 나타내는 바와 같이, 블록 단위 보정량 산출부(104)는 당해 블록(단위)의 평균 휘도값에 대한 보정량을 작게 설정하고(이 경우, 보정의 방향을 마이너스로 설정함), 이렇게 하여 생성된 비교적 작은 블록 단위로의 보정량을 출력한다. 여기서, 도 3에는, 일례로서, 입력된 블록 내 평균 휘도값에 의해 보정량을 제어하기 위한 산출식이 직선인 경우가 도시되어 있지만, 이러한 직선 대신에, 곡선을 상기 보정용 산출식에 이용하더라도 상관없다. 그러나, 만일 곡선의 제어 곡선을 이용한 경우에는, 블록 단위 보정량 산출부(104)에 있어서의 처리량이 증대되기 때문에, 통상, 블록 단위 보정량 산출부(104)는 직선 또는 직선끼리의 조합으로 이루어지는 보정용 산출식으로 보정 방향 및 보정량의 처리 동작을 실행한다. 또한, 블록 단위 보정량 산출부(104)가 구하는 「보정의 방향」을 반대로 설정한 경우에는, 후술하는 보정 커브(도 5 및 도 6)의 설정도 역전시킬 필요가 있다.The average luminance value in units of blocks obtained by the average luminance calculator 103 is input to the block unit correction amount calculator 104. The block unit correction amount calculating unit (also referred to simply as the 'compensation amount calculating unit') 104 is performed in units of blocks in accordance with the timing (process start timing indicated by the second control signal) generated by the block timing generating unit 102. The direction of correction and the amount of correction are calculated. The correction amount calculation method is as follows. That is, when the average luminance value of any block (unit) to be processed in one screen input to the block unit correction amount calculation unit 104 is relatively lower than the median value of the entire luminance gradation levels, as shown in FIG. The unit correction amount calculation unit 104 sets a large correction amount with respect to the average luminance value of the block (unit) (in this case, sets the direction of correction to a positive value), and applies the relatively large block (unit) generated in this way. Output the correction amount for On the contrary, in the case where the average luminance value of the block unit input to the block unit correction amount calculation unit 104 is relatively higher than the median value, as shown in FIG. 3, the block unit correction amount calculation unit 104 of the block (unit) The correction amount for the average luminance value is set small (in this case, the direction of correction is set to minus), and the correction amount in the relatively small block unit thus produced is output. Here, as an example, the case where the calculation formula for controlling the correction amount by the inputted average luminance value in the block is a straight line is shown, but instead of such a straight line, a curve may be used for the correction calculation formula. However, if the control curve of the curve is used, since the throughput in the block unit correction amount calculation unit 104 is increased, the block unit correction amount calculation unit 104 usually uses a straight line or a combination of straight lines to calculate the correction. In this way, the processing operations of the correction direction and the correction amount are executed. In addition, when the "direction of correction" calculated by the block unit correction amount calculation unit 104 is set in reverse, it is necessary to reverse the setting of the correction curve (FIGS. 5 and 6) described later.

블록 단위 보정량 산출부(104)로부터 출력된 당해 블록(상기 제 1 제어 신호 에 의해 지정된 현 처리 대상 블록)(블록 단위)의 보정량은, 화소 단위 보정량 산출부(105)에 입력되어 당해 블록 내의 화소마다의 보정량으로 보간된다. 즉, 화소 단위 보정량 산출부(105)는, 블록 단위 보정량 산출부(104)로부터 입력되는 블록 단위의 보정량과, 블록 타이밍 발생부(102)로부터 함께 입력되는 「블록 번호」 및 「블록 내 오프셋 위치」('블록 내 오프셋 위치'란, 각 블록의 4 모서리 중 어느 하나를 원점으로 설정한 위치 좌표축에 의해 규정되는, 당해 블록 내에 속하는 각 화소의 위치임)의 정보에 근거하여, 「화소 단위의 보정량」을 산출한다. 그 때의 화소마다 보정량을 구하기 위한 보간 형태를 일례로서 도 4에 나타낸다. 도 4에 있어서, 참조 부호 221은, 보간 대상인 「주목 화소」의 위치(225)(당해 주목 화소 위치(225)의 당해 블록의 중심(重心)에 대한 위치 관계 자체는 당해 주목 화소가 속하는 당해 블록 내의 오프셋 위치에 따라 규정됨)의 좌측 상단에 중심이 위치하는 블록의 보정량이다. 마찬가지로, 참조 부호 222는 주목 화소 위치(225)의 우측 상단에, 참조 부호 223은 주목 화소 위치(225)의 좌측 하단에, 참조 부호 224는 주목 화소 위치(225)의 우측 하단에 각각 중심이 위치하는, 각 블록의 보정량이다. 그리고, 주목 화소의 위치(225)에 있어서의 보정량(226)은, 주위 4개의 블록에 있어서의 블록 단위의 보정량으로부터, 블록 타이밍 발생부(102)로부터 입력되는 블록 내 오프셋 위치를 이용하여 선형 보간에 의해 구해진다. 예컨대, 참조 부호 221이 속하는 블록의 중심 위치의 오프셋 좌표를 (0, 0)으로 설정하면, 그 오프셋 좌표를 기준으로 하여 그 밖의 주위 3개의 블록의 중심 위치의 오프셋 좌표도 규정되기 때문에, 이들 4개의 오프셋 좌표를 기초로 동 부재(105)가 선형 보간의 계수 값을 구할 수 있고, 이에 따라 동 부재(105)는 위치(225)에 있어서의 주목 화소의 보정량을 산출할 수 있다. 이러한 선형 보간에 의한 보정량의 산출 처리는 위치(225)가 속하는 당해 블록 내의 모든 주목 화소에 대하여 실행된다. 또한, 여기서는 단순한 선형 보간의 예를 나타내었지만, 화소 단위 보정량 산출부(105)는, 스플라인(spline) 보간이나, 다차(多次) 다항식 보간, 혹은 그 밖의 곡선을 이용한 보간 방법을 이용하여도 좋다.The correction amount of the block (the current processing target block designated by the first control signal) (block unit) outputted from the block unit correction amount calculation unit 104 is input to the pixel unit correction amount calculation unit 105 and the pixels in the block Interpolation is performed for each correction amount. That is, the pixel unit correction amount calculating unit 105 includes a block unit correction amount input from the block unit correction amount calculating unit 104, and the "block number" and the "in-block offset position" input together from the block timing generating unit 102. Based on the information of " the offset position in the block " is the position of each pixel belonging to the block defined by the position coordinate axis in which one of the four corners of each block is set as the origin. Correction amount ”is calculated. The interpolation form for obtaining the correction amount for each pixel at that time is shown in FIG. 4 as an example. In Fig. 4, reference numeral 221 denotes the position 225 of the "focus pixel" that is the interpolation target (the positional relationship itself with respect to the center of gravity of the block of the pixel position 225 of interest is the corresponding block to which the pixel of interest belongs. Is the correction amount of the block whose center is located at the upper left of the (left) defined in accordance with the offset position in the circuit. Similarly, reference numeral 222 is located at the upper right of the pixel of interest 225, reference numeral 223 is located at the lower left of the pixel of interest 225, and reference 224 is centered at the lower right of the pixel of interest 225. It is the correction amount of each block. The correction amount 226 at the position 225 of the pixel of interest is linearly interpolated from the correction amount in units of blocks in the surrounding four blocks using the offset position in the block input from the block timing generation unit 102. Obtained by For example, if the offset coordinate of the center position of the block to which the reference numeral 221 belongs is set to (0, 0), since the offset coordinate of the center position of the other three surrounding blocks is also defined on the basis of the offset coordinate, these 4 Based on the two offset coordinates, the copper member 105 can obtain the coefficient value of the linear interpolation, and accordingly, the copper member 105 can calculate the correction amount of the pixel of interest at the position 225. The process of calculating the correction amount by linear interpolation is performed for all the pixels of interest in the block to which the position 225 belongs. In addition, although the example of simple linear interpolation was shown here, the pixel unit correction amount calculation part 105 may use the spline interpolation, the multi-order polynomial interpolation, or the interpolation method using other curves. .

이상의 기재에서는, 1 블록을 「국소 영역」으로서 규정하는 「블록 단위」를 채용하고 있지만, 이것 대신에, 블록 단위에 기초한 블록 크기의 정수배를, 또는 그 정수분의 1 배를, 혹은 그 정수분의 정수배를 각 부재(103, 104)에 있어서의 처리 중 하나의 단위로 하여도 좋다. 그러한 의미에서, 디지털 화상의 1 화면을 복수 개로 분할할 때의 이들의 단위를 「국소 영역」이라고 정의한다. 따라서, 바꿔 말하면, 디지털 화상의 1 화면은 블록 타이밍 발생부(102)에 의한 지정 제어 하에서 복수의 국소 영역으로 분할된 후에, 국소 영역 단위로의 타이밍으로 각 부재(103, 104)의 연산이 행해진다고 할 수 있다.In the above description, a "block unit" that defines one block as a "local area" is employed. Instead, an integer multiple of a block size based on a block unit, or one times that integer, or an integer portion thereof May be used as one unit of the processing in the members 103 and 104. In that sense, these units at the time of dividing one screen of a digital image into a plurality are defined as "local areas". Therefore, in other words, one screen of the digital image is divided into a plurality of local areas under the designated control by the block timing generating unit 102, and then the calculation of each member 103, 104 is performed at the timing in units of local areas. It can be said.

마찬가지로, 화소 단위 보정량 산출부(105)의 처리 동작의 단위로서, 지금까지 「화소 단위」라고 표현해 온 점에 관해서도, 화소 단위에 기초한 화소 크기의 정수배, 또는 그 정수분의 1 배, 혹은 그 정수분의 정수배를 동 부재(105)의 처리 동작에 있어서의 「하나의 단위」로 설정하여도 좋다.Similarly, as a unit of the processing operation of the pixel unit correction amount calculating unit 105, the point that has been expressed as "pixel unit" so far is an integer multiple of the pixel size based on the pixel unit, or one times the integer, or an integer thereof. The integral multiple of minutes may be set to "one unit" in the processing operation of the member 105.

화소 단위 보정량 산출부(105)로부터 출력되는 화소 단위마다의 보정량은 계조 변환부(107)에 입력된다. 계조 변환부(107)는, 블록 타이밍 발생부(102)에 의 해 지정되는 당해 화소에 대하여, 당해 화소의 상기 화소 단위의 보정량과 동 부재(107)가 기억부(106) 내로부터 판독한 당해 화소의 휘도 레벨을 미리 준비되어 있는 계조 변환 테이블부(108)의 어드레스로서 이용함으로써, 계조 변환 테이블부(108)로부터 해당하는 데이터를 판독하는 것에 의해 보정 후의 휘도 데이터를 얻는다. 계조 변환 테이블부(108)에는, (A) 화소 단위 보정량 산출부(105)에서 구해진 보정량이 전체 휘도 계조 레벨의 중앙값보다 상대적으로 높은 경우에는, 예컨대 도 5에 나타내는, 저휘도부의 계조성을 높여 저휘도부의 다이나믹 레인지를 넓히는 제 1 변환 커브가 기억되어 있고, (B) 반대로, 화소 단위 보정량 산출부(105)에서 구해진 보정량이 낮은 경우에는, 예컨대 도 6에 나타내는, 고휘도부의 계조성을 높여 고휘도부의 다이나믹 레인지를 넓히는 제 2 변환 커브가 기억되어 있다. 여기서는, 도 5 및 도 6에 나타내는 바와 같은, 곡선의 계조 변환 커브를 예시하고 있지만, 연산을 간략화하여 회로 규모나 소비 전력을 억제하거나, 또는 처리 속도 향상을 위해서, 직선을 조합한 것을 계조 변환용으로 적용하여도 좋다. 혹은, 계조 변환 테이블부(108)를 미리 준비해 둔 본 실시예 대신에, 계조 변환부(107)가 순차 계산에 의해서 스스로 변환 테이블을 구하도록 구성하여도 좋고, 또는 변환 테이블을 이용하지 않고서, 계조 변환부(107)가 입력된 보정량으로부터 직접 연산에 의해 보정을 실행하도록 수정하여도 좋다. 그런 의미에서, 계조 변환 테이블부(108)는, 필수적인 구성 요소라기보다는, 임의의 구성 요소라고 할 수 있다. 또, 전술한 바와 같이, 도 3에 나타내는 보정량의 그래프가 정부(正負;plus and minus) 역전되어 있는 변형의 경우에는, 그와 같은 변형예는 도 5 및 도 6의 계조 변환 특성도 역전 시킴으로써, 본 실시예와 동등하게 된다. 계조 변환 테이블부(108)는, 예컨대 저장 장치(storage device) 혹은 게이트 회로에 의해 구성된다.The correction amount for each pixel unit output from the pixel unit correction amount calculation unit 105 is input to the gradation converter 107. The gray scale conversion unit 107 is configured to read the correction amount of the pixel unit of the pixel and the correction unit 107 read out from the storage unit 106 with respect to the pixel designated by the block timing generation unit 102. By using the luminance level of the pixel as an address of the gradation conversion table section 108 prepared in advance, the luminance data after correction is obtained by reading the corresponding data from the gradation conversion table section 108. In the gradation conversion table 108, (A) when the correction amount obtained by the pixel unit correction amount calculation unit 105 is relatively higher than the median of all luminance gradation levels, the gradation of the low luminance part shown in FIG. The first conversion curve that broadens the dynamic range of the luminance unit is stored. (B) In contrast, when the correction amount determined by the pixel unit correction amount calculation unit 105 is low, for example, the gray scale of the high luminance unit shown in FIG. The second conversion curve that widens the range is stored. Here, although the gradation conversion curve of the curve as shown in FIG. 5 and FIG. 6 is illustrated, the combination of the straight lines for simplifying the calculation to suppress the circuit scale and power consumption or to improve the processing speed is used for the gradation conversion. May be applied. Alternatively, instead of the present embodiment in which the tone conversion table unit 108 is prepared in advance, the tone conversion unit 107 may be configured so as to obtain the conversion table itself by sequential calculation, or without using the conversion table. The converter 107 may be modified to perform correction by direct calculation from the input correction amount. In that sense, the gradation conversion table unit 108 may be referred to as any component, rather than an essential component. In addition, as described above, in the case of the deformation in which the graph of the correction amount shown in FIG. 3 is inverted plus and minus, such a modification also reverses the gray scale conversion characteristics of FIGS. 5 and 6, It becomes equivalent to this embodiment. The gradation conversion table section 108 is configured by, for example, a storage device or a gate circuit.

여기서, 도 7은 전술한 계조 보정 처리의 원리를 나타내는 흐름도이다. 혹은, 도 7은, 컴퓨터로 실행 가능한 소프트웨어의 프로그램에 있어서의 각 처리 과정을 나타낸다. 우선, 평균 휘도 산출 단계(301)에 있어서, 입력된 화상에 대하여 블록 단위로 평균 휘도값을 산출하고, 다음의 블록 단위 보정량 산출 단계(302)에 있어서 평균 휘도값으로부터 보정의 방향에 근거하여 블록 단위의 보정량을 산출하며, 또한 다음의 화소 단위 보정량 산출 단계(303)에 있어서, 입력된 블록 단위의 보정량으로부터 화소 단위의 보정량을 산출(보간)한 후에, 마지막의 계조 변환 단계(304)에 있어서, 입력된 화소 단위의 보정량을 이용하여 최종적인 화소마다의 계조 변환을 행한다.7 is a flowchart showing the principle of the gradation correction process described above. 7 shows each processing procedure in a program of software executable by a computer. First, in the average luminance calculation step 301, the average luminance value is calculated in units of blocks with respect to the input image, and in the next block unit correction amount calculation step 302, the average luminance value is calculated based on the direction of correction from the average luminance value. In the next pixel unit correction amount calculation step 303, after calculating (interpolating) the pixel correction amount from the input block unit correction amount in step 303, the final gray level conversion step 304 is calculated. The gray level conversion for each final pixel is performed using the input correction amount in pixel units.

블록 단위로의 보정의 방향 및 보정량은, 예컨대 도 3에 나타내는 바와 같이, 입력된 화상의 블록 단위의 평균 휘도값에 의해 제어된다. 그리고, 블록 단위의 보정량으로부터 화소 단위의 보정량의 산출은, 예컨대 도 4에 나타내는 선형 보간에 의해 실행된다. 또, 계조 변환 단계(304)에 있어서는, 예컨대 도 5 또는 도 6에 나타내는 바와 같은 맵핑 커브를 이용하여 계조가 변환된다.The direction of correction and the amount of correction in units of blocks are controlled by the average luminance value in units of blocks of the input image, for example, as shown in FIG. 3. And calculation of the correction amount of a pixel unit from the correction amount of a block unit is performed by linear interpolation shown, for example in FIG. In the tone conversion step 304, for example, the tone is converted using a mapping curve as shown in Fig. 5 or 6.

이 때, 입력 화상을 복수의 블록으로 분할하여 이루어지는 임의의 국소 영역의 평균 휘도값이, 도 2에 나타내는 블록(504)과 같이 전체 휘도 계조 레벨의 중앙값보다 낮은 경우에는, 도 5에 나타내는 맵핑 커브가 선택·사용된다. 이 경우, 당해 블록(504) 내의 전체 화소 중에서, 기능부(105) 내지는 단계(303)에서 산출된 화소 단위의 보정량이 당해 블록의 평균 휘도값(201)과 같아지는 화소에 대해서도, 당해 레벨(201)보다 높은 계조 레벨에 해당하는 휘도 레벨(202)로 변환된다. 마찬가지로, 기능부(105)에서 산출된 화소 단위의 보정량이 평균 휘도값(201) 부근에 있는 다른 화소에 대해서도, 도 5의 적용에 의해, 그 계조 레벨은 각각 보다 높은 계조 레벨로 변환된다. 이 점에서, 종래의 특허문헌 3에 개시된 방법에서는, 블록 내 평균 휘도 레벨이 보존되기 때문에, 화상의 저휘도 영역의 평균 휘도도 그와 더불어 보존되어, 화상의 저휘도 영역 전체로서는 계조 변환 후에도 어두운 상태 그대로였다. 이에 반하여, 본 실시예에 나타내는 방법에서는, 상기한 바와 같이 블록 내 평균 휘도 레벨도 변화시키기 때문에, 화상의 저휘도 영역은 전체적으로도 밝게 변환되어, 직감적인 어두운 부분의 인식성을 향상시킬 수 있다. 즉, 역광 보정의 효과를 높이는 것이 가능하다.At this time, when the average luminance value of any local region formed by dividing the input image into a plurality of blocks is lower than the median value of the entire luminance gradation levels as shown in block 504 shown in FIG. 2, the mapping curve shown in FIG. Is selected and used. In this case, among the all pixels in the block 504, the pixel level at which the correction amount in the pixel unit calculated in the functional unit 105 or step 303 is equal to the average luminance value 201 of the block also corresponds to the level ( The luminance level 202 corresponds to the gradation level higher than 201. Similarly, with respect to the other pixels in which the correction amount in units of pixels calculated by the functional unit 105 is near the average luminance value 201, by applying the application of FIG. 5, the gradation levels are respectively converted to higher gradation levels. In this regard, in the method disclosed in the conventional patent document 3, since the average luminance level in the block is preserved, the average luminance of the low luminance region of the image is also saved, and the entire low luminance region of the image is dark even after the gray scale conversion. It was as it was. On the other hand, in the method shown in the present embodiment, since the average luminance level in the block is also changed as described above, the low luminance region of the image is also brightly converted as a whole, thereby improving the recognition of intuitive dark portions. That is, it is possible to heighten the effect of backlight correction.

반대로, 입력 화상을 복수의 블록으로 분할하여 이루어지는 임의의 국소 영역의 평균 휘도값이, 도 2에 나타내는 블록(503)과 같이 높은 경우에는, 도 6에 나타내는 맵핑 커브가 선택·사용되며, 당해 블록(503) 내의 전체 화소 중에서, 기능부(105) 내지는 단계(303)에서 산출된 화소 단위의 보정량이 당해 블록의 평균 휘도값(203)과 같아지는 화소에 대해서도, 블록의 평균 휘도값(203)은 당해 레벨(203)보다도 낮은 계조 레벨에 해당하는 휘도 레벨(204)로 변환된다. 마찬가지로, 평균 휘도값(203) 부근의 계조 레벨도, 각각 보다 낮은 계조 레벨로 변환된다. 이 점에서, 종래의 특허문헌 3에 개시된 방법에서는, 블록 내 평균 휘도 레벨이 보존되기 때문에, 화상의 고휘도 영역의 평균 휘도도 그와 더불어 보존되어, 화상의 고휘도 영역 전체로서는 계조 변환 후에도 밝은 상태 그대로였다. 이에 반하여, 본 실시예에 나타내는 방법에서는, 상기한 바와 같이 블록 내 평균 휘도 레벨도 변화시키기 때문에, 화상의 고휘도 영역은 전체적으로도 어둡게 변환되어, 직감적인 밝은 부분의 인식성을 향상시킬 수 있다. 즉, 역광 보정의 효과를 높이는 것이 가능하다.Conversely, when the average luminance value of any local region formed by dividing the input image into a plurality of blocks is as high as the block 503 shown in FIG. 2, the mapping curve shown in FIG. 6 is selected and used, and the block is selected. Of all the pixels in 503, the average luminance value 203 of the block also applies to pixels whose correction amount in units of pixels calculated in the functional unit 105 or step 303 is equal to the average luminance value 203 of the block. Is converted to the luminance level 204 corresponding to the gradation level lower than the level 203. Similarly, the gradation level near the average luminance value 203 is also converted to a lower gradation level, respectively. In this respect, in the method disclosed in the conventional patent document 3, since the average luminance level in a block is preserve | saved, the average luminance of the high luminance area | region of an image is also preserve | saved, and the high luminance area | region of an image remains bright after gradation conversion as a whole. It was. On the other hand, in the method shown in the present embodiment, since the average luminance level in the block is also changed as described above, the high luminance region of the image is also darkened as a whole, thereby improving the recognition of the intuitively bright portions. That is, it is possible to heighten the effect of backlight correction.

여기서, 도 5 및 도 6에 나타내는 맵핑 커브를 이용하여 계조 보정을 행할 때의 보정량은, 입력 화상을 블록으로 분할하여 이루어지는 국소 영역의 평균 휘도값이 중간 정도에 있을 때, 다시 말해, 전체 휘도 계조 레벨의 중앙 부근에 있을 때에는, 평균 휘도값이 낮을 때, 즉 전체 휘도 계조 레벨의 하한 부근에 있을 때 및 평균 휘도값이 높을 때, 즉 전체 휘도 계조 레벨의 상한 부근에 있을 때와 비교하여 작아지도록 설정한다. 이러한 설정에 의해, 원래 계조 레벨이 적절했던 중간조 레벨의 영역에서는 보정에 의한 영향을 작게 하면서, 어두운 영역의 시인성(視認性;visibility)을 크게 향상시키고, 밝은 영역에 대해서는, 휘도 저하로 인한 인간의 주관적인 악영향을 저감하면서 시인성도 향상시킬 수 있다고 하는 효과를 얻을 수 있다.Here, the correction amount at the time of performing the tone correction using the mapping curves shown in Figs. 5 and 6 is that when the average luminance value of the local region formed by dividing the input image into blocks is in the middle, that is, the overall luminance tone When in the vicinity of the center of the level, the average luminance value is low, i.e., near the lower limit of the overall luminance gradation level, and when the average luminance value is high, i.e., near the upper limit of the overall luminance gradation level, so as to be smaller. Set it. By this setting, the visibility of the dark areas is greatly improved while the influence of the correction is reduced in the area of the halftone level where the original gradation level was appropriate. It is possible to obtain the effect that the visibility can be improved while reducing the subjective adverse effects.

또, 평균 휘도값이 낮을 때의 보정량의 절대값을 평균 휘도값이 높을 때의 보정량의 절대값보다 크게 하는 편이 보다 바람직하다. 이는, 역광 보정에 적용하는 경우에 특히 유효하며, 특히 낮시간의 하늘의 화상 등의 밝은 영역에 대해, 보다 자연스럽게 보이면서, 어두운 영역에의 보정량을 확보하는 데에 효과적이다.In addition, it is more preferable to make the absolute value of the correction amount when the average luminance value is lower than the absolute value of the correction amount when the average luminance value is high. This is particularly effective when applied to backlight correction, and is particularly effective for securing a correction amount in a dark region while looking more natural with respect to a bright region such as an image of a daytime sky.

또, 본 실시예에 나타내는 방법에서는, 화상을 도 2에 나타내는 바와 같이 복수의 블록의 소영역(국소 영역)으로 구획한 후에 당해 화상의 처리가 행해지며, 또한, 화소 단위 보정량 산출 단계(303)(도 7)에 의해 1 화소마다 독립적으로 보정량이 할당되고, 그 후의 계조 변환 단계(304)(도 7)에 있어서 1 화소마다 독립적으로 계조 보정을 위한 맵핑 커브가 선택되기 때문에, 장소가 다르면, 원래 동일 계조 레벨이더라도, 계조 변환 후에는 다른 계조 레벨로서 출력될 수 있다.In addition, in the method shown in the present embodiment, the image is processed after partitioning the image into small regions (local regions) of a plurality of blocks as shown in FIG. Since the correction amount is independently assigned to each pixel by FIG. 7 and the mapping curve for tonal correction is independently selected for each pixel in the following tone conversion step 304 (FIG. 7), if the locations are different, Even if it is originally the same gradation level, it can be output as another gradation level after gradation conversion.

예컨대, 입력 화상의 히스토그램에 관하여, 도 10에 나타내는 바와 같이, 저휘도 영역(601)과 고휘도 영역(602)이 각각 특정 계조 부근에 집중되어 있는 경우에, 종래의 히스토그램 균등화법을 이용하는 경우에는, 도 11에 나타내는 실선의 분포가 얻어지며, 변환 후의 저휘도 영역의 히스토그램(611)과 고휘도 영역의 히스토그램(612)은 각각 일부의 계조에서 계조 레벨의 상하 관계 역전을 일으키지 않는다. 그러나, 본 실시예에 나타내는 방법을 이용한 경우에는, 도 12에 나타내는 바와 같이, 변환 후의 저휘도 영역의 히스토그램(621)과 고휘도 영역의 히스토그램(622)이 각각 일부의 계조에서 계조 레벨의 상하 관계의 역전을 일으키는 경우가 있을 수 있다.For example, with respect to the histogram of the input image, as shown in FIG. 10, when the low luminance region 601 and the high luminance region 602 are each concentrated in the vicinity of a specific gradation, the conventional histogram equalization method is used. The distribution of the solid line shown in FIG. 11 is obtained, and the histogram 611 of the low luminance region and the histogram 612 of the high luminance region after conversion do not cause the vertical relationship inversion of the gradation level in some gradations, respectively. However, in the case of using the method shown in the present embodiment, as shown in Fig. 12, the histogram 621 of the low luminance region and the histogram 622 of the high luminance region are each one of the upper and lower relations of the gradation levels at some gradations. There may be cases of reversal.

이는, 종래의 1 화면 전체에서 동일 연속으로 계조 반전이 없는 맵핑 커브를 이용하는 방법에서는 장소에 따른 계조의 순서 교체가 없었던 데에 비하여, 국소적인 다이나믹 레인지가 보다 확대되어 있다는 것이 된다. 다시 말해, 화상의 1 화면을 복수의 블록으로 분할한 후에 상기한 일련의 처리를 실행함으로써, 화상의 저휘도 영역, 고휘도 영역에 각각 최적의 맵핑 커브를 사용할 수 있게 되었기 때문에, 화상의 저휘도 영역에 대해서는 고휘도 영역의 계조 특성 열화를 의식하지 않 고서 다이나믹 레인지의 확대를 행할 수 있는 동시에, 화상의 고휘도 영역에 대해서는 저휘도 영역의 계조 특성 열화를 의식하지 않고서 다이나믹 레인지의 확대를 도모할 수 있다. 즉, 역광 보정의 효과를 높일 수 있다. 또한, 그 밖에도, 맵핑 커브 설정의 자유도가 확대되어, 저휘도 영역과 고휘도 영역 양쪽에 절충을 위한 부가적인 처리를 생략할 수 있다.This means that the local dynamic range is further expanded in the conventional method of using a mapping curve without the same gray level inversion over the entire one screen, as compared with the case where there is no change of the order of gray levels depending on the place. In other words, by dividing one screen of an image into a plurality of blocks, the above-described series of processes are executed, so that an optimal mapping curve can be used for the low luminance region and the high luminance region of the image, so that the low luminance region of the image is obtained. In this case, the dynamic range can be expanded without being aware of the deterioration of the gradation characteristics of the high luminance region, and the dynamic range can be expanded without being aware of the deterioration of the gradation characteristics of the low luminance region for the high luminance region of the image. That is, the effect of backlight correction can be enhanced. In addition, the degree of freedom in setting the mapping curve is increased, so that additional processing for compromise in both the low luminance region and the high luminance region can be omitted.

이것은 또한, 본 실시예에 나타내는 방법이, 종래의 히스토그램 균등화법을 사용한 화면 전체의 역광 보정 방법을 단순히 블록 단위의 역광 보정 처리로 변경한 것만은 아니라는 점도 의미하고 있다. 즉, 화면 전체의 히스토그램을 바탕으로 하여 화면 내의 역광 상태를 검출해 화면 내의 역광 상태를 보정하는 종래 기술을 단순히 블록 단위로 변경하면, 블록 내의 역광 상태를 검출하여 블록 내의 역광 상태를 보정하는 것이 된다. 그러나, 본 실시예에 따른 장치가 채용하는 전술한 방식에서는, 블록 내의 역광 상태를 검출하는 것이 아니며, 또한 블록 내의 역광 상태를 보정하는 것도 아니다. 본 방식은, 블록 내의 휘도 평균값을 바탕으로 하여 복수 블록 간의 역광 상태를 보정하는 것이며, 이 때문에, 히스토그램을 작성하지 않고도 결과적으로 화면 전체의 역광 상태를 보정할 수 있는 것이다.This also means that the method shown in the present embodiment does not merely change the backlight compensation method of the entire screen using the conventional histogram equalization method to the backlight compensation process in units of blocks. In other words, if the conventional technique of detecting the backlight state in the screen and correcting the backlight state in the screen based on the histogram of the entire screen is simply changed in units of blocks, the backlight state in the block is detected to correct the backlight state in the block. . However, in the above-described manner employed by the apparatus according to the present embodiment, the backlight state in the block is not detected and the backlight state in the block is not corrected. This method corrects the backlight state between a plurality of blocks on the basis of the average luminance value in the block. Thus, the backlight backlight state of the entire screen can be corrected without creating a histogram.

또, 본 실시예에 나타내는 방법에 따르면, 국소 영역의 정보를 순차 사용하는 것만으로 화면 전체의 보정을 할 수 있기 때문에, 1 화면 전체의 전(前) 처리가 끝날 때까지 기다릴 필요가 없으며, 회로에 있어서의 프레임 메모리를 필요로 하지 않고, 블록이 포함되는 정도의 라인 메모리 또는 그 2배 내지 3배 정도의 라인 메모리만을 이용하는 것만으로, 프레임 지연 없이 실시간 처리를 할 수 있다.In addition, according to the method shown in the present embodiment, since the entire screen can be corrected simply by using the information of the local area one by one, there is no need to wait until the entire processing of one screen is completed. It is possible to perform real-time processing without a frame delay by only using a line memory of the extent to which a block is included or a line memory of about 2 to 3 times that of a block is contained without requiring a frame memory in.

이상과 같이, 화면 내를 복수의 블록으로 분할하여, 블록으로 분할한 국소 영역의 평균 휘도 레벨이 낮을 때에는 국소 영역의 휘도 보정에 있어서의 보정량을 크게 하고, 평균 휘도 레벨이 중간 정도일 때에는 국소 영역의 휘도 보정에 있어서의 보정량을 작게 하도록 하고 있기 때문에, 원래 계조 레벨이 적절했던 중간조 레벨의 영역에서는 보정에 의한 영향을 작게 하면서, 어두운 영역의 시인성을 향상시킬 수 있다.As described above, the screen is divided into a plurality of blocks, and when the average luminance level of the local region divided into blocks is low, the amount of correction in luminance correction of the local region is increased. Since the correction amount in the luminance correction is made small, the visibility of the dark region can be improved while reducing the effect of the correction in the region of the halftone level where the original gradation level was appropriate.

또, 화면 내를 복수의 블록으로 분할하여, 블록으로 분할한 국소 영역의 평균 휘도 레벨이 낮을 때에는 국소 영역의 휘도 보정에 있어서의 보정량을 크게 하고, 평균 휘도 레벨이 중간 정도일 때에는 국소 영역의 휘도 보정에 있어서의 보정량을 작게 하며, 평균 휘도 레벨이 높을 때에는 국소 영역의 휘도 보정에 있어서의 보정량을 크게 하도록 하고 있기 때문에, 원래 계조 레벨이 적절했던 중간조 레벨의 영역에서는 보정에 의한 영향을 작게 하면서, 어두운 영역과 밝은 영역의 시인성을 향상시킬 수 있다.In addition, the screen is divided into a plurality of blocks, and when the average luminance level of the local region divided into blocks is low, the amount of correction in the luminance correction of the local region is increased. When the average luminance level is medium, the luminance correction of the local region is made. Since the correction amount in the region is small and the average luminance level is high, the correction amount in the luminance correction of the local region is increased, so that the effect of the correction is small in the region of the halftone level where the original gradation level was appropriate. The visibility of dark areas and bright areas can be improved.

혹은, 화면 내를 복수의 블록으로 분할하여, 블록으로 분할한 국소 영역의 평균 휘도 레벨이 낮을 때에는 국소 영역의 휘도 보정에 있어서의 보정량을 크게 하고, 평균 휘도 레벨이 중간 정도일 때에는 국소 영역의 휘도 보정에 있어서의 보정량을 작게 하며, 평균 휘도 레벨이 높을 때에는 국소 영역의 휘도 보정에 있어서의 보정량을 중간 정도로 설정하도록 하여도 좋다. 이 때에는, 원래 계조 레벨이 적절했던 중간조 레벨의 영역에서는 보정에 의한 영향을 작게 하면서, 어두운 영역의 시인성을 크게 향상시키고, 밝은 영역에 대해서는 휘도 저하로 인한 인간의 주 관적인 악영향을 저감하면서 시인성도 향상시킬 수 있다고 하는 이점이 있다.Alternatively, the screen is divided into a plurality of blocks, and when the average luminance level of the local region divided into blocks is low, the amount of correction in the luminance correction of the local region is increased, and when the average luminance level is medium, the luminance correction of the local region is medium. In the case where the correction amount is small and the average luminance level is high, the correction amount in the luminance correction of the local region may be set to about medium. At this time, in the area of the halftone level where the original gradation level was appropriate, the effect of correction is reduced, the visibility of the dark area is greatly improved, and in the bright area, the visibility is reduced while the subjective adverse effect of the human due to the decrease in brightness is reduced. There is an advantage that it can also be improved.

(실시예 2)(Example 2)

본 실시예의 특징점은, 국소 영역의 평균 휘도 레벨로부터 보정 후의 휘도 레벨로의 변화량을, 국소 영역의 평균 색차 벡터에 의해서도 제어하는 점에 있다. 또한, 본 실시예는, 국소 영역의 평균 휘도 레벨로부터 보정 후의 휘도 레벨로의 변화량을, 국소 영역의 평균 색차 벡터가 대략 피부색(skin color) 부근일 때에 작아지도록 제어한다는 점에도 그 특징점을 갖는다. 이하, 본 실시예의 특징점을 첨부 도면에 기초하여 상술한다.The characteristic point of this embodiment is that the amount of change from the average luminance level of the local area to the luminance level after correction is also controlled by the average color difference vector of the local area. The present embodiment also has a feature point in that the amount of change from the average luminance level of the local area to the luminance level after correction is controlled so as to be small when the average color difference vector of the local area is approximately around the skin color. Hereinafter, the characteristic point of this embodiment is explained in full detail based on an accompanying drawing.

도 8은 본 실시예에 따른 계조 보정 장치의 블록 구성을 나타내는 도면이다. 도 8의 구성이 도 1의 구성과 상위한 점은, 도 8에 있어서의 각 부재(109, 110)뿐이며, 그 밖의 구성 요소는 도 1 중의 대응하는 구성 요소와 동일하다.8 is a block diagram showing the block configuration of the gradation correction device according to the present embodiment. The difference of the structure of FIG. 8 from the structure of FIG. 1 is only each member 109 and 110 in FIG. 8, The other components are the same as the corresponding component in FIG.

도 8에 있어서, 계조 보정 장치에 입력된 화상 데이터는 보정량 산출부(101A)와 기억부(106)에 입력된다. 보정량 산출부(101A)에서는 블록 타이밍 발생부(102)에 의해 블록 단위의 처리가 행해진다. 우선, 평균 휘도 산출부(103)에 있어서, 화상 데이터로부터 블록 단위의 평균 휘도값이 구해진다. 그와 병행하여, 평균 색 산출부(109)에 있어서 화상 데이터로부터 블록 단위의 평균 색이 구해진다. 다음에, 블록 단위 보정량 산출부(110)에 있어서 블록 단위로의, 평균 휘도값과 평균 색으로부터, 블록 단위의 보정량이 구해진다. 또한, 화소 단위 보정량 산출부(105)에 있어서 블록 단위의 보정량으로부터 화소 단위의 보정량이 구해진다. 계조 변환부(107)에 있어서, 화소 단위 보정량 산출부(105)로부터의 보정량과 계조 변환 테이블(108)을 이용하여, 기억부(106)로부터 판독한 화상 데이터에 대하여 계조 변환이 행해진다.In Fig. 8, the image data input to the gradation correction device is input to the correction amount calculation unit 101A and the storage unit 106. In the correction amount calculation unit 101A, the block timing generation unit 102 performs block-by-block processing. First, in the average luminance calculation unit 103, an average luminance value in units of blocks is obtained from the image data. In parallel, the average color calculation unit 109 obtains an average color in units of blocks from the image data. Next, in the block unit correction amount calculation unit 110, a block unit correction amount is obtained from the average luminance value and the average color in the unit of blocks. Further, in the pixel unit correction amount calculating unit 105, the pixel unit correction amount is obtained from the block unit correction amount. In the tone conversion unit 107, the tone conversion is performed on the image data read out from the storage unit 106 using the correction amount from the pixel unit correction amount calculating unit 105 and the tone conversion table 108.

다음에, 각 처리 블록의 상세한 동작에 대하여 기재한다. 우선, 기억부(106)에 대하여 기재한다. 보정량 산출부(101A) 전체로는, 1∼수 블록 라인 만큼의 지연이 발생하기 때문에, 통상, 기억부(106)는 동등한 1∼수 블록 라인의 지연을 발생하는 라인 메모리로 구성된다. 만일 보정량 산출부(101A)에서 프레임 단위의 지연이 발생하는 경우에는, 기억부(106)도 동등한 프레임 단위의 지연을 발생하는 프레임 메모리로 구성된다.Next, the detailed operation of each processing block will be described. First, the storage unit 106 will be described. Since the delay amount by one or several block lines occurs in the correction amount calculation unit 101A as a whole, the storage unit 106 is usually constituted by a line memory which generates a delay of equivalent one to several block lines. If a delay in units of frames occurs in the correction amount calculation unit 101A, the storage unit 106 also includes a frame memory for generating delays in units of equivalent frames.

한편, 보정량 산출부(101A)에 입력된 화상 데이터는, 블록 타이밍 발생부(102)에서 발생된 블록 번호마다, 평균 휘도 산출부(103)에 있어서 블록 내 평균 휘도가 구해진다. 마찬가지로, 평균 색 산출부(109)에 있어서, 블록 내 평균 색이 구해진다. 만일 평균 휘도 산출부(103)에 화상 데이터가 입력될 때에, 화상 데이터 형식이 휘도·색차 형식으로 되어 있지 않은 경우에는, 평균 휘도와 평균 색을 구하기 전에 휘도·색차 형식으로 포맷 변환을 행한다. 만일 RGB 형식 그대로 사용하는 경우에는, RGB의 평균값을 의사적으로 휘도값으로서 이용하여도 좋지만, 이하의 기재에서는 미리 휘도·색차 형식으로 화상 데이터가 입력된 것으로 하여 취급하기로 한다.On the other hand, for the image data input to the correction amount calculation unit 101A, the average luminance within the block is calculated by the average luminance calculation unit 103 for each block number generated by the block timing generation unit 102. Similarly, in the average color calculator 109, the average color in the block is obtained. If the image data format is not in the luminance / color difference format when the image data is input to the average luminance calculating section 103, format conversion is performed in the luminance / color difference format before obtaining the average luminance and the average color. If the RGB format is used as it is, the average value of RGB may be used pseudo-wise as the luminance value, but in the following description, it is assumed that image data has been input in the luminance / color difference format in advance.

여기서, 블록 타이밍 발생부(102)에서 발생되는 블록에 대해, 도 2를 이용하여 설명한다. 도 2에 있어서, 참조 부호 501이 1 화면 전체를 나타내고, 경계 선(502)에 의해 1 화면 전체(501)가 복수의 블록으로 분할되어 있다. 만일 역광 보정을 행할 때에는, 예컨대 입력 화상에 상당히 밝은 영역과 어두운 영역이 존재하고 있었던 경우, 화상 내의 밝은 영역에 포함되는 블록(503) 및 화상 내의 어두운 영역에 포함되는 블록(504)이 존재하게 된다.Here, a block generated by the block timing generator 102 will be described with reference to FIG. 2. In Fig. 2, reference numeral 501 denotes an entire screen, and the entirety of one screen 501 is divided into a plurality of blocks by the boundary line 502. In FIG. When performing backlight correction, for example, when there are considerably bright areas and dark areas in the input image, there are blocks 503 included in the bright areas in the image and blocks 504 included in the dark areas in the image. .

평균 휘도 산출부(103)는, 입력된 화상 데이터의 휘도값을 동일 블록 영역 내에서 누적 가산해 가서, 마지막에 블록 내의 화소수로 나눔으로써, 블록 내의 평균 휘도를 산출한다. 여기서, 나눗셈의 간략화를 위해, 통상, 블록 크기로는 세로·가로 모두 각각 2의 멱승의 화소수를 이용하는 경우가 많다. 도 2에 있어서의 블록(503)은 밝은 영역이기 때문에, 평균 휘도 산출부(103)로부터 출력되는 평균 휘도값은 높은 값으로 된다. 또한, 도 2에 있어서의 블록(504)은 어두운 영역이기 때문에, 평균 휘도 산출부(103)로부터 출력되는 평균 휘도값은 낮은 값으로 된다.The average brightness calculator 103 calculates the average brightness in the block by accumulating and adding the brightness value of the input image data in the same block area and finally dividing by the number of pixels in the block. Here, for the sake of simplification of division, usually, the number of pixels of power of 2 in both vertical and horizontal directions is often used as the block size. Since the block 503 in FIG. 2 is a bright area, the average luminance value output from the average luminance calculator 103 becomes a high value. In addition, since the block 504 in FIG. 2 is a dark area, the average luminance value output from the average luminance calculation part 103 becomes a low value.

평균 색 산출부(109)는 입력된 화상 데이터의 색을 동일 블록 영역 내에서 누적 가산해 가서, 마지막에 블록 내의 화소수로 나눔으로써, 블록 내의 평균 색을 산출한다. 여기서, 나눗셈의 간략화를 위해, 즉, 블록 크기로는 세로·가로 모두 각각 2의 멱승의 화소수를 이용하는 경우가 많다. 평균 색을 구하기 위한 색의 데이터로는, 통상 휘도·색차 형식 중의 색차를 이용한다. 휘도·색차 형식이, 예컨대 Y, Cb, Cr인 경우에는, Cb와 Cr의 2 성분을 이용하여 Cb와 Cr 각각에 대한 평균값을 구하고, 구해진 Cb의 평균값과 Cr의 평균값의 2 성분으로 이루어지는 색 벡터를 출력한다. 단, 이하에서는, 이 색 벡터를 가리켜, 간단히 평균 색이라고 말하기로 한다.The average color calculator 109 calculates the average color in the block by accumulating and adding the color of the input image data in the same block area and finally dividing by the number of pixels in the block. Here, for the sake of simplicity of division, that is, the number of pixels of powers of 2 in both vertical and horizontal directions is often used as the block size. As color data for obtaining the average color, the color difference in the luminance / color difference format is usually used. When the luminance and color difference format is, for example, Y, Cb and Cr, the average value for each of Cb and Cr is obtained using two components of Cb and Cr, and a color vector composed of two components of the average value of Cb and the average value of Cr obtained. Outputs However, hereinafter, this color vector will be referred to simply as the average color.

여기서, 색의 정보로서, 피부색 등의 특정한 색의 성분밖에 이용하지 않는 경우에는, 그 특정 색과 블록 내의 평균 색과의 차분의 스칼라량을 미리 구함으로써, 색 벡터 대신에 특정 색 정도(color degree)의 스칼라값으로서 출력하여도 좋다. 또, 블록 내의 평균 색을 구하고 나서 차분을 구하는 것이 아니라, 보다 세밀하게, 예컨대 화소 단위로 특정 색과 화소의 색과의 차분을 구해 가서, 마지막에 차분값의 평균을 구하고, 그 차분값을 특정 색 정도의 스칼라값으로서 출력하여도 좋다. 특정 색 정도의 스칼라값도, 상기 색 벡터와 마찬가지로, 이하에서는 간단히 평균 색이라고 말하기로 한다.Here, when only the components of a specific color, such as skin color, are used as the color information, the scalar amount of the difference between the specific color and the average color in the block is obtained in advance, so that a specific color degree is used instead of the color vector. May be output as a scalar value. In addition, the difference is not determined after obtaining the average color in the block, but more precisely, for example, the difference between the specific color and the color of the pixel is determined in pixel units, and finally, the average of the difference value is determined to determine the difference value. You may output as a scalar value of a color grade. A scalar value of a specific color degree is also referred to simply as an average color in the following similar to the color vector.

여기서는, 평균 색을 구하기 위해 색차만을 이용하였지만, 예컨대 밝은 피부색만을 대상으로 하는 경우 등에서, 색차와 휘도의 양쪽을 이용하여 휘도 정보도 포함하는 평균 색을 구하여도 좋다. 후단(後段)의 블록 단위 보정량 산출부(110)에 있어서, 휘도로부터 구한 평균 휘도와 색차로부터 구한 평균 색의 양쪽 정보를 이용하여 보정량을 산출하기 때문에, 블록 단위이면, 블록 단위 보정량 산출부(110)에 있어서 휘도 정보와 색차 정보의 합성을 하여도 좋지만, 미리 화소 단위로 휘도 정보와 색차 정보의 합성을 하는 편이 좋은 경우에는, 평균 색 산출부(109)에 있어서 색차와 휘도 양쪽을 이용하여 휘도 정보도 포함하는 평균 색을 미리 구해 놓게 된다.Here, only the color difference is used to obtain the average color. However, in the case where only a light skin color is used, for example, the average color including luminance information may also be obtained using both the color difference and the luminance. Since the correction unit calculates the correction amount using both information of the average luminance obtained from the luminance and the average color obtained from the color difference, the block unit correction amount calculating unit 110 at the later stage. ), The luminance information and the color difference information may be synthesized. However, when it is better to combine the luminance information and the color difference information in pixel units in advance, the average color calculator 109 uses both the color difference and the luminance to obtain luminance. The average color, which also contains information, is obtained in advance.

평균 휘도 산출부(103)에서 구해진 블록 내의 평균 휘도값과 평균 색 산출부(109)에서 구해진 평균 색은 블록 단위 보정량 산출부(110)에 입력된다. 블록 단위 보정량 산출부(110)에서는 블록 타이밍 발생부(102)에서 지정되는 타이밍에 있어서 블록 단위로의 보정량이 산출된다. 블록 단위 보정량 산출부(110)에 입력된 블록 내 평균 휘도값이 낮은 경우에는, 도 3에 나타내는 바와 같이, 블록 단위 보정량 산출부(110)로부터 출력하는 보정량을 크게 한다. 반대로, 블록 단위 보정량 산출부(110)에 입력된 블록 내 평균 휘도값이 높은 경우에는, 도 3에 나타내는 바와 같이, 블록 단위 보정량 산출부(110)로부터 출력하는 보정량을 작게 한다. 여기서, 도 3에는, 입력된 블록 내 평균 휘도값에 따라 보정량을 제어하기 위한 산출식이 직선인 경우를 도시하였지만, 이 직선이 곡선이어도 상관없다. 그러나, 만일 곡선의 제어 곡선을 이용한 경우에는, 처리량이 증대되기 때문에, 통상은 직선 또는 직선의 조합에 의해 제어를 행한다. 또한, 여기서 보정의 방향을 반대로 설정한 경우에는, 후술하는 보정 커브도 역전시킬 필요가 있다.The average luminance value in the block determined by the average luminance calculator 103 and the average color obtained by the average color calculator 109 are input to the block unit correction amount calculator 110. The block unit correction amount calculation unit 110 calculates a correction amount in units of blocks at the timing specified by the block timing generation unit 102. When the intra-block average luminance value input to the block unit correction amount calculation unit 110 is low, as shown in FIG. 3, the correction amount output from the block unit correction amount calculation unit 110 is increased. On the contrary, when the average intra-block luminance value input to the block unit correction amount calculation unit 110 is high, as shown in FIG. 3, the correction amount output from the block unit correction amount calculation unit 110 is reduced. Here, although FIG. 3 shows the case where the calculation formula for controlling the correction amount according to the inputted average luminance value in the block is a straight line, this straight line may be a curve. However, if the control curve of the curve is used, since the throughput is increased, the control is usually performed by a straight line or a combination of straight lines. In addition, when the direction of correction is set in reverse here, it is necessary to also reverse the correction curve mentioned later.

한편, 평균 색 산출부(109)로부터 입력된 평균 색이 대략 피부색 부근인 경우에는, 휘도 평균값의 경우와 마찬가지로, 블록 단위 보정량 산출부(110)로부터 출력하는 보정량을 작게 한다. 반대로, 평균 색 산출부(109)로부터 입력된 평균 색이 피부색으로부터 색도도(色度圖) 상에서 떨어져 있는 경우에는, 블록 단위 보정량 산출부(110)로부터 출력하는 보정량을 크게 한다. 이 산출식도, 직선 또는 직선의 조합이어도, 곡선이어도 상관없지만, 만일 곡선의 제어 곡선을 이용한 경우에는 처리량이 증대되기 때문에, 통상은 직선 또는 직선의 조합에 의해 제어를 행한다.On the other hand, when the average color input from the average color calculator 109 is about skin color, the correction amount output from the block unit correction amount calculator 110 is made small as in the case of the luminance average value. On the contrary, when the average color input from the average color calculator 109 is separated from the skin color on the chromaticity diagram, the correction amount output from the block unit correction amount calculator 110 is increased. This calculation formula may also be a straight line, a combination of straight lines, or a curve, but since the throughput increases when a control curve of a curve is used, the control is usually performed by a straight line or a combination of straight lines.

블록 단위 보정량 산출부(110)로부터 출력된 블록 단위의 보정량은 화소 단위 보정량 산출부(105)에 입력된다. 화소 단위 보정량 산출부(105)에서는, 블록 단위 보정량 산출부(110)로부터 입력된 블록 단위의 보정량과, 블록 타이밍 발생부(102)로부터 입력된 블록 번호 및 블록 내 오프셋 위치에 의해, 화소 단위의 보정량을 산출한다. 화소마다의 보정량을 구하기 위한 보간의 형태를 도 4에 나타낸다. 참조 부호 221은 주목 화소 위치(225)의 좌측 상단에 중심(重心)이 위치하는 블록의 보정량이다. 마찬가지로, 참조 부호 222는 주목 화소 위치(225)의 우측 상단에, 참조 부호 223은 주목 화소 위치(225)의 좌측 하단에, 참조 부호 224는 주목 화소 위치(225)의 우측 하단에, 각각 중심이 위치하는 블록의 보정량이다. 주목 화소 위치(225)에 있어서의 보정량(226)을 구할 때에는, 주위 4개의 블록의 보정량으로부터, 블록 타이밍 발생부(102)로부터 입력되는 블록 내 오프셋 위치를 이용하여 선형 보간에 의해 구해진다. 여기서는 단순한 선형 보간의 예를 나타내었지만, 스플라인 보간이나 다차 다항식 보간이나, 그 밖의 곡선을 이용한 보간 방법을 이용하여도 좋다. 또, 여기서 블록 단위로 표현하였지만, 블록 단위에 기초한 블록 크기의 정수배, 정수분의 1 배, 또는 정수분의 정수배를 하나의 단위로 하여도 좋다. 마찬가지로, 화소 단위로 표현한 점도, 화소 단위에 기초한 화소 크기의 정수배, 정수분의 1 배, 또는 정수분의 정수배를 하나의 단위로 하여도 좋다.The block unit correction amount output from the block unit correction amount calculator 110 is input to the pixel unit correction amount calculator 105. In the pixel unit correction amount calculation unit 105, the block unit correction amount calculation unit 110 inputs a block unit correction amount, a block number input from the block timing generation unit 102, and an intra-block offset position. Calculate the correction amount. 4 shows a form of interpolation for obtaining the correction amount for each pixel. Reference numeral 221 denotes a correction amount of the block where the center of gravity is located at the upper left of the pixel position 225 of interest. Similarly, reference numeral 222 is at the upper right of the pixel of interest 225, reference numeral 223 is at the lower left of pixel of interest 225, and reference 224 is at the lower right of pixel of interest 225, respectively. The correction amount of the located block. When obtaining the correction amount 226 at the pixel position 225 of interest, it is calculated | required by linear interpolation using the in-block offset position input from the block timing generation part 102 from the correction amount of four surrounding blocks. Although examples of simple linear interpolation are shown here, spline interpolation, multi-order polynomial interpolation, or other interpolation methods using curves may be used. In addition, although expressed in block units here, one unit may be an integer multiple of a block size, an integer multiple of an integer number, or an integer multiple of an integer number based on a block unit. Similarly, the viscosity expressed in pixel units, an integer multiple of the pixel size based on the pixel unit, an integer multiple of the integer portion, or an integer multiple of the integer portion may be one unit.

화소 단위 보정량 산출부(105)로부터 출력된 화소 단위의 보정량은 계조 변환부(107)에 입력된다. 계조 변환부(107)에서는 화소 단위의 보정량과 기억부(106)로부터 판독된 화소의 휘도 레벨을, 미리 준비해 둔 계조 변환 테이블부(108)의 어드레스로서 판독하는 것에 의해, 보정 후의 데이터를 얻을 수 있다. 계조 변환 테이블부(108)에는, 보정량이 높은 경우에는, 예컨대 도 5에 나타내는 저휘도부의 계조성을 높여 저휘도부의 다이나믹 레인지를 넓히는 변환 커브가 기억되고, 반대로 보정량이 낮은 경우에는, 예컨대 도 6에 나타내는 고휘도부의 계조성을 높여 고휘도부의 다이나믹 레인지를 넓히는 변환 커브가 기억되어 있다. 여기서, 도 5 및 도 6에 있어서는 곡선의 계조 변환 커브를 나타내었지만, 연산을 간략화하여 회로 규모나 소비 전력을 억제하거나, 또는 처리 속도 향상을 위해서, 직선을 조합시킨 것을 이용하여도 좋다. 또한, 여기서는 변환 테이블을 미리 준비해 두는 예를 나타내었지만, 순차 계산에 의해 변환 테이블을 구하도록 구성하여도 좋고, 또한 변환 테이블을 이용하지 않고서, 보정량으로부터 직접 연산에 의해 보정을 행하여도 좋다. 또한, 도 3에 나타내는 보정량의 그래프가 정부(正負) 역전되어 있는 경우에는, 도 5와 도 6의 특성도 역전시킴으로써 등가로 된다.The correction amount in units of pixels output from the pixel unit correction amount calculating unit 105 is input to the gray scale conversion unit 107. The gray scale conversion unit 107 reads the correction amount in units of pixels and the luminance level of the pixel read out from the storage unit 106 as an address of the gray scale conversion table 108 prepared in advance, thereby obtaining data after correction. have. In the gradation conversion table 108, when the correction amount is high, for example, a conversion curve for increasing the gradation of the low luminance part shown in FIG. 5 to broaden the dynamic range of the low luminance part is stored. The conversion curve which raises the tonality of the high luminance part to show and widens the dynamic range of the high luminance part is memorize | stored. Here, although the gray scale conversion curve of the curve is shown in Figs. 5 and 6, a combination of straight lines may be used to simplify the calculation to suppress the circuit scale and power consumption, or to improve the processing speed. In addition, although the example which prepares a conversion table beforehand was shown here, you may be comprised so that a conversion table may be calculated | required by sequential calculation, and you may correct | amend by direct calculation directly from a correction amount, without using a conversion table. In addition, when the graph of the correction amount shown in FIG. 3 is positively reversed, it becomes equivalent by also inverting the characteristic of FIG. 5 and FIG.

도 9는 본 실시예에 따른 계조 보정 처리의 원리를 나타내는 흐름도이다. 이하의 단계(305) 및 단계(302)만이 도 7의 흐름도에 있어서의 처리 과정과 상이하다. 즉, 평균 휘도 및 평균 색 산출 단계(305)에 있어서, 입력된 화상에 대하여 블록 단위로 평균 휘도값과 평균 색을 산출하고, 블록 단위 보정량 산출 단계(302)에 있어서, 평균 휘도값과 평균 색으로부터 블록 단위의 보정량을 산출하며, 화소 단위 보정량 산출 단계(303)에 있어서, 입력된 블록 단위의 보정량으로부터 화소 단위의 보정량을 산출하고, 계조 변환 단계(304)에 있어서, 입력된 화소 단위의 보정량을 이용하여 계조 변환을 행한다.9 is a flowchart showing the principle of gradation correction processing according to the present embodiment. Only the following steps 305 and 302 are different from the processing in the flowchart of FIG. That is, in the average brightness and average color calculation step 305, the average brightness value and the average color are calculated in units of blocks with respect to the input image, and in the block unit correction amount calculation step 302, the average brightness value and the average color are calculated. From the correction amount in the input block unit, and in the gradation conversion step 304, the correction amount in the input pixel unit is calculated. Gradation conversion is performed using.

블록 단위의 보정량은, 도 3에 나타내는 바와 같이 입력된 화상의 블록 단위의 평균 휘도값에 의해 제어되며, 또한, 마찬가지로 당해 블록 단위의 평균 색에 의해서도 제어된다. 그리고, 블록 단위의 보정량으로부터 화소 단위의 보정량을 산출할 때에는, 도 4에 나타내는 선형 보간이 이용된다.The correction amount in units of blocks is controlled by the average luminance value in units of blocks of the input image as shown in FIG. 3, and is also controlled by the average color in units of the blocks as well. When the correction amount in units of pixels is calculated from the correction amount in units of blocks, linear interpolation shown in FIG. 4 is used.

계조 변환 단계(304)에 있어서, 계조 변환을 행할 때에는, 예컨대 도 5나 도 6에 나타내는 바와 같은 맵핑 커브가 이용된다. 이 때, 입력 화상을 복수의 블록으로 분할하여 이루어지는 각각의 국소 영역의 평균 휘도값이 도 2에 나타내는 블록(504)과 같이 낮은 경우에는, 도 5에 나타내는 맵핑 커브가 이용되고, 임의의 화소 단위의 보정량이 당해 화소가 속하는 블록의 평균 휘도값과 같을 때에는, 그 블록의 평균 휘도값(201)은 보다 높은 계조 레벨을 갖는 휘도값(202)의 레벨로 변환된다. 마찬가지로, 평균 휘도값 부근의 계조 레벨도 각각 보다 높은 계조 레벨로 변환된다.In the gradation conversion step 304, when performing gradation conversion, for example, a mapping curve as shown in Figs. 5 and 6 is used. At this time, when the average luminance value of each local area formed by dividing the input image into a plurality of blocks is as low as the block 504 shown in FIG. 2, the mapping curve shown in FIG. 5 is used, and an arbitrary pixel unit. When the correction amount of is equal to the average luminance value of the block to which the pixel belongs, the average luminance value 201 of the block is converted to the level of the luminance value 202 having a higher gradation level. Similarly, the gradation levels near the average luminance value are also converted to higher gradation levels, respectively.

종래의 특허문헌 3에 개시된 방법에서는, 블록 내 평균 휘도 레벨이 보존되기 때문에, 화상의 저휘도 영역의 평균 휘도도 그것과 더불어 보존되어, 화상의 저휘도 영역 전체로서는 계조 변환 후에도 어두운 상태 그대로였다.In the method disclosed in the conventional patent document 3, since the average luminance level in a block is preserve | saved, the average luminance of the low luminance area | region of an image is also preserve | saved, and as a whole, the low luminance area | region of an image remained dark even after gradation conversion.

이에 반하여, 본 실시예에 나타내는 방법에서는, 블록 내 평균 휘도 레벨도 변화시키기 때문에, 화상의 저휘도 영역 전체로서도 밝게 변환되어, 직감적인 어두운 부분의 인식성을 향상시킬 수 있다. 즉, 역광 보정의 효과를 높일 수 있다.On the other hand, in the method shown in the present embodiment, the average luminance level in the block is also changed, so that the whole low luminance region of the image is also brightly converted, thereby improving the recognition of intuitive dark portions. That is, the effect of backlight correction can be enhanced.

반대로, 입력 화상을 블록으로 분할하여 이루어지는 국소 영역의 평균 휘도값이 도 2에 나타내는 블록(503)과 같이 비교적 높은 경우에도, 도 6에 나타내는 맵핑 커브가 이용되며, 블록의 평균 휘도값(203)은 당해 레벨보다 낮은 계조 레벨을 갖는 휘도값(204)의 레벨로 변환된다. 마찬가지로, 평균 휘도값 부근의 계조 레벨도 각각 보다 낮은 계조 레벨로 변환된다.On the contrary, even when the average luminance value of the local region formed by dividing the input image into blocks is relatively high as in block 503 shown in FIG. 2, the mapping curve shown in FIG. 6 is used, and the average luminance value 203 of the block is used. Is converted to the level of the luminance value 204 having a gradation level lower than that level. Similarly, the gradation levels near the average luminance value are also converted to lower gradation levels, respectively.

종래의 특허문헌 3에 나타내는 방법에서는, 블록 내 평균 휘도 레벨이 보존되기 때문에, 화상의 고휘도 영역의 평균 휘도도 그것과 더불어 보존되어, 화상의 고휘도 영역 전체로서는 계조 변환 후에도 밝은 상태 그대로였다.In the method described in the conventional patent document 3, since the average luminance level in a block is preserve | saved, the average luminance of the high luminance area | region of an image is also preserve | saved with it, and as a whole the high luminance area | region of an image remained bright even after gradation conversion.

한편, 본 실시예에 나타내는 방법에서는, 블록 내 평균 휘도 레벨도 변화시키기 때문에, 화상의 고휘도 영역 전체로서도 어둡게 변환되어, 직감적인 밝은 부분의 인식성을 향상시킬 수 있다. 즉, 역광 보정의 효과를 높일 수 있다.On the other hand, in the method shown in the present embodiment, the average luminance level in the block is also changed, so that the entire high luminance region of the image is also darkened, thereby improving the recognition of the intuitively bright portions. That is, the effect of backlight correction can be enhanced.

여기서, 도 5 및 도 6에 나타내는 맵핑 커브를 이용하여 보정을 행할 때의 보정량은, 입력 화상을 블록으로 분할한 영역의 평균 휘도값이 중간 정도에 있을 때, 다시 말해, 전체 휘도 계조 레벨의 중앙 부근에 있을 때에는, 평균 휘도값이 낮을 때, 즉 전체 휘도 계조 레벨의 하한 부근에 있을 때 및 평균 휘도값이 높을 때, 즉 전체 휘도 계조 레벨의 상한 부근에 있을 때와 비교하여 작아지도록 설정한다. 이에 따라, 원래 계조 레벨이 적절했던 중간조 레벨의 영역에서는 보정에 의한 영향을 작게 하면서, 어두운 영역의 시인성을 크게 향상시키고, 밝은 영역에 대해서는 휘도 저하로 인한 인간의 주관적인 악영향을 저감하면서 시인성도 향상시킬 수 있다고 하는 효과가 있다.Here, the correction amount at the time of performing correction using the mapping curve shown in FIG. 5 and FIG. 6 is the mean when the average luminance value of the area | region which divided the input image into blocks is about the middle, ie, the center of all luminance gradation levels. In the vicinity, the average luminance value is set to be smaller than when the average luminance value is low, i.e., near the lower limit of the entire luminance gradation level, and when the average luminance value is high, ie, when the average luminance value is near the upper limit of the overall luminance gradation level. As a result, in the region of the halftone level where the original gradation level was appropriate, the effect of correction is made small while the visibility of the dark region is greatly improved, and the visibility is also improved while reducing the subjective adverse effects of human beings due to the decrease in luminance in the bright region. It is said to be able to do it.

또한, 평균 휘도값이 낮을 때의 보정량의 절대값을, 평균 휘도값이 높을 때의 보정량의 절대값보다 크게 설정하는 편이 보다 바람직하다. 이것은 역광 보정에 적용하는 경우에 특히 유효하며, 특히 낮시간의 하늘의 화상 등의 밝은 영역에 대하여, 보다 자연스럽게 보이면서, 어두운 영역에의 보정량을 확보하는 데에 효과 적이다.Further, it is more preferable to set the absolute value of the correction amount when the average luminance value is lower than the absolute value of the correction amount when the average luminance value is high. This is particularly effective when applied to backlight correction, and is particularly effective for securing a correction amount in a dark region while looking more natural with respect to a bright region such as an image of a daytime sky.

또, 본 실시예에 나타내는 방법은, 화상을 도 2에 나타내는 바와 같이 복수의 블록의 소영역으로 구획하여 처리를 행하고, 또한, 화소 단위 보정량 산출 단계(303)에 의해서 1 화소마다 독립적으로 보정량이 할당되고, 그 후의 계조 변환 단계(304)에 있어서 1 화소마다 독립적으로 계조 보정을 위한 맵핑 커브가 선택되기 때문에, 장소가 다르면, 원래 같은 계조 레벨이더라도, 계조 변환 후에는 다른 계조 레벨로서 출력될 수 있다.In addition, the method shown in this embodiment divides an image into small areas of a plurality of blocks, as shown in Fig. 2, and performs the processing. Further, the correction amount is calculated independently for each pixel by the pixel unit correction amount calculation step 303. Since the mapping curve for gradation correction is selected for each pixel independently in the subsequent gradation conversion step 304 in the subsequent gradation conversion step 304, even if the location is different, even if it is the same gradation level originally, it can be output as another gradation level after gradation conversion. have.

예컨대, 입력 화상의 히스토그램이, 도 10에 나타내는 바와 같이 저휘도 영역과 고휘도 영역이 각각 특정 계조 부근에 집중되어 있는 경우에, 종래의 히스토그램 균등화법을 이용한 경우에는, 도 11에 나타내는 실선과 같은 분포로 되고, 변환 후의 저휘도 영역의 히스토그램(611)과 고휘도 영역의 히스토그램(612)이 각각 일부의 계조에서 계조 레벨의 상하 관계의 역전을 일으키지 않았지만, 본 실시예에 나타내는 방법을 이용한 경우에는, 도 12에 나타내는 바와 같이, 변환 후의 저휘도 영역의 히스토그램(621)과 고휘도 영역의 히스토그램(622)이 각각 일부의 계조에서 계조 레벨의 상하 관계의 역전을 일으키는 경우가 있을 수 있다.For example, when the histogram of the input image is concentrated in the vicinity of the specific gradation, respectively, as shown in FIG. 10, when the low luminance region and the high luminance region are concentrated, the same distribution as the solid line shown in FIG. 11 when the conventional histogram equalization method is used. When the histogram 611 of the low luminance region and the histogram 612 of the high luminance region after conversion did not cause the inversion of the vertical relationship of the gradation levels in some gradations, respectively, the figure shown in FIG. As shown in Fig. 12, the histogram 621 of the low luminance region and the histogram 622 of the high luminance region may cause inversion of the vertical relationship of the gradation levels in some gradations, respectively.

이는, 종래의 1 화면 전체에서 동일 연속으로 계조 반전이 없는 맵핑 커브를 이용하는 방법에서는 장소에 따른 계조의 순서 교체가 없었던 데에 비하여, 국소적인 다이나믹 레인지가 보다 확대되어 있다는 것이 된다. 즉, 화상을 블록으로 분할하여 처리한 것에 의해, 화상의 저휘도 영역, 고휘도 영역에 각각 최적의 맵핑 커브를 사용할 수 있게 되었기 때문에, 화상의 저휘도 영역에 대해서는 고휘도 영 역의 계조 특성 열화를 의식하지 않고서 다이나믹 레인지의 확대가 가능하며, 화상의 고휘도 영역에 대해서는 저휘도 영역의 계조 특성 열화를 의식하지 않고서 다이나믹 레인지의 확대를 도모할 수 있다. 즉, 역광 보정의 효과를 높일 수 있다. 또, 그 밖에도, 맵핑 커브의 설정의 자유도가 확대되어, 저휘도 영역과 고휘도 영역과의 양쪽에 절충을 위한 부가적인 처리를 생략할 수 있다.This means that the local dynamic range is further expanded in the conventional method of using a mapping curve without the same gray level inversion over the entire one screen, as compared with the case where there is no change of the order of gray levels depending on the place. In other words, by dividing the image into blocks and processing them, an optimal mapping curve can be used for the low luminance region and the high luminance region of the image, so that the low luminance region of the image is aware of deterioration of the gradation characteristics of the high luminance region. It is possible to expand the dynamic range without increasing the dynamic range, and the dynamic range can be enlarged in the high luminance region of the image without being aware of the deterioration of the gradation characteristics of the low luminance region. That is, the effect of backlight correction can be enhanced. In addition, the degree of freedom in setting the mapping curve is increased, and the additional processing for the compromise between the low luminance region and the high luminance region can be omitted.

이것은 또한, 본 실시예에 나타내는 방법이, 종래의 히스토그램 균등화법을 사용한 화면 전체의 역광 보정 방법을, 단순히 블록 단위의 역광 보정 처리로 변경한 것만은 아니라는 점도 의미하고 있다. 즉, 종래, 화면 전체의 히스토그램을 바탕으로 하여 화면 내의 역광 상태를 검출해 화면 내의 역광 상태를 보정하고 있었던 것을, 단순히 블록 단위로 변경하면, 블록 내의 역광 상태를 검출하여 블록 내의 역광 상태를 보정하게 된다. 그러나, 본 실시예에 나타내는 방법에서는, 블록 내의 역광 상태를 검출하는 것이 아니며, 또한 블록 내의 역광 상태를 보정하는 것도 아니다. 본 실시예에 나타내는 방법은, 블록 내의 휘도 평균값을 바탕으로 하여, 복수 블록 간의 역광 상태를 보정하는 것이기 때문에, 히스토그램을 작성하지 않고도 결과적으로 화면 전체의 역광 상태를 보정할 수 있다.This also means that the method shown in the present embodiment does not merely change the backlight compensation method of the entire screen using the conventional histogram equalization method to the block backlight compensation process. That is, conventionally, if the backlight state in the screen is detected based on the histogram of the entire screen and the backlight state in the screen is corrected in units of blocks, the backlight state in the block is detected to correct the backlight state in the block. do. However, the method shown in this embodiment does not detect the backlight state in a block, nor does it correct the backlight state in a block. Since the method shown in this embodiment corrects the backlight state between a plurality of blocks based on the luminance average value in the block, it is possible to correct the backlight state of the entire screen without creating a histogram.

또, 본 실시예에 나타내는 방법에서는, 국소 영역의 정보를 순차 사용하는 것만으로 화면 전체의 보정을 할 수 있기 때문에, 1 화면 전체의 전 처리가 끝날 때까지 기다릴 필요가 없으며, 회로에 있어서의 프레임 메모리를 필요로 하지 않고, 블록이 포함되는 정도의 라인 메모리 또는 그 2배 또는 3배 정도의 라인 메모리만을 이용하는 것만으로 프레임 지연 없이 실시간 처리를 할 수 있다.In addition, in the method shown in the present embodiment, since the entire screen can be corrected simply by using the information of the local area one by one, there is no need to wait until the entire processing of one entire screen is completed. It is possible to perform real-time processing without a frame delay by only using a line memory that includes a block or a line memory that is about twice or three times that does not require a memory.

또, 실시예 1에 나타낸 방법에서는, 보정 처리에 색 정보를 이용하지 않았기 때문에, 특정한 색에 대하여 보정이 지나치게 가해진다고 하는 문제점이 있었지만, 본 실시예에 나타내는 방법에서는, 보정량을 국소 영역의 평균 색차 벡터에 의해서도 제어하도록 하고 있기 때문에, 특정한 색을 갖는 영역에 대한 계조 보정에 따른 인간이 느끼는 주관적인 영향을 제어할 수 있다고 하는 효과가 있다.Moreover, in the method shown in Example 1, since the color information was not used for the correction process, there was a problem that the correction was excessively applied to the specific color. In the method shown in the present embodiment, the correction amount is defined as the average color difference of the local area. Since the control is also performed by the vector, there is an effect that the subjective effect that a human feels due to the gradation correction for a region having a specific color can be controlled.

인간이 느끼는 주관적인 영향은, 인물의 피부색에 대하여 특히 현저하기 때문에, 국소 영역의 평균 색차 벡터가 대략 피부색 부근일 때에는 보정량을 작게 하도록 설정하면, 화상에 인물화가 포함되어 있었던 경우이더라도, 계조 보정에 따른 사람 피부 화상에의 인간이 느끼는 주관적인 영향을 저감할 수 있다고 하는 효과가 있다.Since the subjective effect that a human feels is particularly noticeable with respect to the skin color of a person, when the average color difference vector of the local area is approximately around the skin color, if the correction amount is set to be small, even if the image contains a portrait, It is effective that the subjective effect which a human feels on a human skin burn can be reduced.

이상과 같이, 본 실시예에 따르면, 화면 내를 복수의 블록으로 분할하여, 블록으로 분할한 국소 영역의 평균 휘도 레벨로부터 보정 후의 휘도 레벨로의 변화량을, 국소 영역의 평균 색차 벡터에 의해서도 제어하도록 하고 있기 때문에, 특정한 색을 갖는 영역이 면적적으로 넓게 연속하는 것과 같은 부분 전체에 있어서, 계조 보정에 따른 인간이 느끼는 주관적인 영향을 제어할 수 있다고 하는 이점이 있다.As described above, according to the present embodiment, the screen is divided into a plurality of blocks so that the amount of change from the average luminance level of the local region divided into blocks to the corrected luminance level is also controlled by the average color difference vector of the local region. Therefore, there is an advantage that the subjective influence of the human feeling due to the gradation correction can be controlled in the whole part such that the area having a specific color is continuously wide in area.

또한, 화면 내를 복수의 블록으로 분할하여, 블록으로 분할한 국소 영역의 평균 휘도 레벨로부터 보정 후의 휘도 레벨로의 변화량을, 국소 영역의 평균 색차 벡터가 대략 피부색 부근일 때에 작아지도록 제어하고 있기 때문에, 계조 보정에 따른 사람 피부 화상에의 인간이 느끼는 주관적인 영향을 저감할 수 있다고 하는 이점이 있다.Since the screen is divided into a plurality of blocks, the amount of change from the average luminance level of the local region divided into blocks to the luminance level after correction is controlled so as to become small when the average color difference vector of the local region is approximately around the skin color. Therefore, there is an advantage that the subjective effect of the human on the human skin burn due to the gradation correction can be reduced.

(실시예 3)(Example 3)

실시예 1에 있어서는, 계조 변환부(107)에 있어서, 화소 단위의 보정량으로부터 보정 후의 휘도 데이터를 얻을 때, 보정량의 레벨수에 따른 변환 테이블을 갖고 변환을 행하는 방법을 설명하였지만, 본 실시예에서는 2 종류의 변환 데이터 테이블만을 이용하여 변환을 행한다.In Example 1, when the tone conversion unit 107 obtains the luminance data after correction from the correction amount in units of pixels, a method of performing conversion with a conversion table corresponding to the number of levels of the correction amount has been described. Conversion is performed using only two types of conversion data tables.

도 13은 본 실시예에 따른 계조 보정 장치의 블록 구성을 나타내는 도면이다. 도 13의 구성이 도 1의 구성과 다른 점은, 계조 변환을 행하는 부분의 장치 구성이다. 계조 변환을 행하는 부분은, 제 1 변환 테이블부(108A)를 갖는 제 1 계조 변환부(107A), 제 2 변환 테이블부(108B)를 갖는 제 2 계조 변환부(107B) 및 계조 보간부(107C)로 구성되어 있다. 도 14에 나타내는 바와 같이, 제 1 변환 테이블부(108A)에는 정(正;positive)의 방향으로 보정량이 최대값으로 되는 경우의 맵핑 커브(246)가 미리 준비되고, 제 2 변환 테이블부(108B)에는 부(負;negative)의 방향으로 보정량이 최대값으로 되는 경우의 맵핑 커브(247)가 준비되어 있다.Fig. 13 is a block diagram showing the block configuration of the gradation correction device according to the present embodiment. The configuration of FIG. 13 is different from the configuration of FIG. 1 in the apparatus configuration of a portion for performing gradation conversion. The gray scale conversion is performed by the first tone conversion unit 107A having the first conversion table unit 108A, the second tone conversion unit 107B having the second conversion table unit 108B, and the tone interpolation unit 107C. It consists of). As shown in FIG. 14, in the 1st conversion table part 108A, the mapping curve 246 in the case where the correction amount becomes the maximum value in a positive direction is prepared previously, and the 2nd conversion table part 108B is provided. ), A mapping curve 247 is prepared in the case where the correction amount reaches a maximum value in the negative direction.

계조 변환 이외의 동작은, 실시예 1과 마찬가지이므로, 이하에 있어서, 본 실시예에 있어서의 계조 변환의 동작에 대해서만 설명한다.Since operations other than the gradation conversion are the same as those in the first embodiment, only the operation of the gradation conversion in the present embodiment will be described below.

도 13에 있어서, 기억부(106)로부터 제 1 계조 변환부(107A)와 제 2 계조 변환부(107B)에 화소마다의 휘도 레벨이 입력된다. 제 1 계조 변환부(107A)는, 제 1 변환 테이블부(108A)를 참조하여, 도 14에 나타내는 참조 부호 241에 상당하는 출력값을 얻는다. 한편, 제 2 계조 변환부(107B)는, 제 2 변환 테이블부(108B)를 참조하여, 도 14에 나타내는 참조 부호 242에 상당하는 출력값을 얻는다. 이들 2개 의 출력을 받은 계조 보간부(107C)는, 화소 단위 보정량 산출부(105)로부터 출력된 화소 단위의 보정량에 의해, 가중 평균을 행함으로써 보정량에 따라 계조를 보간하여, 도 14에 있어서의 참조 부호 243에 상당하는 출력 레벨을 얻는다.In FIG. 13, the luminance level for each pixel is input from the storage unit 106 to the first gray level conversion unit 107A and the second gray level conversion unit 107B. The first tone conversion unit 107A refers to the first conversion table unit 108A and obtains an output value corresponding to 241 shown in FIG. 14. On the other hand, the second tone conversion unit 107B refers to the second conversion table unit 108B to obtain an output value corresponding to the reference numeral 242 shown in FIG. 14. The gradation interpolation unit 107C which has received these two outputs interpolates the gradation according to the correction amount by performing a weighted average with the correction amount of the pixel unit output from the pixel unit correction amount calculation unit 105. An output level corresponding to 243 is obtained.

이 방법에서는, 시스템의 계조 특성에 적응한 변환 테이블을 이용할 수 있으며, 변환 테이블을 2 종류로 삭감하였기 때문에, 회로 규모 또는 프로그램 크기를 삭감할 수 있다고 하는 효과가 있다.In this method, a conversion table adapted to the gradation characteristics of the system can be used. Since the conversion tables are reduced to two types, the circuit size or program size can be reduced.

실시예 1에 있어서도 설명하였지만, 연산을 간략화하여 회로 규모나 소비 전력을 억제하거나, 혹은 처리 속도 향상을 위해, 곡선의 계조 변환 커브 대신에, 직선을 조합시킨 것을 계조 변환용으로서 적용하여도 좋다. 혹은, 계조 변환 테이블을 미리 준비하는 대신에, 계조 변환부가 순차 계산에 의해서 스스로 변환 테이블을 구하도록 구성하여도 좋고, 또는 변환 테이블을 이용하지 않고서, 계조 변환부가 입력된 보정량으로부터 직접 연산에 의해 보정을 실행하도록, 수정을 행하여도 좋다.Although described in the first embodiment, a combination of straight lines may be used for the gray level conversion in order to simplify the calculation to suppress the circuit scale and power consumption, or to improve the processing speed, instead of the gray level conversion curve of the curve. Alternatively, instead of preparing the gradation conversion table in advance, the gradation conversion unit may be configured to obtain the conversion table by sequential calculation itself, or the gradation conversion unit is corrected by direct calculation from the input correction amount without using the conversion table. The modification may be performed to execute.

예컨대, 맵핑 커브로서, 도 15에 나타내는 직선(256∼259)을 이용함으로써, 도 13에 나타내는 제 1 및 제 2 변환 테이블부(108A, 108B)를 사용하지 않고서, 직선의 계산과 비교를 하는 연산 회로에 의해 회로 규모 또는 프로그램 크기를 삭감할 수도 있다. 구체적으로는, 입력 데이터를 직선식(256)과 직선식(257)으로 연산에 의한 계조 변환을 행하여, 출력 결과가 작은 쪽을 정방향의 보정량 최대로 되는 경우의 변환 후 계조(제 1 계조 변환부의 출력)로 하고, 마찬가지로 직선식(258, 259)에 의한 변환 결과가 큰 쪽을 부방향의 보정량 최대로 되는 경우의 변환 후 계 조(제 2 계조 변환부의 출력)로 하는 것도 가능하다. 이 방법은, 변환 테이블도 계산식으로서 고정화함으로써, 계조 특성의 자유도는 낮아지지만, 상기 방법보다도 회로 규모 또는 프로그램 크기를 더욱 삭감할 수 있는 것이다.For example, by using the straight lines 256 to 259 shown in FIG. 15 as the mapping curve, the calculations are compared with the calculation of the straight lines without using the first and second conversion table portions 108A and 108B shown in FIG. The circuit size or program size can be reduced by the circuit. Specifically, after the conversion of the input data when the gray scale conversion by input is performed by the straight line 256 and the straight line 257, and the smaller output result is the maximum correction amount in the forward direction (the first gray level conversion section). Output), and similarly, the larger the conversion result by the linear expressions 258, 259 can be used as the post-conversion gradation (output of the second gradation conversion section) when the correction amount in the negative direction is maximum. In this method, the degree of freedom of the gradation characteristics is lowered by fixing the conversion table as a calculation formula, but the circuit scale or program size can be further reduced than the above method.

(부기(附記))(Bookkeeping)

이상, 본 발명의 실시예를 상세히 개시하고 기술하였지만, 이상의 기술은 본 발명의 적용 가능한 국면을 예시한 것으로서, 본 발명은 이것에 한정되는 것은 아니다. 즉, 기술한 국면에 대한 여러가지 수정이나 변형예를, 본 발명의 범위로부터 일탈하지 않는 범위 내에서 고려할 수 있다.As mentioned above, although the Example of this invention was disclosed and described in detail, the above description illustrates the applicable aspect of this invention, and this invention is not limited to this. In other words, various modifications and variations to the above described aspects can be considered without departing from the scope of the present invention.

예컨대, 실시예 1 또는 실시예 2에서 구현화된 본 발명에 관한 계조 보정 장치는, 하드웨어의 장치로서 실현할 수 있을 뿐만 아니라, 프로그램에 의한 각 부의 기능 실행으로서 소프트웨어 처리에 의해 실현하는 것도 가능하다. 본 원의 도 7 또는 도 9의 예시는, 그와 같은 프로그램의 적용예도 나타내는 것이다.For example, the gradation correction device according to the present invention implemented in the first or second embodiment can be realized not only as a hardware device but also by software processing as function execution of each part by a program. The example of FIG. 7 or FIG. 9 of this application also shows the example of application of such a program.

본 발명은 그 활용예로서, 촬상 장치에 의해 역광 상태에서 촬영된 화상의 보정 처리에 적용할 수 있지만, 역광 상태가 아니더라도, 부분적으로 계조가 노출 부족이거나(underexposed), 혹은 노출 과다(overexposed)인 화상의 보정 처리에도 적용할 수 있다. 그 밖에도, 본 발명은, 콘트라스트가 부족한 표시 장치의 시인성 향상을 위해서도 적용이 가능하다. 또한, 촬상 장치나 표시 장치를 구비하고 있지 않더라도, 화상의 보정 처리를 행하는 장치라면, 본 발명을 적용할 수 있다.The present invention can be applied to the correction processing of an image photographed in a backlit state by the imaging device, but the grayscale is partially underexposed or overexposed even when not in a backlit state. It can also be applied to an image correction process. In addition, the present invention can be applied to improve the visibility of a display device lacking contrast. Moreover, even if it does not comprise an imaging device or a display apparatus, this invention can be applied as long as it is an apparatus which correct | amends an image.

보다 구체적으로는, 본 발명에 따른 계조 보정 장치를, 휴대 전화나 PDA 등의 휴대 단말 기기나 퍼스널 컴퓨터 등의 디지털 기기에도 적용이 가능하다.More specifically, the gradation correction device according to the present invention can be applied to digital devices such as portable terminal devices such as mobile phones and PDAs and personal computers.

Claims (17)

입력된 디지털 화상의 1 화면 내를 복수의 국소 영역으로 분할한 후에 국소 영역 단위에서의 타이밍을 제어하기 위한 블록 타이밍 발생부와, A block timing generator for controlling timing in local area units after dividing one screen of an input digital image into a plurality of local areas; 상기 입력된 디지털 화상의 상기 1 화면에 대해 상기 복수의 국소 영역 중 각각의 국소 영역의 평균 휘도를 구하는 평균 휘도 산출부와,An average luminance calculator for calculating an average luminance of each of the plurality of local regions with respect to the one screen of the input digital image; 상기 각각의 국소 영역의 평균 휘도로부터, 휘도 보정에 있어서의 각각의 국소 영역의 보정의 방향 및 양을 구하는 보정량 산출부와,A correction amount calculating section for obtaining a direction and an amount of correction of each local region in luminance correction from the average luminance of each local region; 상기 각각의 국소 영역의 보정의 방향 및 양으로부터, 화소 단위에 근거하는 보정량으로의 보간을 행하는 보간부와,An interpolation unit for interpolating the correction amount based on the pixel unit from the direction and amount of correction of the respective local regions; 상기 화소 단위에 근거하는 보정량을 이용하여, 상기 입력된 디지털 화상의 계조 보정을 행하는 계조 변환부Gradation converter for performing gradation correction of the input digital image by using the correction amount based on the pixel unit 를 구비하되, Provided with 상기 보정량 산출부는, The correction amount calculation unit, 상기 각각의 국소 영역의 평균 휘도가 전체 휘도 계조 레벨의 중앙보다 낮은 저휘도부에 대해서는, 상기 국소 영역의 휘도를 올리도록, 상기 각각의 국소 영역의 보정의 방향 및 양을 구하고, For the low luminance portion where the average luminance of each local region is lower than the center of the entire luminance gradation level, the direction and amount of correction of each local region are obtained so as to raise the luminance of the local region, 또한, 상기 각각의 국소 영역의 평균 휘도가 상기 전체 휘도 계조 레벨의 중앙보다 높은 고휘도부에 대해서는, 상기 국소 영역의 휘도를 내리도록, 상기 각각의 국소 영역의 보정의 방향 및 양을 구하는 것Further, for the high luminance portion where the average luminance of each local region is higher than the center of the overall luminance gradation level, the direction and amount of correction of each local region are calculated so as to lower the luminance of the local region. 을 특징으로 하는 계조 보정 장치.Gradation correction device, characterized in that. 디지털 화상의 1 화면 내를 복수의 국소 영역으로 분할한 후에 계조 보정을 행하는 계조 보정 장치로서,A gradation correction device for performing gradation correction after dividing the inside of one screen of a digital image into a plurality of local areas, 상기 디지털 화상의 상기 1 화면에 걸쳐, 상기 국소 영역마다의 평균 휘도를 구하는 평균 휘도 산출부와,An average brightness calculator that calculates an average brightness for each of the local areas over the one screen of the digital image; 상기 국소 영역마다의 평균 휘도로부터 상기 국소 영역마다의 보정량을 구하는 보정량 산출부와,A correction amount calculating section for obtaining a correction amount for each local region from the average brightness for each local region; 상기 국소 영역마다의 보정량으로부터 화소 단위마다의 보정량으로의 보간을 행하는 보간부와,An interpolation unit for interpolating the correction amount for each local region from the correction amount for each pixel unit; 상기 국소 영역마다의 보정량과 전체 휘도 계조 레벨의 중앙값에 대응하는 보정량과의 대소(大小), 또는 상기 화소 단위마다의 보정량과 상기 전체 휘도 계조 레벨의 중앙값에 대응하는 보정량과의 대소에 근거하여, 미리 준비한 복수의 계조 변환 함수로부터 1개의 계조 변환 함수를 선택하고, 상기 국소 영역마다의 보정량과 상기 화소 단위마다의 보정량 중 어느 한쪽을 파라미터로 하여, 화소마다의 휘도를 상기 선택된 계조 변환 함수에 의해 보정하는 계조 보정을 행하는 계조 변환부Based on the magnitude of the correction amount for each local region and the correction amount corresponding to the median value of the entire luminance gradation level, or the magnitude of the correction amount for the pixel unit and the correction amount corresponding to the median value of the overall luminance gradation level, One gradation conversion function is selected from a plurality of gradation conversion functions prepared in advance, and one of the correction amount for each local region and the correction amount for each pixel unit is used as a parameter, and the luminance for each pixel is selected by the selected gradation conversion function. Gradation conversion section for performing gradation correction 를 구비하되,Provided with 상기 복수의 계조 변환 함수는, 저휘도부의 계조성을 높이는 작용을 갖는 제 1 변환 함수와, 고휘도부의 계조를 높이는 작용을 갖는 제 2 변환 함수로 이루어지는 것The plurality of gradation conversion functions comprise a first conversion function having a function of increasing the gradation of the low luminance portion and a second conversion function having a function of increasing the gradation of the high luminance portion 을 특징으로 하는 계조 보정 장치.Gradation correction device, characterized in that. 제 1 항에 있어서,The method of claim 1, 상기 국소 영역마다의 평균 색을 구하는 평균 색 산출부를 더 구비하고 있으며,An average color calculator for calculating an average color for each of the local areas; 상기 보정량 산출부는, 상기 평균 휘도와 상기 평균 색을 이용하여 상기 국소 영역마다의 휘도 보정량을 구하는 것을 특징으로 하는The correction amount calculating unit calculates a luminance correction amount for each of the local areas by using the average luminance and the average color. 계조 보정 장치.Gradation Correction Device. 제 3 항에 있어서,The method of claim 3, wherein 상기 보정량 산출부는, 상기 평균 색이 미리 설정된 특정 색의 부근인 경우에는 보정에 의한 변동폭을 변화시키는 것을 특징으로 하는 계조 보정 장치.And the correction amount calculating unit changes a variation range due to correction when the average color is in the vicinity of a predetermined color. 제 4 항에 있어서,The method of claim 4, wherein 미리 설정된 상기 특정 색은 대략 피부색인 것을 특징으로 하는 계조 보정 장치.And the specific color set in advance is a skin color. 제 5 항에 있어서,The method of claim 5, wherein 상기 보정량 산출부는, 상기 평균 색이 상기 대략 피부색의 부근인 경우에는, 상기 보정에 의한 변동폭을 작게 하는 것을 특징으로 하는 계조 보정 장치.And the correction amount calculating unit decreases the variation range caused by the correction when the average color is near the skin color. 청구항 1 내지 청구항 6 중 어느 한 항에 기재된 상기 계조 보정 장치를 갖는 것을 특징으로 하는 휴대 단말 기기.It has the said gradation correction apparatus in any one of Claims 1-6, The portable terminal apparatus characterized by the above-mentioned. 청구항 1 내지 청구항 6 중 어느 한 항에 기재된 상기 계조 보정 장치를 갖는 것을 특징으로 하는 촬상 장치.It has the said gradation correction device in any one of Claims 1-6, The imaging device characterized by the above-mentioned. 청구항 8에 기재된 상기 촬상 장치를 갖는 것을 특징으로 하는 휴대 전화.The mobile telephone which has the said imaging device of Claim 8. 입력된 디지털 화상의 1 화면 내를 복수의 국소 영역으로 분할하는 분할 단계와,A dividing step of dividing the inside of one screen of the input digital image into a plurality of local regions; 상기 입력된 디지털 화상의 상기 1 화면에 대해 상기 복수의 국소 영역 중 각각의 국소 영역의 평균 휘도를 구하는 평균 휘도 산출 단계와,An average brightness calculating step of obtaining an average brightness of each local area of the plurality of local areas with respect to the one screen of the input digital image; 상기 각각의 국소 영역의 평균 휘도로부터, 상기 각각의 국소 영역의 평균 휘도가 전체 휘도 계조 레벨의 중앙보다 낮은 저휘도부에 대해서는 상기 국소 영역의 휘도를 올리도록, 휘도 보정에 있어서의 각각의 국소 영역의 보정의 방향 및 양을 구하고, 또한, 상기 평균 휘도가 상기 전체 휘도 계조 레벨의 중앙보다 높은 고휘도부에 대해서는 상기 국소 영역의 휘도를 내리도록, 상기 각각의 국소 영역의 보정의 방향 및 양을 구하는 보정량 산출 단계와, From the average brightness of each local area, each local area in luminance correction is made to raise the brightness of the local area for a low luminance portion where the average brightness of each local area is lower than the center of the entire luminance gradation level. Calculating the direction and amount of correction of each local area so as to lower the luminance of the local area for the high luminance portion whose average brightness is higher than the center of the overall luminance gradation level. Correction amount calculating step, 상기 각각의 국소 영역의 보정의 방향 및 양으로부터, 화소 단위에 근거하는 보정량으로의 보간을 행하는 보간 단계와, An interpolation step of performing interpolation from the direction and amount of correction of each local region to a correction amount based on a pixel unit; 상기 화소 단위에 근거하는 보정량을 이용하여, 상기 입력된 디지털 화상의 계조 보정을 행하는 계조 변환 단계A gradation conversion step of performing gradation correction on the input digital image using the correction amount based on the pixel unit. 를 포함하는 것을 특징으로 하는 계조 보정 방법.Gray level correction method comprising a. 디지털 화상의 1 화면 내를 복수의 국소 영역으로 분할하는 분할 단계와,A dividing step of dividing the inside of one screen of the digital image into a plurality of local regions; 상기 디지털 화상의 상기 1 화면에 걸쳐 상기 국소 영역마다의 평균 휘도를 구하는 평균 휘도 산출 단계와,An average brightness calculation step of obtaining an average brightness for each of the local areas over the one screen of the digital image; 상기 국소 영역마다의 평균 휘도로부터 당해 국소 영역마다의 보정량을 구하는 보정량 산출 단계와,A correction amount calculating step of obtaining a correction amount for each local region from the average luminance for each local region; 상기 국소 영역마다의 보정량으로부터 화소마다의 보정량으로의 보간을 행하는 보간 단계와,An interpolation step of performing interpolation from the correction amount for each local region to the correction amount for each pixel, 상기 국소 영역마다의 보정량과 전체 휘도 계조 레벨의 중앙값에 대응하는 보정량과의 대소, 또는 상기 화소 단위마다의 보정량과 상기 전체 휘도 계조 레벨의 중앙값에 대응하는 보정량과의 대소에 근거하여, 미리 준비한 복수의 계조 변환 함수로부터 1개의 계조 변환 함수를 선택하고, 상기 국소 영역마다의 보정량과 상기 화소 단위마다의 보정량 중 어느 한쪽을 파라미터로 하여, 화소마다의 휘도를 상기 선택된 계조 변환 함수에 의해 보정하는 계조 변환 단계A plurality of previously prepared based on the magnitude of the correction amount for each local region and the correction amount corresponding to the median value of the entire luminance gradation level or the magnitude of the correction amount for each pixel unit and the correction amount corresponding to the median value of the overall luminance gradation level One gray level conversion function is selected from the gray level conversion function, and the luminance for each pixel is corrected by the selected gray level conversion function using either the correction amount for each local region or the correction amount for each pixel unit as a parameter. Transformation steps 를 갖되, With 상기 복수의 계조 변환 함수는, 저휘도부의 계조성을 높이는 작용을 갖는 제 1 변환 함수와, 고휘도부의 계조를 높이는 작용을 갖는 제 2 변환 함수로 이루어지는 것The plurality of gradation conversion functions comprise a first conversion function having a function of increasing the gradation of the low luminance portion and a second conversion function having a function of increasing the gradation of the high luminance portion 을 특징으로 하는 계조 보정 방법.Tonal correction method characterized in that. 제 10 항에 있어서,The method of claim 10, 상기 국소 영역마다의 평균 색을 구하는 평균 색 산출 단계를 더 구비하고 있으며,An average color calculation step of obtaining an average color for each of the local areas; 상기 보정량 산출 단계는, 상기 평균 휘도와 상기 평균 색을 이용하여 상기 국소 영역마다의 휘도 보정량을 구하는 것을 특징으로 하는In the calculating of the correction amount, the luminance correction amount for each of the local areas is calculated using the average luminance and the average color. 계조 보정 방법.Gradation correction method. 제 12 항에 있어서,The method of claim 12, 상기 보정량 산출 단계는, 상기 평균 색이 대략 피부색의 부근인 경우에는, 상기 보정에 의한 변동폭을 작게 하는 것을 특징으로 하는 계조 보정 방법.The step of calculating the amount of correction is characterized in that, when the average color is approximately in the vicinity of the skin color, the variance caused by the correction is reduced. 삭제delete 삭제delete 삭제delete 삭제delete
KR1020067024786A 2004-04-30 2005-03-29 Tone correcting apparatus, mobile terminal, image capturing apparatus, mobile phone, and tone correcting method KR100843817B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020067024786A KR100843817B1 (en) 2004-04-30 2005-03-29 Tone correcting apparatus, mobile terminal, image capturing apparatus, mobile phone, and tone correcting method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JPJP-P-2004-00135978 2004-04-30
JPJP-P-2004-00348180 2004-12-01
KR1020067024786A KR100843817B1 (en) 2004-04-30 2005-03-29 Tone correcting apparatus, mobile terminal, image capturing apparatus, mobile phone, and tone correcting method

Publications (2)

Publication Number Publication Date
KR20070017391A KR20070017391A (en) 2007-02-09
KR100843817B1 true KR100843817B1 (en) 2008-07-03

Family

ID=41639334

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020067024786A KR100843817B1 (en) 2004-04-30 2005-03-29 Tone correcting apparatus, mobile terminal, image capturing apparatus, mobile phone, and tone correcting method

Country Status (1)

Country Link
KR (1) KR100843817B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101053826B1 (en) 2010-06-04 2011-08-03 엠텍비젼 주식회사 Device and method for controlling exposure of camera module
KR101289698B1 (en) * 2011-10-21 2013-07-26 한양대학교 에리카산학협력단 Apparatus and method for enhancing image
KR20140097500A (en) * 2011-12-29 2014-08-06 인텔 코포레이션 Simplification of local contrast compensation by using weighted look-up table
WO2019022387A1 (en) * 2017-07-27 2019-01-31 Samsung Electronics Co., Ltd. Display apparatus and control method thereof

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101303665B1 (en) 2007-06-13 2013-09-09 삼성전자주식회사 Method and apparatus for contrast enhancement
KR101953262B1 (en) * 2012-10-29 2019-02-28 엘지디스플레이 주식회사 Apparatus and Method for Generating of Luminance Correction Data
KR102100882B1 (en) * 2013-11-01 2020-04-14 엘지디스플레이 주식회사 Display device and data interpolation method thereof
KR101696609B1 (en) * 2015-10-26 2017-01-16 주식회사 홍익기술 De Mura Method of Display Panel and De-Mura Module
KR101980596B1 (en) * 2018-02-27 2019-05-21 이승원 Driver ic apparatus including correction function
CN110494913A (en) * 2017-04-07 2019-11-22 李承源 Driver IC device with calibration function

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5296919A (en) 1991-08-30 1994-03-22 Matsushita Electric Industrial Co., Ltd. Image processing apparatus and method for performing nonlinear gamma corrections
JPH1021386A (en) 1996-07-02 1998-01-23 Fuji Xerox Co Ltd Image processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5296919A (en) 1991-08-30 1994-03-22 Matsushita Electric Industrial Co., Ltd. Image processing apparatus and method for performing nonlinear gamma corrections
JPH1021386A (en) 1996-07-02 1998-01-23 Fuji Xerox Co Ltd Image processor

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101053826B1 (en) 2010-06-04 2011-08-03 엠텍비젼 주식회사 Device and method for controlling exposure of camera module
KR101289698B1 (en) * 2011-10-21 2013-07-26 한양대학교 에리카산학협력단 Apparatus and method for enhancing image
KR20140097500A (en) * 2011-12-29 2014-08-06 인텔 코포레이션 Simplification of local contrast compensation by using weighted look-up table
US9245495B2 (en) 2011-12-29 2016-01-26 Intel Corporation Simplification of local contrast compensation by using weighted look-up table
KR101594381B1 (en) * 2011-12-29 2016-02-16 인텔 코포레이션 Simplification of local contrast compensation by using weighted look-up table
WO2019022387A1 (en) * 2017-07-27 2019-01-31 Samsung Electronics Co., Ltd. Display apparatus and control method thereof
US10692466B2 (en) 2017-07-27 2020-06-23 Samsung Electronics Co., Ltd. Display apparatus and control method thereof

Also Published As

Publication number Publication date
KR20070017391A (en) 2007-02-09

Similar Documents

Publication Publication Date Title
JP3949684B2 (en) Gradation correction apparatus, gradation correction program, portable terminal device, and personal computer
KR100843817B1 (en) Tone correcting apparatus, mobile terminal, image capturing apparatus, mobile phone, and tone correcting method
JP4835525B2 (en) Image processing apparatus, image processing method, and program
KR101061866B1 (en) Image processing apparatus for performing gradation correction on the target image
KR101314453B1 (en) Visual processing device, visual processing method, program, display device, and integrated circuit
JP4894595B2 (en) Image processing apparatus and method, and program
KR100916073B1 (en) Apparatus and method of stretching histogram for enhancing contrast of image
US11803947B2 (en) Brightness and contrast enhancement for video
JPWO2006025486A1 (en) Image correction processing system and image correction processing method
JP4810473B2 (en) Image processing apparatus and image processing program
JP6485068B2 (en) Image processing method and image processing apparatus
JP4011073B2 (en) Tone correction device
JP2004326082A (en) Display controller and display device
JP2004326082A5 (en)
JP4054360B1 (en) Image processing apparatus and program recording medium
CN106023100B (en) Image wide dynamic range compression method and device
KR102303666B1 (en) Method of image processing, image processor performing the method and display device having the image processor
JP6583008B2 (en) Image correction apparatus, image correction method, and computer program for image correction
JP4308280B2 (en) Tone correction device
KR102270230B1 (en) Image process device and image proccessing method
US20080152227A1 (en) Image processing apparatus and image processing method
JP2008259097A (en) Video signal processing circuit and video display device
JP4549723B2 (en) Image signal enhancement device
JP2011022779A (en) Image correction apparatus, image correction method and program
JP2008148296A (en) Image processing circuit, semiconductor device, and image processing apparatus

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
FPAY Annual fee payment

Payment date: 20130531

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20140603

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20150529

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee