JP2007266920A - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP2007266920A
JP2007266920A JP2006088311A JP2006088311A JP2007266920A JP 2007266920 A JP2007266920 A JP 2007266920A JP 2006088311 A JP2006088311 A JP 2006088311A JP 2006088311 A JP2006088311 A JP 2006088311A JP 2007266920 A JP2007266920 A JP 2007266920A
Authority
JP
Japan
Prior art keywords
image data
correction
image
processing
value
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
JP2006088311A
Other languages
Japanese (ja)
Inventor
Masatoshi Matsudaira
平 正 年 松
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006088311A priority Critical patent/JP2007266920A/en
Publication of JP2007266920A publication Critical patent/JP2007266920A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus and an image processing method for obtaining a correction result as intended while attaining a high-speed processing. <P>SOLUTION: The image processing apparatus includes: a first storage device for storing a three-dimensional lookup table wherein three output primary color data corresponding to three input primary color data configuring input image data are written on each grating point as correction parameters in response to the image correction processing setting; and a second storage device for storing correction processing programs for successive correction processing applied to the input image data, and selectively executes a first image data correction processing to obtain output image data by accessing the first storage device to apply arithmetic processing using the three-dimensional lookup table or a second image data correction processing to obtain the output image data by reading any correction processing program and executing the correction processing program from the second storage device so as to execute sequential correction processing of the input image data. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像処理装置及び画像処理方法に係り、特に、画像データを印刷に最適な印刷データに変換する際に行う補正処理のための画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method, and more particularly to an image processing apparatus and an image processing method for correction processing performed when image data is converted into print data optimal for printing.

画像データに基づいて印刷を行う際には、通常、元の画像データをそのまま使用するのではなく、印刷装置による処理が可能であって印刷を実行した際に最適な印刷結果が得られるように補正処理を行って画像データを印刷データに変換してから、その印刷データを用いて印刷を実行する。   When printing based on image data, the original image data is usually not used as it is, but can be processed by a printing device so that an optimal printing result can be obtained when printing is performed. A correction process is performed to convert the image data into print data, and then printing is performed using the print data.

この画像データの補正処理には、入力画像データ(元の画像データ)と出力画像データ(補正後の画像データ)との間のトーンの関係を示すトーンカーブ(トーン曲線)に従って行われるトーンカーブ補正、赤(R)、緑(G)、青(B)の各色の強調の度合いを設定する彩度補正、人が見たときに綺麗だと感じる理想的な色、即ち、記憶色に近づける記憶色補正等の色補正処理が含まれる。   In this image data correction processing, tone curve correction is performed according to a tone curve (tone curve) indicating a tone relationship between input image data (original image data) and output image data (corrected image data). , Red (R), green (G), blue (B) saturation correction to set the degree of emphasis, memory that is close to the ideal color that people feel beautiful when they see it, that is, memory Color correction processing such as color correction is included.

上述のような画像データの補正処理を、コンピュータに接続されていないスタンドアロン型印刷装置において行う場合の従来の一例として、印刷装置に備えられている演算処理装置により実行される画像データ補正用プログラム等のソフトウェアによって、個々の補正変換処理を逐次処理する手法が挙げられるが、そのような処理は負荷が大きく、スタンドアロン型印刷装置に通常備えられている安価な演算処理装置のハードウェア環境では、パフォーマンス低下の一因となっていた。   As an example of the conventional case where the above-described image data correction processing is performed in a stand-alone printing apparatus not connected to a computer, an image data correction program executed by an arithmetic processing apparatus provided in the printing apparatus, etc. However, it is difficult to perform such processing in a hardware environment of an inexpensive arithmetic processing unit normally provided in a stand-alone printer. It contributed to the decline.

この問題を解決するための従来の一手法として、補正処理を行うための補正パラメータに基づいて三次元ルックアップテーブル(3D−LUT)を作成してRAM、EEPROM、HDD(Hard Disk Drive)等の記憶装置に保存しておき、演算処理装置、ASIC(Application Specific Integrated Circuit(特定用途向け集積回路))等の処理装置(ハードウェア)が当該記憶装置にアクセスすることによってその三次元ルックアップテーブルを用いた補間演算を実行して補正処理を行う、ハードウェアによる補正処理手法が挙げられる。   As a conventional method for solving this problem, a three-dimensional lookup table (3D-LUT) is created based on correction parameters for performing correction processing, such as RAM, EEPROM, HDD (Hard Disk Drive), etc. The three-dimensional lookup table is stored in a storage device, and a processing device (hardware) such as an arithmetic processing device or an ASIC (Application Specific Integrated Circuit) accesses the storage device. There is a hardware correction processing method that performs the correction processing by executing the interpolation calculation used.

このハードウェアによる画像データの補正処理手法は、演算処理装置により実行されるソフトウェアによる逐次補正処理を介在させない点に特徴があり、多くの場合、ソフトウェアを用いた逐次補正処理手法と比較して処理速度の高速化を図ることができる。   This hardware-based image data correction processing method is characterized in that it does not involve software-based sequential correction processing executed by an arithmetic processing unit. In many cases, processing is performed in comparison with software-based sequential correction processing methods. The speed can be increased.

しかしながら、上述のような演算処理装置、ASIC等のハードウェアによる画像データの補正処理手法は、三次元ルックアップテーブルを用いた補間演算により画像データの補正処理を行うため、参照する三次元ルックアップテーブルのグリッド(格子点)間で大きく色が変化するような補正パラメータが設定された場合には、補間演算により求められる点の位置のわずかな変化によって出力画像データの色が大きく変化し、期待通りの結果が得られない場合があるという問題が存在する。   However, the correction processing method of image data by hardware such as the arithmetic processing unit and ASIC described above performs correction processing of image data by interpolation calculation using a three-dimensional lookup table. If a correction parameter is set so that the color changes greatly between the grids (lattice points) in the table, the color of the output image data will change greatly due to a slight change in the position of the point obtained by the interpolation calculation. There is a problem that street results may not be obtained.

そこで、本発明は、処理速度の高速化を図りつつ、意図した通りの補正結果が得られる画像処理装置及び画像処理方法を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus and an image processing method capable of obtaining a correction result as intended while increasing the processing speed.

本発明に係る画像処理装置の一態様によれば、入力画像データを構成する入力三原色データに対する出力三原色データが画像補正処理設定に応じた補正パラメータとして各格子点上に書き込まれた三次元ルックアップテーブルが保存された第1の記憶装置と、入力画像データの逐次補正処理を行うための補正処理プログラムが格納されている第2の記憶装置と、上記第1の記憶装置にアクセスして上記三次元ルックアップテーブルを用いた演算処理を行うことにより入力画像データに対する出力画像データを得る第1の画像データ補正処理、及び、上記第2の記憶装置から上記補正処理プログラムを読み込んで実行することにより入力画像データの逐次補正処理を行って出力画像データを得る第2の画像データ補正処理を、上記補正パラメータの値に応じて選択的に実行する処理装置と、を備えている画像処理装置が提供される。   According to an aspect of the image processing apparatus of the present invention, a three-dimensional lookup in which output three primary color data for input three primary color data constituting input image data is written on each grid point as a correction parameter according to the image correction processing setting. A first storage device storing a table, a second storage device storing a correction processing program for performing a sequential correction process of input image data, and accessing the first storage device to access the tertiary First image data correction processing for obtaining output image data for input image data by performing arithmetic processing using an original lookup table, and reading and executing the correction processing program from the second storage device The second image data correction process for obtaining the output image data by performing the sequential correction process of the input image data is the above correction parameter. The image processing apparatus is provided which comprises a a processor for executing selectively according to the value, a.

本発明は、上記構成により、処理速度の高速化を図りつつ、意図した通りの補正結果が得られる画像処理装置を提供することができる。   The present invention can provide an image processing apparatus with the above-described configuration that can achieve a correction result as intended while increasing the processing speed.

本発明に係る画像処理装置の上記一態様において、上記処理装置は、上記補正パラメータの値が所定範囲内に含まれるか否かの判断結果に基づいて、上記第1又は第2の画像データ補正処理を選択的に実行するものとするとよい。   In the one aspect of the image processing apparatus according to the present invention, the processing apparatus corrects the first or second image data correction based on a determination result of whether or not the value of the correction parameter is included in a predetermined range. The process may be selectively executed.

上記補正パラメータの値が所定範囲内に含まれるか否かの判断は、上記補正パラメータにより決定される入力画像データの値と出力画像データの値との差の絶対値が所定範囲内の値であるか否かを各補正パラメータごとに識別することによって行われるものとするとよい。   Whether or not the value of the correction parameter is included in the predetermined range is determined based on whether the absolute value of the difference between the input image data value and the output image data value determined by the correction parameter is within the predetermined range. It may be performed by identifying whether each correction parameter is present or not.

換言すると、上記補正パラメータの値が所定範囲内に含まれるか否かの判断は、入力画像データと出力画像データとの関係を示す補正曲線の変化が所定の想定範囲を超えた急峻なものでないか否かを識別することによって行われるものとするとよい。   In other words, the determination as to whether or not the value of the correction parameter falls within the predetermined range is not a steep change in the correction curve indicating the relationship between the input image data and the output image data that exceeds the predetermined assumed range. It may be performed by identifying whether or not.

上記処理装置は、上記判断の結果、上記補正パラメータの値が所定範囲内に含まれる場合は、上記第1の画像データ補正処理を実行し、上記補正パラメータの値が所定範囲内に含まれない場合は、上記第2の画像データ補正処理を実行するものとするとよい。   If the value of the correction parameter is included in the predetermined range as a result of the determination, the processing device executes the first image data correction process, and the value of the correction parameter is not included in the predetermined range. In such a case, the second image data correction process may be executed.

上記補正パラメータの値が所定範囲内に含まれるか否かの判断は、印刷ページデータファイルの印刷ライン位置ごとの画像データファイルの検索によって印刷ページデータファイルに含まれる各画像データファイルがそれぞれ最初に発見されたときに行われるものとするとよい。   Whether or not the value of the correction parameter is included in the predetermined range is determined based on the search of the image data file for each print line position of the print page data file. It should be done when discovered.

上記第2の画像データ補正処理は、トーンカーブ補正、彩度補正及び記憶色補正の一部又は全部を含む画像データ補正処理であり、上記第1の画像データ補正処理は、上記第2の画像データ補正処理と同等の補正結果を得るべく行われる演算処理による画像データ補正処理であるものとするとよい。   The second image data correction process is an image data correction process including part or all of tone curve correction, saturation correction and memory color correction, and the first image data correction process is the second image data correction process. The image data correction process may be an arithmetic process performed to obtain a correction result equivalent to the data correction process.

画像データ補正処理対象となる画像データが含まれる画像データファイルがExif情報を含むExif形式ファイルである場合、上記補正パラメータは、上記Exif情報を考慮して決定されたものとするとよい。   When the image data file including the image data to be subjected to the image data correction processing is an Exif format file including Exif information, the correction parameter may be determined in consideration of the Exif information.

画像データ補正処理対象となる画像データが含まれる画像データファイルが印刷制御情報を含む画像データファイルである場合、上記補正パラメータは、上記印刷制御情報を考慮して決定されたものとするとよい。   When the image data file including the image data to be subjected to image data correction processing is an image data file including print control information, the correction parameter may be determined in consideration of the print control information.

本発明に係る画像処理方法の一態様によれば、入力画像データを構成する入力三原色データに対する出力三原色データが画像補正処理設定に応じた補正パラメータとして各格子点上に書き込まれた三次元ルックアップテーブルが保存された第1の記憶装置、及び、入力画像データの逐次補正処理を行うための補正処理プログラムが格納されている第2の記憶装置を準備する第1の過程と、上記第1の記憶装置にアクセスして上記三次元ルックアップテーブルを用いた演算処理を行うことにより入力画像データに対する出力画像データを得る第1の画像データ補正処理、及び、上記第2の記憶装置から上記補正処理プログラムを読み込んで実行することにより入力画像データの逐次補正処理を行って出力画像データを得る第2の画像データ補正処理を、上記補正パラメータの値に応じて処理装置により選択的に実行する第2の過程と、を備えている画像処理方法が提供される。   According to one aspect of the image processing method of the present invention, a three-dimensional lookup in which output three primary color data for input three primary color data constituting input image data is written on each grid point as a correction parameter according to the image correction processing setting. A first step of preparing a first storage device storing a table and a second storage device storing a correction processing program for performing a sequential correction process of input image data; A first image data correction process for obtaining output image data for input image data by accessing the storage device and performing arithmetic processing using the three-dimensional lookup table, and the correction process from the second storage device Second image data correction for obtaining output image data by performing sequential correction processing of input image data by reading and executing a program The management, image processing methods and a second step of selectively executed by the processor in accordance with the value of the correction parameter is provided.

本発明は、上記構成により、処理速度の高速化を図りつつ、意図した通りの補正結果が得られる画像処理方法を提供することができる。   The present invention can provide an image processing method capable of obtaining a correction result as intended while increasing the processing speed with the above configuration.

本発明に係る画像処理方法の上記一態様において、上記第1又は第2の画像データ補正処理を選択的に実行する上記第2の過程は、上記補正パラメータの値が所定範囲内に含まれるか否かの判断結果に基づいて行われるものとするとよい。   In the one aspect of the image processing method according to the present invention, in the second step of selectively executing the first or second image data correction processing, is the correction parameter value included in a predetermined range? It may be performed based on the determination result of whether or not.

上記補正パラメータの値が所定範囲内に含まれるか否かの判断は、上記補正パラメータにより決定される入力画像データの値と出力画像データの値との差の絶対値が所定範囲内の値であるか否かを各補正パラメータごとに識別することによって行われるものとするとよい。   Whether or not the value of the correction parameter is included in the predetermined range is determined based on whether the absolute value of the difference between the input image data value and the output image data value determined by the correction parameter is within the predetermined range. It may be performed by identifying whether each correction parameter is present or not.

上記補正パラメータの値が所定範囲内に含まれるか否かの判断は、入力画像データと出力画像データとの関係を示す補正曲線の変化が所定の想定範囲を超えた急峻なものでないか否かを識別することによって行われるものとするとよい。   The determination as to whether or not the value of the correction parameter is included in the predetermined range is whether or not the change in the correction curve indicating the relationship between the input image data and the output image data is not steep beyond a predetermined assumed range. It may be performed by identifying.

上記第1又は第2の画像データ補正処理を選択的に実行する上記第2の過程は、上記判断の結果、上記補正パラメータの値が所定範囲内に含まれる場合は、上記第1の画像データ補正処理を実行し、上記補正パラメータの値が所定範囲内に含まれない場合は、上記第2の画像データ補正処理を実行するものとするとよい。   In the second step of selectively executing the first or second image data correction process, if the value of the correction parameter is included within a predetermined range as a result of the determination, the first image data When the correction process is executed and the value of the correction parameter is not included in the predetermined range, the second image data correction process may be executed.

上記補正パラメータの値が所定範囲内に含まれるか否かの判断は、印刷ページデータファイルの印刷ライン位置ごとの画像データファイルの検索によって印刷ページデータファイルに含まれる各画像データファイルがそれぞれ最初に発見されたときに行われるものとするとよい。   Whether or not the value of the correction parameter is included in the predetermined range is determined based on the search of the image data file for each print line position of the print page data file. It should be done when discovered.

上記第2の画像データ補正処理は、トーンカーブ補正、彩度補正及び記憶色補正の一部又は全部を含む画像データ補正処理であり、上記第1の画像データ補正処理は、上記第2の画像データ補正処理と同等の補正結果を得るべく行われる演算処理による画像データ補正処理であるものとするとよい。   The second image data correction process is an image data correction process including part or all of tone curve correction, saturation correction and memory color correction, and the first image data correction process is the second image data correction process. The image data correction process may be an arithmetic process performed to obtain a correction result equivalent to the data correction process.

以下、本発明に係る画像処理装置及び画像処理方法の実施の一形態について、図面を参照しながら詳細に説明する。   Hereinafter, an embodiment of an image processing apparatus and an image processing method according to the present invention will be described in detail with reference to the drawings.

図1は、三次元ルックアップテーブル(3D−LUT)を用いた補間演算による補正処理の原理を模式的に示した説明図である。   FIG. 1 is an explanatory diagram schematically illustrating the principle of correction processing by interpolation using a three-dimensional lookup table (3D-LUT).

三次元ルックアップテーブルとしては、17×17×17グリッド(格子点)等、種々の大きさのものがあるが、図1の例では、9×9×9グリッドの三次元ルックアップテーブルを示している。   As the three-dimensional lookup table, there are various sizes such as 17 × 17 × 17 grid (grid points). In the example of FIG. 1, a three-dimensional lookup table of 9 × 9 × 9 grid is shown. ing.

この三次元ルックアップテーブルの各格子点上には、入力画像データを構成する入力RGBデータ(入力三原色データ)に対する出力R’G’B’データ(出力三原色データ)が画像補正処理設定に応じた補正パラメータとして書き込まれている。   On each grid point of this three-dimensional lookup table, output R′G′B ′ data (output three primary color data) corresponding to input RGB data (input three primary color data) constituting the input image data corresponds to the image correction processing setting. It is written as a correction parameter.

このとき、格子点以外の点、例えば、格子点P0乃至P7により画定される立方体中に含まれる点Oの補間値は、以下の方程式により求められる。

Figure 2007266920
ここで、Vi(i=0,1,...,6,7)は、格子点Piを頂点とする直方体の体積であるものとする。また、V7−i(i=0,1,...,6,7)は、図1に示されるように、格子点Piを頂点とする直方体に対して点Oに関し対角に位置する直方体の体積であるものとする。さらに、VTは、上記方程式に付記されている通り、各立方体V0乃至V7の体積の総和である。 At this time, an interpolation value of a point O included in a point other than the lattice point, for example, a cube defined by the lattice points P0 to P7 is obtained by the following equation.
Figure 2007266920
Here, Vi (i = 0, 1,..., 6, 7) is assumed to be a volume of a rectangular parallelepiped having a lattice point Pi as a vertex. V7-i (i = 0, 1,..., 6, 7) is a rectangular parallelepiped located diagonally with respect to the point O with respect to a rectangular parallelepiped having a lattice point Pi as a vertex, as shown in FIG. It is assumed that the volume of Further, VT is the sum of the volumes of the cubes V0 to V7, as described in the above equation.

上記方程式からも明らかであるが、この補間演算は、以下のように行われる。   As is apparent from the above equation, this interpolation operation is performed as follows.

先ず、八つの格子点P0乃至P7により画定される立方体VTは、その内部に含まれる点Oを通過し且つR軸、G軸、B軸にそれぞれ直交する三つの平面によって八つの直方体V0,V1,V2,V3,V4,V5,V6,V7に分割される。   First, the cube VT defined by the eight lattice points P0 to P7 passes through the point O included therein and is divided into eight rectangular parallelepipeds V0 and V1 by three planes orthogonal to the R axis, the G axis, and the B axis, respectively. , V2, V3, V4, V5, V6, V7.

そこで、点Oの補間値は、格子点P0,P1,P2,P3,P4,P5,P6,P7の各補正パラメータを、各格子点P0,P1,P2,P3,P4,P5,P6,P7を頂点とする直方体に対して点Oに関し対角に位置する直方体V7,V6,V5,V4,V3,V2,V1,V0の体積に応じた比率で加算し、その加算値を全体積VTで除算することにより求めることができる。   Therefore, the interpolation value of the point O is the correction parameters of the lattice points P0, P1, P2, P3, P4, P5, P6, P7, and the lattice points P0, P1, P2, P3, P4, P5, P6, P7. Are added at a ratio corresponding to the volume of the rectangular parallelepipeds V7, V6, V5, V4, V3, V2, V1, and V0 located diagonally with respect to the point O, and the added value is the total volume VT. It can be obtained by dividing.

以上の三次元ルックアップテーブルを用いた補間演算を含む演算処理による補正処理は、各格子点に対応付けられた補正パラメータにより構成される三次元ルックアップテーブルを予め作成してRAM、EEPROM、HDD等の記憶装置に保存しておき、演算処理装置、ASIC等の処理装置(ハードウェア)が当該記憶装置にアクセスすることによってその三次元ルックアップテーブルを用いた上記補間演算を含む演算処理を実行して補正処理を行うものである。   In the correction process by the calculation process including the interpolation process using the above three-dimensional lookup table, a three-dimensional lookup table composed of correction parameters associated with each lattice point is created in advance, and RAM, EEPROM, HDD The processing unit (hardware) such as an arithmetic processing unit or an ASIC accesses the storage unit to execute arithmetic processing including the above interpolation calculation using the three-dimensional lookup table. Thus, correction processing is performed.

従って、この三次元ルックアップテーブルを用いた補間演算を含む演算処理による補正処理は、処理装置により実行されるソフトウェアによる逐次補正処理を介在させずに、三次元ルックアップテーブルが保存されている記憶装置に処理装置がアクセスすることにより実行されるものであり、換言すると、ハードウェアによる画像データの補正処理であるということができる。   Therefore, the correction processing by the arithmetic processing including the interpolation calculation using the three-dimensional lookup table is a memory in which the three-dimensional lookup table is stored without interposing the successive correction processing by software executed by the processing device. The processing is executed when the processing device accesses the device, in other words, it can be said to be image data correction processing by hardware.

結果として、多くの場合、ソフトウェアを用いた逐次補正処理手法と比較して、高速な補正処理を実現することが可能である。   As a result, in many cases, it is possible to realize a high-speed correction process as compared with a sequential correction process method using software.

但し、ハードウェアによる画像データの補正処理手法は、前述のように、参照する三次元ルックアップテーブルの格子点間で大きく色が変化するような補正パラメータが設定された場合には、補間演算により求められる点Oの位置のわずかな変化によって出力画像データの色が大きく変化し、期待通りの結果が得られない場合がある。   However, as described above, the correction processing method of image data by hardware is based on an interpolation calculation when a correction parameter is set so that the color changes greatly between the grid points of the referenced three-dimensional lookup table. The color of the output image data may change greatly due to a slight change in the position of the required point O, and an expected result may not be obtained.

そこで、本発明に係る画像処理装置及び画像処理方法は、ハードウェアによる補正処理と、ソフトウェアによる逐次補正処理とを所定の基準に基づいて組み合わせて画像データの補正処理を実行することにより、処理速度の高速化を図りつつ、意図した通りの補正結果が得られるようにする。   Therefore, the image processing apparatus and the image processing method according to the present invention execute the correction processing of image data by combining the correction processing by hardware and the sequential correction processing by software based on a predetermined standard, thereby processing speed. As a result, the intended correction result is obtained.

図2は、本発明に係る画像処理装置及び画像処理方法による画像補正処理手順を示すフローチャートであり、図3は、本発明に係る画像処理装置の構成を示すブロック図である。   FIG. 2 is a flowchart showing an image correction processing procedure by the image processing apparatus and the image processing method according to the present invention, and FIG. 3 is a block diagram showing a configuration of the image processing apparatus according to the present invention.

最初に、印刷ライン位置Nの初期化を行い、N=1に設定する(ステップS1)。   First, the print line position N is initialized and N = 1 is set (step S1).

そして、印刷対象となる印刷ページデータファイルに含まれている画像データファイル、即ち、印刷を実行する前提としての画像補正処理対象となる画像データファイルが、印刷ページデータファイルの印刷ライン位置N(N位置)に存在するか否かを検索する(ステップS2)。   Then, the image data file included in the print page data file to be printed, that is, the image data file to be subjected to image correction processing on the premise of executing printing, is the print line position N (N It is searched whether it exists in (position) (step S2).

印刷ライン位置N(N位置)の画像データファイルを検索した結果、該当する画像データファイルが見つかったら、当該画像データファイルの解凍を行う(ステップS3)。   As a result of searching the image data file at the print line position N (N position), if the corresponding image data file is found, the image data file is decompressed (step S3).

この画像データファイルの解凍処理手順については、詳細に後述するが、画像データファイルの解凍処理に際しては、先ず、演算処理装置(CPU)、ASIC等の処理装置(ハードウェア)10が入力画像データのサンプリング及び統計値計算を解凍処理プログラム(ソフトウェア)の一部機能に基づいて行い、その結果に応じて画像データの補正処理のための補正パラメータが三次元ルックアップテーブルの各格子点に対応付けられて決定され、それらの補正パラメータにより構成される三次元ルックアップテーブルが予め作成される。作成された三次元ルックアップテーブルは、RAM、EEPROM、HDD等の第1の記憶装置11に保存される。尚、画像データの補正処理プログラムは、ROM、RAM、EEPROM、HDD等の第2の記憶装置12に格納されている。ここで、第1の記憶装置11と第2の記憶装置12とは、別個の記憶装置であってもよいし、同一即ち単一の記憶装置であってもよい。   The image data file decompression processing procedure will be described in detail later. In the image data file decompression processing, first, a processing device (hardware) 10 such as an arithmetic processing unit (CPU) or an ASIC is used for the input image data. Sampling and statistical value calculation are performed based on a partial function of the decompression processing program (software), and correction parameters for image data correction processing are associated with each grid point of the three-dimensional lookup table according to the result. A three-dimensional look-up table that is determined and configured by these correction parameters is created in advance. The created three-dimensional lookup table is stored in the first storage device 11 such as RAM, EEPROM, HDD or the like. The image data correction processing program is stored in the second storage device 12 such as a ROM, RAM, EEPROM, or HDD. Here, the first storage device 11 and the second storage device 12 may be separate storage devices or the same, that is, a single storage device.

各格子点に対応する総ての補正パラメータが決定されて三次元ルックアップテーブルが作成されると、処理装置10は、それらの補正パラメータが所定範囲内に含まれるか又は所定範囲外のものであるかを判断する(ステップS4)。   When all the correction parameters corresponding to each grid point are determined and the three-dimensional lookup table is created, the processing apparatus 10 includes those correction parameters that are included in the predetermined range or are outside the predetermined range. It is determined whether it exists (step S4).

補正パラメータが所定範囲内に含まれるか否かの具体的な判断方法の一例としては、補正パラメータにより決定される入力画像データの値と出力画像データの値との差の絶対値が所定範囲内の値であるか否かを各補正パラメータごとに識別することにより、判断を行う。   As an example of a specific method for determining whether or not a correction parameter is included in a predetermined range, an absolute value of a difference between a value of input image data and a value of output image data determined by the correction parameter is within a predetermined range. It is determined by identifying for each correction parameter whether or not it is a value of.

換言すると、入力画像データと出力画像データとの関係を示す補正曲線の変化が、所定の想定範囲を超えた急峻なものでないか否かについて、ここで判断を行う。補正曲線の変化が所定の想定範囲を超えた急峻なものであるということは、作成された三次元ルックアップテーブルの格子点間で大きく色が変化するような補正パラメータが設定されているということを意味し、従って、ハードウェアによる画像データの補正処理において補間演算により求められる点Oの位置のわずかな変化によって出力画像データの色が大きく変化して、ソフトウェアによる逐次補正処理と同等の結果が得られない可能性が高いということを意味するからである。   In other words, a determination is made here as to whether or not the change in the correction curve indicating the relationship between the input image data and the output image data is not steep beyond a predetermined assumed range. The fact that the change in the correction curve is steep beyond the predetermined assumption range means that the correction parameter is set so that the color changes greatly between the grid points of the created 3D lookup table. Therefore, the color of the output image data changes greatly due to a slight change in the position of the point O obtained by the interpolation calculation in the correction processing of the image data by hardware, and the result equivalent to the sequential correction processing by software is obtained. This is because it means that there is a high possibility that it cannot be obtained.

識別の結果、各補正パラメータが所定範囲内に含まれる場合には、ハードウェアによる画像データの補正処理を行ってもソフトウェアによる逐次補正処理と同等の結果が得られると考えられるので、ハードウェアによる画像データの補正処理を実行する(ステップS5)。   As a result of identification, if each correction parameter is included in a predetermined range, it is considered that even if image data correction processing by hardware is performed, a result equivalent to sequential correction processing by software can be obtained. Image data correction processing is executed (step S5).

即ち、処理装置10が第1の記憶装置11にアクセスすることにより、第1の記憶装置11に保存されている三次元ルックアップテーブル(3D−LUT)を用いて入力画像データの各点について前述の補間演算を含む演算処理を行うことにより、入力画像データに対する画像補正処理を行い、印刷画像データを構成することとなる出力画像データを順次出力していく。   That is, when the processing device 10 accesses the first storage device 11, each point of the input image data is described above using a three-dimensional lookup table (3D-LUT) stored in the first storage device 11. By performing the arithmetic processing including the interpolation calculation, the image correction processing is performed on the input image data, and the output image data constituting the print image data is sequentially output.

一方、識別の結果、各補正パラメータの少なくとも一部が所定範囲外のものである場合には、ハードウェアによる画像データの補正処理を行うと、ソフトウェアによる逐次補正処理と同等の結果が得られない可能性があるので、ソフトウェアによる画像データの逐次補正処理によって、入力画像データに対する画像補正処理を行い、印刷画像データを構成することとなる出力画像データを順次出力していく。   On the other hand, if at least a part of each correction parameter is outside the predetermined range as a result of identification, if the correction processing of the image data by hardware is performed, a result equivalent to the sequential correction processing by software cannot be obtained. Since there is a possibility, the image correction process is performed on the input image data by the sequential correction process of the image data by software, and the output image data constituting the print image data is sequentially output.

ソフトウェアによる画像データの逐次補正処理は、第2の記憶装置12に保存されている補正処理プログラムを処理装置10が読み込んで実行することにより行われる。   The sequential correction processing of image data by software is performed by the processing device 10 reading and executing a correction processing program stored in the second storage device 12.

ここで、ソフトウェアによる画像データの逐次補正処理として想定している補正処理の具体例としては、入力画像データと出力画像データとの間のトーンの関係を示すトーンカーブ(トーン曲線)に従って行われるトーンカーブ補正(ステップS6)、赤(R)、緑(G)、青(B)の各色の強調の度合いを設定する彩度補正(ステップS7)、人が見たときに綺麗だと感じる理想的な色、即ち、記憶色に近づける記憶色補正(ステップS8)等の色補正処理が含まれる。   Here, as a specific example of correction processing assumed as sequential correction processing of image data by software, a tone performed according to a tone curve (tone curve) indicating a tone relationship between input image data and output image data Curve correction (step S6), saturation correction (step S7) that sets the degree of emphasis of each color of red (R), green (G), and blue (B), ideal to feel beautiful when people see Color correction processing such as a memory color correction (step S8) for bringing the color close to the memory color.

尚、補間演算を含む演算処理を用いたハードウェアによる画像データの補正処理(ステップS5)は、トーンカーブ補正、彩度補正、記憶色補正等の色補正処理を、補間演算を含む演算処理により一括して行うものである。   Note that the correction processing (step S5) of image data by hardware using arithmetic processing including interpolation calculation is performed by color correction processing such as tone curve correction, saturation correction, and memory color correction by arithmetic processing including interpolation calculation. This is done all at once.

上述のように、補正パラメータが所定範囲内に含まれるか否かに応じて、ハードウェア又はソフトウェアによる画像データの補正処理を実行した後、予め決定されている印刷設定に基づき、印刷画像データとしての出力画像データに対し、画像サイズを実際の印刷の際のサイズに変換するサイズ変換処理(ステップS9)、設定されたレイアウトに従って画像を配置するレイアウト処理(ステップS10)、画像の階調を印刷装置が対応可能な段階数の階調に変換するハーフトーン処理(ステップS11)を順次実行して、実際の印刷に用いることが可能な最終的な印刷画像データを出力し、印刷を実行する(ステップS12)。   As described above, after executing correction processing of image data by hardware or software depending on whether the correction parameter is included in a predetermined range, as print image data based on a predetermined print setting Conversion processing (step S9) for converting the image size into the actual printing size for the output image data (step S9), layout processing for arranging the image according to the set layout (step S10), and printing the gradation of the image Halftone processing (step S11) for converting the gradation into the number of steps that can be handled by the apparatus is sequentially executed to output final print image data that can be used for actual printing, and printing is performed ( Step S12).

その後、画像データファイルを検索する対象となる印刷ページデータファイルの印刷ライン位置Nの値をインクリメントして、N=N+1に設定し(ステップS13)、インクリメント後の印刷ライン位置Nの値が印刷予定のページ長を超えていなければ(ステップS14)、上記ステップS2に戻って、それ以後の動作手順を同様に繰り返す。   Thereafter, the value of the print line position N of the print page data file to be searched for the image data file is incremented and set to N = N + 1 (step S13), and the value of the print line position N after the increment is scheduled to be printed. If the page length is not exceeded (step S14), the process returns to step S2 and the subsequent operation procedure is similarly repeated.

ここで、印刷ライン位置N=2以後の各印刷ライン位置Nの画像データファイルについてステップS2以後の各ステップを繰り返す際、補正処理対象となる画像データファイルに関し、補正パラメータが所定範囲内に含まれるか否かについての判断(ステップS4)が既に行われている場合には、その判断を再度行う必要はなく、既に行われた判断結果に応じて選択された補正処理の実行に動作手順を進めてよい。   Here, when the steps after step S2 are repeated for the image data file at each print line position N after the print line position N = 2, the correction parameter is included in a predetermined range for the image data file to be corrected. If the determination about whether or not (step S4) has already been made, it is not necessary to make the determination again, and the operation procedure is advanced to the execution of the correction process selected according to the result of the determination already made. It's okay.

印刷ページのレイアウトによっては、ページ上部に余白部分や文章部分が配置され、画像が印刷ライン位置N=2以後の印刷ライン位置から配置されている場合や、1ページに複数の画像が含まれている場合もある。   Depending on the layout of the print page, a margin part or a text part is arranged at the top of the page, and the image is arranged from the print line position after the print line position N = 2, or one page includes a plurality of images. There may be.

従って、印刷ライン位置N=2以後の各印刷ライン位置Nの検索において見つかった画像データファイルであっても、補正パラメータが所定範囲内に含まれるか否かについての判断(ステップS4)が既に行われているとは限らないが、その判断は、一つの画像データファイルについて一度行えば十分である。   Accordingly, even if the image data file is found in the search for each print line position N after the print line position N = 2, the determination as to whether the correction parameter is included within the predetermined range (step S4) has already been made. However, it is sufficient to make a determination once for one image data file.

但し、補正パラメータが所定範囲内に含まれるか否かについての判断(ステップS4)が既に行われているかどうかを確認せずに、各印刷ライン位置Nごとにその判断を行うようにしてもよい。   However, the determination may be made for each printing line position N without confirming whether the correction parameter is included in the predetermined range (step S4). .

ところで、画像データの補正処理には、通常、上述のようないくつかの種類の補正処理が含まれ、実行される補正処理の内容によっては、ハードウェアによる三次元ルックアップテーブル及び補間演算を用いた補正処理よりもソフトウェアを用いた逐次補正処理の方が高速に処理できる場合があり、可能な限りハードウェアによる補正処理手法を用いるようにすることが常に処理速度の高速化に繋がるとは限らない。   By the way, the image data correction processing usually includes several types of correction processing as described above, and depending on the content of the correction processing to be executed, a hardware three-dimensional lookup table and interpolation calculation are used. In some cases, sequential correction processing using software can be performed at a higher speed than correction processing, and using the correction processing method using hardware as much as possible does not always lead to higher processing speed. Absent.

上述した本発明に係る画像処理装置及び画像処理方法の一態様は、処理速度の高速化も考慮に入れる一方、意図した通りの補正結果が得られるようにすることを主要な判断基準として、ハードウェアによる三次元ルックアップテーブル及び補間演算を用いた補正処理と、ソフトウェアによる逐次補正処理とを選択的に用いるようにしたものである。   One aspect of the image processing apparatus and the image processing method according to the present invention described above is based on the main criterion of making it possible to obtain a correction result as intended while taking into account the increase in processing speed. A correction process using a three-dimensional look-up table and an interpolation operation by wear and a sequential correction process by software are selectively used.

しかし、意図した通りの補正結果が得られるようにするだけではなく、より多くの場合に処理速度の高速化を図るためには、さらに、以下の手順を追加するとよい。   However, in order to increase the processing speed in more cases in addition to making it possible to obtain a correction result as intended, the following procedure may be added.

上記ステップS4において、各補正パラメータが所定範囲内に含まれると判断された場合に、直ちにハードウェアによる三次元ルックアップテーブル及び補間演算を用いた補正処理を実行するのではなく、より多くの場合に処理速度の高速化を図るために、ハードウェアによる補正処理とソフトウェアによる逐次補正処理とのうちいずれを選択すべきかを、所定の基準に基づいてさらに判断する。   When it is determined in step S4 that each correction parameter is included in the predetermined range, the correction process using the three-dimensional lookup table and the interpolation calculation by hardware is not performed immediately, but in many cases. In order to increase the processing speed, it is further determined based on a predetermined criterion which one of the correction process by hardware and the sequential correction process by software should be selected.

即ち、上記ステップS4において、各補正パラメータが所定範囲内に含まれると判断された場合、処理装置10は、作成された三次元ルックアップテーブルを構成する補正パラメータが高速な補正処理の補正パラメータであるか否かをさらに判断する。   That is, when it is determined in step S4 that each correction parameter is included in the predetermined range, the processing device 10 determines that the correction parameter constituting the created three-dimensional lookup table is a correction parameter for high-speed correction processing. It is further judged whether or not there is.

ここで想定している画像データの補正処理の具体例には、前述のように、トーンカーブ補正、彩度補正、記憶色補正の三つの色補正処理が含まれ得る。   As described above, the specific example of the image data correction process assumed here may include three color correction processes of tone curve correction, saturation correction, and memory color correction.

実行しようとする画像データの補正処理にトーンカーブ補正又は彩度補正等の単純な色補正処理しか含まれない場合は、ハードウェアによる三次元ルックアップテーブル及び補間演算を用いた補正処理よりも、ソフトウェアを用いた逐次補正処理の方が、画像データの補正処理を高速に実行することができる。   When the correction processing of the image data to be executed includes only simple color correction processing such as tone curve correction or saturation correction, than the correction processing using a three-dimensional lookup table and interpolation calculation by hardware, The sequential correction process using software can execute the correction process of the image data at a higher speed.

一方、実行しようとする画像データの補正処理に記憶色補正のような複雑な色補正処理が含まれる場合は、ソフトウェアを用いた逐次補正処理よりも、ハードウェアによる三次元ルックアップテーブル及び補間演算を用いた補正処理の方が、画像データの補正処理を高速に実行することができる。   On the other hand, when the image data correction processing to be executed includes complicated color correction processing such as memory color correction, the hardware three-dimensional lookup table and interpolation calculation are performed rather than sequential correction processing using software. The correction process using the image data can be performed at a higher speed.

そこで、本発明に係る画像処理装置及び画像処理方法の一態様においては、実行しようとする画像データの補正処理に記憶色補正が含まれない場合は、その補正処理に対応する補正パラメータを高速な補正処理の補正パラメータに該当するものとして識別し、実行しようとする画像データの補正処理に記憶色補正が含まれる場合は、その補正処理に対応する補正パラメータを高速な補正処理の補正パラメータに該当しないものとして識別することとする。   Therefore, in one aspect of the image processing apparatus and the image processing method according to the present invention, when the memory color correction is not included in the correction processing of the image data to be executed, the correction parameter corresponding to the correction processing is set at high speed. When memory color correction is included in the correction process of the image data that is identified as corresponding to the correction parameter of the correction process and is to be executed, the correction parameter corresponding to the correction process corresponds to the correction parameter of the high-speed correction process It shall be identified as not.

そして、その識別結果に応じて、最適な補正処理手法を選択的に用いて画像データの補正処理を実行することとする。   Then, according to the identification result, image data correction processing is executed by selectively using an optimal correction processing method.

実行しようとする画像データの補正処理に記憶色補正が含まれるか否かを識別するための一手法としては、補正処理対象となる画像データの内容を調べる手法が挙げられる。   As a method for identifying whether or not the memory color correction is included in the correction processing of the image data to be executed, there is a method of examining the contents of the image data to be corrected.

画像データに対して記憶色補正が必要となるのは、通常、その画像データが風景写真の画像データである場合であり、その風景写真に含まれる空の青色又は草木の緑色に対して記憶色補正が行われるのが一般的である。   The memory color correction is required for the image data, usually when the image data is the image data of a landscape photo, and the memory color for the sky blue or the green color of the vegetation included in the landscape photo. In general, correction is performed.

上記ステップS3における画像データファイルの解凍処理に際しては、入力画像データのサンプリング及び統計値計算が行われるので、そのサンプリング及び統計値計算の結果に基づき、先ず、入力画像データの画像中に人物が存在するか否か、具体的には、人物の顔が存在するか否かを識別する。   When the image data file is decompressed in step S3, input image data is sampled and statistical values are calculated. Based on the sampling and statistical value calculation results, first, there is a person in the input image data image. Specifically, it is identified whether or not a human face exists.

入力画像データの画像中に人物が存在すると識別した場合、その画像の主要被写体は、通常、その人物であるので、一般に風景写真に対して行われる記憶色補正は不要であると判断する。   When it is identified that a person is present in the image of the input image data, the main subject of the image is usually the person, so that it is determined that the memory color correction generally performed on the landscape photograph is unnecessary.

即ち、この場合には、実行しようとする画像データの補正処理に記憶色補正は含まれないと判断し、その補正処理に対応する補正パラメータは、高速な補正処理の補正パラメータに該当するものとして識別する。   That is, in this case, it is determined that the memory color correction is not included in the correction process of the image data to be executed, and the correction parameter corresponding to the correction process corresponds to the correction parameter of the high-speed correction process. Identify.

一方、入力画像データの画像中に人物が存在しないと識別した場合、その画像は風景写真である可能性があると判断し、さらに、その画像中に空の青色又は草木の緑色が存在するか否かを識別する。   On the other hand, if it is determined that there is no person in the input image data image, it is determined that the image may be a landscape photograph, and whether there is a blue sky or green in the image. Identify whether or not.

入力画像データの画像中に空の青色又は草木の緑色が存在しないと識別した場合、実行しようとする画像データの補正処理には記憶色補正が含まれないと判断し、その補正処理に対応する補正パラメータは、高速な補正処理の補正パラメータに該当するものとして識別する。   If it is determined that there is no sky blue or green vegetation in the image of the input image data, it is determined that the correction processing of the image data to be executed does not include memory color correction, and the correction processing corresponds to the correction processing. The correction parameter is identified as corresponding to a correction parameter for high-speed correction processing.

他方、入力画像データの画像中に空の青色又は草木の緑色が存在すると識別した場合、実行しようとする画像データの補正処理に記憶色補正が含まれると判断し、その補正処理に対応する補正パラメータは、高速な補正処理の補正パラメータに該当しないものとして識別する。尚、具体的な記憶色補正の内容は、例えば、画像中の空の青色と草木の緑色との面積比率に応じて決定される。   On the other hand, if it is identified that there is an empty blue color or green color of plants in the image of the input image data, it is determined that the correction process of the image data to be executed includes the memory color correction, and the correction corresponding to the correction process The parameter is identified as not corresponding to a correction parameter for high-speed correction processing. It should be noted that the specific content of the memory color correction is determined according to, for example, the area ratio of the sky blue and the green of the plant in the image.

以上のように、実行しようとする画像データの補正処理に対応する補正パラメータが高速な補正処理の補正パラメータに該当するか否かを識別した結果、その補正パラメータが高速な補正処理の補正パラメータに該当しないと識別した場合には、ハードウェアによる三次元ルックアップテーブル及び補間演算を用いた補正処理の方が、ソフトウェアを用いた逐次補正処理よりも画像データの補正処理を高速に実行することができると考えられるので、ハードウェアによる画像データの補正処理を実行する。   As described above, as a result of identifying whether or not the correction parameter corresponding to the correction process of the image data to be executed corresponds to the correction parameter of the high-speed correction process, the correction parameter becomes the correction parameter of the high-speed correction process. If it is identified that the data does not correspond, the correction process using the hardware three-dimensional lookup table and the interpolation calculation can execute the image data correction process faster than the sequential correction process using software. Since it is considered possible, correction processing of image data by hardware is executed.

補間演算を含む演算処理を用いたハードウェアによる画像データの補正処理は、前述のように、トーンカーブ補正、彩度補正、記憶色補正等の色補正処理を、補間演算を含む演算処理により一括して行うものである。   As described above, the correction processing of image data by hardware using arithmetic processing including interpolation calculation is performed by performing color correction processing such as tone curve correction, saturation correction, and memory color correction collectively by arithmetic processing including interpolation calculation. It is what you do.

一方、識別の結果、実行しようとする画像データの補正処理に対応する補正パラメータが高速な補正処理の補正パラメータに該当すると識別した場合には、ハードウェアによる三次元ルックアップテーブル及び補間演算を用いた補正処理よりも、ソフトウェアを用いた逐次補正処理の方が、画像データの補正処理を高速に実行することができると考えられるので、ソフトウェアによる画像データの逐次補正処理を実行する。   On the other hand, if it is determined that the correction parameter corresponding to the correction process of the image data to be executed corresponds to the correction parameter of the high-speed correction process, the three-dimensional lookup table and the interpolation calculation by hardware are used. Since the sequential correction process using software is considered to be able to execute the correction process of image data at a higher speed than the correction process performed by the software, the sequential correction process of image data by software is executed.

ソフトウェアによる画像データの逐次補正処理を実行する場合は、記憶色補正が不要であると判断した場合であるので、ここで想定している補正処理の具体例としては、トーンカーブ補正、彩度補正等の単純な色補正処理が含まれる。   When performing sequential correction processing of image data by software, it is determined that memory color correction is unnecessary, so specific examples of correction processing assumed here are tone curve correction and saturation correction. A simple color correction process such as the above is included.

上述のように、実行しようとする画像データの補正処理に対応する補正パラメータが高速な補正処理の補正パラメータに該当するか否かに応じて、ハードウェア又はソフトウェアによる画像データの補正処理を実行した後、上記同様、サイズ変換処理(ステップS9)、レイアウト処理(ステップS10)、ハーフトーン処理(ステップS11)を順次実行して、実際の印刷に用いることが可能な最終的な印刷画像データを出力し、印刷を実行する(ステップS12)。   As described above, the correction process of the image data by hardware or software is executed depending on whether the correction parameter corresponding to the correction process of the image data to be executed corresponds to the correction parameter of the high-speed correction process. Thereafter, similarly to the above, size conversion processing (step S9), layout processing (step S10), and halftone processing (step S11) are sequentially executed to output final print image data that can be used for actual printing. Then, printing is executed (step S12).

以上のような手順を追加することにより、意図した通りの補正結果が得られるようにするだけではなく、より多くの場合に処理速度の高速化を図ることができるように、ハードウェアによる三次元ルックアップテーブル及び補間演算を用いた補正処理と、ソフトウェアによる逐次補正処理とのうち、画像データの補正処理内容に応じた最適な補正処理手法を選択的に用いて画像データの補正処理を実行することができる。   By adding the above procedure, not only can the correction result as intended be obtained, but also three-dimensional hardware can be used to increase the processing speed in many cases. Of the correction process using the lookup table and the interpolation calculation, and the sequential correction process by software, the image data correction process is executed by selectively using an optimal correction process method according to the content of the image data correction process. be able to.

以上が、本発明に係る画像処理装置及び画像処理方法による画像補正処理手順の具体的内容の一例である。   The above is an example of the specific contents of the image correction processing procedure by the image processing apparatus and the image processing method according to the present invention.

次に、印刷ページデータファイルの印刷ライン位置Nの画像データファイルを検索した後、印刷ライン位置Nの画像データファイルについてサンプリング及び統計値計算を行い、三次元ルックアップテーブル(3D−LUT)の各格子点に対応付けられた補正パラメータを決定して三次元ルックアップテーブルを作成し、印刷ライン位置Nの画像データファイルを解凍処理するまでの一連の動作手順の一例について説明する。   Next, after searching the image data file at the print line position N in the print page data file, sampling and statistical value calculation are performed on the image data file at the print line position N, and each of the three-dimensional lookup table (3D-LUT) is calculated. An example of a series of operation procedures from determining correction parameters associated with lattice points to creating a three-dimensional lookup table and decompressing the image data file at the print line position N will be described.

図4は、三次元ルックアップテーブルの作成及び画像データファイルの解凍処理の動作手順を示すフローチャートであり、図2のフローチャートにおけるステップS3の動作手順の内容を詳細に示したものである。   FIG. 4 is a flowchart showing an operation procedure for creating a three-dimensional lookup table and decompressing an image data file, and shows details of the operation procedure of step S3 in the flowchart of FIG.

画像データファイルを検索する対象となった印刷ページデータファイルの印刷ライン位置N(N位置)において画像データファイルが見つかった場合、検索を行った印刷ライン位置Nがその画像データファイルの先頭ライン位置であるか否かを識別する(ステップS101)。   When the image data file is found at the print line position N (N position) of the print page data file for which the image data file is searched, the searched print line position N is the first line position of the image data file. Whether or not there is is identified (step S101).

検索を行った印刷ライン位置Nがその画像データファイルの先頭ライン位置でない場合は、その画像データファイルに対応する三次元ルックアップテーブルが既に作成されていることになるので、後のステップS116に進む。   If the searched print line position N is not the first line position of the image data file, a three-dimensional lookup table corresponding to the image data file has already been created, and the process proceeds to the subsequent step S116. .

一方、検索を行った印刷ライン位置Nがその画像データファイルの先頭ライン位置である場合は、その画像データファイルに対応する三次元ルックアップテーブルは未だ作成されていないので、三次元ルックアップテーブルを作成するための動作手順に進む。   On the other hand, if the searched print line position N is the head line position of the image data file, the 3D lookup table corresponding to the image data file has not been created yet. Proceed to the operation procedure to create.

即ち、先ず、その画像データファイルを開き(ファイルオープン)、解凍処理を行うためのハフマンテーブル及び量子化テーブルを取得する(ステップS102)。   That is, first, the image data file is opened (file open), and a Huffman table and a quantization table for performing decompression processing are acquired (step S102).

そして、取得したハフマンテーブル、量子化テーブルを用いて、印刷ライン位置Nの画像データについてハフマン解凍(ステップS103)、逆量子化(ステップS104)を行い、さらに、逆DCT(Discrete Cosine Transform(離散コサイン変換))(ステップS105)、YCC−RGB色変換(ステップS106)を行う。加えて、入力画像データのサンプリング及び統計値計算を行うために用いるサンプリング画像を作成すべく画像の縮小処理を行い(ステップS108)、作成した縮小画像データをサンプリング画像保持バッファに格納する。   Then, using the acquired Huffman table and quantization table, Huffman decompression (step S103) and inverse quantization (step S104) are performed on the image data at the print line position N, and further, an inverse DCT (Discrete Cosine Transform (discrete cosine) is performed. Conversion)) (step S105), YCC-RGB color conversion (step S106) is performed. In addition, image reduction processing is performed to create a sampling image used for sampling input image data and calculating statistical values (step S108), and the generated reduced image data is stored in the sampling image holding buffer.

尚、このサンプリング画像保持バッファは、処理装置10の内部に備えられているものとしてもよいし、第1の記憶装置11若しくは第2の記憶装置12を用いてもよい。又は、それら以外の他の記憶装置(図示せず)を用いてもよい。   The sampled image holding buffer may be provided inside the processing device 10 or the first storage device 11 or the second storage device 12 may be used. Alternatively, other storage devices (not shown) other than those may be used.

ここで、サンプリング画像を作成するための解凍処理が画像データファイルの総ての部分について終了していなければ、残余の各部分について上記ステップS103以降の各ステップを繰り返し、サンプリング画像を作成するための解凍処理が画像データファイルの総ての部分について終了したときは、次の動作手順に進む(ステップS109)。   Here, if the decompression process for creating the sampling image is not completed for all the parts of the image data file, the steps after step S103 are repeated for the remaining parts to create the sampling image. When the decompression process is completed for all parts of the image data file, the process proceeds to the next operation procedure (step S109).

即ち、サンプリング画像を作成するための解凍処理が画像データファイルの総ての部分について終了したときは、サンプリング画像保持バッファに保持されているサンプリング画像を用いて、画像データファイルのサンプリング及び統計値計算を行い(ステップS110)、その画像データファイルの画像データに対し補正処理を行うための補正パラメータを決定する(ステップS111)。   That is, when the decompression process for creating the sampling image is completed for all parts of the image data file, the sampling of the image data file and the statistical value calculation are performed using the sampling image held in the sampling image holding buffer. (Step S110), and a correction parameter for performing correction processing on the image data of the image data file is determined (step S111).

