Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5139779B2 - Image forming apparatus and image forming method - Google Patents
[go: Go Back, main page]

JP5139779B2 - Image forming apparatus and image forming method - Google Patents

Image forming apparatus and image forming method Download PDF

Info

Publication number
JP5139779B2
JP5139779B2 JP2007298588A JP2007298588A JP5139779B2 JP 5139779 B2 JP5139779 B2 JP 5139779B2 JP 2007298588 A JP2007298588 A JP 2007298588A JP 2007298588 A JP2007298588 A JP 2007298588A JP 5139779 B2 JP5139779 B2 JP 5139779B2
Authority
JP
Japan
Prior art keywords
color
color information
palette
data
generating
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.)
Expired - Fee Related
Application number
JP2007298588A
Other languages
Japanese (ja)
Other versions
JP2009122548A (en
JP2009122548A5 (en
Inventor
匡彦 河野
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 JP2007298588A priority Critical patent/JP5139779B2/en
Publication of JP2009122548A publication Critical patent/JP2009122548A/en
Publication of JP2009122548A5 publication Critical patent/JP2009122548A5/ja
Application granted granted Critical
Publication of JP5139779B2 publication Critical patent/JP5139779B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Color, Gradation (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、ベクトルデータに基づいて所定の色数からなるラスタデータを生成する画像形成技術に関するものである。   The present invention relates to an image forming technique for generating raster data having a predetermined number of colors based on vector data.

一般に、組み込み機器等に付属のディスプレイは、表示可能な色数が制限されている場合が多い。その理由は、主に以下の二つに大別することができる。   In general, a display attached to an embedded device or the like often has a limited number of colors that can be displayed. The reason can be roughly divided into the following two.

一つは、ディスプレイ自体がハードウェアとして表現できる色数が限られている場合である。もう一つは、処理を高速化すべく一度に表示可能な色数をパレットにより制限している場合である。   One is when the number of colors that the display itself can represent as hardware is limited. The other is the case where the palette limits the number of colors that can be displayed at one time in order to speed up the processing.

このように表示可能な色数が制限されたディスプレイ上に、当該色数を超える色数からなるラスタデータを表示させる場合、画像形成装置では、当該ラスタデータに対して減色処理を施すことが必要となってくる。   When displaying raster data having the number of colors exceeding the number of colors on the display in which the number of colors that can be displayed is limited in this way, the image forming apparatus needs to perform color reduction processing on the raster data. It becomes.

従来の代表的な減色処理としては、例えば、ラスタデータを構成する各色のうち、ラスタデータに占める面積が大きい色(ピクセル数の多い色)を優先的に残し、面積の小さい色(ピクセル数の少ない色)を、他の色に変換するといった減色処理が挙げられる。   As a typical representative color reduction process, for example, among colors constituting raster data, a color having a large area in the raster data (a color having a large number of pixels) is preferentially left, and a color having a small area (a number of pixels) For example, a color reduction process of converting a small number of colors) to another color.

あるいは、表示すべき色をユーザがパレットとして指定しておき、それ以外の色については、当該ユーザによりパレットとして指定されたいずれかの色に変換するといった減色処理が挙げられる。
特開2003−87578号公報
Alternatively, a color reduction process in which the user specifies a color to be displayed as a palette and converts the other colors into any of the colors specified as the palette by the user is given.
JP 2003-87578 A

ここで、ディスプレイ上に表示されるデータがページ記述言語により記述されたベクトルデータで与えられ、かつ、ディスプレイにより表示可能な色数が制限されている場合について検討する。この場合、ページ記述言語により記述されたベクトルデータにより表現されうる色情報を抽出し、パレットを生成しておく必要があるが、ベクトルデータの場合、表現されうる全ての色情報が明示的に記述されているわけではない。例えば、「アンチエイリアシング」や「半透明な色同士の重ね合わせ(αブレンディング)」等のように、処理内容(要素)を記述し、対応する具体的な色情報自体について記述しない場合があるためである。このような色情報については、アンチエイリアシングで計算されることにより、あるいは、αブレンディング処理の結果としてはじめて抽出されるものであり、ベクトルデータ内にはじめから記述されているわけではない。   Here, consider the case where the data displayed on the display is given as vector data described in the page description language, and the number of colors that can be displayed on the display is limited. In this case, it is necessary to extract color information that can be expressed by vector data described in the page description language and generate a palette, but in the case of vector data, all color information that can be expressed is explicitly described. It has not been done. For example, processing details (elements) may be described, such as “anti-aliasing” or “translucent color overlay (α blending)”, and the corresponding specific color information itself may not be described. It is. Such color information is extracted for the first time by calculation by anti-aliasing or as a result of α blending processing, and is not described in the vector data from the beginning.

このため、ベクトルデータに基づいて直接的に、減色処理用のパレットを生成しておくことは、困難である。   For this reason, it is difficult to generate a palette for color reduction processing directly based on vector data.

一方で、ベクトルデータの記述に基づいてラスタデータを生成したうえで、該ラスタデータを構成する色情報に基づいてパレットを生成し、これを用いて減色処理(例えば、面積の小さい色について減色処理)することも考えられる。しかし、この場合、ベクトルデータ内で明示的に記述されていた色情報が抽出されず、パレットに含まれなくなるといった事態が生じえる。この場合、例えば、ベクトルデータのデザイナが意図した色が、表示結果に反映されないこととなり、結果として低品位な減色処理となってしまう。   On the other hand, after generating raster data based on the description of vector data, a palette is generated based on the color information constituting the raster data, and color reduction processing (for example, color reduction processing for colors with a small area) is performed using this palette. ). However, in this case, a situation may occur in which the color information explicitly described in the vector data is not extracted and is not included in the palette. In this case, for example, the color intended by the designer of the vector data is not reflected in the display result, resulting in low-quality color reduction processing.

本発明は、上記課題に鑑みてなされたものであり、ベクトルデータに基づいて所定の色数からなるラスタデータを生成するにあたり、パレットを用いた高品位な減色処理を実現することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to realize high-quality color reduction processing using a palette when generating raster data having a predetermined number of colors based on vector data. .

上記の目的を達成するために本発明に係る画像形成装置は以下のような構成を備える。即ち、
ページ記述言語により記述されたベクトルデータに基づいて、予め定められた色数からなるラスタデータを生成する画像形成装置であって、
前記ベクトルデータにより表現されうる全ての色情報を用いてラスタデータを生成するデータ生成手段と、
前記ベクトルデータに記述された要素内において、明示的に記述された色情報を抽出する抽出手段と、
前記抽出手段により抽出された色情報と、前記データ生成手段において前記ラスタデータを生成するのに用いた色情報の一部とを用いて、前記予め定められた色数のパレットを生成するパレット生成手段と、
前記データ生成手段において前記ラスタデータを生成するのに用いた色情報のうち、前記パレットの生成に用いられなかった色情報を、該パレットを構成するいずれかの色情報に割り当てるための色変換テーブルを生成するテーブル生成手段と、
前記データ生成手段により生成された前記ラスタデータを、前記パレット及び前記色変換テーブルを用いて減色処理する減色処理手段とを備える。
In order to achieve the above object, an image forming apparatus according to the present invention has the following configuration. That is,
An image forming apparatus that generates raster data having a predetermined number of colors based on vector data described in a page description language,
Data generating means for generating raster data using all color information that can be expressed by the vector data;
Extraction means for extracting color information explicitly described in the elements described in the vector data;
Pallet generation for generating the palette with the predetermined number of colors using the color information extracted by the extraction unit and a part of the color information used for generating the raster data in the data generation unit Means,
A color conversion table for allocating color information not used for generating the palette among the color information used for generating the raster data in the data generating means to any color information constituting the palette Table generating means for generating
A color reduction processing unit configured to perform a color reduction process on the raster data generated by the data generation unit using the palette and the color conversion table.

本発明によれば、ベクトルデータに基づいて所定の色数からなるラスタデータを生成するにあたり、パレットを用いた高品位な減色処理を実現することが可能となる。   According to the present invention, it is possible to realize high-quality color reduction processing using a pallet when generating raster data having a predetermined number of colors based on vector data.

以下、図面を参照して本発明の一実施形態を詳細に説明する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

1.画像形成装置のハードウェア構成
図1は本発明の一実施形態にかかる画像形成装置101の構成を示す図である。同図において、CPU108は画像形成装置101全体を制御する。
1. Hardware Configuration of Image Forming Apparatus FIG. 1 is a diagram showing a configuration of an image forming apparatus 101 according to an embodiment of the present invention. In the figure, a CPU 108 controls the entire image forming apparatus 101.

ROM102は、CPU108にて処理される本実施形態にかかる画像形成方法を実現するための制御プログラムや各種固定データを格納する。RAM103は、SRAM、DRAM等で構成され、プログラム制御変数等を格納する。また、各種設定パラメータ、各種ワーク用バッファもRAM103に格納される。   The ROM 102 stores a control program and various fixed data for realizing the image forming method according to the present embodiment processed by the CPU 108. The RAM 103 is configured by SRAM, DRAM, and the like, and stores program control variables and the like. Various setting parameters and various work buffers are also stored in the RAM 103.

外部記憶部104はハードディスク等で構成され、文書や画像などのファイルを格納する。   The external storage unit 104 includes a hard disk and stores files such as documents and images.

入力部105は、キーボードやタッチパネル等により構成され、オペレータは、該入力部105を介して各種入力操作を行う。表示部106には、ブラウン管やLCD、LED等が含まれ、オペレータに対して処理結果を通知する役割を果たす。   The input unit 105 includes a keyboard and a touch panel, and the operator performs various input operations via the input unit 105. The display unit 106 includes a cathode ray tube, an LCD, an LED, and the like and plays a role of notifying the operator of the processing result.

I/F107は、不図示のネットワークに接続するためのインタフェースである。接続方法としてはLAN、USB等が挙げられる。   The I / F 107 is an interface for connecting to a network (not shown). Examples of connection methods include LAN and USB.

2.画像形成装置が処理対象とするベクトルデータの一例
図2は、画像形成装置101が処理対象とする、ページ記述言語により記述されたベクトルデータの一例を示す図である。本実施形態において、処理対象とするベクトルデータは、図形がSVG形式で記述されたXMLファイルであるとする。なお、SVGとはScalable Vector Graphicsの略称である。また、XMLとはExtensible Markup Languageの略称である。なお、SVGについての詳細は、例えば、http://www.w3.org/Graphics/SVG/に開示されている。
2. Example of Vector Data to be Processed by Image Forming Apparatus FIG. 2 is a diagram illustrating an example of vector data described by a page description language to be processed by the image forming apparatus 101. In the present embodiment, it is assumed that the vector data to be processed is an XML file in which graphics are described in the SVG format. SVG is an abbreviation for Scalable Vector Graphics. XML is an abbreviation for Extensible Markup Language. Details of SVG can be found at, for example, http: // www. w3. org / Graphics / SVG /.

一般にSVGでは、「属性」と「要素」と「CSS」(Cascading Style Sheets)とによって色が指定される。   In general, in SVG, a color is designated by “attribute”, “element”, and “CSS” (Cascading Style Sheets).

「属性」は、表示される色を明示的に記述したものである。「属性」としては、図形内部の色を指定するfill属性や、その不透明度を指定するfill−opacity属性、図形の輪郭の色を指定するstroke属性や、その不透明度を指定するstroke−opacity属性などが挙げられる。   The “attribute” is an explicit description of the displayed color. As the “attribute”, a fill attribute that specifies the color inside the figure, a fill-opacity attribute that specifies the opacity thereof, a stroke attribute that specifies the color of the outline of the figure, and a stroke-opacity attribute that specifies the opacity thereof Etc.

図2の例では、<circle>(201)の内部の色としてfill=“#ff0000”(202)、その不透明度としてfill−opacity=“0.5”(203)が指定されている。これらの色は、32−bitARGBで表現すると“#7fff0000”となる。   In the example of FIG. 2, fill = “# ff0000” (202) is specified as the color inside <circle> (201), and fill-opacity = “0.5” (203) is specified as the opacity thereof. These colors are “# 7fff0000” when expressed in 32-bit ARGB.

「要素」は、処理内容を記述したものである。「要素」としては、グラデーションのかけ方を指定する<linearGradient>要素や、<radialGradient>要素、パターンを指定する<pattern>要素、フィルタを指定する<filter>要素などが挙げられる。   “Element” describes processing contents. Examples of the “element” include a <linearGradient> element that specifies how to apply gradation, a <radialGradient> element, a <pattern> element that specifies a pattern, a <filter> element that specifies a filter, and the like.

「CSS」はCSS仕様(http://www.w3.org/Style/CSS/)で定義されており、ここでは説明を省略する。   “CSS” is defined in the CSS specification (http://www.w3.org/Style/CSS/), and the description thereof is omitted here.

なお、図2に示すベクトルデータを表示部106に表示すると、図3のようになる。   2 is displayed on the display unit 106, the result is as shown in FIG.

3.画像形成装置の機能構成
図4は、本発明の一実施形態にかかる画像形成装置101の機能構成を示すブロック図である。ここで、本実施形態にかかる画像形成装置101を構成する表示部(ブラウン管413)は、1ピクセル当たり32−bitARGBで色を出力する能力を有しているものとする。ただし、画像形成装置101の制限によりパレットは、16色までしか登録することができないようになっており、これにより、ブラウン管413に一度に表示可能な色は、パレットに登録された当該16色までとなっている。
3. Functional Configuration of Image Forming Apparatus FIG. 4 is a block diagram showing a functional configuration of the image forming apparatus 101 according to the embodiment of the present invention. Here, it is assumed that the display unit (CRT) 413 constituting the image forming apparatus 101 according to the present embodiment has a capability of outputting a color with 32-bit ARGB per pixel. However, only 16 colors can be registered in the palette due to the limitation of the image forming apparatus 101. As a result, the colors that can be displayed on the cathode ray tube 413 at the same time are limited to the 16 colors registered in the palette. It has become.

同図において、ベクトルデータ記憶部402は、ブラウン管413に表示されるベクトルデータを保存する。上述したように、本実施形態において、ベクトルデータ記憶部402に保存されるベクトルデータは、図形がSVG(http://www.w3.org/Graphics/SVG/)形式で記述されたXMLファイルである(図2参照)。   In the figure, a vector data storage unit 402 stores vector data displayed on the cathode ray tube 413. As described above, in the present embodiment, the vector data stored in the vector data storage unit 402 is an XML file in which a figure is described in the SVG (http://www.w3.org/Graphics/SVG/) format. Yes (see FIG. 2).

ベクトルデータ解析部403は、ベクトルデータ記憶部402に保存されたベクトルデータを読み出し、ベクトルデータ内に明示的に記述されている色情報を抽出する。ベクトルデータ色情報記憶部404は、ベクトルデータ解析部403において抽出された色情報を保存する。   The vector data analysis unit 403 reads the vector data stored in the vector data storage unit 402 and extracts color information explicitly described in the vector data. The vector data color information storage unit 404 stores the color information extracted by the vector data analysis unit 403.

非減色ラスタデータ生成部401は、ベクトルデータ記憶部402に保存されたベクトルデータを読み出し、該ベクトルデータにより表現されうる全ての色を用いてラスタデータを生成する。具体的には、SVG仕様に従い、1ピクセル当たり32−bitARGBで表現されるラスタデータを生成する。なお、以下、このようなラスタデータを「非減色ラスタデータ」と称す。   The non-reduced color raster data generation unit 401 reads the vector data stored in the vector data storage unit 402, and generates raster data using all colors that can be expressed by the vector data. Specifically, raster data expressed in 32-bit ARGB per pixel is generated according to the SVG specification. Hereinafter, such raster data is referred to as “non-reduced color raster data”.

非減色ラスタデータ記憶部414は、非減色ラスタデータ生成部401において生成された非減色ラスタデータを保存する。   The non-reduced color raster data storage unit 414 stores the non-reduced color raster data generated by the non-reduced color raster data generation unit 401.

ラスタデータ解析部407は、非減色ラスタデータ記憶部414に保存された非減色ラスタデータを読み出し、該非減色ラスタデータを構成する各色のピクセル数をカウントする。   The raster data analysis unit 407 reads the non-reduction color raster data stored in the non-reduction color raster data storage unit 414, and counts the number of pixels of each color constituting the non-reduction color raster data.

ラスタデータ色情報記憶部408は、ラスタデータ解析部407においてカウントされた各色のピクセル数を各色の色情報に対応付けて保存する。   The raster data color information storage unit 408 stores the number of pixels of each color counted by the raster data analysis unit 407 in association with the color information of each color.

減色パレット生成部405は、ベクトルデータ色情報記憶部404及びラスタデータ色情報記憶部408に保存された色情報に基づいて、ブラウン管413上で表示可能な色数分の色情報が定義されたパレット(「減色パレット」と称す)を生成する。   A color reduction palette generation unit 405 is a palette in which color information for the number of colors that can be displayed on the cathode ray tube 413 is defined based on the color information stored in the vector data color information storage unit 404 and the raster data color information storage unit 408. (Referred to as “color reduction palette”).

減色パレット記憶部406は、減色パレット生成部405において生成された減色パレットを保存する。   The reduced color palette storage unit 406 stores the reduced color palette generated by the reduced color palette generation unit 405.

色変換テーブル生成部409は、ラスタデータ色情報記憶部408に保存された色情報のうち、減色パレットに含まれていない色情報を、該減色パレットに含まれるいずれかの色情報に変換するための色変換テーブルを生成する。   The color conversion table generation unit 409 converts color information that is not included in the color reduction palette among the color information stored in the raster data color information storage unit 408 into any color information included in the color reduction palette. Generate a color conversion table.

色変換テーブル記憶部410は、色変換テーブル生成部409において生成された色変換テーブルを保存する。   The color conversion table storage unit 410 stores the color conversion table generated by the color conversion table generation unit 409.

減色処理部411は、減色パレット記憶部406に保存された減色パレットと、色変換テーブル記憶部410に保存された色変換テーブルとを用いて、非減色ラスタデータ記憶部414に保存された非減色ラスタデータに減色処理を施す。なお、減色処理部411において減色処理された結果得られたラスタデータを、以下、「減色ラスタデータ」と称す。   The color reduction processing unit 411 uses the color reduction palette stored in the color reduction palette storage unit 406 and the color conversion table stored in the color conversion table storage unit 410 to perform non-color reduction stored in the non-color reduction raster data storage unit 414. Apply color reduction processing to raster data. The raster data obtained as a result of the color reduction processing in the color reduction processing unit 411 is hereinafter referred to as “color reduction raster data”.

表示制御部412は、減色処理部411において生成された減色ラスタデータをブラウン管413に表示するための表示制御を行う。   The display control unit 412 performs display control for displaying the color reduction raster data generated in the color reduction processing unit 411 on the cathode ray tube 413.

なお、同図に示した機能構成は、本発明の画像形成装置の一実施形態を示したものであり、装置によっては、上記構成以外に、スキャナ部、プリンタ部、モデム、スピーカ等が備えられていても良い。また、ソフトウェア等で本発明にかかる画像形成方法を実現する場合にあっては、同図の各ブロックは、必ずしも画像形成装置内に配されている必要はない。   The functional configuration shown in the figure shows an embodiment of the image forming apparatus of the present invention. Depending on the apparatus, a scanner unit, a printer unit, a modem, a speaker, and the like are provided in addition to the above configuration. May be. Further, when the image forming method according to the present invention is realized by software or the like, each block in the figure does not necessarily have to be arranged in the image forming apparatus.

4.画像形成装置における処理の流れ
以下、図5のフローチャートに沿って、画像形成装置101における処理の流れについて説明する。なお、説明は、減色パレット生成部405において生成される減色パレットを示す図6〜図8及び、色変換テーブル生成部409において生成される色変換テーブルを示す図9を参照しながら行うものとする。
4). Process Flow in Image Forming Apparatus Hereinafter, the process flow in the image forming apparatus 101 will be described with reference to the flowchart of FIG. The description will be made with reference to FIGS. 6 to 8 showing the color reduction palette generated by the color reduction palette generation unit 405 and FIG. 9 showing the color conversion table generated by the color conversion table generation unit 409. .

ステップS501では、非減色ラスタデータ生成部401が、ベクトルデータ記憶部402からベクトルデータ(SVG)を読み出し、非減色ラスタデータ(32−bitビットマップデータ)を生成する。本実施形態ではアンチエイリアスは4段階で行われ、背景色として白色透明を使用しているものとする。生成される非減色ラスタデータは、図3のようになり、非減色ラスタデータを構成する色数は30であるとする。   In step S501, the non-reduced color raster data generation unit 401 reads vector data (SVG) from the vector data storage unit 402, and generates non-reduced color raster data (32-bit bitmap data). In this embodiment, anti-aliasing is performed in four stages, and white transparent is used as the background color. The generated non-reduced color raster data is as shown in FIG. 3, and it is assumed that the number of colors constituting the non-reduced color raster data is 30.

ステップS502では、ベクトルデータ解析部403が、ベクトルデータ記憶部402からベクトルデータ(SVG)を読み出し、解析してSVGの要素内に明示的に記述された色情報を抽出する。これらはSVG作成時に明示的に与えられたものであり、例えばベクトルデータのデザイナが出力として意図した色である。   In step S502, the vector data analysis unit 403 reads the vector data (SVG) from the vector data storage unit 402, analyzes it, and extracts color information explicitly described in the elements of the SVG. These are explicitly given at the time of SVG creation, for example, the colors intended as output by the designer of vector data.

ステップS503では、ベクトルデータ解析部403が、抽出した色情報の色数がブラウン管413で表示可能な色数(本実施形態では“16”)を超えているかどうかを判断する。   In step S503, the vector data analysis unit 403 determines whether or not the number of colors of the extracted color information exceeds the number of colors that can be displayed by the CRT 413 (in this embodiment, “16”).

ステップS503において、超えていると判断された場合には、処理を終了する。一方、超えていないと判断された場合には、ステップS504に進み、ベクトルデータ色情報記憶部404に、当該抽出した色情報を保存する。   If it is determined in step S503 that the number has been exceeded, the process ends. On the other hand, if it is determined that it does not exceed, the process proceeds to step S504, and the extracted color information is stored in the vector data color information storage unit 404.

ステップS505では、減色パレット生成部405が、ベクトルデータ色情報記憶部404に保存された色情報を読み出し、減色パレットに追加する。たとえば、図2に示すベクトルデータの場合、<circle>の内部の色情報としてfill=”#ff0000”が、その不透明度としてfill−opacity=”0.5”がそれぞれ明示的に記述されている。これらは、32−bitARGBで表現すると“#7fff0000”となるため、これが減色パレットに追加されることとなる。このようにして図2に示すベクトルデータに基づいて生成された減色パレットを、図6に示す。なお、生成された減色パレットは、減色パレット記憶部406に保存される。   In step S505, the color reduction palette generation unit 405 reads the color information stored in the vector data color information storage unit 404 and adds it to the color reduction palette. For example, in the case of the vector data shown in FIG. 2, fill = “# ff0000” is explicitly described as the color information inside <circle>, and fill-opacity = “0.5” is explicitly described as the opacity thereof. . Since these are expressed as 32-bit ARGB and become “# 7fff0000”, they are added to the color reduction palette. FIG. 6 shows a subtractive color palette generated based on the vector data shown in FIG. The generated color reduction palette is stored in the color reduction palette storage unit 406.

ステップS506では、減色パレット生成部405が、減色パレット記憶部406から減色パレットを読み出し、16色分の色情報が全て登録されたか否かを判断する。   In step S506, the reduced color palette generation unit 405 reads the reduced color palette from the reduced color palette storage unit 406, and determines whether all the color information for 16 colors has been registered.

ステップS506において、16色分の色情報が全て登録されたと判断された場合には、ステップS508に進む。ここでは、減色パレットは図6に示す状態にあり、パレット番号3〜15までは色情報が未登録の状態となっている。このため、ステップS506では、減色パレットには、まだ空きがあると判断され、ステップS507に進む。   If it is determined in step S506 that all the color information for 16 colors has been registered, the process proceeds to step S508. Here, the color-reduction palette is in the state shown in FIG. 6, and color information is not registered for palette numbers 3 to 15. For this reason, in step S506, it is determined that the color-reduction palette still has space, and the process proceeds to step S507.

ステップS507では、非減色ラスタデータ記憶部414に保存された非減色ラスタデータに基づいて、減色パレットへの色情報の登録を行う。具体的には、ラスタデータ解析部407が、非減色ラスタデータ記憶部414から非減色ラスタデータを読み出し、非減色ラスタデータを構成する各色のピクセル数をカウントし、各色の色情報と対応付けてラスタデータ色情報記憶部408に保存する。更に、減色パレット生成部405が、ラスタデータ色情報記憶部408に保存された色情報を読み出し、既に減色パレットに含まれる色情報以外の色情報についてピクセル数に基づいてソートし、ピクセル数の多い色情報を順次減色パレットに追加する。この結果、減色パレットは図7に示すように16色分の色情報が全て登録されることとなる。なお、当該追加後の減色パレットは減色パレット記憶部406に保存される。   In step S507, color information is registered in the color reduction palette based on the non-color reduction raster data stored in the non-color reduction raster data storage unit 414. Specifically, the raster data analysis unit 407 reads the non-reduction color raster data from the non-reduction color raster data storage unit 414, counts the number of pixels of each color constituting the non-reduction color raster data, and associates it with the color information of each color. The raster data is stored in the color information storage unit 408. Further, the color reduction palette generation unit 405 reads the color information stored in the raster data color information storage unit 408, sorts color information other than the color information already included in the color reduction palette based on the number of pixels, and has a large number of pixels. Sequentially add color information to the color reduction palette. As a result, all the color information for 16 colors is registered in the color reduction palette as shown in FIG. The reduced color palette after the addition is stored in the reduced color palette storage unit 406.

ステップS508では、色変換テーブル生成部409が、減色パレット記憶部406に保存された減色パレットを読み出す。そして、減色パレットに含まれる色情報がそのままパレット番号に変換されるように色変換テーブル(図8)を生成し、色変換テーブル記憶部410に保存する。   In step S <b> 508, the color conversion table generation unit 409 reads the reduced color palette stored in the reduced color palette storage unit 406. Then, a color conversion table (FIG. 8) is generated so that the color information included in the subtractive color palette is directly converted into the palette number, and is stored in the color conversion table storage unit 410.

ステップS509では、色変換テーブル生成部409が、色変換テーブル記憶部410から色変換テーブルを、ラスタデータ色情報記憶部408から色情報をそれぞれ読み出す。そして、ラスタデータ色情報記憶部408から読み出された色情報のうち、色変換テーブルに含まれていない色情報が存在するか否かを判定する。   In step S509, the color conversion table generation unit 409 reads the color conversion table from the color conversion table storage unit 410 and the color information from the raster data color information storage unit 408, respectively. Then, it is determined whether there is color information that is not included in the color conversion table among the color information read from the raster data color information storage unit 408.

ステップS509において、存在しないと判定された場合には、ステップS512に進む。本実施形態の場合、ラスタデータ色情報記憶部408から読み出される色情報の色数は30あり、減色パレットに含まれない色情報が存在するので色変換テーブルへの追加が行われることとなる。   If it is determined in step S509 that it does not exist, the process proceeds to step S512. In the case of this embodiment, the number of colors of color information read from the raster data color information storage unit 408 is 30, and there is color information that is not included in the subtractive color palette, so that it is added to the color conversion table.

ステップS510では、色変換テーブル生成部409が、色変換テーブルに含まれていない色情報と、減色パレットに登録されている16色の色情報との類似度を計算する。   In step S510, the color conversion table generation unit 409 calculates the similarity between the color information not included in the color conversion table and the 16-color color information registered in the color reduction palette.

ステップS511では、ステップS510における計算の結果、最も類似度の高いパレット番号に変換されるように、色変換テーブルを生成する。この結果、色変換テーブルは図9のようになる。このようにして生成された色変換テーブルは色変換テーブル記憶部410に保存される。   In step S511, a color conversion table is generated so that it is converted into the palette number having the highest similarity as a result of the calculation in step S510. As a result, the color conversion table is as shown in FIG. The color conversion table generated in this way is stored in the color conversion table storage unit 410.

ステップS512では、減色処理部411が、色変換テーブル記憶部410から色変換テーブルを、非減色ラスタデータ記憶部414から非減色ラスタデータをそれぞれ読み出し、非減色ラスタデータを1ピクセルごとに色変換テーブルに従って変換する。   In step S512, the color reduction processing unit 411 reads the color conversion table from the color conversion table storage unit 410 and the non-color reduction raster data from the non-color reduction raster data storage unit 414, respectively. Convert according to

この結果、非減色ラスタデータは4−bitパレット画像(減色ラスタデータ)に変換され、表示制御部412に送信される。表示制御部412では、ブラウン管413に減色ラスタデータを出力する。   As a result, the non-reduced color raster data is converted into a 4-bit palette image (reduced color raster data) and transmitted to the display control unit 412. The display control unit 412 outputs the reduced color raster data to the cathode ray tube 413.

以上の説明から明らかなように、本実施形態では、ベクトルデータに基づいて、所定の色数からなるラスタデータを生成するにあたり、減色処理に用いるパレットを、ベクトルデータにおいて明示的に記述された色情報を用いて生成する構成とした。   As is apparent from the above description, in the present embodiment, when generating raster data having a predetermined number of colors based on vector data, the palette used for the color reduction processing is defined by the color explicitly described in the vector data. It was set as the structure produced | generated using information.

これにより、ベクトルデータのデザイナが意図した色が、減色処理により反映されなくなってしまうといった事態を回避することが可能となる。   This makes it possible to avoid a situation in which the color intended by the designer of the vector data is not reflected by the color reduction process.

また、減色処理に用いるパレットのうち、ベクトルデータにおいて明示的に記述された色情報以外の色情報については、ベクトルデータにより表現されうる色のうち、ピクセル数の多い色を用いることとした。   In addition, among the palettes used for the color reduction processing, for the color information other than the color information explicitly described in the vector data, a color having a large number of pixels among colors that can be expressed by the vector data is used.

これにより、減色処理において、面積の大きい色を残すことが可能となる。   This makes it possible to leave a color with a large area in the color reduction process.

以上のことから、高品位な減色処理を実現することができるようになる。   From the above, high-quality color reduction processing can be realized.

[他の実施形態]
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェース機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
[Other Embodiments]
Note that the present invention can be applied to a system (for example, a copier, a facsimile machine, etc.) consisting of a single device even when applied to a system composed of a plurality of devices (for example, a host computer, interface device, reader, printer, etc.). You may apply.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給するよう構成することによっても達成されることはいうまでもない。この場合、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することにより、上記機能が実現されることとなる。なお、この場合、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   Needless to say, the object of the present invention can also be achieved by supplying a system or apparatus with a storage medium storing software program codes for realizing the functions of the above-described embodiments. In this case, the above functions are realized by the computer (or CPU or MPU) of the system or apparatus reading and executing the program code stored in the storage medium. In this case, the storage medium storing the program code constitutes the present invention.

プログラムコードを供給するための記憶媒体としては、例えば、フロッピ(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。   As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or the like is used. be able to.

また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現される場合に限られない。例えば、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, the present invention is not limited to the case where the functions of the above-described embodiments are realized by executing the program code read by the computer. For example, an OS (operating system) running on a computer performs part or all of actual processing based on an instruction of the program code, and the functions of the above-described embodiments may be realized by the processing. Needless to say, it is included.

さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、前述した実施形態の機能が実現される場合も含まれる。つまり、プログラムコードがメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって実現される場合も含まれる。   Furthermore, after the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the functions of the above-described embodiments are realized. Is also included. That is, after the program code is written in the memory, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing based on the instruction of the program code, and is realized by the processing. This is also included.

本発明の一実施形態にかかる画像形成装置101の構成を示す図である。1 is a diagram illustrating a configuration of an image forming apparatus 101 according to an embodiment of the present invention. 画像形成装置101が処理対象とするベクトルデータの一例を示す図である。3 is a diagram illustrating an example of vector data to be processed by the image forming apparatus 101. FIG. 図2に示すベクトルデータを表示部106に表示した様子を示す図である。It is a figure which shows a mode that the vector data shown in FIG. 本発明の一実施形態にかかる画像形成装置101の機能構成を示すブロック図である。1 is a block diagram showing a functional configuration of an image forming apparatus 101 according to an embodiment of the present invention. 画像形成装置101における処理の流れを示すフローチャートである。4 is a flowchart showing a flow of processing in the image forming apparatus 101. 減色パレット生成部405において生成される減色パレットを示す図である。It is a figure which shows the color reduction palette produced | generated in the color reduction palette production | generation part 405. FIG. 減色パレット生成部405において生成される減色パレットを示す図である。It is a figure which shows the color reduction palette produced | generated in the color reduction palette production | generation part 405. FIG. 減色パレット生成部405において生成される減色パレットを示す図である。It is a figure which shows the color reduction palette produced | generated in the color reduction palette production | generation part 405. FIG. 色変換テーブル生成部409において生成される色変換テーブルを示す図である。It is a figure which shows the color conversion table produced | generated in the color conversion table production | generation part 409.

Claims (8)

ページ記述言語により記述されたベクトルデータに基づいて、予め定められた色数からなるラスタデータを生成する画像形成装置であって、
前記ベクトルデータにより表現されうる全ての色情報を用いてラスタデータを生成するデータ生成手段と、
前記ベクトルデータに記述された要素内において、明示的に記述された色情報を抽出する抽出手段と、
前記抽出手段により抽出された色情報と、前記データ生成手段において前記ラスタデータを生成するのに用いた色情報の一部とを用いて、前記予め定められた色数のパレットを生成するパレット生成手段と、
前記データ生成手段において前記ラスタデータを生成するのに用いた色情報のうち、前記パレットの生成に用いられなかった色情報を、該パレットを構成するいずれかの色情報に割り当てるための色変換テーブルを生成するテーブル生成手段と、
前記データ生成手段により生成された前記ラスタデータを、前記パレット及び前記色変換テーブルを用いて減色処理する減色処理手段と
を備えることを特徴とする画像形成装置。
An image forming apparatus that generates raster data having a predetermined number of colors based on vector data described in a page description language,
Data generating means for generating raster data using all color information that can be expressed by the vector data;
Extraction means for extracting color information explicitly described in the elements described in the vector data;
Pallet generation for generating the palette with the predetermined number of colors using the color information extracted by the extraction unit and a part of the color information used for generating the raster data in the data generation unit Means,
A color conversion table for allocating color information not used for generating the palette among the color information used for generating the raster data in the data generating means to any color information constituting the palette Table generating means for generating
An image forming apparatus comprising: a color reduction processing unit that performs color reduction processing on the raster data generated by the data generation unit using the palette and the color conversion table.
前記パレット生成手段は、
前記抽出手段により抽出された色情報を優先して、前記パレットを生成することを特徴とする請求項1に記載の画像形成装置。
The palette generating means includes
The image forming apparatus according to claim 1, wherein the palette is generated by giving priority to the color information extracted by the extracting unit.
前記パレット生成手段は、
前記データ生成手段において前記ラスタデータを生成するのに用いた色情報のうち、該ラスタデータにおいてピクセル数の多い色情報を優先して、前記パレットを生成することを特徴とする請求項1に記載の画像形成装置。
The palette generating means includes
2. The palette is generated with priority given to color information having a large number of pixels in the raster data among the color information used to generate the raster data in the data generation means. Image forming apparatus.
前記テーブル生成手段は、
前記データ生成手段において前記ラスタデータを生成するのに用いた色情報のうち、前記パレットの生成に用いられなかった色情報を、該パレットに含まれる色情報のうち最も類似する色情報に割り当てるための色変換テーブルを生成することを特徴とする請求項1に記載の画像形成装置。
The table generating means includes
Of the color information used to generate the raster data in the data generation means, color information that was not used for generating the palette is assigned to the most similar color information among the color information included in the palette. The image forming apparatus according to claim 1, wherein the color conversion table is generated.
前記ベクトルデータは、XML(Extensible Markup Language)ファイルであることを特徴とする請求項1に記載の画像形成装置。   The image forming apparatus according to claim 1, wherein the vector data is an XML (Extensible Markup Language) file. 前記XMLファイルがSVG(Scalable Vector Graphics)形式で記述されていることを特徴とする請求項5に記載の画像形成装置。   The image forming apparatus according to claim 5, wherein the XML file is described in an SVG (Scalable Vector Graphics) format. ページ記述言語により記述されたベクトルデータに基づいて、予め定められた色数からなるラスタデータを生成する画像形成装置における画像形成方法であって、
データ生成手段が、前記ベクトルデータにより表現されうる全ての色情報を用いてラスタデータを生成するデータ生成工程と、
抽出手段が、前記ベクトルデータに記述された要素内において、明示的に記述された色情報を抽出する抽出工程と、
パレット生成手段が、前記抽出工程において抽出された色情報と、前記データ生成工程において前記ラスタデータを生成するのに用いた色情報の一部とを用いて、前記予め定められた色数のパレットを生成するパレット生成工程と、
テーブル生成手段が、前記データ生成工程において前記ラスタデータを生成するのに用いた色情報のうち、前記パレットの生成に用いられなかった色情報を、該パレットを構成するいずれかの色情報に割り当てるための色変換テーブルを生成するテーブル生成工程と、
減色処理手段が、前記データ生成工程において生成された前記ラスタデータを、前記パレット及び前記色変換テーブルを用いて減色処理する減色処理工程と
を備えることを特徴とする画像形成方法。
An image forming method in an image forming apparatus for generating raster data having a predetermined number of colors based on vector data described in a page description language,
A data generation step in which data generation means generates raster data using all color information that can be expressed by the vector data;
Extraction means, in said written in the vector data elements, an extraction step of extracting explicitly described color information,
A palette having a predetermined number of colors using the color information extracted in the extraction step and a part of the color information used to generate the raster data in the data generation step. A pallet generating process for generating
Of the color information used for generating the raster data in the data generation step by the table generation means, the color information that has not been used for generating the palette is assigned to any color information constituting the palette. A table generation step for generating a color conversion table for
An image forming method comprising: a color reduction processing step in which a color reduction processing means performs color reduction processing on the raster data generated in the data generation step using the palette and the color conversion table.
請求項7に記載の画像形成方法の各工程をコンピュータ実行させるためのプログラム。 A program for causing a computer to execute each step of the image forming method according to claim 7.
JP2007298588A 2007-11-16 2007-11-16 Image forming apparatus and image forming method Expired - Fee Related JP5139779B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007298588A JP5139779B2 (en) 2007-11-16 2007-11-16 Image forming apparatus and image forming method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007298588A JP5139779B2 (en) 2007-11-16 2007-11-16 Image forming apparatus and image forming method

Publications (3)

Publication Number Publication Date
JP2009122548A JP2009122548A (en) 2009-06-04
JP2009122548A5 JP2009122548A5 (en) 2010-11-04
JP5139779B2 true JP5139779B2 (en) 2013-02-06

Family

ID=40814735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007298588A Expired - Fee Related JP5139779B2 (en) 2007-11-16 2007-11-16 Image forming apparatus and image forming method

Country Status (1)

Country Link
JP (1) JP5139779B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011020276A (en) * 2009-07-13 2011-02-03 Ricoh Co Ltd Image forming apparatus, image data processing method, and control program
KR101999163B1 (en) * 2012-06-15 2019-10-01 (주)한국티이에스 Apparatus for transforming image signal

Also Published As

Publication number Publication date
JP2009122548A (en) 2009-06-04

Similar Documents

Publication Publication Date Title
US6925597B2 (en) Systems and methods for digital document processing
JP5274305B2 (en) Image processing apparatus, image processing method, and computer program
US8595614B2 (en) Document generating apparatus, document generating method, computer program and recording medium
US20100315681A1 (en) Image processing apparatus, image processing method, and computer-readable storage medium
US7853873B2 (en) Data processing apparatus, data processing method, and computer program for generating electronic data from a paper document
JP5256956B2 (en) Image processing apparatus, image display system, and program
US20170364317A1 (en) Information processing apparatus, information processing method, and storage medium
JP5462557B2 (en) Image processing apparatus and control method thereof
JP2011188291A (en) Image processor and image processing program
JP5139779B2 (en) Image forming apparatus and image forming method
JP2012195686A (en) Information processing apparatus, printing control program and computer readable storage medium
CN102122361B (en) Variable area-based page assembly method and system
JP6904717B2 (en) Image processing equipment, its control method, and programs
JP4944068B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP5326858B2 (en) Image processing apparatus and image processing program
JP5063207B2 (en) Color conversion processing apparatus, method, recording medium, and program
JP2011186835A (en) Image processing apparatus and image processing program
JP6089738B2 (en) Electronic document file compression device
JP2008287440A (en) Image processor and program
EP1272940A1 (en) Systems and methods for digital document processing
JP4298579B2 (en) Image processing method and print control apparatus
JP4991429B2 (en) Coloring material usage reduction program
JP5116532B2 (en) Image processing apparatus and image processing method
JP2010066858A (en) Printing system, printer driver, and printer
JP2017054470A (en) Image processing device and image processing method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100916

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100916

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120919

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: 20121019

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121116

R151 Written notification of patent or utility model registration

Ref document number: 5139779

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151122

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees