JP2007088825A - Image processor and image processing method - Google Patents

Image processor and image processing method Download PDF

Info

Publication number
JP2007088825A
JP2007088825A JP2005275272A JP2005275272A JP2007088825A JP 2007088825 A JP2007088825 A JP 2007088825A JP 2005275272 A JP2005275272 A JP 2005275272A JP 2005275272 A JP2005275272 A JP 2005275272A JP 2007088825 A JP2007088825 A JP 2007088825A
Authority
JP
Japan
Prior art keywords
color
code
map
image data
pixel
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
JP2005275272A
Other languages
Japanese (ja)
Inventor
Kenji Kasai
建治 笠井
Junichi Horii
潤一 堀井
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2005275272A priority Critical patent/JP2007088825A/en
Publication of JP2007088825A publication Critical patent/JP2007088825A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor and an image processing method for efficiently specifying and reproducing neutral colors such as gradation. <P>SOLUTION: The image processor has a color map 143 in which monochromatic color codes expressing specific colors and neutral color codes expressing colors except for the specific colors are defined, an input means 12 for inputting image data 20 expressed by using the color map 143 and a conversion means 14 for using the input image data 20 and the color map 143, outputs color values indicated by the monochromatic color codes when object pixels of the image data 20 are specified by the monochromatic color codes of the color map 143 and outputs color values computed by an interpolation computation by positions of the object pixels from two monochromatic color codes indicated by the neutral color codes and two pixel positions corresponding to them when the object pixels are specified by the neutral color codes of the color codes. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、複数のカラーコードによってカラー値を規定するカラーマップを用いて表現された画像データを取り込んで画素毎にカラー値を生成する画像処理装置および画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method that take in image data expressed using a color map that defines color values with a plurality of color codes and generate color values for each pixel.

従来、画像データに対する色付けを行う方法として、カラーコードを用いる方法がある(例えば、特許文献1、2参照。)。主に、表示色数が限られている表示装置などに用いられている。この場合、色表現は限定されるが、カラーパレットを用いることで色指定・色管理が容易となる特徴をもつ。また、フルカラープリンタを対象とした場合にも、中間段階の処理データ量・演算量が削減できるため、有効である。   Conventionally, there is a method using a color code as a method for coloring image data (see, for example, Patent Documents 1 and 2). It is mainly used for display devices with a limited number of display colors. In this case, although the color expression is limited, the use of a color palette makes it easy to specify and manage colors. Even when a full-color printer is targeted, it is effective because the amount of processing data and the amount of computation at the intermediate stage can be reduced.

代表的なPDL(Page Description Language)では、上記カラーコードを用いる色付をカラースペースの1つとしてサポートしている(Indexed Color Space)。カラーコードによる表現対象は、文字や簡単な図形などが一般的である。これらのオブジェクトにグラデーションを加えられると、表現力が増すことになる。   In typical PDL (Page Description Language), coloring using the color code is supported as one of color spaces (Indexed Color Space). The expression object by the color code is generally a character or a simple figure. If gradation is added to these objects, expressive power will increase.

特開平6−139364号公報JP-A-6-139364 特許第3554034号明細書Japanese Patent No. 3554034

しかしながら、従来の方法では、グラデーションを複数のカラーコードを用いて擬似階調として表現する手法を用いているため、データ作成側に負荷がかかり、また階調表現力とカラーコード消費とのトレードオフが発生する。したがって、滑らかなグラデーションを実現しようとすると多くの処理時間がかかり、一方、処理時間の短縮化を図ろうとすると粗いグラデーションとなってしまうという問題が発生する。よって、本発明は、グラデーション等の中間色の指定と再現とを効率的に行うことができる画像処理装置および画像処理方法を提供することを目的とする。   However, since the conventional method uses a method of expressing gradation as a pseudo gradation using a plurality of color codes, a load is imposed on the data creation side, and a trade-off between gradation expression power and color code consumption. Will occur. Therefore, it takes a lot of processing time to achieve a smooth gradation, while on the other hand, a problem arises that if the processing time is reduced, the gradation becomes rough. Therefore, an object of the present invention is to provide an image processing apparatus and an image processing method capable of efficiently specifying and reproducing intermediate colors such as gradation.

本発明はこのような目的を達成するために成されたものである。すなわち、本発明は、カラーマップを構成するカラーコードによって表現された画像データから画素毎のカラー値を生成する画像処理装置において、特定の色を表現する単色カラーコードおよび2つの単色カラーコードとそれらに対応した2つの画素位置とから前記特定の色以外の色を表現する中間色カラーコードを定義したカラーマップ、ならびにカラーマップを用いて表現された画像データを入力する入力手段と、入力手段で入力した画像データおよびカラーマップを用い、画像データのビットマップにおける各画素毎にカラー値を求めるにあたり、対象画素がカラーマップの単色カラーコードで指定されている場合はその単色カラーコードの示すカラー値を出力し、対象画素がカラーコードの中間色カラーコードで指定されている場合はその中間色カラーコードの示す2つの単色カラーコードおよびそれらに対応した2つの画素位置から対象画素の位置による補間計算によって求めたカラー値を出力する変換手段とを備えるものである。   The present invention has been made to achieve such an object. That is, the present invention provides an image processing apparatus that generates a color value for each pixel from image data expressed by a color code constituting a color map, a single color code expressing a specific color, two single color codes, and A color map that defines an intermediate color code that expresses a color other than the specific color from the two pixel positions corresponding to the image, and an input unit that inputs image data expressed using the color map; When obtaining the color value for each pixel in the bitmap of the image data using the image data and the color map, if the target pixel is specified by the single color code of the color map, the color value indicated by the single color code is used. When the target pixel is specified by the color code intermediate color code In which and a converting means for outputting a color value determined by the interpolation calculation by the position of the two single color codes and two target pixels from the pixel position corresponding to those indicated by the neutral color code.

また、本発明は、カラーマップを構成するカラーコードによって表現された画像データから画素毎のカラー値を生成する画像処理方法において、特定の色を表現する単色カラーコードおよび2つの単色カラーコードとそれらに対応した2つの画素位置とから前記特定の色以外の色を表現する中間色カラーコードを定義したカラーマップ、ならびにカラーマップを用いて表現された画像データを入力する工程と、入力した画像データおよびカラーマップを用い、画像データのビットマップにおける各画素毎にカラー値を求めるにあたり、対象画素がカラーマップの単色カラーコードで指定されている場合はその単色カラーコードの示すカラー値を出力し、対象画素がカラーコードの中間色カラーコードで指定されている場合はその中間色カラーコードの示す2つの単色カラーコードおよびそれらに対応した2つの画素位置から対象画素の位置による補間計算によって求めたカラー値を出力する工程とを備えるものである。   Further, the present invention provides an image processing method for generating a color value for each pixel from image data expressed by a color code constituting a color map, a single color code expressing a specific color, two single color codes, and those A color map that defines an intermediate color code that expresses a color other than the specific color from the two pixel positions corresponding to the above, a step of inputting image data expressed using the color map, When obtaining a color value for each pixel in the bitmap of the image data using the color map, if the target pixel is specified by a single color code of the color map, the color value indicated by the single color code is output and the target If the pixel is specified by an intermediate color code of the color code, the intermediate color In which and a step of outputting a color value determined by the interpolation calculation by the position of the target pixel from the two single color codes and two pixel positions corresponding to those indicated by the over-de.

このような本発明では、画像データの色づけとしてカラーマップを用いることで、限定されたカラーコードによって色を表現し、データ処理の効率化を図る。また、カラーマップにおける特定の色を表現する単色カラーコードで表現されない中間色については、2つの単色カラーコードおよびそれらと対応した2つの画素位置と対象画素の位置とによる補間計算によってカラー値を求めるため、簡単な計算処理で中間色のカラー値を画素ごとに得ることができ、どのようなオブジェクト形状であっても効率良く滑らかなグラデーション等を表すことができる色づけを表現できるようになる。   In the present invention, a color map is used for coloring image data, whereby a color is expressed by a limited color code, thereby improving the efficiency of data processing. Further, for intermediate colors that are not represented by a single color code that expresses a specific color in the color map, a color value is obtained by interpolation calculation using two single color codes and two corresponding pixel positions and target pixel positions. Thus, it is possible to obtain a color value of an intermediate color for each pixel with a simple calculation process, and it is possible to express coloring that can efficiently express a smooth gradation or the like in any object shape.

したがって、本発明によれば、カラーコードによって色づけを行うアプリケーションにおいて、スループットを低下させずにグラデーションオブジェクトを追加することができ、印刷結果の表現力を増加させることが可能となる。また、グラデーションオブジェクトの色確認・修正が容易となり、全体の色管理がカラーパレットを用いて統一的にできるようになる。   Therefore, according to the present invention, it is possible to add a gradation object without reducing the throughput in an application for coloring with a color code, and to increase the expressiveness of the print result. In addition, it is easy to confirm and correct the color of the gradation object, and the entire color management can be unified using the color palette.

以下、本発明の実施の形態を図に基づき説明する。図1は、本実施形態に係る画像処理装置を説明するブロック図である。本実施形態の画像処理装置1は、主としてカラープリンタに適用されるもので、ホスト計算機2から送られる画像データ20を受けて、この画像データ20に基づく各種処理を行い、カラープリンタの有するプリントエンジン(図示せず)によって処理後のカラー画像を用紙に印刷出力するものである。本実施形態の画像処理装置1は、このようなカラープリンタ等の機器における画像処理部分のうち、カラーマップで示される画像データ20の画素毎の色を最適なカラー値に変換する処理に特徴がある。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating an image processing apparatus according to this embodiment. The image processing apparatus 1 according to the present embodiment is mainly applied to a color printer, receives image data 20 sent from a host computer 2, performs various processes based on the image data 20, and has a print engine of the color printer. The processed color image is printed out on paper (not shown). The image processing apparatus 1 according to the present embodiment is characterized by a process of converting the color of each pixel of the image data 20 indicated by the color map into an optimum color value among the image processing portions in such devices as a color printer. is there.

ホスト計算機2から送られる画像データ20には、その画像データ20の色付けとして定義されるカラーマップが指定手段21によって指定されている。カラーマップは予め決められた特定の色を表現する単色カラーコードと、単色カラーコードで表される特定の色以外の色を表現する中間色カラーコードとによって構成されている。   In the image data 20 sent from the host computer 2, a color map defined as coloring of the image data 20 is designated by the designation means 21. The color map includes a single color code that expresses a predetermined specific color and an intermediate color code that expresses a color other than the specific color expressed by the single color code.

単色カラーコードでは、特定の色に対応して例えばR(赤)、G(緑)、B(青)のカラー値が設定されたもので、画像処理装置1ではこのカラーマップを参照して画素データ20の各画素毎に指定されたカラーコードからR(赤)、G(緑)、B(青)のカラー値を求め、印刷出力する際の色情報として用いている。また、中間色カラーコードもホスト計算機2から画像処理装置1へ送られる際には単色カラーコードと同様なコード情報であるため、データ転送の負荷をかけることなく高速に転送できる。   In the monochromatic color code, for example, color values of R (red), G (green), and B (blue) are set corresponding to a specific color, and the image processing apparatus 1 refers to this color map to display pixels. R (red), G (green), and B (blue) color values are obtained from the color code specified for each pixel of the data 20 and used as color information for printing out. Also, when the intermediate color code is sent from the host computer 2 to the image processing apparatus 1, it is the same code information as the single color code, so that it can be transferred at high speed without imposing a data transfer load.

つまり、このようなカラーマップを用いることで、少ない情報量によって色を表現することができ、ホスト計算機からカラープリンタ等への画像データ20の転送処理を高速化することが可能となる。   That is, by using such a color map, colors can be expressed with a small amount of information, and the transfer processing of the image data 20 from the host computer to a color printer or the like can be speeded up.

画像処理装置1は、ホスト計算機2から画像データ20を受け付けて一時格納する入力バッファ11と、入力バッファ11から画像データ20をライン単位でラインバッファ13に取り込む入力手段12と、ラインバッファ13から出力された画像データ20から画素毎にカラー値を変換する変換手段14と、変換手段14によって画素毎に変換されたカラー値を展開するページバッファ15とを備えている。   The image processing apparatus 1 includes an input buffer 11 that receives and temporarily stores image data 20 from the host computer 2, an input unit 12 that loads the image data 20 from the input buffer 11 into the line buffer 13 in units of lines, and an output from the line buffer 13. The image data 20 includes a conversion unit 14 that converts a color value for each pixel, and a page buffer 15 that develops the color value converted for each pixel by the conversion unit 14.

ホスト計算機2から送られる画像データ20がランレングス圧縮されている場合、入力手段12は入力バッファ11から出力されるライン単位の画像データをランレングスデコード部121で伸長して、ラインバッファ13へ入力する。   When the image data 20 sent from the host computer 2 is run-length compressed, the input unit 12 decompresses the line-unit image data output from the input buffer 11 by the run-length decoding unit 121 and inputs it to the line buffer 13. To do.

変換手段14は、スキャン操作部141、カラー値計算部142およびカラーマップ143を備えている。スキャン操作部141は、ラインバッファ13から出力されるライン単位の画素のデータを画素毎にスキャンする部分である。カラー値計算部142は、スキャン操作部141でスキャンした画素毎の画像データが示すカラーコードからカラー値を求める部分である。カラーマップ143は画像データの指定手段21によって指定されたもので、画像データ毎に取り込まれる。このカラーマップ143をカラー値計算部142が参照することで画素毎のカラー値を求めることができる。   The conversion unit 14 includes a scan operation unit 141, a color value calculation unit 142, and a color map 143. The scanning operation unit 141 is a part that scans pixel-by-line pixel data output from the line buffer 13 for each pixel. The color value calculation unit 142 is a part that obtains a color value from the color code indicated by the image data for each pixel scanned by the scan operation unit 141. The color map 143 is designated by the image data designation means 21 and is taken in for each image data. The color value calculation unit 142 refers to the color map 143 so that the color value for each pixel can be obtained.

カラーマップは、図2に示すカラーコードとカラー属性とによって定義され、各画像データ毎に設定されている。本実施形態の画像処理装置では、このカラー属性定義によってカラーコードが設定されるカラーマップを参照して各画素毎にカラー値を求めるにあたり、対象画素がカラーマップの単色カラーコードで指定される場合はその単色カラーコードの示すカラー値を出力し、カラーコードの中間色カラーコードで指定される場合はその中間色カラーコードの示す2つの単色カラーコードおよびそれらと対応した2つの画素位置から対象画素の位置による補間計算によって求めたカラー値を出力する点に特徴がある。   The color map is defined by the color code and the color attribute shown in FIG. 2, and is set for each image data. In the image processing apparatus of this embodiment, when obtaining a color value for each pixel with reference to a color map in which a color code is set by this color attribute definition, the target pixel is specified by a single color code of the color map Outputs the color value indicated by the monochrome color code, and when specified by the intermediate color code of the color code, the position of the target pixel from the two monochrome color codes indicated by the intermediate color code and the two pixel positions corresponding thereto The feature is that the color value obtained by the interpolation calculation is output.

したがって、定義されるカラーマップとしては、単色カラーコードを示すためのカラー属性に加え、中間色カラーコード(例えば、グラデーション)を示すためのカラー属性が定義されている。図3は、カラーマップのデータ構造の例を示す模式図である。この例で示すカラーマップでは、代表的な色がN個分の単色カラーコードとして設定されている。この単色カラーコードには、1つのカラーコードに対応して赤(R)、緑(G)、青(B)の各カラー値が設定されている。したがって、単色カラーコードを用いることでN色を表現できることになる。   Therefore, as a color map to be defined, in addition to a color attribute for indicating a single color code, a color attribute for indicating an intermediate color code (for example, gradation) is defined. FIG. 3 is a schematic diagram illustrating an example of a data structure of a color map. In the color map shown in this example, typical colors are set as N single color codes. In this single color code, color values of red (R), green (G), and blue (B) are set corresponding to one color code. Therefore, N colors can be expressed by using a single color code.

中間色カラーコードには、1つのカラーコードに対応して長さ、種別、パラメータが定義されている。特に、種別としては、例えば「1」が線形のグラデーション、「2」が放射型のグラデーションというように、色の変化の方向性が示されている。また、パラメータには、開始点のカラーコード(CC1)、終了点のカラーコード(CC2)、開始点の座標(X1,Y1)、終了点の座標(X2,Y2)、繰り返しの間隔(INT)が設定される。   In the intermediate color code, length, type, and parameter are defined corresponding to one color code. In particular, as the type, for example, “1” is a linear gradation and “2” is a radial gradation, indicating the direction of color change. The parameters include start point color code (CC1), end point color code (CC2), start point coordinates (X1, Y1), end point coordinates (X2, Y2), and repetition interval (INT). Is set.

ここで、種別が「1:線形」の場合には、開始点のカラーコード(CC1)、終了点のカラーコード(CC2)、開始点の座標(X1,Y1)、終了点の座標(X2,Y2)、間隔が設定されるが、「2:放射型」の場合には、開始点のカラーコード(CC1)、終了点のカラーコード(CC2)、開始点の座標(X1,Y1)、間隔と、終了点の座標(X2)の代わりに半径が設定される。   When the type is “1: linear”, the start point color code (CC1), the end point color code (CC2), the start point coordinates (X1, Y1), and the end point coordinates (X2, Y2). Y2), the interval is set, but in the case of “2: radial type”, the start point color code (CC1), the end point color code (CC2), the start point coordinates (X1, Y1), and the interval Then, a radius is set instead of the end point coordinate (X2).

また、パラメータで設定される「繰り返しの間隔」とは、グラデーションの繰り返しを定義したものであり、定義された間隔で同じグラデーションが繰り返されるものである。このような「間隔」に「種別」を組み合わせることにより、様々なグラデーションの態様を定義することができる。図3に示すカラーマップでは、単色カラーコードで示されない色がM個分の中間色カラーコードとして設定されている。   The “repetition interval” set by the parameter defines gradation repetition, and the same gradation is repeated at a defined interval. By combining “type” with such “interval”, various gradation modes can be defined. In the color map shown in FIG. 3, colors that are not indicated by the single color code are set as M intermediate color codes.

カラーマップにおける単色カラーコードおよび中間色カラーコードはユーザ(もしくは画像データを生成するアプリケーション)によって自由に定義できるものである。例えば、8ビット(256個)でカラーマップを表現する場合、単色カラーコードN個分と中間色カラーコードM個部とが合計256個に収まるよう定義すればよい。   The single color code and the intermediate color code in the color map can be freely defined by the user (or an application that generates image data). For example, when a color map is expressed by 8 bits (256), it may be defined so that a total of 256 portions of N color codes and M intermediate color codes can be accommodated.

本実施形態では、このような限られたデータ数によるデータ構造のカラーマップを参照して画像データの色付けを行う場合に、カラーマップで定義される単色カラーコードのカラー値だけでなく、グラデーションのような中間色のカラー値も取り扱うことができるようになっている。   In the present embodiment, when coloring image data with reference to a color map having a data structure with such a limited number of data, not only the color value of a single color code defined in the color map but also the gradation value. Such intermediate color values can also be handled.

次に、図4のフローチャートを用いて本実施形態の画像処理装置での動作(画像処理方法)を説明する。なお、以下の説明で図4に示されない符号は図1を参照するものとする。先ず、ホスト計算機2から送られた画像データ20の設定手段21によって設定されたカラーマップを読み込む(ステップS1)。読み込んだカラーマップは変換手段に取り込まれる。   Next, the operation (image processing method) in the image processing apparatus of this embodiment will be described using the flowchart of FIG. In the following description, reference numerals not shown in FIG. 4 refer to FIG. First, the color map set by the setting means 21 of the image data 20 sent from the host computer 2 is read (step S1). The read color map is taken into the conversion means.

次に、入力手段12は画像データを1ライン読み込み(ステップS2)、デコードを行う(ステップS3)。次いで、変換手段14のスキャン操作部141は、ラインバッファ13から出力される画像データを画素毎にスキャンし、対象画素のカラーコードがカラーマップで定義される中間色コード(グラデーションコード)であるか否かを判断する(ステップS4)。   Next, the input means 12 reads one line of image data (step S2) and performs decoding (step S3). Next, the scan operation unit 141 of the conversion unit 14 scans the image data output from the line buffer 13 for each pixel, and whether or not the color code of the target pixel is an intermediate color code (gradation code) defined by a color map. Is determined (step S4).

ここでグラデーションコードでない、すなわち単色カラーコードである場合にはそのカラーコードに対応するカラー値をカラーマップから参照して出力する(ステップS5)。一方、グラデーションコードであった場合、カラー値計算部142がそのカラーコードから計算によってカラー値を求めて出力する(ステップS6)。   If it is not a gradation code, that is, if it is a single color code, a color value corresponding to the color code is referred to and output from the color map (step S5). On the other hand, if it is a gradation code, the color value calculation unit 142 calculates and outputs a color value from the color code (step S6).

中間色カラーコードの場合のカラー値の計算は、中間色カラーコードの定義で示される種別によって切り替えて行う。図4の囲みに示す計算式は、線形グラデーションの場合および放射型グラデーションの場合の例を示している。   The calculation of the color value in the case of the intermediate color code is switched according to the type indicated by the definition of the intermediate color code. The calculation formula shown in the box in FIG. 4 shows an example in the case of the linear gradation and the case of the radial gradation.

線形グラデーションの場合の計算は、中間色カラーコードの定義で示される開始点(始点)のカラーコード(CC1)、終了点(終点)のカラーコード(CC2)、開始点の座標(X1,Y1)、終了点の座標(X2,Y2)と対象画素の位置(座標)とを用いて、始点から終点に向かうベクトルを用いた線形補間を行う。また、放射型グラデーションの場合の計算は、中間色カラーコードの定義で示される開始点のカラーコード(CC1)、終了点のカラーコード(CC2)、開始点の座標(X1,Y1)、半径と対象画素の位置(座標)とを用いて放射状のベクトルを用いた線形補間を行う。いずれもカラーコードを利用した線形補間のため、迅速に中間色のカラー値を出力できる。   In the case of the linear gradation, the calculation is performed using the start point (start point) color code (CC1), end point (end point) color code (CC2), start point coordinates (X1, Y1), Linear interpolation using a vector from the start point to the end point is performed using the coordinates (X2, Y2) of the end point and the position (coordinates) of the target pixel. In the case of radial gradation, the calculation of the start point color code (CC1), end point color code (CC2), start point coordinates (X1, Y1), radius and target shown in the definition of the intermediate color code Linear interpolation using radial vectors is performed using pixel positions (coordinates). In either case, since the color code is used for the linear interpolation, the color value of the intermediate color can be output quickly.

1つの画素のカラー値出力が終了したら次の画素へ移動し、1ライン分終了したら(ステップS7でYes)、次の1ライン分の読み込みを行う(ステップS2)。そして、全てのラインが終了したら次のページに移動し(ステップS8)、上記処理を繰り返す。これにより、ページバッファ15にはページ(バンド分)の各画素毎のカラー値が展開されることになる。   When the output of the color value of one pixel is completed, the process proceeds to the next pixel. When the output for one line is completed (Yes in step S7), the next one line is read (step S2). When all the lines are completed, the process moves to the next page (step S8), and the above process is repeated. As a result, the color value for each pixel of the page (for the band) is developed in the page buffer 15.

このような本実施形態では、フルカラーの印刷システムにおいて、画像データの可変データ部に含まれるカラーコードを分離して上記のような画素単位でのカラー値出力を行い、画像データのビットマップデータ(固定データ)と合成することで、単色カラーコードで示されるものはカラーマップの参照のみでカラー値を出力し、中間色カラーコードで示されるものは2つの単色カラーコードのカラー値等を用いて簡単な計算で中間色のカラー値を出力でき、画素単位でのカラー値変換出力でありながらスループットを大幅に改善することが可能となる。また実施形態で示したグラデーション以外でも、中間色カラーコードと対象画素の位置とによってカラー値を計算する手続きを与えることで、様々な中間色を表現することが可能である。   In this embodiment, in the full color printing system, the color code included in the variable data portion of the image data is separated and the color value is output in units of pixels as described above, and the bitmap data ( By combining with (fixed data), the data indicated by the single color code can output the color value only by referring to the color map, and the data indicated by the intermediate color code can be easily obtained using the color values of the two single color codes. The intermediate color value can be output by simple calculation, and the throughput can be greatly improved while the color value conversion output is in units of pixels. Besides the gradation shown in the embodiment, various intermediate colors can be expressed by giving a procedure for calculating a color value based on the intermediate color code and the position of the target pixel.

本実施形態に係る画像処理装置を説明するブロック図である。It is a block diagram explaining the image processing apparatus which concerns on this embodiment. カラーコードのカラー属性定義を説明する図である。It is a figure explaining the color attribute definition of a color code. カラーマップのデータ構造の例を示す模式図である。It is a schematic diagram which shows the example of the data structure of a color map. 本実施形態の画像処理方法を説明するフローチャートである。It is a flowchart explaining the image processing method of this embodiment.

符号の説明Explanation of symbols

1…画像処理装置、2…ホスト計算機、11…入力バッファ、12…入力手段、13…ラインバッファ、14…変換手段、15…ページバッファ、20…画像データ、21…指定手段、121…ランレングスデコード部、141…スキャン操作部、142…カラー値計算部、143…カラーマップ   DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 2 ... Host computer, 11 ... Input buffer, 12 ... Input means, 13 ... Line buffer, 14 ... Conversion means, 15 ... Page buffer, 20 ... Image data, 21 ... Designation means, 121 ... Run length Decoding unit 141 ... Scan operation unit 142 ... Color value calculation unit 143 ... Color map

Claims (5)

カラーマップを構成するカラーコードによって表現された画像データから画素毎のカラー値を生成する画像処理装置において、
特定の色を表現する単色カラーコードおよび2つの前記単色カラーコードとそれらに対応した2つの画素位置とから前記特定の色以外の色を表現する中間色カラーコードを定義したカラーマップ、ならびに前記カラーマップを用いて表現された画像データを入力する入力手段と、
前記入力手段で入力した前記画像データおよび前記カラーマップを用い、前記画像データのビットマップにおける各画素毎にカラー値を求めるにあたり、対象画素が前記カラーマップの単色カラーコードで指定されている場合はその単色カラーコードの示すカラー値を出力し、対象画素が前記カラーコードの中間色カラーコードで指定されている場合はその中間色カラーコードの示す前記2つの単色カラーコードおよびそれらに対応した2つの画素位置から前記対象画素の位置による補間計算によって求めたカラー値を出力する変換手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that generates a color value for each pixel from image data expressed by a color code constituting a color map,
A color map that defines a single color code that expresses a specific color and an intermediate color code that expresses a color other than the specific color from the two single color codes and the corresponding two pixel positions, and the color map Input means for inputting image data expressed using
When obtaining the color value for each pixel in the bitmap of the image data using the image data and the color map input by the input means, when the target pixel is specified by a single color code of the color map A color value indicated by the monochrome color code is output, and when the target pixel is designated by the intermediate color code of the color code, the two monochrome color codes indicated by the intermediate color code and two pixel positions corresponding to them An image processing apparatus comprising: conversion means for outputting a color value obtained by interpolation calculation based on the position of the target pixel from
前記変換手段は、前記補間計算として直線補間を用いる
ことを特徴とする請求項1記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the conversion unit uses linear interpolation as the interpolation calculation.
前記変換手段は、前記中間色カラーコードの示す前記2つの単色カラーコードと対応した2つの画素位置を、カラー値の変化の方向を表すベクトルの始点と終点として前記対象画素の位置による補間計算を行う
ことを特徴とする請求項1記載の画像処理装置。
The conversion means performs an interpolation calculation based on the position of the target pixel using the two pixel positions corresponding to the two single color codes indicated by the intermediate color code as the start point and end point of a vector representing the direction of change in color value. The image processing apparatus according to claim 1.
前記変換手段は、前記中間色カラーコードで指定されるパラメータに応じて前記補間計算の種類を切り替える
ことを特徴とする請求項1記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the conversion unit switches the type of the interpolation calculation in accordance with a parameter specified by the intermediate color code.
カラーマップを構成するカラーコードによって表現された画像データから画素毎のカラー値を生成する画像処理方法において、
特定の色を表現する単色カラーコードおよび2つの前記単色カラーコードとそれらに対応した2つの画素位置とから前記特定の色以外の色を表現する中間色カラーコードを定義したカラーマップ、ならびに前記カラーマップを用いて表現された画像データを入力する工程と、
入力した前記画像データおよび前記カラーマップを用い、前記画像データのビットマップにおける各画素毎にカラー値を求めるにあたり、対象画素が前記カラーマップの単色カラーコードで指定されている場合はその単色カラーコードの示すカラー値を出力し、対象画素が前記カラーコードの中間色カラーコードで指定されている場合はその中間色カラーコードの示す前記2つの単色カラーコードおよびそれらに対応した2つの画素位置から前記対象画素の位置による補間計算によって求めたカラー値を出力する工程と
を備えることを特徴とする画像処理方法。
In an image processing method for generating a color value for each pixel from image data expressed by a color code constituting a color map,
A color map that defines a single color code that expresses a specific color and an intermediate color code that expresses a color other than the specific color from the two single color codes and the corresponding two pixel positions, and the color map Inputting image data expressed using
When obtaining the color value for each pixel in the bitmap of the image data using the input image data and the color map, if the target pixel is designated by the monochrome color code of the color map, the monochrome color code When the target pixel is designated by the intermediate color code of the color code, the target pixel is determined from the two single color codes indicated by the intermediate color code and the two pixel positions corresponding to them. And a step of outputting a color value obtained by interpolation calculation based on the position of the image processing method.
JP2005275272A 2005-09-22 2005-09-22 Image processor and image processing method Pending JP2007088825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005275272A JP2007088825A (en) 2005-09-22 2005-09-22 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005275272A JP2007088825A (en) 2005-09-22 2005-09-22 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JP2007088825A true JP2007088825A (en) 2007-04-05

Family

ID=37975365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005275272A Pending JP2007088825A (en) 2005-09-22 2005-09-22 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JP2007088825A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009105715A (en) * 2007-10-24 2009-05-14 Seiko Epson Corp Image processing method, its program and image processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009105715A (en) * 2007-10-24 2009-05-14 Seiko Epson Corp Image processing method, its program and image processor

Similar Documents

Publication Publication Date Title
JP5267255B2 (en) Image processing apparatus, image processing method, and program
JP2011139164A (en) Image processing apparatus and processing method thereof
US7777924B2 (en) Color conversion device and color conversion program
JP6194903B2 (en) Image processing apparatus and image processing method
JP2007088825A (en) Image processor and image processing method
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
JP2006352755A (en) Color image generation device
JP2007083556A (en) Image processor and image processing method
JP4428028B2 (en) Image processing apparatus and program for image processing
US20140028696A1 (en) ICC color conversion using GPU
JP2000022975A (en) Device and method for converting data
JP2011139165A (en) Image processing apparatus and processing method thereof
JP2011025478A (en) Image forming apparatus, image forming method, program, and recording medium
JP6740729B2 (en) Data conversion device, data conversion method, and data conversion program
JP6844248B2 (en) Image processing equipment and computer programs
JP2010220131A (en) Apparatus and method for encoding image
US7675642B2 (en) Print apparatus and print method
JP6521650B2 (en) INFORMATION PROCESSING APPARATUS, CONTROL METHOD FOR INFORMATION PROCESSING APPARATUS, AND PROGRAM
JP5523177B2 (en) Image coding apparatus and control method thereof
JP2009038562A (en) Image processing apparatus, method, and program
JP2006019899A (en) Color converting apparatus and color converting method
JP5046237B2 (en) Image processing apparatus, image processing method, and program
JP5093133B2 (en) Color conversion apparatus, color conversion method, and color conversion program
JP2010130374A (en) Image forming apparatus
JP2008071317A (en) Image forming apparatus