JP2017072966A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2017072966A
JP2017072966A JP2015199123A JP2015199123A JP2017072966A JP 2017072966 A JP2017072966 A JP 2017072966A JP 2015199123 A JP2015199123 A JP 2015199123A JP 2015199123 A JP2015199123 A JP 2015199123A JP 2017072966 A JP2017072966 A JP 2017072966A
Authority
JP
Japan
Prior art keywords
gradation value
value
gradation
pixel
unit
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.)
Granted
Application number
JP2015199123A
Other languages
Japanese (ja)
Other versions
JP5911633B1 (en
Inventor
信克 原口
Nobukatsu Haraguchi
信克 原口
秀夫 田村
Hideo Tamura
秀夫 田村
美優紀 会沢
Miyuki Aizawa
美優紀 会沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Linkpro
Linkpro Co Ltd
Original Assignee
Linkpro
Linkpro Co Ltd
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 Linkpro, Linkpro Co Ltd filed Critical Linkpro
Priority to JP2015199123A priority Critical patent/JP5911633B1/en
Application granted granted Critical
Publication of JP5911633B1 publication Critical patent/JP5911633B1/en
Publication of JP2017072966A publication Critical patent/JP2017072966A/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To generate a clear image appropriately from an original image.SOLUTION: An image processing apparatus includes: a setting unit which sets an operator formed of a plurality of pixels including a target pixel in an image to be processed; a parameter extraction unit which extracts a minimum grayscale value indicating a minimum value of pixel grayscale values and a maximum grayscale value indicating a maximum value of the pixel grayscale values, on the basis of the grayscale values of the pixels in the operator; and a grayscale value conversion unit which determines a gain, on the basis of the minimum grayscale value and the maximum grayscale value extracted by the parameter extraction unit, and applies the gain to a grayscale value of the target pixel, to determine a grayscale value of the target pixel after conversion.SELECTED DRAWING: Figure 2

Description

本発明の一側面は、画像処理装置に関する。   One aspect of the present invention relates to an image processing apparatus.

従来、下記特許文献1に示されるように、監視カメラ等で撮影された画像(静止画又は動画の各フレーム)等において、同一画面内で極端に明るい部分と暗い部分とが混在する画面を見易い画面に変換する画像処理方法が知られている。   Conventionally, as shown in the following Patent Document 1, it is easy to see a screen in which extremely bright portions and dark portions are mixed in the same screen in an image (still image or moving image frame) taken by a surveillance camera or the like An image processing method for converting to a screen is known.

上記画像処理方法では、画像処理装置が、被写体を撮影した画像からピクセル単位の画像データを取り込む取込手段と、取り込んだ画像データを特定の色空間に分解した後に輝度のヒストグラムを生成するヒストグラム生成手段を備える。画像処理装置は、取込手段にて画像を色別に所定のパターンで読み出し、ヒストグラム生成手段を使ってパターンの中の特定位置のピクセルの周囲の平均ヒストグラムを生成し、この平均ヒストグラムを使って特定位置のピクセルの輝度を設定する。   In the image processing method, the image processing apparatus captures image data in units of pixels from an image obtained by photographing a subject, and generates a histogram of luminance after decomposing the captured image data into a specific color space. Means. The image processing device reads the image in a predetermined pattern for each color by the capturing means, generates an average histogram around the pixel at a specific position in the pattern using the histogram generating means, and specifies using the average histogram Sets the brightness of the pixel at the position.

特許第4386959号公報Japanese Patent No. 4386959

上記手法のように、取り込んだ画像内の各画素の階調を変換することで鮮明化された画像を得るための様々な手法が知られている。このような手法によれば鮮明化されて見易くなった画像を得ることができる。しかし、例えば鮮明化の程度(レベル)が強すぎると、画像内の微細部分が鮮明化され、かえってノイズが目立った画像が生成されてしまう場合もある。そこで、元画像を適切に鮮明化して見易い画像を生成することができる画像処理の手法が要請されている。   Various methods are known for obtaining a sharpened image by converting the gradation of each pixel in the captured image as in the above method. According to such a method, it is possible to obtain an image that is clear and easy to view. However, for example, if the degree of sharpening (level) is too strong, fine portions in the image are sharpened, and an image with noticeable noise may be generated. Therefore, there is a demand for an image processing technique that can appropriately sharpen the original image and generate an easy-to-view image.

本発明の一側面に係る画像処理装置は、処理対象画像内の対象画素を含む複数画素からなるオペレータを設定する設定部と、オペレータ内の各画素の階調値に基づいて、各画素の階調値の最小値を示す最小階調値と各画素の階調値の最大値を示す最大階調値とを抽出するパラメータ抽出部と、パラメータ抽出部により抽出された最小階調値及び最大階調値に基づいてゲインを決定し、当該ゲインを対象画素の階調値に適用することにより対象画素の変換後の階調値を決定する階調値変換部と、を備える。   An image processing apparatus according to an aspect of the present invention provides a setting unit that sets an operator including a plurality of pixels including a target pixel in a processing target image, and a level of each pixel based on a gradation value of each pixel in the operator. A parameter extraction unit for extracting a minimum gradation value indicating the minimum value of the tone values and a maximum gradation value indicating the maximum value of the gradation value of each pixel; and the minimum gradation value and the maximum floor extracted by the parameter extraction unit A tone value conversion unit that determines a gain value based on the tone value and determines the tone value after conversion of the target pixel by applying the gain to the tone value of the target pixel.

このような形態では、オペレータ内の各画素の最小階調値及び最大階調値に基づいて決定されるゲインをオペレータ内の対象画素の階調値に適用する変換処理が実行され、対象画素の変換後の階調値が決定される。このようなオペレータ単位でのゲインの適用を処理対象画像内の各画素を対象画素として実行することにより、オペレータ毎に当該オペレータに含まれる各画素の階調値の分布等に応じて定まる適切な程度の鮮明化を行うことが可能となる。これにより、鮮明化の程度が適切に調整された見易い画像を得ることができる。   In such a form, a conversion process is performed in which the gain determined based on the minimum gradation value and the maximum gradation value of each pixel in the operator is applied to the gradation value of the target pixel in the operator. The converted tone value is determined. By executing the application of gain in units of operators as the target pixel for each pixel in the processing target image, an appropriate value determined depending on the distribution of gradation values of the respective pixels included in the operator for each operator. It is possible to achieve a degree of sharpening. Thereby, it is possible to obtain an easy-to-see image in which the degree of sharpening is appropriately adjusted.

別の形態に係る画像処理装置では、階調値変換部は、処理対象画像において表現し得る階調値の個数を示す階調分解能を最大階調値と最小階調値との差で割ることによりゲインを算出し、対象画素の階調値と最小階調値との差にゲインを乗じることにより対象画素の変換後の階調値を算出してもよい。この構成によれば、予め定められた所定の計算式を用いて、変換後の階調値を容易に算出することができる。   In the image processing apparatus according to another aspect, the gradation value conversion unit divides the gradation resolution indicating the number of gradation values that can be expressed in the processing target image by the difference between the maximum gradation value and the minimum gradation value. The tone value after conversion of the target pixel may be calculated by calculating the gain by multiplying the difference between the tone value of the target pixel and the minimum tone value by the gain. According to this configuration, the converted gradation value can be easily calculated using a predetermined calculation formula.

更に別の形態に係る画像処理装置では、階調値変換部は、ゲイン及び変換後の階調値を決定する前に、最小階調値及び最大階調値の少なくとも一方に所定の調整値を加算又は減算する調整処理を実行してもよい。この構成によれば、例えばユーザの好みや画像の特性等に応じた調整値を最小階調値及び/又は最大階調値に適用することにより、鮮明化の程度(例えば暗さ又は明るさが引き立つ度合い)を調整することができる。   In the image processing apparatus according to another aspect, the gradation value conversion unit applies a predetermined adjustment value to at least one of the minimum gradation value and the maximum gradation value before determining the gain and the converted gradation value. You may perform the adjustment process which adds or subtracts. According to this configuration, for example, by applying an adjustment value according to user preference, image characteristics, or the like to the minimum gradation value and / or the maximum gradation value, the degree of sharpening (for example, darkness or brightness is reduced). The degree of pulling up can be adjusted.

更に別の形態に係る画像処理装置は、オペレータ内の各画素の階調値を取得し、当該各画素の階調値に基づいて0から自然数Nまでの各階調値の画素数を示すヒストグラムを生成する集計部と、ヒストグラムにおいて、階調値0から対象画素の階調値までの各階調値の画素数を加算することにより、又は、階調値Nから対象画素の階調値までの各階調値の画素数を値Nから減算することにより、対象画素の第2の変換後の階調値を決定する第2階調値変換部と、階調値変換部により決定された対象画素の変換後の階調値と第2階調値変換部により決定された対象画素の第2の変換後の階調値とを予め定められた混合比で足し合わせることにより得られる階調値を出力する混合部と、を更に備えてもよい。この構成によれば、いわゆる局所的なゲイン調整によって変換された階調値(変換後の階調値)といわゆるヒストグラム平坦化によって変換された階調値(第2の変換後の階調値)とを混合することにより、ノイズの影響が低減された画像を得ることが可能となる。   An image processing apparatus according to another aspect obtains a gradation value of each pixel in an operator, and displays a histogram indicating the number of pixels of each gradation value from 0 to a natural number N based on the gradation value of each pixel. By adding the number of pixels of each gradation value from the gradation value 0 to the gradation value of the target pixel in the totalizing unit to be generated and the histogram, or each floor from the gradation value N to the gradation value of the target pixel By subtracting the number of pixels of the tone value from the value N, a second tone value conversion unit that determines the tone value after the second conversion of the target pixel, and the target pixel determined by the tone value conversion unit Outputs the gradation value obtained by adding the converted gradation value and the second converted gradation value of the target pixel determined by the second gradation value conversion unit in a predetermined mixing ratio. And a mixing unit. According to this configuration, the tone value converted by so-called local gain adjustment (the tone value after conversion) and the tone value converted by so-called histogram flattening (the tone value after the second conversion) It is possible to obtain an image in which the influence of noise is reduced.

更に別の形態に係る画像処理装置では、パラメータ抽出部は、第2階調値変換部が画素数の加算又は減算のために階調値0又は階調値Nを示すヒストグラムの一端からヒストグラムの他端に向かって各階調値の画素数を参照する処理と並行して、ヒストグラムの一端から他端に向かって各階調値の画素数を参照することにより、最小階調値及び最大階調値を抽出してもよい。この構成によれば、パラメータ抽出部による処理と第2階調値変換部による処理を同時並行して実行することが可能となる。これにより、処理効率の向上が図れるとともに、処理構成(例えば回路構成)の簡単化を図ることができる。   In the image processing apparatus according to another aspect, the parameter extraction unit is configured such that the second gradation value conversion unit converts the histogram from one end of the histogram indicating the gradation value 0 or the gradation value N for addition or subtraction of the number of pixels. In parallel with the process of referring to the number of pixels of each gradation value toward the other end, by referring to the number of pixels of each gradation value from one end of the histogram toward the other end, the minimum gradation value and the maximum gradation value May be extracted. According to this configuration, the process by the parameter extraction unit and the process by the second tone value conversion unit can be executed in parallel. As a result, the processing efficiency can be improved and the processing configuration (for example, circuit configuration) can be simplified.

本発明の一側面によれば、元画像を適切に鮮明化して見易い画像を生成することができる。   According to one aspect of the present invention, an original image can be appropriately sharpened to generate an easy-to-view image.

一実施形態に係る画像処理装置のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the image processing apparatus which concerns on one Embodiment. 画像処理装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of an image processing apparatus. 画質調整処理を説明するための模式図である。It is a schematic diagram for demonstrating image quality adjustment processing. 階調値変換処理を実行する回路例を示す図である。It is a figure which shows the circuit example which performs a gradation value conversion process. 図4に示す回路の第1及び第2の加算モジュールの構成を示す図である。FIG. 5 is a diagram showing a configuration of first and second addition modules of the circuit shown in FIG. 4. 画像処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of an image processing apparatus. 第1変換部を構成する回路の他の例を示す図である。It is a figure which shows the other example of the circuit which comprises a 1st conversion part.

以下、添付図面を参照しながら本発明の実施形態を詳細に説明する。なお、図面の説明において同一又は同等の要素には同一の符号を付し、重複する説明を省略する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the description of the drawings, the same or equivalent elements are denoted by the same reference numerals, and redundant description is omitted.

本発明の一実施形態に係る画像処理装置1は、静止画及び動画の各フレーム等の画像を取り込み、取り込まれた画像内の各画素の階調値を変換することで、鮮明化されて見易くなった画像を生成及び出力する装置である。画像処理装置1は、特定の用途に限定されないが、例えば監視カメラにより撮影された映像の各フレームについて上記処理を実行することにより、各フレームが鮮明化されて見易くなった映像を得ることができる。ここで、鮮明化とは、画像内において階調値の偏りによって見え難くなっている部分を見易くするための画像処理である。すなわち、鮮明化とは、画像内の各画素の階調値を調整する画像処理である。鮮明化によれば、例えば元の画像において極端に明るい(或いは極端に暗い)ため見え難かった部分が見易くなった画像を得ることが可能となる。ここで、階調値とは、色や明るさ等の濃淡を段階的に表現した数値である。本実施形態において、画像処理装置1の処理対象となる画像は、解像度、画素(ピクセル)単位での階調値、階調分解能等の情報を含むものとする。階調分解能とは、階調値を段階的に表現するために用意されているビット数である。例えば階調分解能が8ビットの場合には、階調値を0から255までの256段階の値で表現することができる。   The image processing apparatus 1 according to an embodiment of the present invention captures images such as still images and moving image frames, and converts the gradation values of each pixel in the captured images, thereby making the images clearer and easier to see. It is a device for generating and outputting the resulting image. Although the image processing apparatus 1 is not limited to a specific application, for example, by executing the above-described processing on each frame of a video captured by a surveillance camera, it is possible to obtain a video in which each frame is clear and easy to see. . Here, the sharpening is image processing for making it easy to see a portion that is difficult to see due to a deviation in gradation value in an image. That is, sharpening is image processing that adjusts the gradation value of each pixel in an image. According to the sharpening, for example, it is possible to obtain an image in which a portion that is difficult to see because it is extremely bright (or extremely dark) in the original image becomes easy to see. Here, the gradation value is a numerical value that expresses gradations such as color and brightness in a stepwise manner. In the present embodiment, it is assumed that an image to be processed by the image processing apparatus 1 includes information such as resolution, gradation value in pixel (pixel) units, gradation resolution, and the like. The gradation resolution is the number of bits prepared for expressing gradation values in stages. For example, when the gradation resolution is 8 bits, the gradation value can be expressed by 256 levels from 0 to 255.

図1は、画像処理装置1のハードウェア構成の一例を示す図である。この図に示すように、画像処理装置1は、1以上のCPU(Central Processing Unit)101と、主記憶装置であるRAM(Random Access Memory)102及びROM(Read Only Memory)103と、キーボードやマウス等の入力装置104と、入力画像の取得先となる監視カメラ等の装置や鮮明化後の画像データを蓄積するためのデータベース装置等の外部装置とのデータ通信を行うための通信装置105と、集積回路であるFPGA(Field-programmable gate array)106と、ディスプレイ等の出力装置107と、を備える。   FIG. 1 is a diagram illustrating an example of a hardware configuration of the image processing apparatus 1. As shown in this figure, the image processing apparatus 1 includes one or more CPUs (Central Processing Units) 101, a RAM (Random Access Memory) 102 and a ROM (Read Only Memory) 103, which are main storage devices, a keyboard and a mouse. A communication device 105 for performing data communication with an external device such as a database device for accumulating image data after storing the input device 104 and a device such as a monitoring camera from which an input image is acquired; An FPGA (Field-programmable gate array) 106, which is an integrated circuit, and an output device 107 such as a display are provided.

後述する画像処理装置1の各機能的構成要素は、例えば、RAM102等のハードウェア上に所定のコンピュータソフトウェアを読み込ませ、CPU101の制御の下で入力装置104、通信装置105、FPGA106、及び出力装置107等を動作させ、RAM102及びROM103におけるデータの読み出し及び書き込みを行うことで実現される。FPGA106には、後述する回路(図4、図5及び図7参照)が予め実装されており、例えばハードウェア処理により階調値変換処理(後述する変換後の階調値V1,V2を生成する処理)を実行することが可能とされている。   For example, each functional component of the image processing apparatus 1 described later reads predetermined computer software on hardware such as the RAM 102, and the input device 104, the communication device 105, the FPGA 106, and the output device under the control of the CPU 101. This is realized by operating 107 and the like, and reading and writing data in the RAM 102 and the ROM 103. A circuit described later (see FIGS. 4, 5, and 7) is mounted in the FPGA 106 in advance, and for example, gradation value conversion processing (generated gradation values V1 and V2 after conversion described later) is generated by hardware processing. Processing) can be executed.

なお、図1では画像処理装置1が1台のコンピュータとして構成されているように示しているが、画像処理装置1の機能は、複数台のコンピュータに分散されてもよい。また、画像処理装置1は、入力された画像の鮮明化等の画像処理を実行する機能に特化したアプライアンスとして構成されてもよいし、複数の機能を実行するコンピュータにおいて当該コンピュータの一機能として組み込まれてもよい。   Although FIG. 1 shows that the image processing apparatus 1 is configured as one computer, the functions of the image processing apparatus 1 may be distributed to a plurality of computers. In addition, the image processing apparatus 1 may be configured as an appliance specialized for a function that executes image processing such as sharpening of an input image, or as a function of the computer in a computer that executes a plurality of functions. May be incorporated.

図2は、画像処理装置1の機能構成を示すブロック図である。この図に示すように、画像処理装置1は、前処理部11と、オペレータ設定部12と、第1変換部13と、第2変換部14と、後処理部15とを備える。前処理部11は、画質調整部111と、分解能調整部112とを備える。第1変換部13は、パラメータ抽出部131と、階調値変換部(第1階調値変換部)132とを備える。第2変換部14は、集計部141と、階調値変換部(第2階調値変換部)142とを備える。後処理部15は、混合部151と、混合比調整部152とを備える。   FIG. 2 is a block diagram illustrating a functional configuration of the image processing apparatus 1. As shown in FIG. 1, the image processing apparatus 1 includes a pre-processing unit 11, an operator setting unit 12, a first conversion unit 13, a second conversion unit 14, and a post-processing unit 15. The preprocessing unit 11 includes an image quality adjustment unit 111 and a resolution adjustment unit 112. The first conversion unit 13 includes a parameter extraction unit 131 and a gradation value conversion unit (first gradation value conversion unit) 132. The second conversion unit 14 includes a totaling unit 141 and a gradation value conversion unit (second gradation value conversion unit) 142. The post-processing unit 15 includes a mixing unit 151 and a mixing ratio adjusting unit 152.

まず、画像処理装置1の処理概要について説明する。図2に示すように、画像処理装置1では、まず、前処理部11が、監視カメラ等により撮影された映像を順次取り込み、取り込まれた映像の各フレームに対して前処理を実行することにより処理対象画像を生成する。具体的には、前処理部11は、取り込んだ映像のフレームのそれぞれを入力画像として前処理を実行し、処理対象画像を生成する。ここで、処理対象画像とは、後述する第1変換部13及び第2変換部14のそれぞれの階調値変換処理の対象となる画像のことである。ただし、前処理部11による前処理は、必須ではなく省略可能である。前処理部11による前処理を省略する場合には、処理対象画像は入力画像と一致する。   First, an outline of processing of the image processing apparatus 1 will be described. As shown in FIG. 2, in the image processing apparatus 1, first, the preprocessing unit 11 sequentially captures images taken by a surveillance camera or the like, and executes preprocessing on each frame of the captured images. A processing target image is generated. Specifically, the preprocessing unit 11 performs preprocessing using each of the captured video frames as an input image, and generates a processing target image. Here, the processing target image is an image that is a target of gradation value conversion processing of each of the first conversion unit 13 and the second conversion unit 14 described later. However, the preprocessing by the preprocessing unit 11 is not essential and can be omitted. When the preprocessing by the preprocessing unit 11 is omitted, the processing target image matches the input image.

続いて、前処理部11から出力された処理対象画像の各画素を処理対象画素として、オペレータ設定部12、第1変換部13、第2変換部14、及び後処理部15が各処理を実行する。すなわち、オペレータ設定部12、第1変換部13、第2変換部14、及び後処理部15の処理は、処理対象画像の画素毎に実行される。本実施形態では一例として、前処理部11によって生成された直後の処理対象画像の各画素の階調値V0と、第1変換部13によって生成された各画素の階調値V1と、第2変換部14によって生成された各画素の階調値V2とが、混合部151によって所定の混合比で足し合わせられる。このようにして、入力画像の各画素の階調値が画質改善及び鮮明化の両方の観点から変換された出力画像が、後処理部15によって出力される。上記混合比は、画像の状態やユーザの好み等に応じて設定され得る。   Subsequently, the operator setting unit 12, the first conversion unit 13, the second conversion unit 14, and the post-processing unit 15 execute each process using each pixel of the processing target image output from the preprocessing unit 11 as a processing target pixel. To do. That is, the processes of the operator setting unit 12, the first conversion unit 13, the second conversion unit 14, and the post-processing unit 15 are executed for each pixel of the processing target image. In this embodiment, as an example, the gradation value V0 of each pixel of the processing target image immediately after being generated by the preprocessing unit 11, the gradation value V1 of each pixel generated by the first conversion unit 13, and the second The gradation value V2 of each pixel generated by the conversion unit 14 is added at a predetermined mixing ratio by the mixing unit 151. In this manner, the post-processing unit 15 outputs an output image in which the gradation value of each pixel of the input image is converted from the viewpoints of both image quality improvement and sharpening. The mixing ratio can be set according to the state of the image, user preferences, and the like.

以下、画像処理装置1の各機能的構成要素について具体的に説明する。   Hereinafter, each functional component of the image processing apparatus 1 will be specifically described.

前処理部11は、第1変換部13及び第2変換部14による階調値変換処理(鮮明化処理)に先立って入力画像に対する前処理を実行する。上述の通り、前処理部11による前処理は、画像の鮮明化を行う上で必須ではなく省略可能である。ただし、前処理部11による前処理を実行することにより、第1変換部13及び第2変換部14による鮮明化のみを実行した場合と比較して、画質の向上を図ることが期待できる。より具体的には、前処理部11による前処理により、第1変換部13又は第2変換部14による鮮明化が実行された後の画像を、見た目のメリハリがついた綺麗な画像とすることができる。   The preprocessing unit 11 performs preprocessing on the input image prior to the tone value conversion processing (sharpening processing) by the first conversion unit 13 and the second conversion unit 14. As described above, the preprocessing by the preprocessing unit 11 is not essential and can be omitted in order to sharpen an image. However, by performing the preprocessing by the preprocessing unit 11, it can be expected that the image quality is improved as compared with the case where only the sharpening by the first conversion unit 13 and the second conversion unit 14 is performed. More specifically, the image after the sharpening by the first conversion unit 13 or the second conversion unit 14 by the preprocessing by the preprocessing unit 11 is made a beautiful image with a sharp appearance. Can do.

前処理部11は、監視カメラ等により撮影された映像の各フレームを入力画像として取得すると、入力画像の特徴に基づいて入力画像の各画素の階調値を変換する。本実施形態では一例として、前処理部11は、入力画像の各画素の階調値に関するヒストグラムの形状に基づいて、各画素の階調値を変換する。前処理部11の機能は、画質調整部111及び分解能調整部112により実現される。   When the preprocessing unit 11 acquires each frame of the video imaged by the surveillance camera or the like as an input image, the preprocessing unit 11 converts the gradation value of each pixel of the input image based on the characteristics of the input image. In the present embodiment, as an example, the preprocessing unit 11 converts the gradation value of each pixel based on the shape of a histogram related to the gradation value of each pixel of the input image. The function of the preprocessing unit 11 is realized by the image quality adjustment unit 111 and the resolution adjustment unit 112.

画質調整部111は、入力画像内の各画素の階調値に基づいて、0から自然数Nまでの各階調値の画素数を示す全体ヒストグラムを生成する。ここで、「自然数N」は、入力画像の階調分解能により定まる最大の階調値である。例えば、入力画像の階調分解能が8ビットである場合には、各画素の階調は0から255までの256段階で表現されるため、自然数Nは255となる。   The image quality adjustment unit 111 generates an overall histogram indicating the number of pixels of each gradation value from 0 to a natural number N based on the gradation value of each pixel in the input image. Here, “natural number N” is the maximum gradation value determined by the gradation resolution of the input image. For example, when the gradation resolution of the input image is 8 bits, since the gradation of each pixel is expressed in 256 levels from 0 to 255, the natural number N is 255.

図3のグラフ(a)は、画質調整部111により生成された全体ヒストグラムの一例を示している。全体ヒストグラムを視覚化した場合には、横軸に階調値、縦軸に画素数をとった棒状グラフとなるが、図3のグラフ(a)は、全体ヒストグラムを、このような棒状グラフの隣接する頂点同士を結んだ線グラフとして表現したものである。この全体ヒストグラムでは、階調値がポイントS1からポイントE1までのエリアと、階調値がポイントS2からポイントE2までのエリアと、のそれぞれにおいて山状の分布が形成されている。なお、このように全体ヒストグラムにおいて山が2つ形成される画像は、逆光の中で撮影された画像である場合が多い。   A graph (a) in FIG. 3 shows an example of the entire histogram generated by the image quality adjustment unit 111. When the whole histogram is visualized, a bar graph is obtained in which the horizontal axis indicates the gradation value and the vertical axis indicates the number of pixels. The graph (a) in FIG. 3 shows the whole histogram of such a bar graph. It is expressed as a line graph connecting adjacent vertices. In the entire histogram, a mountain-shaped distribution is formed in each of the area where the gradation value is from point S1 to point E1 and the area where the gradation value is from point S2 to point E2. Note that an image in which two peaks are formed in the entire histogram in this way is often an image taken in backlight.

画質調整部111は、上述のように生成した全体ヒストグラムの形状の特徴に基づいて入力画像内の各画素の階調値を変換する。具体的には、まず、画質調整部111は、全体ヒストグラムにおいて、画像を構成する上で有用な情報を含むエリア(有用階調エリア)を抽出する。ここで、画像を構成する上で有用な情報とは、画像に映り込んだ対象物を認識するために有用な情報を意味する。   The image quality adjustment unit 111 converts the gradation value of each pixel in the input image based on the characteristics of the shape of the entire histogram generated as described above. Specifically, first, the image quality adjustment unit 111 extracts an area (useful gradation area) including information useful for constructing an image from the entire histogram. Here, the information useful for composing an image means information useful for recognizing an object reflected in the image.

例えば、全体ヒストグラムにおいて、レベル(階調に対応する画素数の多さを示す指標)が低く、且つ隣接する階調値間における画素数の変化の割合により示される傾斜が小さいエリアについては、画像を構成する上で有用な情報が少ないエリア(不要階調エリア)と判定することができる。逆に、全体ヒストグラムにおける山の部分(図3のグラフ(a)の例では、ポイントS1からポイントE1までのエリア及びポイントS2からポイントE2までのエリア)については、画像を構成する上で有用な情報を多く含む有用階調エリアと判定することができる。上記を踏まえて、例えば、画質調整部111は、全体ヒストグラムにおいてレベル及び傾斜の大きさがそれぞれ所定の閾値以下であるエリアを不要階調エリアとして特定し、それ以外のエリアを有用階調エリアとして抽出することができる。   For example, in an overall histogram, an area having a low level (an index indicating the number of pixels corresponding to a gradation) and a small slope indicated by the rate of change in the number of pixels between adjacent gradation values Can be determined as an area (unnecessary gradation area) that has little useful information. On the contrary, the peak portion in the entire histogram (in the example of the graph (a) in FIG. 3) is useful in constructing an image for the area from the point S1 to the point E1 and the area from the point S2 to the point E2. It can be determined as a useful gradation area containing a lot of information. Based on the above, for example, the image quality adjustment unit 111 identifies an area where the level and the inclination of the entire histogram are each equal to or less than a predetermined threshold as an unnecessary gradation area, and sets the other areas as useful gradation areas. Can be extracted.

ここで、多くの一般的な画像では、全体ヒストグラムにおいて傾斜が小さいエリアは、レベルが低いエリアで多く見られる一方、レベルが高いエリア(山の頂部等)ではほとんど見られない。このような性質を利用して、画質調整部111は、レベルについては考慮せずに、全体ヒストグラムにおいて傾斜の大きさが所定の閾値以下のエリアを不要階調エリアとして特定し、それ以外のエリアを有用階調エリアとして抽出してもよい。   Here, in many general images, an area having a small slope in the entire histogram is often seen in an area having a low level, but is hardly seen in an area having a high level (such as a mountain top). Utilizing such a property, the image quality adjustment unit 111 specifies an area whose inclination is equal to or smaller than a predetermined threshold in the whole histogram without considering the level as an unnecessary gradation area, and other areas. May be extracted as a useful gradation area.

例えば、画質調整部111は、階調値0から階調値が増加する方向に向かって各階調値の画素数を取得し、隣接する2つの階調値間、或いは所定の間隔だけ空いた2つの階調値間で、画素数の変化の割合が閾値以下であるか否かを判定してもよい。具体的には、2つの階調値間における画素数の変化の割合が閾値以下である場合には、当該2つの階調値間のエリアは不要階調エリアであると判定し、そうでない場合には、当該2つの階調値間のエリアは有用階調エリアであると判定してもよい。   For example, the image quality adjustment unit 111 acquires the number of pixels of each gradation value from the gradation value 0 toward the direction in which the gradation value increases, and the two adjacent gradation values or a predetermined interval 2 is obtained. It may be determined whether the rate of change in the number of pixels is equal to or less than a threshold value between two gradation values. Specifically, when the rate of change in the number of pixels between two gradation values is equal to or less than a threshold value, it is determined that the area between the two gradation values is an unnecessary gradation area, and otherwise Alternatively, it may be determined that the area between the two gradation values is a useful gradation area.

画質調整部111は、このような処理を実行することで、図3のグラフ(a)に示すポイントS1を、階調値が小さい側の不要階調エリアの終点、すなわち第1の有用階調エリアの始点として決定することができる。また、画質調整部111は、同様の処理を実行することにより、図3のグラフ(a)に示すポイントE1を、第1の有用階調エリアの終点として決定することができる。また、画質調整部111は、同様の処理をさらに実行することにより、図3のグラフ(a)に示すポイントS2及びE2を、それぞれ第2の有用階調エリアの始点及び終点として決定することができる。なお、ここでは2つの有用階調エリアが存在する場合を例に挙げて説明したが、有用階調エリアが1つだけの場合、或いは有用階調エリアが3つ以上存在する場合についても、同様の手法により有用階調エリアと不要階調エリアとを分離することができる。   By executing such processing, the image quality adjustment unit 111 sets the point S1 shown in the graph (a) of FIG. 3 as the end point of the unnecessary gradation area on the side where the gradation value is small, that is, the first useful gradation. It can be determined as the start point of the area. Further, the image quality adjustment unit 111 can determine the point E1 shown in the graph (a) of FIG. 3 as the end point of the first useful gradation area by executing the same processing. In addition, the image quality adjustment unit 111 further determines the points S2 and E2 shown in the graph (a) of FIG. 3 as the start point and the end point of the second useful gradation area by further executing similar processing. it can. Here, the case where there are two useful gradation areas has been described as an example, but the same applies to the case where there is only one useful gradation area or three or more useful gradation areas. By this method, the useful gradation area and the unnecessary gradation area can be separated.

続いて、画質調整部111は、有用階調エリアと当該有用階調エリアの範囲に応じて定まるゲインとに基づいて入力画像の各画素の階調値を変換する。ここで、ゲインとは、各階調値の画素数の分布の幅を増幅させる度合いを示すパラメータである。具体的には、画質調整部111は、入力画像の各画素の階調値を変換した後の全体ヒストグラムにおいて、有用階調エリアが入力画像の階調分解能によって表現可能な階調の範囲全体を占めるようにゲインを決定する。なお、ここでのゲインは、入力画像全体の階調値の分布によって決定される値であり、全ての画素に対して一律に適用されるものである。一方、後述する第1変換部13によって決定されるゲインは、オペレータ単位で局所的に決定される値であり、個々の画素に対して個別に適用されるものである。   Subsequently, the image quality adjustment unit 111 converts the gradation value of each pixel of the input image based on the useful gradation area and a gain determined according to the range of the useful gradation area. Here, the gain is a parameter indicating the degree to which the width of the distribution of the number of pixels of each gradation value is amplified. Specifically, the image quality adjustment unit 111 converts the entire gradation range in which the useful gradation area can be expressed by the gradation resolution of the input image in the entire histogram after converting the gradation value of each pixel of the input image. Determine the gain to occupy. Note that the gain here is a value determined by the distribution of gradation values of the entire input image, and is applied uniformly to all pixels. On the other hand, the gain determined by the first conversion unit 13 to be described later is a value locally determined in units of operators, and is applied individually to each pixel.

図3のグラフ(a)に示す例の場合には、画質調整部111は、下記式(1)によりゲインを決定し、下記式(2)及び(3)によって入力画像の各画素の階調値にゲインを適用することができる。下記式(2)及び(3)において、viは変換前の階調値を示し、voは変換後の階調値を示す。
Gain=(256/((E1−S1)+(E2−S2)))・・・(1)
If vi<E1:vo=(vi−S1)×Gain・・・(2)
If vi>S2:vo=(vi−S1−(S2−E1))×Gain・・・(3)
In the case of the example shown in the graph (a) of FIG. 3, the image quality adjustment unit 111 determines the gain by the following equation (1), and the gradation of each pixel of the input image by the following equations (2) and (3). Gain can be applied to the value. In the following formulas (2) and (3), vi represents a gradation value before conversion, and vo represents a gradation value after conversion.
Gain = (256 / ((E1-S1) + (E2-S2))) (1)
If vi <E1: vo = (vi−S1) × Gain (2)
If vi> S2: vo = (vi−S1− (S2−E1)) × Gain (3)

上記式(2)及び(3)に示す計算処理が入力画像の各画素について実行されることで、図3のグラフ(b)に示すように不要階調エリアが削除されると共に、図3のグラフ(c)に示すように有用階調エリアが入力画像の階調分解能によって表現可能な階調の範囲全体を占めるように変換される。なお、画質調整部111による上記処理においては、有用階調エリアと不要階調エリアとを分離する処理(上記例において、ポイントS1,E1,S2,E2を決定する処理)についてはソフトウェア処理で実行する一方で、上記式(1)〜(3)に基づく計算処理についてはハードウェア処理により実行してもよい。上記式(2)及び(3)の処理は入力画像の各画素について実行する必要があるため、ハードウェア処理により各画素について並列的に実行することで、処理効率を向上させることができる。画質調整部111によって得られた画像(すなわち、入力画像の各画素の階調値が上記式(1)〜(3)によって変換された画像)は、分解能調整部112に出力される。   When the calculation processing shown in the above equations (2) and (3) is executed for each pixel of the input image, the unnecessary gradation area is deleted as shown in the graph (b) of FIG. As shown in the graph (c), the useful gradation area is converted so as to occupy the entire gradation range that can be expressed by the gradation resolution of the input image. In the above-described processing by the image quality adjustment unit 111, the processing for separating the useful gradation area from the unnecessary gradation area (the processing for determining the points S1, E1, S2, and E2 in the above example) is executed by software processing. On the other hand, the calculation processing based on the above formulas (1) to (3) may be executed by hardware processing. Since it is necessary to execute the processing of the above formulas (2) and (3) for each pixel of the input image, the processing efficiency can be improved by executing the processing for each pixel in parallel by hardware processing. An image obtained by the image quality adjustment unit 111 (that is, an image in which the gradation value of each pixel of the input image is converted by the above equations (1) to (3)) is output to the resolution adjustment unit 112.

分解能調整部112は、入力画像の階調分解能を調整することにより、階調分解能が調整された処理対象画像を出力する。具体的には、後述するオペレータ設定部12により設定されるオペレータに含まれる画素数と表現し得る階調値の個数とが一致するように階調分解能を調整する。オペレータとは、処理対象画像内の対象画素を含む複数画素からなる領域である。例えば、オペレータ設定部12により設定されるオペレータが16×16の256画素で構成される矩形領域である場合、分解能調整部112は、入力画像の階調分解能を256個の段階値を表現可能な8ビットに調整する。例えば、入力画像の元の階調分解能が10ビットであった場合、分解能調整部112は、入力画像の各画素の階調値に対して、元の10ビットの階調値のビットパターンを右に2ビットずらすシフト演算を実行することで、入力画像の階調分解能を10ビットから8ビットに変更することができる。このように階調分解能を調整することにより、後述する階調値変換部142による計算処理を単純化することができ、処理効率を向上させることができる。分解能調整部112によって出力された処理対象画像は、オペレータ設定部12及び後処理部15(混合部151)のそれぞれに受け渡される。   The resolution adjustment unit 112 adjusts the gradation resolution of the input image to output the processing target image with the gradation resolution adjusted. Specifically, the gradation resolution is adjusted so that the number of pixels included in the operator set by the operator setting unit 12 described later matches the number of gradation values that can be expressed. An operator is a region composed of a plurality of pixels including target pixels in the processing target image. For example, when the operator set by the operator setting unit 12 is a rectangular area composed of 16 × 16 256 pixels, the resolution adjusting unit 112 can represent the gradation resolution of the input image with 256 step values. Adjust to 8 bits. For example, when the original gradation resolution of the input image is 10 bits, the resolution adjustment unit 112 converts the bit pattern of the original 10-bit gradation value to the right with respect to the gradation value of each pixel of the input image. By executing a shift operation shifted by 2 bits, the gradation resolution of the input image can be changed from 10 bits to 8 bits. By adjusting the gradation resolution in this way, calculation processing by the gradation value conversion unit 142 described later can be simplified, and the processing efficiency can be improved. The processing target image output by the resolution adjustment unit 112 is transferred to the operator setting unit 12 and the post-processing unit 15 (mixing unit 151).

次に、オペレータ設定部12、第1変換部13、第2変換部14、及び後処理部15について説明する。上述の通り、オペレータ設定部12、第1変換部13、第2変換部14、及び後処理部15の処理は、処理対象画像内の各画素について実行される。具体的には、オペレータ設定部12は、処理対象画像内の各画素を1画素単位で予め定められた順序で走査することにより、処理対象画像内の画素の中から処理対象となる画素(対象画素)を順次選択する。そして、このようにして順次選択される対象画素毎に、オペレータ設定部12、第1変換部13、第2変換部14、及び後処理部15による一連の処理が実行されることで、当該対象画素の階調値が変換される。このように階調値が変換された画素(階調値変換画素)は、出力画像を構成する画素となる。このような一連の処理が処理対象画像内の全ての画素について実行されることにより、処理対象画像内の各画素の階調値が変換され、その結果として、鮮明化されて見易くなった画像が出力画像として得られる。   Next, the operator setting unit 12, the first conversion unit 13, the second conversion unit 14, and the post-processing unit 15 will be described. As described above, the processing of the operator setting unit 12, the first conversion unit 13, the second conversion unit 14, and the post-processing unit 15 is executed for each pixel in the processing target image. Specifically, the operator setting unit 12 scans each pixel in the processing target image in units of one pixel in a predetermined order, so that a pixel to be processed (target) from among the pixels in the processing target image. Pixel) is selected sequentially. Then, for each target pixel that is sequentially selected in this way, a series of processing by the operator setting unit 12, the first conversion unit 13, the second conversion unit 14, and the post-processing unit 15 is executed, so that the target pixel The gradation value of the pixel is converted. Pixels whose tone values have been converted in this way (tone value conversion pixels) are pixels that constitute the output image. By executing such a series of processing for all the pixels in the processing target image, the gradation value of each pixel in the processing target image is converted, and as a result, an image that is clear and easy to view is obtained. Obtained as an output image.

オペレータ設定部12は、処理対象画像内の対象画素を含む複数画素からなるオペレータを設定する。ここで、対象画素とは、上述の走査処理により処理対象の画素として選択された画素であり、第1変換部13及び第2変換部14のそれぞれにおいて階調値を変換する対象となる画素である。オペレータは、典型的には対象画素を中心画素とする矩形領域として設定される。ただし、オペレータは、対象画素と対象画素の近傍に存在する複数の画素を含む領域であれば何でもよく、例えば円形、その他任意の形状であってもよい。本実施形態では一例として、オペレータ設定部12は、対象画素を中心画素とする16×16の256画素からなる矩形領域をオペレータとして設定するものとする。なお、例えば処理対象画像の上辺、下辺、左辺、右辺等の境界に接する画素を対象画素としたとき、対象画素を中心画素とするオペレータを設定することはできない。この場合には、オペレータ設定部12は、階調値を変換する対象から処理対象画像の境界に接する画素を除外してもよい。或いは、オペレータ設定部12は、これらの画素に適した任意の形状のオペレータを設定してもよい。   The operator setting unit 12 sets an operator composed of a plurality of pixels including the target pixel in the processing target image. Here, the target pixel is a pixel that is selected as a pixel to be processed by the above-described scanning process, and is a pixel that is a target for converting a gradation value in each of the first conversion unit 13 and the second conversion unit 14. is there. The operator is typically set as a rectangular area having the target pixel as a central pixel. However, the operator may be anything as long as it includes a target pixel and a plurality of pixels existing in the vicinity of the target pixel, and may be, for example, a circle or any other shape. In the present embodiment, as an example, the operator setting unit 12 sets, as an operator, a rectangular area made up of 16 × 16 256 pixels with the target pixel as the central pixel. For example, when a pixel in contact with a boundary such as an upper side, a lower side, a left side, or a right side of the processing target image is set as a target pixel, an operator having the target pixel as a central pixel cannot be set. In this case, the operator setting unit 12 may exclude pixels that are in contact with the boundary of the processing target image from the target whose tone value is to be converted. Or the operator setting part 12 may set the operator of the arbitrary shapes suitable for these pixels.

第1変換部13及び第2変換部14は、互いに異なる処理方式によって、オペレータ設定部12によって設定されたオペレータ内の各画素の階調値に基づいて対象画素の階調値を変換する手段である。ここで、対象画素の元の階調値と変換後の階調値とが一致する場合もあり得る。従って、ここでいう「階調値の変換」は、対象画素の階調値を元の階調値とは異なる階調値に変更することだけでなく、変換処理の結果として変換後の階調値と元の階調値とが一致する場合も含む。   The first conversion unit 13 and the second conversion unit 14 are means for converting the gradation value of the target pixel based on the gradation value of each pixel in the operator set by the operator setting unit 12 by different processing methods. is there. Here, the original gradation value of the target pixel may match the converted gradation value. Therefore, the “gradation value conversion” here means not only changing the gradation value of the target pixel to a gradation value different from the original gradation value, but also the converted gradation as a result of the conversion process. This includes the case where the value matches the original gradation value.

まず、第1変換部13について説明する。第1変換部13は、上述した画質調整部111によるゲイン適用処理と同様の考え方に基づく処理をオペレータ単位で実行することにより、対象画素の階調値を変換する。第1変換部13の変換処理は、オペレータ単位で個別に実行される点において、入力画像の全体に一律で実行される画質調整部111によるゲイン適用処理とは相違する。第1変換部13は、上記変換処理を実行するための構成要素として、パラメータ抽出部131及び階調値変換部132を有する。   First, the first conversion unit 13 will be described. The first conversion unit 13 converts the gradation value of the target pixel by executing processing based on the same concept as the gain application processing by the image quality adjustment unit 111 described above for each operator. The conversion processing of the first conversion unit 13 is different from the gain application processing by the image quality adjustment unit 111 that is uniformly executed for the entire input image in that the conversion processing is performed individually for each operator. The first conversion unit 13 includes a parameter extraction unit 131 and a gradation value conversion unit 132 as components for executing the conversion process.

パラメータ抽出部131は、オペレータ設定部12により設定されたオペレータ内の各画素の階調値に基づいて、各画素の階調値の最小値を示す最小階調値minと各画素の階調値の最大値を示す最大階調値maxとを抽出する。パラメータ抽出部131による抽出方法は任意であるが、本実施形態では一例として、パラメータ抽出部131は、後述する回路(図5参照)によって最小階調値min及び最大階調値maxを抽出する。詳しくは後述するが、パラメータ抽出部131は、後述する集計部141によって生成されたヒストグラムに基づいて、最小階調値min及び最大階調値maxを抽出することができる。また、パラメータ抽出部131は、例えばソフトウェア処理によってオペレータ内の各画素の階調値の比較演算(ソート処理)を実行することで、最小階調値min及び最大階調値maxを抽出してもよい。   Based on the gradation value of each pixel in the operator set by the operator setting unit 12, the parameter extraction unit 131 sets the minimum gradation value min indicating the minimum value of the gradation value of each pixel and the gradation value of each pixel. And a maximum gradation value max indicating the maximum value of. Although the extraction method by the parameter extraction unit 131 is arbitrary, in the present embodiment, as an example, the parameter extraction unit 131 extracts the minimum gradation value min and the maximum gradation value max by a circuit described later (see FIG. 5). Although described later in detail, the parameter extraction unit 131 can extract the minimum gradation value min and the maximum gradation value max based on a histogram generated by the aggregation unit 141 described later. Further, the parameter extraction unit 131 may extract the minimum gradation value min and the maximum gradation value max by executing a comparison operation (sorting process) of the gradation values of each pixel in the operator by software processing, for example. Good.

階調値変換部132は、パラメータ抽出部131により抽出された最小階調値min及び最大階調値maxに基づいてゲインGを決定し、当該ゲインGを対象画素の階調値Viに適用することにより対象画素の変換後の階調値(第1の変換後の階調値)V1を決定する。本実施形態では一例として、階調値変換部132は、下記式(4)及び(5)による計算を実行することにより、対象画素の階調値Viから変換後の階調値V1を算出する。すなわち、階調値変換部132は、下記式(4)に示すように、処理対象画像の階調分解能Nmax(8ビットの場合には256)を最大階調値maxと最小階調値minとの差(max−min)で割ることによりゲインGを算出する。そして、階調値変換部132は、対象画素の階調値Viと最小階調値minとの差(Vi−min)にゲインGを乗じることにより、対象画素の変換後の階調値V2を算出する。これにより、予め定められた所定の計算式(下記式(4)及び(5))を用いて、変換後の階調値V1を容易に算出することができる。
G=Nmax/(max−min)・・・(4)
V1=(Vi−min)×G・・・(5)
The gradation value conversion unit 132 determines the gain G based on the minimum gradation value min and the maximum gradation value max extracted by the parameter extraction unit 131, and applies the gain G to the gradation value Vi of the target pixel. As a result, the gradation value after conversion (first gradation value after conversion) V1 of the target pixel is determined. In the present embodiment, as an example, the gradation value conversion unit 132 calculates the converted gradation value V1 from the gradation value Vi of the target pixel by executing calculations according to the following equations (4) and (5). . That is, as shown in the following formula (4), the gradation value conversion unit 132 sets the gradation resolution Nmax (256 in the case of 8 bits) of the processing target image to the maximum gradation value max and the minimum gradation value min. The gain G is calculated by dividing by the difference (max−min). Then, the gradation value conversion unit 132 multiplies the difference (Vi−min) between the gradation value Vi of the target pixel and the minimum gradation value min by the gain G, thereby obtaining the converted gradation value V2 of the target pixel. calculate. Thereby, the converted gradation value V1 can be easily calculated using a predetermined calculation formula (the following formulas (4) and (5)).
G = Nmax / (max−min) (4)
V1 = (Vi−min) × G (5)

ここで、階調値変換部132は、上記の階調値の変換の効果レベルを調整するために、上記式(4)及び(5)によってゲインG及び変換後の階調値V1を決定する前に、最小階調値min及び最大階調値maxの少なくとも一方に所定の調整値(オフセット)を加算又は減算する調整処理を実行してもよい。ここで、効果レベルとは、上記の階調値の変換による鮮明化の程度を示す指標であり、例えば元の画像(階調値変換前の処理対象画像)の暗さ(或いは明るさ)を引き立てる強さを示す。   Here, the gradation value conversion unit 132 determines the gain G and the converted gradation value V1 by the above equations (4) and (5) in order to adjust the effect level of the conversion of the gradation value. Before the adjustment process, a predetermined adjustment value (offset) may be added to or subtracted from at least one of the minimum gradation value min and the maximum gradation value max. Here, the effect level is an index indicating the degree of sharpening by the above-described gradation value conversion. For example, the darkness (or brightness) of the original image (the processing target image before gradation value conversion) is represented. Indicates the strength to enhance.

例えば、最小階調値minを調整せずに最大階調値maxに調整値dmax(>0)を加算した場合(すなわち、上記式(4)及び(5)において「max」を「max+dmax」に置き換えて階調値V1を算出した場合)、上記の階調値の変換の効果レベルを暗さが引き立つ方向に調整することができる。これは以下の理由による。すなわち、実際の最大階調値maxの代わりにmax+dmaxを用いることにより、上記式(4)によって算出されるゲインGが小さくなる方向に調整される。このため、上記式(5)によって算出される変換後の階調値V1は、最大階調値maxに調整値dmaxを加えない場合よりも小さくなる(暗さが引き立つ)方向に調整される。   For example, when the adjustment value dmax (> 0) is added to the maximum gradation value max without adjusting the minimum gradation value min (that is, “max” is changed to “max + dmax” in the above formulas (4) and (5)). When the gradation value V1 is calculated by replacement, the effect level of the gradation value conversion described above can be adjusted in a direction in which darkness is enhanced. This is due to the following reason. That is, by using max + dmax instead of the actual maximum gradation value max, the gain G calculated by the above equation (4) is adjusted to be reduced. For this reason, the converted gradation value V1 calculated by the above equation (5) is adjusted in a direction that is smaller (darkness is more pronounced) than when the adjustment value dmax is not added to the maximum gradation value max.

一方、最大階調値maxを調整せずに最小階調値minから調整値dmin(>0)を減算した場合(すなわち、上記式(4)及び(5)において「min」を「min−dmin」に置き換えて階調値V1を算出した場合)、上記の階調値の変換の効果レベルを明るさが引き立つ方向に調整することができる。これは以下の理由による。すなわち、実際の最小階調値minの代わりにmin−dminを用いることにより、上記式(5)における「Vi−min」が大きくなる方向に調整される。このため、上記式(5)によって算出される変換後の階調値V2は、最小階調値minから調整値dminを減じない場合よりも大きくなる(明るさが引き立つ)方向に調整される。   On the other hand, when the adjustment value dmin (> 0) is subtracted from the minimum gradation value min without adjusting the maximum gradation value max (that is, “min” in the above equations (4) and (5) is “min−dmin”). When the gradation value V1 is calculated instead of “”, the effect level of the conversion of the gradation value can be adjusted in the direction in which the brightness is enhanced. This is due to the following reason. That is, by using min-dmin instead of the actual minimum gradation value min, adjustment is made in the direction in which “Vi-min” in the above equation (5) increases. For this reason, the converted gradation value V2 calculated by the above equation (5) is adjusted to be larger (brightness is enhanced) than when the adjustment value dmin is not subtracted from the minimum gradation value min.

上記のように調整を行う構成によれば、例えばユーザの好みや画像の特性等に応じた調整値dmin及び/又はdmaxを最小階調値min及び/又は最大階調値maxに適用することにより、鮮明化の程度(例えば暗さ又は明るさが引き立つ度合い)を調整することができる。ここで、調整値dmax又は調整値dminは、階調値0から階調分解能Nmaxまでの範囲において最大階調値max又は最小階調値minを移動させる移動幅と捉えることができる。従って、効果レベル(調整値dmax又は調整値dminによる移動幅の大きさ)は、最大で階調分解能Nmaxと一致する段階数で調整することができる。例えば階調分解能Nmaxが8ビット(=256)の場合には、256段階で効果レベルを調整することができる。   According to the configuration in which the adjustment is performed as described above, for example, by applying the adjustment values dmin and / or dmax according to the user's preference, image characteristics, and the like to the minimum gradation value min and / or the maximum gradation value max. The degree of sharpening (for example, the degree of darkness or lightness) can be adjusted. Here, the adjustment value dmax or the adjustment value dmin can be regarded as a movement range for moving the maximum gradation value max or the minimum gradation value min in the range from the gradation value 0 to the gradation resolution Nmax. Accordingly, the effect level (adjustment value dmax or movement width based on adjustment value dmin) can be adjusted at the maximum number of steps that matches the gradation resolution Nmax. For example, when the gradation resolution Nmax is 8 bits (= 256), the effect level can be adjusted in 256 steps.

また、調整値dmax(又はdmin)は、例えば処理対象画像の各画素に共通の値(例えばユーザの好みに応じて予め設定された固定値)であってもよい。ただし、この場合には、オペレータ内の各画素の階調値の分布幅(max−min)が小さい場合と分布幅が大きい場合とで、前者の場合の方が後者の場合よりも調整の影響が大きくなってしまう。具体的には、前者の場合の方が後者の場合に対して、分布幅に対する調整幅が大きくなるので、調整による影響が大きくなる。従って、調整値を固定値とした場合には、オペレータ内の各画素の階調値の分布によっては適切に調整されない可能性もある。そこで、階調値変換部132は、オペレータ内の各画素の階調値の分布に応じて算出される値(例えば最大階調値maxと最小階調値minとの差に予め定めた比率を乗じた値等)を調整値dmax(又はdmin)としてもよい。このようにすれば、オペレータ内の各画素の階調値の分布に応じて調整値を可変に設定することができ、処理対象画素の各画素(すなわち各オペレータ内の対象画素)に対する調整値dmax(又はdmin)による調整の影響の大きさを一定にすることができる。   Further, the adjustment value dmax (or dmin) may be, for example, a value common to each pixel of the processing target image (for example, a fixed value set in advance according to the user's preference). However, in this case, the influence of the adjustment in the former case is larger than in the latter case when the distribution width (max-min) of the gradation value of each pixel in the operator is small and when the distribution width is large. Will become bigger. Specifically, since the adjustment width for the distribution width is larger in the former case than in the latter case, the influence of the adjustment is greater. Therefore, when the adjustment value is a fixed value, there is a possibility that the adjustment is not properly performed depending on the distribution of gradation values of each pixel in the operator. Therefore, the gradation value conversion unit 132 calculates a value calculated according to the distribution of gradation values of each pixel in the operator (for example, a predetermined ratio for the difference between the maximum gradation value max and the minimum gradation value min). The multiplied value or the like) may be the adjustment value dmax (or dmin). In this way, the adjustment value can be variably set according to the distribution of gradation values of each pixel in the operator, and the adjustment value dmax for each pixel of the processing target pixel (that is, the target pixel in each operator). The magnitude of the adjustment by (or dmin) can be made constant.

階調値変換部132は、上述の計算によって対象画素の変換後の階調値V1を決定し、決定された階調値V1を後処理部15に出力する。   The gradation value conversion unit 132 determines the converted gradation value V1 of the target pixel by the above-described calculation, and outputs the determined gradation value V1 to the post-processing unit 15.

次に、第2変換部14について説明する。第2変換部14は、オペレータ内の各画素の階調値のヒストグラムを生成し、当該ヒストグラムの一端から対象画素の階調値までの各階調値の画素数を加算又は減算する処理を実行することにより、対象画素の階調値を変換する。第2変換部14による変換の手法は、いわゆるヒストグラム平坦化に分類される手法である。第2変換部14は、上記変換処理を実行するための構成要素として、集計部141及び階調値変換部142を有する。   Next, the 2nd conversion part 14 is demonstrated. The second conversion unit 14 generates a histogram of gradation values of each pixel in the operator, and executes a process of adding or subtracting the number of pixels of each gradation value from one end of the histogram to the gradation value of the target pixel. Thus, the gradation value of the target pixel is converted. The conversion method performed by the second conversion unit 14 is a method classified as so-called histogram flattening. The second conversion unit 14 includes a counting unit 141 and a gradation value conversion unit 142 as components for executing the conversion process.

集計部141は、オペレータ設定部12により設定されたオペレータ内の各画素の階調値を取得し、当該各画素の階調値に基づいて0から自然数N(階調分解能Nmax−1)までの各階調値の画素数を示すヒストグラムを生成する。例えば、集計部141は、オペレータ内の各画素を所定順に1画素単位で走査し、操作対象の画素の階調値の個数を1つ増加するカウント処理を実行する。或いは、集計部141は、オペレータ内の各画素の階調値を並列的に取得し、各階調値の個数をカウントしてもよい。これにより、各階調値の画素数を示すヒストグラムが生成される。例えば階調分解能Nmaxが256の場合には、ヒストグラムは、階調値0から階調値255までのそれぞれの階調値に、対応する画素数X0〜X255が関連付けられた情報である。集計部141により生成されたヒストグラム及び対象画素の階調値Viは、階調値変換部142に受け渡される。   The totalization unit 141 acquires the gradation value of each pixel in the operator set by the operator setting unit 12, and based on the gradation value of each pixel, 0 to a natural number N (gradation resolution Nmax-1). A histogram indicating the number of pixels of each gradation value is generated. For example, the totalization unit 141 scans each pixel in the operator in a predetermined order in units of one pixel, and executes a counting process that increases the number of gradation values of the operation target pixel by one. Alternatively, the totalization unit 141 may acquire the gradation value of each pixel in the operator in parallel and count the number of each gradation value. Thereby, a histogram indicating the number of pixels of each gradation value is generated. For example, when the gradation resolution Nmax is 256, the histogram is information in which the corresponding number of pixels X0 to X255 is associated with each gradation value from the gradation value 0 to the gradation value 255. The histogram generated by the totalization unit 141 and the gradation value Vi of the target pixel are transferred to the gradation value conversion unit 142.

階調値変換部142は、集計部141により生成されたヒストグラムにおいて、階調値0から対象画素の階調値Viまでの各階調値の画素数を加算することにより新たな階調値V2(第2の変換後の階調値)を算出し、対象画素の階調値Viを当該新たな階調値V2に変換する。階調値変換部142は、例えばFPGA106において構成された論理回路により、上述の演算処理を実行する。   The gradation value conversion unit 142 adds a new gradation value V2 (by adding the number of pixels of each gradation value from the gradation value 0 to the gradation value Vi of the target pixel in the histogram generated by the totalization unit 141. (Gradation value after the second conversion) is calculated, and the gradation value Vi of the target pixel is converted into the new gradation value V2. The gradation value conversion unit 142 performs the above-described arithmetic processing using, for example, a logic circuit configured in the FPGA 106.

階調値変換部142は、上述のようにして対象画素の変換後の階調値V2を決定し、決定された階調値V2を後処理部15に出力する。   The gradation value conversion unit 142 determines the converted gradation value V2 of the target pixel as described above, and outputs the determined gradation value V2 to the post-processing unit 15.

ここで、パラメータ抽出部131は、階調値変換部142が画素数の加算又は減算のために階調値0又は階調値Nを示すヒストグラムの一端からヒストグラムの他端に向かって各階調値の画素数を参照する処理と並行して、ヒストグラムの一端から他端に向かって各階調値の画素数を参照することにより、最小階調値min及び最大階調値maxを抽出してもよい。具体的には、パラメータ抽出部131は、階調値変換部142がヒストグラムの一端から他端に向かって各階調値の画素数を参照する際に、同じ階調値の画素数を同時に参照する。そして、階調値変換部142が画素数の加算のために階調値0から階調値Nに向かって各画素数を参照する場合には、パラメータ抽出部131は、0以外の画素数が最初に検出された階調値を最小階調値minとして決定し、0以外の画素数が最後に検出された階調値を最大階調値maxとして決定する。一方、階調値変換部142が画素数の減算のために階調値Nから階調値0に向かって各画素数を参照する場合には、パラメータ抽出部131は、0以外の画素数が最初に検出された階調値を最大階調値maxとして決定し、0以外の画素数が最後に検出された階調値を最小階調値minとして決定する。   Here, the parameter extraction unit 131 is configured so that the gradation value conversion unit 142 increases each gradation value from one end of the histogram indicating the gradation value 0 or gradation value N to the other end of the histogram for addition or subtraction of the number of pixels. In parallel with the process of referring to the number of pixels, the minimum gradation value min and the maximum gradation value max may be extracted by referring to the number of pixels of each gradation value from one end to the other end of the histogram. . Specifically, the parameter extraction unit 131 simultaneously refers to the number of pixels having the same gradation value when the gradation value conversion unit 142 refers to the number of pixels of each gradation value from one end of the histogram to the other end. . When the gradation value conversion unit 142 refers to each pixel number from the gradation value 0 toward the gradation value N for addition of the number of pixels, the parameter extraction unit 131 determines that the number of pixels other than 0 is The gradation value detected first is determined as the minimum gradation value min, and the gradation value in which the number of pixels other than 0 is detected last is determined as the maximum gradation value max. On the other hand, when the gradation value conversion unit 142 refers to each pixel number from the gradation value N toward the gradation value 0 for subtraction of the number of pixels, the parameter extraction unit 131 determines that the number of pixels other than 0 is The gradation value detected first is determined as the maximum gradation value max, and the gradation value in which the number of pixels other than 0 is detected last is determined as the minimum gradation value min.

このような構成によれば、パラメータ抽出部131による処理と階調値変換部142による処理を同時並行して実行することが可能となる。これにより、処理効率の向上が図れるとともに、処理構成(回路構成)の簡単化を図ることができる。具体的には、後述する回路の例(図5及び図6)のように回路構成を簡単化することができる。   According to such a configuration, the process by the parameter extraction unit 131 and the process by the tone value conversion unit 142 can be executed in parallel. Thereby, the processing efficiency can be improved and the processing configuration (circuit configuration) can be simplified. Specifically, the circuit configuration can be simplified as in the example of the circuit described later (FIGS. 5 and 6).

後処理部15は、前処理部11により変換された対象画素の階調値V0と、階調値変換部132により変換された対象画素の階調値V1と、階調値変換部142により変換された対象画素の階調値V2とに基づいて、最終的に出力する階調値を決定するための後処理を実行する。後処理部15は、後処理を実行するための構成要素として、混合部151及び混合比調整部152を有する。   The post-processing unit 15 converts the gradation value V 0 of the target pixel converted by the pre-processing unit 11, the gradation value V 1 of the target pixel converted by the gradation value conversion unit 132, and the gradation value conversion unit 142. Based on the gradation value V2 of the target pixel, post-processing for determining a gradation value to be finally output is executed. The post-processing unit 15 includes a mixing unit 151 and a mixing ratio adjusting unit 152 as components for executing post-processing.

混合部151は、階調値V0、階調値V1、及び階調値V2を予め定められた混合比(R0:R1:R2)で足し合わせることにより算出される階調値Voを、最終的な対象画素の階調値として出力する。混合部151は、例えば下記式(6)の計算処理を実行することにより、階調値Voを決定することができる。下記式(6)において、R0,R1,R2はそれぞれ0以上1以下の整数値であり、「R0+R1+R2=1」を満たす。ここで、R0は、階調値V0(すなわち画質調整部111による調整結果)を最終的な階調値Voに反映させる割合を示す。R1は、階調値V1(すなわち第1変換部13による調整結果)を最終的な階調値Voに反映させる割合を示す。R2は、階調値V2(すなわち第2変換部14による調整結果)を最終的な階調値Voに反映させる割合を示す。
Vo=V0×R0+V1×R1+V2×R2・・・(6)
The mixing unit 151 finally outputs the gradation value Vo calculated by adding the gradation value V0, the gradation value V1, and the gradation value V2 at a predetermined mixing ratio (R0: R1: R2). Output as the gradation value of the target pixel. The mixing unit 151 can determine the gradation value Vo, for example, by executing a calculation process of the following equation (6). In the following formula (6), R0, R1, and R2 are integer values of 0 or more and 1 or less, respectively, and satisfy “R0 + R1 + R2 = 1”. Here, R0 indicates a ratio at which the gradation value V0 (that is, the adjustment result by the image quality adjustment unit 111) is reflected in the final gradation value Vo. R1 represents a ratio at which the gradation value V1 (that is, the adjustment result by the first conversion unit 13) is reflected in the final gradation value Vo. R2 indicates a ratio at which the gradation value V2 (that is, the adjustment result by the second conversion unit 14) is reflected in the final gradation value Vo.
Vo = V0 × R0 + V1 × R1 + V2 × R2 (6)

上記式(6)における混合比(R0,R1,R2)は、ユーザの好みに応じて手動で設定されてもよいし、オペレータ内の階調値の分布等に応じて自動調整されてもよい。本実施形態では一例として、オペレータ内の階調値の分布等に応じて混合比を自動調整するための混合比調整部152が備わっている。混合比調整部152は、例えば、集計部141により生成されたヒストグラムを取得し、当該ヒストグラムに示されるオペレータ内の階調値の分布に基づいて混合比(R0,R1,R2)を適切に設定する。   The mixing ratio (R0, R1, R2) in the above formula (6) may be manually set according to the user's preference, or may be automatically adjusted according to the distribution of gradation values within the operator. . In this embodiment, as an example, a mixing ratio adjusting unit 152 for automatically adjusting the mixing ratio according to the distribution of gradation values in the operator is provided. For example, the mixing ratio adjustment unit 152 acquires the histogram generated by the totalization unit 141, and appropriately sets the mixing ratio (R0, R1, R2) based on the distribution of gradation values in the operator indicated in the histogram. To do.

例えば、オペレータ内の階調値の分布が特定の1つの階調値に偏っている場合、すなわち、特定の1つの階調値の画素数がオペレータ内の画素数(オペレータが16×16の矩形領域の場合には256)と一致する場合、上述の第2変換部14による鮮明化を実行すると、鮮明化後の階調値V2は0又は255の極端な値となってしまい、階調値が適切に変換された画像を得ることができない場合がある。そこで、混合比調整部152は、オペレータ内の階調値の分布が特定の1つの階調値に偏っている場合には、第2変換部14による変換結果(階調値V2)を使用しないようにするために、R2を0に設定してもよい。   For example, when the distribution of gradation values in the operator is biased toward a specific gradation value, that is, the number of pixels of a specific gradation value is the number of pixels in the operator (the operator is a 16 × 16 rectangle). In the case of a region, when the image is matched with 256), if the sharpening by the second conversion unit 14 described above is executed, the tone value V2 after the sharpening becomes an extreme value of 0 or 255. May not be able to obtain a properly converted image. Therefore, the mixture ratio adjustment unit 152 does not use the conversion result (tone value V2) by the second conversion unit 14 when the distribution of the tone values in the operator is biased toward a specific tone value. In order to do so, R2 may be set to zero.

また、オペレータ内の階調値の分布がほぼ平坦の場合、第2変換部14によって変換された画像に揺らぎ(ノイズ)が発生してしまい、かえって見難い画像になってしまうおそれがある。そこで、混合比調整部152は、オペレータ内の階調値の分布が平坦であるか否かを予め定めた基準により判定し、平坦であると判定された場合には、R2を平坦でないと判定された場合に設定される値よりも低い値に設定してもよい。これにより、第2変換部14による変換によってノイズが発生するおそれがある状況において、第2変換部14による変換結果(階調値V2)の影響を低くすることができ、揺らぎの発生を抑制することができる。   Further, when the gradation value distribution in the operator is almost flat, the image converted by the second conversion unit 14 may fluctuate (noise), which may be difficult to view. Therefore, the mixture ratio adjustment unit 152 determines whether or not the gradation value distribution in the operator is flat based on a predetermined criterion. If it is determined that the distribution is flat, R2 is determined not to be flat. It may be set to a value lower than the value set in the case of being performed. Thereby, in a situation where there is a possibility that noise may be generated by the conversion by the second conversion unit 14, the influence of the conversion result (tone value V2) by the second conversion unit 14 can be reduced, and the occurrence of fluctuation is suppressed. be able to.

なお、混合部151は、必ずしも階調値V0,V1,V2の全てを最終的な階調値Voに反映させなくともよい。混合部151は、例えば階調値V1と階調値V2とを所定の混合比で足し合わせることにより、最終的な階調値Voを出力してもよい。この場合、上記式(6)において、R0は0に設定され、前処理部11による調整結果(階調値V0)は最終的な階調値Voには一切反映されない。同様に、第2変換部14による変換結果(階調値V2)を最終的な階調値Voに反映させない場合には、R2を0に設定すればよい。なお、この場合には、画像処理装置1の構成から第2変換部14を省略することもできる。ただし、第1変換部13によって得られた階調値V1(いわゆる局所的な(オペレータ単位での)ゲイン調整によって得られた変換結果)と、第2変換部14によって得られた階調値V2(いわゆるヒストグラム平坦化によって得られた変換結果)とを混合することにより、それぞれの変換結果がバランス良く反映された見易い画像を得ることが可能となる。例えば、ヒストグラム平坦化を行っただけの画像(すなわち階調値V2のみを反映させた画像)は、鮮明化のレベルが強過ぎてノイズが強調されてしまう場合がある。このような場合において、局所的なゲイン調整によって得られた変換結果(階調値V1)を混合することにより、ノイズの影響が低減された画像を得ることが可能となる。   Note that the mixing unit 151 does not necessarily reflect all the gradation values V0, V1, and V2 in the final gradation value Vo. The mixing unit 151 may output the final gradation value Vo, for example, by adding the gradation value V1 and the gradation value V2 with a predetermined mixing ratio. In this case, in the above equation (6), R0 is set to 0, and the adjustment result (tone value V0) by the preprocessing unit 11 is not reflected at all in the final tone value Vo. Similarly, R2 may be set to 0 when the conversion result (tone value V2) by the second converter 14 is not reflected in the final tone value Vo. In this case, the second conversion unit 14 can be omitted from the configuration of the image processing apparatus 1. However, the gradation value V1 obtained by the first conversion unit 13 (a conversion result obtained by so-called local (operator unit) gain adjustment) and the gradation value V2 obtained by the second conversion unit 14 By mixing with (the conversion result obtained by so-called histogram flattening), it becomes possible to obtain an easy-to-view image in which each conversion result is reflected in a balanced manner. For example, an image that has only been subjected to histogram flattening (ie, an image that reflects only the gradation value V2) may have a sharpening level that is too strong to emphasize noise. In such a case, it is possible to obtain an image in which the influence of noise is reduced by mixing the conversion results (tone value V1) obtained by local gain adjustment.

以下、図4及び図5を用いて、パラメータ抽出部131、階調値変換部132、階調値変換部142、及び混合部151による処理を実行する回路の例について説明する。ここでは一例として、処理対象画像の階調分解能Nmaxは、分解能調整部112により8ビット(=256)に調整されているものとする。この場合、処理対象画像の各画素の階調は、階調値0から階調値255までのいずれかの値をとる。また、ここでは、説明を簡単にするために、前処理部11により変換された階調値V0については使用しない(混合部151において混合しない)ものとする。   Hereinafter, an example of a circuit that performs processing by the parameter extraction unit 131, the gradation value conversion unit 132, the gradation value conversion unit 142, and the mixing unit 151 will be described with reference to FIGS. Here, as an example, it is assumed that the gradation resolution Nmax of the processing target image is adjusted to 8 bits (= 256) by the resolution adjustment unit 112. In this case, the gradation of each pixel of the processing target image takes any value from gradation value 0 to gradation value 255. Here, for the sake of simplicity, it is assumed that the gradation value V0 converted by the preprocessing unit 11 is not used (not mixed in the mixing unit 151).

まず、図4に示す回路の動作概要について説明する。図4に示す回路は、Nmax−1個(ここでは255個)の加算モジュールA1〜A255が多段に構成された回路であり、各加算モジュールA1〜A255の処理が順次実行されるように構成されている。この回路では、前段の加算モジュールAk(k=1〜254)から後段の加算モジュールAk+1へと、前段の加算モジュールAkでの加算結果akと対象画素の階調値Viの減算結果bkとが順次伝達される。最終的に加算モジュールA255から混合部151(例えば上記式(6)の計算を実行するための回路)へと、階調値V2が出力される。   First, an outline of the operation of the circuit shown in FIG. 4 will be described. The circuit shown in FIG. 4 is a circuit in which Nmax-1 (255 in this case) adder modules A1 to A255 are configured in multiple stages, and the processes of the adder modules A1 to A255 are sequentially executed. ing. In this circuit, from the addition module Ak (k = 1 to 254) in the previous stage to the addition module Ak + 1 in the subsequent stage, the addition result ak in the previous addition module Ak and the subtraction result bk of the gradation value Vi of the target pixel are sequentially obtained. Communicated. Finally, the gradation value V2 is output from the addition module A255 to the mixing unit 151 (for example, a circuit for executing the calculation of the above formula (6)).

また、前段の加算モジュールAkから後段の加算モジュールAk+1へと、加算モジュールAkでの処理時点における最小階調値mink及び最大階調値maxk、並びに対象画素の階調値Viが順次伝達される。最終的に加算モジュールA255から階調値変換部132(上記式(4)及び(5)の計算を実行するための回路)へと、確定した最小階調値min及び最大階調値max、並びに階調値Viが出力される。その後、階調値変換部132は、加算モジュールA255から受け取ったmin,max,Viに基づいて上記式(4)及び(5)の計算を実行することにより階調値V1を算出し、算出された階調値V1を混合部151に出力する。   Further, the minimum gradation value mink and the maximum gradation value maxk at the time of processing in the addition module Ak, and the gradation value Vi of the target pixel are sequentially transmitted from the previous addition module Ak to the subsequent addition module Ak + 1. Finally, from the addition module A255 to the gradation value conversion unit 132 (a circuit for executing the calculations of the above equations (4) and (5)), the determined minimum gradation value min and maximum gradation value max, and A gradation value Vi is output. Thereafter, the gradation value conversion unit 132 calculates the gradation value V1 by executing the calculations of the above formulas (4) and (5) based on the min, max, and Vi received from the addition module A255. The gradation value V1 is output to the mixing unit 151.

最後に、混合部151が、加算モジュールA255から受け取った階調値V2と階調値変換部132から受け取った階調値V1とに基づいて、上記式(6)の計算(ここではR0=0)を実行することにより、最終的な階調値Voを算出する。   Finally, based on the gradation value V2 received from the addition module A255 and the gradation value V1 received from the gradation value converter 132, the mixing unit 151 calculates the above equation (6) (here, R0 = 0). ) To calculate the final gradation value Vo.

次に、図5を用いて、加算モジュールの処理の詳細について説明する。図5は、図4に示す回路の第1及び第2の加算モジュールA1,A2の構成を示す図である。   Next, details of the processing of the addition module will be described with reference to FIG. FIG. 5 is a diagram showing the configuration of the first and second addition modules A1 and A2 of the circuit shown in FIG.

まず、加算モジュールが階調値変換部142として動作する部分について説明する。   First, the part in which the addition module operates as the gradation value conversion unit 142 will be described.

第1の加算モジュールA1は、レジスタA11〜A13と、0が格納されたゼロレジスタA14と、減算器A15と、セレクタA16と、加算器A17とを備える。レジスタA11及びA12には、集計部141から取得された階調値0の画素数X0及び階調値1の画素数X1がそれぞれ格納され、レジスタA13には、集計部141から取得された対象画素の階調値Viが格納される。減算器A15は、レジスタA13に格納された対象画素の階調値Viを1つ減算する。セレクタA16は、減算器A15により減算された後の値である減算結果b1(=Vi−1)と0とを比較し、減算結果b1が0より大きい場合にはレジスタA12を加算器A17に接続し、減算結果b1が0以下の場合にはゼロレジスタA14を加算器A17に接続する。加算器A17は、レジスタA11に格納された階調値0の画素数X0と、セレクタA16により接続されたレジスタA12又はゼロレジスタA14に格納された値(画素数X1又は0)とを加算し、加算結果a1を第2の加算モジュールA2に受け渡す。   The first addition module A1 includes registers A11 to A13, a zero register A14 in which 0 is stored, a subtracter A15, a selector A16, and an adder A17. The registers A11 and A12 store the pixel number X0 of the gradation value 0 and the pixel number X1 of the gradation value 1 acquired from the aggregation unit 141, respectively, and the target pixel acquired from the aggregation unit 141 is stored in the register A13. Are stored. The subtracter A15 subtracts one gradation value Vi of the target pixel stored in the register A13. The selector A16 compares the subtraction result b1 (= Vi-1), which is the value after subtraction by the subtractor A15, with 0, and if the subtraction result b1 is greater than 0, connects the register A12 to the adder A17. When the subtraction result b1 is 0 or less, the zero register A14 is connected to the adder A17. The adder A17 adds the pixel number X0 of the gradation value 0 stored in the register A11 and the value (pixel number X1 or 0) stored in the register A12 or zero register A14 connected by the selector A16, The addition result a1 is transferred to the second addition module A2.

第1の加算モジュールA1の演算処理においては、対象画素の階調値Viが2以上の場合には、減算器A15による減算結果b1が0より大きくなるため、セレクタA16によりレジスタA12が加算器A17と接続され、階調値0の画素数X0と階調値1の画素数X1とを加算した値(X0+X1)が加算結果a1として第2の加算モジュールA2に受け渡される。一方、対象画素の階調値Viが1以下の場合には、減算器A15による減算結果b1が0以下となるため、セレクタA16によりゼロレジスタA14が加算器A17と接続され、階調値0の画素数X0と0とを加算した値(すなわちレジスタA11に格納されたX0)がそのまま加算結果a1として第2の加算モジュールA2に受け渡される。   In the arithmetic processing of the first addition module A1, when the gradation value Vi of the target pixel is 2 or more, the subtraction result b1 by the subtracter A15 becomes larger than 0, so that the register A12 is added to the adder A17 by the selector A16. And a value (X0 + X1) obtained by adding the number of pixels X0 having the gradation value 0 and the number X1 of the gradation value 1 is passed to the second addition module A2 as the addition result a1. On the other hand, when the gradation value Vi of the target pixel is 1 or less, since the subtraction result b1 by the subtracter A15 is 0 or less, the zero register A14 is connected to the adder A17 by the selector A16, and the gradation value 0 A value obtained by adding the number of pixels X0 and 0 (that is, X0 stored in the register A11) is directly transferred to the second addition module A2 as the addition result a1.

第2の加算モジュールA2は、第1の加算モジュールA1と同様に、レジスタA21〜A23と、0が格納されたゼロレジスタA24と、減算器A25と、セレクタA26と、加算器A27とを備える。レジスタA21には、第1の加算モジュールA1による加算結果a1が格納される。レジスタA22には、遅延回路Zでの遅延処理により、第1の加算モジュールA1での演算処理が完了するタイミングと同期して、階調値2の画素値X2が格納される。レジスタA23には、減算器A15による減算結果b1が格納される。減算器A25は、レジスタA23に格納された減算結果b1を1つ減算する。セレクタA26は、減算器A25により減算された後の値である減算結果b2(=b1−1)と0とを比較し、減算結果b2が0より大きい場合にはレジスタA22を加算器A27に接続し、減算結果b2が0以下の場合にはゼロレジスタA24を加算器A27に接続する。加算器A27は、レジスタA21に格納された加算結果a1と、セレクタA26により接続されたレジスタA22又はゼロレジスタA24に格納された値(画素数X2又は0)とを加算し、加算結果a2を第3の加算モジュールA3に受け渡す。   Similar to the first addition module A1, the second addition module A2 includes registers A21 to A23, a zero register A24 in which 0 is stored, a subtractor A25, a selector A26, and an adder A27. The register A21 stores the addition result a1 by the first addition module A1. In the register A22, the pixel value X2 of the gradation value 2 is stored in synchronization with the timing at which the arithmetic processing in the first addition module A1 is completed by the delay processing in the delay circuit Z. The register A23 stores the subtraction result b1 by the subtracter A15. The subtracter A25 subtracts one subtraction result b1 stored in the register A23. The selector A26 compares the subtraction result b2 (= b1-1), which is the value after subtraction by the subtractor A25, with 0, and if the subtraction result b2 is greater than 0, connects the register A22 to the adder A27. If the subtraction result b2 is 0 or less, the zero register A24 is connected to the adder A27. The adder A27 adds the addition result a1 stored in the register A21 and the value (number of pixels X2 or 0) stored in the register A22 or the zero register A24 connected by the selector A26, and the addition result a2 is added to the first result. 3 to the addition module A3.

第2の加算モジュールA2の演算処理においては、対象画素の階調値Viが3以上の場合には、減算器A25による減算結果b2が0より大きくなるため、セレクタA26によりレジスタA22が加算器A27と接続され、レジスタA21に格納された加算結果a1(この場合、X0+X1)と階調値2の画素数X2とを加算した値(X0+X1+X2)が第3の加算モジュールA3に受け渡される。一方、対象画素の階調値Viが2以下の場合には、減算器A25による減算結果b2が0以下となるため、セレクタA26によりゼロレジスタA24が加算器A27と接続され、レジスタA21に格納された加算結果a1と0とを加算した結果(すなわちレジスタA21に格納されたa1)がそのまま加算結果a2として第3の加算モジュールA3に受け渡される。   In the arithmetic processing of the second addition module A2, when the gradation value Vi of the target pixel is 3 or more, the subtraction result b2 by the subtractor A25 becomes larger than 0, so that the register A22 is added to the adder A27 by the selector A26. And the value (X0 + X1 + X2) obtained by adding the addition result a1 (in this case, X0 + X1) stored in the register A21 and the number of pixels X2 of the gradation value 2 is passed to the third addition module A3. On the other hand, when the gradation value Vi of the target pixel is 2 or less, since the subtraction result b2 by the subtracter A25 is 0 or less, the zero register A24 is connected to the adder A27 by the selector A26 and stored in the register A21. The result obtained by adding the addition result a1 and 0 (that is, a1 stored in the register A21) is directly transferred to the third addition module A3 as the addition result a2.

以下、第3から第255までの加算モジュールA3〜A255においても、上述の第1及び第2の加算モジュールA1,A2と同様の処理が直列的に実行される。この回路によれば、階調値0から「対象画素の階調値Vi−1」までの各階調値の画素数が加算された以降の演算処理を実行する加算モジュールにおいて、減算器による減算結果は0以下となり、セレクタによってゼロレジスタが加算器に接続されるため、画素数の加算が停止する。従って、上記回路では、最終的に第255の加算モジュールA255から出力される加算結果(階調値V2)は、階調値0から「対象画素の階調値Vi−1」までの各階調値の画素数を加算した結果となる。   Thereafter, in the third to 255th addition modules A3 to A255, the same processing as that of the first and second addition modules A1 and A2 described above is executed in series. According to this circuit, in the addition module that executes the arithmetic processing after the number of pixels of each gradation value from gradation value 0 to “gradation value Vi−1 of the target pixel” is added, the subtraction result by the subtractor Becomes 0 or less, and since the zero register is connected to the adder by the selector, the addition of the number of pixels is stopped. Therefore, in the above circuit, the addition result (gradation value V2) finally output from the 255th addition module A255 is the gradation value from gradation value 0 to "gradation value Vi-1 of the target pixel". As a result, the number of pixels is added.

なお、各加算モジュールにおけるセレクタの判定処理において、境界条件に0を含めるか否かについては任意に定めることができる。例えば、各加算モジュールにおけるセレクタの判定処理において、減算器による減算結果が0未満である場合にゼロレジスタを加算器に接続し、減算器による減算結果が0以上である場合には対応する階調値が格納されたレジスタを加算器に接続するようにしてもよい。この場合、第255の加算モジュールA255から出力される加算結果(階調値V2)は、階調値0から「対象画素の階調値Vi」までの各階調値の画素数を加算した結果となる。このように各加算モジュールにおけるセレクタの判定処理の境界条件をどのようにするかは任意の設定事項であるため、本明細書では、階調値0から「対象画素の階調値Vi」又は「対象画素の階調値Vi−1」までの各階調値の画素数のことを総括して、単に「階調値0から対象画素の階調値Viまでの各階調値に対応する画素数」という。   In addition, in the determination process of the selector in each addition module, whether or not 0 is included in the boundary condition can be arbitrarily determined. For example, in the determination process of the selector in each addition module, when the subtraction result by the subtracter is less than 0, a zero register is connected to the adder, and when the subtraction result by the subtractor is 0 or more, the corresponding gradation A register storing a value may be connected to the adder. In this case, the addition result (gradation value V2) output from the 255th addition module A255 is the result of adding the number of pixels of each gradation value from the gradation value 0 to “the gradation value Vi of the target pixel”. Become. As described above, how the boundary condition of the determination process of the selector in each addition module is an arbitrary setting item. Therefore, in this specification, from the gradation value 0 to “the gradation value Vi of the target pixel” or “ Collectively, the number of pixels of each gradation value up to “the gradation value Vi-1 of the target pixel” is simply “the number of pixels corresponding to each gradation value from the gradation value 0 to the gradation value Vi of the target pixel”. That's it.

また、上述の回路は、階調値0から対象画素の階調値Viまでの各階調値の画素数を順次加算するように構成されたものであるが、これとは逆に、初期値を最大の階調値である255として、階調値255から対象画素の階調値Viまでの各階調値の画素数を順次減算するように変形された回路を用いてもよい。すなわち、階調値変換部142は、階調値255から対象画素の階調値Viまでの各階調値の画素数を255から減算することにより新たな階調値を算出してもよい。このような処理を実行する回路によっても、上述の回路と同様に、階調値0から対象画素の階調値Viまでの各階調値の画素数を加算した結果を出力することができる。   In addition, the above circuit is configured to sequentially add the number of pixels of each gradation value from gradation value 0 to gradation value Vi of the target pixel. As the maximum gradation value 255, a circuit modified to sequentially subtract the number of pixels of each gradation value from the gradation value 255 to the gradation value Vi of the target pixel may be used. That is, the gradation value conversion unit 142 may calculate a new gradation value by subtracting from 255 the number of pixels of each gradation value from the gradation value 255 to the gradation value Vi of the target pixel. The circuit that executes such processing can also output the result of adding the number of pixels of each gradation value from the gradation value 0 to the gradation value Vi of the target pixel, as in the above-described circuit.

次に、加算モジュールがパラメータ抽出部131として動作する部分について、説明する。なお、本実施形態では一例として、回路構成を簡単にするために階調値0を最小階調値minの候補から除外している。   Next, the part where the addition module operates as the parameter extraction unit 131 will be described. In the present embodiment, as an example, in order to simplify the circuit configuration, the gradation value 0 is excluded from the candidates for the minimum gradation value min.

図5に示すように、パラメータ抽出部131として動作するための構成要素として、第1の加算モジュールA1は、最小値レジスタA18と最大値レジスタA19とを備える。同様に、第2の加算モジュールA2は、最小値レジスタA28と最大値レジスタA29とを備える。以下、これらの回路要素によって最小階調値min及び最大階調値maxが求まる仕組みについて説明する。   As shown in FIG. 5, as a component for operating as the parameter extraction unit 131, the first addition module A1 includes a minimum value register A18 and a maximum value register A19. Similarly, the second addition module A2 includes a minimum value register A28 and a maximum value register A29. Hereinafter, a mechanism for obtaining the minimum gradation value min and the maximum gradation value max by these circuit elements will be described.

まず、最小階調値minが求まる仕組みについて説明する。第1の加算モジュールA1は、図示しない最小値検出機構により、レジスタA12に格納された階調値1の画素数X1が0より大きいか否かを判定する。画素数X1が0より大きいと判定された場合には、加算モジュールA1は、当該加算モジュールA1の段数を示す値(ここでは「1」)を暫定的な最小階調値を示す暫定最小値min1として最小値レジスタA18に格納する。一方、画素数X1が0より大きいと判定されなかった場合(すなわちX1=0の場合)には、加算モジュールA1は、「0」を暫定最小値min1として最小値レジスタA18に格納する。最小値レジスタA18に格納された暫定最小値min1は、後段の第2の加算モジュールA2に受け渡され、最小値レジスタA28に格納される。   First, a mechanism for obtaining the minimum gradation value min will be described. The first addition module A1 determines whether or not the number of pixels X1 of the gradation value 1 stored in the register A12 is greater than 0 by a minimum value detection mechanism (not shown). When it is determined that the number of pixels X1 is greater than 0, the addition module A1 uses a value indicating the number of stages of the addition module A1 (here, “1”) as a provisional minimum value min1 indicating a provisional minimum gradation value. Is stored in the minimum value register A18. On the other hand, when it is not determined that the pixel number X1 is greater than 0 (that is, when X1 = 0), the addition module A1 stores “0” as the provisional minimum value min1 in the minimum value register A18. The provisional minimum value min1 stored in the minimum value register A18 is transferred to the second addition module A2 at the subsequent stage and stored in the minimum value register A28.

第2の加算モジュールA2は、図示しない最小値検出機構により、最小値レジスタA28に格納された暫定最小値min1が0より大きいか否かを判定する。ここで、暫定最小値min1が0より大きいことは、階調値2よりも小さい階調値の画素が存在することを意味する。よって、暫定最小値min1が0より大きい場合には、加算モジュールA2は、最小値レジスタA28に格納された暫定最小値min1の値を書き換えない。一方、暫定最小値min1が「0」であることは、階調値2よりも小さい階調値の画素が存在しないことを意味する。よって、暫定最小値min1が「0」である場合には、加算モジュールA2は、レジスタA22に格納された階調値2の画素数X2が0より大きいか否かを更に判定する。この判定で画素数X2が0より大きいと判定された場合には、加算モジュールA2は、最小値レジスタA28に格納された暫定最小値min1を当該加算モジュールA2の段数を示す値(ここでは「2」)に書き換える。一方、画素数X2が0より大きいと判定されなかった場合(すなわちX2=0の場合)には、加算モジュールA2は、最小値レジスタA28に格納された暫定最小値min1の値(0)を書き換えない。上述の処理が実行された後、最小値レジスタA28に格納された暫定最小値min1は、暫定最小値min2として後段の第3の加算モジュールA3に受け渡される。   The second addition module A2 determines whether or not the provisional minimum value min1 stored in the minimum value register A28 is greater than 0 by a minimum value detection mechanism (not shown). Here, the provisional minimum value min1 being larger than 0 means that a pixel having a gradation value smaller than the gradation value 2 exists. Therefore, when the provisional minimum value min1 is larger than 0, the addition module A2 does not rewrite the value of the provisional minimum value min1 stored in the minimum value register A28. On the other hand, the provisional minimum value min1 being “0” means that there is no pixel having a gradation value smaller than the gradation value 2. Therefore, when the temporary minimum value min1 is “0”, the addition module A2 further determines whether or not the number of pixels X2 of the gradation value 2 stored in the register A22 is greater than zero. If it is determined in this determination that the number of pixels X2 is greater than 0, the addition module A2 uses the provisional minimum value min1 stored in the minimum value register A28 as a value indicating the number of stages of the addition module A2 (here, “2 ]). On the other hand, when it is not determined that the number of pixels X2 is greater than 0 (that is, when X2 = 0), the addition module A2 rewrites the value (0) of the provisional minimum value min1 stored in the minimum value register A28. Absent. After the above-described processing is executed, the provisional minimum value min1 stored in the minimum value register A28 is transferred to the subsequent third addition module A3 as the provisional minimum value min2.

第3から第255までの加算モジュールA3〜A255も、上述の第2の加算モジュールA2と同様の最小値検出機構及び最小値レジスタを備えており、第2の加算モジュールA2と同様の処理(最小値レジスタの書き換え処理)を実行する。以上の仕組みにより、加算モジュールの最小値レジスタには、最初に0より大きい画素数を持つ階調値が検出された時点で当該階調値(すなわち最小階調値min)が暫定最小値として格納される。そして、当該暫定最小値は、書き換えられることなく、後段の加算モジュールに順次伝達される。その結果、最終的に第255の加算モジュールA255によって、最小階調値minが階調値変換部132に出力される。   The third to 255th addition modules A3 to A255 are also provided with a minimum value detection mechanism and a minimum value register similar to those of the second addition module A2, and the same processing (minimum as the second addition module A2). Execute value register rewrite processing). With the above mechanism, the gradation value (that is, the minimum gradation value min) is stored in the minimum value register of the addition module as a provisional minimum value when a gradation value having the number of pixels larger than 0 is first detected. Is done. Then, the provisional minimum value is sequentially transmitted to the subsequent addition module without being rewritten. As a result, the minimum gradation value min is finally output to the gradation value conversion unit 132 by the 255th addition module A255.

次に、最大階調値maxが求まる仕組みについて説明する。第1の加算モジュールA1は、図示しない最大値検出機構により、レジスタA12に格納された階調値1の画素数X1が0より大きいか否かを判定する。画素数X1が0より大きいと判定された場合には、加算モジュールA1は、当該加算モジュールA1の段数を示す値(ここでは「1」)を暫定的な最大階調値を示す暫定最大値max1として最大値レジスタA19に格納する。一方、画素数X1が0より大きいと判定されなかった場合(すなわちX1=0の場合)には、加算モジュールA1は、「0」を暫定最大値max1として最大値レジスタA19に格納する。最大値レジスタA19に格納された暫定最大値max1は、後段の第2の加算モジュールA2に受け渡され、最大値レジスタA29に格納される。   Next, a mechanism for obtaining the maximum gradation value max will be described. The first addition module A1 determines whether or not the number X1 of gradation values 1 stored in the register A12 is greater than 0 by a maximum value detection mechanism (not shown). When it is determined that the number of pixels X1 is greater than 0, the addition module A1 uses a value indicating the number of stages of the addition module A1 (here, “1”) as a provisional maximum value max1 indicating a provisional maximum gradation value. Is stored in the maximum value register A19. On the other hand, when it is not determined that the pixel number X1 is greater than 0 (that is, when X1 = 0), the addition module A1 stores “0” in the maximum value register A19 as the provisional maximum value max1. The provisional maximum value max1 stored in the maximum value register A19 is transferred to the second addition module A2 at the subsequent stage and stored in the maximum value register A29.

第2の加算モジュールA2は、図示しない最大値検出機構により、レジスタA22に格納された階調値2の画素数X2が0より大きいか否かを判定する。画素数X2が0より大きい場合には、加算モジュールA2は、最大値レジスタA29に格納された暫定最大値max1を当該加算モジュールA2の段数を示す値(ここでは「2」)に書き換える。一方、画素数X2が0より大きいと判定されなかった場合(すなわちX2=0の場合)には、加算モジュールA2は、最大値レジスタA29に格納された暫定最大値max1の値を書き換えない。上述の処理が実行された後、最大値レジスタA29に格納された暫定最大値max1は、暫定最大値max2として後段の第3の加算モジュールA3に受け渡される。   The second addition module A2 determines whether or not the pixel number X2 of the gradation value 2 stored in the register A22 is greater than 0 by a maximum value detection mechanism (not shown). When the number of pixels X2 is greater than 0, the addition module A2 rewrites the provisional maximum value max1 stored in the maximum value register A29 to a value (here, “2”) indicating the number of stages of the addition module A2. On the other hand, when it is not determined that the pixel number X2 is greater than 0 (that is, when X2 = 0), the addition module A2 does not rewrite the value of the provisional maximum value max1 stored in the maximum value register A29. After the above-described processing is executed, the provisional maximum value max1 stored in the maximum value register A29 is transferred as the provisional maximum value max2 to the subsequent third addition module A3.

第3から第255までの加算モジュールA3〜A255も、上述の第2の加算モジュールA2と同様の最大値検出機構及び最大値レジスタを備えており、第2の加算モジュールA2と同様の処理(最大値レジスタの書き換え処理)を実行する。以上の仕組みにより、加算モジュールの最大値レジスタには、0より大きい画素数を持つ階調値が検出される度に暫定最大値が当該階調値に書き換えられる。つまり、0より大きい画素数を持つ階調値がそれ以上見つからなくなるまで暫定最大値が順次書き換えられる。その結果、最終的に第255の加算モジュールA255によって、最大階調値maxが階調値変換部132に出力される。   The third to 255th addition modules A3 to A255 are also provided with a maximum value detection mechanism and a maximum value register similar to those of the second addition module A2, and the same processing (maximum) as the second addition module A2 is performed. Execute value register rewrite processing). With the above mechanism, the provisional maximum value is rewritten in the maximum value register of the addition module every time a gradation value having a number of pixels larger than 0 is detected. That is, the provisional maximum value is sequentially rewritten until no more gradation value having the number of pixels larger than 0 is found. As a result, the maximum gradation value max is finally output to the gradation value conversion unit 132 by the 255th addition module A255.

なお、図5に示すように、第2の加算モジュールA2は、対象画素の階調値Viを格納するためのレジスタA20を備える。具体的には、第1の加算モジュールA1のレジスタA13に格納された階調値Viが第2の加算モジュールA2に受け渡され、レジスタA20に格納される。第3〜第255の加算モジュールA3〜A255も、第2の加算モジュールA2と同様に、階調値Viを格納するためのレジスタを備え、当該レジスタを介して前段の加算モジュールから後段の加算モジュールへと階調値Viが受け渡される。その結果、最終的に第255の加算モジュールA255によって、対象画素の階調値Viが階調値変換部132に出力される。   As shown in FIG. 5, the second addition module A2 includes a register A20 for storing the gradation value Vi of the target pixel. Specifically, the gradation value Vi stored in the register A13 of the first addition module A1 is transferred to the second addition module A2 and stored in the register A20. Similarly to the second addition module A2, the third to 255th addition modules A3 to A255 are also provided with a register for storing the gradation value Vi, and the previous addition module is changed from the previous addition module via the register. The gradation value Vi is passed to As a result, the gradation value Vi of the target pixel is finally output to the gradation value conversion unit 132 by the 255th addition module A255.

図4及び図5に示す回路では、各加算モジュールにおいてパラメータ抽出部131による処理と階調値変換部142による処理とが同時並行的に実行される。具体的には、上述の回路は、階調値変換部142による処理を実行するための加算モジュールに、最大値検出及び最小値検出するための構成が組み込まれたものとなっている。上述の回路においては、各加算モジュール内の最小値レジスタ及び最大値レジスタは、最小階調値min及び最大階調値maxを抽出するパラメータ抽出部131として機能する。このように構成されたパラメータ抽出部131は、集計部141によって生成されたヒストグラム(すなわち、各階調値の画素数X1〜X255)を利用して、最小階調値min及び最大階調値maxを抽出する。この構成によれば、階調値変換部142による処理に必要となるヒストグラムを利用して最小階調値min及び最大階調値maxを抽出することができるので、全体の処理構成を簡単化することができる。具体的には、図4及び図5に示したように、最小階調値min及び最大階調値maxを抽出する処理と階調値変換部142による処理とを並行して実行するように回路を構成することができるので、処理の効率化を図ると共に回路構成を単純化することができる。   In the circuits shown in FIGS. 4 and 5, the processing by the parameter extraction unit 131 and the processing by the gradation value conversion unit 142 are executed in parallel in each addition module. Specifically, in the above-described circuit, a configuration for detecting a maximum value and a minimum value is incorporated in an addition module for executing processing by the gradation value conversion unit 142. In the above-described circuit, the minimum value register and the maximum value register in each addition module function as the parameter extraction unit 131 that extracts the minimum gradation value min and the maximum gradation value max. The parameter extraction unit 131 configured as described above uses the histogram generated by the totalization unit 141 (that is, the number of pixels X1 to X255 of each gradation value) to obtain the minimum gradation value min and the maximum gradation value max. Extract. According to this configuration, the minimum gradation value min and the maximum gradation value max can be extracted using the histogram necessary for the processing by the gradation value conversion unit 142, so that the entire processing configuration is simplified. be able to. Specifically, as illustrated in FIGS. 4 and 5, the circuit is configured to execute the process of extracting the minimum gradation value min and the maximum gradation value max and the process of the gradation value conversion unit 142 in parallel. Therefore, the processing efficiency can be improved and the circuit configuration can be simplified.

続いて、図6を用いて、画像処理装置1の動作について説明する。   Subsequently, the operation of the image processing apparatus 1 will be described with reference to FIG.

まず、前処理部11によって、監視カメラ等により撮影された映像の各フレームが入力画像として取得され、入力画像の特徴に基づいて入力画像の各画素の階調値を変換する前処理が実行される(ステップS1)。続いて、前処理部11によって各画素の階調値が変換された後の処理対象画像の各画素について、ステップS2からステップS7までの処理が実行される。   First, the preprocessing unit 11 acquires each frame of a video shot by a monitoring camera or the like as an input image, and executes preprocessing for converting the gradation value of each pixel of the input image based on the characteristics of the input image. (Step S1). Subsequently, the processing from step S2 to step S7 is executed for each pixel of the processing target image after the gradation value of each pixel is converted by the preprocessing unit 11.

具体的には、まず、オペレータ設定部12により、処理対象画像内の対象画素を含む複数画素からなるオペレータが設定される(ステップS2)。続いて、集計部141により、オペレータ内の各画素の階調値が取得され、当該各画素の階調値に基づいて0から自然数Nまでの各階調値に対応する画素数を示すヒストグラムが生成される(ステップS3)。   Specifically, first, an operator composed of a plurality of pixels including the target pixel in the processing target image is set by the operator setting unit 12 (step S2). Subsequently, the aggregation unit 141 acquires the gradation value of each pixel in the operator, and generates a histogram indicating the number of pixels corresponding to each gradation value from 0 to a natural number N based on the gradation value of each pixel. (Step S3).

続いて、例えば図4及び図5に示した回路として実現されるパラメータ抽出部131は、最大階調値max及び最小階調値minを抽出する(ステップS4)。その後、階調値変換部132は、パラメータ抽出部131によって抽出された最大階調値max及び最小階調値min、並びに対象画素の階調値Viを上述した式(4)及び(5)に入力して計算を実行することにより、階調値V1を決定する(ステップS5)。また、ステップS4及びステップS5の処理と並行して、階調値変換部142は、階調値0から対象画素の階調値Viまでの各階調値の画素数を加算することにより(又は、階調値255から対象画素の階調値Viまでの各階調値の画素数を255から減算することにより)、階調値V2を決定する(ステップS6)。   Subsequently, for example, the parameter extraction unit 131 realized as the circuit illustrated in FIGS. 4 and 5 extracts the maximum gradation value max and the minimum gradation value min (step S4). Thereafter, the gradation value conversion unit 132 converts the maximum gradation value max and the minimum gradation value min extracted by the parameter extraction unit 131 and the gradation value Vi of the target pixel into the above-described formulas (4) and (5). By inputting and executing the calculation, the gradation value V1 is determined (step S5). In parallel with the processing of Step S4 and Step S5, the gradation value conversion unit 142 adds the number of pixels of each gradation value from the gradation value 0 to the gradation value Vi of the target pixel (or The gradation value V2 is determined by subtracting the number of pixels of each gradation value from the gradation value 255 to the gradation value Vi of the target pixel from 255 (step S6).

続いて、後処理部15が後処理を実行する(ステップS7)。具体的には、混合部151が、前処理部11により変換された対象画素の階調値V0と、階調値変換部132により変換された対象画素の階調値V1と、階調値変換部142により変換された対象画素の階調値V2とを所定の混合比(R0,R1,R2)で足し合わせることにより、最終的な変換結果となる対象画素の階調値Voを算出する。この後処理(混合処理)により、ユーザの好みやオペレータ内の照度分布等に応じて鮮明化強度が適切に調整された対象画素の階調値Voが出力される。上記のステップS2からS7までの処理が処理対象画像内の全ての画素について実行されることで、適切に鮮明化された画像を得ることができる。   Subsequently, the post-processing unit 15 performs post-processing (step S7). Specifically, the mixing unit 151 converts the gradation value V0 of the target pixel converted by the preprocessing unit 11, the gradation value V1 of the target pixel converted by the gradation value conversion unit 132, and the gradation value conversion. The gradation value Vo of the target pixel, which is the final conversion result, is calculated by adding the gradation value V2 of the target pixel converted by the unit 142 with a predetermined mixing ratio (R0, R1, R2). By this post-processing (mixing process), the gradation value Vo of the target pixel whose sharpening intensity is appropriately adjusted according to the user's preference, the illuminance distribution within the operator, or the like is output. By performing the processing from steps S2 to S7 for all the pixels in the processing target image, it is possible to obtain an appropriately sharpened image.

以上述べた画像処理装置1では、オペレータ内の各画素の最小階調値min及び最大階調値maxに基づいて決定されるゲインGをオペレータ内の対象画素の階調値Viに適用する変換処理が実行され、対象画素の変換後の階調値V1が決定される。このようなオペレータ単位でのゲインの適用を処理対象画像内の各画素を対象画素として実行することにより、オペレータ毎に当該オペレータに含まれる各画素の階調値の分布等に応じて定まる適切な程度の鮮明化を行うことが可能となる。これにより、鮮明化の程度が適切に調整された見易い画像を得ることができる。さらに、このようにして得られた階調値V1に、上述した階調値V0,V2等を所定の混合比で足し合わせることにより、ユーザの好み等に応じて一層見易く改善された画像を得ることが可能となる。   In the image processing apparatus 1 described above, the conversion process for applying the gain G determined based on the minimum gradation value min and the maximum gradation value max of each pixel in the operator to the gradation value Vi of the target pixel in the operator. Is executed, and the gradation value V1 after conversion of the target pixel is determined. By executing the application of gain in units of operators as the target pixel for each pixel in the processing target image, an appropriate value determined depending on the distribution of gradation values of the respective pixels included in the operator for each operator. It is possible to achieve a degree of sharpening. Thereby, it is possible to obtain an easy-to-see image in which the degree of sharpening is appropriately adjusted. Further, by adding the above-described gradation values V0, V2 and the like at a predetermined mixing ratio to the gradation value V1 obtained in this way, an image that is easier to see and improved according to the user's preference and the like is obtained. It becomes possible.

以上、本発明をその実施形態に基づいて詳細に説明した。しかし、本発明は上記実施形態に限定されるものではない。本発明は、その要旨を逸脱しない範囲で様々な変形が可能である。例えば、階調値変換部132は、上記式(4)及び(5)以外の計算式を用いて対象画素の階調値Viを変換してもよい。   The present invention has been described in detail based on the embodiments. However, the present invention is not limited to the above embodiment. The present invention can be variously modified without departing from the gist thereof. For example, the gradation value conversion unit 132 may convert the gradation value Vi of the target pixel using a calculation expression other than the expressions (4) and (5).

また、上記実施形態では、パラメータ抽出部131による処理が階調値変換部142による処理と同時並行的に実行される回路例(図4及び図5)について説明したが、パラメータ抽出部131による抽出処理は別処理で行われてもよい。図7に、第1変換部13の処理を実行する回路の他の例を示す。図7に示す回路では、パラメータ抽出部131は、2つの入力値の大小関係を判定し、大きいと判定された入力値及び小さいと判定された入力値をそれぞれ予め決められた出力先に出力するように構成された複数の大小選別器から構成されている。   In the above embodiment, the circuit example (FIGS. 4 and 5) in which the processing by the parameter extraction unit 131 is executed concurrently with the processing by the gradation value conversion unit 142 has been described. The process may be performed as a separate process. FIG. 7 shows another example of a circuit that executes the processing of the first conversion unit 13. In the circuit shown in FIG. 7, the parameter extraction unit 131 determines the magnitude relationship between two input values, and outputs the input value determined to be large and the input value determined to be small to respective predetermined output destinations. It comprises a plurality of large and small sorters configured as described above.

具体的には、第1段目に128個(オペレータ内に含まれる画素数の半分)の大小選別器B1が配置され、その後段(第2段目)に、第1段目の大小選別器B1と同数の大小選別器が配置される。第2段目の大小選別器は、第1段目の大小選別器B1によって大きいと判定されたもの同士の大小関係を比較する64個の大小選別器B21と、大小選別器B1によって小さいと判定されたもの同士の大小関係を比較する64個の大小選別器B21とからなる。   Specifically, 128 size selectors B1 (half the number of pixels included in the operator) are arranged in the first stage, and the first stage size selector in the subsequent stage (second stage). As many size sorters as B1 are arranged. The second-stage size selector is determined to be small by the 64 size selectors B21 for comparing the size relationships between those determined to be large by the first-size selector B1 and the size selector B1. It consists of 64 size selectors B21 for comparing the size relationship between the two.

第2段目の大小選別器B21,B22の後段(第3段目)には、第2段目の大小選別器B21,B22の総数の半分の数(64個)の大小選別器が配置される。第3段目の大小選別器は、第2段目の64個の大小選別器B21によって大きいと判定されたもの同士の大小関係を比較する32個の大小選別器B31と、第2段目の64個の大小選別器B22によって小さいと判定されたもの同士の大小関係を比較する32個の大小選別器B32とからなる。第4段目以降も同様に、配置される大小選別器の総数が前段の大小選別器の総数よりも半分の数となるように、前段で大きいと判定されたもの同士の大小関係を比較する大小選別器B41,B51,B61,B71,B81と前段で小さいと判定されたもの同士の大小関係を比較する大小選別器B42,B52,B62,B72,B82とが配置される。   In the subsequent stage (third stage) of the second stage size selectors B21 and B22, half (64 pieces) of the size selectors of the second stage size selectors B21 and B22 are arranged. The The third-stage size selector has 32 size selectors B31 for comparing the size relationships between those determined to be large by the second-stage 64 size selectors B21, and the second-stage size selector It consists of 32 size selectors B32 that compare the size relationships between those determined to be small by 64 size selectors B22. Similarly, in the fourth and subsequent stages, the magnitude relations between those determined to be large in the previous stage are compared so that the total number of the large and small sorters arranged is half the total number of the large and small sorters in the previous stage. The size selectors B42, B52, B62, B72, and B82 for comparing the size relationship between the size selectors B41, B51, B61, B71, and B81 and those determined to be small in the previous stage are arranged.

以下、図7に示す回路の動作について説明する。まず、第1段目の大小選別器B21の各々に、オペレータ内の各階調値と各階調値の画素数X0〜X255とが関連付けられた256個のペア情報のうちから重複しないように選択された2つのペア情報が入力される。ここで、第1段目の大小選別器B21への入力は、例えば集計部141によって生成されたヒストグラムの情報を蓄積するバッファ回路(不図示)から与えられる。以下、階調値kと階調値kの画素数Xkのペア情報を[k、Xk](k=0〜255)と表す。   The operation of the circuit shown in FIG. 7 will be described below. First, each of the first and second size selectors B21 is selected not to overlap among 256 pieces of pair information in which each gradation value in the operator and the number of pixels X0 to X255 of each gradation value are associated. Two pair information is input. Here, the input to the first-stage size selector B21 is given from, for example, a buffer circuit (not shown) that accumulates the information of the histogram generated by the counting unit 141. Hereinafter, the pair information of the gradation value k and the number of pixels Xk of the gradation value k is represented as [k, Xk] (k = 0 to 255).

例えば、図7の第1段目の最上段の大小選別器B1は、ペア情報[0、X0]とペア情報[1、X1]とを入力として受け付け、入力された各ペア情報の画素数同士(この場合X0とX1)の大小関係を比較する。そして、大小選別器B1は、大きいと判定された方(ここで一例としてX1)に紐付くペア情報[1、X1]を大きいと判定されたもの同士の大小関係を比較する後段の大小選別器B21(64個の大小選別器B21のうちのいずれか)に出力する。一方、大小選別器B1は、小さいと判定された方(ここでは一例としてX0)に紐付くペア情報[0、X0]を小さいと判定されたもの同士の大小関係を比較する後段の大小選別器B22(64個の大小選別器B22のうちのいずれか)に出力する。   For example, the size selector B1 at the top of the first level in FIG. 7 accepts the pair information [0, X0] and the pair information [1, X1] as inputs, and the number of pixels of each input pair information. The magnitude relationship between (X0 and X1 in this case) is compared. The large / small sorter B1 is a subsequent large / small sorter that compares the magnitude relation between the pair information [1, X1] that is determined to be large (one X1 as an example here) that is determined to be large. The data is output to B21 (any one of 64 large and small sorters B21). On the other hand, the large / small sorter B1 is a subsequent large / small sorter that compares the magnitude relationship between the pair information [0, X0] that is determined to be small in the pair information [0, X0] associated with the smaller one (here, X0 as an example). The data is output to B22 (any one of the 64 large and small sorters B22).

以上のように、第1段目の大小選別器B1の処理により、最大階調値maxの候補がオペレータ内に含まれる画素数(ここでは一例として256個)の半分の128個に絞られる。そして、この128個の候補同士が第2段目の大小選別器B21によって大小比較されることにより、最大階調値maxの候補がさらに半分の64個に絞られる。このようにして、前段から後段へと大小比較が進められることにより、最終的に第8段目の大小選別器B81が、最大階調値maxを階調値変換部132に出力する。   As described above, the maximum gradation value max candidates are narrowed down to 128, which is half of the number of pixels included in the operator (256 as an example here), by the processing of the first and second size selector B1. Then, the 128 candidates are compared in size by the second size selector B21, whereby the candidates for the maximum gradation value max are further reduced to 64, which is a half. In this way, the magnitude comparison is advanced from the previous stage to the subsequent stage, so that the magnitude selector B81 in the eighth stage finally outputs the maximum gradation value max to the gradation value conversion unit 132.

同様に、第1段目の大小選別器B1の処理により、最小階調値minの候補がオペレータ内に含まれる画素数の半分の128個に絞られる。そして、この128個の候補同士が第2段目の大小選別器B22によって大小比較されることにより、最小階調値minの候補がさらに半分の64個に絞られる。このようにして、前段から後段へと大小比較が進められることにより、最終的に第8段目の大小選別器B82が、最小階調値minを階調値変換部132に出力する。   Similarly, the candidate of the minimum gradation value min is narrowed down to 128, which is half of the number of pixels included in the operator, by the processing of the first and the second size selector B1. Then, the 128 candidates are compared in size by the second size selector B22, whereby the candidates of the minimum gradation value min are further reduced to 64, which is half. Thus, the magnitude comparison is advanced from the preceding stage to the succeeding stage, so that the magnitude selector B82 in the eighth stage finally outputs the minimum gradation value min to the gradation value converting unit 132.

また、上述のバッファ回路(不図示)は、対象画素の階調値Viが第8段目の大小選別器B81,B82と同じタイミングで階調値変換部132に出力されるように、遅延回路Zを介して階調値Viを階調値変換部132に出力する。最後に、階調値変換部132が、大小選別器B81から出力された最大階調値maxと、大小選別器B82から出力された最小階調値minと、遅延回路Zを介して入力される階調値Viとを受け付け、上記式(4)及び(5)を用いた計算により階調値V2を算出する。なお、このようにして算出された階調値V2は、混合部151に出力される。   In addition, the buffer circuit (not shown) includes a delay circuit so that the gradation value Vi of the target pixel is output to the gradation value conversion unit 132 at the same timing as that of the eighth stage size selectors B81 and B82. The gradation value Vi is output to the gradation value conversion unit 132 via Z. Finally, the gradation value conversion unit 132 receives the maximum gradation value max output from the large / small selector B81, the minimum gradation value min output from the large / small selector B82, and the delay circuit Z. The gradation value Vi is received, and the gradation value V2 is calculated by calculation using the above equations (4) and (5). The tone value V2 calculated in this way is output to the mixing unit 151.

1…画像処理装置、11…前処理部、111…画質調整部、112…分解能調整部、12…オペレータ設定部、13…第1変換部、131…パラメータ抽出部、132…階調値変換部、14…第2変換部、141…集計部、142…階調値変換部(第2階調値変換部)、15…後処理部、151…混合部、152…混合比調整部、101…CPU、102…RAM、103…ROM、104…入力装置、105…通信装置、106…FPGA、107…出力装置。
DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 11 ... Pre-processing part, 111 ... Image quality adjustment part, 112 ... Resolution adjustment part, 12 ... Operator setting part, 13 ... 1st conversion part, 131 ... Parameter extraction part, 132 ... Tone value conversion part , 14 ... second conversion unit, 141 ... aggregation unit, 142 ... gradation value conversion unit (second gradation value conversion unit), 15 ... post-processing unit, 151 ... mixing unit, 152 ... mixing ratio adjustment unit, 101 ... CPU, 102 ... RAM, 103 ... ROM, 104 ... input device, 105 ... communication device, 106 ... FPGA, 107 ... output device.

Claims (5)

処理対象画像内の対象画素を含む複数画素からなるオペレータを設定する設定部と、
前記オペレータ内の各画素の階調値に基づいて、前記各画素の階調値の最小値を示す最小階調値と前記各画素の階調値の最大値を示す最大階調値とを抽出するパラメータ抽出部と、
前記パラメータ抽出部により抽出された前記最小階調値及び前記最大階調値に基づいてゲインを決定し、当該ゲインを前記対象画素の階調値に適用することにより前記対象画素の変換後の階調値を決定する階調値変換部と、
を備える画像処理装置。
A setting unit for setting an operator composed of a plurality of pixels including the target pixel in the processing target image;
Based on the gradation value of each pixel in the operator, the minimum gradation value indicating the minimum gradation value of each pixel and the maximum gradation value indicating the maximum gradation value of each pixel are extracted. A parameter extraction unit to perform,
A gain is determined based on the minimum gradation value and the maximum gradation value extracted by the parameter extraction unit, and the gain is applied to the gradation value of the target pixel to thereby convert the target pixel after conversion. A tone value conversion unit for determining a tone value;
An image processing apparatus comprising:
前記階調値変換部は、前記処理対象画像において表現し得る階調値の個数を示す階調分解能を前記最大階調値と前記最小階調値との差で割ることにより前記ゲインを算出し、前記対象画素の階調値と前記最小階調値との差に前記ゲインを乗じることにより前記対象画素の変換後の階調値を算出する、
請求項1に記載の画像処理装置。
The gradation value conversion unit calculates the gain by dividing a gradation resolution indicating the number of gradation values that can be expressed in the processing target image by a difference between the maximum gradation value and the minimum gradation value. Calculating a converted gradation value of the target pixel by multiplying the difference between the gradation value of the target pixel and the minimum gradation value by the gain;
The image processing apparatus according to claim 1.
前記階調値変換部は、前記ゲイン及び前記変換後の階調値を決定する前に、前記最小階調値及び前記最大階調値の少なくとも一方に所定の調整値を加算又は減算する調整処理を実行する、
請求項1又は2に記載の画像処理装置。
The gradation value conversion unit adds or subtracts a predetermined adjustment value to or from at least one of the minimum gradation value and the maximum gradation value before determining the gain and the converted gradation value. Run the
The image processing apparatus according to claim 1.
前記オペレータ内の各画素の階調値を取得し、当該各画素の階調値に基づいて0から自然数Nまでの各階調値に対応する画素数を示すヒストグラムを生成する集計部と、
前記ヒストグラムにおいて、階調値0から前記対象画素の階調値までの各階調値の画素数を加算することにより、又は、階調値Nから前記対象画素の階調値までの各階調値の画素数を値Nから減算することにより、前記対象画素の第2の変換後の階調値を決定する第2階調値変換部と、
前記階調値変換部により決定された前記対象画素の変換後の階調値と前記第2階調値変換部により決定された前記対象画素の第2の変換後の階調値とを予め定められた混合比で足し合わせることにより得られる階調値を出力する混合部と、を更に備える、
請求項1〜3のいずれか一項に記載の画像処理装置。
A totalization unit that obtains a gradation value of each pixel in the operator and generates a histogram indicating the number of pixels corresponding to each gradation value from 0 to a natural number N based on the gradation value of each pixel;
In the histogram, by adding the number of pixels of each gradation value from gradation value 0 to the gradation value of the target pixel, or for each gradation value from gradation value N to the gradation value of the target pixel A second gradation value conversion unit that determines a second converted gradation value of the target pixel by subtracting the number of pixels from the value N;
A gradation value after conversion of the target pixel determined by the gradation value conversion unit and a gradation value after conversion of the target pixel determined by the second gradation value conversion unit are determined in advance. A mixing unit that outputs a gradation value obtained by adding together the obtained mixing ratio;
The image processing apparatus according to claim 1.
前記パラメータ抽出部は、前記第2階調値変換部が画素数の加算又は減算のために階調値0又は階調値Nを示す前記ヒストグラムの一端から前記ヒストグラムの他端に向かって各階調値の画素数を参照する処理と並行して、前記ヒストグラムの一端から他端に向かって各階調値の画素数を参照することにより、前記最小階調値及び前記最大階調値を抽出する、
請求項4に記載の画像処理装置。
The parameter extraction unit is configured such that each gradation from one end of the histogram to which the second gradation value conversion unit indicates gradation value 0 or gradation value N for addition or subtraction of the number of pixels from the other end of the histogram. In parallel with the process of referring to the number of pixels of the value, the minimum gradation value and the maximum gradation value are extracted by referring to the number of pixels of each gradation value from one end to the other end of the histogram.
The image processing apparatus according to claim 4.
JP2015199123A 2015-10-07 2015-10-07 Image processing device Expired - Fee Related JP5911633B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015199123A JP5911633B1 (en) 2015-10-07 2015-10-07 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015199123A JP5911633B1 (en) 2015-10-07 2015-10-07 Image processing device

Publications (2)

Publication Number Publication Date
JP5911633B1 JP5911633B1 (en) 2016-04-27
JP2017072966A true JP2017072966A (en) 2017-04-13

Family

ID=55808258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015199123A Expired - Fee Related JP5911633B1 (en) 2015-10-07 2015-10-07 Image processing device

Country Status (1)

Country Link
JP (1) JP5911633B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108109135A (en) * 2017-12-06 2018-06-01 贵阳朗玛信息技术股份有限公司 A kind of method and device for obtaining image gray levels distribution
JP7063114B2 (en) 2018-05-24 2022-05-09 東亞合成株式会社 Ground improver composition and its use

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000215306A (en) * 1998-11-16 2000-08-04 Seiko Epson Corp Medium recording image correction program, device and method for correcting image
JP2006195651A (en) * 2005-01-12 2006-07-27 Sanyo Electric Co Ltd Gradation compensation device
WO2007066506A1 (en) * 2005-12-09 2007-06-14 Konica Minolta Holdings, Inc. Image processing method, apparatus, and program
JP2013026729A (en) * 2011-07-19 2013-02-04 Konica Minolta Business Technologies Inc Image processing device, image forming device, image processing method, and computer program
JP2014207663A (en) * 2013-03-21 2014-10-30 パナソニック株式会社 Picture processing device
JP2015177510A (en) * 2014-03-18 2015-10-05 株式会社リコー camera system, image processing method and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000215306A (en) * 1998-11-16 2000-08-04 Seiko Epson Corp Medium recording image correction program, device and method for correcting image
JP2006195651A (en) * 2005-01-12 2006-07-27 Sanyo Electric Co Ltd Gradation compensation device
WO2007066506A1 (en) * 2005-12-09 2007-06-14 Konica Minolta Holdings, Inc. Image processing method, apparatus, and program
JP2013026729A (en) * 2011-07-19 2013-02-04 Konica Minolta Business Technologies Inc Image processing device, image forming device, image processing method, and computer program
JP2014207663A (en) * 2013-03-21 2014-10-30 パナソニック株式会社 Picture processing device
JP2015177510A (en) * 2014-03-18 2015-10-05 株式会社リコー camera system, image processing method and program

Also Published As

Publication number Publication date
JP5911633B1 (en) 2016-04-27

Similar Documents

Publication Publication Date Title
KR102281017B1 (en) Neural network model training method, apparatus and storage medium for image processing
CN108229526B (en) Network training method, network training device, image processing method, image processing device, storage medium and electronic equipment
JP5889431B2 (en) Image processing apparatus and image processing method
US11107210B2 (en) Image data generating apparatus generating image data for inspecting external appearance of product
US8818095B2 (en) Image processing apparatus, image processing method, and computer-readable, non-transitory medium
KR101942987B1 (en) Method, system for removing background of a video, and a computer-readable storage device
WO2013054446A1 (en) Image compositing device, image compositing method, image compositing program, and recording medium
US9432596B2 (en) Image processing apparatus and image processing method
JP5610245B2 (en) Image composition apparatus, image composition method, image composition program, and recording medium
JP5911633B1 (en) Image processing device
CN107220934A (en) Image rebuilding method and device
US8705134B2 (en) Method of processing an image to clarify text in the image
JP5826980B1 (en) Image processing apparatus and image processing method
JP6826472B2 (en) Image processing device and its control method
JP2013250314A (en) Image processor, display device, information processor and image processing method
JP2016066990A (en) Evaluation method of tone correction, and arithmetic device
JP5178933B1 (en) Image processing device
JP2021051601A (en) Image recognition device, image recognition system, method for recognizing image, and program
JP6375778B2 (en) Image processing method and image processing apparatus
US20100254628A1 (en) Image processing system and method
JP5364887B2 (en) Image composition apparatus, image composition method, image composition program, and recording medium
JP5103436B2 (en) Image processing apparatus, image processing method, and image processing program
JP5227651B2 (en) Video conversion apparatus, video conversion method, and video conversion program
CN112233025A (en) Method and device for enhancing image identifiability and readable storage medium
JP5069599B2 (en) Video conversion apparatus, video conversion method, and video conversion program

Legal Events

Date Code Title Description
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: 20160322

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160329

R150 Certificate of patent or registration of utility model

Ref document number: 5911633

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees