JP2005176140A - Image processing method and image processor - Google Patents

Image processing method and image processor Download PDF

Info

Publication number
JP2005176140A
JP2005176140A JP2003415731A JP2003415731A JP2005176140A JP 2005176140 A JP2005176140 A JP 2005176140A JP 2003415731 A JP2003415731 A JP 2003415731A JP 2003415731 A JP2003415731 A JP 2003415731A JP 2005176140 A JP2005176140 A JP 2005176140A
Authority
JP
Japan
Prior art keywords
1dlut
image
data
image data
ram
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.)
Pending
Application number
JP2003415731A
Other languages
Japanese (ja)
Inventor
Naotoshi Kudo
直敏 工藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2003415731A priority Critical patent/JP2005176140A/en
Publication of JP2005176140A publication Critical patent/JP2005176140A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method and image processor in which a one-dimensional look up table (1DLUT) is created for each image to be stored in a memory having small capacity and converting process is performed at high speed. <P>SOLUTION: The 1DLUT that is created by sampling R, G, B of input image data for predetermined counts, and the input image data are stored from a RAM 6 to a predetermined memory area of a RAM 15 (step 52). While referring to the 1DLUT stored in the RAM 15, color correction is performed using an interpolation formula upon the R, G, B data for each pixel of the input image stored in the RAM 15 (step 53). Color-corrected output image data are stored from the RAM 15 to the RAM 6 (step 54) and of all the pixels of the image of an inputted frame are corrected, color correcting process is performed upon the next frame and if no correction is performed, processing is returned to the step 52 (step 55). <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、画像処理方法および画像処理装置に関し、より詳細には、入力された画像毎に作成された1DLUT(1次元ルックアップテーブル)に応じて入力画像の変換を行う画像処理方法および画像処理装置に関するものである。   The present invention relates to an image processing method and an image processing apparatus, and more specifically, an image processing method and image processing for converting an input image according to a 1DLUT (one-dimensional lookup table) created for each input image. It relates to the device.

従来、データの変換を高速に行う方法として、LUT(ルックアップテーブル)を用いたものが知られている。LUTによるデータの変換は、例えば、画像の明るさや、コントラスト、色相等の変換(R(レッド)、G(グリーン)、B(ブルー)からY(イエロー)、M(マゼンタ)、C(シアン)、K(ブラック)への変換)に広く利用されており、この場合、変換前の画像の画素値が、LUTへのインデックス(アドレス)として入力され、そのインデックスに対応する記憶値が、変換後の画素値として出力される。また、記憶値は入力機器毎などで固定されている。   Conventionally, as a method of performing data conversion at high speed, a method using an LUT (Look Up Table) is known. Data conversion by LUT is, for example, conversion of image brightness, contrast, hue, etc. (R (red), G (green), B (blue) to Y (yellow), M (magenta), C (cyan)). In this case, the pixel value of the image before conversion is input as an index (address) to the LUT, and the stored value corresponding to the index is converted into the converted value after conversion. Are output as pixel values. The stored value is fixed for each input device.

画像処理において、好ましい色再現に注目し、ある入力機器の画像を、銀塩フィルムで実現している階調再現、色再現に近付くような画像に補正する方法を提供することを目的とした構成が知られている。(例えば、特許文献1)なお、この特許文献1は、入力機器のプロファイルおよび出力目標フィルムのプロファイルを保持し、前記入力機器のプロファイルおよび出力目標フィルムのプロファイルに基づき、入力画像データの色再現性を出力目標フィルムの色再現性に近づけるためのテーブルを作成し、前記作成されたテーブルを用いて入力画像データに対して色補正を行う構成を開示するものである。   In image processing, a configuration aimed at providing a method for correcting an image of a certain input device to an image that approaches gradation reproduction and color reproduction realized by a silver halide film, paying attention to preferable color reproduction It has been known. (For example, Patent Document 1) This Patent Document 1 holds a profile of an input device and a profile of an output target film, and color reproducibility of input image data based on the profile of the input device and the profile of the output target film. A table for making the color near the color reproducibility of the output target film is created, and a configuration for performing color correction on input image data using the created table is disclosed.

特開2000−050097号公報JP 2000-050097 A

しかしながら、LUTには、一般に、大量のデータが登録されるため、それを記憶するメモリとしては、大きな容量のメモリを必要とする。例えば、スキャナによって取り込まれた画像(入力画像)は、画素毎に、R、G、Bの3色の蛍光体のそれぞれの発光輝度を変化させる加法混色で色を再現しているため、入力画像の1画素あたりの色情報を14ビット、変換後の出力画像の1画素あたりの色情報を16ビットとしてR、G、B各チャンネルの1DLUT(1次元ルックアップテーブル)を作成した場合、1DLUTの持つ情報量は、214×16×3=786432ビット、すなわち96Kバイトにもなる。このため、96Kバイトのメモリとアクセスするためのゲートとが必要となってくる。1DLUTによるデータ変換時間は、メモリのアクセス時間のみになるが、1DLUTの容量が大きくなると、処理を行うデバイス内のメモリ(内部メモリ)にはその1DLUTを格納できず、よってそのデバイスの外部メモリに1DLUTを格納するしかない。この場合、内部メモリに比べ、外部メモリにアクセスするには時間がかかり、その分変換処理など各処理に時間がかかってしまう。 However, since a large amount of data is generally registered in the LUT, a large capacity memory is required as a memory for storing the data. For example, the image (input image) captured by the scanner reproduces the color by additive color mixture that changes the emission luminance of each of the phosphors of three colors R, G, and B for each pixel. 1DLUT (one-dimensional lookup table) for each of the R, G, and B channels is created with 14 bits of color information per pixel and 16 bits of color information per pixel of the output image after conversion. The amount of information held is 2 14 × 16 × 3 = 786432 bits, that is, 96 Kbytes. For this reason, a 96 Kbyte memory and an access gate are required. The data conversion time by 1DLUT is only the memory access time. However, when the capacity of 1DLUT is increased, the 1DLUT cannot be stored in the memory (internal memory) in the device that performs processing. There is no choice but to store 1DLUT. In this case, compared to the internal memory, it takes time to access the external memory, and accordingly, each process such as conversion processing takes time.

また、出力画像を高品位なものとするために入力画像毎にLUTを作成するとなると、上述したメモリ容量に対して、入力画像の情報量の数倍ものメモリ領域が必要となってくる。従って、大容量のメモリが必要となり、コストアップにつながってしまう。   Further, if an LUT is created for each input image in order to make the output image high quality, a memory area several times the information amount of the input image is required with respect to the memory capacity described above. Therefore, a large-capacity memory is required, leading to an increase in cost.

本発明は、このような問題を鑑みてなされたもので、その目的とするところは、1DLUTを容量が小さいメモリに格納できるよう画像毎に作成して変換処理を高速に行う画像処理方法および画像処理装置を提供することにある。   The present invention has been made in view of such a problem, and an object of the present invention is to provide an image processing method and an image processing method in which a 1DLUT is created for each image so as to be stored in a memory having a small capacity, and conversion processing is performed at high speed It is to provide a processing apparatus.

このような目的を達成するために、本発明の画像処理方法は、画像データを取得する取得工程と、前記画像データに基づき、所定間隔のサンプリング点で1次元ルックアップテーブル(1DLUT)を作成する作成工程と、前記1DLUTを、前記1DLUTを用いて変換処理を行う変換処理手段の内部メモリに格納する格納工程と、前記変換処理手段によって前記画像データに基づいて1DLUTから出力される出力データに対し補間処理を行って前記画像データを変換処理する変換処理工程とを有することを特徴とする。   In order to achieve such an object, an image processing method of the present invention generates an image data acquisition step, and creates a one-dimensional lookup table (1DLUT) at sampling points at a predetermined interval based on the image data. A creation step, a storage step of storing the 1DLUT in an internal memory of a conversion processing unit that performs conversion processing using the 1DLUT, and output data output from the 1DLUT based on the image data by the conversion processing unit A conversion process step of converting the image data by performing an interpolation process.

また、本発明の画像処理装置は、画像データを取得する取得手段と、前記画像データに基づき、所定間隔のサンプリング点で1次元ルックアップテーブル(1DLUT)を作成する作成手段と、前記1DLUTを、前記1DLUTを用いて変換処理を行う変換処理手段と、前記変換処理手段に含まれ、前記1DLUTを格納する内部メモリと、前記変換処理手段によって前記画像データに基づいて1DLUTから出力される出力データに対し補間処理を行って前記画像データを変換処理する変換処理手段とを備えることを特徴とする。   The image processing apparatus of the present invention includes an acquisition unit that acquires image data, a generation unit that generates a one-dimensional lookup table (1DLUT) at sampling points at predetermined intervals based on the image data, and the 1DLUT. Conversion processing means for performing conversion processing using the 1DLUT, an internal memory included in the conversion processing means for storing the 1DLUT, and output data output from the 1DLUT based on the image data by the conversion processing means Conversion processing means for converting the image data by performing interpolation processing on the image data.

なお、本発明の「変換処理手段」とは、DSP(ディジタルシグナルプロセッサ)とすることができる。   The “conversion processing means” of the present invention can be a DSP (digital signal processor).

以上説明したように、本発明によれば、取得された画像データに基づき、所定間隔のサンプリング点で1次元ルックアップテーブル(1DLUT)を作成し、その1DLUTを変換処理手段の内部メモリに格納して、変換処理手段にて画像データに基づいて1DLUTから出力される出力データに対し補間処理を行って画像データを変換処理するので、1DLUTを容量が小さい画像処理手段の内部メモリに格納できるよう画像毎に作成して変換処理を高速に行うことが可能となる。   As described above, according to the present invention, based on the acquired image data, a one-dimensional lookup table (1DLUT) is created at sampling points at a predetermined interval, and the 1DLUT is stored in the internal memory of the conversion processing means. Thus, the conversion processing means performs an interpolation process on the output data output from the 1DLUT based on the image data to convert the image data, so that the 1DLUT can be stored in the internal memory of the image processing means having a small capacity. Each time it is created, the conversion process can be performed at high speed.

以下、図面を参照して本発明の実施形態を詳細に説明する。
図1は、本発明の一実施形態に係る画像処理装置であるフィルムスキャナの周辺デバイスを含めた概略構成を示すブロック図である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing a schematic configuration including peripheral devices of a film scanner which is an image processing apparatus according to an embodiment of the present invention.

図1において、CPU1は、本フィルムスキャナの動作の制御処理やデータ処理等を実行する。ROM3には、後述する図6および図7に示すプログラムを含む、フィルムスキャナの各制御に関するプログラムがプリセットされている。CPU1がROM3に格納されているプログラムを実行することで、フィルムスキャナの制御を行う。コントローラ5は、色補正などの各種処理を行うDSP(ディジタルシグナルプロセッサ)7、画像入力装置であるCCD8やフィルム搬送などの機械の制御および電気の制御を行う。RAM6には、後述するように、DSP7の制御プログラムやCCD8からのR、G、Bに対応する入力画像データや、入力画像データに応じて作成された1DLUTや、DSP7による、入力画像データに対する色補正などの各種処理された処理済みデータ(出力画像データ)などが格納される。DSP7の内部には後述するデータの入出力用のDMA(ダイレクトメモリアクセス)を用いた構成要素を有している。このDMAとは、CPUを介さずに入出力装置とメモリとの間でデータをやり取りするための方式であって、DMAを用いた構成要素(以下、単にDMAと呼ぶ)は、CCD8からの読み取りデータ(入力画像データ)をRAM6へ送る、およびそのデータをRAM6から取り出し色補正などを行う各種処理装置へ送り、また処理済みデータをRAM6へ戻す、および処理済みデータをRAM6からSCSIバスへ送る、などのデータ転送を行う。SCSI−C4は、本フィルムスキャナとパーソナルコンピュータ等の外部機器とのやり取りを行うSCSIインタフェースの制御を行う。以上説明した各部は、I/Oバス(アドレスバス、データバス及び制御バス)2を介して互いに接続されている。   In FIG. 1, a CPU 1 executes control processing of the operation of the film scanner, data processing, and the like. The ROM 3 is preset with programs relating to each control of the film scanner, including programs shown in FIGS. 6 and 7 described later. The CPU 1 controls the film scanner by executing a program stored in the ROM 3. The controller 5 controls a DSP (digital signal processor) 7 that performs various processes such as color correction, a CCD 8 that is an image input device, and a machine such as a film transport and an electrical control. As will be described later, the RAM 6 stores a control program for the DSP 7, input image data corresponding to R, G, and B from the CCD 8, 1DLUT created according to the input image data, and colors for the input image data by the DSP 7. Stored are processed data (output image data) subjected to various processes such as correction. The DSP 7 includes components using DMA (direct memory access) for data input / output, which will be described later. The DMA is a method for exchanging data between the input / output device and the memory without going through the CPU, and a component using the DMA (hereinafter simply referred to as DMA) is read from the CCD 8. Sending data (input image data) to the RAM 6, sending the data from the RAM 6 to various processing devices that perform color correction, returning the processed data to the RAM 6, and sending the processed data from the RAM 6 to the SCSI bus; Data transfer such as. The SCSI-C4 controls a SCSI interface that exchanges between the film scanner and an external device such as a personal computer. Each unit described above is connected to each other via an I / O bus (address bus, data bus, and control bus) 2.

なお、本実施形態では、パーソナルコンピュータ等の外部機器とのインタフェースとしてSCSIを用いたが、これに限らず、例えば、USB、Bluetooth等のように、有線、無線を問わずに外部機器と通信が行えるものであればいずれのインタフェースも用いることができる。   In this embodiment, SCSI is used as an interface with an external device such as a personal computer. However, the present invention is not limited to this. For example, communication with an external device is possible regardless of wired or wireless, such as USB and Bluetooth. Any interface that can do so can be used.

図2は、本発明の一実施形態に係るDSPの概略構成を示すブロック図である。
図2において、DSP7は、内部にDMA11〜14を有している。DMA11はDSP7の外部にあるCCD8から送られるデータの入力を行い、DMA12はDSP7の外部にあるRAM6とのデータ転送を行い、DMA13はDSP7の外部にあるRAM6へのデータ出力を行い、DMA14はDSP7内部にあるRAM15およびプロセッサ16〜19へのデータ転送を行う。RAM15はDSP内部にあるため容量が制限され、RAM6よりも容量が小さくなるが、外部にあるRAM6よりも高速にアクセス可能となる。RAM15には、後述するように、入力画像データ、プロセッサ16〜19による処理済みデータなどを格納する。プロセッサ16〜19は、色補正などの各種処理を加える処理装置である。以上説明した各部は、それぞれデータを伝送するためのバスに接続されている。
FIG. 2 is a block diagram showing a schematic configuration of a DSP according to an embodiment of the present invention.
In FIG. 2, the DSP 7 has DMAs 11 to 14 inside. The DMA 11 inputs data sent from the CCD 8 outside the DSP 7, the DMA 12 transfers data to the RAM 6 outside the DSP 7, the DMA 13 outputs data to the RAM 6 outside the DSP 7, and the DMA 14 is DSP 7. Data is transferred to the internal RAM 15 and the processors 16 to 19. Since the RAM 15 is inside the DSP, its capacity is limited and the capacity is smaller than that of the RAM 6, but it can be accessed faster than the RAM 6 outside. The RAM 15 stores input image data, data processed by the processors 16 to 19 and the like, as will be described later. The processors 16 to 19 are processing devices that perform various processes such as color correction. Each unit described above is connected to a bus for transmitting data.

図3は、本発明の一実施形態に係るRAM6の内部構成を示す図である。同図において、各負号が付された部分は、各データを格納するために割り当てられたメモリ領域である。   FIG. 3 is a diagram showing an internal configuration of the RAM 6 according to an embodiment of the present invention. In the same figure, the part to which each minus sign is attached is a memory area allocated for storing each data.

図3において、メモリ領域20には、DSP7を制御するためのプログラム(以降、DSP制御プログラムともいう)が格納され、ここに色補正などの各種処理を行うためのプログラムが記述してある。メモリ領域21には、処理を実行する時に必要な各種変数が格納される。メモリ領域22には、CCD8などの画像入力装置により送られた入力画像データ、およびプロセッサ16〜19による色補正など各種入力画像データに対して処理を行った出力画像データ(処理済みデータ)が格納される。メモリ領域23から(メモリ領域23、24、25・・・)には、入力された各画像に対してR、G、Bチャンネル毎に作成された1DLUTが格納される。同図では、CCD8によって読み取られた1駒目の画像において、R用に作成された1DLUTはメモリ領域23へ、G用に作成された1DLUTはメモリ領域24へ、B用に作成された1DLUTはメモリ領域25へそれぞれ格納される。2駒目の画像においては、R用に作成された1DLUTはメモリ領域26へと格納され、以降同様に入力された画像の駒数に応じて所定のメモリ領域に格納される。   In FIG. 3, a memory area 20 stores a program for controlling the DSP 7 (hereinafter also referred to as a DSP control program), and a program for performing various processes such as color correction is described here. The memory area 21 stores various variables necessary for executing processing. The memory area 22 stores input image data sent by an image input device such as the CCD 8 and output image data (processed data) obtained by processing various input image data such as color correction by the processors 16 to 19. Is done. From the memory area 23 (memory areas 23, 24, 25...), 1DLUT created for each of the R, G, and B channels for each input image is stored. In the figure, in the first frame image read by the CCD 8, the 1DLUT created for R is stored in the memory area 23, the 1DLUT created for G is stored in the memory area 24, and the 1DLUT created for B is They are stored in the memory area 25, respectively. In the second frame image, the 1DLUT created for R is stored in the memory area 26, and similarly stored in a predetermined memory area in accordance with the number of input image frames.

図4は、本発明の一実施形態に係るRAM15の内部構成を示す図である。同図において、各負号が付された部分は、各データを格納するために割り当てられたメモリ領域である。   FIG. 4 is a diagram showing an internal configuration of the RAM 15 according to the embodiment of the present invention. In the same figure, the part to which each minus sign is attached is a memory area allocated for storing each data.

図4において、メモリ領域30には、DSP7を制御するためのプログラムが格納されている。メモリ領域30に格納されたDSP制御プログラムはDSP7内部にあるので、このプログラムを用いると、図3に示したメモリ領域20に格納されたDSP制御プログラムを用いる場合よりも高速に処理が行える。メモリ領域31には、RAM6のメモリ領域22から取り出された、処理を施すために必要な入力画像データが格納される。メモリ領域32、33、34には、それぞれ、RAM6のメモリ領域23以降より処理を施す画像に応じて選択して取り出された、R用1DLUT、G用1DLUT、B用1DLUTが格納される。   In FIG. 4, the memory area 30 stores a program for controlling the DSP 7. Since the DSP control program stored in the memory area 30 is in the DSP 7, processing can be performed at a higher speed than when the DSP control program stored in the memory area 20 shown in FIG. 3 is used. In the memory area 31, input image data necessary for processing, which is extracted from the memory area 22 of the RAM 6, is stored. The memory areas 32, 33, and 34 store the 1DLUT for R, the 1DLUT for G, and the 1DLUT for B, which are selected and extracted in accordance with the image to be processed from the memory area 23 of the RAM 6, respectively.

本実施形態では、CCD8からの入力画像の1画素あたりの色情報を14ビット、変換後の出力画像の1画素あたりの色情報を16ビットとする。従って、DSP7での処理が階調変換処理である場合、1DLUT処理では入力14ビット、出力16ビットの階調変換処理を行うようになっている。したがって、R、G、B各チャンネルの1DLUTの全データをメモリ領域に格納すると、214×16×3=78632ビット、すなわち96Kバイトにもなるため、その全データは、処理が高速なDSP7の内部にあるRAM15には収まりきらない。そこで入力画像データのR、G、B各チャンネルに対する1DLUTを全てRAM15に格納するために、入力画像の全データに対する変換値をテーブル値として持つという方法ではなく、入力画像の全データのうち所定間隔のサンプリング点についてのみ変換値をメモリに保持しておき、そのサンプリング点の変換値を使って補間計算で出力値を算出する。すなわち、入力画像の全データを所定間隔でサンプリングすることでデータ量の小さな1DLUTを作成することができる。 In this embodiment, the color information per pixel of the input image from the CCD 8 is 14 bits, and the color information per pixel of the converted output image is 16 bits. Therefore, when the processing in the DSP 7 is gradation conversion processing, gradation conversion processing with input 14 bits and output 16 bits is performed in 1DLUT processing. Therefore, if all the data of 1DLUT of each channel of R, G, and B is stored in the memory area, it becomes 2 14 × 16 × 3 = 78632 bits, that is, 96 Kbytes. It does not fit in the internal RAM 15. Therefore, in order to store all 1DLUTs for the R, G, and B channels of the input image data in the RAM 15, it is not a method of having conversion values for all the data of the input image as table values, but a predetermined interval of all the data of the input image. Conversion values are stored in the memory only for the sampling points, and output values are calculated by interpolation calculation using the conversion values of the sampling points. That is, a 1DLUT with a small data amount can be created by sampling all data of the input image at a predetermined interval.

本実施形態では、14ビットの入力データ0〜16383を16カウント毎の所定間隔に出力変換値をテーブル値として保持する。所定間隔を16カウントとしたのは、メモリサイズとDSP7の特性上2のべき乗にしたほうがシフト演算による割り算が可能となり、より高速な処理を行うことが可能となるからである。よって、本実施形態では、上述のカウント値は、16カウントに限定されず、いずれの値でも良いが、2のべき乗の値が好適である。   In this embodiment, 14-bit input data 0 to 16383 are held as output conversion values as table values at predetermined intervals for every 16 counts. The reason for setting the predetermined interval to 16 counts is that division by shift operation is possible when the memory size and DSP 7 are set to a power of 2, and higher-speed processing can be performed. Therefore, in the present embodiment, the above-described count value is not limited to 16 counts and may be any value, but a power of 2 is preferable.

図5は、本発明の一実施形態に係るルックアップテーブルを示す図である。
図5において、16カウント毎にサンプリング点を決めているため、テーブル入力値をX0=0、X1=16・・・X1023=16368、X1024=16383、とし、それに対応する出力値をY0、Y1、・・・Y1023、Y1024とする。
FIG. 5 is a diagram illustrating a lookup table according to an embodiment of the present invention.
In FIG. 5, since sampling points are determined every 16 counts, the table input values are X 0 = 0, X 1 = 16... X 1023 = 16368, X 1024 = 16383, and the corresponding output values are Y 0 , Y 1 ,... Y 1023 , Y 1024 are assumed.

上述のサンプリング点以外のデータについては、以下に示す補間計算によって算出する。
任意の入力値をx(14ビット)、その時の出力値をy(16ビット)として、以下に出力の計算式を示す。
Data other than the above sampling points is calculated by the interpolation calculation shown below.
An arbitrary input value is x (14 bits) and the output value at that time is y (16 bits).

Figure 2005176140
Figure 2005176140

この時kは入力値xの上位10ビット、Ykのアドレス入力値xの上位10ビット、(x- Xk)の値は入力値xの下位4ビットの値となる。 At this time, k is the upper 10 bits of the input value x, the upper 10 bits of the address input value x of Y k , and the value of (x−X k ) is the value of the lower 4 bits of the input value x.

本実施形態において、式(1)による補間計算は、専用の回路またはソフトウエアを用いて行うことができる。   In the present embodiment, the interpolation calculation according to Expression (1) can be performed using a dedicated circuit or software.

以上により、R、G、B各チャンネルのテーブルデータ数は1025個/チャンネルとなる。よって、使用するメモリ領域は、1025個×16ビット×3チャンネル=49200ビット、すなわち約6Kバイトとなり、RAM15に収まるサイズとなり、上述のようにして作成された各色に対する1DLUTは全てRAM15に格納することができる。また、本実施形態では、駒毎に1DLUTを作成するため、最大約40駒の1DLUTをDSP7の外部にあるRAM6に格納しなければならず、従来では、全データをメモリ領域に格納すると、必要となるメモリは96Kバイト×約40駒=約3840Kバイトにもなるものが、上述の補間処理を行うことで、必要となるメモリは6Kバイト×約40駒=約240Kバイトになるため大幅なメモリの節約になる。   Thus, the number of table data for each of the R, G, and B channels is 1025 / channel. Therefore, the memory area to be used is 1025 × 16 bits × 3 channels = 49200 bits, that is, about 6 Kbytes, which is a size that can be stored in the RAM 15, and that all the 1DLUTs for each color created as described above are stored in the RAM 15. Can do. In the present embodiment, since one DLUT is created for each frame, a maximum of about 40 frames of 1DLUT must be stored in the RAM 6 outside the DSP 7. Conventionally, if all data is stored in the memory area, it is necessary. Although the memory becomes 96K bytes x about 40 frames = about 3840K bytes, the necessary memory becomes 6K bytes x about 40 frames = about 240K bytes by performing the above interpolation processing. Save money.

以下、CCD8による入力画像データに対して色補正処理を行うために、入力画像毎にR、G、B各チャンネルに対して作成された1DLUTを、RAM6に格納する手順を説明する。   A procedure for storing 1DLUT created for each of the R, G, and B channels for each input image in the RAM 6 in order to perform color correction processing on the input image data by the CCD 8 will be described below.

図6は、本実施形態の一実施形態に係る入力画像に対応する1DLUTをRAM6に格納する手順を示すフローチャートである。
図6において、各駒に対する色補正に必要な1DLUTを作成するのに必要な情報を得るために、プリスキャンが行われる。プリスキャンが行われると、本手順を開始する。
FIG. 6 is a flowchart showing a procedure for storing the 1DLUT corresponding to the input image in the RAM 6 according to an embodiment of the present embodiment.
In FIG. 6, pre-scanning is performed in order to obtain information necessary for creating a 1DLUT necessary for color correction for each frame. When the pre-scan is performed, this procedure is started.

ステップ40では、プリスキャンによって入力された1駒の画像データをDSP7へ入力する。   In step 40, one frame of image data input by the pre-scan is input to the DSP 7.

ステップ41では、ステップ41で入力されたデータにより入力した駒に対応した1DLUTをR、G、Bチャンネル毎に作成し、作成したデータをRAM6のメモリ領域23以降の1DLUT格納領域に格納していく。なお、1DLUTの作成方法については、既知の手法を採用できるものであるが、本実施形態では、例えば、パッチの輝度を読み込んだ結果から、同じパッチに対応する、入力機器プロファイルのデータを出力目標のデータに変換するルックアップテーブルを作成する。   In step 41, a 1DLUT corresponding to the frame input by the data input in step 41 is created for each of the R, G, and B channels, and the created data is stored in a 1DLUT storage area after the memory area 23 of the RAM 6. . Although a known method can be adopted as a method for creating a 1DLUT, in this embodiment, for example, from the result of reading the luminance of a patch, input device profile data corresponding to the same patch is output as an output target. Create a lookup table to convert to the data.

ステップ42では、次の駒があるか否かを判定する。まだ入力する画像がある場合にはS40へ戻りDSP7への次の駒の入力を行い、またS41へと繰り返す。次の駒がない場合は、この動作を終了する。   In step 42, it is determined whether there is a next frame. If there is still an image to be input, the process returns to S40, the next frame is input to the DSP 7, and the process is repeated to S41. If there is no next piece, this operation is terminated.

なお、本実施形態では、各画像のプリスキャン毎に1DLUTの作成を行っているが、これに限定されず、例えば、プリスキャンした画像を所定の記憶装置に蓄積していき、蓄積された所定の駒数の画像データに対してまとめて1DLUTを作成するようにしても良い。この場合、所定の駒数の画像データを1グループに見立てて、そのグループ毎に図6にて説明したRAM6への格納手順を行えば良い。   In the present embodiment, a 1DLUT is created for each image prescan. However, the present invention is not limited to this. For example, the prescanned image is accumulated in a predetermined storage device, and the accumulated predetermined One DLUT may be created collectively for image data of the number of frames. In this case, the image data of a predetermined number of frames may be regarded as one group, and the storing procedure in the RAM 6 described with reference to FIG. 6 may be performed for each group.

また、1DLUTを作成するタイミングは、上述したタイミングに限らず、プリスキャンされた画像について色補正がされるまでであればいずれのタイミングでも良い。   The timing for creating the 1DLUT is not limited to the timing described above, and any timing may be used as long as color correction is performed on the prescanned image.

さらに、本実施形態では、1DLUTは、プリスキャンによって取り込まれた画像に従って取り込まれた画像毎に作成されるが、これに限定されず、予め多数の1DLUTをROM3等の記憶装置に格納しておき、CCD8によって取り込まれた入力画像データに適した1DLUTを選んで用いる形態であっても良い。このとき、選ばれた1DLUTに対して所定間隔でサンプリングを行うことによってデータ量を小さくすることができる。   Furthermore, in this embodiment, the 1DLUT is created for each image captured according to the image captured by the pre-scan. However, the present invention is not limited to this, and a number of 1DLUTs are stored in a storage device such as the ROM 3 in advance. Alternatively, a 1DLUT suitable for input image data captured by the CCD 8 may be selected and used. At this time, the amount of data can be reduced by sampling the selected 1DLUT at predetermined intervals.

次に、図6に従って各入力画像に対して作成された1DLUTを用いて、作成された1DLUTに対応する画像に対する色補正について、その手順を説明する。   Next, a procedure for color correction for an image corresponding to the created 1DLUT using the 1DLUT created for each input image according to FIG. 6 will be described.

図7は、本発明の一実施形態に係る入力画像データに対する色補正のための手順を示すフローチャートである。
プリスキャンされた画像に対して、画像を取り込むためにスキャンされると本手順を開始する。
FIG. 7 is a flowchart showing a procedure for color correction for input image data according to an embodiment of the present invention.
When the pre-scanned image is scanned to capture an image, this procedure is started.

ステップ50では、スキャンによって取り込まれた、14ビット画像データ(入力画像データ)であるR、G、B各チャンネルをRAM6に入力し、RAM6のメモリ領域へ格納する。   In step 50, the R, G, and B channels, which are 14-bit image data (input image data) captured by scanning, are input to the RAM 6 and stored in the memory area of the RAM 6.

ステップ51では、プリスキャン時に作成された、現在入力されている画像に対応する1DLUTを、処理が高速なRAM15へ取り込み、各色に対応するメモリ領域に格納する。   In step 51, the 1DLUT corresponding to the currently input image created at the time of pre-scanning is taken into the RAM 15 with high processing speed and stored in the memory area corresponding to each color.

ステップ52では、色補正処理を施すため、入力画像データを、処理が高速なRAM15へ取り込み、メモリ領域31に格納する。   In step 52, in order to perform color correction processing, the input image data is fetched into the RAM 15 having a high processing speed and stored in the memory area 31.

ステップ53では、ステップ52で取り込んだ入力画像データの画素毎のR、G、B各データに基づいて、ステップ51より取り込んだ1DLUTから出力される出力データに対して上述した補間計算式である式(1)を用いて補間処理を行い色補正を加えていく。   In step 53, based on the R, G, and B data for each pixel of the input image data captured in step 52, the above-described interpolation calculation formula for the output data output from the 1DLUT captured in step 51. Interpolation processing is performed using (1) to add color correction.

ステップ54では、ステップ53にて補正された出力画像データを、RAM15からRAM6へ送り、メモリ領域22へ格納する。   In step 54, the output image data corrected in step 53 is sent from the RAM 15 to the RAM 6 and stored in the memory area 22.

ステップ55では、入力した駒の画素全てに対して色補正が行われているか否かを判定する。入力した駒の画素全てに色補正が行われていないと判定する場合は、ステップ51へ戻り、対応する画像をRAM6からRAM15へ取り込み、その画像データの色補正されていない画素に対して色補正を繰り返す。入力した駒の画素全てに色補正が行われていると判定する場合は、1駒の入力画像データに対する色補正が完了し、ステップ56へと進む。   In step 55, it is determined whether or not color correction has been performed on all pixels of the input frame. If it is determined that color correction has not been performed on all the pixels of the input frame, the process returns to step 51, the corresponding image is fetched from the RAM 6 into the RAM 15, and color correction is performed on the uncorrected pixels of the image data. repeat. When it is determined that color correction has been performed on all the pixels of the input frame, the color correction for the input image data of one frame is completed, and the process proceeds to step 56.

ステップ56では、次の駒の入力があるか否か判定を行う。次の駒の入力があると判定する場合は、ステップ50へと戻り本手順に従って色補正を繰り返す。次の駒の入力がないと判定する場合は、この動作を終了する。   In step 56, it is determined whether or not there is an input for the next frame. If it is determined that there is an input for the next frame, the process returns to step 50 to repeat the color correction according to this procedure. If it is determined that there is no input for the next frame, this operation is terminated.

このように処理を行う画像データは、処理デバイスであるDSP7の内部メモリに格納して処理されるので、特に1DLUTを参照する場合は、1画素を処理するたびに、外部メモリを参照するということはなくなり、大幅な処理の高速化が図れる。   Since the image data to be processed in this way is stored and processed in the internal memory of the DSP 7 as a processing device, especially when referring to 1DLUT, it refers to the external memory every time one pixel is processed. And the processing speed can be greatly increased.

本実施形態では、画像入力装置としてCCDを用いたが、R、G、Bなどの入力画像データを取り込めるものであればどのようなものであっても良い。   In this embodiment, a CCD is used as the image input device. However, any device may be used as long as it can capture input image data such as R, G, and B.

また、本実施形態では、入力画像データの1画素あたりのR、G、Bそれぞれの情報量として14ビットを、出力画像データについてのそれら情報量として16ビットとしたが、これらの情報量に限定されず、例えば入力画像データの1画素あたりのR、G、Bそれぞれの情報量を16ビットにするなど上述の14ビットよりも大きい値にした場合は、変換テーブルをそれにあわせて大きくし、また上述の入力画像データの情報量を14ビットよりも小さい値にした場合は、変換テーブルをそれに合わせて小さくし、サンプリング点の調整を行うだけなので、入出力のビット数はいずれの値であっても良い。またC(シアン)、M(マゼンタ)、Y(イエロー)、K(ブラック)などの色補正を行う場合でも上述と同様に、入力画像毎にDSP7の内部メモリに格納できるように情報量を小さくした1DLUTを作成し、1画素毎に色補正を行えば良い。   In this embodiment, 14 bits are used as the information amount of R, G, and B per pixel of the input image data, and 16 bits are set as the information amount of the output image data. However, the information amount is limited to these information amounts. If, for example, the information amount of each of R, G, and B per pixel of the input image data is set to a value larger than the above 14 bits, such as 16 bits, the conversion table is increased accordingly. If the information amount of the input image data is set to a value smaller than 14 bits, the conversion table is made smaller accordingly and the sampling point is adjusted, so the number of input / output bits is any value. Also good. Further, even when color corrections such as C (cyan), M (magenta), Y (yellow), and K (black) are performed, the amount of information is reduced so that each input image can be stored in the internal memory of the DSP 7 as described above. The 1DLUT may be created and color correction may be performed for each pixel.

また、本実施形態では、画像処理装置としてフィルムスキャナを用いたが、カラー画像信号やカラー映像信号を入力して、色補正をする用途、スキャナやカメラ、ハードコピー装置やカラー表示装置、カラーコレクタ、ビデオ編集装置、およびカラーによる識別を行う色認識装置など色補正を加えるものならば他のものであっても良い。   In this embodiment, a film scanner is used as the image processing apparatus. However, the color correction is performed by inputting a color image signal or a color video signal, a scanner, a camera, a hard copy apparatus, a color display apparatus, a color corrector. Any other device that performs color correction, such as a video editing device and a color recognition device that performs color identification, may be used.

さらに、本実施形態では、DSP7で行う処理として入力画像の色補正としたが、これに限定されず、DSP7での処理において1DLUTを必要とするものであればいずれの形態であっても良い。   Furthermore, in this embodiment, the input image color correction is performed as processing performed by the DSP 7. However, the present invention is not limited to this, and any configuration may be used as long as 1DLUT is required for processing by the DSP 7.

以上説明したように、本実施形態によれば、入力画像データに対して一つの画像毎に1DLUTを作成し、それにより入力画像のそれぞれの画素に色補正を加えることでより繊細な色補正を可能とし、処理デバイスの内部メモリに作成された1DLUTを格納できるようにデータ量を縮小することにより、処理の高速化および、メモリの削減によるコスト削減を行うことができる。   As described above, according to this embodiment, 1DLUT is created for each image with respect to the input image data, and color correction is performed on each pixel of the input image, thereby performing more delicate color correction. By reducing the amount of data so that the 1DLUT created in the internal memory of the processing device can be stored, the processing speed can be increased and the cost can be reduced by reducing the memory.

本発明の一実施形態に係る画像処理装置であるフィルムスキャナの周辺デバイスを含めた概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration including peripheral devices of a film scanner that is an image processing apparatus according to an embodiment of the present invention. 本発明の一実施形態に係るDSPの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of DSP which concerns on one Embodiment of this invention. 本発明の一実施形態に係るRAM6の内部構成を示す図である。It is a figure which shows the internal structure of RAM6 which concerns on one Embodiment of this invention. 本発明の一実施形態に係るRAM15の内部構成を示す図である。It is a figure which shows the internal structure of RAM15 which concerns on one Embodiment of this invention. 本発明の一実施形態に係るルックアップテーブルを示す図である。It is a figure which shows the look-up table which concerns on one Embodiment of this invention. 本実施形態の一実施形態に係る入力画像に対応する1DLUTをRAM6に格納する手順を示すフローチャートである。4 is a flowchart showing a procedure for storing 1DLUT corresponding to an input image in a RAM 6 according to an embodiment of the present embodiment. 本発明の一実施形態に係る入力画像データに対する色補正のための手順を示すフローチャートである。It is a flowchart which shows the procedure for the color correction with respect to the input image data which concerns on one Embodiment of this invention.

符号の説明Explanation of symbols

1 CPU
2 I/Oバス
3 ROM
4 SCSI−C
5 コントローラ
6、15 RAM
7 DSP
8 CCD
11、12、13、14 DAM
16、17、18、19 プロセッサ
1 CPU
2 I / O bus 3 ROM
4 SCSI-C
5 Controller 6, 15 RAM
7 DSP
8 CCD
11, 12, 13, 14 DAM
16, 17, 18, 19 processor

Claims (10)

画像データを取得する取得工程と、
前記画像データに基づき、所定間隔のサンプリング点で1次元ルックアップテーブル(1DLUT)を作成する作成工程と、
前記1DLUTを、前記1DLUTを用いて変換処理を行う変換処理手段の内部メモリに格納する格納工程と、
前記変換処理手段によって前記画像データに基づいて1DLUTから出力される出力データに対し補間処理を行って前記画像データを変換処理する変換処理工程と
を有することを特徴とする画像処理方法。
An acquisition process for acquiring image data;
A creation step of creating a one-dimensional lookup table (1DLUT) at sampling points at a predetermined interval based on the image data;
A storing step of storing the 1DLUT in an internal memory of a conversion processing unit that performs a conversion process using the 1DLUT;
An image processing method comprising: a conversion process step of converting the image data by performing an interpolation process on the output data output from the 1DLUT based on the image data by the conversion processing means.
前記画像データは、画像入力手段のスキャンによって取り込まれたデータであることを特徴とする請求項1記載の画像処理方法。   2. The image processing method according to claim 1, wherein the image data is data captured by scanning of an image input means. 前記1DLUTは、レッド、グリーンおよびブルーに対するものであることを特徴とする請求項1または2記載の画像処理方法。   The image processing method according to claim 1, wherein the 1DLUT is for red, green, and blue. 前記所定間隔は2のべき数で表されることを特徴とする請求項1乃至3のいずれかに記載の画像処理方法。   The image processing method according to claim 1, wherein the predetermined interval is represented by a power of two. 前記変換処理は、色補正であることを特徴とする請求項1乃至4のいずれかに記載の画像処理方法。   The image processing method according to claim 1, wherein the conversion processing is color correction. 画像データを取得する取得手段と、
前記画像データに基づき、所定間隔のサンプリング点で1次元ルックアップテーブル(1DLUT)を作成する作成手段と、
前記1DLUTを、前記1DLUTを用いて変換処理を行う変換処理手段と、
前記変換処理手段に含まれ、前記1DLUTを格納する内部メモリと、
前記変換処理手段によって前記画像データに基づいて1DLUTから出力される出力データに対し補間処理を行って前記画像データを変換処理する変換処理手段と
を備えることを特徴とする画像処理装置。
Acquisition means for acquiring image data;
Creating means for creating a one-dimensional lookup table (1DLUT) at sampling points of a predetermined interval based on the image data;
Conversion processing means for converting the 1DLUT using the 1DLUT;
An internal memory included in the conversion processing means for storing the 1DLUT;
An image processing apparatus comprising: conversion processing means for performing an interpolation process on output data output from a 1DLUT based on the image data by the conversion processing means to convert the image data.
前記画像データは、画像入力手段のスキャンによって取り込まれたデータであることを特徴とする請求項6記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the image data is data captured by scanning of an image input unit. 前記1DLUTは、レッド、グリーンおよびブルーに対するものであることを特徴とする請求項6または7記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the 1DLUT is for red, green, and blue. 前記所定間隔は2のべき数で表さられることを特徴とする請求項6乃至8のいずれかに記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the predetermined interval is expressed by a power of two. 前記変換処理は、色補正であることを特徴とする請求項6乃至9のいずれかに記載の画像処理装置。
The image processing apparatus according to claim 6, wherein the conversion process is color correction.
JP2003415731A 2003-12-12 2003-12-12 Image processing method and image processor Pending JP2005176140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003415731A JP2005176140A (en) 2003-12-12 2003-12-12 Image processing method and image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003415731A JP2005176140A (en) 2003-12-12 2003-12-12 Image processing method and image processor

Publications (1)

Publication Number Publication Date
JP2005176140A true JP2005176140A (en) 2005-06-30

Family

ID=34735133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003415731A Pending JP2005176140A (en) 2003-12-12 2003-12-12 Image processing method and image processor

Country Status (1)

Country Link
JP (1) JP2005176140A (en)

Similar Documents

Publication Publication Date Title
JP4325552B2 (en) Image processing apparatus, image processing method, and image processing program
US7965427B2 (en) Color processing apparatus and its method
JP2004007425A (en) Image reading system and image reading program
JP2006203555A (en) Image processing method, image processor and image processing program
JP2004040544A (en) Image processor, method, program and storage medium
JP4752421B2 (en) Image retouching method, image retouching device, and image retouching program
JP2011091753A (en) Imaging apparatus, image processing apparatus, and program
JPH01309464A (en) Picture transmitter
JP2010226615A (en) Apparatus, method, and program for processing image
JP2005176140A (en) Image processing method and image processor
JP5340456B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
US20030038973A1 (en) Gray scale scanning method and system
JP2006203571A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP2004236201A (en) Image processor and image processing method
JPH09200550A (en) Image processing system
JPH11308474A (en) Image processor
JP2004236199A (en) Image processor and image processing method
JP2002330387A (en) Electronic camera
JP2007013474A (en) Image processing apparatus and method
JP3518550B2 (en) Image reading device
US8818094B2 (en) Image processing apparatus, image processing method and recording device recording image processing program
JP3810620B2 (en) Image processing method, image processing system, and image forming apparatus including the same
JPH05103201A (en) Color facsimile equipment
JP2004336656A (en) Method and apparatus for luminance and saturation adjusting and image output apparatus
JP2004236159A (en) Image recording method