この補正パラメータは、三次元ルックアップテーブルの各格子点に対応付けられて決定され、それらの補正パラメータにより構成される三次元ルックアップテーブルが作成される(ステップS112)。   This correction parameter is determined in association with each lattice point of the three-dimensional lookup table, and a three-dimensional lookup table composed of these correction parameters is created (step S112).

図4のフローチャートにおいては、一例として、画像データの圧縮方式がJPEG(Joint Photographic Experts Group)圧縮方式である場合を想定している。   In the flowchart of FIG. 4, as an example, it is assumed that the image data compression method is a JPEG (Joint Photographic Experts Group) compression method.

そこで、三次元ルックアップテーブルを作成後、画像を90°回転する必要があるか否か、即ち、画像のローテートを行う必要があるか否かを識別する(ステップS113)。   Therefore, after creating the three-dimensional lookup table, it is determined whether or not the image needs to be rotated by 90 °, that is, whether or not the image needs to be rotated (step S113).

そして、画像のローテートを行う必要がある場合には、ローテート情報マップを作成する(ステップS114)。   When it is necessary to rotate the image, a rotation information map is created (step S114).

これらのステップS113及びS114は、後述のステップS122及びS123において画像の90°回転(ローテート)を行うための前処理であり、画像データの圧縮方式がJPEG圧縮方式である場合に特有の処理である。   These steps S113 and S114 are pre-processing for performing 90 ° rotation (rotation) of the image in steps S122 and S123, which will be described later, and are specific processing when the image data compression method is the JPEG compression method. .

従って、画像データの圧縮方式がJPEG圧縮方式でない場合には、ステップS113及びS114、並びに、後述のステップS122及びS123は不要である。   Therefore, when the image data compression method is not the JPEG compression method, steps S113 and S114 and steps S122 and S123 described later are unnecessary.

ステップS103乃至S106の動作手順における画像データファイルの解凍処理は、補正パラメータを決定するためにサンプリング及び統計値計算を行うことを目的として、縮小処理されたサンプリング画像を作成するための解凍処理である。   The decompression process of the image data file in the operation procedure of steps S103 to S106 is a decompression process for creating a reduced sampling image for the purpose of performing sampling and statistical value calculation in order to determine a correction parameter. .

従って、以上のステップS115までの動作手順が終了した後、画像データの補正処理を行うべく、画像データファイルの解凍処理を再度行う。   Accordingly, after the operation procedure up to step S115 is completed, the decompression process of the image data file is performed again in order to perform the correction process of the image data.

尚、画像データファイルの解凍処理は、通常、画像データファイルに含まれる画像データ全部について一度に行われるわけではなく、画像データをいくつかの部分、例えば印刷ライン位置ごとに分割して、その部分ごとに行う。   Note that the image data file decompression process is not normally performed for all the image data included in the image data file at once, but the image data is divided into several parts, for example, for each print line position. Do it every time.

そのため、画像データファイルの解凍処理がどこまで済んだかを示すファイルポインタが用いられて記録されており、ここで、この後の画像データファイルの解凍処理を開始する前に、ファイルポインタをリセットする(ステップS115)。   For this reason, a file pointer indicating how far the image data file decompression process has been completed is used and recorded. Before starting the subsequent image data file decompression process, the file pointer is reset (step S1). S115).

そして、先ず、バッファに印刷ライン位置N(N位置)の解凍処理済みの画像データがあるか否かを確認する(ステップS116)。   First, it is confirmed whether or not there is decompressed image data at the print line position N (N position) in the buffer (step S116).

このバッファは、前述のサンプリング画像保持バッファとは区別されたものであるが、サンプリング画像保持バッファと同様に、処理装置10の内部に備えられているものとしてもよいし、第1の記憶装置11若しくは第2の記憶装置12を用いてもよい。又は、それら以外の他の記憶装置(図示せず)を用いてもよい。   This buffer is distinguished from the above-described sampled image holding buffer, but may be provided inside the processing apparatus 10 as in the case of the sampled image holding buffer, or may be the first storage device 11. Alternatively, the second storage device 12 may be used. Alternatively, other storage devices (not shown) other than those may be used.

バッファに印刷ライン位置Nの解凍処理済みの画像データが既にある場合は、さらに印刷ライン位置Nの画像データの解凍処理を行う必要はないので、ステップS125の動作手順へ進み、バッファから補正処理対象となる印刷ライン位置Nの画像データを取り出し(ステップS125)、図2のフローチャートのステップS4以降の動作手順に進む。   If there is already decompressed image data at the print line position N in the buffer, there is no need to further decompress the image data at the print line position N, so the process proceeds to the operation procedure of step S125, and the correction processing target is output from the buffer. The image data of the print line position N to be obtained is extracted (step S125), and the process proceeds to the operation procedure after step S4 in the flowchart of FIG.

ここで、バッファにあるか否かを確認している印刷ライン位置Nの解凍処理済みの画像データとは、前述のサンプリング画像を作成するための解凍処理による解凍処理済みの画像データではなく、補正処理を行うための解凍処理による解凍処理済みの画像データを意味している。   Here, the decompressed image data at the print line position N that is confirmed whether or not it is in the buffer is not the image data that has been decompressed by the decompression process for creating the sampling image described above, but correction It means image data that has been decompressed by decompression processing for processing.

バッファに印刷ライン位置Nの解凍処理済みの画像データがない場合は、ハフマンテーブル、量子化テーブルを用いて、印刷ライン位置Nの画像データについてハフマン解凍(ステップS117)、逆量子化(ステップS118)を行い、さらに、逆DCT(ステップS119)、YCC−RGB色変換(ステップS120)を行う。   If there is no decompressed image data at the print line position N in the buffer, Huffman decompression (step S117) and inverse quantization (step S118) are performed on the image data at the print line position N using the Huffman table and quantization table. In addition, inverse DCT (step S119) and YCC-RGB color conversion (step S120) are performed.

解凍処理の対象となる画像データが含まれている画像データファイルは、ステップS102において開いているので再度開く必要はなく、解凍処理を行うためのハフマンテーブル及び量子化テーブルも、ステップS102において取得済みであるので、再度取得する必要はない。   Since the image data file containing the image data to be decompressed is opened in step S102, it is not necessary to reopen it, and the Huffman table and quantization table for performing the decompression processing have also been acquired in step S102. Therefore, it is not necessary to acquire again.

印刷ライン位置Nの画像データについて上記解凍処理を行った後、解凍処理済みの画像データをバッファに格納する(ステップS121)。   After performing the above decompression process on the image data at the print line position N, the decompressed image data is stored in the buffer (step S121).

さらに、画像を90°回転する必要があるか否か、即ち、画像のローテートを行う必要があるか否かを識別する(ステップS122)。   Further, it is identified whether or not the image needs to be rotated by 90 °, that is, whether or not the image needs to be rotated (step S122).

画像のローテートを行う必要がある場合には、ステップS114において前処理として作成済みのローテート情報マップを更新する(ステップS123)。   If it is necessary to rotate the image, the rotation information map that has been created as pre-processing in step S114 is updated (step S123).

これらのステップS122及びS123も、前述のステップS113及びS114と同様に、画像データの圧縮方式がJPEG圧縮方式である場合に特有の処理であるので、画像データの圧縮方式がJPEG圧縮方式でない場合には不要である。   These steps S122 and S123 are also processing that is specific to the case where the compression method of the image data is the JPEG compression method, similarly to the above-described steps S113 and S114, and therefore when the compression method of the image data is not the JPEG compression method. Is unnecessary.

その後、画像データファイルの解凍処理がどこまで済んだかを示すファイルポインタをセーブする(ステップS124)。   Thereafter, a file pointer indicating how far the image data file has been decompressed is saved (step S124).

そして、バッファから補正処理対象となる印刷ライン位置Nの解凍処理済みの画像データを取り出し(ステップS125)、解凍処理済みの画像データについては、図2のフローチャートのステップS4以降の動作手順に進む。   Then, the decompressed image data at the print line position N to be corrected is extracted from the buffer (step S125), and the decompressed image data is advanced to the operation procedure after step S4 in the flowchart of FIG.

一方、図4のフローチャートの動作手順では、画像データの解凍処理が終了した印刷ライン位置Nが画像データファイルの最後の印刷ライン位置であるか否かを確認し(ステップS126)、画像データファイルの最後の印刷ライン位置でない場合は、印刷ライン位置NをインクリメントしてN=N+1とし(ステップS127)、ステップS116に戻ってそれ以降の動作手順を繰り返す。   On the other hand, in the operation procedure of the flowchart of FIG. 4, it is confirmed whether or not the print line position N where the image data decompression processing has ended is the last print line position of the image data file (step S126). If it is not the last print line position, the print line position N is incremented to N = N + 1 (step S127), the process returns to step S116 and the subsequent operation procedure is repeated.

画像データの解凍処理が終了した印刷ライン位置Nが画像データファイルの最後の印刷ライン位置である場合は、その画像データファイルを閉じ(ファイルクローズ)、解凍処理を行うために取得していたハフマンテーブル及び量子化テーブルを解放する(ステップS128)。   If the print line position N where the image data decompression process has been completed is the last print line position of the image data file, the image data file is closed (file close), and the Huffman table acquired for performing the decompression process Then, the quantization table is released (step S128).

以上が、三次元ルックアップテーブルの作成及び画像データファイルの解凍処理の動作手順の内容の一例である。   The above is an example of the contents of the operation procedure for creating the three-dimensional lookup table and decompressing the image data file.

三次元ルックアップテーブルの作成及び画像データファイルの解凍処理は、処理装置10が第1の記憶装置11若しくは第2の記憶装置12又はその他の記憶装置に格納されている解凍処理プログラムを読み込んで実行することにより行われる。   The creation of the three-dimensional lookup table and the decompression processing of the image data file are executed by the processing device 10 reading the decompression processing program stored in the first storage device 11, the second storage device 12, or another storage device. Is done.

また、作成された三次元ルックアップテーブルは、前述のように、第1の記憶装置11に保存され、ハードウェア(処理装置10及び第1の記憶装置11)による画像データの補正処理の際に、処理装置10が第1の記憶装置11にアクセスすることによって使用される。   Further, as described above, the created three-dimensional lookup table is stored in the first storage device 11 and is subjected to image data correction processing by hardware (the processing device 10 and the first storage device 11). The processing device 10 is used by accessing the first storage device 11.

尚、解凍処理及び補正処理の対象となる画像データがデジタルカメラの撮影画像データである場合、その画像データが含まれる画像データファイルは、撮影情報を含むExif(Exchangeable Image File Format)形式のファイルであり、各画像データファイルごとに露出、絞り、シャッタースピード等の撮影情報としてのExif情報がヘッダに書き込まれている。   When the image data to be subjected to the decompression process and the correction process is captured image data of a digital camera, the image data file including the image data is an Exif (Exchangeable Image File Format) format file including shooting information. Yes, Exif information as shooting information such as exposure, aperture, and shutter speed is written in the header for each image data file.

図4に示した補正パラメータの決定及び三次元ルックアップテーブルの作成のフローチャートにおいては、入力画像データ(サンプリング画像)のサンプリング及び統計値計算によって補正パラメータを決定しているが、それに加えて、Exif情報も補正パラメータを決定する際の基準情報として用いるようにしてもよい。   In the flowchart for determining the correction parameter and creating the three-dimensional lookup table shown in FIG. 4, the correction parameter is determined by sampling the input image data (sampled image) and calculating the statistical value. In addition, Exif is added. Information may also be used as reference information for determining correction parameters.

Exif情報を、補正パラメータを決定する際の基準情報として用いるか否かについては、ユーザが任意に設定できるようにするとよい。   Whether or not Exif information is used as reference information for determining correction parameters may be set arbitrarily by the user.

解凍処理及び補正処理の対象となる画像データがデジタルカメラの撮影画像データである場合、その画像データが含まれる画像データファイルは、例えばPIM(Print Image Matching(セイコーエプソン株式会社が提唱する独自規格))情報等の印刷制御情報を含むものであることもあり得る。   When the image data to be subjected to the decompression process and the correction process is captured image data of a digital camera, an image data file including the image data is, for example, PIM (Print Image Matching (proprietary standard proposed by Seiko Epson Corporation) ) It may contain print control information such as information.

PIM情報等の印刷制御情報は、撮影者の撮影意図がより正確に印刷結果に反映されるように印刷設定を行うための制御情報であり、例えば風景、夜景、人物等の撮影場面に応じたシーン指定の有無、シーン指定がある場合はその内容に応じて、画像補正処理の際の補正パラメータを決定する。   The print control information such as PIM information is control information for performing print settings so that the photographer's shooting intention is more accurately reflected in the print result. For example, the print control information corresponds to the shooting scene such as a landscape, a night view, and a person. The correction parameters for the image correction process are determined according to the presence / absence of the scene designation and the scene designation.

その手順の一例としては、画像データファイルにPIM情報が含まれている場合、先ず、シーン指定の有無を識別する。シーン指定が行われていない場合は、固定値の汎用パラメータを補正パラメータとして用いることとし、前述のような入力画像データのサンプリングは行わない。   As an example of the procedure, when PIM information is included in the image data file, first, the presence / absence of scene designation is identified. If no scene is specified, a fixed general-purpose parameter is used as a correction parameter, and the input image data is not sampled as described above.

一方、シーン指定が行われている場合は、入力画像データのサンプリング結果にシーン指定の内容を加味して画像補正処理の際の補正パラメータを決定する。   On the other hand, when the scene designation is performed, the correction parameters for the image correction processing are determined by adding the contents of the scene designation to the sampling result of the input image data.

上述のようなExif情報、印刷制御情報(PIM情報)を画像補正処理の際の補正パラメータの決定の際に用いるか否かは、例えば、ユーザが印刷設定を行う際に表示されるダイアログボックスのチェックボックスに入れるチェックの有無によって指定を行う。   Whether or not to use the Exif information and the print control information (PIM information) as described above when determining the correction parameter at the time of image correction processing is, for example, a dialog box displayed when the user performs print settings. Specify according to whether there is a check in the check box.

最後に、印刷を実行しようとしている印刷ページデータファイルの1ページ分の領域内に複数の画像データファイルA,B,C,...が含まれており、かつ、印刷をマイクロウィーブ方式により実行する場合における画像データ処理の動作手順の概要を、前述の図2のフローチャートに示した実施の形態の補足的な実施の形態として説明する。   Finally, a plurality of image data files A, B, C,. . . The outline of the operation procedure of the image data processing when printing is executed by the microweave method will be described as a supplementary embodiment of the embodiment shown in the flowchart of FIG. .

印刷を実行しようとしている印刷ページデータファイルの1ページ分の領域内に複数の画像データファイルA,B,C,...が含まれている場合、印刷ライン位置Nごとの画像データファイルの検索(図2のステップS2参照)によって画像データファイルが発見されるたびに、例えばSDRAM等の記憶装置に、各画像データファイルに対応するポインタテーブル及びバッファ領域を設けていく。   A plurality of image data files A, B, C,... Within a region for one page of the print page data file to be printed. . . Each time the image data file is found by searching the image data file for each print line position N (see step S2 in FIG. 2), the image data file is stored in a storage device such as an SDRAM. Corresponding pointer tables and buffer areas are provided.

従って、印刷ページデータファイルの1ページ分の領域内に複数の画像データファイルA,B,C,...が含まれている場合、画像データファイルAのポインタテーブル及びバッファ領域、画像データファイルBのポインタテーブル及びバッファ領域、画像データファイルCのポインタテーブル及びバッファ領域,...が、例えばSDRAM等の所定の記憶装置に順次設けられていく。   Therefore, a plurality of image data files A, B, C,. . . Are included, the pointer table and buffer area of the image data file A, the pointer table and buffer area of the image data file B, the pointer table and buffer area of the image data file C,. . . Are sequentially provided in a predetermined storage device such as an SDRAM.

各画像データファイルに対応するポインタテーブル及びバッファ領域が設けられる所定の記憶装置としては、処理装置10の内部に備えられているバッファを用いてもよいし、第1の記憶装置11若しくは第2の記憶装置12を用いてもよい。又は、それら以外の他の記憶装置(図示せず)を用いてもよい。   As a predetermined storage device provided with a pointer table and a buffer area corresponding to each image data file, a buffer provided in the processing device 10 may be used, or the first storage device 11 or the second storage device may be used. The storage device 12 may be used. Alternatively, other storage devices (not shown) other than those may be used.

ここで、ある一つの画像データファイル、例えば画像データファイルAに注目すると、画像データファイルAの画像データは、図2のフローチャートの動作手順に従って順次解凍処理及び補正処理が行われる(図2のステップS3乃至S8参照)。尚、解凍処理の詳細な動作手順は、図4のフローチャートを参照して前述した通りである。   Here, when attention is paid to one image data file, for example, image data file A, the image data of image data file A is sequentially subjected to decompression processing and correction processing according to the operation procedure of the flowchart of FIG. 2 (step of FIG. 2). (See S3 to S8). The detailed operation procedure of the decompression process is as described above with reference to the flowchart of FIG.

補正処理済み画像データは、画像データファイルA用に設けられたバッファ領域に保持されると共に、画像データファイルの解凍処理がどこまで済んだかを示すファイルポインタが、画像データファイルA用に設けられたポインタテーブルにセーブされる。   The corrected image data is held in a buffer area provided for the image data file A, and a file pointer indicating how far the image data file has been decompressed is a pointer provided for the image data file A. Saved to the table.

以下、同様にして、画像データファイルB,C,...の補正処理済み画像データも、画像データファイルB,C,...用に設けられたバッファ領域に保持されると共に、画像データファイルの解凍処理がどこまで済んだかを示すファイルポインタが、画像データファイルB,C,...用に設けられたポインタテーブルにセーブされる。   The image data files B, C,. . . The corrected image data of the image data files B, C,. . . And a file pointer indicating how far the image data file has been decompressed is stored in the buffer area provided for the image data files B, C,. . . Is saved in the pointer table provided for use.

上記所定の記憶装置の画像データファイルA,B,C,...用バッファ領域からそれぞれ順次取り出された補正処理済み画像データは、印刷レイアウトにおける印刷用の大きさにサイズ変換され(図2のステップS9参照)、印刷レイアウトに従って配置されて(図2のステップS10参照)、1ライン分ずつバンドバッファに格納される。   The image data files A, B, C,. . . The corrected image data sequentially taken out from the buffer area is converted into a print size in the print layout (see step S9 in FIG. 2) and arranged according to the print layout (see step S10 in FIG. 2). ) Each line is stored in the band buffer.

バンドバッファとは、印刷ヘッドのヘッド長、即ち、印刷ヘッドの先頭ノズルから末尾ノズルまでによって一度に印刷可能な帯状印刷領域に対応する画像データを保持するためのバッファである。   The band buffer is a buffer for holding image data corresponding to a band-like print area that can be printed at once by the head length of the print head, that is, the head nozzle to the tail nozzle of the print head.

バンドバッファとしても、処理装置10の内部に備えられているバッファを用いてもよいし、第1の記憶装置11若しくは第2の記憶装置12を用いてもよい。又は、それら以外の他の記憶装置(図示せず)を用いてもよい。   As the band buffer, a buffer provided in the processing device 10 may be used, or the first storage device 11 or the second storage device 12 may be used. Alternatively, other storage devices (not shown) other than those may be used.

このバンドバッファにサイズ変換及びレイアウト配置済み画像データを1ライン分ずつ格納していき、印刷ヘッドのヘッド長に対応するライン数の画像データが格納されたら、マイクロウィーブ方式印刷に対応する所定ライン数おきの各ラインの画像データを取り出して、画像の階調を印刷装置が対応可能な段階数の階調に変換するハーフトーン処理(図2のステップS11参照)を順次実行して、実際の印刷に用いることが可能な最終的な印刷画像データに変換処理し、マイクロウィーブ印刷用バッファに格納する。   This band buffer stores the size converted and laid out image data for each line, and when the image data of the number of lines corresponding to the head length of the print head is stored, the predetermined number of lines corresponding to microweave printing. The image data of every other line is taken out, and halftone processing (see step S11 in FIG. 2) for converting the gradation of the image into gradations of the number of steps that can be handled by the printing apparatus is sequentially executed to perform actual printing. Is converted into final print image data that can be used for printing, and stored in a microweave print buffer.

マイクロウィーブ印刷用バッファとしても、処理装置10の内部に備えられているバッファを用いてもよいし、第1の記憶装置11若しくは第2の記憶装置12を用いてもよい。又は、それら以外の他の記憶装置(図示せず)を用いてもよい。   As the buffer for microweave printing, a buffer provided in the processing device 10 may be used, or the first storage device 11 or the second storage device 12 may be used. Alternatively, other storage devices (not shown) other than those may be used.

バンドバッファからマイクロウィーブ印刷用バッファへの上述のような画像データの変換処理及び移動を順次行いながら、マイクロウィーブ印刷用バッファに格納された所定ライン数おきの各ラインの画像データに基づきマイクロウィーブ方式印刷を実行する(図2のステップS12参照)。   A microweave system based on the image data of each line stored every predetermined number of lines stored in the microweave print buffer while sequentially converting and moving the image data from the band buffer to the microweave print buffer. Printing is executed (see step S12 in FIG. 2).

ここでは、印刷を実行しようとしている印刷ページデータファイルの1ページ分の領域内に複数の画像データファイルA,B,C,...が含まれている場合について説明したが、印刷ページデータファイルの1ページ分の領域内に一つの画像データファイルのみが含まれている場合でも、印刷をマイクロウィーブ方式により実行する際における画像データ処理の動作手順は、上記同様である。   Here, a plurality of image data files A, B, C,. . . However, even when only one image data file is included in the area of one page of the print page data file, image data processing when printing is performed by the microweave method. The operation procedure is the same as described above.

以上に詳細に説明したように、本発明に係る画像処理装置及び画像処理方法の実施の一形態によれば、決定された補正パラメータの値に応じてハードウェア又はソフトウェアによる画像データの補正処理を選択的に実行するので、処理速度の高速化を図りつつ、意図した通りの補正結果を得ることができる。   As described above in detail, according to the embodiment of the image processing apparatus and the image processing method according to the present invention, the correction processing of the image data by hardware or software is performed according to the determined correction parameter value. Since it is selectively executed, it is possible to obtain the intended correction result while increasing the processing speed.

三次元ルックアップテーブル(3D−LUT)を用いた補間演算による補正処理の原理を模式的に示した説明図である。It is explanatory drawing which showed typically the principle of the correction process by the interpolation calculation using a three-dimensional lookup table (3D-LUT). 本発明に係る画像処理装置及び画像処理方法による画像補正処理手順を示すフローチャートである。It is a flowchart which shows the image correction processing procedure by the image processing apparatus and image processing method which concern on this invention. 本発明に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on this invention. 三次元ルックアップテーブルの作成及び画像データの解凍処理の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of preparation of a three-dimensional lookup table, and the decompression | decompression process of image data.

符号の説明Explanation of symbols

10 処理装置
11 第1の記憶装置
12 第2の記憶装置
10 processing device 11 first storage device 12 second storage device

Claims (16)

入力画像データを構成する入力三原色データに対する出力三原色データが画像補正処理設定に応じた補正パラメータとして各格子点上に書き込まれた三次元ルックアップテーブルが保存された第1の記憶装置と、
入力画像データの逐次補正処理を行うための補正処理プログラムが格納されている第2の記憶装置と、
前記第1の記憶装置にアクセスして前記三次元ルックアップテーブルを用いた演算処理を行うことにより入力画像データに対する出力画像データを得る第1の画像データ補正処理、及び、前記第2の記憶装置から前記補正処理プログラムを読み込んで実行することにより入力画像データの逐次補正処理を行って出力画像データを得る第2の画像データ補正処理を、前記補正パラメータの値に応じて選択的に実行する処理装置と、
を備えていることを特徴とする画像処理装置。
A first storage device storing a three-dimensional lookup table in which output three primary color data corresponding to input three primary color data constituting input image data is written on each grid point as a correction parameter according to image correction processing setting;
A second storage device storing a correction processing program for performing sequential correction processing of input image data;
A first image data correction process for obtaining output image data for input image data by accessing the first storage device and performing arithmetic processing using the three-dimensional lookup table; and the second storage device Processing for selectively executing second image data correction processing for obtaining output image data by sequentially correcting input image data by reading and executing the correction processing program according to the value of the correction parameter Equipment,
An image processing apparatus comprising:
前記処理装置は、前記補正パラメータの値が所定範囲内に含まれるか否かの判断結果に基づいて、前記第1又は第2の画像データ補正処理を選択的に実行するものであることを特徴とする請求項1に記載の画像処理装置。   The processing apparatus selectively executes the first or second image data correction process based on a determination result of whether or not the value of the correction parameter is included in a predetermined range. The image processing apparatus according to claim 1. 前記補正パラメータの値が所定範囲内に含まれるか否かの判断は、前記補正パラメータにより決定される入力画像データの値と出力画像データの値との差の絶対値が所定範囲内の値であるか否かを各補正パラメータごとに識別することによって行われることを特徴とする請求項2に記載の画像処理装置。   Whether or not the value of the correction parameter is included within a predetermined range is determined based on whether the absolute value of the difference between the input image data value and the output image data value determined by the correction parameter is within the predetermined range. The image processing apparatus according to claim 2, wherein the image processing apparatus is performed by identifying whether each correction parameter exists. 前記補正パラメータの値が所定範囲内に含まれるか否かの判断は、入力画像データと出力画像データとの関係を示す補正曲線の変化が所定の想定範囲を超えた急峻なものでないか否かを識別することによって行われることを特徴とする請求項2に記載の画像処理装置。   The determination as to whether or not the value of the correction parameter is included within a predetermined range is whether or not the change in the correction curve indicating the relationship between the input image data and the output image data is not steep beyond a predetermined assumed range. The image processing apparatus according to claim 2, wherein the image processing apparatus is performed by identifying the image. 前記処理装置は、前記判断の結果、前記補正パラメータの値が所定範囲内に含まれる場合は、前記第1の画像データ補正処理を実行し、前記補正パラメータの値が所定範囲内に含まれない場合は、前記第2の画像データ補正処理を実行するものであることを特徴とする請求項2乃至4のいずれかに記載の画像処理装置。   When the value of the correction parameter is included in a predetermined range as a result of the determination, the processing device executes the first image data correction process, and the value of the correction parameter is not included in the predetermined range. 5. The image processing apparatus according to claim 2, wherein the second image data correction process is executed. 前記補正パラメータの値が所定範囲内に含まれるか否かの判断は、印刷ページデータファイルの印刷ライン位置ごとの画像データファイルの検索によって印刷ページデータファイルに含まれる各画像データファイルがそれぞれ最初に発見されたときに行われることを特徴とする請求項2乃至5のいずれかに記載の画像処理装置。   Whether or not the value of the correction parameter is included in the predetermined range is determined by searching each image data file included in the print page data file by searching the image data file for each print line position of the print page data file. The image processing apparatus according to claim 2, wherein the image processing apparatus is performed when the image is discovered. 前記第2の画像データ補正処理は、トーンカーブ補正、彩度補正及び記憶色補正の一部又は全部を含む画像データ補正処理であり、前記第1の画像データ補正処理は、前記第2の画像データ補正処理と同等の補正結果を得るべく行われる演算処理による画像データ補正処理であることを特徴とする請求項1乃至6のいずれかに記載の画像処理装置。   The second image data correction process is an image data correction process including a part or all of tone curve correction, saturation correction, and memory color correction, and the first image data correction process is the second image data correction process. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image data correction process based on an arithmetic process performed to obtain a correction result equivalent to the data correction process. 画像データ補正処理対象となる画像データが含まれる画像データファイルがExif情報を含むExif形式ファイルである場合、前記補正パラメータは、前記Exif情報を考慮して決定されたものであることを特徴とする請求項1乃至7のいずれかに記載の画像処理装置。   When the image data file including the image data to be subjected to image data correction processing is an Exif format file including Exif information, the correction parameter is determined in consideration of the Exif information. The image processing apparatus according to claim 1. 画像データ補正処理対象となる画像データが含まれる画像データファイルが印刷制御情報を含む画像データファイルである場合、前記補正パラメータは、前記印刷制御情報を考慮して決定されたものであることを特徴とする請求項1乃至8のいずれかに記載の画像処理装置。   When the image data file including image data to be subjected to image data correction processing is an image data file including print control information, the correction parameter is determined in consideration of the print control information. The image processing apparatus according to claim 1. 入力画像データを構成する入力三原色データに対する出力三原色データが画像補正処理設定に応じた補正パラメータとして各格子点上に書き込まれた三次元ルックアップテーブルが保存された第1の記憶装置、及び、入力画像データの逐次補正処理を行うための補正処理プログラムが格納されている第2の記憶装置を準備する第1の過程と、
前記第1の記憶装置にアクセスして前記三次元ルックアップテーブルを用いた演算処理を行うことにより入力画像データに対する出力画像データを得る第1の画像データ補正処理、及び、前記第2の記憶装置から前記補正処理プログラムを読み込んで実行することにより入力画像データの逐次補正処理を行って出力画像データを得る第2の画像データ補正処理を、前記補正パラメータの値に応じて処理装置により選択的に実行する第2の過程と、
を備えていることを特徴とする画像処理方法。
A first storage device storing a three-dimensional lookup table in which output three primary color data corresponding to input three primary color data constituting input image data is written on each grid point as a correction parameter according to image correction processing setting, and an input A first step of preparing a second storage device storing a correction processing program for performing sequential correction processing of image data;
A first image data correction process for obtaining output image data for input image data by accessing the first storage device and performing arithmetic processing using the three-dimensional lookup table; and the second storage device The second image data correction process for obtaining the output image data by performing the sequential correction process of the input image data by reading and executing the correction process program from is selectively performed by the processing device according to the value of the correction parameter. A second step to perform;
An image processing method comprising:
前記第1又は第2の画像データ補正処理を選択的に実行する前記第2の過程は、前記補正パラメータの値が所定範囲内に含まれるか否かの判断結果に基づいて行われるものであることを特徴とする請求項10に記載の画像処理方法。   The second step of selectively executing the first or second image data correction process is performed based on a determination result of whether or not the value of the correction parameter is included in a predetermined range. The image processing method according to claim 10. 前記補正パラメータの値が所定範囲内に含まれるか否かの判断は、前記補正パラメータにより決定される入力画像データの値と出力画像データの値との差の絶対値が所定範囲内の値であるか否かを各補正パラメータごとに識別することによって行われることを特徴とする請求項11に記載の画像処理方法。   Whether or not the value of the correction parameter is included within a predetermined range is determined based on whether the absolute value of the difference between the input image data value and the output image data value determined by the correction parameter is within the predetermined range. The image processing method according to claim 11, wherein the image processing method is performed by identifying whether each correction parameter exists. 前記補正パラメータの値が所定範囲内に含まれるか否かの判断は、入力画像データと出力画像データとの関係を示す補正曲線の変化が所定の想定範囲を超えた急峻なものでないか否かを識別することによって行われることを特徴とする請求項11に記載の画像処理方法。   The determination as to whether or not the value of the correction parameter is included within a predetermined range is whether or not the change in the correction curve indicating the relationship between the input image data and the output image data is not steep beyond a predetermined assumed range. The image processing method according to claim 11, wherein the image processing method is performed by identifying. 前記第1又は第2の画像データ補正処理を選択的に実行する前記第2の過程は、前記判断の結果、前記補正パラメータの値が所定範囲内に含まれる場合は、前記第1の画像データ補正処理を実行し、前記補正パラメータの値が所定範囲内に含まれない場合は、前記第2の画像データ補正処理を実行するものであることを特徴とする請求項11乃至13のいずれかに記載の画像処理方法。   In the second step of selectively executing the first or second image data correction process, if the value of the correction parameter is included in a predetermined range as a result of the determination, the first image data The correction process is executed, and when the value of the correction parameter is not within a predetermined range, the second image data correction process is executed. The image processing method as described. 前記補正パラメータの値が所定範囲内に含まれるか否かの判断は、印刷ページデータファイルの印刷ライン位置ごとの画像データファイルの検索によって印刷ページデータファイルに含まれる各画像データファイルがそれぞれ最初に発見されたときに行われることを特徴とする請求項11乃至14のいずれかに記載の画像処理方法。   Whether or not the value of the correction parameter is included in the predetermined range is determined by searching each image data file included in the print page data file by searching the image data file for each print line position of the print page data file. The image processing method according to claim 11, wherein the image processing method is performed when the image is discovered. 前記第2の画像データ補正処理は、トーンカーブ補正、彩度補正及び記憶色補正の一部又は全部を含む画像データ補正処理であり、前記第1の画像データ補正処理は、前記第2の画像データ補正処理と同等の補正結果を得るべく行われる演算処理による画像データ補正処理であることを特徴とする請求項10乃至15のいずれかに記載の画像処理方法。   The second image data correction process is an image data correction process including a part or all of tone curve correction, saturation correction, and memory color correction, and the first image data correction process is the second image data correction process. 16. The image processing method according to claim 10, wherein the image processing method is an image data correction process based on an arithmetic process performed to obtain a correction result equivalent to the data correction process.
JP2006088311A 2006-03-28 2006-03-28 Image processing apparatus and image processing method Pending JP2007266920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006088311A JP2007266920A (en) 2006-03-28 2006-03-28 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006088311A JP2007266920A (en) 2006-03-28 2006-03-28 Image processing apparatus and image processing method

Publications (1)

Publication Number Publication Date
JP2007266920A true JP2007266920A (en) 2007-10-11

Family

ID=38639485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006088311A Pending JP2007266920A (en) 2006-03-28 2006-03-28 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP2007266920A (en)

Similar Documents

Publication Publication Date Title
US8290259B2 (en) Device adaptively switching color emphasis processing for image
US7302118B2 (en) Transformation of images
Nguyen et al. RAW image reconstruction using a self-contained sRGB-JPEG image with only 64 KB overhead
US7130462B2 (en) Output and store processed image data
JP4978378B2 (en) Image processing device
JP2010278708A (en) Image processing apparatus and method, and computer program
JP5534832B2 (en) Image processing apparatus, image processing method, and program
CN102422628A (en) Image processing method and image processing apparatus
US20040258301A1 (en) Lossy JPEG compression/reconstruction using principal components transformation
JP2007295416A (en) Image processing method and image processing apparatus
US7860325B2 (en) Image processing apparatus and image processing method for parallel decompression of image files
JP2007074414A (en) Color processing method and its device
US7720293B2 (en) Image processing apparatus, printing apparatus and image processing method
US20080044099A1 (en) Image processing device that quickly performs retinex process
US20100164980A1 (en) Converting digital values corresponding to colors of an image from a source color space to a destination color space
US7570822B2 (en) Image processing apparatus, printer and control method of the image processing
US7251360B2 (en) Look-up table generation method, computer program, and imaging apparatus
KR20090085195A (en) Method and apparatus for generating thumbnail image
JP5693089B2 (en) Image processing apparatus and image processing apparatus control method
JP2007266920A (en) Image processing apparatus and image processing method
JP2007266914A (en) Image processing apparatus and image processing method
JP6462990B2 (en) Image processing apparatus and method
US7729508B2 (en) Modifying data
JP2007295259A (en) Image processing apparatus and image processing method
JP2004222078A (en) Image processor, image processing method, and program thereof