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

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

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

Info

Publication number
JP6665447B2
JP6665447B2 JP2015164985A JP2015164985A JP6665447B2 JP 6665447 B2 JP6665447 B2 JP 6665447B2 JP 2015164985 A JP2015164985 A JP 2015164985A JP 2015164985 A JP2015164985 A JP 2015164985A JP 6665447 B2 JP6665447 B2 JP 6665447B2
Authority
JP
Japan
Prior art keywords
image data
unit
processing
image processing
picture
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.)
Active
Application number
JP2015164985A
Other languages
Japanese (ja)
Other versions
JP2017046057A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2015164985A priority Critical patent/JP6665447B2/en
Publication of JP2017046057A publication Critical patent/JP2017046057A/en
Application granted granted Critical
Publication of JP6665447B2 publication Critical patent/JP6665447B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

この発明は、画像処理装置、画像処理方法及びプログラムに関する。   The present invention relates to an image processing device, an image processing method, and a program.

従来から、サイズの大きい画像データを効率よく保存や伝送するため、画像データを圧縮することが行われている。また、その圧縮の効率を高めるため、画像データに加工を施してから圧縮を行う種々の手法が提案されている。
例えば、特許文献1には、画像データを線分の画像要素とそれ以外の部分とに分割し、そのそれぞれの部分に対し、当該部分に含まれる画素の値に基づいて決定した代表色を用いて限定色化してから圧縮処理に供することが記載されている。
特許文献2には、画像データを文字や線の領域と絵柄の領域とに分割し、文字や線の領域に対し、画素値を平均化する処理を行ってから圧縮処理に供することが記載されている。
2. Description of the Related Art Conventionally, image data has been compressed in order to efficiently store and transmit large-sized image data. Further, in order to increase the efficiency of the compression, various methods have been proposed in which image data is processed and then compressed.
For example, in Patent Document 1, image data is divided into a line segment image element and other parts, and a representative color determined based on the value of a pixel included in the part is used for each part. It is described that the color is limited and then subjected to a compression process.
Patent Document 2 describes that image data is divided into a character or line region and a picture region, and a process of averaging pixel values is performed on the character or line region and then subjected to a compression process. ing.

しかし、以上のような従来の手法では、文字や線以外の絵柄の部分については、圧縮効率の向上が難しかった。また、効率を上げようとする場合、一律に低解像度化処理を行う等しており、空間周波数の高い領域を含む画像については、圧縮による画像品質の劣化が激しくなるという問題があった。
この発明は、このような事情に鑑みてなされたものであり、画質を維持しつつ高効率で圧縮可能な画像データを得られるようにすることを目的とする。
However, with the above-described conventional methods, it has been difficult to improve the compression efficiency of a pattern portion other than characters and lines. Further, in order to increase the efficiency, resolution reduction processing is performed uniformly, and for an image including a region with a high spatial frequency, there is a problem that the image quality is greatly deteriorated by compression.
The present invention has been made in view of such circumstances, and has as its object to obtain highly compressible image data while maintaining image quality.

以上の目的を達成するため、この発明による画像処理装置は、処理対象の絵柄画像データに対し減色処理を実行する第1画像処理手段と、上記処理対象の絵柄画像データに対し、該絵柄画像データの解像度に応じて画素数を低減させる度合いを切り替えて画素数低減処理を行う第2画像処理手段と、上記処理対象の絵柄画像データ内における画素値の変動度合いを示す複雑度を算出する算出手段と、上記算出手段が算出した複雑度に従い、上記第1画像処理手段による減色処理後の絵柄画像データ及び上記第2画像処理手段による画素数低減処理後の絵柄画像データのいずれを出力するかを決定する決定手段と、上記処理対象の絵柄画像データを所定の領域に分割し、その分割した領域の座標情報を上記算出手段に渡すブロック化手段とを備え、
上記算出手段は、上記ブロック化手段から取得した領域の座標情報に基づいて、該領域毎に上記複雑度を算出し、上記決定手段は、上記第1画像処理手段による減色処理後の絵柄画像データ及び上記第2画像処理手段による画素数低減処理後の絵柄画像データのいずれを出力するかの決定を上記領域毎に行うことを特徴とする。
To achieve the above object, an image processing apparatus according to the present invention includes a first image processing means for executing the color reduction processing on the picture image data to be processed, with respect to picture image data of the processing target,該絵pattern image data A second image processing means for performing a pixel number reduction process by switching a degree of reducing the number of pixels in accordance with the resolution of the image data, and a calculating means for calculating a complexity indicating a degree of variation of a pixel value in the picture image data to be processed When, in accordance with the complexity of the above calculation means has calculated, or outputs one of the picture image data after the pixel number reduction process by the picture image data and the second image processing unit after the color reduction processing by the first image processing means Bei determining means, the picture image data of the processing target is divided into predetermined areas, and a blocking means for passing the coordinate information of the divided regions to the calculating means for determining ,
The calculating means calculates the complexity for each area based on the coordinate information of the area obtained from the blocking means, and the deciding means calculates the picture image data after the color reduction processing by the first image processing means. And determining which of the picture image data after the pixel number reduction processing by the second image processing means to output is performed for each of the regions .

上記の構成によれば、画質を維持しつつ高効率で圧縮可能な画像データを得ることができる。   According to the above configuration, it is possible to obtain highly compressible image data while maintaining image quality.

この発明の画像処理装置の第1実施形態である画像形成装置のハードウェア構成を示すブロック図である。FIG. 1 is a block diagram illustrating a hardware configuration of an image forming apparatus according to a first embodiment of the present invention. 図1に示した画像形成装置の機能のうち、画像データ圧縮処理するための機能の概略構成を示すブロック図である。Among the functions of the image forming apparatus shown in FIG. 1 is a block diagram showing a schematic configuration of a function for compressing the image data. 図2に示した絵柄画像データ圧縮部の機能構成を示すブロック図である。FIG. 3 is a block diagram illustrating a functional configuration of a picture image data compression unit illustrated in FIG. 2. 図3に示した減色処理部が色数を減らす際に行うベクトル量子化処理について説明するための図である。FIG. 4 is a diagram for describing vector quantization processing performed when the color reduction processing unit illustrated in FIG. 3 reduces the number of colors. 図3に示した判定部が周波数算出部が算出した空間周波数成分の値を用いて行う判定処理について説明するための図である。FIG. 4 is a diagram for describing a determination process performed by a determination unit illustrated in FIG. 3 using a value of a spatial frequency component calculated by a frequency calculation unit. 図3に示した判定部が行う判定処理の手順を示すフローチャートである。4 is a flowchart illustrating a procedure of a determination process performed by a determination unit illustrated in FIG. 3. 第2実施形態の画像形成装置における絵柄画像データ圧縮部の機能構成を示すブロック図である。FIG. 9 is a block diagram illustrating a functional configuration of a picture image data compression unit in the image forming apparatus according to the second embodiment. 図7に示した判定部が行う判定処理の手順を示すフローチャートである。8 is a flowchart illustrating a procedure of a determination process performed by a determination unit illustrated in FIG. 7. 第3実施形態の画像形成装置における絵柄画像データ圧縮部の機能構成を示すブロック図である。FIG. 11 is a block diagram illustrating a functional configuration of a picture image data compression unit in an image forming apparatus according to a third embodiment. 図9に示した周波数置換部が行う周波数置換処理の手順を示すフローチャートである。10 is a flowchart illustrating a procedure of a frequency replacement process performed by a frequency replacement unit illustrated in FIG. 9. 第4実施形態の画像形成装置における絵柄画像データ圧縮部の機能構成を示すブロック図である。It is a block diagram showing the functional composition of the picture image data compression part in the image forming device of a 4th embodiment. 図11に示した判定部が行う判定処理の手順を示すフローチャートである。12 is a flowchart illustrating a procedure of a determination process performed by a determination unit illustrated in FIG. 第5実施形態の画像形成装置における絵柄画像データ圧縮部の機能構成を示すブロック図である。It is a block diagram showing the functional composition of the picture image data compression part in the image forming device of a 5th embodiment. 図13に示した判定部が行う判定処理の手順を示すフローチャートである。14 is a flowchart illustrating a procedure of a determination process performed by a determination unit illustrated in FIG. 第6実施形態の画像形成装置における絵柄画像データ圧縮部の機能構成を示すブロック図である。It is a block diagram showing the functional composition of the picture image data compression part in the image forming device of a 6th embodiment. 図15に示した判定部が行う判定処理の手順を示すフローチャートである。16 is a flowchart illustrating a procedure of a determination process performed by a determination unit illustrated in FIG. 第1変形例の画像形成装置における絵柄画像データ圧縮部の機能構成を示す図である。FIG. 9 is a diagram illustrating a functional configuration of a picture image data compression unit in an image forming apparatus according to a first modification. 第2変形例の画像形成装置における絵柄画像データ圧縮部の機能構成を示す図である。FIG. 11 is a diagram illustrating a functional configuration of a picture image data compression unit in an image forming apparatus according to a second modification.

以下、図面を用いて、本発明を実施するための形態について説明をしていく。
〔第1実施形態:図1乃至図6〕
まず、この発明の画像処理装置の第1実施形態である画像形成装置について説明する。図1は、その画像形成装置のハードウェア構成を示すブロック図である。
図1に示す画像形成装置10は、コントローラ101、エンジン制御部110、画像読取部111、プロッタ部112、画像処理部113を備える。また、コントローラ101は、CPU102、RAM103、ROM104、HDD(ハードディスクドライブ)105、通信I/F(インターフェース)106及び操作部I/F107を備え、操作部I/F107は操作部108と接続する。そして、これらは、システムバス109によって接続されている。
Hereinafter, embodiments for implementing the present invention will be described with reference to the drawings.
[First Embodiment: FIGS. 1 to 6]
First, an image forming apparatus according to a first embodiment of the image processing apparatus of the present invention will be described. FIG. 1 is a block diagram showing a hardware configuration of the image forming apparatus.
The image forming apparatus 10 illustrated in FIG. 1 includes a controller 101, an engine control unit 110, an image reading unit 111, a plotter unit 112, and an image processing unit 113. The controller 101 includes a CPU 102, a RAM 103, a ROM 104, an HDD (hard disk drive) 105, a communication I / F (interface) 106, and an operation unit I / F 107. The operation unit I / F 107 is connected to the operation unit 108. These are connected by a system bus 109.

上記構成のうち、CPU102は、RAM103をワークエリアとしてROM104又はHDD105に記憶されたプログラムを実行することにより、画像形成装置10全体を制御し、後述する種々の機能を実現する。
ROM104及びHDD105は、不揮発性記憶媒体(記憶手段)であり、CPU102が実行する各種プログラムや後述する各種データを格納している。
通信I/F106は、画像形成装置10をネットワークと接続するためのインターフェースである。
In the above configuration, the CPU 102 controls the entire image forming apparatus 10 by executing a program stored in the ROM 104 or the HDD 105 using the RAM 103 as a work area, and realizes various functions described below.
The ROM 104 and the HDD 105 are non-volatile storage media (storage means), and store various programs executed by the CPU 102 and various data described below.
The communication I / F 106 is an interface for connecting the image forming apparatus 10 to a network.

操作部I/F107は、操作部108をシステムバス109に接続してCPU102から制御可能とするためのインターフェースである。
操作部108は、ユーザからの操作を受け付けるためのキー、ボタン、タッチセンサ等の操作手段と、ユーザに対して情報を提示するためのディスプレイ等の表示手段とを備えるユーザインターフェースである。
The operation unit I / F 107 is an interface for connecting the operation unit 108 to the system bus 109 and enabling control from the CPU 102.
The operation unit 108 is a user interface including an operation unit such as a key, a button, and a touch sensor for receiving an operation from the user, and a display unit such as a display for presenting information to the user .

画像読取部111は、原稿の画像を読み取ってその画像データを取得する機能を備える画像読取手段である。プロッタ部112は、入力された画像データに基づき印刷により用紙に画像を形成する機能を備える画像形成手段である。画像処理部113は、画像読取部111で読み取った画像データやプロッタ部112における画像形成に用いる画像データに対し、後述する画像データの加工及び圧縮の処理を含む種々の画像処理を行う画像処理手段である。
エンジン制御部110は、画像読取部111、プロッタ部112及び画像処理部113を、システムバス109を介してCPU102から供給されるコマンドに従って制御する制御手段である。
The image reading unit 111 is an image reading unit having a function of reading an image of a document and obtaining the image data. The plotter unit 112 is an image forming unit having a function of forming an image on a sheet by printing based on input image data. The image processing unit 113 performs various types of image processing including image data processing and compression processing, which will be described later, on image data read by the image reading unit 111 and image data used for image formation in the plotter unit 112. It is.
The engine control unit 110 is a control unit that controls the image reading unit 111, the plotter unit 112, and the image processing unit 113 in accordance with a command supplied from the CPU 102 via the system bus 109.

以上の画像形成装置10は、例えばプリンタ、ファクシミリ通信装置、デジタル複合機(MFP)等として構成することができる。
この画像形成装置10において特徴的な点は、画像データの圧縮処理に際して行う、画像データの加工処理である。以下、この点について、圧縮処理の手順も含めて説明する。
The above-described image forming apparatus 10 can be configured as, for example, a printer, a facsimile communication apparatus, a digital multifunction peripheral (MFP), or the like.
A characteristic feature of the image forming apparatus 10 is a process of processing image data, which is performed when compressing image data. Hereinafter, this point will be described including the procedure of the compression process.

まず、図2及び図3に、画像形成装置10が備える、画像データの圧縮及び圧縮に際して行う加工の処理に関連する機能の構成を示す。図3は、図2に示した絵柄画像データ圧縮部24の機能をより詳細に示したものである。
図2に示すように、画像形成装置10は、画像データ取得部21、画像データ分離部22、文字画像データ圧縮部23、絵柄画像データ圧縮部24、合成部25、出力部26を備える。画像データ取得部21の機能はCPU102が通信I/F106或いは画像読取部111を制御することにより、画像データ分離部22、文字画像データ圧縮部23、絵柄画像データ圧縮部24、合成部25及び出力部26の機能は、CPU102が画像処理部113を制御することにより、それぞれ実現される。
First, FIG. 2 and FIG. 3 show the configuration of functions provided in the image forming apparatus 10 relating to the compression of image data and the processing performed at the time of compression. FIG. 3 shows the function of the picture image data compression unit 24 shown in FIG. 2 in more detail.
As shown in FIG. 2, the image forming apparatus 10 includes an image data acquisition unit 21, an image data separation unit 22, a character image data compression unit 23, a picture image data compression unit 24, a synthesis unit 25, and an output unit 26. The functions of the image data acquisition unit 21 are as follows: the CPU 102 controls the communication I / F 106 or the image reading unit 111, so that the image data separation unit 22, the character image data compression unit 23, the picture image data compression unit 24, the synthesis unit 25, and the output The functions of the unit 26 are realized by the CPU 102 controlling the image processing unit 113, respectively.

また、画像データ取得部21は、処理対象となる画像データを取得し、画像データ分離部22に渡す機能を備える。この取得は、画像形成装置10の内部においてスキャン機能等により形成され、予め保存された画像データを取得する場合と、PC(Personal Computer)やスマートフォン等の携帯端末やスキャナ等の外部装置からネットワーク等の通信経路を介して、画像データを取得する場合とを含む。   Further, the image data acquisition unit 21 has a function of acquiring image data to be processed and passing it to the image data separation unit 22. This acquisition is performed when image data that is formed inside the image forming apparatus 10 by a scanning function or the like and is stored in advance is acquired. And the case where image data is acquired via the communication path of (1).

画像データ分離部22は、取得した画像データを、文字や線が表された部分である文字部を取り出した文字画像データと、それ以外の部分である絵柄部を取り出した絵柄画像データとに分離する分離手段の機能を備える。この分離の処理は、適宜公知の技術を適用すればよい。例えば、処理対象の画像データに対してエッジ判定を行ってエッジ要素を検出し、その結果に基づいて、画素毎に文字画素、絵柄画素に分離することで、文字画像データと絵柄画像データとに分離することができる。   The image data separating unit 22 separates the acquired image data into character image data obtained by extracting a character portion, which is a portion where characters and lines are shown, and pattern image data obtained by extracting a pattern portion, which is the other portion. The function of the separating means is provided. For this separation processing, a known technique may be appropriately applied. For example, by performing an edge determination on image data to be processed to detect an edge element, and separating each pixel into a character pixel and a pattern pixel based on the result, character image data and pattern image data are separated. Can be separated.

また、画像データ分離部22は、分離処理の際に、文字画像データ内の文字画素以外の画素を白画素に置換し、絵柄画像データ内の絵柄画素以外の画素を白画素に置換する機能を備える。更に、画像データ分離部22は、分離処理後の文字画像データを文字画像データ圧縮部23へ、絵柄画像データを絵柄画像データ圧縮部24へ、それぞれ渡す機能も備える。   The image data separation unit 22 has a function of replacing pixels other than the character pixels in the character image data with white pixels and replacing pixels other than the design pixels in the design image data with white pixels during the separation processing. Prepare. Further, the image data separating unit 22 has a function of passing the character image data after the separation processing to the character image data compressing unit 23 and passing the picture image data to the picture image data compressing unit 24, respectively.

文字画像データ圧縮部23は、画像データ分離部22から文字画像データを取得し、その文字画像データに対し圧縮処理を行い、圧縮後の文字画像圧縮データを合成部25に出力する機能を備える。
文字画像データの圧縮処理としては、例えば、文字画像データを2値化した後、ランレングス符号化等の可逆圧縮処理を行うことが考えられる。圧縮処理についても、種々の公知の技術を適用すればよく、上述した圧縮処理の例に限られることはない。
The character image data compression unit 23 has a function of acquiring character image data from the image data separation unit 22, performing compression processing on the character image data, and outputting the compressed character image data to the synthesis unit 25.
As the compression processing of the character image data, for example, after binarizing the character image data, lossless compression processing such as run-length encoding may be performed. Various known techniques may be applied to the compression processing, and the compression processing is not limited to the above-described example of the compression processing.

絵柄画像データ圧縮部24は、画像データ分離部22から絵柄画像データを取得し、その絵柄画像データに対し圧縮処理を行い、圧縮後の絵柄画像圧縮データを合成部25に出力する機能を備える。
なお、絵柄画像データ圧縮部24が備える機能については、図3等を用いて詳細に説明する。
The picture image data compression section 24 has a function of acquiring picture image data from the image data separation section 22, performing compression processing on the picture image data, and outputting the compressed picture image compressed data to the synthesis section 25.
The function of the picture image data compression unit 24 will be described in detail with reference to FIG.

合成部25は、文字画像データ圧縮部23から文字画像圧縮データ、絵柄画像データ圧縮部24から絵柄画像圧縮データをそれぞれ取得し、2つの圧縮データを組み合わせて1つの画像ファイルを生成する機能を備える。例えば、PDF(Portable Document Format)ファイルフォーマットにおけるフォーマット合成技術を用いて、文字画像圧縮データと絵柄画像圧縮データを多重形式で保存することにより、上記の画像ファイル生成を実現できる。しかし、画像ファイル生成の方式は、これに限られない。
出力部26は、合成部25が合成したファイルを取得し、出力する機能を備える。この出力とは、合成したファイルを保存するために、画像形成装置10内の内部のHDD105にその合成ファイルを渡したり、或いはPC(Personal Computer)やスマートフォン等の携帯端末やスキャナ等の外部装置にネットワーク等の通信経路を介して、その合成ファイルを渡す場合とを含む。
The synthesizing unit 25 has a function of acquiring the compressed character image data from the character image data compression unit 23 and the compressed pattern image data from the pattern image data compression unit 24, respectively, and combining the two pieces of compressed data to generate one image file. . For example, the above-described image file generation can be realized by storing the compressed character image data and the compressed pattern image data in a multiplex format using a format synthesis technique in a PDF (Portable Document Format) file format. However, the method of generating an image file is not limited to this.
The output unit 26 has a function of acquiring and outputting the file synthesized by the synthesis unit 25. This output means that the combined file is passed to the internal HDD 105 in the image forming apparatus 10 in order to save the combined file, or to a portable terminal such as a PC (Personal Computer) or a smartphone, or to an external device such as a scanner. And passing the synthesized file through a communication path such as a network.

次に、図3に、図2に示した絵柄画像データ圧縮部24の機能構成をより詳細に示す。
図3に示すように、絵柄画像データ圧縮部24は、減色処理部201、画素数低減処理部202、周波数算出部203、判定部204、制御部205及び圧縮部206を備える。
これらのうち、減色処理部201は、画像データ分離部22から供給される絵柄画像データに対し、第1画像処理手順の処理として色数を減らす減色処理を実行する第1画像処理手段の機能を備える。この減色処理とは、任意の代表色を設定し、他の色をその代表色に置き換える処理のことである。
例えば、RGBモードで各ビット深度が8ビットの絵柄画像データの場合、1画素当たり合計24ビットで色が表現されている。減色処理により、この絵柄画像データを1画素当たり8ビットで色を表現する画像データに置き換えることが考えられる。
Next, FIG. 3 shows the functional configuration of the picture image data compression unit 24 shown in FIG. 2 in more detail.
As shown in FIG. 3, the picture image data compression unit 24 includes a color reduction processing unit 201, a pixel number reduction processing unit 202, a frequency calculation unit 203, a determination unit 204, a control unit 205, and a compression unit 206.
Among these, the color reduction processing unit 201 has a function of a first image processing unit that executes a color reduction process for reducing the number of colors as processing of a first image processing procedure on the picture image data supplied from the image data separation unit 22. Prepare. The color reduction process is a process of setting an arbitrary representative color and replacing another color with the representative color.
For example, in the case of pattern image data in which each bit depth is 8 bits in the RGB mode, a color is represented by a total of 24 bits per pixel. It is conceivable to replace the picture image data with image data expressing colors with 8 bits per pixel by color reduction processing.

次に、減色処理における色の置き換えについて図4を用いて説明する。この置き換えは、ベクトル量子化の考え方を用いて行う。図4に示したのは色空間Sの一例である。
減色処理を行う場合、まず処理対象の画像データにおける各画素の色を、色空間上の座標にプロットする。そして、プロットした各座標についてクラスタリング処理を行い、クラスタ毎に代表色を決定する。そして、クラスタ内の各画素の色を、そのクラスタの代表色に置き換える。ここでは、代表色はクラスタリングの後に決定しているが、クラスタリング前に決定してもよい。
Next, replacement of colors in the color reduction processing will be described with reference to FIG. This replacement is performed using the concept of vector quantization. FIG. 4 shows an example of the color space S.
When performing the color reduction processing, first, the color of each pixel in the image data to be processed is plotted at coordinates in a color space. Then, a clustering process is performed for each plotted coordinate, and a representative color is determined for each cluster. Then, the color of each pixel in the cluster is replaced with the representative color of the cluster. Here, the representative color is determined after clustering, but may be determined before clustering.

図4では、白丸V1a〜V1c,V2a〜V2fが画素の色のプロット先を、C1,C2がクラスタリングにより検出されたクラスタの範囲を、黒丸Vr1,Vr2が各クラスタの代表色を示す。従って、減色処理において、V1a〜V1cと対応する画素の色をVr1が示す色に、V2a〜V2fと対応する画素の色をVr2が示す色に、それぞれ変換すればよいことになる。 In FIG. 4, white circles V1a to V1c and V2a to V2f indicate plotting destinations of pixel colors, C1 and C2 indicate ranges of clusters detected by clustering, and black circles Vr1 and Vr2 indicate representative colors of each cluster. Therefore, in the color reduction processing, the color of the pixel corresponding to V1a to V1c may be converted to the color indicated by Vr1, and the color of the pixel corresponding to V2a to V2f may be converted to the color indicated by Vr2.

変換後の画像データを8ビットとするためには、代表色は256色まで定めることができるので、クラスタの最大数も256である。クラスタリングや代表色の決定手法は、適宜公知の技術を採用すればよい。また、各代表色の画素値は、減色前の24ビットのデータとして、減色処理後の画像データに付加し、画像データの伸長時にその色を再現できるようにする。
減色処理部201がこのような減色処理を行うことで、色数が減るため圧縮効率をよくすることが可能となる。また、色数を減らすだけなので、解像度が低下することもなく、画質を維持することが可能である。
In order to make the converted image data 8 bits, the representative colors can be determined up to 256 colors, so the maximum number of clusters is also 256. A well-known technique may be appropriately used for the clustering and the method of determining the representative color. Further, the pixel value of each representative color is added to the image data after the color reduction processing as 24-bit data before the color reduction, so that the color can be reproduced when the image data is expanded.
When the color reduction processing unit 201 performs such color reduction processing, the number of colors is reduced, so that the compression efficiency can be improved. Further, since only the number of colors is reduced, the image quality can be maintained without lowering the resolution.

次に、画素数低減処理部202は、画像データ分離部22から供給される絵柄画像データに対し、第2画像処理手順の処理として画素数を低減させる処理を実行する第2画像処理手段の機能を備える。
例えば、絵柄画像データのサイズを1/16に縮小する場合は、縦と横の画素数がそれぞれ元の画素数の1/4の画素数となるように、画素数を低減する処理を行う。この画素数を低減させるとは、画像の表示や印刷のサイズが変わらなければ解像度を下げることを意味する。
なお、画素数をどの程度低減させるか、即ち縮小率をどの程度にするかは、絵柄画像データの解像度に応じて切り替えてもよい。例えば、高解像度であれば縮小率を大きくし、低解像度であれば縮小率を小さくすることで、解像度の差による画質差を低減することが可能となる。
Next, the pixel number reduction processing unit 202 functions as a second image processing unit that executes a process of reducing the number of pixels as a process of a second image processing procedure on the picture image data supplied from the image data separation unit 22. Is provided.
For example, when the size of the picture image data is reduced to 1/16, a process of reducing the number of pixels is performed such that the number of pixels in the vertical and horizontal directions is 1/4 of the original number of pixels. Reducing the number of pixels means lowering the resolution unless the size of image display or printing changes.
Note that how much the number of pixels is reduced, that is, how much the reduction ratio is set, may be switched according to the resolution of the picture image data. For example, it is possible to reduce the difference in image quality due to the difference in resolution by increasing the reduction ratio for high resolution and decreasing the reduction ratio for low resolution.

周波数算出部203は、画像データ分離部22から供給される絵柄画像データについて、画像データ内における画素値の変動度合いを示す複雑度を算出する算出手段の機能を備える。なお、この複雑度の算出は、算出手順の処理である。
複雑度としては、例えば、絵柄画像データに対して離散コサイン変換(DCT:Discrete Cosine Transform)やフーリエ変換等を行って得られる、特定の空間周波数成分(以下、「空間周波数」は単に「周波数」と記載する)を用いることができる。
The frequency calculation unit 203 has a function of a calculation unit that calculates the complexity indicating the degree of change of the pixel value in the image data for the picture image data supplied from the image data separation unit 22. The calculation of the complexity is a process of a calculation procedure.
As the complexity, for example, a specific spatial frequency component (hereinafter, “spatial frequency” is simply “frequency”) obtained by performing discrete cosine transform (DCT), Fourier transform, or the like on picture image data Described below) can be used.

図5に、複雑度として用いる周波数成分の一例を示す。
図5は、絵柄画像データ中の8×8画素の領域に対しDCTを用いた直交変換を行うことで算出した8×8の周波数成分(DCT係数)を量子化した結果の一例である。図で右側ほど横方向の周波数が大きい成分を示し、下側ほど縦方向の周波数が大きい成分を示す。
これらのDCT係数のうち、比較的高周波側の1つのDCT係数の値を複雑度として用いることができる。例えば符号Pで示す位置の値を複雑度として用いることができる。どのDCT係数を用いればよいかは、実際の処理結果を確認しつつ好ましい結果が得られるものに定めるとよいが、例えば、画素数低減処理を行うと画質の劣化度合いが高くなる程度の周波数のDCT係数を用いることが考えられる。
FIG. 5 shows an example of a frequency component used as the complexity.
FIG. 5 is an example of a result obtained by quantizing an 8 × 8 frequency component (DCT coefficient) calculated by performing an orthogonal transformation using DCT on a region of 8 × 8 pixels in the picture image data. In the figure, the component on the right side shows a component with a larger horizontal frequency, and the component on the lower side shows a component with a larger frequency in the vertical direction.
Of these DCT coefficients, the value of one DCT coefficient on the relatively high frequency side can be used as the complexity. For example, the value at the position indicated by the symbol P can be used as the complexity. Which DCT coefficient should be used should be determined so that a desired result can be obtained while confirming the actual processing result. For example, when the number of pixels is reduced, the frequency at which the degree of deterioration of the image quality increases becomes high. It is conceivable to use DCT coefficients.

判定部204は、周波数算出部203が算出する複雑度に基づき、減色処理後の絵柄画像データと画素数低減処理後の絵柄画像データのどちらを圧縮の対象とするかを決定する決定手段と、その決定した内容を制御部205へ出力する機能を備える。
なお、判定部204が行う決定の処理は、決定手順の処理である。
A determining unit configured to determine which of the picture image data after the color reduction processing and the picture image data after the pixel number reduction processing is to be compressed, based on the complexity calculated by the frequency calculation unit; A function of outputting the determined content to the control unit 205 is provided.
Note that the determination process performed by the determination unit 204 is a process of a determination procedure.

この決定は、複雑度の値を所定の閾値T1と比較して行い、閾値よりも大きければ処理対象の絵柄画像データに高周波成分が多く含まれ(全体として画素値の変動度合いが大きく、細かい画像である)、小さければ高周波成分が少ない(全体として画素値の変動度合いが小さく、平坦な画像である)と判定する。そして、前者の場合、減色処理後の絵柄画像データを圧縮することを決定し、後者の場合、画素数低減処理後の絵柄画像データを圧縮することを決定する。   This determination is made by comparing the value of the complexity with a predetermined threshold value T1. If the value is larger than the threshold value, the pattern image data to be processed contains a large amount of high-frequency components. Is smaller, it is determined that the high-frequency component is smaller (the degree of change in the pixel value is smaller as a whole, and the image is a flat image). In the former case, it is determined to compress the picture image data after the color reduction processing, and in the latter case, it is determined to compress the picture image data after the pixel number reduction processing.

このように決定するのは、画素値の変動度合いが大きい場合に画素数を減らしてしまうと、色合いが細かく変化する箇所がつぶれてしまい、画質が大幅に劣化してしまうおそれがあるからである。一方、画素値の変動度合いが小さい場合、画素数を減らしても、画質はさほど劣化しない。したがって、この場合には、画素数低減処理を行うことで、画質を維持しつつ、ファイルのデータサイズを大幅に小さくすることが可能となるからである。減色処理により1画素24ビットを1画素8ビットに低減しても、データ量は1/3になるだけであるが、画素数低減処理により画素数を1/16に低減すれば、データ量も1/16にすることができる。   The reason for this determination is that if the number of pixels is reduced when the degree of change in the pixel value is large, the portion where the hue changes finely will be lost, and the image quality may be significantly degraded. . On the other hand, when the degree of change in the pixel value is small, the image quality does not deteriorate so much even if the number of pixels is reduced. Therefore, in this case, by performing the pixel number reduction processing, the data size of the file can be significantly reduced while maintaining the image quality. Even if 24 bits per pixel is reduced to 8 bits per pixel by the color reduction processing, the data amount is only reduced to 1/3. It can be reduced to 1/16.

次に、図3の制御部205は、判定部204が行った決定に従って、減色処理部201による減色処理後の絵柄画像データ及び画素数低減処理部202による画素数低減処理後の絵柄画像データのいずれかを圧縮部206に出力する出力手段の機能を備える。なお、この圧縮部206へデータを出力する処理は、出力手順の処理である。
圧縮部206は、その取得した画像データを圧縮する圧縮手段の機能を備える。
以上が絵柄画像データ圧縮部24が備える各種の機能である。なお、この絵柄画像データ圧縮部24は、圧縮部206における圧縮後の画像データを、図2に示した合成部25に出力する。
Next, in accordance with the determination made by the determination unit 204, the control unit 205 of FIG. 3 converts the pattern image data after the color reduction processing by the color reduction processing unit 201 and the pattern image data after the pixel number reduction processing by the pixel number reduction processing unit 202. It has a function of an output unit that outputs one of them to the compression unit 206. The process of outputting data to the compression unit 206 is a process of an output procedure.
The compression unit 206 has a function of a compression unit that compresses the acquired image data.
These are the various functions of the picture image data compression unit 24. Note that the picture image data compression section 24 outputs the image data after compression by the compression section 206 to the synthesis section 25 shown in FIG.

次に、図6に、上述した判定部204が行う圧縮対象の決定の処理の手順を示す。この処理は、実際には画像処理部113が備えるプロセッサが実行するものである。
図6の処理においてまず、判定部204は、周波数算出部203が算出した複雑度の値を取得する(S101)。そして、判定部204は、取得した複雑度の値が所定の閾値T1よりも大きいか否かを判断し(S102)、大きければ(S102のYes)、画素値の変動度合いが大きいと判断し、減色処理後の絵柄画像データを圧縮することを決定する。また、ステップS102で大きくなければ(S102のNo)、画素値の変動度合いが小さいと判断し、画素数低減処理後の絵柄画像データを圧縮することを決定する。最後に、ステップS103或いはS104で決定した内容を制御部205へ通知し(S105)この処理は終了する。
Next, FIG. 6 shows a procedure of a process of determining a compression target performed by the determination unit 204 described above. This processing is actually executed by the processor included in the image processing unit 113.
In the processing of FIG. 6, first, the determination unit 204 acquires the value of the complexity calculated by the frequency calculation unit 203 (S101). Then, the determination unit 204 determines whether the acquired value of the complexity is larger than a predetermined threshold T1 (S102), and if it is larger (Yes in S102), determines that the degree of change in the pixel value is large, It decides to compress the picture image data after the color reduction processing. If it is not large in step S102 (No in S102), it is determined that the degree of change in the pixel value is small, and it is determined to compress the picture image data after the pixel number reduction processing. Finally, the content determined in step S103 or S104 is notified to the control unit 205 (S105), and this processing ends.

以上が、本発明の第1実施形態についての説明である。上述したように、画像データの複雑度の値に応じて、減色処理と画素数低減処理のいずれを行うかを判定することで、減色処理を行っても画質が劣化しない場合は減色処理を行うことでデータサイズを小さくし、減色処理を行うと画質が劣化してしまう場合は画素数低減処理を行うことで、画質を維持しつつデータサイズを小さくすることが可能となる。   The above is the description of the first embodiment of the present invention. As described above, by determining whether to perform the color reduction processing or the pixel number reduction processing in accordance with the value of the complexity of the image data, the color reduction processing is performed when the image quality does not deteriorate even if the color reduction processing is performed. In this case, if the data size is reduced and the image quality deteriorates when the color reduction processing is performed, the data size can be reduced while maintaining the image quality by performing the pixel number reduction processing.

〔第2実施形態:図7及び図8〕
次に、この発明の画像処理装置の第2実施形態である画像形成装置について説明する。
この第2実施形態は、基本的な構成は第1実施形態と同じであるが、絵柄画像データ圧縮部24が備える機能及び行う処理の手順に相違する部分がある。そこで、共通する部分に関する証明は省略し、相違点に関連する事項のみ説明する。また、第1実施形態と共通の又は対応する構成については、同じ符号を用いる。
[Second Embodiment: FIGS. 7 and 8]
Next, an image forming apparatus according to a second embodiment of the image processing apparatus of the present invention will be described.
The basic configuration of the second embodiment is the same as that of the first embodiment, but there are differences in the functions of the picture image data compression unit 24 and the procedure of the processing to be performed. Therefore, the proof about the common part is omitted, and only the matters related to the differences will be described. In addition, the same reference numerals are used for configurations common to or corresponding to the first embodiment.

図7に第2実施形態の画像形成装置10における絵柄画像データ圧縮部24の機能構成を示す。ここでは、第1実施形態と異なる部分について説明する。
絵柄画像データ圧縮部24は、図3において説明した機能に加え、ブロック化部207、減色データ圧縮部209、画素数低減データ圧縮部210及び合成部211を備える。また、図3の制御部205に代えて、制御部208を備える。
これらのうちブロック化部207は、画像データ分離部22から供給される絵柄画像データを所定の領域(ブロック)に分割する機能と、周波数算出部203に絵柄画像データを分割した領域の座標情報を渡す機能とを備える。なお、ブロック化部207が分割する領域のサイズは、予め設定しておくものとする。
FIG. 7 illustrates a functional configuration of the picture image data compression unit 24 in the image forming apparatus 10 according to the second embodiment. Here, portions different from the first embodiment will be described.
The picture image data compression unit 24 includes a blocking unit 207, a reduced color data compression unit 209, a pixel number reduction data compression unit 210, and a combining unit 211 in addition to the functions described in FIG. Further, a control unit 208 is provided instead of the control unit 205 in FIG.
Among these, the blocking unit 207 has a function of dividing the pattern image data supplied from the image data separation unit 22 into predetermined regions (blocks), and the frequency calculation unit 203 transmits the coordinate information of the region into which the pattern image data is divided. And a function to pass. The size of the area divided by the blocking unit 207 is set in advance.

周波数算出部203が備える機能は図3の例とほぼ同じである。但し、この実施形態では、ブロック化部207から取得した領域の座標情報に基づいて、領域毎に複雑度の値を算出する。
判定部204が備える機能も図3の例とほぼ同じである。但し、この実施形態では、複雑度の値と閾値T1との比較、および減色処理後の絵柄画像データ及び画素数低減処理後の絵柄画像データのいずれを圧縮するかの決定は、領域毎に行う。そして、判定部204は、各領域の座標情報と共にその領域についての決定内容を制御部208へ出力する。
The function of the frequency calculation unit 203 is almost the same as the example of FIG. However, in this embodiment, the value of the complexity is calculated for each area based on the coordinate information of the area acquired from the blocking unit 207.
The function of the determination unit 204 is almost the same as the example of FIG. However, in this embodiment, the comparison between the value of the complexity and the threshold value T1 and the determination of which of the picture image data after the color reduction processing and the picture image data after the pixel number reduction processing are to be compressed are performed for each area. . Then, the determination unit 204 outputs, to the control unit 208, the content of the determination regarding the region together with the coordinate information of each region.

制御部208は、判定部204から取得した決定に従って、減色処理後の絵柄画像データうち圧縮対象の領域を減色データ圧縮部209へ出力する機能と、画素数低減処理後の絵柄画像データのうち圧縮対象の領域を画素数低減データ圧縮部210へ出力する出力手段の機能を備える。
なおここでは、制御部208は、減色処理後の絵柄画像データのうち圧縮対象の領域以外の領域を白画素からなる白地領域に変換した上で、変換後の絵柄画像データ全体を減色データ圧縮部209へ出力して圧縮させる手法で、上記出力を行う。また、画素数低減処理後の絵柄画像データのうち圧縮対象の領域以外の領域を白画素からなる白地領域に変換した上で、変換後の絵柄画像データ全体を画素数低減データ圧縮部210へ出力して圧縮させる手法で、上記出力を行う。
Control unit 208, according to the determined acquired from the determination unit 204, and a function of outputting the area to be compressed to a subtractive color data compressing unit 209 of the picture image data after the color reduction process, among the picture image data after the reduction processing pixel number It has a function of an output unit that outputs a compression target area to the pixel number reduction data compression unit 210.
Note that, here, the control unit 208 converts an area other than the compression target area in the pattern image data after the color reduction processing into a white background area composed of white pixels, and then converts the entire converted pattern image data into a color reduction data compression unit. The above-mentioned output is performed by a method of outputting the data to the 209 and compressing it. Further, after converting the area other than the compression target area in the picture image data after the pixel number reduction processing into a white background area composed of white pixels, the entire converted picture image data is output to the pixel number reduction data compression unit 210. The above-mentioned output is performed by a method of performing compression.

減色データ圧縮部209は、制御部208から供給される減色処理後の絵柄画像データを、減色処理後のデータに適したアルゴリズムで圧縮する第1圧縮手段の機能を備える。
画素数低減データ圧縮部210は、制御部208から供給される画素数低減処理後の絵柄画像データを、画素数低減処理後のデータに適したアルゴリズムで圧縮する第2圧縮手段の機能を備える。
The color reduction data compression unit 209 has a function of a first compression unit that compresses the picture image data after the color reduction processing supplied from the control unit 208 by using an algorithm suitable for the data after the color reduction processing.
The pixel number reduction data compression unit 210 has a function of a second compression unit that compresses the picture image data after the pixel number reduction process supplied from the control unit 208 using an algorithm suitable for the data after the pixel number reduction process.

合成部211は、基本的には合成部25と同じ機能を備える。但し、合成部211では、減色データ圧縮部209及び画素数低減データ圧縮部210から、それぞれ圧縮後の絵柄画像データを取得し、2つの圧縮画像データを合成して出力用の圧縮画像データを生成する。
合成部211は、合成して得た圧縮画像データを合成部25(図2参照)に出力する。
以上が、第2実施形態における絵柄画像データ圧縮部24が備える機能である。なお、ここで言及していない機能は、図3を用いて説明をした機能と同じであるので説明を省略する。
The combining unit 211 basically has the same function as the combining unit 25. However, the synthesizing unit 211 obtains the compressed picture image data from the color-reduction data compression unit 209 and the pixel number reduction data compression unit 210, and combines the two pieces of compressed image data to generate the compressed image data for output. I do.
The combining unit 211 outputs the compressed image data obtained by combining to the combining unit 25 (see FIG. 2).
The above is the function of the picture image data compression unit 24 in the second embodiment. The functions not mentioned here are the same as the functions described with reference to FIG.

次に、図8に上述した判定部204が行う圧縮対象の決定処理の手順を示す。この処理は実際には、画像処理部113が備えるプロセッサが実行するものである。
図8の処理において、まず、判定部204は、周波数算出部203が領域毎に算出した絵柄画像データの複雑度の値を取得する(S121)。次に、判定部204は、未だ判定対象となっていない1の領域を判定対象とする(S122)。次に、判定対象の領域について取得した複雑度の値が所定の閾値T1よりも大きいか否かを判断し(S123)、T1より大きければ、画素値の変動度合いが大きいと判断し、判定対象の領域については、減色処理後の絵柄画像データを圧縮対象とすることを決定する(S124)。T1より大きくなければ、画素値の変動度合いが小さいと判断し、判定対象の領域については、画素数低減処理後のデータを圧縮対象とすることを決定する(S125)。
Next, FIG. 8 shows a procedure of a compression target determination process performed by the determination unit 204 described above. This processing is actually executed by the processor included in the image processing unit 113.
In the process of FIG. 8, first, the determination unit 204 acquires the value of the complexity of the picture image data calculated for each area by the frequency calculation unit 203 (S121). Next, the determination unit 204 sets one area that has not yet been determined as a determination target (S122). Next, it is determined whether or not the value of the complexity obtained for the area to be determined is greater than a predetermined threshold T1 (S123). If it is greater than T1, it is determined that the degree of change in the pixel value is large, and the determination target is determined. It is determined that the image data after the color reduction processing is to be compressed for the area (S124). If it is not greater than T1, it is determined that the degree of change in the pixel value is small, and for the determination target area, it is determined that the data after the pixel number reduction processing is to be compressed (S125).

ステップS124或いはS125の処理がすむと、判定部204は未だ判定対象となっていない領域があるか否かを判断し、ある場合(S126のYes)は、ステップS122に戻ってこの処理を繰り返す。一方、ない場合(S126のNo)は、全領域について、ステップS124或いはS125で決定した内容を制御部208へ通知し(S127)、この処理を終了する。以上が、判定部204が行う決定処理となる。 When the processing in step S124 or S125 is completed, the determination unit 204 determines whether there is an area that is not yet a determination target. If there is any area (Yes in S126), the processing returns to step S122 and repeats this processing. On the other hand, if not (No in S126), the contents determined in step S124 or S125 are notified to the control unit 208 for all areas (S127) , and this processing ends. The above is the determination process performed by the determination unit 204.

以上が、本発明の第2実施形態についての説明である。上述してきたように、領域毎に複雑度の値を算出し、減色処理と画素数低減処理のどちらを適用すべきかを判定することで、領域毎により適切に画質を維持しつつ、データサイズを小さくすることが可能となる。   The above is the description of the second embodiment of the present invention. As described above, by calculating the complexity value for each area and determining whether to apply the color reduction processing or the pixel number reduction processing, the data size can be reduced while maintaining the image quality more appropriately for each area. It is possible to reduce the size.

〔第3実施形態:図9及び図10〕
次に、この発明の画像処理装置の第3実施形態である画像形成装置について説明する。
この第3実施形態も、基本的な構成は第2実施形態と同じであるが、絵柄画像データ圧縮部24が備える機能及び行う処理の手順に相違する部分がある。そこで、共通する部分に関する証明は省略し、相違点に関連する事項のみ説明する。また、第2実施形態と共通の又は対応する構成については、同じ符号を用いる。
[Third Embodiment: FIGS. 9 and 10]
Next, an image forming apparatus according to a third embodiment of the image processing apparatus of the present invention will be described.
Although the third embodiment has the same basic configuration as the second embodiment, there are some differences in the functions of the picture image data compression unit 24 and the procedure of the processing to be performed. Therefore, the proof about the common part is omitted, and only the matters related to the differences will be described. In addition, the same reference numerals are used for configurations common to or corresponding to the second embodiment.

まず、図9に、第3実施形態の画像形成装置10における絵柄画像データ圧縮部24の機能構成を示す。
絵柄画像データ圧縮部24は、図7で説明した機能に加え、周波数置換部212を備える。周波数置換部212は、周波数算出部203が絵柄画像データの領域毎に算出した複雑度の値が所定の閾値を超える領域の数をカウントする。そして、そのカウントした数に基づいて、周波数算出部203が算出した各領域の複雑度の値を置換し、置換後の各領域の複雑度の値を判定部204へ通知する機能を備える。
First, FIG. 9 illustrates a functional configuration of the picture image data compression unit 24 in the image forming apparatus 10 according to the third embodiment.
The picture image data compression unit 24 includes a frequency replacement unit 212 in addition to the functions described in FIG. The frequency replacement unit 212 counts the number of regions where the value of the complexity calculated for each region of the pattern image data by the frequency calculation unit 203 exceeds a predetermined threshold. Then, the function of replacing the complexity value of each region calculated by the frequency calculation unit 203 based on the counted number and notifying the determination unit 204 of the complexity value of each region after the replacement is provided.

ここで、図10に、周波数置換部212が行う領域毎の複雑度の置換処理の手順を示す。この処理は、画像処理部113が備えるプロセッサが実行するものである。
図10の処理において、まず、周波数置換部212は、周波数算出部203が領域毎に算出した絵柄画像データの複雑度の値を取得し(S141)、領域毎の複雑度の値について、閾値T1よりも大きい領域の数をカウントする(S142)。次に、周波数置換部212は、ステップS142でカウントした数が閾値T2よりも大きいか否かを判断する(S143)。
Here, FIG. 10 shows a procedure of the complexity replacement process for each region performed by the frequency replacement unit 212. This processing is executed by a processor included in the image processing unit 113.
In the process of FIG. 10, first, the frequency replacement unit 212 obtains the complexity value of the picture image data calculated for each region by the frequency calculation unit 203 (S141), and sets the threshold value T1 for the complexity value for each region. The number of areas larger than is counted (S142). Next, the frequency replacement unit 212 determines whether or not the number counted in step S142 is larger than the threshold T2 (S143).

ステップS143でYesの場合、ステップS142でカウントした数が閾値T3よりも小さいか否かを判断する(S144)。ここでYESの場合は、全領域について、周波数算出部203が算出した領域毎の複雑度の値をそのまま判定部204に通知する。一方、ステップS144でNoの場合は、全領域の複雑度の値を閾値T1よりも大きい値L1に置き換え、判定部204に全領域の複雑度の値として、値L1を通知する(S146)。   If Yes in step S143, it is determined whether the number counted in step S142 is smaller than a threshold value T3 (S144). In the case of YES here, the value of the complexity for each region calculated by the frequency calculation unit 203 for the entire region is notified to the determination unit 204 as it is. On the other hand, if No in step S144, the value of the complexity of all regions is replaced with a value L1 larger than the threshold value T1, and the value L1 is notified to the determination unit 204 as the value of complexity of all regions (S146).

また、ステップS143でNoの場合は、全領域の複雑度の値を閾値T1よりも小さい値L2に置き換え、判定部204に全領域の複雑度の値として、値L2を通知する(S147)。ステップS145、S146或いはS147のいずれかの通知を判定部204に送信すると、周波数置換部212の行う処理は終了となる。
なお、複雑度の値L1は、判定部204において図8の処理で高周波成分が多いと判定される(ステップS123がYesとなる)値であれば、どのように設定してもよい。また、複雑度の値L2は同じく低周波成分が多いと判定される(ステップS123がNoとなる)値であれば、どのように設定してもよい。
If No in step S143, the value of the complexity of the entire area is replaced with a value L2 smaller than the threshold T1, and the determination unit 204 is notified of the value L2 as the value of the complexity of the entire area (S147). When the notification of step S145, S146, or S147 is transmitted to the determination unit 204, the processing performed by the frequency replacement unit 212 ends.
Note that the complexity value L1 may be set to any value as long as the determination unit 204 determines that the high frequency component is large in the processing in FIG. 8 (Yes in step S123). Further, any value may be set as the complexity value L2 as long as the value is determined to have a large number of low frequency components (No in step S123).

以上の周波数置換部212は、要するに、複雑度の値が閾値T1を超える領域が多い場合は、全領域について複雑度の値が閾値T1を超えるものとし、複雑度の値を置き換えて判定部204に出力するものである。また、逆に閾値T1を超えない領域が多い場合は、全領域について複雑度の値が閾値T1を超えないものとして、複雑度の値を置き換えて判定部204に出力するものである。また、それらの中間の場合については、周波数算出部203が算出した複雑度の値をそのまま判定部204に出力するものである。   In short, when there are many regions where the complexity value exceeds the threshold value T1, the frequency replacement unit 212 determines that the complexity value exceeds the threshold value T1 for all regions, and replaces the complexity value with the determination unit 204. Is output to Conversely, when there are many regions that do not exceed the threshold value T1, the complexity value is determined not to exceed the threshold value T1 for all regions, and the complexity value is replaced and output to the determination unit 204. In addition, in the intermediate case between them, the value of the complexity calculated by the frequency calculation unit 203 is output to the determination unit 204 as it is.

ここで、複雑度の値が閾値T1を超える領域の絵柄画像データには、図5において説明した通り、高周波成分が多く含まれると考えられる。一方、閾値T1を越えない領域の絵柄画像データは、低周波成分が多く含まれると考えられる。そして、仮に、絵柄画像データの略全領域が高周波成分を多く含む場合は、最初から全ての領域を高周波成分を多く含むデータであるとして減色処理後の画像データを圧縮する方が処理効率がよい。逆に、絵柄画像データの略全領域が高周波成分を多く含まない場合は、最初から全ての領域を高周波成分を多く含まないデータであるとして画素数低減処理後の画像データを圧縮する方が処理効率がよい。 Here, it is considered that the pattern image data of the area where the value of the complexity exceeds the threshold value T1 contains a large amount of high-frequency components as described with reference to FIG. On the other hand, it is considered that the picture image data of the area not exceeding the threshold value T1 contains a lot of low frequency components. If almost the entire area of the picture image data contains many high-frequency components, it is more efficient to compress the image data after the color reduction processing assuming that all the areas are data containing many high-frequency components from the beginning. . Conversely, if almost the entire area of the picture image data does not contain many high-frequency components, it is better to compress the image data after the pixel number reduction process from the beginning assuming that all the areas do not contain many high-frequency components. Efficient.

このため、第3実施形態においては、上述した周波数置換部212を設け、複雑度の値が閾値T1を超える領域の数が相当多い(T2より大きい)か又は少ない(T3より小さい)場合に、領域毎の複雑度の値を一律の値に置き換えて判定部204へ供給するようにしたものである。このことにより、判定部204に、全領域について一律の判断を行わせることができる。   For this reason, in the third embodiment, the above-described frequency replacement unit 212 is provided, and when the number of regions where the complexity value exceeds the threshold value T1 is considerably large (greater than T2) or small (less than T3), The value of the complexity for each area is replaced with a uniform value and supplied to the determination unit 204. This allows the determination unit 204 to make a uniform determination for all regions.

その他の各部の機能は基本的には、第2実施形態の絵柄画像データ圧縮部24で説明した通りである。但し、制御部213は、判定部204から全領域について減色処理後の絵柄画像データを圧縮対象とする決定を取得した場合は、画素数低減データ圧縮部210に、画素数低減処理後のデータについては圧縮処理は行わせないようにする。一方、全領域について画素数低減処理後の絵柄データを圧縮対象とすべきとの決定を取得した場合は、減色データ圧縮部209に、減色処理後のデータについては圧縮処理を行わせないようにする。
このようにすることで、不要な圧縮処理を行わずにすみ、第2実施形態の効果を概ね維持しつつ、さらに、全体として効率的な圧縮処理を行うことができるという効果が得られる。
Other functions of each unit are basically the same as those described in the picture image data compression unit 24 of the second embodiment. However, if the control unit 213 obtains from the determination unit 204 a decision to compress the pattern image data after the color reduction processing for the entire area as the compression target, the control unit 213 instructs the pixel number reduction data compression unit 210 to output the data after the pixel number reduction processing. Does not perform compression processing. On the other hand, when it is determined that the picture data after the pixel number reduction processing is to be compressed for the entire area, the reduced color data compression unit 209 is configured not to perform the compression processing on the data after the reduced color processing. I do.
By doing so, unnecessary compression processing is not performed, and an effect is obtained in which the effect of the second embodiment is substantially maintained, and furthermore, efficient compression processing can be performed as a whole.

〔第4実施形態:図11及び図12〕
次に、この発明の画像処理装置の第4実施形態である画像形成装置について説明する。
この第4実施形態も、基本的な構成は第2実施形態と同じであるが、絵柄画像データ圧縮部24が備える機能及び行う処理の手順に相違する部分がある。そこで、共通する部分に関する説明は省略し、相違点に関する事項のみ説明する。また、第1乃至第3実施形態と共通の又は対応する構成については、同じ符号を持ちいる。
[Fourth Embodiment: FIGS. 11 and 12]
Next, an image forming apparatus according to a fourth embodiment of the present invention will be described.
The fourth embodiment also has the same basic configuration as the second embodiment, but differs in the functions of the picture image data compression unit 24 and the procedure of the processing to be performed. Therefore, description of common parts is omitted, and only matters relating to differences are described. Further, components common or corresponding to the first to third embodiments have the same reference numerals.

まず、図11に第4実施形態の画像形成装置10における絵柄画像データ圧縮部24の機能構成を示す。
絵柄画像データ圧縮部24は、図7で説明した機能に加え、色数カウント部214、画素数低減処理部215を備える。また、図7の判定部204、制御部208に代えて、判定部216及び制御部217を備える。
これらのうち色数カウント部214は、処理対象の絵柄画像データの色数を数え、その色数を判定部216に通知する機能を備える。
First, FIG. 11 shows a functional configuration of the picture image data compression unit 24 in the image forming apparatus 10 according to the fourth embodiment.
The picture image data compression unit 24 includes a color number counting unit 214 and a pixel number reduction processing unit 215 in addition to the functions described in FIG. 7 includes a determination unit 216 and a control unit 217 instead of the determination unit 204 and the control unit 208 in FIG.
Among these, the color number counting unit 214 has a function of counting the number of colors of the pattern image data to be processed and notifying the determination unit 216 of the number of colors.

画素数低減処理部215は、画素数低減処理部202と同様な画素数低減処理を、減色処理部201による減色処理後の絵柄画像データに対して行う機能を備える。これに伴い、減色処理部201は、処理後の絵柄画像データを制御部217だけでなく画素数低減処理部215へ出力する機能も備え、減色処理部201と画素数低減処理部215とが第3画像処理手段を構成する。なお、第3画像処理手段は、画素数低減処理を行った後で減色処理を行う構成であってもよい。   The pixel number reduction processing unit 215 has a function of performing the same pixel number reduction processing as the pixel number reduction processing unit 202 on the pattern image data after the color reduction processing by the color reduction processing unit 201. Accordingly, the color reduction processing unit 201 also has a function of outputting the processed pattern image data to the pixel number reduction processing unit 215 as well as the control unit 217, and the color reduction processing unit 201 and the pixel number reduction processing unit 215 This constitutes three image processing means. Note that the third image processing means may perform a color reduction process after performing the pixel number reduction process.

次に、判定部216が行う判定の機能で図7の判定部204と相違する点について説明する。
判定部216では、色数カウント部214から取得した色数が予め設定した閾値T4よりも大きいか否かの判定と、周波数算出部203から取得した領域毎の複雑度の値が所定の閾値T1よりも大きいか否かの判定を行う。そして、それらの判定結果に基づき、減色処理部201が出力する減色処理後の絵柄画像データ、画素数低減処理部202が出力する画素数低減処理後の絵柄画像データ、及び画素数低減処理部215が出力する、減色処理と画素数低減処理の双方を行った絵柄画像データ、のいずれを圧縮対象とするかを決定する。判定部216が、これらの判定及び決定を、ブロック化部207が分割した領域毎に行う点は、図7の場合と同様である。
Next, differences between the determination unit 216 and the determination unit 204 of FIG. 7 in the determination function performed by the determination unit 216 will be described.
The determination unit 216 determines whether or not the number of colors acquired from the number-of-colors counting unit 214 is greater than a preset threshold T4, and determines whether the complexity value for each region acquired from the frequency calculation unit 203 is a predetermined threshold T1. It is determined whether it is greater than or equal to. Then, based on the determination results, the picture image data after the color reduction processing output by the color reduction processing unit 201, the picture image data after the pixel number reduction processing output by the pixel number reduction processing unit 202, and the pixel number reduction processing unit 215 Is determined, which of the pattern image data that has been subjected to both the color reduction processing and the pixel number reduction processing is to be compressed. The determination unit 216 performs these determinations and determinations for each area divided by the blocking unit 207, as in the case of FIG.

ここで判定部216が行う決定は以下の4つのいずれかとなる。(1)色数が閾値T4よりも大きく、処理対象の領域の複雑度の値が閾値T1よりも大きい場合は、減色処理後の絵柄画像データを圧縮対象とする。(2)色数が閾値T4よりも大きく、処理対象の領域の複雑度の値が閾値T1以下である場合は、画素数低減処理後の絵柄画像データを圧縮対象とする。(3)色数が閾値T4以下であり、処理対象の領域の複雑度の値が閾値T1よりも大きい場合は、減色処理後の絵柄画像データを圧縮対象とする。(4)色数が閾値T4以下であり、処理対象の領域の複雑度の値が閾値T1よりも小さい場合は、減色処理と画素数低減処理の双方を行った絵柄画像データを圧縮対象とする。   Here, the determination made by the determination unit 216 is one of the following four. (1) If the number of colors is larger than the threshold T4 and the value of the complexity of the area to be processed is larger than the threshold T1, the picture image data after the color reduction processing is set as the compression target. (2) If the number of colors is larger than the threshold T4 and the value of the complexity of the area to be processed is equal to or smaller than the threshold T1, the picture image data after the pixel number reduction processing is set as the compression target. (3) When the number of colors is equal to or smaller than the threshold T4 and the value of the complexity of the area to be processed is larger than the threshold T1, the picture image data after the color reduction processing is to be compressed. (4) When the number of colors is equal to or smaller than the threshold T4 and the value of the complexity of the processing target area is smaller than the threshold T1, the image data subjected to both the color reduction processing and the pixel number reduction processing is set as the compression target. .

制御部217は、判定部216から取得した決定に従って、減色データ圧縮部209及び画素数低減データ圧縮部210に圧縮対象の画像データを出力する出力手段の機能を備える。
まず、色数が閾値T4よりも大きい場合、判定部が行う決定は全ての領域について上記(1)及び(2)のいずれかとなる。この場合、制御部217は、減色処理部201による減色処理後の絵柄画像データうち圧縮対象の領域を減色データ圧縮部209へ出力し、画素数低減処理部215による画素数低減処理後の絵柄画像データうち圧縮対象の領域を画素数低減データ圧縮部210へ出力する。
The control unit 217 has a function of an output unit that outputs image data to be compressed to the reduced color data compression unit 209 and the reduced pixel number data compression unit 210 according to the determination acquired from the determination unit 216.
First, when the number of colors is larger than the threshold value T4, the determination performed by the determination unit is any of the above (1) and (2) for all the regions. In this case, the control unit 217 outputs the compression target area in the pattern image data after the color reduction processing by the color reduction processing unit 201 to the color reduction data compression unit 209, and the pattern after the pixel number reduction processing by the pixel number reduction processing unit 215. The compression target area of the image data is output to the pixel number reduction data compression section 210.

また、色数が閾値T4よりも大きくない場合、判定部が行う決定は全ての領域について上記(3)及び(4)のいずれかとなる。この場合、制御部217は、画素数低減処理部215による画素数低減処理後の絵柄画像データうち圧縮対象の領域を画素数低減データ圧縮部210へ出力し、減色処理部201による減色処理後の、減色処理と画素数低減処理の双方を行った絵柄画像データうち圧縮対象の領域を減色データ圧縮部209へ出力する。 When the number of colors is not larger than the threshold value T4, the determination made by the determination unit is any of the above (3) and (4) for all the regions. In this case, the control unit 217 outputs to the number of pixels reduces the data compression unit 210 the region to be compressed out of the picture image data after the pixel count reduction process by the pixel number reduction processing unit 215, after the color reduction processing by the subtractive color processing unit 201 The compression target area of the picture image data that has been subjected to both the color reduction processing and the pixel number reduction processing is output to the color reduction data compression unit 209.

この場合、減色処理部201による処理後の画像データに代えて、画素数低減処理部215による処理後の画像データを出力することになる。また、画素数低減処理部215による処理後の画像データは、減色処理後の画像データに適したアルゴリズムで圧縮することになる。
なお、いずれの場合も、各処理後の絵柄画像データのうち圧縮対象の領域以外の領域を白画素からなる白地領域に変換した上で、変換後の絵柄画像データ全体を該当の圧縮部へ出力する点は、図7の制御部208の場合と同様である。
In this case, the image data processed by the pixel number reduction processing unit 215 is output instead of the image data processed by the color reduction processing unit 201. The image data processed by the pixel number reduction processing unit 215 is compressed by an algorithm suitable for the image data after the color reduction processing.
In any case, after converting the area other than the area to be compressed in the processed pattern image data into a white background area composed of white pixels, the converted pattern image data is output to the corresponding compression unit. This is similar to the case of the control unit 208 in FIG.

次に、図12に上述した判定部216が行う圧縮対象データの決定処理の手順を示す。この処理は、実際には画像処理部113が備えるプロセッサが実行するものである。
判定部216は、色数カウント部214から絵柄画像データの色数を取得し、周波数算出部203から領域毎の複雑度の値を取得すると(S161)、処理対象の絵柄画像データの全領域の中から、未だ判定対象となっていない1の領域を判定対象とする(S162)。
次に、判定部216は、判定対象の絵柄画像データの色数が閾値T4よりも大きいか否かを判定する(S163)。ここでYesであれば、次に判定対象の領域の複雑度の値が閾値T1よりも大きいかを判定する(S164)。ここでもYesであれば、判定部216は減色処理後の絵柄画像データを圧縮することを決定する(S165)。
一方、ステップS164でNoの場合、判定部216は画素数低減処理後の絵柄画像データを圧縮することを決定する(S166)。
Next, FIG. 12 shows a procedure of the compression target data determination process performed by the determination unit 216 described above. This processing is actually executed by the processor included in the image processing unit 113.
The determination unit 216 obtains the number of colors of the pattern image data from the color count unit 214 and obtains the complexity value for each region from the frequency calculation unit 203 (S161). From among them, one area that has not yet been determined is determined as a determination target (S162).
Next, the determination unit 216 determines whether or not the number of colors of the pattern image data to be determined is larger than the threshold value T4 (S163). If “Yes” here, it is next determined whether or not the value of the complexity of the determination target area is larger than the threshold value T1 (S164). Here also, if Yes, the determination unit 216 determines to compress the picture image data after the color reduction processing (S165).
On the other hand, if No in step S164, the determination unit 216 determines to compress the picture image data after the pixel number reduction processing (S166).

