JP2011138393A - Image processor and image processing method - Google Patents

Image processor and image processing method Download PDF

Info

Publication number
JP2011138393A
JP2011138393A JP2009298831A JP2009298831A JP2011138393A JP 2011138393 A JP2011138393 A JP 2011138393A JP 2009298831 A JP2009298831 A JP 2009298831A JP 2009298831 A JP2009298831 A JP 2009298831A JP 2011138393 A JP2011138393 A JP 2011138393A
Authority
JP
Japan
Prior art keywords
color space
image
images
expressed
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009298831A
Other languages
Japanese (ja)
Other versions
JP5411692B2 (en
JP2011138393A5 (en
Inventor
Takeshi Sekiya
岳史 関谷
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 JP2009298831A priority Critical patent/JP5411692B2/en
Publication of JP2011138393A publication Critical patent/JP2011138393A/en
Publication of JP2011138393A5 publication Critical patent/JP2011138393A5/ja
Application granted granted Critical
Publication of JP5411692B2 publication Critical patent/JP5411692B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Image Communication Systems (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce the computational complexity for converting a color space when transparently combining a large-volume spectral image with another image, by solving the conventional method of transparently combining superimposed object images, which requires color space conversion. <P>SOLUTION: The image processor is configured to determine a color space of each of input object images to be transparently combined (S403, F404), and to, when the color space is a LabPQR color space, convert the LabPQR color space into an RGB color space by using only Lab components without using any PQR component showing spectral information components (S405), and to transparently combine, when the conversion of all object images into the RGB color space ends, the object images (S409). <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、複数のオブジェクト画像が重なった領域の透過合成処理を行う画像処理装置および画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method for performing transparent composition processing on a region where a plurality of object images overlap.

被写体をカメラで撮影しプリンタで出力した出力画像を、オリジナルの被写体と比較した場合、ある環境光下では見た目が同じであっても、別の環境光下では見た目が異なってしまうことがある。この現象はメタメリズムと呼ばれ、被写体の分光反射率と、出力画像の分光反射率とが異なることに起因する。近年、被写体をマルチバンドカメラで撮影することによって、その分光反射率を分光情報として取得し、特色インクを搭載したプリンタによって該分光情報に応じた出力を行うことで、メタメリズムを解決する方法が提案されている。   When an output image obtained by photographing a subject with a camera and outputting it with a printer is compared with an original subject, the appearance may be the same under a certain ambient light, but the appearance may be different under another ambient light. This phenomenon is called metamerism, and is caused by the difference between the spectral reflectance of the subject and the spectral reflectance of the output image. In recent years, a method has been proposed for solving metamerism by capturing a subject with a multiband camera, obtaining its spectral reflectance as spectral information, and performing output according to the spectral information using a printer equipped with special color ink. Has been.

しかしながら、分光情報は、従来の三刺激値を用いた色再現による色情報に比べ、著しくデータ量が増加するという問題がある。この問題を解決するために、6次元のLabPQRという色空間を用いて分光情報を圧縮する方法が提案されている(非特許文献1参照)。LabPQR色空間は、基本刺激値L*a*b*成分を含んでいるため、特に分光情報を必要しないユーザにとっても扱いやすい形式であるという特徴がある。以降、基本刺激値L*a*b*を必要に応じてLabと記載する。   However, the spectral information has a problem that the data amount is remarkably increased as compared with the color information obtained by color reproduction using the conventional tristimulus values. In order to solve this problem, a method of compressing spectral information using a 6-dimensional LabPQR color space has been proposed (see Non-Patent Document 1). Since the LabPQR color space includes the basic stimulus value L * a * b * components, the LabPQR color space has a feature that it is easy to handle even for users who do not require spectroscopic information. Hereinafter, the basic stimulus value L * a * b * is described as Lab as necessary.

このような分光情報を含む画像(以下、分光画像)のユースケースとして、例えば絵画等の文化遺産の複製が考えられる。このようなユースケースにおいては、通常のカメラによって取得した基本刺激値のみを用いて文化遺産を複製するとメタメリズムが発生しうるため、分光情報を用いることが望ましい。   As a use case of an image including such spectral information (hereinafter referred to as a spectral image), for example, reproduction of a cultural heritage such as a painting can be considered. In such a use case, it is desirable to use spectral information because metamerism can occur when a cultural heritage is replicated using only basic stimulus values acquired by a normal camera.

図11は、マルチバンドカメラによって取得した文化遺産の分光情報を一度LabPQRに圧縮し、特色インクプリンタで印刷して複製する場合の主な処理の流れを示す図である。マルチバンドカメラ1101で取得された分光情報1102は、分光情報圧縮処理1103によって、LabPQRで表された画像1104に圧縮される。LabPQRで表された画像1104は、色材量データ変換処理1105によって色材量データ1106に変換される。色材量データ1106は、特色インクプリンタ1107によって印刷される。LabPQRは、非圧縮の分光情報に比べデータ量が小さいので、データを転送する場合や、保存する場合に有利である。   FIG. 11 is a diagram showing a main processing flow when spectral information of cultural heritage acquired by a multiband camera is once compressed into LabPQR, printed by a special color ink printer, and copied. The spectral information 1102 acquired by the multiband camera 1101 is compressed into an image 1104 represented by LabPQR by the spectral information compression processing 1103. An image 1104 represented by LabPQR is converted into color material amount data 1106 by a color material amount data conversion process 1105. The color material amount data 1106 is printed by the special color ink printer 1107. LabPQR is advantageous when transferring or storing data because the amount of data is smaller than that of uncompressed spectral information.

また、分光画像の別のユースケースとして、商品のカタログ印刷が考えられる。ここで、通信販売のカタログを見てカーテンを注文する、というケース考える。このような場合、現状の三刺激値を用いた色再現システムでは、カタログ上での色と、購入者がカーテンの実物を実際に使用する環境光下においた際に見える色とが異なってしまうことがある。   Another possible use case for spectral images is to print product catalogs. Here, consider a case where a curtain is ordered by looking at a catalog of mail order sales. In such a case, in the current color reproduction system using tristimulus values, the color on the catalog and the color that the purchaser sees when the actual curtain is used in the ambient light are different. Sometimes.

このようなカタログと実物との色の違いを解決するためには、マルチバンドカメラで取得したカーテンの分光画像を、カタログ写真として印刷すれば良い。これにより、カタログ写真がカーテンの実物とほぼ同じ分光反射率を有することになるため、購入者が実際に使用する環境光下でカタログを見ることで、カーテンの色を確認することができる。   In order to solve such a color difference between the catalog and the actual product, a spectral image of the curtain acquired by the multiband camera may be printed as a catalog photo. As a result, the catalog photograph has substantially the same spectral reflectance as the actual curtain, so that the color of the curtain can be confirmed by viewing the catalog under the ambient light that the purchaser actually uses.

このようなカタログ作成システムにおける処理の流れは、例えば以下のようになる。まず、マルチバンドカメラによって分光画像を取得し、編集アプリケーションによって、分光画像とコンピュータグラフィクスや文字を一緒に加工して印刷データを作成する。この印刷データは、RIP(Raster Image Processor)によって色材量データに変換され、特色インクプリンタによって該色材量データが印刷される。なお、文化遺産の複製とは異なり、カタログの印刷データは分光画像の他にコンピュータグラフィクスや文字等を含むため、より高度なRIPが必要になる。以降、印刷データに含まれる、画像やコンピュータグラフィクス、文字等の要素をまとめてオブジェクト画像と称する。   The flow of processing in such a catalog creation system is as follows, for example. First, a spectral image is acquired by a multiband camera, and print data is created by processing the spectral image together with computer graphics and characters using an editing application. The print data is converted into color material amount data by a RIP (Raster Image Processor), and the color material amount data is printed by a special color ink printer. In contrast to cultural heritage reproduction, catalog print data includes computer graphics, text, etc. in addition to spectral images, and therefore requires a more advanced RIP. Hereinafter, elements such as images, computer graphics, and characters included in the print data are collectively referred to as object images.

M.Derhak,M.Rosen,"Spectral Colorimetry Using LabPQR-An Interim Connection Space"。「Color Imaging Conference 2004」米国、Imaging Science and Technology,2004.Nov.page246-250M. Derhak, M. Rosen, "Spectral Colorimetry Using LabPQR-An Interim Connection Space". "Color Imaging Conference 2004" USA, Imaging Science and Technology, 2004.Nov.page246-250

分光画像が上述したLabPQRで表されていた場合、RIPにおいては、該分光画像を単なる多チャンネル画像として扱うことが可能である。しかしながら、圧縮されているとはいえLabPQRは6チャネルであり、通常の画像が3チャネルないし4チャネルであることを考えると、扱うデータ量はかなり増えることになる。   When the spectral image is represented by the above-described LabPQR, the RIP can handle the spectral image as a simple multi-channel image. However, even though it is compressed, LabPQR has 6 channels, and considering that a normal image has 3 or 4 channels, the amount of data handled will increase considerably.

ここで、複数のオブジェクト画像が重なった領域の透過合成処理について考える。RIP内での透過合成処理では、透過合成を行う色同士を同じ色空間に変換する必要があり、通常はRGBで透過合成を行う。したがって、LabPQRで表された分光画像に対して透過合成処理を行う場合には、分光画像の色空間をLabPQRからRGBに変換する必要があり、その演算量は膨大となってしまう。   Here, a transparent composition process for a region where a plurality of object images overlap is considered. In the transparent composition process in the RIP, it is necessary to convert the colors to be transparently combined into the same color space, and normally the transparent composition is performed in RGB. Therefore, when performing transmission composition processing on a spectral image represented by LabPQR, it is necessary to convert the color space of the spectral image from LabPQR to RGB, and the amount of calculation becomes enormous.

ただし、分光画像に対して透過合成処理を施すようなユーザであれば、環境光によらず実物と近い色が再現できるという分光画像の特徴をもはや求めていないものと考えられる。したがって、分光画像に対する従来の透過合成処理においては、基本三刺激値を用いた色再現精度が得られれば十分であるにも関わらず、分光情報をも含めた膨大な演算量をこなす必要があった。   However, it is considered that a user who performs a transmission / combination process on a spectral image no longer seeks a characteristic of the spectral image that can reproduce a color close to the real object regardless of ambient light. Therefore, in the conventional transmission composition processing for spectral images, it is sufficient if the color reproduction accuracy using the basic tristimulus values is obtained, but it is necessary to perform a huge amount of calculation including spectral information. It was.

本発明は上述した問題を解決するためになされたものであり、被写体の分光反射率を用いて表現された画像に対し、他の画像との透過合成処理を行う際に、演算量を削減可能な画像処理装置および画像処理方法を提供することを目的とする。   The present invention has been made to solve the above-described problems, and the amount of calculation can be reduced when an image expressed using the spectral reflectance of a subject is subjected to a transmission composition process with another image. An object of the present invention is to provide an image processing apparatus and an image processing method.

上記目的を達成するための一手段として、本発明の画像処理装置は以下の構成を備える。   As a means for achieving the above object, an image processing apparatus of the present invention comprises the following arrangement.

すなわち、被写体の撮影時に取得した分光反射率を示す分光情報を用いて表現された該被写体の画像に対し、他の画像を透過合成する画像処理装置であって、合成対象となる複数の画像のそれぞれについて、画像を表現する色空間が、刺激値を示す基本成分と分光情報を示す追加成分から構成される第1の色空間であるか否かを判定する色空間判定手段と、前記複数の画像のうち、前記色空間判定手段により前記第1の色空間で表現されていると判定された画像を、該第1の色空間における前記基本成分の値のみを用いて第2の色空間で表現される画像に変換する第1の色空間変換手段と、前記複数の画像のうち、前記色空間判定手段により前記第1の色空間で表現されていないと判定された画像を、前記第2の色空間で表現される画像に変換する第2の色空間変換手段と、前記第1および第2の色空間変換手段により前記第2の色空間に変換された前記複数の画像を、該第2の色空間上で透過合成する合成手段と、を有することを特徴とする。   That is, an image processing apparatus that transmits and combines other images with respect to an image of the subject expressed using spectral information indicating the spectral reflectance acquired at the time of shooting of the subject, and includes a plurality of images to be combined. A color space determination unit that determines whether or not a color space that represents an image is a first color space that includes a basic component that indicates a stimulus value and an additional component that indicates spectral information; Among the images, an image determined by the color space determination unit to be expressed in the first color space is converted into the second color space using only the value of the basic component in the first color space. First color space conversion means for converting into an image to be expressed; and, among the plurality of images, an image determined by the color space determination means as not being expressed in the first color space Change to an image expressed in the color space of Second color space converting means for combining, and the plurality of images converted into the second color space by the first and second color space converting means for transparent composition on the second color space And means.

上記構成からなる本発明によれば、被写体の分光反射率を用いて表現された画像に対し、他の画像との透過合成処理を行う際に、色空間変換すべきデータ量が削減され、演算量を大幅に削減することが可能である。   According to the present invention having the above-described configuration, when the image expressed using the spectral reflectance of the subject is subjected to the transmission composition process with another image, the amount of data to be color space converted is reduced, and the calculation is performed. The amount can be greatly reduced.

第1実施形態におけるシステム構成を示す図、The figure which shows the system configuration | structure in 1st Embodiment. 第1実施形態における機能構成を示すブロック図、The block diagram which shows the function structure in 1st Embodiment, 第1実施形態の描画部における機能構成を示すブロック図、The block diagram which shows the function structure in the drawing part of 1st Embodiment, 第1実施形態における透過合成処理を示すフローチャート、The flowchart which shows the transparent composition process in 1st Embodiment, 第1実施形態において互いに重なったオブジェクトの分割例を示す図、The figure which shows the example of a division | segmentation of the object which mutually overlapped in 1st Embodiment. 第1実施形態における分割前の各オブジェクトのデータ構造を示す図、The figure which shows the data structure of each object before the division | segmentation in 1st Embodiment, 第1実施形態における分割後の各オブジェクトのデータ構造を示す図、The figure which shows the data structure of each object after the division | segmentation in 1st Embodiment, 第1実施形態における分割後の各領域に対する処理概要を示す図、The figure which shows the process outline | summary with respect to each area | region after the division | segmentation in 1st Embodiment, 第1実施形態における色空間変換後のオブジェクトのデータ構造を示す図、The figure which shows the data structure of the object after color space conversion in 1st Embodiment. 第1実施形態における表示メッセージ例を示す図、The figure which shows the example of the display message in 1st Embodiment. マルチバンドカメラと特色インクプリンタを用いた印刷システムの主な処理を示す図、である。It is a figure which shows the main processes of the printing system using a multiband camera and a special color ink printer.

以下、本発明の実施形態について、図面を参照して説明する。なお、以下の実施の形態は特許請求の範囲に関る本発明を限定するものではなく、また、本実施の形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. The following embodiments do not limit the present invention related to the scope of claims, and all combinations of features described in the present embodiments are essential to the solution means of the present invention. Not necessarily.

<第1実施形態>
本実施形態においては、被写体の撮影時に取得した分光反射率を示す分光情報を用いて表現された該被写体の画像に対し、他の画像を透過合成する。図1は、本実施形態が適用される画像処理システムの構成を示すブロック図である。同図において、101は中央演算装置(CPU)、102は主記憶装置(メインメモリ)、103は補助記憶装置(例えば、ハードディスク)である。104は入力装置(例えば、マウス、キーボード、プリンタ制御パネル)、105は表示装置(例えば、ディスプレイ、液晶パネル)、106は画像形成装置(プリンタエンジン)、107はバスである。補助記憶装置103には、プリンタドライバをはじめとするプログラムやデータが記憶されている。これらのプログラムならびにデータは、入力装置104からの信号に基づきCPU101の制御のもと、バス107を通じて適宜主記憶装置102に読み込まれ、CPU101によって実行される。なお、本実施形態における透過合成処理は、プリンタドライバによって行われる。印刷プレビューなどは適宜表示装置105に表示される。入力装置104からの信号によっては、主記憶装置に記憶されたデータが、バス107を通じて画像形成装置106に送られ印刷される。
<First Embodiment>
In the present embodiment, another image is transparently combined with the image of the subject expressed using the spectral information indicating the spectral reflectance acquired at the time of photographing the subject. FIG. 1 is a block diagram showing a configuration of an image processing system to which the present embodiment is applied. In the figure, 101 is a central processing unit (CPU), 102 is a main storage device (main memory), and 103 is an auxiliary storage device (for example, a hard disk). Reference numeral 104 denotes an input device (eg, mouse, keyboard, printer control panel), 105 denotes a display device (eg, display, liquid crystal panel), 106 denotes an image forming apparatus (printer engine), and 107 denotes a bus. The auxiliary storage device 103 stores a program and data including a printer driver. These programs and data are appropriately read into the main storage device 102 through the bus 107 and executed by the CPU 101 under the control of the CPU 101 based on signals from the input device 104. Note that the transparent composition processing in this embodiment is performed by a printer driver. A print preview or the like is displayed on the display device 105 as appropriate. Depending on the signal from the input device 104, the data stored in the main storage device is sent to the image forming device 106 through the bus 107 and printed.

図2は、本実施形態における印刷処理、すなわち、生成された印刷データをプリンタドライバによってラスタライズし、印刷するまでの処理を行う機能構成を示す図である。まず、印刷データ生成部205によって生成された印刷データ206は、印刷データ解釈部207で解釈される。一方、入力部201からドライバUI入力部202(UI:User Interface)に入力された操作内容は、印刷設定として印刷データ解釈部207に渡される。ドライバUI入力部202に入力された操作内容に応じた処理結果は、適宜ドライバUI出力部203に反映され、表示部204に出力される。印刷データ解釈部207によって生成された描画命令は、描画部208に渡されてレンダリングされる。描画部208から出力されるレンダリングの結果である色材量データ209は、出力部210に送られ、印刷される。   FIG. 2 is a diagram showing a functional configuration for performing printing processing according to the present embodiment, that is, processing for rasterizing generated print data by a printer driver and printing. First, the print data 206 generated by the print data generation unit 205 is interpreted by the print data interpretation unit 207. On the other hand, the operation content input from the input unit 201 to the driver UI input unit 202 (UI: User Interface) is passed to the print data interpretation unit 207 as print settings. The processing result corresponding to the operation content input to the driver UI input unit 202 is appropriately reflected in the driver UI output unit 203 and output to the display unit 204. The drawing command generated by the print data interpretation unit 207 is passed to the drawing unit 208 and rendered. Color material amount data 209 that is a rendering result output from the drawing unit 208 is sent to the output unit 210 and printed.

図3は、図2における描画部208内での主な機能構成を示す図である。印刷データ解釈部207が生成した描画命令は、オブジェクト選択部301に渡される。オブジェクト選択部301では、描画命令中の透過合成処理が必要なオブジェクト画像(以下、オブジェクト)が選択される。選択された個々のオブジェクトは、領域分割部302において領域分割される。色空間判定部303は、必要な領域について色空間の判定を行う部分である。色空間変換部304は、色空間判定部303における判定結果に基づき、必要なオブジェクトについて色空間変換を行う部分である。通知処理部305は、色空間変換部304によって特定の色空間変換が行われた場合に、その旨を報知するためにドライバUI出力部203に対してメッセージを出力する部分である。透過合成処理部306は、同じ色空間で表現された複数のオブジェクトを透過合成する部分である。データ変換部307は、所定の色空間で表現された画像データから、印刷時に使用される色材の量を示す色材量データ209への変換を行う部分である。   FIG. 3 is a diagram showing a main functional configuration in the drawing unit 208 in FIG. The drawing command generated by the print data interpretation unit 207 is passed to the object selection unit 301. The object selection unit 301 selects an object image (hereinafter referred to as an object) that requires a transparent composition process in the drawing command. The selected individual object is divided into regions by the region dividing unit 302. The color space determination unit 303 is a part that determines a color space for a necessary region. The color space conversion unit 304 is a part that performs color space conversion on a necessary object based on the determination result in the color space determination unit 303. The notification processing unit 305 is a part that outputs a message to the driver UI output unit 203 in order to notify that when a specific color space conversion is performed by the color space conversion unit 304. The transparent composition processing unit 306 is a part that performs transparent composition of a plurality of objects expressed in the same color space. The data conversion unit 307 is a part that converts image data expressed in a predetermined color space into color material amount data 209 that indicates the amount of color material used during printing.

以下、描画部208における、透過合成処理を伴うレンダリング処理について、図4のフローチャートを用いて詳細に説明する。   Hereinafter, the rendering process with the transparent composition process in the rendering unit 208 will be described in detail with reference to the flowchart of FIG.

まずS401でオブジェクト選択部301において、合成対象となるオブジェクトの選択を行う。本実施形態では、その一部が重なった2つのオブジェクトが選択される場合を例とする。例えば図5(a)に示すように、そのデータ構造に分光情報を含む不透過な分光画像オブジェクトに、透過なグラフィックオブジェクトが重なる場合について、以下の説明を行うとする。   First, in S401, the object selection unit 301 selects an object to be combined. In the present embodiment, an example is given in which two objects that partially overlap each other are selected. For example, as shown in FIG. 5A, a case where a transparent graphic object overlaps an opaque spectral image object that includes spectral information in its data structure will be described below.

次にS402では領域分割部302において、オブジェクトを分割して、複数のオブジェクトが重なった重なり領域を抽出する。図5(b)に、ここでの分割および抽出例を示す。すなわち、同図に示すように不透過な分光画像オブジェクト501の上に透過なグラフィックオブジェクト502が重なっている場合、これら2つのオブジェクトは、領域503,504,505の3つの領域に分割される。このうちの504が、分光画像オブジェクト501とグラフィックオブジェクト502が重なった重なり領域である。   In step S402, the area dividing unit 302 divides the object and extracts an overlapping area where a plurality of objects overlap. FIG. 5B shows an example of division and extraction here. That is, as shown in the figure, when the transparent graphic object 502 overlaps the opaque spectral image object 501, these two objects are divided into three areas 503, 504, and 505. Of these, 504 is an overlapping region where the spectral image object 501 and the graphic object 502 overlap.

ここで、本実施形態におけるオブジェクトの重なり領域の分割について詳細に説明する。   Here, the division of the overlapping region of the object in the present embodiment will be described in detail.

まず、透過合成処理の対象となる2つのオブジェクト、すなわち分光画像オブジェクト501とグラフィックオブジェクト502は、例えば、図6に示すようなデータ構造で表される。図6(a)は、オブジェクトのエッジ構成を示す図である。ここでエッジとは、x軸方向に沿った走査線と、オブジェクトの輪郭線とが交差するような点の集合であり、例えば直線近似された点列(E1〜E4)として表される。   First, two objects to be subjected to the transparent composition process, that is, the spectral image object 501 and the graphic object 502 are represented by a data structure as shown in FIG. 6, for example. FIG. 6A is a diagram showing an edge configuration of an object. Here, the edge is a set of points at which the scanning line along the x-axis direction intersects with the contour line of the object, and is represented, for example, as a linearly approximated point sequence (E1 to E4).

図6(b)は、分光画像オブジェクト501のデータ構造の一例を示す図である。同図において、Nameは、オブジェクトの名前であり、この例ではObject1である。Edgeは、オブジェクトを形作るエッジの集合であり、分光画像オブジェクト501は、図6(a)から明らかなようにE3とE4によって形作られている。Levelは、オブジェクトの奥行きを示し、より数字が小さいほうが奥にあるオブジェクトである旨を示し、この場合Levelが0であるから、分光画像オブジェクト501は最も奥にあるオブジェクトとして扱われる。FillTypeは、オブジェクトを塗りつぶす方法であり、分光画像オブジェクト501は分光画像によって塗りつぶされるので、ImageFillと表している。FillImageは、塗りつぶすイメージへのポインタであり、分光画像オブジェクト501ではこれがImage1である。このFillImageが示すポインタについては、図6(c)に詳細を示して後述する。FillImageTrasformMatrixは、イメージに対する拡大縮小・回転・変形・移動を行うためのアフィン変換行列を示し、このアフィン変換行列は、元画像の各ピクセルが、出力ラスタ画像のどのピクセルにマップされるかを表している。そしてAlphaは、オブジェクトに設定された透過度を示し、分光画像オブジェクト501は不透過であるため、1が設定される。なお、透過度Alphaは完全透過を示す0から、不透過を示す1の間の値で表されるものとする。   FIG. 6B is a diagram illustrating an example of the data structure of the spectral image object 501. In the figure, Name is the name of an object, which is Object1 in this example. Edge is a set of edges forming the object, and the spectral image object 501 is formed by E3 and E4 as is apparent from FIG. Level indicates the depth of the object, and the smaller number indicates that the object is in the back. In this case, since Level is 0, the spectral image object 501 is treated as the deepest object. FillType is a method of filling an object. Since the spectral image object 501 is filled with a spectral image, it is expressed as ImageFill. FillImage is a pointer to the image to be filled. In the spectral image object 501, this is Image1. The pointer indicated by FillImage will be described later in detail with reference to FIG. FillImageTrasformMatrix indicates an affine transformation matrix for scaling, rotating, transforming, and moving an image. This affine transformation matrix indicates which pixel in the output raster image each pixel of the original image is mapped to. Yes. Alpha indicates the transparency set for the object. Since the spectral image object 501 is opaque, 1 is set. The transparency Alpha is represented by a value between 0 indicating complete transmission and 1 indicating non-transmission.

図6(c)は、上記FillImageに塗潰し対象のイメージへのポインタとして設定されたImage1のデータ構造例を示す図である。同図において、Nameは、塗潰し対象となるイメージの名前である。Typeは、塗潰し対象となるイメージの色空間を表し、分光画像オブジェクト501を塗潰すImage1は分光画像であるので、LabPQRである。nChannelは、色空間のチャネル数であり、LabPQRは6チャネルである。BitDepthは、各チャネルが何ビットで表されるかを示し、Width,Heightはそれぞれ、画像の横のピクセル数、縦のピクセル数を表す。そしてDataは、塗潰し対象のイメージ(Image1)の実際のRAWデータであり、各ピクセルのLabPQRの値が順に格納されている。   FIG. 6C is a diagram showing an example of the data structure of Image1 set as a pointer to the image to be filled in FillImage. In the figure, Name is the name of the image to be filled. Type represents the color space of the image to be filled, and since Image1 for painting the spectral image object 501 is a spectral image, it is LabPQR. nChannel is the number of channels in the color space, and LabPQR is 6 channels. BitDepth indicates how many bits each channel is represented, and Width and Height represent the number of horizontal pixels and the number of vertical pixels, respectively. Data is actual RAW data of the image to be filled (Image1), and the LabPQR value of each pixel is stored in order.

図6(d)は、グラフィックオブジェクト502のデータ構造の一例を示す図である。Name、Edge、Level、FillTypeについては、上述した図6(b)と同様である。例えばEdgeは、グラフィックオブジェクト502は、図6(a)に示すE1とE2によって形作られており、またグラフィックオブジェクト502は分光画像オブジェクト501よりも手前にあるので、Levelは1である。またFillTypeは、グラフィックオブジェクト502は一様に同じ色で塗られているのでFlatFillである。FillColorTypeは、塗る色の色空間を示し、グラフィックオブジェクト502ではRGBである。FillcolorNChannelは、色空間のチャネル数である。FillColorBitDepthは、各チャネルが何ビットで表されるか示す。FillColorDataは、塗潰す色の値である。Alphaは、オブジェクトに設定された透過度であり、グラフィックオブジェクト502は透過であるため、ここでは0.5と表している。   FIG. 6D shows an example of the data structure of the graphic object 502. Name, Edge, Level, and FillType are the same as in FIG. 6B described above. For example, in the edge, the graphic object 502 is formed by E1 and E2 shown in FIG. 6A, and the graphic object 502 is in front of the spectral image object 501, so the level is 1. FillType is FlatFill because the graphic object 502 is uniformly painted with the same color. FillColorType indicates the color space of the color to be painted, and is RGB in the graphic object 502. FillcolorNChannel is the number of channels in the color space. FillColorBitDepth indicates how many bits each channel is represented. FillColorData is the color value to fill. Alpha is the transparency set for the object, and since the graphic object 502 is transparent, it is represented here as 0.5.

図6に示すようなデータ構造からなる分光画像オブジェクト501とグラフィックオブジェクト502が、図4のS402において図5(b)に示すように分割されると、それぞれのデータ構造は図7に示すように変化する。   When the spectral image object 501 and the graphic object 502 having the data structure shown in FIG. 6 are divided as shown in FIG. 5B in S402 of FIG. 4, the respective data structures are as shown in FIG. Change.

まず図7(a)は、分割後のエッジ構成を示したものであり、図6(a)におけるE1がE5とE6に、E4がE7とE8に、それぞれ分割されていることが分かる。   First, FIG. 7A shows an edge configuration after division, and it can be seen that E1 in FIG. 6A is divided into E5 and E6, and E4 is divided into E7 and E8, respectively.

分光画像オブジェクト501は、図5(b)に示すように領域503と504に分割され、この各領域のデータ構造が、図7(b)に示したObject3と、図7(c)に示したObject4である。一方、グラフィックオブジェクト502は領域504と505に分割され、この各領域のデータ構造が、図7(d)に示したObject5と図7(e)に示したObject6である。以降、分割された各領域のデータ構造を、分割オブジェクトと称する。   The spectral image object 501 is divided into regions 503 and 504 as shown in FIG. 5B, and the data structure of each region is shown in Object 3 shown in FIG. 7B and FIG. 7C. Object4. On the other hand, the graphic object 502 is divided into areas 504 and 505, and the data structure of each area is Object5 shown in FIG. 7 (d) and Object6 shown in FIG. 7 (e). Hereinafter, the data structure of each divided area is referred to as a divided object.

図7(b)は、分光画像オブジェクト501を分割した領域503に対する分割オブジェクト(Object3)を示すものであり、その各項目については、図6(b)で説明したものと同様である。Edgeは、図7(a)に示すようにE3とE6+E8とで、領域503を表している。なお、E6+E8の表記により、E6とE8をつなげたEdgeを表す。同様に図7(c)は、分光画像オブジェクト501を分割した領域504に対する分割オブジェクト(Object4)を示すものである。これらObject3およびObject4には、やはりFillImageによる塗潰し対象としてImage1の分光画像が設定されている。   FIG. 7B shows a divided object (Object 3) for the region 503 obtained by dividing the spectral image object 501, and each item is the same as that described in FIG. 6B. As shown in FIG. 7A, Edge represents an area 503 with E3 and E6 + E8. The E6 + E8 notation represents the edge that connects E6 and E8. Similarly, FIG. 7C shows a divided object (Object 4) for the region 504 into which the spectral image object 501 is divided. In these Object3 and Object4, the spectral image of Image1 is also set as an object to be filled with FillImage.

また図7(d)は、グラフィックオブジェクト502を分割した領域505に対する分割オブジェクト(Object5)を示すものであり、その各項目については、図6(d)で説明したものと同様である。また図7(e)は、グラフィックオブジェクト502を分割した領域504に対する分割オブジェクト(Object6)を示すものである。   FIG. 7D shows a divided object (Object 5) for an area 505 obtained by dividing the graphic object 502, and each item is the same as that described in FIG. 6D. FIG. 7E shows a divided object (Object 6) for an area 504 obtained by dividing the graphic object 502. FIG.

S402ではすなわち、複数の分割オブジェクトが共通する領域(Edge)に対して存在する場合に、この領域を重なり領域として抽出する。図5に示す分割例によれば、図7(c),(e)に示すObject4,Object6が、Edgeの値が共通であるため、該Edge(E6,E7)に対応する領域504が、重なり領域として抽出される。   That is, in S402, when a plurality of divided objects exist for a common area (Edge), this area is extracted as an overlapping area. According to the division example shown in FIG. 5, since the values of Edge are the same for Object4 and Object6 shown in FIGS. 7C and 7E, the region 504 corresponding to the Edge (E6 and E7) overlaps. Extracted as a region.

ここで図8に、分割された各領域に対する本実施形態での処理の概要を示す。例えば領域503に対しては、不透過な分光画像オブジェクトであるので、LabPQR色空間上のデータがそのまま色材量データへ変換される。また領域505に対しては、透過なグラフィックオブジェクトであるので、背景と透過合成した後、色材量データへ変換される。そして2つのオブジェクトからなる重なり領域504に対しては、本実施形態の特徴である透過合成処理(図4のS403〜S409)が施された後、色材量データへ変換される。   Here, FIG. 8 shows an outline of processing in the present embodiment for each divided area. For example, since the region 503 is a non-transparent spectral image object, data in the LabPQR color space is directly converted into color material amount data. Further, since the area 505 is a transparent graphic object, it is transparently combined with the background and then converted into color material amount data. Then, the overlapping region 504 composed of two objects is subjected to the transparent composition process (S403 to S409 in FIG. 4), which is a feature of the present embodiment, and then converted into color material amount data.

以下、S402で抽出された重なり領域に対する、本実施形態における透過合成処理(S403〜S409)について説明する。   Hereinafter, the transmission composition processing (S403 to S409) in the present embodiment for the overlapping region extracted in S402 will be described.

S403では色空間判定部303において、S402で抽出された重なり領域に対する複数の分割オブジェクトのひとつ(以下、注目オブジェクト)について、その色空間が透過合成を行うための色空間であるか否か、すなわちRGBであるか否かを判断する。なお、本実施形態ではRGB色空間上で透過合成を行うとするが、もちろん、他の色空間(例えば、CMYK,Lab,XYZ等)上で行うとしても良い。注目オブジェクトの色空間がRGBであれば該注目オブジェクトに対する処理は終了するが、そうでなければS404に進み、注目オブジェクトの色空間が、分光情報を含む第1の色空間であるところのLabPQRであるか否かを判断する。なおLabPQR色空間は上述したように、刺激値を示す基本成分Labと、分光情報を示す追加成分PQRから構成されている。   In S403, in the color space determination unit 303, for one of a plurality of divided objects (hereinafter referred to as the object of interest) for the overlapping area extracted in S402, whether or not the color space is a color space for performing transparent composition, Determine whether it is RGB. In this embodiment, the transmission composition is performed on the RGB color space, but, of course, it may be performed on another color space (for example, CMYK, Lab, XYZ, etc.). If the color space of the object of interest is RGB, the processing for the object of interest ends. If not, the process proceeds to S404, and LabPQR where the color space of the object of interest is the first color space including spectral information Judge whether there is. Note that, as described above, the LabPQR color space is composed of the basic component Lab indicating the stimulus value and the additional component PQR indicating the spectral information.

上記色空間判定の結果、色空間がLabPQRであればS405に進み第1の色空間変換を行う。すなわちS405では色空間変換部304において、LabPQR色空間で表現される注目オブジェクトを、その追加成分PQRは使用せずに基本成分Labのみを用いて、合成用の第2の色空間であるところのRGB色空間に変換する。なおこのとき、PQRを使用せずにRGB色空間への変換が行われた旨を示す変換フラグをONとする。一方、色空間がLabPQRでなければ、S406で第2の色空間変換を行う。すなわちS406では色空間変換部304において、LabPQRでない注目オブジェクトの色空間を、通常の方法で合成用の第2の色空間であるところのRGB色空間に変換する。   As a result of the color space determination, if the color space is LabPQR, the process proceeds to S405 and the first color space conversion is performed. That is, in S405, the color space conversion unit 304 uses the basic component Lab only for the object of interest expressed in the LabPQR color space without using the additional component PQR, and is the second color space for composition. Convert to RGB color space. At this time, the conversion flag indicating that the conversion to the RGB color space has been performed without using PQR is turned ON. On the other hand, if the color space is not LabPQR, the second color space conversion is performed in S406. That is, in S406, the color space conversion unit 304 converts the color space of the object of interest that is not LabPQR into the RGB color space that is the second color space for synthesis by a normal method.

なお、注目オブジェクトの色空間は、該領域のデータ構造におけるFillTypeやFillImage、FillColorType等を参照することで、容易に判定できる。例えば本実施形態の場合、重なり領域504に対する分割オブジェクトとしてObject4とObject6が存在するが、Object4については、そのFillTypeがImageFillであり、FillImageがImage1を指す。したがって、Object4の色空間はImage1のデータよりLabPQRであると判定される。またObject6については、そのFillTypeがFlatFillであり、FillColorTypeがRGBであることから、色空間はRGBであると判定される。したがって、Object4についてはその色空間がLabPQRであるから、S405でPQRを使用せずにRGBに変換さる。一方、Object6についてはその色空間がもともとRGBであるから、S403での判定により変換処理は行われない。   Note that the color space of the object of interest can be easily determined by referring to FillType, FillImage, FillColorType, etc. in the data structure of the area. For example, in the present embodiment, Object4 and Object6 exist as divided objects for the overlapping region 504. For Object4, its FillType is ImageFill, and FillImage indicates Image1. Therefore, the color space of Object4 is determined to be LabPQR from the data of Image1. For Object6, since its FillType is FlatFill and FillColorType is RGB, the color space is determined to be RGB. Therefore, since the color space of Object4 is LabPQR, it is converted to RGB without using PQR in S405. On the other hand, since the color space of Object6 is originally RGB, conversion processing is not performed by the determination in S403.

ここで、S405におけるLabPQRからRGBへの色空間変換について説明する。例えば、本実施形態ではsRGB空間上で透過合成を行うとすると、LabPQRからsRGBへの、PQRを使用しない変換は以下のように行われる。まず、LabPQRからLabへの変換を行う。例えば、(L,a,b,P,Q,R)=(L0,a0,b0,P0,Q0,R0)とすると、(L,a,b)=(L0,a0,b0)として変換する。つまり、LabPQRに含まれるLabの各値そのものを用いる。そして、得られたLabからXYZへの変換を行い、最後にXYZからsRGBへの変換を行う。   Here, the color space conversion from LabPQR to RGB in S405 will be described. For example, in the present embodiment, assuming that transmission composition is performed in the sRGB space, conversion from LabPQR to sRGB without using PQR is performed as follows. First, LabPQR is converted to Lab. For example, if (L, a, b, P, Q, R) = (L0, a0, b0, P0, Q0, R0), it is converted as (L, a, b) = (L0, a0, b0) . That is, each Lab value itself included in LabPQR is used. Then, conversion from the obtained Lab to XYZ is performed, and finally, conversion from XYZ to sRGB is performed.

なお、透過合成を行う色空間はsRGBである必要はなく、例えば、プリンタに固有のデバイスRGBで行ってもよい。この場合、デバイスRGBへの変換は、LUT(Look Up Table)を参照することによって行えば良い。このLUTは例えば、(L,a,b)=(44,69,60)を入力すると、(R,G,B)=(204,0,0)を出力するというような対応関係が、全て、または代表的なL,a,bの組み合わせについて用意されているような3次元のテーブルである。LUTは、実際にプリンタで出力したカラーパッチを測色することで作成可能である。なお、代表的なLab値を備えたLUTを利用する場合等、求めるLab値がテーブル要素として存在しない場合には、その前後の値による補間演算を適用すれば良い。   Note that the color space for transparent composition need not be sRGB, and may be a device RGB unique to the printer, for example. In this case, conversion to the device RGB may be performed by referring to a LUT (Look Up Table). For example, if this LUT inputs (L, a, b) = (44, 69, 60), all the correspondences such as (R, G, B) = (204, 0, 0) are output. Or a three-dimensional table prepared for a typical combination of L, a, and b. The LUT can be created by measuring the color patch actually output from the printer. When the Lab value to be obtained does not exist as a table element, such as when using a LUT having a representative Lab value, an interpolation operation using values before and after that may be applied.

また、S405におけるRGBへの変換方法としては、PQRを全く使用しない方法に限らず、PQRのデータ量を削減するように変換して用いる方法も適用可能である。例えば、LabPQRのPQRとして(0,0,0)や(255,255,255)などの固定値を設定して、LabPQRからRGBへ6次元のLUTを参照して変換を行っても良い。また、PQRの各値を複数の基準値のいずれかに変換した値、例えば1の位を四捨五入して丸めた値を用いて、LabPQRからRGBへ6次元のLUTによる変換を行っても良い。   In addition, the conversion method to RGB in S405 is not limited to a method that does not use PQR at all, and a method that uses conversion so as to reduce the data amount of PQR is also applicable. For example, a fixed value such as (0,0,0) or (255,255,255) may be set as the PQR of LabPQR, and conversion may be performed from LabPQR to RGB with reference to a 6-dimensional LUT. Further, the conversion from LabPQR to RGB may be performed by a 6-dimensional LUT using a value obtained by converting each value of PQR into one of a plurality of reference values, for example, a value obtained by rounding off to the first decimal place.

上述したように本実施形態では、Object4についてLabPQRからRGBへの色空間変換がなされるが、実際に変換されるのは、そのFillImageによって示された、分光画像を示すImage1の分割オブジェクトである。ここで図9に、Image1の色空間をLabPQRからRGBに変換した後のデータ構造を示している。各項目については、図6(c)で説明したものと同様であるが、図9によれば、図6(c)に対してTypeがLabPQRからRGBに変わり、nChannelも6から3に変わっている。また、Dataについても各ピクセルに対してRGB色空間への変換がなされていることが分かる。   As described above, in this embodiment, the color space conversion from LabPQR to RGB is performed for Object4, but what is actually converted is the divided object of Image1 that represents the spectral image indicated by the FillImage. FIG. 9 shows a data structure after the color space of Image1 is converted from LabPQR to RGB. Each item is the same as that described with reference to FIG. 6 (c), but according to FIG. 9, Type changes from LabPQR to RGB and nChannel also changes from 6 to 3 with respect to FIG. 6 (c). Yes. It can also be seen that Data is converted to RGB color space for each pixel.

以上のように注目オブジェクトについてRGBへの色空間変換が終了すると、S407で、S402で抽出された重なり領域に対する全ての分割オブジェクトについて、上記S403〜S406の処理が終了したか否かを判定する。終了していればS408に進むが、未終了であれば未処理の分割オブジェクトを注目オブジェクトとして、S403に戻る。なお、ここではひとつの重なり領域に対する色空間変換処理を行う例を示したが、S402で抽出された重なり領域が複数であれば、もちろんそれぞれの重なり領域に対して、上記S403〜S406による色空間変換を行えば良い。そして、全ての重なり領域に対する処理が終了すると、S408に進む。   As described above, when the color space conversion to RGB is completed for the object of interest, it is determined in S407 whether or not the processing of S403 to S406 has been completed for all the divided objects for the overlapping area extracted in S402. If completed, the process proceeds to S408, but if not completed, the process returns to S403 with the unprocessed divided object as the object of interest. Here, an example in which the color space conversion process is performed on one overlapping area is shown. However, if there are a plurality of overlapping areas extracted in S402, the color space according to S403 to S406 is naturally applied to each overlapping area. Conversion can be performed. Then, when the processing for all the overlapping regions is completed, the process proceeds to S408.

S408では、上記S405においてPQRを使用しない色空間変換が実行されていれば、通知処理部305によって、分光情報を用いずに処理がなされた旨をユーザに通知する。この通知の可否は、S405において変換フラグがONとなったか否かに基づいて行えば良い。ここで図10に、この変換通知として表示装置105に表示するポップアップメッセージの一例を示す。同図によれば、印刷中のページ番号を示すとともに、透過合成処理の際に分光情報を落とした部分がある旨がユーザに通知される。なお、S405における変換がなされなかった場合には、通知そのものを行わないか、または図10のように印刷ページの表示のみを行う。   In S408, if color space conversion that does not use PQR is performed in S405, the notification processing unit 305 notifies the user that processing has been performed without using spectral information. This notification may be made based on whether or not the conversion flag is turned on in S405. FIG. 10 shows an example of a pop-up message displayed on the display device 105 as the conversion notification. According to the figure, the page number being printed is shown, and the user is notified that there is a part where the spectral information has been dropped during the transmission composition process. If the conversion in S405 is not performed, the notification itself is not performed, or only the print page is displayed as shown in FIG.

次にS409で透過合成処理部306において、S402で抽出された重なり領域504に対する透過合成処理を、第2の色空間上、すなわちRGB色空間上で行う。この透過合成処理は以下のように行われる。例えば、重なり領域504における、分光画像オブジェクト501に対応するピクセルのRGB値を(Rb,Gb,Bb)、グラフィックオブジェクト502の対応するピクセルのRGB値を(Rf,Gf,Bf)とする。さらに、グラフィックオブジェクト502に設定された透過度を示すAlphaの値をαとすると、合成後の値、すなわち合成画像のRGB値(R,G,B)は以下のように算出される。   Next, in S409, the transmission composition processing unit 306 performs the transmission composition processing for the overlapping region 504 extracted in S402 in the second color space, that is, the RGB color space. This transmission composition processing is performed as follows. For example, the RGB value of the pixel corresponding to the spectral image object 501 in the overlapping region 504 is (Rb, Gb, Bb), and the RGB value of the pixel corresponding to the graphic object 502 is (Rf, Gf, Bf). Further, if the Alpha value indicating the transparency set in the graphic object 502 is α, the value after synthesis, that is, the RGB value (R, G, B) of the synthesized image is calculated as follows.

R=α×Rf+(1-α)×Rb
G=α×Gf+(1-α)×Gb
B=α×Bf+(1-α)×Bb
そしてS410でデータ変換部307において、S409での合成結果として算出された合成画像のRGB値を、印刷用の色材量データへ変換する。本実施形態において透過合成計算後の色空間はRGBであるので、RGB値から色材量データへの変換は、予め与えられたLUTを用いて行えば良い。なお、この色材量変換に用いられるLUTは、予め印刷したパッチを測色することで作成される。
R = α × Rf + (1-α) × Rb
G = α × Gf + (1-α) × Gb
B = α × Bf + (1-α) × Bb
In S410, the data conversion unit 307 converts the RGB value of the composite image calculated as the composite result in S409 into color material amount data for printing. In this embodiment, since the color space after the transmission composition calculation is RGB, conversion from RGB values to color material amount data may be performed using a LUT given in advance. The LUT used for this color material amount conversion is created by measuring the color of a preprinted patch.

なお、S403〜S409は2つのオブジェクトが重なった重なり領域504についての処理であり、該重なり領域以外、すなわちオブジェクトが重ならない他の領域については上述したように、そのまま色材量データへの変換が行われる。すなわちS410ではデータ変換部307において、領域503については不透過な分光画像オブジェクトであるので、LabPQR色空間からそのまま色材量データへ変換する。また領域505については透過なグラフィックオブジェクトであるので、背景と透過合成した後、色材量データへ変換する。   Note that S403 to S409 are processing for the overlapping area 504 where two objects overlap each other. As described above, other areas where the objects do not overlap, ie, other areas where the objects do not overlap, can be converted into color material amount data as they are. Done. That is, in S410, since the region 503 is a non-transparent spectral image object in the data conversion unit 307, the LabPQR color space is directly converted into color material amount data. Since the area 505 is a transparent graphic object, it is transparently combined with the background and then converted to color material amount data.

以上説明したように本実施形態によれば、分光画像を含むオブジェクトが重なった領域において、第1の色空間であるLabPQRから第2の色空間であるRGB色空間への変換の際に、PQR成分を使用せずにLab成分のみからRGB色空間へ変換する。したがって、この変換を演算によって行う場合、LabPQRからRGBへの変換は通常は6次元から3次元への変換であるが、本実施形態ではPQRを使用しないことによって3次元から3次元への変換になるため、演算量が削減できる。また、この変換をLUTを用いて行う場合にも、通常は6次元から3次元へのLUTが必要であるが、本実施形態では3次元から3次元へのLUTを用意すれば良い。もしくは、6次元から3次元へのLUTを用いるとしても、PQRとして固定値や丸め値を用いることでそのとりうる値の幅が小さくなるため、LUTのサイズが小さくて済む。   As described above, according to the present embodiment, in the region where the objects including the spectral images are overlapped, PQR is converted when converting from LabPQR, which is the first color space, to RGB color space, which is the second color space. Convert from Lab component only to RGB color space without using component. Therefore, when this conversion is performed by calculation, the conversion from LabPQR to RGB is usually a conversion from 6 dimensions to 3 dimensions, but in this embodiment, conversion from 3 dimensions to 3 dimensions is performed by not using PQR. Therefore, the calculation amount can be reduced. Also, when this conversion is performed using an LUT, a 6-dimensional to 3-dimensional LUT is usually required, but in this embodiment, a 3-dimensional to 3-dimensional LUT may be prepared. Alternatively, even when a 6-dimensional to 3-dimensional LUT is used, the range of possible values is reduced by using a fixed value or a rounded value as the PQR, so that the LUT size can be reduced.

<変形例>
なお、本実施形態では透過合成処理をプリンタドライバによって行う例を示したが、同処理をプリンタコントローラにおいて行うことも可能である。この場合、システム構成は図1と同様であるが、その機能構成としては、図2におけるドライバUI入力部202およびドライバUI出力部203がそれぞれコントローラUI入力部、コントローラUI出力部となる。そしてさらに、印刷データを生成していた印刷データ生成部205が、既に生成されている印刷データを読み出すデータ読み出し部となる。また、プリンタコントローラでの透過合成処理も、上述した図4のフローチャートと同様である。ただし、S405でユーザ通知として表示されるポップアップメッセージはプリンタ制御パネルに表示され、図10で示すような印刷中のページ番号は通知されないが、透過合成処理の際に分光情報を落とした部分がある旨は同様に通知される。
<Modification>
In this embodiment, an example in which the transparent composition process is performed by the printer driver has been described, but the same process can be performed by the printer controller. In this case, the system configuration is the same as that in FIG. 1, but as the functional configuration, the driver UI input unit 202 and the driver UI output unit 203 in FIG. 2 become a controller UI input unit and a controller UI output unit, respectively. Further, the print data generation unit 205 that has generated the print data serves as a data reading unit that reads the print data that has already been generated. Also, the transparent composition processing in the printer controller is the same as the flowchart of FIG. 4 described above. However, the pop-up message displayed as a user notification in S405 is displayed on the printer control panel, and the page number being printed as shown in FIG. 10 is not notified, but there is a part where the spectral information is dropped during the transparent composition process. The fact is notified in the same manner.

また、本実施形態では、オブジェクトを分割し、重なりのあるオブジェクトについてのみ、RGB色空間への変換を行う例を示したが、オブジェクトを分割せずに、オブジェクト全体をRGB色空間に変換するようにしても良い。   In this embodiment, an example is shown in which an object is divided and only an overlapping object is converted to the RGB color space. However, the entire object is converted to the RGB color space without dividing the object. Anyway.

また、本実施形態では、印刷データを色材量データにラスタライズする例を示したが、分光画像の透過合成処理を含むような処理であれば、このようなラスタライズ処理に限らない。例えば、印刷データの一部のみをラスタライズ、透過合成処理した後、また別の印刷データに変換するようなシステムに本発明を適用しても良い。   In this embodiment, an example in which print data is rasterized into color material amount data has been described. However, the present invention is not limited to such rasterization processing as long as the processing includes transmission image synthesis processing of spectral images. For example, the present invention may be applied to a system in which only a part of print data is rasterized and transparently combined and then converted to another print data.

また、本実施形態では、分光画像の色空間を全てLabPQRであるとして説明したが、基本刺激値成分と分光追加情報成分とで構成されるような色空間であれば、本発明が適用可能である。   In this embodiment, the spectral image color space is all described as LabPQR. However, the present invention is applicable to any color space that includes a basic stimulus value component and a spectral additional information component. is there.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (11)

被写体の撮影時に取得した分光反射率を示す分光情報を用いて表現された該被写体の画像に対し、他の画像を透過合成する画像処理装置であって、
合成対象となる複数の画像のそれぞれについて、画像を表現する色空間が、刺激値を示す基本成分と分光情報を示す追加成分から構成される第1の色空間であるか否かを判定する色空間判定手段と、
前記複数の画像のうち、前記色空間判定手段により前記第1の色空間で表現されていると判定された画像を、該第1の色空間における前記基本成分の値のみを用いて第2の色空間で表現される画像に変換する第1の色空間変換手段と、
前記複数の画像のうち、前記色空間判定手段により前記第1の色空間で表現されていないと判定された画像を、前記第2の色空間で表現される画像に変換する第2の色空間変換手段と、
前記第1および第2の色空間変換手段により前記第2の色空間に変換された前記複数の画像を、該第2の色空間上で透過合成する合成手段と、
を有することを特徴とする画像処理装置。
An image processing apparatus for transmitting and synthesizing another image with respect to an image of the subject expressed using spectral information indicating the spectral reflectance acquired at the time of photographing the subject,
For each of a plurality of images to be combined, a color for determining whether or not the color space expressing the image is a first color space composed of a basic component indicating a stimulus value and an additional component indicating spectral information Space determination means;
Of the plurality of images, an image determined by the color space determining means to be expressed in the first color space is used as a second image using only the value of the basic component in the first color space. First color space conversion means for converting into an image expressed in a color space;
A second color space that converts an image that is determined not to be expressed in the first color space by the color space determination unit among the plurality of images to an image that is expressed in the second color space. Conversion means;
Combining means for transmitting and synthesizing the plurality of images converted into the second color space by the first and second color space conversion means on the second color space;
An image processing apparatus comprising:
被写体の撮影時に取得した分光反射率を示す分光情報を用いて表現された該被写体の画像に対し、他の画像を透過合成する画像処理装置であって、
合成対象となる複数の画像のそれぞれについて、画像を表現する色空間が、刺激値を示す基本成分と分光情報を示す追加成分から構成される第1の色空間であるか否かを判定する色空間判定手段と、
前記複数の画像のうち、前記色空間判定手段により前記第1の色空間で表現されていると判定された画像を、該第1の色空間における前記基本成分の値と、データ量を削減するように変換した前記追加成分の値とを用いて、第2の色空間で表現される画像に変換する第1の色空間変換手段と、
前記複数の画像のうち、前記色空間判定手段により前記第1の色空間で表現されていないと判定された画像を、前記第2の色空間で表現される画像に変換する第2の色空間変換手段と、
前記第1および第2の色空間変換手段により前記第2の色空間に変換された前記複数の画像を、該第2の色空間上で透過合成する合成手段と、
を有することを特徴とする画像処理装置。
An image processing apparatus for transmitting and synthesizing another image with respect to an image of the subject expressed using spectral information indicating the spectral reflectance acquired at the time of photographing the subject,
For each of a plurality of images to be combined, a color for determining whether or not the color space expressing the image is a first color space composed of a basic component indicating a stimulus value and an additional component indicating spectral information Space determination means;
Among the plurality of images, an image determined by the color space determination unit to be expressed in the first color space is reduced in the basic component value and data amount in the first color space. First color space conversion means for converting into an image expressed in a second color space using the value of the additional component converted as described above,
A second color space that converts an image that is determined not to be expressed in the first color space by the color space determination unit among the plurality of images to an image that is expressed in the second color space. Conversion means;
Combining means for transmitting and synthesizing the plurality of images converted into the second color space by the first and second color space conversion means on the second color space;
An image processing apparatus comprising:
前記第1の色空間変換手段は、前記追加成分の値を予め定められた固定値に変換することを特徴とする請求項2に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the first color space conversion unit converts the value of the additional component into a predetermined fixed value. 前記第1の色空間変換手段は、前記追加成分の値を予め定められた複数の基準値のいずれかに変換することを特徴とする請求項2に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the first color space conversion unit converts the value of the additional component into one of a plurality of predetermined reference values. さらに、前記合成手段による前記第2の色空間上での合成結果として得られる合成画像を、該合成画像の印刷時における色材量データへ変換する色材量変換手段を有することを特徴とする請求項1乃至4のいずれか1項に記載の画像処理装置。   Further, the image processing apparatus further comprises color material amount conversion means for converting a composite image obtained as a result of the composition in the second color space by the composition means into color material amount data at the time of printing the composite image. The image processing apparatus according to claim 1. さらに、前記複数の画像が重なった重なり領域を該複数の画像のそれぞれから抽出する抽出手段を有し、
前記第1および第2の色空間変換手段、および前記合成手段、および前記色材量変換手段は、前記複数の画像のそれぞれにおける前記重なり領域について処理を行い、
前記色材量変換手段はさらに、前記複数の画像のそれぞれにおける前記重なり領域以外の領域について、それぞれの色空間上の値から前記色材量データへ変換する
ことを特徴とする請求項5に記載の画像処理装置。
Furthermore, it has an extracting means for extracting an overlapping region where the plurality of images overlap each other from the plurality of images,
The first and second color space conversion means, the synthesis means, and the color material amount conversion means perform processing on the overlapping area in each of the plurality of images,
6. The color material amount conversion unit further converts a value in each color space from a value in each color space into the color material amount data for each of the regions other than the overlapping region in each of the plurality of images. Image processing apparatus.
前記複数の画像のそれぞれは、個々のオブジェクトを示すオブジェクト画像であることを特徴とする請求項1乃至6のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein each of the plurality of images is an object image indicating an individual object. さらに、前記第1の色空間変換手段による変換がなされた場合に、その旨を報知する報知手段を有することを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。   The image processing apparatus according to any one of claims 1 to 7, further comprising an informing unit that informs the user when the conversion by the first color space conversion unit has been performed. 被写体の撮影時に取得した分光反射率を示す分光情報を用いて表現された該被写体の画像に対し、他の画像を透過合成する画像処理方法であって、
合成対象となる複数の画像のそれぞれについて、画像を表現する色空間が、刺激値を示す基本成分と分光情報を示す追加成分から構成される第1の色空間であるか否かを判定する色空間判定ステップと、
前記複数の画像のうち、前記色空間判定ステップにおいて前記第1の色空間で表現されていると判定された画像を、該第1の色空間における前記基本成分の値のみを用いて第2の色空間で表現される画像に変換する第1の色空間変換ステップと、
前記複数の画像のうち、前記色空間判定ステップにおいて前記第1の色空間で表現されていないと判定された画像を、前記第2の色空間で表現される画像に変換する第2の色空間変換ステップと、
前記第1および第2の色空間変換ステップにおいて前記第2の色空間に変換された前記複数の画像を、該第2の色空間上で透過合成する合成ステップと、
を有することを特徴とする画像処理方法。
An image processing method for transmitting and synthesizing another image with respect to an image of the subject expressed using spectral information indicating the spectral reflectance acquired at the time of photographing the subject,
For each of a plurality of images to be combined, a color for determining whether or not the color space expressing the image is a first color space composed of a basic component indicating a stimulus value and an additional component indicating spectral information A space determination step;
Of the plurality of images, an image that is determined to be expressed in the first color space in the color space determination step is used as a second value using only the value of the basic component in the first color space. A first color space conversion step of converting to an image expressed in a color space;
Of the plurality of images, a second color space that converts an image that is determined not to be expressed in the first color space in the color space determination step into an image that is expressed in the second color space. A conversion step;
Combining the plurality of images converted into the second color space in the first and second color space conversion steps in the second color space,
An image processing method comprising:
被写体の撮影時に取得した分光反射率を示す分光情報を用いて表現された該被写体の画像に対し、他の画像を透過合成する画像処理方法であって、
合成対象となる複数の画像のそれぞれについて、画像を表現する色空間が、刺激値を示す基本成分と分光情報を示す追加成分から構成される第1の色空間であるか否かを判定する色空間判定ステップと、
前記複数の画像のうち、前記色空間判定ステップにおいて前記第1の色空間で表現されていると判定された画像を、該第1の色空間における前記基本成分の値と、データ量を削減するように変換した前記追加成分の値とを用いて、第2の色空間で表現される画像に変換する第1の色空間変換ステップと、
前記複数の画像のうち、前記色空間判定ステップにおいて前記第1の色空間で表現されていないと判定された画像を、前記第2の色空間で表現される画像に変換する第2の色空間変換ステップと、
前記第1および第2の色空間変換ステップにおいて前記第2の色空間に変換された前記複数の画像を、該第2の色空間上で透過合成する合成ステップと、
を有することを特徴とする画像処理方法。
An image processing method for transmitting and synthesizing another image with respect to an image of the subject expressed using spectral information indicating the spectral reflectance acquired at the time of photographing the subject,
For each of a plurality of images to be combined, a color for determining whether or not the color space expressing the image is a first color space composed of a basic component indicating a stimulus value and an additional component indicating spectral information A space determination step;
Among the plurality of images, the image determined to be expressed in the first color space in the color space determination step is reduced in the basic component value and data amount in the first color space. A first color space conversion step of converting into an image expressed in a second color space using the value of the additional component converted as described above;
Of the plurality of images, a second color space that converts an image that is determined not to be expressed in the first color space in the color space determination step into an image that is expressed in the second color space. A conversion step;
Combining the plurality of images converted into the second color space in the first and second color space conversion steps in the second color space,
An image processing method comprising:
コンピュータで実行されることにより、該コンピュータを請求項1乃至8のいずれか1項に記載の画像処理装置における各手段として機能させるためのプログラム。   A program for causing a computer to function as each unit in the image processing apparatus according to any one of claims 1 to 8 when executed by the computer.
JP2009298831A 2009-12-28 2009-12-28 Image processing apparatus and image processing method Expired - Fee Related JP5411692B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009298831A JP5411692B2 (en) 2009-12-28 2009-12-28 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009298831A JP5411692B2 (en) 2009-12-28 2009-12-28 Image processing apparatus and image processing method

Publications (3)

Publication Number Publication Date
JP2011138393A true JP2011138393A (en) 2011-07-14
JP2011138393A5 JP2011138393A5 (en) 2013-02-14
JP5411692B2 JP5411692B2 (en) 2014-02-12

Family

ID=44349744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009298831A Expired - Fee Related JP5411692B2 (en) 2009-12-28 2009-12-28 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP5411692B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014520010A (en) * 2011-12-31 2014-08-21 北大方正集▲団▼有限公司 Page graphic element overprint processing method and apparatus
WO2022031278A1 (en) * 2020-08-05 2022-02-10 Hewlett-Packard Development Company, L.P. Analyzing image data
CN115855839A (en) * 2023-02-22 2023-03-28 湖南大学 Improved space-spectrum fusion hyperspectral calculation reconstruction method based on ADMM framework

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005566A (en) * 2002-04-23 2004-01-08 Matsushita Electric Ind Co Ltd Color compiling apparatus and color compiling method
JP2005078171A (en) * 2003-08-28 2005-03-24 Konica Minolta Holdings Inc Spectral image data processing method and spectral image data processor
JP2006121186A (en) * 2004-10-19 2006-05-11 Canon Inc Information processor, information processing method and program, storage medium
JP2008011531A (en) * 2006-06-26 2008-01-17 Samsung Electronics Co Ltd Color conversion system, recoridng medium and method
JP2008283546A (en) * 2007-05-11 2008-11-20 Fuji Xerox Co Ltd Image processor, image output device, image processing system, image processing program, and image output program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005566A (en) * 2002-04-23 2004-01-08 Matsushita Electric Ind Co Ltd Color compiling apparatus and color compiling method
JP2005078171A (en) * 2003-08-28 2005-03-24 Konica Minolta Holdings Inc Spectral image data processing method and spectral image data processor
JP2006121186A (en) * 2004-10-19 2006-05-11 Canon Inc Information processor, information processing method and program, storage medium
JP2008011531A (en) * 2006-06-26 2008-01-17 Samsung Electronics Co Ltd Color conversion system, recoridng medium and method
JP2008283546A (en) * 2007-05-11 2008-11-20 Fuji Xerox Co Ltd Image processor, image output device, image processing system, image processing program, and image output program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014520010A (en) * 2011-12-31 2014-08-21 北大方正集▲団▼有限公司 Page graphic element overprint processing method and apparatus
WO2022031278A1 (en) * 2020-08-05 2022-02-10 Hewlett-Packard Development Company, L.P. Analyzing image data
CN115855839A (en) * 2023-02-22 2023-03-28 湖南大学 Improved space-spectrum fusion hyperspectral calculation reconstruction method based on ADMM framework

Also Published As

Publication number Publication date
JP5411692B2 (en) 2014-02-12

Similar Documents

Publication Publication Date Title
JP5643574B2 (en) Image processing apparatus and image processing method
JP3166977B2 (en) Pipeline configuration of full-color computer graphics
JP5116393B2 (en) Image processing apparatus and image processing method
CN111161660A (en) Data processing system
JP2009016922A (en) Image processing device, and image processing program
KR20040062564A (en) Systems and methods for generating visual representations of graphical data and digital document processing
CN101562680B (en) Image forming apparatus and image forming method
US8891144B2 (en) Color management method, module, and program product, and printer using said method
JP2011146799A (en) Device and program for processing image
KR20110004795A (en) Apparatus, method, system and storage medium for setting print status
US8203747B2 (en) Methods and systems for time-efficient print-data rendering
KR101869302B1 (en) Raster image conversion apparatus, image scanning apparatus, method for conversion of raster image, and computer-readable recording medium
US20180035006A1 (en) Print transformation effects
JP2011180896A (en) Apparatus for generating raster image, raster image generating method, and program
JP5411692B2 (en) Image processing apparatus and image processing method
JP2007208531A (en) Multicolor printing apparatus and method of controlling same
JP2010191026A (en) Terminal outputting image data in accordance with external display device, program, and method
JP4387907B2 (en) Image processing method and apparatus
JP2008228168A (en) Image processing apparatus and program
JPWO2015107622A1 (en) Image processing program, image processing method, image processing apparatus, and information processing apparatus
JP5074503B2 (en) Raster image processing method and apparatus
JP2009272665A (en) Image processing apparatus, image processing method, and program
JP5171973B2 (en) Information processing apparatus and control method thereof
JP5012871B2 (en) Image processing apparatus, image forming apparatus, and image processing program
JP4345027B2 (en) Image processing program and image processing apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121221

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131008

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131011

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131108

R151 Written notification of patent or utility model registration

Ref document number: 5411692

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees