JP6893068B1 - Image processing method - Google Patents

Image processing method Download PDF

Info

Publication number
JP6893068B1
JP6893068B1 JP2021064589A JP2021064589A JP6893068B1 JP 6893068 B1 JP6893068 B1 JP 6893068B1 JP 2021064589 A JP2021064589 A JP 2021064589A JP 2021064589 A JP2021064589 A JP 2021064589A JP 6893068 B1 JP6893068 B1 JP 6893068B1
Authority
JP
Japan
Prior art keywords
value
image
pixel
processing
brightness
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2021064589A
Other languages
Japanese (ja)
Other versions
JP2022160068A (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 JP2021064589A priority Critical patent/JP6893068B1/en
Application granted granted Critical
Publication of JP6893068B1 publication Critical patent/JP6893068B1/en
Priority to KR1020237027837A priority patent/KR20230133344A/en
Priority to PCT/JP2021/027235 priority patent/WO2022158010A1/en
Priority to EP21921116.6A priority patent/EP4283558A1/en
Priority to US17/632,644 priority patent/US20230162473A1/en
Priority to CN202180095840.9A priority patent/CN116982074A/en
Publication of JP2022160068A publication Critical patent/JP2022160068A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

【課題】鮮明化処理を行った画像と黒つぶれ処理を行った画像とを合成する画像処理を提供する。【解決手段】鮮明化処理を行った画像と黒つぶれ処理を行った画像とを合成する画像処理を行うにあたり、前記黒つぶれ処理において使用したフラットフレームを利用して画像の暗い部分は黒つぶれ処理の比率を高め、明るい部分は鮮明化処理の比率を高めることで、鮮明化処理の欠点つまり画像の暗い部分でコントラスト過多になりがちとなる欠点と、黒つぶれ処理の欠点つまり明るい部分でのコントラスト不足を補う処理が可能となる。【選択図】図1PROBLEM TO BE SOLVED: To provide an image process for synthesizing an image subjected to sharpening processing and an image subjected to blackout processing. SOLUTION: In performing image processing for synthesizing an image subjected to sharpening processing and an image subjected to blackout processing, a dark portion of the image is blackened by using a flat frame used in the blackout processing. By increasing the ratio of sharpening processing and increasing the ratio of sharpening processing in bright areas, the drawbacks of sharpening processing, that is, the disadvantages of tending to have excessive contrast in dark areas of the image, and the disadvantages of blackout processing, that is, contrast in bright areas. Processing that makes up for the shortage becomes possible. [Selection diagram] Fig. 1

Description

本発明は、極端にコントラストが低い部分が混在する画像を見やすい画面に変換する鮮明化処理を行った画像と画像の黒つぶれの修正処理を行った画像とを合成する画像処理方法に関する。 The present invention relates to an image processing method for synthesizing an image that has been subjected to a sharpening process for converting an image in which an extremely low contrast portion is mixed into an easy-to-see screen and an image that has been subjected to a correction process for blackout of the image.

室内の窓など同一画面内に極端に明るい部分と暗い部分が混在する画面や水中・霧など極端にコントラストが低い部分が混在する画像を見やすい画面に変換する鮮明化処理と、シャッター速度が1/30秒以上長くできないビデオカメラでの夜間撮影や、自動露出機能によって逆光時に露出やゲイン・絞りが制限されるときに起きる黒つぶれ現象を処理する方法が従来から知られている。 Clarification processing that converts an image with extremely bright and dark parts mixed in the same screen such as an indoor window or an image with extremely low contrast parts such as underwater and fog into an easy-to-see screen, and a shutter speed of 1 / Conventionally known methods are used for nighttime shooting with a video camera that cannot be lengthened by 30 seconds or more, and a method for dealing with the blackout phenomenon that occurs when the exposure, gain, and aperture are limited when the subject is backlit by the automatic exposure function.

従来の鮮明化処理としては、特許文献1〜5がある。特許文献1には、光学像を光電変換して電気信号を出力する撮像素子と、該撮像素子から出力された電気信号を処理して映像信号を生成する信号処理手段と、該信号処理手段から出力された映像信号からヒストグラムを生成するヒストグラム回路と、該ヒストグラム回路によって検出されたヒストグラムを用いて露光制御を行う露光制御手段とを有する撮像装置が開示されている。 As the conventional sharpening process, there are Patent Documents 1 to 5. Patent Document 1 describes an image pickup element that photoelectrically converts an optical image and outputs an electric signal, a signal processing means that processes the electric signal output from the image pickup element to generate a video signal, and the signal processing means. An image pickup device including a histogram circuit that generates a histogram from an output video signal and an exposure control means that controls exposure using the histogram detected by the histogram circuit is disclosed.

特許文献2には、原稿からの光を読取って画像データを生成する工程と、前記画像データから濃度分布のヒストグラムを作成する工程と、前記画像データの全データ数に対する濃度分布の明暗両端寄りのデータ数の割合に基づいて濃度補正曲線を生成する工程と、前記濃度補正曲線で画像データの濃度補正を行う工程とを有する画像処理方法が開示されている。 Patent Document 2 describes a step of reading light from a manuscript to generate image data, a step of creating a density distribution histogram from the image data, and a step of the density distribution near both ends of the density distribution with respect to the total number of data of the image data. An image processing method including a step of generating a density correction curve based on the ratio of the number of data and a step of performing density correction of image data with the density correction curve is disclosed.

特許文献3には、被写体を撮像し、撮像画像の画像データを取得する撮像手段と、その撮像手段により取得された画像データからなる撮像画像の所定の画素部分であって輝度レベルが所定の範囲内にある画素からなる画素部分に対し、当該画素部分における各画素の輝度値を、各画素間の相対的な輝度の上下関係を維持したまま各画素間の輝度間隔を増大させるよう変換する階調補正を行う階調補正手段とを備えた撮像装置が開示されている。 Patent Document 3 describes an imaging means that captures a subject and acquires image data of the captured image, and a predetermined pixel portion of the captured image composed of the image data acquired by the imaging means, and the brightness level is in a predetermined range. For the pixel portion consisting of the pixels inside, the brightness value of each pixel in the pixel portion is converted so as to increase the brightness interval between the pixels while maintaining the vertical relationship of the relative brightness between the pixels. An image pickup apparatus including a gradation correction means for performing adjustment correction is disclosed.

特許文献4、5は本発明者の提案であり、特許文献4の内容は、撮影した画像からピクセル単位の画像データを1パスで取り込み、取り込んだ画像データをピクセル単位で特定の色空間に分解した後に輝度のヒストグラムを生成し、この画像輝度情報を所定の読み取りパターンで読み出し、前記読み取りパターンの中の特定位置(中心)のピクセルを除いた平均ヒストグラムを基本として前記読み取りパターンの特定位置のピクセルの輝度を設定する方法である。 Patent Documents 4 and 5 are proposals of the present inventor, and the content of Patent Document 4 is that image data in pixel units is captured in one pass from a captured image, and the captured image data is decomposed into a specific color space in pixel units. After that, a brightness histogram is generated, this image brightness information is read out with a predetermined reading pattern, and the pixels at the specific position of the reading pattern are based on the average histogram excluding the pixels at the specific position (center) in the reading pattern. It is a method of setting the brightness of.

特許文献5には、入力信号を局所的に分割してトーンマップを求め、このトーンマップを補正することで入力信号のコントラストを改善するにあたり、輝度変化が少ない領域についてはトーンマップの入力輝度信号を出力輝度信号に変換する際に勾配制限を設けて出力輝度信号が一定以上に変化しないようにして輝度変化を抑制し、更に前記勾配制限によって低下した領域全体の輝度を全体的に調整する内容が開示されている。 In Patent Document 5, when the tone map is obtained by locally dividing the input signal and the contrast of the input signal is improved by correcting the tone map, the input luminance signal of the tone map is used for a region where the luminance change is small. Is converted into an output luminance signal, a gradient limit is provided so that the output luminance signal does not change beyond a certain level to suppress the luminance change, and further, the brightness of the entire region reduced by the luminance limitation is adjusted as a whole. Is disclosed.

従来の黒つぶれの修正処理としては、特許文献6〜9がある。特許文献6には、逆光などの輝度差が大きい状況において撮影した画像を復元する方法が記載されている。具体的には、段落(0038)、(0039)に記載されるように、ヒストグラムを作成し、輝度値ゼロにおける度数が閾値よりも大きい場合には黒つぶれになっていると判断し、その部分の明るさを補正することが記載されている。 Patent Documents 6 to 9 are available as conventional blackout correction processing. Patent Document 6 describes a method of restoring an image taken in a situation where the brightness difference is large such as backlight. Specifically, as described in paragraphs (0038) and (0039), a histogram is created, and when the frequency at zero luminance value is larger than the threshold value, it is determined that the image is underexposed, and that portion is determined. It is described to correct the brightness of.

特許文献7には、画像の暗部と明部の輝度差が大きくなった場合に通常撮像モードから合成撮像モードに切換え、輝度差を低減する黒つぶれ補正を行うため、長時間露光画像信号及び短時間露光画像信号をそれぞれ自動露光制御することが記載されている。 In Patent Document 7, when the brightness difference between the dark part and the bright part of the image becomes large, the normal imaging mode is switched to the composite imaging mode, and blackout correction is performed to reduce the brightness difference. It is described that each time-exposure image signal is automatically exposed and controlled.

特許文献8には、露光時間が長い長時間露光画像信号と露光時間が短い短時間露光画像を合成し、合成画像信号に輝度積算値とヒストグラムを生成し、輝度ヒストグラムから合成画像信号における黒つぶれを検出し、検出結果に基づいて目標輝度積算値を設定し、該目標輝度積算値を用いて、上記撮像部の露光補正制御を行うことが記載されている。 In Patent Document 8, a long-exposure image signal having a long exposure time and a short-exposure image having a short exposure time are combined, a luminance integrated value and a histogram are generated in the composite image signal, and blackout in the composite image signal is generated from the luminance histogram. It is described that the target luminance integrated value is set based on the detection result, and the exposure compensation control of the imaging unit is performed using the target luminance integrated value.

特許文献9には、バッテリー残容量を取得可能な撮像装置が開示されている。この撮像装置はバッテリーの残容量が少ない時またはバッテリーが故障している時にバッテリーセグメントを表示する判定手段を備え、この判定手段は黒つぶれ又は白つぶれしている画素が、所定の値を超えている時、ヒストグラムを表示するように判定を行うことが記載されている。 Patent Document 9 discloses an imaging device capable of acquiring the remaining battery capacity. This imaging device is provided with a determination means for displaying a battery segment when the remaining capacity of the battery is low or when the battery is out of order. In this determination means, the number of black or white pixels exceeds a predetermined value. When present, it is stated that the determination is made to display the histogram.

特開2002−142150号公報Japanese Unexamined Patent Publication No. 2002-142150 特開2003−051944号公報Japanese Unexamined Patent Publication No. 2003-051944 特開2007−124087号公報Japanese Unexamined Patent Publication No. 2007-124087 特許第4386959号公報Japanese Patent No. 4386959 特許第6126054号公報Japanese Patent No. 6126054 特開2011−223173号公報Japanese Unexamined Patent Publication No. 2011-223173 特開2002−084449号公報JP-A-2002-084449 特開2008−228058号公報Japanese Unexamined Patent Publication No. 2008-228058 特開2016−092798号公報Japanese Unexamined Patent Publication No. 2016-092798

上述した特許文献1〜3に開示される処理は処理時間がかかる。特許文献4,5に開示される方法によれば処理時間を短縮し、動画のリアルタイム処理が可能になる。しかしながら、特許文献4に記載した方法でも、部分的に明るさの変動が大きすぎる箇所が生じたり、ノイズを除去できない場合が生じる。 The process disclosed in Patent Documents 1 to 3 described above takes a long time. According to the methods disclosed in Patent Documents 4 and 5, the processing time can be shortened and real-time processing of moving images becomes possible. However, even with the method described in Patent Document 4, there may be a case where the variation in brightness is too large or noise cannot be removed.

特許文献5に開示した内容は、AHE(Adaptive Histogram Equalization)やCLAHE(Constract Limited AHE)といった取り込んだ画像データを所定のパターンで読み出したり、取り込んだ画像を複数のブロックに分割し、それぞれの小領域のヒストグラムを生成し、その領域ごとにトーンマップを作成している。 The contents disclosed in Patent Document 5 include reading captured image data such as AHE (Adaptive Histogram Equalization) and CLAHE (Constract Limited AHE) in a predetermined pattern, dividing the captured image into a plurality of blocks, and dividing each small area. Histogram is generated and a tone map is created for each area.

このように、小領域ごとにトーンマップを作成すると、小領域の境界線がぼんやりと見えてしまうことがある。
更に、AHEやCLAHEは画像をスキャンして領域ごとにヒストグラムを作成してからトーンマップを作成するためリアルタイム処理を行うには多くの高速メモリを必要とすること、および画素単位で独立した処理ができないことから、GPUやFGPAには不向きと言える。
When a tone map is created for each small area in this way, the boundary line of the small area may be vaguely visible.
Furthermore, since AHE and CLAHE scan images to create a histogram for each area and then create a tone map, a lot of high-speed memory is required for real-time processing, and independent processing is performed on a pixel-by-pixel basis. It can be said that it is not suitable for GPU and FGPA because it cannot be done.

特許文献6〜9では、逆光や陰影補正(黒つぶれ補正)を行うにあたり、輝度のヒストグラムを作成し、このヒストグラムの平坦化を行っている。ヒストグラムの平坦化を行うには、画面全体のヒストグラムをカウントする必要があり、このため大きなメモリが必要になり処置時間も長くなってしまう。 In Patent Documents 6 to 9, a histogram of brightness is created and the histogram is flattened when performing backlight and shadow correction (blackout correction). In order to flatten the histogram, it is necessary to count the histogram of the entire screen, which requires a large memory and increases the treatment time.

更に、鮮明化処理では暗い部分でコントラストが過多になる問題点があり、黒つぶれ補正処理では明るい部分でのコントラストが不足しがちになり、これらを同時に満足する処理方法は何れの先行技術にも提案されていない。 Further, the sharpening process has a problem that the contrast becomes excessive in a dark part, and the blackout correction process tends to lack the contrast in a bright part. Not proposed.

上記課題を解決すべく本発明に係る画像処理方法は、鮮明化処理を行った画像と黒つぶれ処理を行った画像とを合成する画像処理であって、前記黒つぶれ処理において使用したフラットフレームの原理を利用して画像の暗い部分は黒つぶれ処理の比率を高め、明るい部分は鮮明化処理の比率を高めるようにした。 The image processing method according to the present invention in order to solve the above problems is an image processing in which an image subjected to sharpening processing and an image subjected to blackout processing are combined, and the flat frame used in the blackout processing is used. Using the principle, the dark part of the image has a higher ratio of blackout processing, and the bright part has a higher ratio of sharpening processing.

前記鮮明化処理の具体例は、取り込んだ画像データをピクセル単位で処理するにあたり、画像走査の走査位置となる注目ピクセルの周囲にn個(nは整数)の参照ピクセルを設定し、注目ピクセルのピクセル値(輝度)と各参照ピクセルのピクセル値(輝度)を順次比較し、注目ピクセル値以下のピクセル値であった参照ピクセルの数をカウントし、これと並行して各参照ピクセルのヒストグラム値を+1して予め設定した傾き制限値と比較し、参照ピクセル値が注目ピクセル値以下である条件とピクセルのヒストグラム値が傾き制限値以下である条件の両方の条件を満たす参照ピクセルの数をカウントすることで双方真のカウント値を求め、この双方真のカウント値を比例按分して出力する。 In the specific example of the sharpening process, when processing the captured image data on a pixel-by-pixel basis, n reference pixels (n is an integer) are set around the pixel of interest, which is the scanning position of the image scan, and the pixel of interest The pixel value (brightness) and the pixel value (brightness) of each reference pixel are sequentially compared, the number of reference pixels that were less than or equal to the pixel value of interest is counted, and in parallel with this, the histogram value of each reference pixel is calculated. Compare with the tilt limit value set in advance by +1 and count the number of reference pixels that satisfy both the condition that the reference pixel value is less than or equal to the attention pixel value and the condition that the pixel histogram value is less than or equal to the tilt limit value. By doing so, the true count values of both sides are obtained, and the true count values of both sides are proportionally divided and output.

前記黒つぶれ処理の具体例は、入力画像のYプレーン(輝度プレーン)メモリ内の各ピクセルの輝度にガウシアンBlur処理を行うことで輝度がぼけたBlur値を求め、このBlur値を正規化して0〜1.0の値をとる分布情報とし、更に正規化した値0〜1.0の間で閾値を設定し、この閾値よりも大きい値のピクセルについては全て1.0とし、閾値よりも小さい値の暗部のピクセルについては最も暗いピクセルの輝度倍率(n)を決め、その逆数(1/n)を分布情報の最低値とするように分布情報を補正し、補正した暗部の輝度分布情報(1/n〜1.0)を分母として入力画像の輝度を除算する。 In a specific example of the blackout processing, a Blur value with blurred brightness is obtained by performing Gaussian Blur processing on the brightness of each pixel in the Y plane (luminance plane) memory of the input image, and this Blur value is normalized to 0. The distribution information takes a value of ~ 1.0, and a threshold value is set between 0 and 1.0, which is a normalized value. All pixels with a value larger than this threshold value are set to 1.0, and dark areas with a value smaller than the threshold value are set. Determines the brightness magnification (n) of the darkest pixel, corrects the distribution information so that the inverse number (1 / n) is the lowest value of the distribution information, and corrects the brightness distribution information of the dark part (1 / n to 1.0). Is the denominator to divide the brightness of the input image.

本発明によれば、鮮明化処理及び黒つぶれ補正処理でも解消せずに残る問題点を同時に解消することができる。 According to the present invention, it is possible to simultaneously solve the problems that remain unsolved even in the sharpening process and the blackout correction process.

本発明は取り込んだ画像データを小領域ごとに分けることなくピクセル(画素)単位で独立して処理することを前提とする。即ち、各領域ごとのヒストグラムも生成しないので、処理速度が大幅にアップし、リアルタイムで修正画像を表示できる。 The present invention presupposes that the captured image data is processed independently in pixel units without being divided into small areas. That is, since the histogram for each area is not generated, the processing speed is greatly increased and the corrected image can be displayed in real time.

従来のように、実際に多くのメモリを使って領域別のヒストグラムとトーンマップを作成するのではなく、ロジックを実行することでヒストグラムとトーンマップを作成したのと同じ結果が得られる。 Instead of actually using a lot of memory to create a histogram and tonemap for each area as in the past, you can get the same result as creating a histogram and tonemap by executing logic.

ヒストグラムやトーンマップ用のメモリは不要となり、ラインバッファのみで実装が可能となる。遅延はラインバッファ分のみで、ヒストグラムの取得など全画面の統計を必要としないため、フレーム単位の遅れが生じない。 No memory for histograms and tone maps is required, and implementation is possible using only the line buffer. Since the delay is only for the line buffer and does not require full-screen statistics such as histogram acquisition, there is no delay in frame units.

ロジック自体がシンプルなため小規模FPGAや他の映像回路の空きエリアに実装可能で、またヒストグラム配列など画素深度(ビット数)に比例するロジックやメモリがないため36ビットや48ビットといった高いビット深度でも回路規模は殆ど変わらない。 Since the logic itself is simple, it can be mounted in an empty area of a small FPGA or other video circuit, and because there is no logic or memory proportional to the pixel depth (number of bits) such as a histogram array, it has a high bit depth of 36 bits or 48 bits. But the circuit scale is almost the same.

本願発明にかかるロジカルな画像処理方法の基本を説明したブロック図A block diagram illustrating the basics of a logical image processing method according to the present invention. (a)は黒つぶれ処理における水平Blur処理について説明した図、(b)は垂直Blur処理について説明した図(A) is a diagram explaining the horizontal Blur processing in the blackout processing, and (b) is a diagram explaining the vertical Blur processing. 鮮明化処理の基本を説明した図Diagram explaining the basics of sharpening processing 図3に対応する参照ピクセルのヒストグラムを平均化した仮想トーンマップVirtual tone map averaging histograms of reference pixels corresponding to FIG. 鮮明化処理の実装例を示す図The figure which shows the implementation example of the sharpening process 図5対応する仮想トーンマップFigure 5 Corresponding virtual tone map 鮮明化処理の別実装例を示す図Diagram showing another implementation example of sharpening processing 図7に対応する仮想トーンマップVirtual tone map corresponding to FIG. 鮮明化処理の別実装例を示す図Diagram showing another implementation example of sharpening processing 図9に対応する仮想トーンマップVirtual tone map corresponding to FIG. 鮮明化処理の別実装例を示す図Diagram showing another implementation example of sharpening processing 図11に対応する仮想トーンマップVirtual tone map corresponding to FIG. 鮮明化処理の別実装例を示す図Diagram showing another implementation example of sharpening processing 図13に対応する仮想トーンマップVirtual tone map corresponding to FIG. 鮮明化処理の別実装例を示す図Diagram showing another implementation example of sharpening processing 図15に対応する仮想トーンマップVirtual tone map corresponding to FIG. (a)は元画像、(b)は黒つぶれ処理後の画像、(c)は鮮明化処理後の画像、(d)は画像合成後(本発明)の画像(A) is the original image, (b) is the image after the blackout processing, (c) is the image after the sharpening processing, and (d) is the image after image composition (the present invention).

図1に示すように、入力画像は黒つぶれ処理(FC:フラットコレクタ)と鮮明化処理とを同時並行して行い、黒つぶれ処理後の画像と鮮明化処理後の画像を黒つぶれ処理で用いたフラットフレームの原理を利用して合成して出力する。 As shown in FIG. 1, the input image is subjected to blackout processing (FC: flat collector) and sharpening processing in parallel, and the image after blackout processing and the image after sharpening processing are used for blackout processing. It is synthesized and output using the principle of the flat frame that was used.

黒つぶれ処理では、図1に示すように、入力画像をカラー分解し、色味(CbCr)、輝度(Y)及び3原色(RGB)を抽出する。本発明では、輝度(Y)に対して、Blur処理及びフラット処理を行い、色味(CbCr)及び3原色(RGB)とカラー合成を行って出力画像とする。尚、本発明ではフラットフレーム(輝度が均一化された画像)を作成するのではなく、フラットフレームの原理を利用するだけである。 In the blackout process, as shown in FIG. 1, the input image is color-separated, and the tint (CbCr), the brightness (Y), and the three primary colors (RGB) are extracted. In the present invention, the brightness (Y) is subjected to Blur processing and flat processing, and color combination with tint (CbCr) and three primary colors (RGB) is performed to obtain an output image. In the present invention, a flat frame (an image having uniform brightness) is not created, but only the principle of the flat frame is used.

前記Blur処理では輝度の大まかな変動画像つまり輝度がぼけた画像を作成する。本実施例ではガウス関数を用いて画像をぼかすガウシアンブラー(Gaussian Blur)処理を行った。 In the Blur process, a roughly variable image of brightness, that is, an image with blurred brightness is created. In this example, Gaussian Blur processing was performed to blur the image using a Gaussian function.

ガウシアンブラー(Gaussian Blur)処理は、例えば、図2(a)に示す水平Blur処理を行い、この水平Blur処理済みのラインバッファに対して図2(b)に示す垂直Blur処理を行ってブラープレーンを作成する。 In the Gaussian Blur processing, for example, the horizontal Blur processing shown in FIG. 2A is performed, and the vertical Blur processing shown in FIG. 2B is performed on the horizontal Blur-processed line buffer to perform the blur plane. To create.

上記水平Blur処理の際に、入力画像の最低値の過去4フレームを平均して入力映像最低値(Ymin)を求める。
またガウシアンブラー(Gaussian Blur)処理を行いながら、Blur画像の最小値(Bmin)と最大値(Bmax)を求める。
At the time of the horizontal Blur processing, the minimum value (Ymin) of the input video is obtained by averaging the past 4 frames of the minimum value of the input image.
Further, while performing Gaussian Blur processing, the minimum value (Bmin) and the maximum value (Bmax) of the Blur image are obtained.

本発明のロジックを実装するにあたっては、半径Rのガウシアンテーブルを用いガウス計算は行わない。また、半径Rは最大30ピクセルとして、ラインバッファは62本(30×2+中心1+水平計算用1)用いる。 In implementing the logic of the present invention, Gaussian calculation is not performed using a Gaussian table with radius R. Further, the radius R is 30 pixels at the maximum, and 62 line buffers (30 × 2 + center 1 + horizontal calculation 1) are used.

図示例では、カーネルサイズが61×61になるので、処理面積を減らすためにガウシアンブラー(Gaussian Blur)処理を水平Blurと垂直Blurに分けたが、分けずに単純にカーネルフィルタでもよい。 In the illustrated example, since the kernel size is 61 × 61, the Gaussian Blur processing is divided into horizontal Blur and vertical Blur in order to reduce the processing area, but a kernel filter may be simply used without dividing.

上記のガウシアンブラー(Gaussian Blur)処理によってBlurプレーンを作成したら、フラットフレームを生成する。Blurプレーンと入力映像最低値(Ymin)から生成する。尚、本発明では実際にフラットフレームを作成するのではなく、フラットフレームの原理を利用するだけであるのは前記した通りである。 After creating the Blur plane by the above Gaussian Blur process, generate a flat frame. Generated from the Blur plane and the lowest input video value (Ymin). As described above, the present invention does not actually create a flat frame, but merely uses the principle of the flat frame.

フラットフレームの生成では、Blurプレーンを正規化して0〜1.0の値をとる分布情報とし、更に正規化した値0〜1.0の間で閾値を設定し、この閾値よりも大きい値のピクセルについては全て1.0とし、閾値よりも小さい値の暗部のピクセルについては最も暗いピクセルの輝度倍率(n)を決め、その逆数(1/n)を分布情報の最低値とするように分布情報を修正する。 In flat frame generation, the Blur plane is normalized to be distribution information that takes a value from 0 to 1.0, a threshold is set between the normalized values 0 to 1.0, and all pixels with values larger than this threshold are set. Set it to 1.0, determine the brightness magnification (n) of the darkest pixel for the dark pixel with a value smaller than the threshold value, and modify the distribution information so that the reciprocal (1 / n) is the lowest value of the distribution information.

例えば、閾値として0.5を設定したとすると、正規化値0〜1.0のうち、0〜0.5までが0〜1.0となり0.5以上は全て1.0となる。
このような補正を行うことで、入力画像で0.5以上の輝度があるピクセル(画素)は分布情報では1.0となり、後の処理(輝度分布情報を分母として入力画像を除算)で元の画像から変化しない。一方、暗い部分は分母が徐々に小さくなるため元の画像が暗いほど倍率が高くなるように暗部は補正される。
For example, if 0.5 is set as the threshold value, among the normalized values 0 to 1.0, 0 to 0.5 are 0 to 1.0, and 0.5 and above are all 1.0.
By performing such correction, pixels with a brightness of 0.5 or more in the input image will be 1.0 in the distribution information, and will change from the original image in later processing (dividing the input image with the brightness distribution information as the denominator). do not. On the other hand, since the denominator of the dark part gradually becomes smaller, the dark part is corrected so that the darker the original image, the higher the magnification.

フラットフレーム生成に続いてフラット処理を行う。このフラット処理では、Blurプレーンと前記入力映像最低値(Ymin)から現フレームの処理行う。即ち、入力画像の輝度(Y)及び3原色(RGB)をBlurプレーンで割り算する処理である。 Flat processing is performed following flat frame generation. In this flat processing, the current frame is processed from the Blur plane and the input video minimum value (Ymin). That is, it is a process of dividing the luminance (Y) and the three primary colors (RGB) of the input image by the Blur plane.

上記において注目ピクセルの垂直Blurの値が確定した時点で、Blurプレーンの作成から分布情報の取得と補正までの処理が可能となるので、フレームバッファを使わずラインバッファ分の遅延のみでリアルタイム処理が可能である。 When the vertical Blur value of the pixel of interest is determined in the above, processing from the creation of the Blur plane to the acquisition and correction of distribution information becomes possible, so real-time processing can be performed with only the delay of the line buffer without using the frame buffer. It is possible.

フラット処理には、ノーマル処理とカラーバースト処理があり、ノーマル処理では輝度(Y)のみを処理して、出力前に色味(CbCr)と合成し、カラーバースト処理では輝度(Y)の代わりに3原色(RGB)プレーンを対象に同じ計算を行う。 Flat processing includes normal processing and color burst processing. In normal processing, only brightness (Y) is processed and combined with tint (CbCr) before output, and in color burst processing, instead of brightness (Y). The same calculation is performed for the three primary color (RGB) planes.

フラット処理の一般計算式は以下の通りである。
出力画像F(x,y)=入力画像Y(x,y)*256/フラットフレームBlur(x,y)
256はビット深度が8bitの場合
The general calculation formula for flat processing is as follows.
Output image F (x, y) = Input image Y (x, y) * 256 / Flat frame Blur (x, y)
256 is when the bit depth is 8 bits

上記の式にBlurプレーン補正(分布情報補正)の式を適用すると出力画像は以下の式になる。

Figure 0006893068
When the Blur plane correction (distribution information correction) formula is applied to the above formula, the output image becomes the following formula.
Figure 0006893068

次に鮮明化処理を図3以降に基づいて説明する。図3においてP0は注目ピクセルで、この注目ピクセルP0の明るさ(輝度)を調整する。また、図4は図3の方法で処理する際の参照ピクセル(図3では、P1〜P8の8個)から求められる実行結果を参照ピクセルが持ち得る全ての明るさでグラフ化した仮想トーンマップである。
本発明は注目ピクセルと参照ピクセルから注目ピクセルに対する唯一1つの変換結果を得るものでありトーンマップを出力するものではない。
Next, the sharpening process will be described with reference to FIGS. 3 and later. In FIG. 3, P0 is a pixel of interest, and the brightness (luminance) of the pixel of interest P0 is adjusted. Further, FIG. 4 is a virtual tone map in which the execution results obtained from the reference pixels (8 in P1 to P8 in FIG. 3) when processed by the method of FIG. 3 are graphed at all the brightnesses that the reference pixels can have. Is.
The present invention obtains only one conversion result from a pixel of interest and a reference pixel to a pixel of interest, and does not output a tone map.

処理の手順は、先ず注目ピクセルP0とその周囲の参照ピクセルP1〜P8の輝度を比較し、注目ピクセルP0の輝度より小さな輝度の参照ピクセルの数をカウントし、このカウント値に応じて注目ピクセルP0の輝度を所定のアルゴリズムに従って修正する。 The processing procedure first compares the brightness of the attention pixel P0 and the reference pixels P1 to P8 around it, counts the number of reference pixels having a brightness smaller than the brightness of the attention pixel P0, and counts the number of reference pixels having a brightness smaller than the brightness of the attention pixel P0. The brightness of is corrected according to a predetermined algorithm.

例えば注目ピクセルP0の輝度より小さな輝度の参照ピクセルの数が1個で、P0の輝度より大きな輝度の参照ピクセルの数が7個の場合には、参照ピクセルの値を出力可能な最大輝度を1として1/8の輝度に修正する。尚、修正アルゴリズムはこれに限らない。 For example, when the number of reference pixels having a brightness smaller than the brightness of the pixel of interest P0 is one and the number of reference pixels having a brightness larger than the brightness of P0 is seven, the maximum brightness that can output the value of the reference pixel is 1. Correct the brightness to 1/8. The correction algorithm is not limited to this.

以上の操作をFPGAやCPUに実装する場合は注目ピクセルを1個ずつ行方向に移動させ、この処理を各行ごとに並行処理することで、全てのピクセルの輝度を修正し、明度の平滑化を行う。
またGPUに実装する場合はこれらの操作がピクセル毎に独立しているため複数のコアで同時に並列処理を行うことで全てのピクセルの輝度を修正し、明度の平滑化を行う。
When implementing the above operation on FPGA or CPU, move the pixel of interest one by one in the row direction, and perform this process in parallel for each row to correct the brightness of all pixels and smooth the brightness. Do.
When mounting on a GPU, these operations are independent for each pixel, so the brightness of all pixels is corrected and the brightness is smoothed by performing parallel processing on multiple cores at the same time.

一方、図4に示す仮想トーンマップは実際にアルゴリズム上生成されるわけでなく、すべての入力輝度に対してロジックの実行結果を分かりやすく示したものである。 On the other hand, the virtual tone map shown in FIG. 4 is not actually generated by the algorithm, and shows the execution result of the logic in an easy-to-understand manner for all the input luminances.

上記実装例には改良の余地が残されている。具体的には図2の仮想トーンマップには、入力に対して出力が急激に大きくなる箇所、具体的には45°以上の傾きになる箇所が3箇所存在する。この箇所はノイズなどのように明るさが突出して大きくなる箇所である。 There is room for improvement in the above implementation example. Specifically, in the virtual tone map of FIG. 2, there are three places where the output suddenly increases with respect to the input, specifically, there are three places where the inclination is 45 ° or more. This place is a place where the brightness becomes prominent and large like noise.

図5は上記を改良した実装例を示す図、図6は図5に対応する仮想トーンマップであり、図6において点線は図4のロジックを実行した場合の仮想トーンマップである。 FIG. 5 is a diagram showing an implementation example in which the above is improved, FIG. 6 is a virtual tone map corresponding to FIG. 5, and the dotted line in FIG. 6 is a virtual tone map when the logic of FIG. 4 is executed.

このような明るさが突出した部分をなくすため、参照ピクセルP1からP8まで順にピクセル値(輝度)を注目ピクセルP0のピクセル値と比較し、注目ピクセルP0のピクセル値以下かどうかの判断を行う。 In order to eliminate such a portion where the brightness is prominent, the pixel value (luminance) of the reference pixels P1 to P8 is compared with the pixel value of the attention pixel P0 in order, and it is determined whether or not it is equal to or less than the pixel value of the attention pixel P0.

これと並行して、参照ピクセルのヒストグラム値を+1して、傾き制限値(45°)と比較し、傾き制限値以下かどうかの判断を行う。 In parallel with this, the histogram value of the reference pixel is incremented by +1 and compared with the tilt limit value (45 °) to determine whether or not it is equal to or less than the tilt limit value.

そして、前項2つの判断が両方成り立つ参照ピクセル数を双方真のカウント値としてカウントし、この双方真のカウント値に基づいて注目ピクセルの明るさを出力する。
上記の処理により、図6の実線で示すように、明るさが突出して変化する部分のない見やすい画像が得られる。
Then, the number of reference pixels for which both of the above two judgments are satisfied is counted as a true count value for both, and the brightness of the pixel of interest is output based on the true count values for both.
By the above processing, as shown by the solid line in FIG. 6, an easy-to-see image without a portion where the brightness changes prominently can be obtained.

注目ピクセル値以下のピクセル値であり、かつ各参照ピクセルのヒストグラム値を+1して予め設定した傾き制限値と比較してこの傾き制限値以下であった参照ピクセルの数を双方真のカウント値としてカウントすることで傾き制限を考慮した
一方、この状態では画像全体が暗くなることがある。これを是正する構成を図7と図8の仮想トーンマップに示す。
The number of reference pixels that are less than or equal to the pixel value of interest and are less than or equal to this tilt limit value compared to the preset tilt limit value by adding +1 to the histogram value of each reference pixel is used as the true count value for both. While the tilt limit is taken into consideration by counting, the entire image may become dark in this state. The configuration for correcting this is shown in the virtual tone maps of FIGS. 7 and 8.

図7に示す実装例では、注目ピクセルP0のピクセル値以下であること及び傾き制限値以下であることの両方の条件を満たす参照ピクセル数を双方真のカウント値とし、更に傾き制限値よりも大きいヒストグラムの参照ピクセル数(非カウント値)をカウントし、輝度のオフセット値を0〜nの値を持つ外部パラメータとして設定し、前記双方真のカウント値に(非カウント値×オフセット値/n)を加えて出力する。
ここで、オフセット値は傾き制限によって減った終点値の明るさ(a+b)の何割を持ち上げるかで決定する。
出力=双方真のカウント値+(非カウント値×オフセット値/n)
(n:参照ピクセル数、例えば128または256)
(オフセット値は0〜n)
In the implementation example shown in FIG. 7, the number of reference pixels that satisfy both the pixel value of the pixel of interest P0 or less and the tilt limit value or less is set as the true count value, and is further larger than the tilt limit value. Count the number of reference pixels (non-count value) of the histogram, set the brightness offset value as an external parameter with a value of 0 to n, and set (non-count value x offset value / n) to the true count value of both. In addition, it outputs.
Here, the offset value is determined by what percentage of the brightness (a + b) of the end point value reduced by the inclination limit is raised.
Output = true count value on both sides + (non-count value x offset value / n)
(N: number of reference pixels, eg 128 or 256)
(Offset value is 0 to n)

上記によって、図8に示すように、画像の過疎トーンマップ特性には変化がないが画像全体がオフセット分だけ明るくなる。 As a result, as shown in FIG. 8, the depopulated tone map characteristics of the image do not change, but the entire image becomes brighter by the offset.

図9は前記したオフセット量を領域ごとに自動計算する実装例を示した例であり、この実装例では、読みだした参照ピクセル値と注目ピクセル値を比較し、参照ピクセルのヒストグラム値を+1して予め設定した傾き制限値と比較し、参照ピクセルのヒストグラム値が傾き制限値より大なら非カウント値としてカウントする。 FIG. 9 shows an implementation example in which the above-mentioned offset amount is automatically calculated for each region. In this implementation example, the read reference pixel value and the attention pixel value are compared, and the histogram value of the reference pixel is incremented by +1. If the histogram value of the reference pixel is larger than the tilt limit value, it is counted as a non-count value.

上記と並行して予め設定した傾き制限値以下であった参照ピクセル値を単純に加算し、参照ピクセル数で割って平均値を算出し、これをピクセルの最大輝度(8ビットなら256)で割った値を0~nに比例按分してオフセット値とする。即ち、参照ピクセルの平均輝度をそのままオフセット値とすることで、注目ピクセルP0の輝度を周辺の輝度にマッチさせることができる。 In parallel with the above, simply add the reference pixel values that were less than or equal to the preset tilt limit value, divide by the number of reference pixels to calculate the average value, and divide this by the maximum pixel brightness (256 for 8 bits). The value is proportionally divided from 0 to n to obtain the offset value. That is, by using the average brightness of the reference pixel as it is as the offset value, the brightness of the pixel of interest P0 can be matched with the brightness of the surroundings.

そして、以下に示すように双方真のカウント値に(非カウント値×オフセット値/n)を加えて出力する。
出力=双方真のカウント値+(非カウント値×オフセット値/n)
Then, as shown below, (non-count value x offset value / n) is added to both true count values and output.
Output = true count value on both sides + (non-count value x offset value / n)

図10は上記の処理による仮想トーンマップであり、この実装例では、参照ピクセルの平均輝度をそのままオフセット値とすることで、周辺の明るさにマッチしたトーンマップを自動生成できる。 FIG. 10 is a virtual tone map obtained by the above processing. In this implementation example, a tone map matching the brightness of the surroundings can be automatically generated by using the average brightness of the reference pixels as an offset value as it is.

上述した画像処理により、周囲に対し極端に明るさが突出した部分がなくなり且つ画像全体が暗くなることもなくなったが、画像全体のコントラストが不足する場合がある。これを解消する実装例を図11に示す。 By the above-mentioned image processing, the portion where the brightness is extremely outstanding with respect to the surroundings is eliminated and the entire image is not darkened, but the contrast of the entire image may be insufficient. An implementation example for solving this problem is shown in FIG.

この実装例では、注目ピクセルP0のピクセル値以下であること及び傾き制限値以下であることの両方の条件を満たす参照ピクセル数を双方真のカウント値とし、更に傾き制限値よりも大きいヒストグラムの参照ピクセル数(非カウント値)をカウントする。 In this implementation example, the number of reference pixels that satisfy both the pixel value of the pixel of interest P0 or less and the tilt limit value or less is set as the true count value, and the reference of the histogram that is larger than the tilt limit value is used. Count the number of pixels (non-counting value).

そして、コントラストの強度値を0〜nの値を持つ外部パラメータとして設定し、前記双方真のカウント値に{n/(n−非カウント値×強度値/n)}を掛け合わせることで、注目ピクセルP0の輝度が出力される。
出力=双方真のカウント値×n/(n−非カウント値×強度値/n)
(n:参照ピクセル数、例えば128または256)
(強度値は0〜n)
Then, by setting the contrast intensity value as an external parameter having a value of 0 to n and multiplying the true count values of both of them by {n / (n-non-count value × intensity value / n)}, attention is paid. The brightness of pixel P0 is output.
Output = both true count value x n / (n-non-count value x intensity value / n)
(N: number of reference pixels, eg 128 or 256)
(Intensity value is 0 to n)

図12は上記処理によって得られた画像の仮想トーンマップであり、上述した実装例では傾き制限で減った終点値(最大輝度)をオフセットによって均一に引き上げる処理であったが、この実装例では掛け合わせる処理を行うため、傾きも変化している。 FIG. 12 is a virtual tone map of the image obtained by the above processing. In the above-mentioned implementation example, the end point value (maximum brightness) reduced by the tilt limit is uniformly raised by the offset, but in this implementation example, it is multiplied. The tilt is also changing because the matching process is performed.

図13はオフセット機能とコントラス機能を同時に発揮する実装例を示す。この実装例では、注目ピクセルP0のピクセル値以下であること及び傾き制限値以下であることの両方の条件を満たす参照ピクセル数を双方真のカウント値とし、上記と並行して予め設定した傾き制限値以下であった参照ピクセル値を単純に加算し、参照ピクセル数で割って平均値を算出しこれをオフセット値とする。 FIG. 13 shows an implementation example in which the offset function and the contrast function are simultaneously exhibited. In this implementation example, the number of reference pixels that satisfy both the pixel value of the pixel of interest P0 or less and the tilt limit value or less is set as the true count value, and the tilt limit set in advance in parallel with the above. The reference pixel value that was less than or equal to the value is simply added, divided by the number of reference pixels to calculate the average value, and this is used as the offset value.

そして、上記双方真のカウント値に{n/(n−非カウント値×強度値/n)}を掛け合わせ、更に{非カウント値×(n−強度値)/n×オフセット値/n}を加えて出力する。即ち、出力={n/(n−非カウント値×強度値/n)}+{非カウント値×(n−強度値)/n×オフセット値/n}となる。
(n:参照ピクセル数、例えば128または256)
(オフセット値、強度値は0〜n)
Then, the true count values of both of the above are multiplied by {n / (n-non-count value × intensity value / n)}, and further {non-count value × (n-intensity value) / n × offset value / n} is obtained. In addition, output. That is, output = {n / (n-non-count value × intensity value / n)} + {non-count value × (n-intensity value) / n × offset value / n}.
(N: number of reference pixels, eg 128 or 256)
(Offset value and intensity value are 0 to n)

上記の各処理により、部分的に極端に明るさが周囲と異なる箇所(ノイズなど)がなくなり、画像全体のコントラストも修正することができる。しかし、このような処理は同値のピクセルが大半を占める領域においては特定の輝度に偏る傾向がある。例えば、暗い画像でピクセル値が0に偏った場合には画像が白っぽくなる問題がある。 By each of the above processes, the part where the brightness is extremely different from the surroundings (noise, etc.) is eliminated, and the contrast of the entire image can be corrected. However, such processing tends to be biased toward a specific brightness in an area occupied by pixels having the same value. For example, in a dark image, when the pixel value is biased to 0, there is a problem that the image becomes whitish.

図15は図5に示した部分を更に改善した図であり、この実装例では、参照ピクセル値と注目ピクセル値を比較するコンパレータを2つ用意し、注目ピクセル値よりも小さい輝度でかつ傾き制限値以下となった参照ピクセル数と注目ピクセル値と等しい輝度でかつ傾き制限値以下となった参照ピクセルの数を個別にそれぞれカウントする。 FIG. 15 is a diagram obtained by further improving the portion shown in FIG. 5. In this implementation example, two comparators for comparing the reference pixel value and the attention pixel value are prepared, and the brightness is smaller than the attention pixel value and the tilt is limited. The number of reference pixels that are less than or equal to the value and the number of reference pixels that are equal to or less than the value of the pixel of interest and are less than or equal to the tilt limit value are individually counted.

前項で得られた注目ピクセル値より小さい輝度のカウント数に注目ピクセル値と等しい輝度のカウント数を注目輝度に応じて比例加算する。
このようにすることで、図16に示すように、終点(最大輝度)が固定され、始点が原点(0,0)に移動するトーンマップが得られる。
The count number of the brightness equal to the pixel value of interest is proportionally added to the count number of the brightness smaller than the pixel value of interest obtained in the previous section according to the brightness of interest.
By doing so, as shown in FIG. 16, a tone map in which the end point (maximum brightness) is fixed and the start point moves to the origin (0,0) can be obtained.

以上に説明したように、黒つぶれ修正画像(FC出力画像)及び鮮明化出力画像が得られたら、フラットフレームの原理を利用してこれらの画像を合成する。本発明では合成にあたって、単純に黒つぶれ修正画像と鮮明化出力画像をブレンドするのではなく、暗い部分については黒つぶれ修正画像の配分を多くし、明るい部分については鮮明化出力画像の配分を多めにする。 As described above, once the blackout correction image (FC output image) and the sharpening output image are obtained, these images are combined using the principle of flat frame. In the present invention, in compositing, instead of simply blending the blackout correction image and the sharpening output image, the blackout correction image is distributed more in the dark part and the sharpening output image is more distributed in the bright part. To.

上記をCPUで実装する場合には、実際にフラットフレーム生成してからフレーム間で演算を行う。
一方、FPGAなど回路でリアルタイム処理する場合には、実際にフレームバッファに1枚分のフラットフレームを作成するのではなく、ラインバッファを用いてぼかし直径分のリングバッファ(必要分だけ繰り返し利用する構造)を使用してリアルタイム処理を行う。つまりフラットフレームを1画面分作成するのではなく、画面のスキャンに同期して横長の細いフラットフレームをスキャン1ライン毎に生成される。
When the above is implemented by the CPU, the flat frame is actually generated and then the calculation is performed between the frames.
On the other hand, in the case of real-time processing with a circuit such as FPGA, instead of actually creating a flat frame for one frame buffer, a line buffer is used and a ring buffer for the blur diameter (a structure that repeatedly uses as much as necessary). ) Is used for real-time processing. That is, instead of creating a flat frame for one screen, a horizontally long thin flat frame is generated for each scan line in synchronization with the screen scan.

ラインバッファを利用してフラットフレームのぼかし直径分だけ遅れてリアルタイム処理を行う点では、黒つぶれ修正に利用したフラットフレームと同じであるが、黒つぶれ修正の場合には明度情報をガウシアンでぼかした後にレベル補正してフラットフレームとしたが、画面合成の際のレベル補正は黒つぶれ修正の補正値とは異なる場合があり、したがって、ラインバッファにはガウシアンで明度をぼかしただけの状態で保持しておき、黒つぶれ修正と画面合成では異なったレベル補正を行う。尚、レベル補正は足し算と掛け算のみで完結するため、出力直前にリアルタイムで計算することができる。 It is the same as the flat frame used for blackout correction in that real-time processing is performed with a delay of the diameter of the flat frame using the line buffer, but in the case of blackout correction, the brightness information is blurred with Gaussian. Later, the level was corrected to make it a flat frame, but the level correction at the time of screen composition may be different from the correction value of the blackout correction, so the line buffer is kept in a state where the brightness is only blurred with Gaussian. In addition, different level corrections are performed for blackout correction and screen composition. Since the level correction is completed only by addition and multiplication, it can be calculated in real time immediately before output.

図17(a)は元画像であり、暗部において黒つぶれが発生し、且つ鮮明でない部分が存在する。(b)は黒つぶれ処理後の画像であり、黒つぶれは解消しているが明るい部分のコントラストが不足し、電線が白飛びしている。(c)は鮮明化処理後の画像であり、暗い部分のコントラストが過度に強調され、逆光部分の粒子が乱れている。(d)は画像合成後(本発明)の画像であり、黒つぶれ処理及び鮮明化処理の課題がともに解消され、電線は視認でき逆光部分の粒子は整っている。
FIG. 17A is an original image, in which blackouts occur in dark areas and there are unclear areas. (B) is an image after the blackout processing, and although the blackout has been eliminated, the contrast of the bright part is insufficient and the electric wire is overexposed. (C) is an image after the sharpening process, in which the contrast in the dark portion is excessively emphasized and the particles in the backlit portion are disturbed. (D) is an image after image composition (the present invention), in which the problems of blackout processing and sharpening processing are both solved, the electric wire can be visually recognized, and the particles in the backlit portion are arranged.

Claims (2)

鮮明化処理を行った画像と黒つぶれ処理を行った画像とを合成する画像処理であって、前記黒つぶれ処理は、入力画像のYプレーン(輝度プレーン)メモリ内の各ピクセルの輝度にガウシアンBlur処理を行うことで輝度がぼけたBlur値を求め、このBlur値を正規化して0〜1.0の値をとる分布情報とし、更に正規化した値0〜1.0の間で閾値を設定し、この閾値よりも大きい値のピクセルについては全て1.0とし、閾値よりも小さい値の暗部のピクセルについては最も暗いピクセルの輝度倍率(n)を決め、その逆数(1/n)を分布情報の最低値とするように分布情報を補正し、補正した暗部の輝度分布情報(1/n〜1.0)を分母として入力画像の輝度を除算することを特徴とする画像処理方法。 It is an image process that combines an image that has undergone sharpening processing and an image that has undergone blackout processing , and the blackout processing is a Gaussian Blur that determines the brightness of each pixel in the Y plane (luminance plane) memory of the input image. The Blur value with blurred brightness is obtained by processing, and this Blur value is normalized to obtain distribution information that takes a value from 0 to 1.0, and a threshold value is set between the normalized value 0 to 1.0, and this threshold value is set. The brightness magnification (n) of the darkest pixel is determined for all dark pixels with a value smaller than the threshold value, and the inverse number (1 / n) is set as the minimum value of the distribution information. An image processing method characterized in that the distribution information is corrected as described above, and the brightness of the input image is divided using the corrected brightness distribution information (1 / n to 1.0) of the dark part as the denominator. 請求項1に記載の画像処置方法において、前記鮮明化処理は、取り込んだ画像データをピクセル単位で処理するにあたり、画像走査の走査位置となる注目ピクセルの周囲にn個(nは整数)の参照ピクセルを設定し、注目ピクセルのピクセル値(輝度)と各参照ピクセルのピクセル値(輝度)を順次比較し、注目ピクセル値以下のピクセル値であった参照ピクセルの数をカウントし、これと並行して各参照ピクセルのヒストグラム値を+1して予め設定した傾き制限値と比較し、参照ピクセル値が注目ピクセル値以下である条件とピクセルのヒストグラム値が傾き制限値以下である条件の両方の条件を満たす参照ピクセルの数をカウントすることで双方真のカウント値を求め、この双方真のカウント値を比例按分して出力することを特徴とする画像処理方法。 In the image treatment method according to claim 1, in the sharpening process, when processing the captured image data in pixel units, n (n is an integer) reference around the pixel of interest which is the scanning position of the image scanning. Set the pixels, compare the pixel value (brightness) of the noteworthy pixel with the pixel value (brightness) of each reference pixel in sequence, count the number of reference pixels that were less than or equal to the noteworthy pixel value, and parallel this. The histogram value of each reference pixel is incremented by +1 and compared with the preset tilt limit value, and both the condition that the reference pixel value is less than or equal to the attention pixel value and the condition that the pixel histogram value is less than or equal to the tilt limit value are set. An image processing method characterized in that a true count value for both sides is obtained by counting the number of reference pixels to be satisfied, and the true count values for both sides are proportionally divided and output.
JP2021064589A 2021-01-22 2021-04-06 Image processing method Active JP6893068B1 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2021064589A JP6893068B1 (en) 2021-04-06 2021-04-06 Image processing method
KR1020237027837A KR20230133344A (en) 2021-01-22 2021-07-20 Image processing method
PCT/JP2021/027235 WO2022158010A1 (en) 2021-01-22 2021-07-20 Image processing method
EP21921116.6A EP4283558A1 (en) 2021-01-22 2021-07-20 Image processing method
US17/632,644 US20230162473A1 (en) 2021-01-22 2021-07-20 Image processing method
CN202180095840.9A CN116982074A (en) 2021-01-22 2021-07-20 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021064589A JP6893068B1 (en) 2021-04-06 2021-04-06 Image processing method

Publications (2)

Publication Number Publication Date
JP6893068B1 true JP6893068B1 (en) 2021-06-23
JP2022160068A JP2022160068A (en) 2022-10-19

Family

ID=76464564

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021064589A Active JP6893068B1 (en) 2021-01-22 2021-04-06 Image processing method

Country Status (2)

Country Link
JP (1) JP6893068B1 (en)
CN (1) CN116982074A (en)

Also Published As

Publication number Publication date
JP2022160068A (en) 2022-10-19
CN116982074A (en) 2023-10-31

Similar Documents

Publication Publication Date Title
US9218653B2 (en) Method and apparatus for dynamic range enhancement of an image
US7881554B2 (en) Method for correcting a digital image
RU2544793C2 (en) Image processing device and control method therefor
KR20070046010A (en) Method of digital image enhancement
EP3293697A1 (en) Image processing device, imaging device, image processing method, and storage medium storing image processing program for image processing device
JP2014154108A (en) Image processing device
JP6600216B2 (en) Image processing apparatus, image processing method, program, and storage medium
US11887286B2 (en) Image processing device and image processing method to generate image for object recognition
JP2012108898A (en) Image processing device and image processing method
JP2008206111A (en) Photographing apparatus and photographing method
US20080131007A1 (en) Image Coding Method and Image Coding Device
JP4879363B1 (en) Image processing system
KR102199472B1 (en) Apparatus and method for processing image
JP6893068B1 (en) Image processing method
CN112598609A (en) Dynamic image processing method and device
JP2002281312A (en) Device, method and program for processing image
TWI551141B (en) A high dynamic range image synthesizing apparatus and a method thereof for performing exposure mapping based on individual pixels
JP2013179485A (en) Image processing apparatus and control method thereof
WO2022158010A1 (en) Image processing method
JP6879636B1 (en) Image processing method
JP6867563B1 (en) Image processing method
JP5520863B2 (en) Image signal processing device
JP5297897B2 (en) Image signal processing device
TWI475512B (en) Noise processing method of dynamic range image and image capturing device thereof
JP2011022779A (en) Image correction apparatus, image correction method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210406

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20210406

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20210422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210514

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210524

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210528

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210528

R150 Certificate of patent or registration of utility model

Ref document number: 6893068

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150