次に、ステップS163でNoと判定した場合、判定部216は、判定対象の領域の複雑度の値が閾値T1よりも大きいか否かを判定する(S167)。ここでYesであれば、判定部216は減色処理後の絵柄画像データを圧縮することを決定する(S168)。一方、ステップS167でNoの場合、判定部216は減色処理及び画素数低減処理双方を行った絵柄画像データを圧縮することを決定する(S169)。
ステップS163乃至S169の処理を行った後は、判定部216は、未だ判定対象となっていない領域があるか否かを判定し(S170)、YesであればステップS162に戻ってこの処理を繰り返す。一方、Noであれば、ステップS165、S166、S168及びS169の決定を制御部217に通知し(S171)、この処理は終了となる。
Next, when it is determined as No in step S163, the determination unit 216 determines whether the value of the complexity of the determination target area is larger than the threshold value T1 (S167). If “Yes” here, the determination unit 216 determines to compress the picture image data after the color reduction processing (S168). On the other hand, if No in step S167, the determination unit 216 determines to compress the picture image data that has undergone both the color reduction processing and the pixel number reduction processing (S169).
After performing the processing of steps S163 to S169, the determination unit 216 determines whether there is an area that is not yet a determination target (S170). If Yes, the processing returns to step S162 and repeats this processing. . On the other hand, if No, the control unit 217 is notified of the determination in steps S165, S166, S168, and S169 (S171), and the process ends.

このように、色数が少ない絵柄画像データの圧縮を行う場合、複雑度の値が小さい領域については、減色処理と画素数低減処理の両方を行えば、その領域のデータサイズ更に小さくすることができ、絵柄画像データ全体のデータサイズも少なくすることができる。 As described above, when compressing image data having a small number of colors, for an area having a small complexity value, if both the color reduction processing and the pixel number reduction processing are performed, the data size of the area can be further reduced. Therefore, the data size of the entire picture image data can be reduced.

〔第5実施形態:図13及び図14〕
次に、この発明の画像処理装置の第5実施形態である画像形成装置について説明する。
この第5実施形態は基本的な構成は第1実施形態と同じであるが、絵柄画像データ圧縮部24が備える機能及び行う処理の手順に相違する部分がある。そこで、共通する部分に関する説明は省略し、相違点に関する事項のみ説明する。また、第1乃至第4実施形態と共通の又は対応する構成については、同じ符号を用いる。
[Fifth Embodiment: FIGS. 13 and 14]
Next, an image forming apparatus according to a fifth embodiment of the present invention will be described.
Although the fifth embodiment has the same basic configuration as the first embodiment, there are differences in the functions of the picture image data compression unit 24 and the procedure of the processing to be performed. Therefore, description of common parts is omitted, and only matters relating to differences are described. In addition, the same reference numerals are used for configurations common to or corresponding to the first to fourth embodiments.

まず、図13に第5実施形態の画像形成装置10における絵柄画像データ圧縮部24の機能構成を示す。絵柄画像データ圧縮部24は、周波数算出部203及び判定部204に代えて、解像度取得部218及び判定部219を備える点が、図3に示した構成と異なる。
これらのうち解像度取得部218は、処理対象の絵柄画像データの解像度を取得する機能を備える。解像度の情報が絵柄画像データにプロパティ等して付加されていればその情報を取り出せばよいし、画素数と印刷や表示のサイズとから計算で求めてもよい。その他、任意の手法で解像度を取得すればよい。
First, FIG. 13 shows a functional configuration of the picture image data compression unit 24 in the image forming apparatus 10 according to the fifth embodiment. The design image data compression unit 24 differs from the configuration shown in FIG. 3 in that a resolution acquisition unit 218 and a determination unit 219 are provided instead of the frequency calculation unit 203 and the determination unit 204.
Among these, the resolution obtaining unit 218 has a function of obtaining the resolution of the pattern image data to be processed. If the resolution information is added to the picture image data as a property or the like, the information may be extracted, or may be calculated from the number of pixels and the size of printing or display. In addition, the resolution may be obtained by an arbitrary method.

また、判定部219は、解像度取得部218が取得した解像度が所定の閾値T5を超えたか否かで、当該絵柄画像データが高解像度であるか低解像度であるかを判定する機能を備える。閾値T5としては、任意の値を予め定めておく。そして、判定部219は、この判定結果に基づき、低解像度である場合は減色処理後の絵柄画像データを圧縮対象とすることを決定し、高解像度である場合は画素数低減処理後の絵柄画像データを圧縮対象とすることを決定する決定手段の機能も備える。
制御部205の機能は、判定部219の決定に従って出力を行う点以外は、図3の制御部205と同様である。
以上が、第5実施形態における第1乃至第4実施形態と相違する機能である。
The determining unit 219 has a function of determining whether the picture image data is high-resolution or low-resolution based on whether the resolution acquired by the resolution acquiring unit 218 exceeds a predetermined threshold T5. An arbitrary value is set in advance as the threshold T5. Then, based on the determination result, the determination unit 219 determines that the pattern image data after the color reduction processing is to be compressed when the resolution is low , and the pattern image after the pixel number reduction processing when the resolution is high. It also has a function of a determination unit that determines that data is to be compressed.
Function of the control unit 205, except for performing therefore output to the determination of the determination unit 219 are similar to those of the control unit 205 of FIG.
The above is the function of the fifth embodiment that is different from the first to fourth embodiments.

次に、図14に、上述した判定部219が行う圧縮対象データの決定処理の手順を示す。この処理は、実際には画像処理部113が備えるプロセッサが実行するものである。
図14の処理においてまず、判定部219は、解像度取得部218から絵柄画像データの解像度を取得する(S181)。次に、取得した解像度が閾値T5よりも大きいか否かを判定し(S182)、大きい場合は、画素数低減処理後の絵柄画像データを圧縮処理対象とすることを決定する(S183)。大きくない場合は、減色処理後の絵柄画像データを圧縮することを決定する(S184)。最後に、判定部219はステップS183或いはS184で行った決定を制御部205に出力し(S185)、図14の処理を終了する。
Next, FIG. 14 shows a procedure of the compression target data determination process performed by the determination unit 219 described above. This processing is actually executed by the processor included in the image processing unit 113.
In the process of FIG. 14, first, the determination unit 219 acquires the resolution of the picture image data from the resolution acquisition unit 218 (S181). Next, it is determined whether the acquired resolution is greater than the threshold T5 (S182), if it is greater, determines that the compression processing target picture image data after the pixel count reduction processing (S183). If not, it is determined that the picture image data after the color reduction processing is compressed (S184). Finally, the determination unit 219 outputs the determination made in step S183 or S184 to the control unit 205 (S185), and ends the processing in FIG.

画像データは、解像度が高い場合は、画素数を低減しても画質を維持することは可能である。一方、解像度が低い場合は、画素数を低減してしまうと画質が劣化してしまう。そこで、絵柄画像データについて解像度が高いか否かを判定して、減色処理と画素数低減処理のいずれを行うかを決定する。これにより、解像度の高低に関わらず、画質を維持しつつ、データサイズを小さくすることが可能となる。   When the resolution of the image data is high, it is possible to maintain the image quality even if the number of pixels is reduced. On the other hand, when the resolution is low, the image quality is degraded if the number of pixels is reduced. Therefore, it is determined whether or not the resolution of the picture image data is high, and it is determined whether to perform the color reduction processing or the pixel number reduction processing. This makes it possible to reduce the data size while maintaining the image quality regardless of the level of the resolution.

なお、絵柄画像データの解像度が主走査方向と副走査方向で異なる場合は、そのそれぞれについて解像度を取得し、画素数低減処理部202における画素数低減の比率を、各方向の解像度に従って独立に定めてもよい。このとき、解像度が高いほど、画素数を大きく低減させるとよい。   When the resolution of the picture image data is different in the main scanning direction and the sub-scanning direction, the resolution is obtained for each of them, and the ratio of the pixel number reduction in the pixel number reduction processing unit 202 is independently determined according to the resolution in each direction. You may. At this time, the higher the resolution, the more the number of pixels should be greatly reduced.

〔第6実施形態:図15及び図16〕
次に、この発明の画像処理装置の第6実施形態である画像形成装置について説明する。 この第6実施形態も基本的な構成は第1実施形態と同じであるが、絵柄画像データ圧縮部24が備える機能及び行う処理の手順に相違する部分がある。そこで、共通する部分に関する説明は省略し、相違点に関する事項のみ説明する。また、第1乃至第4実施形態と共通の又は対応する構成については、同じ符号を用いる。
[Sixth embodiment: FIGS. 15 and 16]
Next, an image forming apparatus according to a sixth embodiment of the present invention will be described. The basic configuration of the sixth embodiment is the same as that of the first embodiment, but there are differences in the functions of the picture image data compression unit 24 and the procedure of the processing to be performed. Therefore, description of common parts is omitted, and only matters relating to differences are described. In addition, the same reference numerals are used for configurations common to or corresponding to the first to fourth embodiments.

まず、図15に第6実施形態の画像形成装置10における絵柄画像データ圧縮部24の機能構成を示す。
図15に示す絵柄画像データ圧縮部24は、周波数算出部221、判定部222、制御部223、画素数低減処理部224及び圧縮部225を備える。しかし、減色処理部は備えない。
First, FIG. 15 illustrates a functional configuration of the picture image data compression unit 24 in the image forming apparatus 10 according to the sixth embodiment.
The picture image data compression unit 24 illustrated in FIG. 15 includes a frequency calculation unit 221, a determination unit 222, a control unit 223, a pixel number reduction processing unit 224, and a compression unit 225. However, no color reduction processing unit is provided.

これらのうち、周波数算出部221は、複雑度の値を主走査方向と副走査方向それぞれについて求める機能を備える。例えば、主走査方向について求めた8×1のDCT係数のうち、高周波側の特定の係数を、主走査方向の複雑度として求め、副走査方向について求めた1×8のDCT係数のうち、高周波側の特定の係数を、副走査方向の複雑度として求めることが考えられる。   Among them, the frequency calculation unit 221 has a function of obtaining a complexity value in each of the main scanning direction and the sub-scanning direction. For example, of the 8 × 1 DCT coefficients obtained in the main scanning direction, a specific coefficient on the high frequency side is obtained as the complexity in the main scanning direction, and among the 1 × 8 DCT coefficients obtained in the sub-scanning direction, It is conceivable to determine the specific coefficient on the side as the complexity in the sub-scanning direction.

判定部222は、主走査方向成分の複雑度の値が所定の閾値T6よりも大きいか否か、副走査方向成分の複雑度の値が所定の閾値T7よりも大きいか否かをを判定し、その判定結果に基づいて、主副走査方向毎に、画素数低減処理を行うか否かを決定する決定手段の機能を備える。
判定部222は、主走査方向の複雑度の値がT6よりも大きければ、主走査方向の画素値の変動度合いが大きいと判断し、主走査方向の画素数低減処理を行わないことを決定する。逆に小さければ主走査方向の画素数低減処理を行うことを決定する。副走査方向についても、同様に複雑度の値がT7よりも大きいか否かに基づき、副走査方向の画素数低減処理を行うか否かを決定する。
The determination unit 222 determines whether or not the value of the complexity of the main scanning direction component is larger than a predetermined threshold T6, and whether or not the value of the complexity of the sub-scanning direction component is larger than a predetermined threshold T7. And a function of a determination unit for determining whether or not to perform the pixel number reduction process for each of the main and sub scanning directions based on the determination result.
If the value of the complexity in the main scanning direction is larger than T6, the determination unit 222 determines that the degree of fluctuation of the pixel value in the main scanning direction is large, and determines not to perform the pixel number reduction process in the main scanning direction. . On the other hand, if it is smaller, it is determined to perform the pixel number reduction process in the main scanning direction. Also in the sub-scanning direction, whether to perform the pixel number reduction process in the sub-scanning direction is determined based on whether or not the value of the complexity is larger than T7.

制御部223は、判定部222が行った決定に従って、画素数低減処理部224に対し、主走査方向と副走査方向の各々について画素数低減処理を行うか否かの指示を出力する機能を備える。
画素数低減処理部224は、制御部223からの指示に従って、入力する絵柄画像データに対して画素数低減処理を行う機能を備える。なお、制御部223からの指示内容が主副走査方向のいずれに対しても画素数低減処理を行わないというものである場合は、画素数低減処理部224は画素数低減処理を処理を行わずに絵柄画像データを圧縮部225へ渡す。
圧縮部225は、画素数低減処理部224から取得した絵柄画像データを圧縮対象として、圧縮処理を行う機能を備える。
The control unit 223 has a function of outputting an instruction to the pixel number reduction processing unit 224 as to whether or not to perform the pixel number reduction process in each of the main scanning direction and the sub-scanning direction according to the determination made by the determination unit 222. .
The pixel number reduction processing unit 224 has a function of performing a pixel number reduction process on input picture image data in accordance with an instruction from the control unit 223. When the instruction content from the control unit 223 indicates that the pixel number reduction processing is not performed in any of the main and sub scanning directions, the pixel number reduction processing unit 224 does not perform the pixel number reduction processing. The image data is passed to the compression unit 225.
The compression unit 225 has a function of performing a compression process on the picture image data acquired from the pixel number reduction processing unit 224 as a compression target.

次に、図16に上述した判定部222が行う圧縮対象データの決定処理の手順を示す。この処理は、実際には画像処理部113が備えるプロセッサが実行するものである。
図16の処理において、判定部222はまず、周波数算出部221から、入力された絵柄画像データの主走査方向の複雑度の値と副走査方向の複雑度の値とを取得する(S201)。次に、判定部222は、取得した主走査方向の複雑度の値が閾値T6よりも大きいか否かを判定し(S202)、大きければ、主走査方向の画素数低減処理を行わないことを決定する(S203)。大きくなければ、主走査方向の画素数低減処理を行うことを決定する(S204)。
Next, FIG. 16 shows a procedure of the compression target data determination process performed by the determination unit 222 described above. This processing is actually executed by the processor included in the image processing unit 113.
In the processing of FIG. 16, first, the determination unit 222 acquires the complexity value in the main scanning direction and the complexity value in the sub-scanning direction of the input picture image data from the frequency calculation unit 221 (S201). Next, the determination unit 222 determines whether or not the acquired value of the complexity in the main scanning direction is larger than the threshold value T6 (S202). If the value is larger, it is determined that the process of reducing the number of pixels in the main scanning direction is not performed. It is determined (S203). If it is not larger , it is determined to perform the pixel number reduction process in the main scanning direction (S204).

次に、判定部222は、ステップS201で取得した副走査方向の複雑度の値が閾値T7よりも大きいかを判定し(S205)、大きければ、副走査方向の画素数低減処理を行わないことを決定する(S206)。大きくなければ、副走査方向の画素数低減処理を行うことを決定する(S207)。
最後に、判定部222は、ステップS202乃至207の処理で決定した判定結果を制御部223に通知し(S208)、この処理は終了する。
このように絵柄画像データの複雑度の度合いを主走査方向と副走査方向に分けて判定することで、主副走査方向の複雑度の度合いが異なる場合に、それぞれにあった画素数低減処理を行うことで、適切にデータサイズを小さくすることが可能となる。
Next, the determination unit 222 determines whether the value of the complexity in the sub-scanning direction acquired in step S201 is larger than the threshold value T7 (S205). If the value is larger, the pixel number reduction process in the sub-scanning direction is not performed. Is determined (S206). If it is not larger , it is determined to perform the pixel number reduction process in the sub-scanning direction (S207).
Finally, the determination unit 222 notifies the control unit 223 of the determination result determined in the processing of steps S202 to S207 (S208), and this processing ends.
In this way, by determining the degree of complexity of the picture image data separately in the main scanning direction and the sub-scanning direction, when the degree of complexity in the main and sub-scanning directions is different, the pixel number reduction processing corresponding to each is performed. By doing so, it is possible to appropriately reduce the data size.

なお、図15及び図16を用いて説明した処理では、閾値は主走査方向、副走査方向のいずれに対しても1つであるが、閾値は1つである必要はなく、2以上の閾値を設定し、画素数低減化率を複雑度の値に応じて変えるような処理としてもよい。
例えば、表1に示すように、主走査方向の複雑度Xと、2つの異なる閾値Tx1,Tx2との比較結果に応じて、主走査方向の画素数低減化率を多段階に設定するようにしてもよい。表2には、副走査方向の複雑度Yと2つの異なる閾値Ty1,Ty2との比較結果に応じて、副走査方向の画素数低減化率を多段階に設定する例を示した。
In the processing described with reference to FIGS. 15 and 16, the number of thresholds is one in each of the main scanning direction and the sub-scanning direction. However, the number of thresholds does not need to be one. May be set, and the pixel number reduction rate may be changed according to the value of the complexity.
For example, as shown in Table 1, according to the comparison result between the complexity X in the main scanning direction and two different thresholds Tx1 and Tx2, the pixel number reduction rate in the main scanning direction is set in multiple stages. You may. Table 2 shows an example in which the number of reductions in the number of pixels in the sub-scanning direction is set in multiple stages according to the comparison result between the complexity Y in the sub-scanning direction and two different thresholds Ty1 and Ty2.

Figure 0006665447
Figure 0006665447
Figure 0006665447
Figure 0006665447

〔第1変形例:図17〕
次に、上述した各実施形態の変形例について説明する。
まず、第1変形例について説明する。この第1変形例は、上述した各実施形態では画像データの減色処理や画素数低減処理を領域毎に行う点が異なる。ここでは、この変更点についてのみ説明する。
[First Modification: FIG. 17]
Next, a modified example of each of the above-described embodiments will be described.
First, a first modified example will be described. The first modification is different from the above-described embodiments in that the color reduction processing and the pixel number reduction processing of the image data are performed for each area. Here, only this change will be described.

図17に、第1変形例を第2実施形態に適用した場合の絵柄画像データ圧縮部24の機能構成を示す。
図17に示す絵柄画像データ圧縮部24において、ブロック化部207、周波数算出部203、判定部204、減色データ圧縮部209、画素数低減データ圧縮部210及び合成部211の機能は図7の場合と同じである。しかし、制御部231、減色処理部232、画素数低減処理部233の機能は図7の場合と異なる。
FIG. 17 shows a functional configuration of the picture image data compression unit 24 when the first modification is applied to the second embodiment.
In the picture image data compression unit 24 shown in FIG. 17, the functions of the blocking unit 207, the frequency calculation unit 203, the determination unit 204, the color reduction data compression unit 209, the pixel number reduction data compression unit 210, and the synthesis unit 211 are as shown in FIG. Is the same as However, the functions of the control unit 231, the color reduction processing unit 232, and the pixel number reduction processing unit 233 are different from those in FIG.

まず、制御部231は、判定部204が行った結果に従い、入力する絵柄画像データに含まれる各領域の画像データのうち、減色処理後の画像データを圧縮することを決定した領域のデータを減色処理部232へ、画素数低減処理後の画像データを圧縮することを決定した領域のデータを画素数低減処理部233へ、それぞれ出力する機能を備える。
減色処理部232は、制御部231から供給される各領域の画像データに対して減色処理を行って減色データ圧縮部209へ出力する機能を備える。
画素数低減処理部233は、制御部231から供給される各領域の画像データに対して画素数低減処理を行って画素数低減データ圧縮部210へ出力する機能を備える。
First, the control unit 231 performs the color reduction on the data of the area in which the image data after the color reduction processing is determined to be compressed among the image data of the respective areas included in the input picture image data in accordance with the result of the determination unit 204. The processing unit 232 has a function of outputting data of an area determined to compress the image data after the pixel number reduction processing to the pixel number reduction processing unit 233.
The color reduction processing unit 232 has a function of performing color reduction processing on image data of each area supplied from the control unit 231 and outputting the image data to the color reduction data compression unit 209.
The pixel number reduction processing unit 233 has a function of performing pixel number reduction processing on image data of each area supplied from the control unit 231 and outputting the image data to the pixel number reduction data compression unit 210.

このように、減色処理や画素数低減処理を、実際に圧縮に使用する領域についてのみ行うようにすれば、処理負荷や処理時間を短縮することができる。
なお、これらの変形は第2実施形態以外の各実施形態にも適用可能である。
As described above, if the color reduction processing and the pixel number reduction processing are performed only on the area actually used for compression, the processing load and processing time can be reduced.
Note that these modifications can be applied to each embodiment other than the second embodiment.

〔第2変形例:図18〕
次に、第2変形例について説明する。この第2変形例は、処理対象の絵柄画像データの解像度に応じて、ブロック化部207が形成する領域のサイズを変更する点が、上述した各実施形態と異なる点である。ここでは、この変更点についてのみ説明する。
[Second Modification: FIG. 18]
Next, a second modified example will be described. The second modification is different from the above-described embodiments in that the size of the area formed by the blocking unit 207 is changed according to the resolution of the picture image data to be processed. Here, only this change will be described.

図18に、第2変形例を第2実施形態に適用した場合の絵柄画像データ圧縮部24の機能構成を示す。
図18に示す構成は、ブロック調整部241が追加されている以外は、図7に示した第2実施形態の構成と同じである。そして、ブロック調整部241は、処理対象の絵柄画像データの解像度を取得し、その解像度に応じてブロック化部207が行う領域分割の領域のサイズを変更するサイズ変更手段の機能を備える。このとき、解像度が高ければ領域サイズを大きめにし、低解像度であれば小さめにするとよい。
FIG. 18 shows a functional configuration of the picture image data compression unit 24 when the second modification is applied to the second embodiment.
The configuration shown in FIG. 18 is the same as the configuration of the second embodiment shown in FIG. 7 except that a block adjusting unit 241 is added. Then, the block adjusting unit 241 has a function of a size changing unit that obtains the resolution of the pattern image data to be processed and changes the size of the area of the area division performed by the blocking unit 207 according to the resolution. At this time, if the resolution is high, the area size may be made large, and if the resolution is low, the area size may be made small.

このように領域サイズを解像度に応じて調整することで、絵柄画像データ毎に解像度が異なる場合であっても、同じように画質を維持しつつ、データサイズを小さくすることが可能となる。
なお、この変形は、第2実施形態以外でも、ブロック化を行う各実施形態に適用可能である。
By adjusting the area size according to the resolution in this manner, even when the resolution differs for each piece of picture image data, it is possible to reduce the data size while maintaining the same image quality.
Note that this modification is applicable to each embodiment that performs blocking, other than the second embodiment.

〔その他の変形例〕
以上で本発明の実施形態の説明を終了するが、この発明において、装置の具体的な構成、具体的な処理の手順、処理に用いる計算式、アルゴリズム等は、実施形態で説明したものに限るものではない。
[Other modifications]
This concludes the description of the embodiment of the present invention. However, in the present invention, the specific configuration of the apparatus, the specific processing procedure, the calculation formula, the algorithm, and the like used in the processing are limited to those described in the embodiment. Not something.

また、上述した各実施形態ではこの発明を画像形成装置に適用した例について説明したが、この発明の画像処理装置が画像形成機能を備えていることは必須ではない。例えば、PC、デジタルカメラ、スマートフォンなど、画像処理機能あるいは情報処理機能を備えた任意の電子装置における画像データの処理(特に圧縮を伴うもの)について、本発明を適用可能である。
また、本発明においては、文字画像データと絵柄画像データを分割することは必須ではない。これらの分割を行わず、1枚分の画像データ全体を上述した各実施形態における絵柄画像データ圧縮部24の処理に供した場合でも、一定の効果を得ることができる。
また、上述した各実施形態における画像処理部113の機能は、複数の装置に分散して設け、それらの装置に協働して画像処理部113の機能を実現させることができる。
また、この発明は、装置として実現する他、方法、システム、プログラム、記録媒体等、任意の態様で実現することができる。
In each of the embodiments described above, examples in which the present invention is applied to an image forming apparatus have been described. However, it is not essential that the image processing apparatus of the present invention has an image forming function. For example, the present invention is applicable to image data processing (especially involving compression) in any electronic device having an image processing function or an information processing function, such as a PC, a digital camera, and a smartphone.
In the present invention, it is not essential to divide character image data and picture image data. Even when the entire image data for one sheet is subjected to the processing of the picture image data compression unit 24 in each of the above embodiments without performing these divisions, a certain effect can be obtained.
In addition, the function of the image processing unit 113 in each of the above-described embodiments can be separately provided in a plurality of devices, and the functions of the image processing unit 113 can be realized in cooperation with those devices.
In addition, the present invention can be realized in any form, such as a method, a system, a program, and a recording medium, in addition to being realized as an apparatus.

一例として、この発明のプログラムは、コンピュータに所要のハードウェアを制御させて上述した画像形成装置10が備える機能、特に図3に示した機能を実現させるためのプログラムである。このようなプログラムは、ROM104に記憶しておく他、外部の記憶媒体等に記憶しておいてもよい。また、メモリカード、CD、DVD、ブルーレイディスク等の任意の不揮発性記録媒体に記録して提供することもできる。それらの記録媒体に記録されたプログラムを他の画像形成装置にインストールして実行させることにより、上述した各手順を実行させることができる。   As an example, the program of the present invention is a program for causing a computer to control necessary hardware to realize the functions of the image forming apparatus 10 described above, particularly, the functions shown in FIG. Such a program may be stored in an external storage medium or the like in addition to being stored in the ROM 104. Further, it can be provided by being recorded on an arbitrary nonvolatile recording medium such as a memory card, a CD, a DVD, and a Blu-ray disc. Each of the above-described procedures can be executed by installing and executing the program recorded on the recording medium in another image forming apparatus.

また、ネットワークに接続され、プログラムを記録した記録媒体を備える外部装置あるいはプログラムを記憶手段に記憶した外部装置からダウンロードし、コンピュータにインストールして実行させることも可能である。
また、以上説明してきた実施形態及び変形例の構成は、相互に矛盾しない限り任意に組み合わせて実施可能であることは勿論である。
It is also possible to download the program from an external device that is connected to a network and includes a recording medium on which the program is recorded, or an external device that stores the program in a storage unit, and installs and executes the program on a computer.
In addition, it is needless to say that the configurations of the above-described embodiments and modified examples can be arbitrarily combined as long as they do not conflict with each other.

10:画像形成装置、21:画像データ取得部、22:画像データ分離部、23:文字画像データ圧縮部、24:絵柄画像データ圧縮部、25,211:合成部、26:出力部、101:コントローラ、102:CPU、103:RAM、104:ROM、105:HDD、106:通信I/F、107:操作部I/F、108:操作部、109:システムバス、110:エンジン制御部、111:画像読取部、112:プロッタ部、113:画像処理部、201,232:減色処理部、202,215,224,233:画素数低減処理部、203,221:周波数算出部、204,216,219,222:判定部、205,208,213,217,223,231:制御部、206,225:圧縮部、207:ブロック化部、209:減色データ圧縮部、210:画素数低減データ圧縮部、212:周波数置換部、214:色数カウント部、218:解像度取得部、241:ブロック調整部 10: image forming apparatus, 21: image data acquisition unit, 22: image data separation unit, 23: character image data compression unit, 24: picture image data compression unit, 25, 211: combining unit, 26: output unit, 101: Controller: 102: CPU, 103: RAM, 104: ROM, 105: HDD, 106: Communication I / F, 107: Operation unit I / F, 108: Operation unit, 109: System bus, 110: Engine control unit, 111 : Image reading section, 112: plotter section, 113: image processing section, 201, 232: color reduction processing section, 202, 215, 224, 233: pixel number reduction processing section, 203, 221: frequency calculation section, 204, 216 219,222: determination unit, 205,208,213,217,223,231: control unit, 206, 225: compressor unit, 207: blocking unit, 20 : Subtractive color data compression unit, 210: number of pixels reduces the data compression unit, 212: frequency transposition unit, 214: color number counting unit, 218: resolution obtaining unit, 241: Block adjuster

特開2005−269271号公報JP 2005-269271 A 特開2009−159598号公報JP 2009-159598 A

Claims (8)

処理対象の絵柄画像データに対し減色処理を実行する第1画像処理手段と、
前記処理対象の絵柄画像データに対し、該絵柄画像データの解像度に応じて画素数を低減させる度合いを切り替えて画素数低減処理を行う第2画像処理手段と、
前記処理対象の絵柄画像データ内における画素値の変動度合いを示す複雑度を算出する算出手段と、
前記算出手段が算出した複雑度に従い、前記第1画像処理手段による減色処理後の絵柄画像データ及び前記第2画像処理手段による画素数低減処理後の絵柄画像データのいずれを出力するかを決定する決定手段と
前記処理対象の絵柄画像データを所定の領域に分割し、その分割した領域の座標情報を前記算出手段に渡すブロック化手段とを備え、
前記算出手段は、前記ブロック化手段から取得した領域の座標情報に基づいて、該領域毎に前記複雑度を算出し、
前記決定手段は、前記第1画像処理手段による減色処理後の絵柄画像データ及び前記第2画像処理手段による画素数低減処理後の絵柄画像データのいずれを出力するかの決定を前記領域毎に行う
ことを特徴とする画像処理装置。
First image processing means for performing color reduction processing on the pattern image data to be processed;
To picture image data of the processing target, and the second image processing means for performing the number of pixels reduction processing by switching the degree of reducing the number of pixels according to the resolution of the該絵pattern image data,
Calculation means for calculating the complexity indicating the degree of variation of the pixel value in the pattern image data to be processed,
According complexity of the calculation unit is calculated to determine outputs one of the picture image data after the pixel number reduction process by the picture image data and the second image processing unit after the color reduction processing by said first image processing means Determining means ;
Block processing means for dividing the pattern image data to be processed into predetermined areas, and passing coordinate information of the divided areas to the calculation means ,
The calculating means calculates the complexity for each area based on the coordinate information of the area obtained from the blocking means,
The determining means determines, for each of the areas, which of the picture image data after the color reduction processing by the first image processing means and the picture image data after the pixel number reduction processing by the second image processing means is output. An image processing apparatus characterized by the above-mentioned.
請求項1に記載の画像処理装置であって、
前記決定手段は、前記複雑度が示す変動度合いが所定の閾値より大きい場合に前記第1画像処理手段による減色処理後の絵柄画像データを、該変動度合いが前記所定の閾値より大きくない場合に前記第2画像処理手段による画素数低減処理後の絵柄画像データを出力することを決定することを特徴とする画像処理装置。
The image processing device according to claim 1,
The determining means, when the degree of variation indicated by the complexity is larger than a predetermined threshold, the pattern image data after the color reduction processing by the first image processing means, and when the degree of fluctuation is not larger than the predetermined threshold, An image processing apparatus, which determines to output picture image data after the pixel number reduction processing by a second image processing means.
請求項1又は2に記載の画像処理装置であって、
前記処理対象の絵柄画像データが示す画像の解像度に応じて前記所定の領域のサイズを変更するサイズ変更手段を備えることを特徴とする画像処理装置。
The image processing device according to claim 1 or 2 ,
An image processing apparatus comprising: a size changing unit configured to change a size of the predetermined area according to a resolution of an image indicated by the pattern image data to be processed.
請求項1乃至3のいずれか一項に記載の画像処理装置であって、
前記算出手段は、前記処理対象の絵柄画像データに対して離散コサイン変換又はフーリエ変換を行って得られる特定の空間周波数成分の値を、前記複雑度として算出することを特徴とする画像処理装置。
The image processing apparatus according to claim 1 , wherein:
The image processing apparatus , wherein the calculating means calculates, as the complexity, a value of a specific spatial frequency component obtained by performing a discrete cosine transform or a Fourier transform on the pattern image data to be processed.
請求項1乃至4のいずれか一項に記載の画像処理装置であって、
入力された画像データを文字部と絵柄部に分離する分離手段を備え、
前記入力された画像データのうち絵柄部を前記処理対象の絵柄画像データとすることを特徴とする画像処理装置。
The image processing apparatus according to claim 1 , wherein:
A separation unit for separating the input image data into a character portion and a picture portion,
An image processing apparatus, wherein a pattern portion of the input image data is set as the pattern image data to be processed.
請求項1乃至5のいずれか一項に記載の画像処理装置であって、
前記第1画像処理手段による減色処理後の絵柄画像データを圧縮する第1圧縮手段と、
前記第2画像処理手段による画素数低減処理後の絵柄画像データを圧縮する第2圧縮手段と、
前記第1圧縮手段による圧縮後の絵柄画像データのうち、前記決定手段の決定に従って出力すべき絵柄画像データと、前記第2圧縮手段による圧縮後の絵柄画像データのうち、前記決定手段の決定に従って出力すべき絵柄画像データとを合成して出力用の圧縮画像データを生成する合成手段とを備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 1 , wherein:
First compression means for compressing the picture image data after the color reduction processing by the first image processing means;
A second compression unit for compressing the picture image data after the pixel number reduction processing by the second image processing unit;
Of picture image data after compression by the first compression means, and the picture image data to be output according to the determination of said determining means, among the picture image data after compression by the second compression unit, in accordance with the determination of said determining means An image processing apparatus comprising: synthesizing means for synthesizing picture image data to be output and generating compressed image data for output.
処理対象の絵柄画像データに対し減色処理を実行する第1画像処理手順と、
前記処理対象の絵柄画像データに対し、該絵柄画像データの解像度に応じて画素数を低減させる度合いを切り替えて画素数低減処理を行う第2画像処理手順と、
前記処理対象の絵柄画像データ内における画素値の変動度合いを示す複雑度を算出する算出手順と、
前記算出手順が算出した複雑度に従い、前記第1画像処理手順による減色処理後の絵柄画像データ及び前記第2画像処理手順による画素数低減処理後の絵柄画像データのいずれを出力するかを決定する決定手順と
前記処理対象の絵柄画像データを所定の領域に分割し、その分割した領域の座標情報を前記算出手順に渡すブロック化手順とを備え、
前記算出手順は、前記ブロック化手順から取得した領域の座標情報に基づいて、該領域毎に前記複雑度を算出し、
前記決定手順は、前記第1画像処理手順による減色処理後の絵柄画像データ及び前記第2画像処理手順による画素数低減処理後の絵柄画像データのいずれを出力するかの決定を前記領域毎に行う
ことを特徴とする画像処理方法。
A first image processing procedure for performing color reduction processing on the pattern image data to be processed;
To picture image data of the processing target, and the second image processing procedure for the pixel number reduction processing by switching the degree of reducing the number of pixels according to the resolution of the該絵pattern image data,
A calculation procedure for calculating a complexity indicating a degree of variation of a pixel value in the pattern image data to be processed;
According complexity of the calculation procedure has been calculated, determines whether to output either of the picture image data after the pixel number reduction processing by the first image processing picture image data and the second image processing procedure after color reduction by procedures Decision procedure ;
Dividing the pattern image data to be processed into predetermined areas, and passing coordinate information of the divided areas to the calculation procedure ,
The calculating step calculates the complexity for each area based on the coordinate information of the area obtained from the blocking step,
The determining step determines, for each of the regions, which of the picture image data after the color reduction processing in the first image processing procedure and the picture image data after the pixel number reduction processing in the second image processing procedure is output. An image processing method comprising:
コンピュータに、
処理対象の絵柄画像データに対し減色処理を実行する第1画像処理手順と、
前記処理対象の絵柄画像データに対し、該絵柄画像データの解像度に応じて画素数を低減させる度合いを切り替えて画素数低減処理を行う第2画像処理手順と、
前記処理対象の絵柄画像データ内における画素値の変動度合いを示す複雑度を算出する算出手順と、
前記算出手順が算出した複雑度に従い、前記第1画像処理手順による減色処理後の絵柄画像データ及び前記第2画像処理手順による画素数低減処理後の絵柄画像データのいずれを出力するかを決定する決定手順と
前記処理対象の絵柄画像データを所定の領域に分割し、その分割した領域の座標情報を前記算出手順に渡すブロック化手順とを実行させ、
前記算出手順では、前記ブロック化手順から取得した領域の座標情報に基づいて、該領域毎に前記複雑度を算出し、
前記決定手順では、前記第1画像処理手順による減色処理後の絵柄画像データ及び前記第2画像処理手順による画素数低減処理後の絵柄画像データのいずれを出力するかの決定を前記領域毎に行うためのプログラム。
On the computer,
A first image processing procedure for performing color reduction processing on the pattern image data to be processed;
To picture image data of the processing target, and the second image processing procedure for the pixel number reduction processing by switching the degree of reducing the number of pixels according to the resolution of the該絵pattern image data,
A calculation procedure for calculating a complexity indicating a degree of variation of a pixel value in the pattern image data to be processed;
According complexity of the calculation procedure has been calculated, determines whether to output either of the picture image data after the pixel number reduction processing by the first image processing picture image data and the second image processing procedure after color reduction by procedures Decision procedure ;
Dividing the pattern image data to be processed into a predetermined area, and passing the coordinate information of the divided area to the calculation procedure .
In the calculation procedure, based on the coordinate information of the area obtained from the blocking procedure, the complexity is calculated for each area,
In the determining step, a determination is made for each of the areas as to which of the picture image data after the color reduction processing in the first image processing procedure and the picture image data after the pixel number reduction processing in the second image processing procedure is output. Program for.
JP2015164985A 2015-08-24 2015-08-24 Image processing apparatus, image processing method, and program Active JP6665447B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015164985A JP6665447B2 (en) 2015-08-24 2015-08-24 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015164985A JP6665447B2 (en) 2015-08-24 2015-08-24 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2017046057A JP2017046057A (en) 2017-03-02
JP6665447B2 true JP6665447B2 (en) 2020-03-13

Family

ID=58212243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015164985A Active JP6665447B2 (en) 2015-08-24 2015-08-24 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP6665447B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116645591B (en) * 2023-05-31 2024-01-05 杭州数盒魔方科技有限公司 Pixel value-based electronic contract seal picture PS trace identification method and system

Also Published As

Publication number Publication date
JP2017046057A (en) 2017-03-02

Similar Documents

Publication Publication Date Title
JP5132517B2 (en) Image processing apparatus and image processing method
JP6234098B2 (en) Image processing apparatus, image processing method, and program
US8849021B2 (en) Image processing apparatus, method, and storage medium for high speed compression processing
US9891875B2 (en) Host device for transmitting print data to printer and method of rendering print data via host device
JP4176114B2 (en) Image compression apparatus, image reading apparatus including the same, image processing apparatus including the image compression apparatus, image forming apparatus including the same, and image compression processing method
JP4115460B2 (en) Image processing apparatus and method, and computer program and recording medium
JP2011254405A (en) Image processor and image processing method
JP6665447B2 (en) Image processing apparatus, image processing method, and program
JP2020114028A (en) Image processing apparatus, image processing method and program
JP7185451B2 (en) Image processing device, image processing method, and program
US8451497B2 (en) Image processing device and method therefor for automatically determining reading mode based on image data read by image reader
JP2010232952A (en) Image processor, and image processing program
US10872216B2 (en) Image output device, image output method, and output image data production method
JP4861924B2 (en) Image processing apparatus, control method thereof, program thereof, and storage medium thereof
JP6427960B2 (en) Image processing device
US20120013959A1 (en) Image processing apparatus
JP4662189B2 (en) Image processing apparatus and image processing program
JP5321364B2 (en) Image processing apparatus, image processing method, and program
JP6541387B2 (en) PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM
JP4802853B2 (en) Image processing apparatus and image processing program
JP5595142B2 (en) Image processing apparatus and image processing method
JP2024169177A (en) Image processing device, image processing method, and program
US9398193B2 (en) Image processing apparatus and image processing method
US9854255B2 (en) Electronic apparatus, and method and computer-readable medium for the same
JP5703402B2 (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180720

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190328

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190423

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190620

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190716

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190917

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200203

R151 Written notification of patent or utility model registration

Ref document number: 6665447

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151