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
JP6140973B2 - Image processing apparatus, image processing method, and program - Google Patents
[go: Go Back, main page]

JP6140973B2 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP6140973B2
JP6140973B2 JP2012232115A JP2012232115A JP6140973B2 JP 6140973 B2 JP6140973 B2 JP 6140973B2 JP 2012232115 A JP2012232115 A JP 2012232115A JP 2012232115 A JP2012232115 A JP 2012232115A JP 6140973 B2 JP6140973 B2 JP 6140973B2
Authority
JP
Japan
Prior art keywords
image
attribute
compressed
lossless
lossy
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
JP2012232115A
Other languages
Japanese (ja)
Other versions
JP2014086777A (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 JP2012232115A priority Critical patent/JP6140973B2/en
Publication of JP2014086777A publication Critical patent/JP2014086777A/en
Application granted granted Critical
Publication of JP6140973B2 publication Critical patent/JP6140973B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

本発明は、柔軟に画素毎にLossy圧縮、LossLess圧縮を切り替えて圧縮処理を行う画像処理装置に関するものである。   The present invention relates to an image processing apparatus that performs compression processing by switching between Lossy compression and LossLess compression flexibly for each pixel.

文字や緻密な図形を含む画像データを圧縮する方法として、ITU−T勧告T.44 および 特許文献1 にて公知の(Mixed Raster Content:以下MRC)がある。この技術は、画像データを前景、背景、およびマスクのレイヤーに分離し、それぞれのレイヤーごとに適切な画像圧縮技術を適用する。その結果、全体の画像サイズを抑えつつ、文字部などのディテール再現が必要な部分に関する画質劣化を抑えることができる。ここで、レイヤーを分離する際にはセグメント分割という処理が用いられる。一般的には画像データ中の文字領域を判定し、文字領域の形状をマスクのレイヤーとして用い、文字領域の色を前景として用いる。   As a method for compressing image data including characters and precise figures, ITU-T Recommendation T.30. 44 and Patent Document 1 (Mixed Raster Content: hereinafter referred to as MRC). In this technique, image data is separated into foreground, background, and mask layers, and an appropriate image compression technique is applied to each layer. As a result, it is possible to suppress image quality deterioration related to a portion that requires detail reproduction, such as a character portion, while suppressing the entire image size. Here, when the layers are separated, a process called segment division is used. In general, a character area in image data is determined, the shape of the character area is used as a mask layer, and the color of the character area is used as a foreground.

特開平11−177977JP-A-11-177777

ITU−T勧告T.44ITU-T recommendation 44

ところで、印刷に用いる画像データに、地紋やアノト(アノト社商標)といったドットパターンの画像が含まれる場合がある。地紋とは、可視性の低いドットパターンの組み合わせで構成され、潜像としての効果を持つ画像データである。アノトは、ドットパターンの組み合わせに座標値などの情報を持たせ、カメラ付きのペンでドットパターンを検知することによって、情報を読み取る技術である。MRCのセグメント分割では、このようなドットパターンを正確に認識できない場合があり、結果として背景レイヤーとして非可逆に画像圧縮される場合がある。画像圧縮による画質劣化よってドットパターンに潰れが発生すると、地紋やアノトの機能が損なわれる。   By the way, there are cases where image data used for printing includes a dot pattern image such as a background pattern or Anoto (trademark of Anoto). A tint block is image data composed of a combination of dot patterns with low visibility and having an effect as a latent image. Anoto is a technique for reading information by giving dot pattern combinations information such as coordinate values and detecting the dot pattern with a pen with a camera. In the segment division of MRC, such a dot pattern may not be recognized correctly, and as a result, the image may be irreversibly compressed as a background layer. When the dot pattern is crushed due to image quality degradation due to image compression, the functions of the tint block and annot are impaired.

一方、Page記述言語(以下PDL)データを解釈しラスタ画像を生成することは、プリンタ技術として一般的である。PDLデータから生成されたラスタ画像は、描画されているドット毎に文字、図形、イメージのどれに該当するか示すAttributeという情報を付加することが可能である。また、PDLデータの中に地紋やアノトであることを示す属性が含まれることもある。   On the other hand, interpreting Page Description Language (hereinafter referred to as PDL) data to generate a raster image is a common printer technology. The raster image generated from the PDL data can add Attribute information indicating whether it corresponds to a character, a figure, or an image for each drawn dot. In addition, the PDL data may include an attribute indicating a ground pattern or annot.

本発明は、上記課題を鑑みてなされたもので、柔軟に画素毎にLossy圧縮、LossLess圧縮を切り替えて圧縮処理を行う画像処理装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus that performs compression processing by switching between lossy compression and lossless compression for each pixel flexibly.

本発明は、上記目的を実現するためにPDLデータからラスタ画像を生成するRIP
手段と、PDLデータ中の描画オブジェクトの種類に基づき、Attribute を生成する手段と、AttributeからのAttribute値の組み合わせからなるマスク画像を生成する手段であり、マスク画像はLossy圧縮する画素を選択するマスク画素とLossLess圧縮する画素を選択するマスク画素から構成されるマスク画像生成手段と、前記マスク画像を生成するためのAttribute値の組み合わせを、組み合わせ表として保持する手段であり、組み合わせ表はAttribute値がLossy圧縮する画素かLossLessする画素か示している組み合わせ表保持手段と、前記生成されたマスク画像を用いて、前記ラスタ画像からLossy圧縮する画像とLossLess圧縮する画像とを生成する手段と、前記生成されたLossy圧縮する画像を非可逆圧縮手法で圧縮する手段と前記生成されたLossLess圧縮する画像を可逆圧縮手法で圧縮する手段と、前記PDLデータに、前記生成されたLossy圧縮する画像と前記生成されたLossLess圧縮する画像が印刷されたことを示す印刷済属性が、付加されているか判定する判定手段とを有し、前記判定手段により前記印刷済属性が付加されていると判定されたとき、前記マスク画像生成手段は、以前に印刷された際に用いられた、組み合わせ表を用いてマスク画像は生成されることを特徴とする。
The present invention provides a RIP that generates a raster image from PDL data in order to achieve the above object.
Means for generating an Attribute based on the type of drawing object in the PDL data, and a means for generating a mask image comprising a combination of Attribute values from the Attribute. The mask image is a mask for selecting pixels to be subjected to Lossy compression. A combination of a mask image generation unit configured to select a pixel and a pixel to be subjected to LossLess compression, and an Attribute value for generating the mask image is stored as a combination table, and the combination table has an Attribute value. Using the combination table holding means indicating whether to perform lossy compression or lossless pixel, and the generated mask image, a lossy-compressed image and a lossless-compressed image are generated from the raster image. Means for compressing the generated Lossy-compressed image by a lossy compression technique, means for compressing the generated LossLess-compressed image by a lossless compression technique, and the generated Lossy to the PDL data. A determination unit that determines whether a compressed attribute and a printed attribute indicating that the generated LossLess compressed image has been printed have been added, and the printed attribute is added by the determination unit; when it is determined that, the mask image generating means, the mask image is characterized Rukoto produced using used when printed on the previously combinations table.

本発明によれば、PDLデータからLossy圧縮とLossLess圧縮を組み合わせたプリント用圧縮画像データを生成する際に、描画オブジェクトの種類と属性によってどちらの圧縮方式にするべきかを、画素単位で正確に制御することが可能になる。柔軟に画素毎にLossy圧縮、LossLess圧縮を切り替えて圧縮処理を行うことが可能となる。   According to the present invention, when generating compressed image data for printing that combines Lossy compression and LossLess compression from PDL data, it is possible to accurately determine which compression method should be used according to the type and attribute of the drawing object in pixel units. It becomes possible to control. It is possible to perform compression processing by switching between Lossy compression and LossLess compression flexibly for each pixel.

例えば、地紋やアノト等のドットパターンをLossLess圧縮することが可能になり、ドットパターンが画質劣化せず、地紋やアノトの機能を損なうことを防止できる。   For example, it becomes possible to perform LossLess compression on a dot pattern such as a tint block or annot, so that the image quality of the dot pattern does not deteriorate and the function of the tint block or annot can be prevented from being impaired.

本発明の実施形態による画像処理システムの全体構成例を示す図である。1 is a diagram illustrating an example of the overall configuration of an image processing system according to an embodiment of the present invention. 本発明の実施形態によるデジタル複合機の内部構成例を示すブロック図である。1 is a block diagram illustrating an internal configuration example of a digital multifunction peripheral according to an embodiment of the present invention. 本発明の実施形態によるラスタイメージ生成処理プログラム(ソフトRIP)の動作を示す模式図である。It is a schematic diagram which shows operation | movement of the raster image generation process program (soft RIP) by embodiment of this invention. 第一の実施形態のソフトRIP内のディスプレイリスト生成ルーチンにおける、Attribute値決定処理示す流れ図である。It is a flowchart which shows Attribute value determination processing in the display list production | generation routine in the software RIP of 1st embodiment. 第一の実施形態の画像圧縮プログラムの動作を模式的に示す図であるIt is a figure which shows typically operation | movement of the image compression program of 1st embodiment. 本発明の実施形態の画像データ伸張プログラムの動作を模式的に示す図である。It is a figure which shows typically operation | movement of the image data expansion | extension program of embodiment of this invention. 第二の実施形態の画像圧縮プログラムの動作と画像データ伸張プログラムの動作を模式的に示す図である。It is a figure which shows typically operation | movement of the image compression program of 2nd embodiment, and operation | movement of an image data expansion | extension program. 第二の実施形態の画像圧縮処理プログラムの、画像圧縮方法を切り替える処理を説明する流れ図である。It is a flowchart explaining the process which switches the image compression method of the image compression processing program of 2nd embodiment. 第三の実施形態の画像圧縮処理プログラムの、画像圧縮方法を切り替える処理を説明する流れ図である。It is a flowchart explaining the process which switches the image compression method of the image compression processing program of 3rd embodiment. 第三の実施形態のPDLデータの構成を模式的に示す図である。It is a figure which shows typically the structure of PDL data of 3rd embodiment. 本発明の実施形態によるコンピュータの内部構成例を示すブロック図である。It is a block diagram which shows the example of an internal structure of the computer by embodiment of this invention.

以下、本発明を実施するための最良の形態について図面を用いて説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

[第一の実施形態]
本発明の実施例にかかわる画像処理システムの全体構成を、図1を参照しながら説明する。
[First embodiment]
An overall configuration of an image processing system according to an embodiment of the present invention will be described with reference to FIG.

システムは、ネットワーク400と、それに接続されたデジタル複合機、および1台以上のコンピュータから構成される。   The system includes a network 400, a digital multi-function peripheral connected to the network 400, and one or more computers.

デジタル複合機は、制御装置100、操作部150、リーダー部200およびプリンタ部300 から構成される。   The digital multi-function peripheral includes a control device 100, an operation unit 150, a reader unit 200, and a printer unit 300.

リーダー部200は、原稿を光学的に読み取り、画像データに変換する。リーダー部200は、原稿を読取るための機能を持つスキャナユニット210で構成される。   The reader unit 200 optically reads a document and converts it into image data. The reader unit 200 includes a scanner unit 210 having a function for reading a document.

プリンタ部300は、記録紙を搬送し、その上に画像データを可視画像として印字して装置外に排紙する。プリンタ部300は、複数種類の記録紙カセットを持つ給紙ユニット310と、画像データを記録紙に転写、定着させる機能を持つマーキング(印刷)ユニット320と、印字された記録紙を機外へ出力する機能を持つ排紙ユニット330とで構成される。   The printer unit 300 conveys the recording paper, prints the image data as a visible image thereon, and discharges the recording paper out of the apparatus. The printer unit 300 includes a paper feed unit 310 having a plurality of types of recording paper cassettes, a marking (printing) unit 320 having a function of transferring and fixing image data onto the recording paper, and outputting the printed recording paper to the outside. And a paper discharge unit 330 having the function of

制御装置100は、リーダー部200、プリンタ部300と電気的に接続される。制御装置100は、リーダー部200を制御して、原稿の画像データを読込んで画像データに変換する。また、制御装置100はプリンタ部300を制御して画像データを記録紙に出力する。さらに、制御装置100は、ネットワーク400に接続され、コンピュータ401もしくはコンピュータ402から圧縮画像データを受信・伸張し、プリンタ部300を制御して記録用紙に出力する。   The control device 100 is electrically connected to the reader unit 200 and the printer unit 300. The control device 100 controls the reader unit 200 to read the original image data and convert it into image data. In addition, the control device 100 controls the printer unit 300 to output image data to a recording sheet. Further, the control device 100 is connected to the network 400, receives and expands the compressed image data from the computer 401 or the computer 402, controls the printer unit 300, and outputs it to a recording sheet.

操作部150は液晶タッチパネルで構成されており、制御装置100に接続されデジタル複合機を操作するためのユーザI/Fである。   The operation unit 150 includes a liquid crystal touch panel, and is a user I / F that is connected to the control device 100 and operates the digital multifunction peripheral.

コンピュータ401(もしくは402)は、図11のブロック図で例示されるように、CPU 1101、RAM 1102、ROM 1103、HDD 1104、ネットワークインタフェース 1105、およびそれらをつなぐシステムバス1106から構成される。CPU 1101はコンピュータを制御するための中央処理装置である。RAM 1102は、CPU 1101が動作するためのシステムワークメモリである。ROM 1103はBIOS ROMであり、コンピュータの起動プログラムと起動設定値が格納されている。HDD 1104はハードディスクドライブであり、各種処理のためのシステムソフトウェアや、一時保存データを格納する。ネットワークインタフェース 1105は、ネットワーク400に接続して外部装置との間で画像データや各種情報の入出力を行う。以上のユニットがシステムバス1106上に配置されている。コンピュータ401(もしくは402)上では、HDD 1104に保存されているプログラムが、RAM 1102にロードされCPU 1101上で動作することで、デジタル画像を生成し、さらにデータ圧縮を行う。さらにネットワークI/F 1105経由でネットワーク400に接続され、デジタル複合機に圧縮画像データを送信する。また、コンピュータ401、402は、ネットワーク400経由で図示されていないコンピュータ機器と接続される場合もある。   As illustrated in the block diagram of FIG. 11, the computer 401 (or 402) includes a CPU 1101, a RAM 1102, a ROM 1103, an HDD 1104, a network interface 1105, and a system bus 1106 that connects them. A CPU 1101 is a central processing unit for controlling the computer. A RAM 1102 is a system work memory for the CPU 1101 to operate. A ROM 1103 is a BIOS ROM, and stores a computer startup program and startup setting values. An HDD 1104 is a hard disk drive, and stores system software for various processes and temporarily stored data. A network interface 1105 is connected to the network 400 and inputs / outputs image data and various information to / from an external device. The above units are arranged on the system bus 1106. On the computer 401 (or 402), a program stored in the HDD 1104 is loaded into the RAM 1102 and operates on the CPU 1101, thereby generating a digital image and further compressing data. Further, it is connected to the network 400 via the network I / F 1105 and transmits the compressed image data to the digital multi-function peripheral. The computers 401 and 402 may be connected to a computer device not shown via the network 400.

図2は、本実施形態におけるデジタル複合機の制御装置の一構成例を示すブロック図である。   FIG. 2 is a block diagram showing an example of the configuration of the control apparatus for the digital multifunction peripheral according to the present embodiment.

CPU101はデジタル複合機全体を制御するための中央処理装置である。RAM102は、CPU101が動作するためのシステムワークメモリであり、入力された圧縮画像データや変換中の画像データ、さらに印刷実行時の各種属性情報などを一時記憶するためのメモリでもある。ROM103はブートROMであり、システムのブートプログラムが格納されている。HDD104はハードディスクドライブであり、各種処理のためのシステムソフトウェアや、ネットワーク400経由で受信した圧縮画像データや伸張した画像データを格納する。操作部I/F105は操作部150に対するインタフェース部であり、CPU101によって生成された操作画面データを操作部150に対して出力すると同時に、操作部150から操作者が入力した情報をCPU101に伝える役割をする。ネットワークインタフェース106は、ネットワーク400に接続して外部装置との間で画像データや各種情報の入出力を行う。以上のユニットがシステムバス107上に配置されている。   A CPU 101 is a central processing unit for controlling the entire digital multi-function peripheral. A RAM 102 is a system work memory for the CPU 101 to operate, and is also a memory for temporarily storing input compressed image data, image data being converted, and various attribute information at the time of printing. A ROM 103 is a boot ROM and stores a system boot program. The HDD 104 is a hard disk drive that stores system software for various processes, compressed image data received via the network 400, and decompressed image data. The operation unit I / F 105 is an interface unit for the operation unit 150, and outputs the operation screen data generated by the CPU 101 to the operation unit 150, and simultaneously transmits information input by the operator from the operation unit 150 to the CPU 101. To do. The network interface 106 is connected to the network 400 and inputs / outputs image data and various information to / from an external device. The above units are arranged on the system bus 107.

画像バス110は画像データを高速で転送するためのバスであり、データ構造を変換するバスブリッジであるイメージバスI/F109を経由して、システムバス107と接続される。画像バス110上には、デバイスI/F112、スキャナ画像処理部113、プリンタ画像処理部114が接続される。   The image bus 110 is a bus for transferring image data at high speed, and is connected to the system bus 107 via an image bus I / F 109 which is a bus bridge for converting a data structure. On the image bus 110, a device I / F 112, a scanner image processing unit 113, and a printer image processing unit 114 are connected.

デバイスI/F部112は、制御装置100とリーダー部200やプリンタ部300とを接続するインタフェースである。制御装置100はデバイスI/F部112経由でリーダー部200やプリンタ部300の動作制御を行い、さらに画像データの転送やエラー状態通知の検知を行う。スキャナ画像処理部113は、リーダー部200から入力した画像データに対して、補正、加工、編集等の各種処理を行うロジックを持つ。プリンタ画像処理部114は、プリント出力する画像データに対して、プリンタ部の特性に応じた補正、解像度変換等の処理を行うロジックを持つ。   The device I / F unit 112 is an interface that connects the control device 100 to the reader unit 200 and the printer unit 300. The control device 100 controls the operation of the reader unit 200 and the printer unit 300 via the device I / F unit 112, and further transfers image data and detects an error state notification. The scanner image processing unit 113 has logic for performing various processes such as correction, processing, and editing on the image data input from the reader unit 200. The printer image processing unit 114 has logic for performing processing such as correction and resolution conversion according to the characteristics of the printer unit on image data to be printed out.

次に図3、図4、図5を用いて、コンピュータ401において実行される、プリント用圧縮画像の生成処理を説明する。   Next, a print compressed image generation process executed by the computer 401 will be described with reference to FIGS. 3, 4, and 5.

図3は、コンピュータ401内のCPU 1101で動作する、ラスタイメージ生成処理プログラム(ソフトRIP)の動作を模式的に表している。   FIG. 3 schematically shows the operation of a raster image generation processing program (soft RIP) that is operated by the CPU 1101 in the computer 401.

まず、ソフトRIPは、コンピュータ401内のHDD 1104に保存されているPDLデータ3001を読み込む。PDLデータ3001は、プリント用画像を生成するために必要な様々な種類のオブジェクト描画命令や描画属性値から構成されている。PDLデータ3001に含まれるオブジェクト描画命令には、大きくわけてフォント描画、グラフィックス描画、イメージ描画の命令がある。フォント描画命令は、ベクタフォント描画、ビットマップフォント描画、TypeWing(キヤノン商標)フォント描画を含む。グラフィックス描画命令は、線分描画のためのStroke描画、領域塗りのためのFill描画を含む。イメージ描画命令は、イメージデータの形式ごと定義され、PING形式描画、GIF形式描画、PackBits描画、JPEG描画、および非圧縮のRawImage描画を含む。また、描画命令には不図示のクリップ命令が含まれる場合もあり、上記描画命令に対して、描画可能範囲の指定に用いられる。さらに、PDLデータ中に地紋画像やアノト(アノト社商標)画像が、ドットパターン画像としてイメージ描画命令に含まれることもある。このようなドットパターン画像を描画する際には、画質劣化を起こさないような制御が必要であるため、PDLデータ3001中に地紋属性を付加することで、描画処理系に対して画質劣化を起こさない制御指示を行うことができる。   First, the software RIP reads the PDL data 3001 stored in the HDD 1104 in the computer 401. The PDL data 3001 includes various types of object drawing commands and drawing attribute values necessary for generating a print image. The object drawing commands included in the PDL data 3001 are roughly divided into font drawing, graphics drawing, and image drawing commands. The font drawing command includes vector font drawing, bitmap font drawing, and TypeWing (Canon trademark) font drawing. The graphics drawing command includes Stroke drawing for line segment drawing and Fill drawing for area filling. The image rendering command is defined for each format of image data, and includes PING rendering, GIF rendering, PackBits rendering, JPEG rendering, and uncompressed RawImage rendering. In addition, the drawing command may include a clip command (not shown), and is used for designating a drawable range for the drawing command. Further, a tint block image or an Anoto (trademark of Anoto) image may be included in the image drawing command as a dot pattern image in the PDL data. When drawing such a dot pattern image, it is necessary to control the image quality so as not to deteriorate. Therefore, by adding a copy-forgery-inhibited pattern attribute to the PDL data 3001, image quality deterioration is caused to the drawing processing system. There can be no control instructions.

続いてソフトRIP内のインタープリタ処理ルーチン3002は、読み込んだPDLデータ3001を解釈し、オブジェクト描画命令の種類を判定する。この際、イメージ描画命令のうち、PNG/GIFについてはインタープリタ処理ルーチン3002内でソフトウェア的に伸張を行う。その後、インタープリタ処理ルーチン3002は、ディスプレイリスト生成ルーチン(DL Gen.)3003に対して、ディスプレイリスト3004の生成を指示する。   Subsequently, the interpreter processing routine 3002 in the software RIP interprets the read PDL data 3001 and determines the type of the object drawing command. At this time, among the image drawing commands, PNG / GIF is expanded in software in the interpreter processing routine 3002. Thereafter, the interpreter processing routine 3002 instructs the display list generation routine (DL Gen.) 3003 to generate the display list 3004.

ディスプレイリスト3004は、コンピュータ401内のRAM 1102に一時保存される中間データであり、プリント時のページ単位で、ページ描画に必要な情報がまとめられている。ディスプレイリスト3004内の情報はEdge、 Level、 Attribute、Fill、Image画像データから構成される。Edgeは描画オブジェクトの境界に関する座標情報を保持する。Levelは描画オブジェクト同士が重なりあう順番に関する情報を保持する。Attributeは描画オブジェクトの種類に関する情報を保持し、Text/Graphics/LossLessImage/LossyImage のいずれかを表す値となる。フォント描画の場合はText、グラフィックス描画の場合はGraphics、イメージ描画の場合は、後述する判断処理によりLossLessImage/LossyImageのいずれかの値となる。Fillは描画オブジェクトが塗られる色に関する色値情報を保持する。Image画像データは描画オブジェクトがイメージデータだった場合の画像データである。1ページ分のディスプレイリスト3004が生成が完了すると、ソフトRIPはディスプレイリストを、ソフトRIP内のラスタ展開ルーチン(ScanlineRenderer)3005に渡す。   The display list 3004 is intermediate data temporarily stored in the RAM 1102 in the computer 401, and information necessary for page drawing is collected for each page at the time of printing. The information in the display list 3004 is composed of Edge, Level, Attribute, Fill, and Image image data. Edge holds coordinate information related to the boundary of the drawing object. Level holds information related to the order in which drawing objects overlap. Attribute holds information related to the type of the drawing object, and is a value representing one of Text / Graphics / LossLessImage / LossyImage. In the case of font drawing, the value is Text, in the case of graphics drawing, in the case of image drawing, the value is either LossLessImage / LossyImage by a determination process described later. The Fill holds color value information regarding the color to which the drawing object is painted. Image image data is image data when the drawing object is image data. When the generation of the display list 3004 for one page is completed, the software RIP passes the display list to a raster development routine (ScanlineRenderer) 3005 in the software RIP.

ラスタ展開ルーチン3005では、ディスプレイリスト3004内のすべてのEdge情報、Level情報、Attribute情報、Fill情報、イメージデータのための画像データを用いて、ページ内を走査する順に画素を生成する。この際、画像データが圧縮状態であるPackBits/JPEGの場合は、同時にソフトウェア的に伸張を行い非圧縮イメージデータに変換したうえで、ページ内画素に反映させる。   In the raster development routine 3005, pixels are generated in the order of scanning in the page using all the Edge information, Level information, Attribute information, Fill information, and image data for image data in the display list 3004. At this time, in the case of PackBits / JPEG in which the image data is in a compressed state, the image data is simultaneously decompressed and converted into uncompressed image data, and then reflected on the pixels in the page.

ここで生成されるページ画像は、画素値としてRGBそれぞれ8bit深度を持つラスタ画像3007と、その画素それぞれに関する画素Attribute bit値3006から構成される。画素Attribute bit値3006は、ディスプレイリスト3004内のAttribute値に対応した、Text/Graphics/LossLessImage/LossyImage のいずれかを表す値となる。   The page image generated here is composed of a raster image 3007 having a depth of 8 bits for each of RGB as pixel values, and a pixel attribute bit value 3006 for each of the pixels. The pixel Attribute bit value 3006 is a value that represents one of Text / Graphics / LossLessImage / LossyImage corresponding to the Attribute value in the display list 3004.

図4は、コンピュータ401内のCPU 1101で動作するソフトRIP内のディスプレイリスト生成ルーチン3003における、Attribute値をいずれにするかの判断処理を説明する流れ図である。ステップS401において、現在判断処理を実行している描画命令を確認し、ステップS402において描画命令がイメージ描画オブジェクトであるか否かを判断する。イメージ描画オブジェクトでない場合は、ステップS403にてフォント描画オブジェクトと判断した場合にはステップS404にてAttribute値にTextを付与する。フォント描画オブジェクトではない場合、ステップS405にてグラフィックス描画オブジェクトと判断した場合にはステップS406にてAttribute値にGraphicsを付与する。グラフィックス描画オブジェクトではない場合には、不正処理としてステップS407でエラーとする。ステップS402においてイメージ描画だった場合は、ステップS408にてPDLデータ3001中に地紋属性が付加されているか否かを判断する。地紋属性が付加されていない場合は、ステップS409にてAttribute値にLossyImageを付与する。地紋属性付きの場合、イメージ種別を判断することによってAttribute値が決まる。ステップS410にてJPEGと判断された場合は、ステップS411にてAttribute値にLossyImageを付与する。ステップS412にてPackbitsと判断された場合は、ステップS413にてAttribute値にLossLessImageを付与する。ステップS414にて非圧縮RawImageと判断された場合は、ステップS415にてAttribute値にLossLessImageを付与する。なお、PNG/GIFについてはインタープリタ処理ルーチン3002内でソフトウェア的に伸張済みであるため、非圧縮RawImageとして扱われる。非圧縮RawImageでない場合には、不正処理としてステップS416でエラーとする。かかる構成により地紋属性が付加されていて、イメージ種別がLossyImage であるJPEGではない場合に、Attribute値をLossLessImageとすることができる。尚上記説明では地紋属性を例に説明したが、地紋属性の代わりにアノト属性としてもよい。   FIG. 4 is a flowchart for explaining a determination process for determining an Attribute value in the display list generation routine 3003 in the software RIP operating on the CPU 1101 in the computer 401. In step S401, the drawing command that is currently executing the determination process is confirmed. In step S402, it is determined whether the drawing command is an image drawing object. If it is not an image drawing object, Text is assigned to the Attribute value in step S404 if it is determined in step S403 that it is a font drawing object. If it is not a font drawing object, if it is determined in step S405 that it is a graphics drawing object, Graphics is assigned to the Attribute value in step S406. If it is not a graphics drawing object, an error is determined in step S407 as an illegal process. If the image is drawn in step S402, it is determined in step S408 whether a tint block attribute is added to the PDL data 3001. If the copy-forgery-inhibited pattern attribute is not added, LossyImage is assigned to the Attribute value in step S409. When the copy-forgery-inhibited pattern attribute is added, the Attribute value is determined by determining the image type. If JPEG is determined in step S410, LossyImage is assigned to the Attribute value in step S411. If it is determined in step S412, that it is Packbits, LossLessImage is assigned to the Attribute value in step S413. If it is determined in step S414 that it is an uncompressed RawImage, LossLessImage is assigned to the Attribute value in Step S415. Note that PNG / GIF is treated as an uncompressed RawImage because it has already been expanded in software in the interpreter processing routine 3002. If it is not uncompressed RawImage, an error is determined in step S416 as an illegal process. When the background pattern attribute is added with this configuration and the image type is not JPEG which is LossyImage, the Attribute value can be LossImage. In the above description, the background pattern attribute has been described as an example. However, an Anoto attribute may be used instead of the background pattern attribute.

図5は、コンピュータ401内のCPU 1101で動作する画像圧縮プログラムの動作を模式的に示す図である。   FIG. 5 is a diagram schematically showing the operation of an image compression program that operates on the CPU 1101 in the computer 401.

RIP済み画像5001は、ソフトRIPのラスタ展開ルーチン3005によって生成されたページ画像のうち、画素ごとにRGBそれぞれ8bit深度を持つラスタ画像3007からなる部分である。RIP済みAttribute 5002は、ソフトRIPのラスタ展開ルーチン3005によって生成されたページ画像のうち、画素ごとのAttribute bit値3006からなる部分である。図5で例とするページ画像は、ページ内左上に「Earth」の文字列が配置され、その部分のAttribute値はTextである。その下の地球の写真はJPEGイメージであり、Attribute値はLossyImageである。右上にはStrokeとFillで描かれる棒グラフ図形が配置され、Attribute値はGraphicsである。そして背景には地紋のドットパターンイメージが配置されており、Attribute値はLossLessImageである。   The RIP-completed image 5001 is a portion of a page image generated by the raster development routine 3005 of the soft RIP, which is a raster image 3007 having a depth of 8 bits for each of RGB for each pixel. The RIP-completed Attribute 5002 is a portion composed of an Attribute bit value 3006 for each pixel in the page image generated by the raster development routine 3005 of the soft RIP. In the page image illustrated in FIG. 5, the character string “Earth” is arranged at the upper left of the page, and the Attribute value of the portion is Text. The photograph of the earth below is a JPEG image, and the Attribute value is LossyImage. In the upper right, a bar graph figure drawn with Stroke and Fill is arranged, and the Attribute value is Graphics. A background pattern dot pattern image is arranged, and the Attribute value is LossLessImage.

5003は、マスク画像5004の生成(マスク画像生成)のためのAttribute対応表であり、マスク画像5004を生成する際に、ページ画像中のどのAttribute領域をマスクとして用いるかを決めるために用いられる。図5の例では、Attribute対応表5003はLossyImage Attributeを持つ画素のみをマスクとして用いるべく保持される。画像圧縮プログラムは、RIP済みAttribute 5002のうち、LossyImage Attributeが付与されているJPEGイメージ部分の画素を1とし、その他の部分の画素を0とした1bitイメージ画像を生成する。そしてこれをLossyマスク画像5004とする。Lossyマスク画像5004は、Lossy圧縮する画素をマスク画素として選択するための画像である。その後画像圧縮プログラムは、RIP済み画像5001とLossyマスク画像5004を用いたマスク演算処理を行い、Lossyページ画像5006を生成する。RIP済み画像5001中の各画素は、Lossyマスク画像5004上で同じ座標に位置する画素の値が1だった場合は元の画素値を保って、Lossyページ画像5006に保存される。Lossyマスク画像5004上で同じ座標に位置する画素の値が0だった場合は白色を表す画素値(R,G,B)=(255,255,255)がLossyページ画像5006に保存される。   Reference numeral 5003 denotes an Attribute correspondence table for generating a mask image 5004 (mask image generation), and is used to determine which Attribute region in the page image is used as a mask when the mask image 5004 is generated. In the example of FIG. 5, the Attribute correspondence table 5003 is held so that only the pixels having the LossyImage Attribute are used as a mask. The image compression program generates a 1-bit image image in which the pixel of the JPEG image portion to which the LossyImage Attribute is assigned is set to 1 in the RIPed Attribute 5002 and the pixels of the other portions are set to 0. This is a Lossy mask image 5004. A Lossy mask image 5004 is an image for selecting a pixel to be subjected to Lossy compression as a mask pixel. Thereafter, the image compression program performs a mask calculation process using the RIP-completed image 5001 and the Lossy mask image 5004 to generate a Lossy page image 5006. Each pixel in the RIP-completed image 5001 is stored in the Lossy page image 5006 while maintaining the original pixel value when the value of the pixel located at the same coordinate on the Lossy mask image 5004 is 1. When the value of the pixel located at the same coordinate on the Lossy mask image 5004 is 0, the pixel value (R, G, B) = (255, 255, 255) representing white is stored in the Lossy page image 5006.

続いて画像圧縮プログラムは、Lossyマスク画像5004の各画素のbit値を反転させた1bitイメージ画像を生成し、それをLossLessマスク画像5005とする。LossLessマスク画像5005は、LossLess圧縮する画素をマスク画素として選択するための画像である。その後画像圧縮プログラムは、RIP済み画像5001とLossLessマスク画像5005を用いたマスク演算処理を行い、LossLessページ画像5007を生成する。RIP済み画像5001中の各画素は、LossLessマスク画像5005上で同じ座標に位置する画素の値が1だった場合は元の画素値を保って、LossLessページ画像5007に保存される。LossLessマスク画像5005上で同じ座標に位置する画素の値が0だった場合は白色を表す画素値(R,G,B)=(255,255,255)がLossLessページ画像5007に保存される。   Subsequently, the image compression program generates a 1-bit image image obtained by inverting the bit value of each pixel of the Lossy mask image 5004, and sets it as a LossLess mask image 5005. The LossLess mask image 5005 is an image for selecting a pixel to be LossLess compressed as a mask pixel. Thereafter, the image compression program performs a mask calculation process using the RIP-completed image 5001 and the LossLess mask image 5005 to generate a LossLess page image 5007. Each pixel in the RIP-completed image 5001 is stored in the LossLess page image 5007 while maintaining the original pixel value when the value of the pixel located at the same coordinate on the LossLess mask image 5005 is 1. When the value of the pixel located at the same coordinate on the LossLess mask image 5005 is 0, the pixel value (R, G, B) = (255, 255, 255) representing white is stored in the LossLess page image 5007.

最後に画像圧縮プログラムは、プリント用圧縮画像データ5008を生成する処理を行う。RIP済みAttribute 5002はPackbits、Lossyページ画像5006はJPEG(非可逆圧縮手法)、LossLessページ画像5007はPNG(可逆圧縮手法)でそれぞれ圧縮される。これらの3つの圧縮画像とAttribute対応表5003を一つのファイルにまとめたものが、プリント用圧縮画像データ5008となる。その結果地紋やアノト等のドットパターンのイメージに対して、LossLess(非可逆圧縮方法)による圧縮が可能となる。   Finally, the image compression program performs processing for generating compressed image data 5008 for printing. RIP-completed Attribute 5002 is compressed by Packbits, Lossy page image 5006 is compressed by JPEG (lossy compression method), and LossLess page image 5007 is compressed by PNG (lossless compression method). The compressed image data 5008 for printing is a collection of these three compressed images and the Attribute correspondence table 5003 in one file. As a result, it is possible to compress an image of a dot pattern such as a copy-forgery-inhibited pattern or Anoto using Loss Less (lossy compression method).

このようにして生成されたプリント用圧縮画像データ5008は、コンピュータ401(402)からネットワーク400を経由してデジタル複合機の制御装置100のHDD104に転送される。   The compressed image data for printing 5008 generated in this way is transferred from the computer 401 (402) to the HDD 104 of the control device 100 of the digital multi-function peripheral via the network 400.

次に図6を用いて、デジタル複合機の制御装置100のCPU101において実行される、プリント用圧縮画像データ5008の伸張処理プログラムの動作を説明する。   Next, the operation of the expansion processing program for the print compressed image data 5008 executed by the CPU 101 of the control device 100 of the digital multi-function peripheral will be described with reference to FIG.

伸張処理プログラムは、まずHDD104に格納されたプリント用圧縮画像データ5008を読み込む。続いて、プリント用圧縮画像データ5008に含まれる圧縮画像を伸張する。JPEG圧縮画像からLossy伸張画像6001、PNG圧縮画像からLossLess伸張画像6002、Packbits圧縮画像からAttribute 6003 をそれぞれ得る。ここでLossLess伸張画像6002はLossLessページ画像5007とまったく同じ画像であり、Attribute 6003はRIP済みAttribute 5002とまったく同じAttribute値を持つ。Lossy伸張画像6001は圧縮伸張による劣化を伴うため、Lossyページ画像5006と同じ画像にはならない。また同時に伸張処理プログラムは、Attribute対応表5003も得る。   The decompression processing program first reads the compressed image data for printing 5008 stored in the HDD 104. Subsequently, the compressed image included in the print compressed image data 5008 is expanded. A Lossy decompressed image 6001 is obtained from the JPEG compressed image, a LossLess decompressed image 6002 is obtained from the PNG compressed image, and an Attribute 6003 is obtained from the Packbits compressed image. Here, the LossLess decompressed image 6002 is exactly the same as the LossLess page image 5007, and Attribute 6003 has the same Attribute value as the RIPed Attribute 5002. The Lossy decompressed image 6001 is not the same image as the Lossy page image 5006 because it is deteriorated by compression and decompression. At the same time, the decompression processing program also obtains an Attribute correspondence table 5003.

続いて伸張処理プログラムは、Attribute 6003とAttribute対応表5003を用いて、Lossyマスク画像6004を生成する。図6の例ではLossyImage Attributeを持つ画素のみをマスクとして用いる。伸張処理プログラムは、Attribute 6003のうち、LossyImage Attributeが付与されている画素を1とし、その他の画素を0とした1bitイメージ画像を生成し、これをLossyマスク画像6004とする。さらに伸張処理プログラムは、Lossyマスク画像6004の各画素のbit値を反転させた1bitイメージ画像を生成し、それをLossLessマスク画像6005とする。   Subsequently, the decompression processing program generates a Lossy mask image 6004 using the Attribute 6003 and the Attribute correspondence table 5003. In the example of FIG. 6, only pixels having LossyImage Attribute are used as a mask. The decompression processing program generates a 1-bit image image in which the pixel to which LossyImage Attribute is assigned is set to 1 in Attribute 6003 and the other pixels are set to 0, and this is set as a Lossy mask image 6004. Further, the decompression processing program generates a 1-bit image image obtained by inverting the bit value of each pixel of the Lossy mask image 6004 and sets it as a LossLess mask image 6005.

その後伸張処理プログラムは、Lossy伸張画像6001、Lossyマスク画像6004、LossLess伸張画像6002、LossLessマスク画像6005を用いたマスク演算処理と画像合成処理を行い、伸張ページ画像6006を生成する。この画像合成処理では、Lossy伸張画像6001中の各画素は、Lossyマスク画像6004上で同じ座標に位置する画素の値が1だった場合のみ、元の画素値を保って、伸張ページ画像6006に保存される。その結果、Lossy伸長画像6001から地球の画像の部分が1画素毎に切り出され、伸長ページ画像6006として保存される。LossLess伸張画像6002中の各画素は、LossLessマスク画像6005上で同じ座標に位置する画素の値が1だった場合のみ、元の画素値を保って、伸張ページ画像6006に保存される。その結果、LossLess伸長画像6002から黒丸の位置以外の画像部分が1画素毎に切り出され、伸長ページ画像6006として保存される。   Thereafter, the decompression processing program performs mask calculation processing and image composition processing using the Lossy decompressed image 6001, Lossy mask image 6004, LossLess decompressed image 6002, and LossLess mask image 6005 to generate a decompressed page image 6006. In this image composition processing, each pixel in the Lossy decompressed image 6001 retains the original pixel value only when the value of the pixel located at the same coordinate on the Lossy mask image 6004 is 1, and creates an expanded page image 6006. Saved. As a result, a portion of the earth image is cut out for each pixel from the Lossy decompressed image 6001 and stored as an expanded page image 6006. Each pixel in the LossLess expanded image 6002 is stored in the expanded page image 6006 while maintaining the original pixel value only when the value of the pixel located at the same coordinate on the LossLess mask image 6005 is 1. As a result, an image portion other than the position of the black circle is cut out from the LossLess expanded image 6002 for each pixel and stored as an expanded page image 6006.

以上の処理を経て生成された伸張ページ画像6006は、デジタル複合機の制御装置100のCPU101にて実行されるプリント実行プログラムにより、イメージバスI/F 109経由で画像バス110に転送される。その後、プリンタ画像処理部114を経由してデバイスI/F 112転送され、プリンタ部300より印刷される。   The expanded page image 6006 generated through the above processing is transferred to the image bus 110 via the image bus I / F 109 by a print execution program executed by the CPU 101 of the control device 100 of the digital multi-function peripheral. Thereafter, the device I / F 112 is transferred via the printer image processing unit 114 and printed by the printer unit 300.

[第二の実施形態]
第一の実施形態においては、プリント用圧縮画像データ5008のデータサイズは、元になるRIP済み画像5001とRIP済みAttribute 5002、およびAttribute対応表5003によって一意に決定される。この際、ネットワーク400を経由でのコンピュータ 401と制御装置100との通信速度が、プリント用圧縮画像データ5008のデータサイズに対して十分高速である場合は、特に問題はない。しかし、ネットワーク400の通信速度が遅い場合には、データ転送がボトルネックとなりプリント用圧縮画像データ5008がスムーズに制御装置100に送信されなくなり、結果としてデジタル複合機のプリント速度が遅くなることがある。
[Second Embodiment]
In the first embodiment, the data size of the compressed image data for printing 5008 is uniquely determined by the original RIP-completed image 5001, RIP-completed Attribute 5002, and Attribute correspondence table 5003. At this time, there is no particular problem if the communication speed between the computer 401 and the control device 100 via the network 400 is sufficiently high with respect to the data size of the print compressed image data 5008. However, when the communication speed of the network 400 is slow, data transfer becomes a bottleneck, and the compressed image data 5008 for printing cannot be smoothly transmitted to the control apparatus 100, and as a result, the printing speed of the digital multifunction peripheral may be slow. .

第二の実施形態では、通信速度に応じてプリント用圧縮画像の圧縮方法を変更する手段を導入することにより、通信速度が遅い場合はよりLossy圧縮を多く適用しプリント用圧縮画像データのサイズを小さくするように試みる。この場合画質の劣化がより多く発生するが、データ転送速度は改善される。   In the second embodiment, by introducing a means for changing the compression method of the print compressed image according to the communication speed, when the communication speed is low, more lossy compression is applied to reduce the size of the print compressed image data. Try to make it smaller. In this case, the image quality deteriorates more, but the data transfer speed is improved.

以下図7と図8を用いて、第二の実施形態での通信速度に応じてプリント用圧縮画像の圧縮方法を変更する方法を説明する。   Hereinafter, a method for changing the compression method of the compressed image for printing in accordance with the communication speed in the second embodiment will be described with reference to FIGS.

図7は、第二の実施形態における、コンピュータ401にて実行される画像圧縮処理と、デジタル複合機の制御装置100において実行される画像伸張処理とを説明する模式図である。図8は、コンピュータ401のCPU 1101において実行される画像圧縮処理プログラムにおいて、画像圧縮方法を切り替える処理を説明する流れ図である。   FIG. 7 is a schematic diagram illustrating image compression processing executed by the computer 401 and image expansion processing executed by the control device 100 of the digital multi-function peripheral in the second embodiment. FIG. 8 is a flowchart for describing processing for switching the image compression method in the image compression processing program executed by the CPU 1101 of the computer 401.

コンピュータ401のCPU 1101で動作する画像圧縮処理プログラムは、ステップS801にてネットワーク400経由で接続されているデジタル複合機の制御装置100と、予備通信を行う。この予備通信では、ダミーのデータパケットを制御装置100に送信し、その受信完了が制御装置100からコンピュータ401に通知されるまでの時間を計測する。この予備通信により、コンピュータ401から制御装置100への通信スループットが大まかに計算できる。ここで計算した通信スループットをT [byte/sec]とする。   The image compression processing program operating on the CPU 1101 of the computer 401 performs preliminary communication with the control device 100 of the digital multi-function peripheral connected via the network 400 in step S801. In this preliminary communication, a dummy data packet is transmitted to the control apparatus 100, and the time until the reception completion is notified from the control apparatus 100 to the computer 401 is measured. Through this preliminary communication, the communication throughput from the computer 401 to the control device 100 can be roughly calculated. The communication throughput calculated here is T [byte / sec].

ステップS802では、コンピュータ401で実行される画像圧縮プログラムは、第一の実施形態と同様の手法により、プリント用圧縮画像データを生成し、そのデータサイズの計測を行う。   In step S802, the image compression program executed by the computer 401 generates print compressed image data by the same method as in the first embodiment, and measures the data size.

RIP済み画像7000は、ソフトRIPのラスタ展開ルーチン3005によって生成されたページ画像のうち、画素ごとにRGBそれぞれ8bit深度を持つラスタ画像3007からなる部分である。RIP済みAttribute 7010は、ソフトRIPのラスタ展開ルーチン3005によって生成されたページ画像のうち、画素ごとのAttribute bit値3006からなる部分である。   The RIP-completed image 7000 is a portion of the page image generated by the raster development routine 3005 of the soft RIP, which is a raster image 3007 having a depth of 8 bits for each pixel. The RIP-completed Attribute 7010 is a portion composed of an Attribute bit value 3006 for each pixel in the page image generated by the raster development routine 3005 of the soft RIP.

7021は、マスク画像7011生成のためのAttribute対応表であり、マスク画像7011を生成する際に、ページ画像中のどのAttribute領域をマスクとして用いるかを決めるために用いられる。Attribute対応表7021はLossyImage Attributeを持つ画素のみをマスクとして用いる。画像圧縮プログラムは、RIP済みAttribute 7010のうち、LossyImage Attributeが付与されているJPEGイメージ部分の画素を1とし、その他の部分の画素を0とした1bitイメージ画像を生成する。そしてこれをLossyマスク画像7011とする。その後画像圧縮プログラムは、RIP済み画像7000とLossyマスク画像7011を用いたマスク演算処理を行い、Lossyページ画像7001を生成する。RIP済み画像7000中の各画素は、Lossyマスク画像7011上で同じ座標に位置する画素の値が1だった場合は元の画素値を保って、Lossyページ画像7001に保存される。Lossyマスク画像7011上で同じ座標に位置する画素の値が0だった場合は白色を表す画素値(R,G,B)=(255,255,255)がLossyページ画像7001に保存される。   Reference numeral 7021 denotes an Attribute correspondence table for generating a mask image 7011, which is used to determine which Attribute region in the page image is used as a mask when the mask image 7011 is generated. The Attribute correspondence table 7021 uses only pixels having LossyImage Attribute as a mask. The image compression program generates a 1-bit image image in which the pixel of the JPEG image portion to which the LossyImage Attribute is assigned is set to 1 in the RIPed Attribute 7010 and the pixels of the other portions are set to 0. This is a Lossy mask image 7011. Thereafter, the image compression program performs a mask calculation process using the RIP-completed image 7000 and the Lossy mask image 7011 to generate a Lossy page image 7001. Each pixel in the RIP-completed image 7000 is stored in the Lossy page image 7001 while maintaining the original pixel value when the value of the pixel located at the same coordinate on the Lossy mask image 7011 is 1. When the value of the pixel located at the same coordinate on the Lossy mask image 7011 is 0, the pixel value (R, G, B) = (255, 255, 255) representing white is stored in the Lossy page image 7001.

続いて画像圧縮プログラムは、Lossyマスク画像7011の各画素のbit値を反転させた1bitイメージ画像を生成し、それをLossLessマスク画像7012とする。その後画像圧縮プログラムは、RIP済み画像7000とLossLessマスク画像7012を用いたマスク演算処理を行い、LossLessページ画像7002を生成する。RIP済み画像7000中の各画素は、LossLessマスク画像7012上で同じ座標に位置する画素の値が1だった場合は元の画素値を保って、LossLessページ画像7002に保存される。LossLessマスク画像7012上で同じ座標に位置する画素の値が0(黒丸の部分)だった場合は白色を表す画素値(R,G,B)=(255,255,255)がLossLessページ画像7002に保存される。   Subsequently, the image compression program generates a 1-bit image image obtained by inverting the bit value of each pixel of the Lossy mask image 7011 and sets it as a LossLess mask image 7012. Thereafter, the image compression program performs a mask calculation process using the RIP-completed image 7000 and the LossLess mask image 7012 to generate a LossLess page image 7002. Each pixel in the RIP-completed image 7000 is stored in the LossLess page image 7002 while maintaining the original pixel value when the value of the pixel located at the same coordinate on the LossLess mask image 7012 is 1. If the value of the pixel located at the same coordinate on the LossLess mask image 7012 is 0 (black circle portion), the pixel value (R, G, B) = (255, 255, 255) representing white is the LossLess page image 7002. Saved in.

その後画像圧縮プログラムは、図7中に不図示の処理として、RIP済みAttribute 7010はPackbits、Lossyページ画像7001はJPEG、LossLessページ画像7002はPNGでそれぞれ圧縮を行う。さらにその合計データサイズを計測し、このデータサイズをS1 [byte]とする。   Thereafter, the image compression program compresses RIP Attribute 7010 with Packbits, Lossy page image 7001 with JPEG, and LossLess page image 7002 with PNG, as processing not shown in FIG. Further, the total data size is measured, and this data size is defined as S1 [bytes].

ステップS803ではデータサイズS1が、通信スループットTに対して十分小さいサイズであるかどうかを判断する。この判断の一例として、デジタル複合機のプリンタ部300のプリント速度よりも画像データ転送速度が勝っていれば、デジタル複合機はその能力を十分に発揮できるといえる。デジタル複合機のプリンタ部300のプリント速度の最大値をM [page/sec] とした場合に、
M < T / S1
が成り立つ場合は、データサイズS1が、通信スループットTに対して十分小さいサイズであると判断できる。
In step S803, it is determined whether the data size S1 is sufficiently small with respect to the communication throughput T. As an example of this determination, if the image data transfer speed is higher than the printing speed of the printer unit 300 of the digital multi-function peripheral, the digital multi-function peripheral can fully demonstrate its capability. When the maximum print speed of the printer unit 300 of the digital multi-function peripheral is M [page / sec],
M <T / S1
Is satisfied, it can be determined that the data size S1 is sufficiently small with respect to the communication throughput T.

ステップS803で画像データ転送速度が十分であると判断された場合は、ステップS804にてプリント用圧縮画像データを生成する。RIP済みAttribute 7010、Lossyページ画像7001、LossLessページ画像7002がそれぞれ圧縮された画像、Attribute対応表7021を一つのファイルにまとめる。このファイルをプリント用圧縮画像データとして、ネットワーク400経由でデジタル複合機の制御装置100に送信する。   If it is determined in step S803 that the image data transfer rate is sufficient, compressed image data for printing is generated in step S804. The RIP-completed Attribute 7010, the Lossy page image 7001, and the LossLess page image 7002 are each compressed, and the Attribute correspondence table 7021 is combined into one file. This file is transmitted as compressed image data for printing to the control device 100 of the digital multi-function peripheral via the network 400.

ステップS803で画像データ転送速度が十分ではないと判断された場合は、ステップS805にて、プリント用圧縮画像の圧縮方法を変更した処理を行う。   If it is determined in step S803 that the image data transfer rate is not sufficient, processing in which the compression method of the print compressed image is changed is performed in step S805.

7022は、新たなマスク画像7013生成のためのAttribute対応表である。Attribute対応表7021はLossyImage Attributeを持つ画素のみをLossyマスクとして扱うように定められている。それに対してAttribute対応表7022ではText Attributeを持つ画素のみをLossLessマスクとして扱うが異なる。その他のGraphics Attribute、LossyImage Attribute、LossLessImage Attributeを持つ画素をLossyマスクとして扱う。   Reference numeral 7022 denotes an Attribute correspondence table for generating a new mask image 7013. The Attribute correspondence table 7021 is defined so that only a pixel having a LossyImage Attribute is treated as a Lossy mask. On the other hand, in the Attribute correspondence table 7022, only a pixel having a Text Attribute is handled as a LossLess mask, but is different. Pixels having other graphics attributes, lossy image attributes, and lossless image attributes are handled as lossy masks.

画像圧縮プログラムは、RIP済みAttribute 7010のうち、Text Attributeが付与されているフォント描画部分の画素を0とし、その他の部分の画素を1とした1bitイメージ画像を生成する。そして、これをLossyマスク画像7013とする。その後画像圧縮プログラムは、RIP済み画像7000とLossyマスク画像7013を用いたマスク演算処理を行い、Lossyページ画像7003を生成する。RIP済み画像7000中の各画素は、Lossyマスク画像7013上で同じ座標に位置する画素の値が1だった場合は元の画素値を保って、Lossyページ画像7003に保存される。Lossyマスク画像7013上で同じ座標に位置する画素の値が0だった場合は白色を表す画素値(R,G,B)=(255,255,255)がLossyページ画像7003に保存される。その結果、RIP済み画像7000のうち“Earth”というテキスト以外を有するLossyページ画像7003が保存される。   The image compression program generates a 1-bit image image in which, in the RIP-completed Attribute 7010, the pixel in the font drawing portion to which the Text Attribute is assigned is set to 0, and the pixels in the other portions are set to 1. This is a Lossy mask image 7013. Thereafter, the image compression program performs a mask calculation process using the RIP-completed image 7000 and the Lossy mask image 7013 to generate a Lossy page image 7003. Each pixel in the RIP-completed image 7000 is stored in the Lossy page image 7003 while maintaining the original pixel value when the value of the pixel located at the same coordinate on the Lossy mask image 7013 is 1. If the value of the pixel located at the same coordinate on the Lossy mask image 7013 is 0, the pixel value (R, G, B) = (255, 255, 255) representing white is stored in the Lossy page image 7003. As a result, a Lossy page image 7003 having a text other than “Earth” in the RIP-completed image 7000 is stored.

続いて画像圧縮プログラムは、Lossyマスク画像7013の各画素のbit値を反転させた1bitイメージ画像を生成し、それをLossLessマスク画像7014とする。その後画像圧縮プログラムは、RIP済み画像7000とLossLessマスク画像7014を用いたマスク演算処理を行い、LossLessページ画像7004を生成する。RIP済み画像7000中の各画素は、LossLessマスク画像7014上で同じ座標に位置する画素の値が1だった場合は元の画素値を保って、LossLessページ画像7004に保存される。LossLessマスク画像7014上で同じ座標に位置する画素の値が0だった場合は白色を表す画素値(R,G,B)=(255,255,255)がLossLessページ画像7004に保存される。   Subsequently, the image compression program generates a 1-bit image image obtained by inverting the bit value of each pixel of the Lossy mask image 7013 and sets it as a LossLess mask image 7014. Thereafter, the image compression program performs a mask calculation process using the RIP-completed image 7000 and the LossLess mask image 7014 to generate a LossLess page image 7004. Each pixel in the RIP-completed image 7000 is stored in the LossLess page image 7004 while maintaining the original pixel value when the value of the pixel located at the same coordinate on the LossLess mask image 7014 is 1. If the value of the pixel located at the same coordinate on the LossLess mask image 7014 is 0, the pixel value (R, G, B) = (255, 255, 255) representing white is stored in the LossLess page image 7004.

その後画像圧縮プログラムは、図7中に不図示の処理として、RIP済みAttribute 7010はPackbits、Lossyページ画像7003はJPEG、LossLessページ画像7004はPNGでそれぞれ圧縮を行う。そして、その合計データサイズを計測し、このデータサイズをS2 [byte]とする。   Thereafter, the image compression program compresses the RIP-completed Attribute 7010 with Packbits, the Lossy page image 7003 with JPEG, and the LossLess page image 7004 with PNG, as processing not shown in FIG. Then, the total data size is measured, and this data size is set to S2 [bytes].

ステップS806では、S1とS2のサイズ比較を行う。Lossy圧縮であるJPEGを適用したとしても、LossLess圧縮であるPNGよりもサイズが小さくならない場合があるため、その確認を行う。   In step S806, the sizes of S1 and S2 are compared. Even if JPEG that is Lossy compression is applied, the size may not be smaller than PNG that is LossLess compression, so this is confirmed.

ステップS807にてS2の方が小さいサイズであると判断した場合は、ステップS808にてプリント用圧縮画像データを生成する。RIP済みAttribute 7010、Lossyページ画像7003、LossLessページ画像7004がそれぞれ圧縮された画像とAttribute対応表7022を一つのファイルにまとめる。このファイルをプリント用圧縮画像データとして、ネットワーク400経由でデジタル複合機の制御装置100に送信する。   If it is determined in step S807 that S2 is smaller, compressed image data for printing is generated in step S808. The RIP-completed Attribute 7010, Lossy page image 7003, and LossLess page image 7004 are each compressed and the Attribute correspondence table 7022 is combined into one file. This file is transmitted as compressed image data for printing to the control device 100 of the digital multi-function peripheral via the network 400.

ステップS807にてS1の方が小さいサイズであると判断した場合は、ステップS804の処理にてプリント用圧縮画像データを生成する。RIP済みAttribute 7010、Lossyページ画像7001、LossLessページ画像7002がそれぞれ圧縮された画像とAttribute対応表7021を一つのファイルにまとめる。このファイルをプリント用圧縮画像データとして、ネットワーク400経由でデジタル複合機の制御装置100に送信する。   If it is determined in step S807 that S1 has a smaller size, compressed image data for printing is generated in the process of step S804. The RIP-completed Attribute 7010, Lossy page image 7001, and LossLess page image 7002 are each compressed and the Attribute correspondence table 7021 is combined into one file. This file is transmitted as compressed image data for printing to the control device 100 of the digital multi-function peripheral via the network 400.

ステップS804にてプリント用圧縮画像データを送信した場合の、デジタル複合機の制御装置100での画像伸張処理は、第一の実施形態の図6にて説明した処理と同様である。   When the compressed image data for printing is transmitted in step S804, the image expansion processing in the control device 100 of the digital multi-function peripheral is the same as the processing described in FIG. 6 of the first embodiment.

ステップS808にてプリント用圧縮画像データを送信した場合の、デジタル複合機の制御装置100のCPU101において実行される、プリント用圧縮画像データの伸張処理プログラムの動作は、以下の通りである。   The operation of the expansion processing program for compressed image data for printing executed by the CPU 101 of the control device 100 of the digital multi-function peripheral when the compressed image data for printing is transmitted in step S808 is as follows.

伸張処理プログラムは、ネットワークインタフェース106にて受信されたプリント用圧縮画像データを伸張する。JPEG圧縮画像からLossy伸張画像7101、PNG圧縮画像からLossLess伸張画像7102、Packbits圧縮画像からAttribute 7110 をそれぞれ得る。ここでLossLess伸張画像7102はLossLessページ画像7004とまったく同じ画像であり、Attribute 7110はRIP済みAttribute 7010とまったく同じAttribute値を持つ。Lossy伸張画像7101は圧縮伸張による劣化を伴うため、Lossyページ画像7003と同じ画像にはならない。また同時に伸張処理プログラムは、Attribute対応表7022も得る。   The expansion processing program expands the print compressed image data received by the network interface 106. Lossy decompressed image 7101 is obtained from the JPEG compressed image, Loss Less expanded image 7102 is obtained from the PNG compressed image, and Attribute 7110 is obtained from the Packbits compressed image. Here, the LossLess expanded image 7102 is exactly the same image as the LossLess page image 7004, and Attribute 7110 has the same Attribute value as the RIPed Attribute 7010. The Lossy decompressed image 7101 is not the same image as the Lossy page image 7003 because it is deteriorated due to compression / decompression. At the same time, the decompression processing program also obtains an Attribute correspondence table 7022.

続いて伸張処理プログラムは、Attribute 7110とAttribute対応表7022を用いて、Lossyマスク画像7112を生成する。図7の例ではText Attribute以外の値を持つ画素をマスクとして用いる。伸張処理プログラムは、Attribute 7110のうち、Text Attribute以外が付与されている画素を1とし、その他の画素を0とした1bitイメージ画像を生成し、これをLossyマスク画像7112とする。さらに伸張処理プログラムは、Lossyマスク画像7112の各画素のbit値を反転させた1bitイメージ画像を生成し、それをLossLessマスク画像7113とする。   Subsequently, the decompression processing program generates a Lossy mask image 7112 using the Attribute 7110 and the Attribute correspondence table 7022. In the example of FIG. 7, pixels having values other than Text Attribute are used as a mask. The expansion processing program generates a 1-bit image image in which pixels other than the Text Attribute in the Attribute 7110 are set to 1 and the other pixels are set to 0, and this is set as a Lossy mask image 7112. Further, the decompression processing program generates a 1-bit image image obtained by inverting the bit value of each pixel of the Lossy mask image 7112 and sets it as a LossLess mask image 7113.

その後伸張処理プログラムは、Lossy伸張画像7101、Lossyマスク画像7112、LossLess伸張画像7102、LossLessマスク画像7113を用いたマスク演算処理と画像合成処理を行い、伸張ページ画像7100を生成する。Lossy伸張画像7101中の各画素は、Lossyマスク画像7112上で同じ座標に位置する画素の値が1だった場合のみ、元の画素値を保って、伸張ページ画像7100に保存される。LossLess伸張画像7102中の各画素は、LossLessマスク画像7113上で同じ座標に位置する画素の値が1だった場合のみ、元の画素値を保って、伸張ページ画像7100に保存される。   Thereafter, the decompression processing program performs mask calculation processing and image composition processing using the Lossy decompressed image 7101, Lossy mask image 7112, LossLess decompressed image 7102, and LossLess mask image 7113, and generates a decompressed page image 7100. Each pixel in the Lossy decompressed image 7101 is stored in the decompressed page image 7100 while maintaining the original pixel value only when the value of the pixel located at the same coordinate on the Lossy mask image 7112 is 1. Each pixel in the LossLess expanded image 7102 is stored in the expanded page image 7100 while maintaining the original pixel value only when the value of the pixel located at the same coordinate on the LossLess mask image 7113 is 1.

[第三の実施形態]
第二の実施形態においては、プリント用圧縮画像データ転送速度と、デジタル複合機のプリンタ部300のプリント速度との比較判断を行った。この比較判断はデジタル複合機のプリンタ部300の能力を最大限に生かせるかどうかという観点で判断をしているが、プリント速度よりも画質の方が重要な場合もある。また、同じデータのプリントを何度も繰り返す場合には、プリントする度に同じ画質で出力されることが望ましい場合も多い。
[Third embodiment]
In the second embodiment, a comparison determination is made between the printing compressed image data transfer speed and the printing speed of the printer unit 300 of the digital multi-function peripheral. This comparison determination is made from the viewpoint of making the best use of the capability of the printer unit 300 of the digital multi-function peripheral. However, the image quality may be more important than the print speed. In addition, when the same data is repeatedly printed, it is often desirable that the same image quality be output each time it is printed.

第三の実施形態においては、プリント速度よりも画質が重視される場合での制御手段を提供する。   In the third embodiment, a control unit is provided when the image quality is more important than the print speed.

図9は、第三の実施形態のコンピュータ401において実行される画像圧縮処理プログラムにおいて、画像圧縮方法を切り替える処理を説明する流れ図である。   FIG. 9 is a flowchart illustrating processing for switching image compression methods in an image compression processing program executed by the computer 401 according to the third embodiment.

図10は、第三の実施形態のコンピュータ401内のHDD 1104に保存されているPDLデータ10001であり、プリント用画像を生成するために必要な様々な種類のオブジェクト描画命令や描画属性値から構成されている。第一の実施形態のPDLデータ3001との差異として、地紋属性のほかに、印刷済属性とAttribute対応表が付加される場合がある。印刷済属性とAttribute対応表は、後述の画像圧縮プログラムにおいて付加される。   FIG. 10 shows PDL data 10001 stored in the HDD 1104 in the computer 401 according to the third embodiment, which is composed of various types of object drawing commands and drawing attribute values necessary for generating a print image. Has been. As a difference from the PDL data 3001 of the first embodiment, a printed attribute and an Attribute correspondence table may be added in addition to the tint block attribute. The printed attribute and the Attribute correspondence table are added in an image compression program to be described later.

コンピュータ401で動作する画像圧縮処理プログラムは、ステップS901にてPDLデータ10001中に印刷済属性が付加されているか否かを確認する。印刷済属性が付加されていない場合は、続いてステップS902にてネットワーク400経由で接続されているデジタル複合機の制御装置100と、予備通信を行う。この予備通信では、ダミーのデータパケットを制御装置100に送信し、その受信完了が制御装置100からコンピュータ401に通知されるまでの時間を計測する。この予備通信により、コンピュータ401から制御装置100への通信スループットが大まかに計算できる。ここで計算した通信スループットをT [byte/sec]とする。   In step S901, the image compression processing program operating on the computer 401 confirms whether the printed attribute is added to the PDL data 10001. If the printed attribute is not added, then preliminary communication is performed with the control device 100 of the digital multi-function peripheral connected via the network 400 in step S902. In this preliminary communication, a dummy data packet is transmitted to the control apparatus 100, and the time until the reception completion is notified from the control apparatus 100 to the computer 401 is measured. Through this preliminary communication, the communication throughput from the computer 401 to the control device 100 can be roughly calculated. The communication throughput calculated here is T [byte / sec].

ステップS903では、コンピュータ401で実行される画像圧縮プログラムは、第一の実施形態と同様の手法により、RIP済みAttribute、Lossyページ画像、LossLessページ画像を生成しそれぞれ圧縮を行う。そしてその合計データサイズを計測し、このデータサイズをS1 [byte]とする。   In step S <b> 903, the image compression program executed by the computer 401 generates RIP-completed Attribute, Lossy page image, and LossLess page image by the same method as in the first embodiment, and performs compression respectively. Then, the total data size is measured, and this data size is defined as S1 [bytes].

ステップS904ではデータサイズS1が、通信スループットTに対して十分小さいサイズであるかどうかを判断する。デジタル複合機のプリンタ部300のプリント速度の最大値をM [page/sec] とした場合に、
M < T / S1
が成り立つ場合は、データサイズS1が、通信スループットTに対して十分小さいサイズであると判断できる。
In step S904, it is determined whether the data size S1 is sufficiently small with respect to the communication throughput T. When the maximum print speed of the printer unit 300 of the digital multi-function peripheral is M [page / sec],
M <T / S1
Is satisfied, it can be determined that the data size S1 is sufficiently small with respect to the communication throughput T.

ステップS904で画像データ転送速度が十分であると判断された場合は、ステップS911にて、RIP済みAttribute、Lossyページ画像、LossLessページ画像の3つの圧縮画像とAttribute対応表を一つのファイルにまとめる。このファイルをプリント用圧縮画像データとして、ネットワーク400経由でデジタル複合機の制御装置100に送信する。   If it is determined in step S904 that the image data transfer rate is sufficient, in step S911, the three compressed images of the RIP-completed Attribute, Lossy page image, and LossLess page image and the Attribute correspondence table are combined into one file. This file is transmitted as compressed image data for printing to the control device 100 of the digital multi-function peripheral via the network 400.

ステップS904で画像データ転送速度が十分ではないと判断された場合は、ステップS905にて、PDLデータ10001中に地紋属性が付加されているか否かを確認する。地紋属性が付加されていない場合には、ステップS906にてAttribute対応表の書き換えを行う。Text Attributeを持つ画素のみをLossLessマスクとして扱う。そしてその他のGraphics Attribute、LossyImage Attribute、LossLessImage Attributeを持つ画素をLossyマスクとして扱う。   If it is determined in step S904 that the image data transfer rate is not sufficient, it is checked in step S905 if a tint block attribute is added to the PDL data 10001. If the copy-forgery-inhibited pattern attribute is not added, the Attribute correspondence table is rewritten in step S906. Only a pixel having a Text Attribute is treated as a LossLess mask. Then, other pixels having Graphics Attribute, LossyImage Attribute, and LossLessImage Attribute are treated as Lossy masks.

ステップS905にて、PDLデータ10001中に地紋属性が付加されている場合には、ステップS906にてAttribute対応表の書き換えを行う。Text AttributeとLossLessImage Attributeを持つ画素をLossLessマスクとして扱い、Graphics AttributeとLossyImage Attributeを持つ画素をLossyマスクとして扱う。地紋などのドットパターンイメージはLossLessImage Attributeであり、これがLossLessマスクとして扱いわれるため、このあとの圧縮処理で画像劣化することはない。   If a copy-forgery-inhibited pattern attribute is added to the PDL data 10001 in step S905, the Attribute correspondence table is rewritten in step S906. A pixel having a Text Attribute and a LossLessImage Attribute is treated as a LossLess mask, and a pixel having a Graphics Attribute and a LossImageAttribute is treated as a Lossy mask. A dot pattern image such as a copy-forgery-inhibited pattern is a LossLessImage Attribute, which is treated as a LossLess mask, so that the image is not deteriorated in the subsequent compression processing.

ステップS908では、ステップS906もしくはステップS907にて書き換えられたAttribute対応表に従い、Lossyマスク画像、LossLessマスク画像を生成し、さらにLossyページ画像、LossLessページ画像を生成する。さらにRIP済みAttribute はPackbits、Lossyページ画像はJPEG、LossLessページ画像はPNGでそれぞれ圧縮を行い、その合計データサイズを計測する。このデータサイズをS3 [byte]とする。   In step S908, a Lossy mask image and a LossLess mask image are generated according to the Attribute correspondence table rewritten in step S906 or S907, and a Lossy page image and a LossLess page image are further generated. Further, RIP-completed Attribute is compressed with Packbits, Lossy page image is compressed with JPEG, and LossLess page image is compressed with PNG, respectively, and the total data size is measured. This data size is assumed to be S3 [bytes].

ステップS910では、S1とS3のサイズ比較を行う。S3の方が小さいサイズであると判断した場合は、ステップS912にて、RIP済みAttribute、Lossyページ画像、LossLessページ画像の3つの圧縮画像とAttribute対応表を一つのファイルにまとめる。このファイルをプリント用圧縮画像データとして、ネットワーク400経由でデジタル複合機の制御装置100に送信する。   In step S910, the sizes of S1 and S3 are compared. If it is determined that the size of S3 is smaller, in step S912, the three compressed images of the RIPed Attribute, Lossy page image, and LossLess page image and the Attribute correspondence table are combined into one file. This file is transmitted as compressed image data for printing to the control device 100 of the digital multi-function peripheral via the network 400.

ステップS910でS1の方が小さいサイズであると判断した場合は、ステップS911にて、RIP済みAttribute、LossyImageのみをJPEG圧縮したLossyページ画像、LossLessページ画像の3つの圧縮画像とAttribute対応表を一つのファイルにまとめる。このファイルをプリント用圧縮画像データとして、ネットワーク400経由でデジタル複合機の制御装置100に送信する。   If it is determined in step S910 that S1 has a smaller size, in step S911, only the RIP-completed Attribute and LossyImage are JPEG-compressed with the three compressed images of Lossless page image and Lossless page image, and the Attribute correspondence table is combined. Combine into one file. This file is transmitted as compressed image data for printing to the control device 100 of the digital multi-function peripheral via the network 400.

ステップS911もしくはステップS912にてプリント用圧縮画像データを送信したのち、ステップS913ではPDLデータ10001中にプリント済属性を付加する。また同時に、最終的に使用したAttribute対応表をPDLデータ10001中に保存し、次回以降のPDL10001からプリント用画像を生成する場合に、このプリント済属性は用いられる。   After the print compressed image data is transmitted in step S911 or step S912, a printed attribute is added to the PDL data 10001 in step S913. At the same time, when the Attribute correspondence table finally used is stored in the PDL data 10001 and a print image is generated from the PDL 10001 on and after the next time, this printed attribute is used.

ステップS901にてPDLデータ10001中に印刷済属性が付加されてる場合は、PDLデータ10001は過去にプリント用圧縮画像データの生成に使用され、プリント用圧縮画像データがデジタル複合機に送信されたことを示す。   If the printed attribute is added to the PDL data 10001 in step S901, the PDL data 10001 has been used to generate compressed image data for printing in the past, and the compressed image data for printing has been transmitted to the digital multifunction peripheral. Indicates.

この場合、ステップS914にてPDLデータ10001中に保存されたAttribute対応表を読み込む。そしてステップS915にて、Attribute対応表に従い、Lossyマスク画像、LossLessマスク画像を生成し、さらにLossyページ画像、LossLessページ画像を生成する。さらにRIP済みAttribute はPackbits、Lossyページ画像はJPEG、LossLessページ画像はPNGでそれぞれ圧縮を行い、3つの圧縮画像とAttribute対応表を一つのファイルにまとめる。そしてステップS915にて、このファイルをプリント用圧縮画像データとして、ネットワーク400経由でデジタル複合機の制御装置100に送信する。この処理により、以前にプリント用圧縮画像データの生成に用いられた時と同じ画質の、プリント用圧縮画像データを送信することが可能になる。   In this case, the Attribute correspondence table stored in the PDL data 10001 is read in step S914. In step S915, a Lossy mask image and a LossLess mask image are generated according to the Attribute correspondence table, and a Lossy page image and a LossLess page image are generated. Further, the RIP-completed Attribute is compressed with Packbits, the Lossy page image is compressed with JPEG, and the LossLess page image is compressed with PNG, respectively, and the three compressed images and the Attribute correspondence table are combined into one file. In step S915, this file is transmitted as compressed image data for printing to the control apparatus 100 of the digital multi-function peripheral via the network 400. By this processing, it becomes possible to transmit the compressed image data for printing having the same image quality as that used when generating the compressed image data for printing previously.

以上の実施例1〜3によれば、PDLデータからLossy圧縮とLossLess圧縮を組み合わせたプリント用圧縮画像データを生成する際に、描画オブジェクトの種類と属性によってどちらの圧縮方式にするべきかを、画素単位で正確に制御することが可能になる。PDLデータ中の属性として、地紋やアノト等のドットパターンを含むことが指定されている場合には、ドットパターンをLossLess圧縮することが可能になる。   According to the first to third embodiments, when generating compressed image data for printing that combines Lossy compression and LossLess compression from PDL data, which compression method should be used depending on the type and attribute of the drawing object, It becomes possible to control accurately in units of pixels. When it is specified that a dot pattern such as a tint block or annot is included as an attribute in the PDL data, the dot pattern can be subjected to Loss Less compression.

また、Lossy圧縮とLossLess圧縮を組み合わせたプリント用圧縮画像データを伸張する際に、Attribute画像と組み合わせ表から生成したマスク画像を用いて2つの伸張画像を合成することが可能になる。これにより、LossLess圧縮の地紋やアノト等のドットパターンを含むプリント用圧縮画像データを受信し伸張した場合でも、ドットパターンが画質劣化しないことから、地紋やアノトの機能を損なうことがない。   Further, when decompressing compressed image data for printing that combines Lossy compression and LossLess compression, it is possible to synthesize two decompressed images using the Attribute image and the mask image generated from the combination table. As a result, even when compressed image data for printing including a dot pattern such as Loss Less compressed background pattern or Anoto is received and expanded, the image quality of the dot pattern does not deteriorate, so that the function of the background pattern or Anoto is not impaired.

[その他の実施例]
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
[Other Examples]
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 (7)

PDLデータからラスタ画像を生成するRIP手段と、
PDLデータ中の描画オブジェクトの種類に基づき、Attributeを生成する手段と、
AttributeからAttribute値の組み合わせからなるマスク画像を生成する手段であり、マスク画像はLossy圧縮する画素を選択するマスク画素とLossLess圧縮する画素を選択するマスク画素から構成されるマスク画像生成手段と、
前記マスク画像を生成するためのAttribute値の組み合わせを、組み合わせ表として保持する手段であり、組み合わせ表はAttribute値がLossy圧縮する画素かLossLessする画素か示している組み合わせ表保持手段と、
前記生成されたマスク画像を用いて、前記ラスタ画像からLossy圧縮する画像とLossLess圧縮する画像とを生成する手段と、
前記生成されたLossy圧縮する画像を非可逆圧縮手法で圧縮する手段と
前記生成されたLossLess圧縮する画像を可逆圧縮手法で圧縮する手段と
前記PDLデータに、前記生成されたLossy圧縮する画像と前記生成されたLossLess圧縮する画像が印刷されたことを示す印刷済属性が、付加されているか判定する判定手段とを有し、
前記判定手段により前記印刷済属性が付加されていると判定されたとき、前記マスク画像生成手段は、以前に印刷された際に用いられた、組み合わせ表を用いてマスク画像は生成されることを特徴とする画像処理装置。
RIP means for generating a raster image from PDL data;
Means for generating an Attribute based on the type of drawing object in the PDL data;
A mask image generation unit configured to generate a mask image including a combination of Attribute values from the Attribute, the mask image including a mask pixel for selecting a pixel to be subjected to Lossy compression and a mask pixel for selecting a pixel to be subjected to Loss Less compression;
A means for holding a combination of Attribute values for generating the mask image as a combination table, and the combination table is a combination table holding means for indicating whether the Attribute value is a pixel for lossy compression or a pixel for lossless;
Means for generating an image for lossy compression and an image for lossless compression from the raster image using the generated mask image;
Means for compressing the generated image for lossy compression by an irreversible compression method; means for compressing the generated image for lossless compression by a lossless compression method ;
Determining means for determining whether or not the generated image for lossy compression and the printed attribute indicating that the generated image for lossless compression has been printed are added to the PDL data;
When the determination means determines that the printed attribute is added, the mask image generation means indicates that the mask image is generated using the combination table used at the time of previous printing. A featured image processing apparatus.
前記Attributeを生成する手段は、地紋属性が付加されたイメージ描画は、LossLessのAttributeとすることを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the Attribute generation unit uses a LossLess Attribute for the image drawing to which the copy-forgery-inhibited pattern attribute is added. 前記Lossy圧縮する画素とLossLess圧縮する画素とAttribute値の組み合わせを変更する手段をさらに有し、
前記組み合わせ変更は、前記非可逆圧縮手法で圧縮されたLossy圧縮する画像と前記可逆圧縮手法で圧縮されたLossLess圧縮する画像のデータサイズと、前記非可逆圧縮手法で圧縮されたLossy圧縮する画像と前記可逆圧縮手法で圧縮されたLossLess圧縮する画像を送信する通信手段の通信速度との比較によって変更すべきか否か決定されることを特徴とする請求項1項記載の画像処理装置。
Means for changing a combination of the pixel for Lossy compression, the pixel for LossLess compression, and the Attribute value;
The combination change includes the lossy-compressed image compressed by the lossy compression method, the lossless-compressed image data size compressed by the lossless compression method, and the lossy-compressed image compressed by the lossy compression method. The image processing apparatus according to claim 1, wherein whether or not to change is determined by comparison with a communication speed of a communication unit that transmits an image to be compressed by the lossless compression method compressed by the lossless compression method.
PDLデータからラスタ画像を生成するRIP工程と、
PDLデータ中の描画オブジェクトの種類に基づき、Attribute を生成する工程と、
AttributeからのAttribute値の組み合わせからなるマスク画像を生成する工程であり、マスク画像はLossy圧縮する画素を選択するマスク画素とLossLess圧縮する画素を選択するマスク画素から構成されるマスク画像生成工程と、
前記マスク画像を生成するためのAttribute値の組み合わせを、組み合わせ表として保持する工程であり、組み合わせ表はAttribute値がLossy圧縮する画素かLossLessする画素か示している組み合わせ表保持工程と、
前記生成されたマスク画像を用いて、前記ラスタ画像からLossy圧縮する画像とLossLess圧縮する画像とを生成する工程と、
前記生成されたLossy圧縮する画像を非可逆圧縮手法で圧縮する工程と
前記生成されたLossLess圧縮する画像を可逆圧縮手法で圧縮する工程と
前記PDLデータに、前記生成されたLossy圧縮する画像と前記生成されたLossLess圧縮する画像が印刷されたことを示す印刷済属性が、付加されているか判定する判定工程とを有し、
前記判定工程により前記印刷済属性が付加されていると判定されたとき、前記マスク画像生成工程は、以前に印刷された際に用いられた、組み合わせ表を用いてマスク画像は生成されることを特徴とする画像処理方法。
A RIP process for generating a raster image from PDL data;
Generating an Attribute based on the type of drawing object in the PDL data;
A step of generating a mask image comprising a combination of Attribute values from the Attribute, wherein the mask image includes a mask pixel for selecting a pixel for lossy compression and a mask image for selecting a pixel for lossless compression;
A combination table holding step for holding a combination of Attribute values for generating the mask image as a combination table, wherein the combination table indicates whether the Attribute value is a pixel for lossy compression or a pixel for lossless;
Generating a Lossy-compressed image and a LossLess-compressed image from the raster image using the generated mask image;
A step of compressing the image to LossLess compressed the generated and the step of compressing the image to Lossy compression said generated by lossy compression techniques lossless compression technique,
A determination step for determining whether or not the generated image for lossy compression and the printed attribute indicating that the generated image for lossless compression has been printed are added to the PDL data;
When it is determined in the determination step that the printed attribute has been added, the mask image generation step indicates that a mask image is generated using a combination table that was used when the previous printing was performed. A featured image processing method.
前記Attributeを生成する工程は、地紋属性が付加されたイメージ描画は、LossLess のAttributeとすることを特徴とする請求項記載の画像処理方法。 5. The image processing method according to claim 4, wherein in the step of generating the Attribute, the image drawing to which the tint block attribute is added is an attribute of LossLess. 前記Lossy圧縮する画素とLossLess圧縮する画素とAttribute値の組み合わせを変更する工程をさらに有し、
前記組み合わせ変更は、前記非可逆圧縮手法で圧縮されたLossy圧縮する画像と前記可逆圧縮手法で圧縮されたLossLess圧縮する画像のデータサイズと、前記非可逆圧縮手法で圧縮されたLossy圧縮する画像と前記可逆圧縮手法で圧縮されたLossLess圧縮する画像を送信する通信手段の通信速度との比較によって変更すべきか否か決定されることを特徴とする請求項項記載の画像処理方法
A step of changing a combination of the Lossy-compressed pixel, the Lossless-compressed pixel, and the Attribute value;
The combination change includes the lossy-compressed image compressed by the lossy compression method, the lossless-compressed image data size compressed by the lossless compression method, and the lossy-compressed image compressed by the lossy compression method. 5. The image processing method according to claim 4, wherein whether or not to change is determined by comparison with a communication speed of a communication unit that transmits an image to be compressed by the lossless compression method compressed by the lossless compression method.
コンピュータにより、請求項に記載された画像処理方法を実行するためのプログラム。 A program for executing the image processing method according to claim 4 by a computer.
JP2012232115A 2012-10-19 2012-10-19 Image processing apparatus, image processing method, and program Expired - Fee Related JP6140973B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012232115A JP6140973B2 (en) 2012-10-19 2012-10-19 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012232115A JP6140973B2 (en) 2012-10-19 2012-10-19 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2014086777A JP2014086777A (en) 2014-05-12
JP6140973B2 true JP6140973B2 (en) 2017-06-07

Family

ID=50789493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012232115A Expired - Fee Related JP6140973B2 (en) 2012-10-19 2012-10-19 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP6140973B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004193818A (en) * 2002-12-10 2004-07-08 Hitachi Ltd Wireless image transmitting / receiving system, wireless image transmitting device, and wireless image receiving device
JP4615476B2 (en) * 2006-04-18 2011-01-19 株式会社リコー Image forming system and information processing apparatus
JP4459287B2 (en) * 2007-12-04 2010-04-28 株式会社リコー Image processing apparatus and image processing method
JP4979754B2 (en) * 2008-10-22 2012-07-18 株式会社東芝 Image compression apparatus and image compression method

Also Published As

Publication number Publication date
JP2014086777A (en) 2014-05-12

Similar Documents

Publication Publication Date Title
JP5538792B2 (en) Image processing apparatus, control method thereof, and program
JP5031668B2 (en) Printing apparatus, control method therefor, and program
CN105323417A (en) Print data processing method
JP5212886B2 (en) Image forming system and image forming program
JP6252225B2 (en) Image processing apparatus, image processing method, and image forming apparatus
JP4766657B2 (en) Image processing apparatus, control method therefor, and program
JP2017156852A (en) Image processing device and computer program
JP2013256073A (en) Data generation device, image forming apparatus, and data generation program
JP6140973B2 (en) Image processing apparatus, image processing method, and program
JP4428028B2 (en) Image processing apparatus and program for image processing
JP2011139162A (en) Image encoding device, control method, and program
JP5245853B2 (en) Image forming apparatus
JP2005243003A (en) Image processing method and image processor
US9049404B2 (en) Image processing apparatus and method that perform multiple image processes, and storage medium storing a program thereof, for decompressing a compressed image according to first and second information indicating image processing to be performed
JP2008042345A (en) Image processing method and image processing apparatus
JP2001169120A (en) Image processing apparatus and method, and image processing system
JP6481391B2 (en) Image forming remote operation system, image forming apparatus, and image transfer method in remote operation
JP5861689B2 (en) Information processing apparatus, information processing method, information processing program, and recording medium
JPH11187261A (en) Image processor
JP5549434B2 (en) Image processing apparatus and image processing method
JP2009194458A (en) Image processing apparatus and image processing method
JP2010183436A (en) Apparatus, system, method and program for image processing
JP2000227848A (en) Image processor
JP6775558B2 (en) Image stretcher and its control method and program
JP4259328B2 (en) Image processing apparatus, printer, and method for reading stored data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151019

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170203

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170502

R151 Written notification of patent or utility model registration

Ref document number: 6140973

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees