JP2010045558A - Image processor - Google Patents
Image processor Download PDFInfo
- Publication number
- JP2010045558A JP2010045558A JP2008207692A JP2008207692A JP2010045558A JP 2010045558 A JP2010045558 A JP 2010045558A JP 2008207692 A JP2008207692 A JP 2008207692A JP 2008207692 A JP2008207692 A JP 2008207692A JP 2010045558 A JP2010045558 A JP 2010045558A
- Authority
- JP
- Japan
- Prior art keywords
- pixel value
- image processing
- input
- output
- 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
Links
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Image Processing (AREA)
Abstract
Description
本発明は画像処理装置に関し、特にルックアップテーブルを用いた画像処理装置に関する。 The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus using a lookup table.
表示装置を備えた携帯電話機など、画像処理機能を有する電子機器においては、画像を構成する各画素(ピクセル)の値に対して、図7に例示するような種々の演算が行われる。ここで、図7(a)は一般の線形変換・アフィン変換の演算例を示す。また、図7(b)は階調値や輝度値の変換などに使用する非線形変換の演算例を、同図(c)はクリップ処理などに使用する非線形変換の演算例を示す。 In an electronic device having an image processing function, such as a mobile phone provided with a display device, various calculations as illustrated in FIG. 7 are performed on the values of each pixel constituting the image. Here, FIG. 7A shows a calculation example of general linear transformation / affine transformation. FIG. 7B shows a non-linear conversion calculation example used for conversion of gradation values and luminance values, and FIG. 7C shows a non-linear conversion calculation example used for clip processing and the like.
画素値の表現に使用される階調値が信号強度をリニアに表現していないことや、人間の視覚特性を考慮する必要があることなどから、画像処理に要求される演算は図7(b)、(c)に例示したような非線形変換になることが多く、非常に複雑になる。このような複雑な演算を専用の信号処理回路や汎用のDSPを用いて実現すると、回路規模および消費電力が大きくなってしまう。 Since the gradation value used for expressing the pixel value does not represent the signal intensity linearly and it is necessary to consider human visual characteristics, the calculation required for image processing is as shown in FIG. ) And (c) are often nonlinear transformations, which is very complicated. If such a complicated calculation is realized using a dedicated signal processing circuit or a general-purpose DSP, the circuit scale and power consumption increase.
そこで、複雑な演算を全ての画素に対して行うことの非効率さを改善する手法として、ルックアップテーブル(Lookup Table。以下、LUTと略す)方式が知られている。例えば非特許文献1には、ガンマ補正をLUTで実現することが記載されている。ガンマ補正は、ガンマ補正値をγ、補正前の輝度値をsrc、補正後の輝度値をdstとすると、補正式は例えば図7(d)で与えられるため、srcの各値(例えば0〜255)を図7の演算式に代入してdstの値を計算し、srcの値とdstの値との対応をLUTに格納しておく。ガンマ補正時には、各画素のsrcでLUTを検索し、対応するdstの値を読み出す。これにより、複雑な演算がLUTの検索という単純な処理で代用でき、回路規模の縮小と省電力化が実現できる。
Therefore, a lookup table (hereinafter referred to as LUT) method is known as a technique for improving the inefficiency of performing complex operations on all pixels. For example, Non-Patent
また特許文献1には、RGB信号をCMY信号に変換する画像処理にLUTを利用する技術が開示されている。具体的には、RGBの色空間に設定される格子点に対応するCMY系の画像データをLUTに書き込んでおき、処理対象となるRGB信号に対応する格子点のCMY系の画像データをLUTから読み出し、この読み出したCMY系の画像データを用いて補間処理を行うことによって、処理対象となるRGB信号に対応する補間処理されたCMY系の画像データを生成する。格子点の設定方法としては、色空間を立方体や直方体の小領域に分割し、それらの頂点を格子点とする方法が記載されている。また、補間に使用する格子点の数としては、8点補間や4点補間が示されている。 Japanese Patent Application Laid-Open No. H10-228561 discloses a technique that uses an LUT for image processing for converting RGB signals into CMY signals. Specifically, the CMY image data corresponding to the grid points set in the RGB color space is written in the LUT, and the CMY image data of the grid points corresponding to the RGB signals to be processed is read from the LUT. The CMY image data subjected to the interpolation processing corresponding to the RGB signal to be processed is generated by performing the interpolation process using the read CMY image data. As a method for setting lattice points, a method is described in which a color space is divided into small regions such as a cube and a rectangular parallelepiped, and the vertices thereof are used as lattice points. As the number of grid points used for interpolation, 8-point interpolation or 4-point interpolation is shown.
複雑な演算による画像処理をLUT方式で実現する場合、事前に演算結果を計算してLUTに格納しておく必要がある。このため、LUT化されている例は尽く、演算の内容が明らかになっている画像処理に限られており、どのような演算が行われているか不明か、特定することが困難な画像処理については、そのLUT化は端から不可能であるとするのが当技術分野の常識であった。 When image processing by complex computation is realized by the LUT method, it is necessary to calculate the computation result in advance and store it in the LUT. For this reason, the examples of LUTs are exhausted, and the image processing is limited to image processing in which the contents of the calculation are clarified, and it is difficult to specify what kind of calculation is being performed. It was common knowledge in this technical field that LUT conversion was impossible from the end.
本発明の目的は、演算の内容が不明あるいは特定困難な画像処理であっても、入力値に対する出力値が得られるのであれば、LUT化を実現することのできる画像処理装置を提供することにある。 An object of the present invention is to provide an image processing apparatus capable of realizing LUT as long as an output value with respect to an input value can be obtained even in the case of image processing in which the content of calculation is unknown or difficult to specify. is there.
本発明の第1の画像処理装置は、学習部とルックアップテーブルと処理部とで構成され、学習部は、ルックアップテーブル化の対象となる演算を実行する画像処理手段であって入力値に対する出力値を観測することのできる画像処理手段と、入力色空間における画素値を画像処理手段に入力する入力手段と、入力色空間における画素値とこの画素値を画像処理手段に入力した結果得られる出力画素値との対応をルックアップテーブルに書き込む更新手段とを備え、処理部は、画像処理の対象となる入力画素値に対応する出力画素値をルックアップテーブルから読み出す読み出し手段を備える。 A first image processing apparatus according to the present invention includes a learning unit, a look-up table, and a processing unit. The learning unit is an image processing unit that performs an operation to be a lookup table, and performs an operation on an input value. Image processing means capable of observing output values, input means for inputting pixel values in the input color space to the image processing means, pixel values in the input color space, and results obtained by inputting the pixel values to the image processing means Updating means for writing the correspondence with the output pixel value in the lookup table, and the processing unit comprises a reading means for reading out the output pixel value corresponding to the input pixel value to be subjected to image processing from the lookup table.
本発明の第2の画像処理装置は、ルックアップテーブルと処理部とで構成され、ルックアップテーブルは、入力色空間における画素値と、ルックアップテーブル化の対象となる演算を実行する画像処理手段であって入力値に対する出力値を観測することのできる画像処理手段に対して画素値を入力したときに画像処理手段から出力される出力画素値との対応が書き込まれており、処理部は、画像処理の対象となる入力画素値に対応する出力画素値をルックアップテーブルから読み出す読み出し手段を備える。 The second image processing apparatus of the present invention includes a look-up table and a processing unit, and the look-up table performs image processing means for executing a pixel value in the input color space and a calculation target for the look-up table. The correspondence with the output pixel value output from the image processing means when the pixel value is input to the image processing means capable of observing the output value with respect to the input value is written. Readout means for reading out an output pixel value corresponding to an input pixel value to be subjected to image processing from a lookup table is provided.
本発明の第1のルックアップテーブル作成装置は、ルックアップテーブル化の対象となる演算を実行する画像処理手段であって入力値に対する出力値を観測することのできる画像処理手段と、入力色空間における画素値を画像処理手段に入力する入力手段と、入力色空間における画素値とこの画素値を画像処理手段に入力した結果得られる出力画素値との対応をルックアップテーブルに書き込む更新手段とを備える。 The first look-up table creation apparatus of the present invention is an image processing means for executing an operation to be a look-up table and capable of observing an output value with respect to an input value, and an input color space. Input means for inputting the pixel value in the image processing means, and update means for writing the correspondence between the pixel value in the input color space and the output pixel value obtained as a result of inputting the pixel value to the image processing means in the lookup table. Prepare.
本発明の第1の画像処理方法は、a)学習部が、ルックアップテーブル化の対象となる演算を実行する画像処理手段に対して入力色空間における画素値を入力し、この入力した画素値に対して画像処理手段から出力される画素値を取得するステップと、b)学習部が、画像処理手段に対して入力した画素値とこの画素値に対して画像処理手段から出力される画素値との対応をルックアップテーブルに書き込むステップと、c)処理部が、画像処理の対象となる入力画素値に対する出力画素値をルックアップテーブルから読み出すステップとを含む。 According to the first image processing method of the present invention, a) the learning unit inputs a pixel value in the input color space to the image processing unit that executes an operation to be a lookup table, and the input pixel value A step of acquiring a pixel value output from the image processing means with respect to the image processing means; b) a pixel value input to the image processing means by the learning unit and a pixel value output from the image processing means for this pixel value And c) a processing unit reads out an output pixel value corresponding to an input pixel value to be subjected to image processing from the lookup table.
本発明の第1のプログラムは、ルックアップテーブルを有するコンピュータを、ルックアップテーブル化の対象となる演算を実行する画像処理手段であって入力値に対する出力値を観測することのできる画像処理手段に対して、入力色空間における画素値を入力する入力手段と、入力色空間における画素値とこの画素値を画像処理手段に入力した結果得られる出力画素値との対応をルックアップテーブルに書き込む更新手段と、画像処理の対象となる入力画素値に対応する出力画素値をルックアップテーブルから読み出す読み出し手段として機能させる。 According to a first program of the present invention, a computer having a look-up table is used as an image processing means for executing an operation to be a look-up table and capable of observing an output value with respect to an input value. On the other hand, input means for inputting pixel values in the input color space, and update means for writing the correspondence between the pixel values in the input color space and output pixel values obtained as a result of inputting the pixel values to the image processing means in the lookup table Then, the output pixel value corresponding to the input pixel value to be subjected to image processing is made to function as a reading unit that reads from the lookup table.
本発明によれば、演算の内容が不明あるいは特定困難な画像処理であっても、入力値に対する出力値が得られる画像処理であればLUT化が可能になる。 According to the present invention, even if the image processing is unclear or difficult to specify, it is possible to make an LUT as long as the image processing can obtain an output value for the input value.
次に本発明の実施の形態について図面を参照して詳細に説明する。なお、人間の眼は3種類の錐体細胞をもつため、色空間の表現は3次元となり、画素値も3値ベクトルで表現する方法が一般的である。そこで、以下の説明では画素値が3値ベクトルであるものとして説明を行う。しかし、本発明は画素値が2値以下あるいは4値以上の場合にも適用可能である。 Next, embodiments of the present invention will be described in detail with reference to the drawings. Since the human eye has three types of pyramidal cells, the color space is represented in three dimensions, and the pixel value is generally represented by a ternary vector. Therefore, the following description will be made assuming that the pixel value is a ternary vector. However, the present invention is also applicable when the pixel value is 2 or less or 4 or more.
[第1の実施の形態]
図1を参照すると、本発明の第1の実施の形態に係る画像処理装置は、学習部10とLUT20と処理部30とで構成される。
[First Embodiment]
Referring to FIG. 1, the image processing apparatus according to the first embodiment of the present invention includes a learning unit 10, an
LUT20は、入力色空間における入力画素値に対応する出力画素値を記憶するメモリである。入力画素値に対応する出力画素値をすべて記憶してもよいが、必要なメモリ容量が膨大となる。このため、本実施の形態では、ある程度間引いたデータを記憶し、その間引いた箇所は、補間演算により求めることで、LUT20に必要なメモリ容量を削減している。
The
具体的には、本実施の形態におけるLUT20は、入力色空間における各画素値が取り得る範囲を小領域である要素に区切り、各要素の頂点に相当する画素値を入力とした場合の出力画素値を記憶する。要素の形状および区切り方は任意であるが、本実施の形態では、図2に示すように、3次元の色空間の各軸に沿って画素値(図2では各成分は1に正規化されている)をN分割することで、入力色空間を直方体(正確には立方体)の形状を有する要素に分割し、各直方体の要素の頂点毎に、それに対応する出力画素値を記憶する。ここで、Nは2のべき乗であることが望ましい。その理由は、Nが2のべき乗であれば、入力画素値が属する要素は、その入力画素値の各成分を1/Nで除することで求めることができ、且つ、コストのかかる除算のかわりにシフト演算によって要素を求めることができるためである。なお、Nは、16(=24)程度が望ましい。
Specifically, the
学習部10は、LUT化の対象となる演算について入力色空間における入力画素値と出力画素値との対応関係を学習し、LUT20に格納する機能を有する。本実施の形態の学習部10は、LUT化対象画像処理手段11と、入力手段12と、更新手段13とを有する。
The learning unit 10 has a function of learning a correspondence relationship between an input pixel value and an output pixel value in the input color space for an operation to be converted into an LUT, and storing it in the
LUT化対象画像処理手段11は、LUT化の対象となる演算を実行する手段であり、入力端子11aと出力端子11bとを有し、入力端子11aから入力された画素値に対して内部において種々の演算を行い、その演算の結果得られた画素値を出力端子11bから出力する機能を有する。LUT化対象画像処理手段11の内部で行われている演算の種類やその実現構成は既知である必要はなく、入力値に対する出力値を観測することができれば良い。LUT対象画像処理手段11の一例としては、画素値を入力として受け取って演算結果の画素値を出力するプログラムモジュールやハードウェア回路などがある。
The LUT target image processing means 11 is a means for executing an operation to be LUT-targeted. The LUT target image processing means 11 has an
入力手段12は、入力色空間における画素値をLUT化対象画像処理手段11に入力すると同時に更新手段13に通知する手段である。具体的には、図2に示した入力色空間を構成する各要素の頂点の画素値を生成し、LUT化対象画像処理手段11および更新手段13に対して送出する。
The
更新手段13は、入力手段12から受け取った画素値と、この画素値の入力に対してLUT化対象画像処理手段11から出力された画素値との対応をLUT20に書き込む手段である。
The updating
他方、処理部30は、LUT20を用いて実際の画像処理を行う部分であり、例えば画像を表示するための入力信号を入力し、入力信号中の各画素値に対してLUT20を用いて画像処理を施し、画像処理後の画素値を含む出力信号を、図示しないラスタ表示装置へ出力する。本実施の形態の処理部30は、事前変換手段31と、要素算出手段32と、LUT参照手段33と、補間手段34とを有する。
On the other hand, the processing unit 30 is a part that performs actual image processing using the
事前変換手段31は、入力信号に対して、図7(a)で示したような線形変換やアフィン変換を施し、後段の処理に都合の良い色空間に変換する手段である。ただし、事前変換手段31は、入力信号の色空間がRGB空間の場合など、そのままで取扱いが容易な色空間の場合は、省略することができる。なお、図2で示したように入力画素値の各成分を1に正規化する場合、その処理はこの事前変換手段31で実施してもよい。
The
要素算出手段32は、後段のLUT参照手段33において入力信号中の各画素値を含む領域の頂点の出力画素値をLUT20から取得できるようにするために、入力画素値が属する要素を求める手段である。前述したように、本実施の形態は、入力色空間を規定する各軸を2のべき乗の値Nで分割してできる直方体を要素とするため、要素算出手段32は、入力画素値の各成分を1/Nで除することで、属する要素を求めることができる。
The element calculation means 32 is a means for obtaining an element to which the input pixel value belongs so that the LUT reference means 33 in the subsequent stage can obtain the output pixel value of the vertex of the area including each pixel value in the input signal from the
LUT参照手段33は、要素算出手段32で求められた要素の各頂点が持つ出力画素値をLUT20から取得する手段である。
The
補間手段34は、LUT参照手段33で取得された要素の各頂点が持つ出力画素値を用いて補間処理を行うことによって、入力画素値に対応する補間処理された出力画素値を生成する手段である。本実施の形態の場合、要素は直方体であり、LUT20には各要素の頂点に対応する出力画素値が格納されているため、補間手段34は、入力画素値が属する要素の各頂点に対応する出力画素値から一次関数を使用して補間する。具体的な補間処理の例を以下に説明する。
The
今、入力画素値をQとし、この入力画素値Qを含む直方体要素の各頂点に対応する出力画素値を、図3に示すように、P(0,0,0)、P(0,0,1)、P(0,1,0)、P(0,1,1)、P(1,0,0)、P(1,0,1)、P(1,1,0)、P(1,1,1)とする。また、入力画素値Qの要素内における座標を(r0,r1,r2)とする。この場合、入力画素値Qに対応する出力画素値Q'は、3軸のうちの何れか1つの軸上における補間(0軸上の補間と呼ぶ)、残り2軸のうちの何れか1つの軸上における補間(1軸上の補間と呼ぶ)、最後に残った1軸上における補間(2軸上の補間と呼ぶ)を順番に行うことによって、以下のようにして求められる。 Now, let the input pixel value be Q, and output pixel values corresponding to the vertices of the rectangular parallelepiped element including this input pixel value Q are P (0,0,0), P (0,0) as shown in FIG. , 1), P (0,1,0), P (0,1,1), P (1,0,0), P (1,0,1), P (1,1,0), P (1,1,1). Also, the coordinates in the element of the input pixel value Q are (r0, r1, r2). In this case, the output pixel value Q ′ corresponding to the input pixel value Q is interpolated on any one of the three axes (referred to as interpolation on the zero axis) and any one of the remaining two axes. By performing interpolation on the axis (referred to as interpolation on one axis) and interpolation on the last remaining one axis (referred to as interpolation on two axes) in order, it is obtained as follows.
(1)0軸上の補間:
P'(0,0)=(1-r0)×P(0,0,0)+r0×P(0,0,1)
P'(0,1)=(1-r0)×P(0,1,0)+r0×P(0,1,1)
P'(1,0)=(1-r0)×P(1,0,0)+r0×P(1,0,1)
P'(1,1)=(1-r0)×P(1,1,0)+r0×P(1,1,1)
(2)1軸上の補間:
P''(0)=(1-r1)×P'(0,0)+r1×P'(0,1)
P''(1)=(1-r1)×P'(1,0)+r1×P'(1,1)
(3)2軸上の補間:
Q'=(1-r2)×P''(0)+r2×P''(1)
(1) Interpolation on axis 0:
P ′ (0,0) = (1-r0) × P (0,0,0) + r0 × P (0,0,1)
P ′ (0,1) = (1-r0) × P (0,1,0) + r0 × P (0,1,1)
P ′ (1,0) = (1-r0) × P (1,0,0) + r0 × P (1,0,1)
P ′ (1,1) = (1-r0) × P (1,1,0) + r0 × P (1,1,1)
(2) Interpolation on one axis:
P ″ (0) = (1−r1) × P ′ (0,0) + r1 × P ′ (0,1)
P ″ (1) = (1−r1) × P ′ (1,0) + r1 × P ′ (1,1)
(3) Interpolation on two axes:
Q ′ = (1-r2) × P ″ (0) + r2 × P ″ (1)
次に本実施の形態の動作を説明する。 Next, the operation of the present embodiment will be described.
本実施の形態に係る画像処理装置の動作は、学習動作と画像処理動作とに大別される。 The operation of the image processing apparatus according to the present embodiment is roughly divided into a learning operation and an image processing operation.
学習動作は、学習部10によってLUT化対象画像処理手段11の入力画素値と出力画素値との関係を学習し、その学習結果をLUT20に書き込む動作である。学習動作の流れを図4に示す。
The learning operation is an operation in which the learning unit 10 learns the relationship between the input pixel value and the output pixel value of the LUT target
図4を参照すると、まず、学習部10の入力手段12は、LUT20に格納する1つの出力画素値に対応する入力画素値を生成する(ステップS101)。本実施の形態は、入力色空間を規定する各軸を図2に示したように2のべき乗の値Nで分割して直方体要素を生成し、LUT20には各直方体要素の頂点に対応して1つの出力画素値を格納するため、入力手段12は、直方体要素の頂点の座標を1つずつ順番に発生する。従って、1に正規化された入力画素値を(x,y,z)とすると、x,y,zはそれぞれ0,1/N,2/N,…,N/Nの値をとるように、入力画素値を生成する。
Referring to FIG. 4, first, the
次に入力手段12は、生成した1つの入力画素値をLUT化対象画像処理手段11の入力端子11aに入力し、同時に更新手段13に通知する(ステップS102)。
Next, the
LUT化対象画像処理手段11は、入力端子11aから入力された画素値に対して内部において種々の画像処理を行い、結果の画素値を出力する(ステップS103)。
The LUT target image processing means 11 internally performs various image processing on the pixel value input from the
学習部10の更新手段13は、LUT化対象画像処理手段11の出力端子11bから出力された画素値を取得し(ステップS104)、入力手段12から通知された入力画素値と前記取得した出力画素値との対応をLUT20に格納する(ステップS105)。具体的には、本実施の形態の場合、LUT20を(N+1)×(N+1)×(N+1)の3次元配列で構成し、LUT化対象画像処理手段11から出力された画素値を、その出力画素値の生成に用いた入力画素値の頂点に対応する配列に記憶する。
The updating
以上の処理で、LUT20に1つの要素の頂点の入力画素値に対応する出力画素値が格納されたことになる。
With the above processing, the output pixel value corresponding to the input pixel value of the vertex of one element is stored in the
入力手段12は、入力色空間における全ての要素の全ての頂点に対応する入力画素値を生成し終えたかどうかを判定する(ステップS106)。若し、未だ生成し終えていなければ(ステップS106でNO)、次の1つの入力画素値を生成し(ステップS107)、ステップS102に戻って上述した処理と同様の処理を繰り返す。全要素の全頂点に対応する入力画素値の生成を終えていれば(ステップS106でYES)、学習処理を終える。
The
次に画像処理動作について説明する。画像処理動作の流れを図5に示す。 Next, an image processing operation will be described. The flow of the image processing operation is shown in FIG.
図5を参照すると、まず処理部30の事前変換手段31は、入力信号から処理対象となる画素値を入力し(ステップS111)、予め定められた事前変換処理を実施し、結果の画素値を要素算出手段32に通知する(ステップS112)。
Referring to FIG. 5, first, the
次に要素算出手段32は、事前変換手段31から通知された画素値の各成分を1/Nで除することで、当該画素値が属する要素を算出し、LUT参照手段33に通知する(ステップS113)。
Next, the
次にLUT参照手段33は、要素算出手段32から通知された要素の各頂点がLUT20を構成する3次元配列上のどの要素に対応するかを求め、求めた配列要素に記憶されている出力画素値を読み出し、補間手段34に通知する(ステップS114)。
Next, the
次に補間手段34は、LUT参照手段33から通知された各頂点に対応する出力画素値と入力画素値の要素内における座標とに基づいて、前述した一次関数による補間処理を行い(ステップS115)、入力画素値に対応する補間処理された出力画素値を求めて出力する(ステップS116)。 Next, the interpolation means 34 performs the interpolation process by the above-mentioned linear function based on the output pixel value corresponding to each vertex notified from the LUT reference means 33 and the coordinates in the element of the input pixel value (step S115). The output pixel value subjected to the interpolation processing corresponding to the input pixel value is obtained and output (step S116).
次に本実施の形態の効果を説明する。 Next, the effect of this embodiment will be described.
本実施の形態によれば、演算の内容が不明あるいは特定困難な画像処理であっても、入力値に対する出力値が得られる画像処理であればLUT化が可能になる。その理由は、LUT化対象画像処理手段11に対して入力色空間における画素値を入力する入力手段と、この入力画素値の入力に対してLUT化対象画像処理手段11で得られる出力画素値を取得し、入力画素値と出力画素値との対応をLUT20に書き込む更新手段13とを有する学習部10を備えているためである。
According to the present embodiment, even if the image processing is unknown or difficult to specify, it is possible to make an LUT as long as the image processing can obtain an output value for the input value. The reason is that an input means for inputting a pixel value in the input color space to the LUT target image processing means 11 and an output pixel value obtained by the LUT target image processing means 11 for the input of this input pixel value. This is because the learning unit 10 including the
LUT20に必要なメモリ容量の削減が可能である。その理由は、LUT20には、ある程度間引いたデータを記憶し、その間引いた箇所は、補間処理により求めるようにしているためである。
The memory capacity required for the
複雑な画像処理であっても高速かつ低消費電力で実行することができる。その理由は、複雑な画像処理を行うLUT化対象画像処理手段11の入力画素値と出力画素値との関係を学習部10によって学習してLUT20に記憶し、実際の画像処理では複雑な演算をLUT20の検索という単純な処理で代用できるためである。また別の理由は、入力色空間の各軸を2のべき乗であるNで分割してできる直方体を要素としていること、各要素の頂点に対応して出力画素値を保持し、補間処理に一次関数を用いることにより、LUT20から参照すべき要素の決定および補間処理自体も簡易に行えるためである。
Even complex image processing can be executed at high speed and with low power consumption. The reason is that the learning unit 10 learns the relationship between the input pixel value and the output pixel value of the LUT target
[第2の実施の形態]
図6を参照すると、本発明の第2の実施の形態に係る画像処理装置は、図1に示した第1の画像処理装置と比較して、学習部10におけるLUT化対象画像処理手段11がLUT化対象画像処理手段14に置き換えられている点、パラメータ設定部15が新たに設けられている点で相違し、それ以外は第1の実施の形態と同じである。
[Second Embodiment]
Referring to FIG. 6, the image processing apparatus according to the second embodiment of the present invention has an LUT target image processing means 11 in the learning unit 10 as compared with the first image processing apparatus shown in FIG. The second embodiment is different from the first embodiment in that it is replaced with the LUT target image processing means 14 and a
LUT化対象画像処理手段14は、入力端子11aに入力される画素値に対して、処理手段1、処理手段2、…、処理手段Nにより順番にN通りの処理を施し、その最後の処理手段Nによる処理結果の画素値を出力端子11bから出力する。それぞれの処理手段1〜Nは、それぞれ異なる複数通りの処理を行うことができ、そのうちの何れの処理を行うかは、各処理手段1〜Nに1対1に対応して設けられているパラメータ記憶部PR1〜PRNに記憶されているパラメータP1〜PNの値で決定される。例えば、或る処理手段は図7(a)に示す変換処理を行い、この変換処理で使用する定数a、bの値が対応するパラメータ記憶部によりパラメータとして与えられる。また、別の処理手段は図7(b)に示す変換処理を行い、この変換処理で使用する0.055や1.055などの定数が対応するパラメータ記憶部によりパラメータとして与えられる。
The LUT target image processing means 14 performs N processes in order by the processing means 1, processing means 2,..., Processing means N on the pixel value input to the
パラメータ設定部15は、パラメータ記憶部PR1〜PRNにパラメータを設定するためのユーザインタフェースである。パラメータ設定部15は、図示しない表示装置の画面にパラメータ設定画面を表示し、その画面を通じて利用者からパラメータの入力を受け付け、受け付けたパラメータをパラメータ記憶部PR1〜PRNに格納する。
The
本実施の形態の動作は、学習動作を開始するのに先立って、パラメータ設定部15を通じてLUT化対象画像処理手段14に対してパラメータを設定する動作が新たに加わる点で、第1の実施の形態の動作と相違する。
The operation of the present embodiment is that the operation of setting parameters for the LUT target image processing means 14 is newly added through the
本実施の形態によれば、利用者がパラメータ設定部15を通じてLUT化対象画像処理手段14で実施される画像処理の内容を変更してからLUT20の学習動作を再度行うことにより、実際の画像処理で使用するLUT20の内容を適宜変更することができる。
According to the present embodiment, the user changes the content of the image processing performed by the LUT target image processing means 14 through the
[その他の実施の形態]
以上の実施の形態では、入力色空間を直方体の要素に区切り、各要素の頂点に対応する出力画素値をLUT20に記憶し、入力画素値の属する直方体要素の8個の頂点の出力画素値に基づいて、一次関数による補間演算を行うことにより、入力画素値に対応する補間処理された出力画素値を算出した。このような補間は、一般に直方体一次要素による補間と呼ばれる。しかし、本発明は直方体一次要素による補間に限定されるわけではなく、他の任意の補間を適用することが可能である。例えば、直方体の頂点だけでなく辺上の節点に対応する出力画素値をLUT20に記憶し、入力画素値が属する直方体要素の8個の頂点と12個の節点との合計20個の点の出力画素値に基づいて、二次関数によって補間処理を行う直方体二次要素による補間も適用可能である。また、入力色空間を各軸が直交していない四面体などの要素に区切り、各要素の格子点(頂点または/および節点)に対応する出力画素値をLUT20に記憶し、入力画素値が属する要素の格子点の出力画素値に基づいて、一次関数や二次関数を用いて補間を行う、四面体一次要素による補間や、四面体二次要素による補間なども適用可能である。ただし、一般的には直方体一次要素による補間が最も計算量等が少なく負荷の軽い簡易な補間になる。
[Other embodiments]
In the above embodiment, the input color space is divided into rectangular parallelepiped elements, the output pixel values corresponding to the vertices of each element are stored in the
また以上の実施の形態においては、学習部10とLUT20および処理部30とは一体として構成されていたが、学習部10とLUT20および処理部30とを分離可能に構成し、学習動作によって必要なデータを記憶したLUT20と処理部30を学習部10から分離して、携帯電話機などの画像表示装置に組み込む実施の形態も考えられる。
In the above embodiment, the learning unit 10, the
また、処理部30の各手段31〜34および学習部10の各手段11〜14は、ハードウェア回路で実現することができることは勿論のこと、コンピュータとプログラムとで実現することができる。プログラムは磁気ディスクや半導体メモリ等のコンピュータ可読記録媒体に記録されて提供され、コンピュータの立ち上げ時などにコンピュータに読み取られ、コンピュータの動作を制御することにより、コンピュータ上に各手段11〜14、31〜34を実現する。 Further, each means 31 to 34 of the processing unit 30 and each means 11 to 14 of the learning unit 10 can be realized by a hardware circuit, and can be realized by a computer and a program. The program is provided by being recorded on a computer-readable recording medium such as a magnetic disk or a semiconductor memory, read by the computer when the computer is started up, etc., and controls the operation of the computer, thereby controlling each means 11-14 on the computer. 31 to 34 are realized.
10…学習部
11、14…LUT化対象画像処理手段
11a…入力端子
11b…出力端子
12…入力手段
13…更新手段
15…パラメータ設定手段
20…LUT(ルックアップテーブル)
30…処理部
31…事前変換手段
32…要素算出手段
33…LUT参照手段
34…補間手段
DESCRIPTION OF SYMBOLS 10 ... Learning
30 ... Processing
Claims (13)
前記学習部は、ルックアップテーブル化の対象となる演算を実行する画像処理手段であって入力値に対する出力値を観測することのできる画像処理手段と、入力色空間における画素値を前記画像処理手段に入力する入力手段と、入力色空間における画素値と該画素値を前記画像処理手段に入力した結果得られる出力画素値との対応を前記ルックアップテーブルに書き込む更新手段とを備え、
前記処理部は、画像処理の対象となる入力画素値に対応する出力画素値を前記ルックアップテーブルから読み出す読み出し手段を備えることを特徴とする画像処理装置。 It consists of a learning unit, a lookup table, and a processing unit.
The learning unit is an image processing unit that performs an operation to be a lookup table and can observe an output value with respect to an input value; and a pixel value in an input color space is the image processing unit. Input means for input to the input table, and update means for writing the correspondence between the pixel value in the input color space and the output pixel value obtained as a result of inputting the pixel value to the image processing means into the lookup table,
The image processing apparatus, wherein the processing unit includes a reading unit that reads an output pixel value corresponding to an input pixel value to be subjected to image processing from the lookup table.
前記ルックアップテーブルは、入力色空間における画素値と、ルックアップテーブル化の対象となる演算を実行する画像処理手段であって入力値に対する出力値を観測することのできる画像処理手段に対して前記画素値を入力したときに前記画像処理手段から出力される出力画素値との対応が書き込まれており、
前記処理部は、画像処理の対象となる入力画素値に対応する出力画素値を前記ルックアップテーブルから読み出す読み出し手段を備えることを特徴とする画像処理装置。 It consists of a lookup table and a processing unit.
The look-up table is an image processing unit that executes a pixel value in the input color space and an operation that is a target of the look-up table, and is an image processing unit that can observe an output value for the input value. The correspondence with the output pixel value output from the image processing means when the pixel value is input is written,
The image processing apparatus, wherein the processing unit includes a reading unit that reads an output pixel value corresponding to an input pixel value to be subjected to image processing from the lookup table.
b)前記学習部が、前記画像処理手段に対して入力した画素値と該画素値に対して前記画像処理手段から出力される画素値との対応をルックアップテーブルに書き込むステップと、
c)処理部が、画像処理の対象となる入力画素値に対する出力画素値を前記ルックアップテーブルから読み出すステップとを含むことを特徴とする画像処理方法。 a) The learning unit inputs a pixel value in the input color space to an image processing unit that executes an operation to be a lookup table, and the input pixel value is output from the image processing unit. Obtaining a pixel value;
b) the learning unit writing a correspondence between a pixel value input to the image processing unit and a pixel value output from the image processing unit to the pixel value in a lookup table;
and c) a step of reading out an output pixel value corresponding to an input pixel value to be subjected to image processing from the lookup table.
ルックアップテーブル化の対象となる演算を実行する画像処理手段であって入力値に対する出力値を観測することのできる画像処理手段に対して、入力色空間における画素値を入力する入力手段と、
入力色空間における画素値と該画素値を前記画像処理手段に入力した結果得られる出力画素値との対応を前記ルックアップテーブルに書き込む更新手段と、
画像処理の対象となる入力画素値に対応する出力画素値を前記ルックアップテーブルから読み出す読み出し手段として機能させるためのプログラム。 A computer having a lookup table,
An input means for inputting a pixel value in the input color space to an image processing means for executing an operation to be looked up table and capable of observing an output value for the input value;
Updating means for writing a correspondence between a pixel value in the input color space and an output pixel value obtained as a result of inputting the pixel value to the image processing means to the lookup table;
A program for causing an output pixel value corresponding to an input pixel value to be subjected to image processing to function as a reading unit that reads from the lookup table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008207692A JP5131083B2 (en) | 2008-08-12 | 2008-08-12 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008207692A JP5131083B2 (en) | 2008-08-12 | 2008-08-12 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010045558A true JP2010045558A (en) | 2010-02-25 |
JP5131083B2 JP5131083B2 (en) | 2013-01-30 |
Family
ID=42016577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008207692A Expired - Fee Related JP5131083B2 (en) | 2008-08-12 | 2008-08-12 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5131083B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016082174A1 (en) * | 2014-11-28 | 2016-06-02 | 深圳市尊正数字视频有限公司 | Toning monitor and real-time toning method |
WO2021166254A1 (en) * | 2020-02-21 | 2021-08-26 | ソニーグループ株式会社 | Information processing device, program, and method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08102865A (en) * | 1994-08-03 | 1996-04-16 | Fuji Xerox Co Ltd | Method and device for deciding color conversion coefficient |
JP2007208956A (en) * | 2006-01-05 | 2007-08-16 | Sharp Corp | Image processing apparatus, image forming apparatus, control method of image processing apparatus, image processing program, and computer-readable storage medium |
-
2008
- 2008-08-12 JP JP2008207692A patent/JP5131083B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08102865A (en) * | 1994-08-03 | 1996-04-16 | Fuji Xerox Co Ltd | Method and device for deciding color conversion coefficient |
JP2007208956A (en) * | 2006-01-05 | 2007-08-16 | Sharp Corp | Image processing apparatus, image forming apparatus, control method of image processing apparatus, image processing program, and computer-readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016082174A1 (en) * | 2014-11-28 | 2016-06-02 | 深圳市尊正数字视频有限公司 | Toning monitor and real-time toning method |
WO2021166254A1 (en) * | 2020-02-21 | 2021-08-26 | ソニーグループ株式会社 | Information processing device, program, and method |
Also Published As
Publication number | Publication date |
---|---|
JP5131083B2 (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5914045B2 (en) | Image processing apparatus, image processing method, and program | |
US10424269B2 (en) | Flexible addressing for a three dimensional (3-D) look up table (LUT) used for gamut mapping | |
US11170690B2 (en) | Pixel leakage and internal resistance compensation systems and methods | |
JP5131083B2 (en) | Image processing device | |
JP2006238188A (en) | Interpolation filter and video signal processing device | |
JP5757463B2 (en) | 2D color gradation display device | |
JP2016158223A (en) | Image compression device, image compression method and image compression program | |
KR20070084887A (en) | Visualization method and tuning method of 3*3 matrix's coefficients for color correction and computer-readable medium for recording the method | |
JP2009044426A (en) | Image processor | |
JP6361195B2 (en) | Image processing apparatus, image processing method, image processing program, and recording medium | |
JP4693649B2 (en) | Image processing apparatus and image data interpolation method | |
JPH01121930A (en) | Data processor | |
JP7500254B2 (en) | Data processing device and control method thereof | |
JP2004246671A (en) | Lookup table formation method, computer program, and imaging device | |
JP5349931B2 (en) | Information processing apparatus, information processing method, and program | |
JP4416415B2 (en) | Look-up table creation method, computer program, and imaging apparatus | |
KR101835764B1 (en) | Driver ic apparatus including correction function | |
JP2004309736A (en) | Special effect device, and device, method, and program for generation of address signal | |
JP2008054294A (en) | Color conversion method, color conversion program and color conversion apparatus | |
JP5441539B2 (en) | Color processing apparatus, color processing method, and program | |
JP2021189458A (en) | Device, method, and program | |
JP2007288590A (en) | Color conversion method | |
JP2014165584A (en) | Image reduction device, radar system, image reduction method and program | |
JP2020170221A (en) | Program for converting program, information processing apparatus and information processing method | |
JP2005301540A (en) | Memory device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110711 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120507 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120515 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120625 |
|
RD07 | Notification of extinguishment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7427 Effective date: 20120712 |
|
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: 20121009 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121022 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151116 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |