JP5811928B2 - Image processing apparatus and image forming apparatus - Google Patents

Image processing apparatus and image forming apparatus Download PDF

Info

Publication number
JP5811928B2
JP5811928B2 JP2012078726A JP2012078726A JP5811928B2 JP 5811928 B2 JP5811928 B2 JP 5811928B2 JP 2012078726 A JP2012078726 A JP 2012078726A JP 2012078726 A JP2012078726 A JP 2012078726A JP 5811928 B2 JP5811928 B2 JP 5811928B2
Authority
JP
Japan
Prior art keywords
pixel
image processing
unit
value
image
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
JP2012078726A
Other languages
Japanese (ja)
Other versions
JP2013210702A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2012078726A priority Critical patent/JP5811928B2/en
Publication of JP2013210702A publication Critical patent/JP2013210702A/en
Application granted granted Critical
Publication of JP5811928B2 publication Critical patent/JP5811928B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置及び画像形成装置に関する。   The present invention relates to an image processing apparatus and an image forming apparatus.

従来、画像形成装置は、入力された画像データに対して色調整やガンマ補正等の画像処理を行うに際して、画像データを構成する各画素が取りうる「画像処理前の画素値」の各々と「画像処理後の画素値」の各々とが対応付けられたルックアップテーブル(LUT)を用いて画像処理を行っていた。即ち、例えば、画像処理前の画素値Aと画像処理後の画素値Bとが対応付けられていた場合、画像処理前の画像データに含まれている画素値Aの画素は、画像処理において画素値Aと画素値Bとが対応付けられたLUTが参照されることにより、画素値Bに置き換えられていた。   Conventionally, when an image forming apparatus performs image processing such as color adjustment and gamma correction on input image data, each “pixel value before image processing” that can be taken by each pixel constituting the image data and “ Image processing is performed using a look-up table (LUT) in which each “pixel value after image processing” is associated with each other. That is, for example, when the pixel value A before image processing and the pixel value B after image processing are associated with each other, the pixel of the pixel value A included in the image data before image processing is a pixel in image processing. By referring to the LUT in which the value A and the pixel value B are associated with each other, the pixel value B is replaced.

しかしながら、画像処理前の各画素が取り得る全ての画素値と画像処理後の画素値とを対応付けたLUTのデータ量は膨大となり、LUTを記憶するために要求されるメモリー容量も大きくなってしまう。
そこで、LUTのデータ量及び要求されるメモリー容量の削減のため、画像処理前の各画素が取り得る一部の画素値と当該一部の画素値に対応する画像処理後の画素値をLUTに記憶させ、他の画素値については補間演算により画像処理を行う画像形成装置が知られている(例えば、特許文献1)。
However, the data amount of the LUT that associates all pixel values that can be taken by each pixel before image processing with the pixel value after image processing becomes enormous, and the memory capacity required to store the LUT also increases. End up.
Therefore, in order to reduce the amount of LUT data and the required memory capacity, some pixel values that can be taken by each pixel before image processing and the pixel values after image processing corresponding to the some pixel values are stored in the LUT. An image forming apparatus that stores and performs image processing on other pixel values by interpolation is known (for example, Patent Document 1).

特開2009−214414号公報JP 2009-214414 A

ところで、近年、画像形成装置の生産性向上に伴い、画像形成前の画像処理についてもより一層の高速化が求められている。
従来、画像処理方法を高速化するための一般的な方法として、図8に示すように、画像データを構成する複数の画素を横方向のライン単位とし、ライン単位で並列処理する方法が取られていた。
Incidentally, in recent years, with the improvement in productivity of image forming apparatuses, there has been a demand for higher speed in image processing before image formation.
Conventionally, as a general method for speeding up the image processing method, as shown in FIG. 8, a method of performing parallel processing in units of lines by taking a plurality of pixels constituting image data as units of lines in the horizontal direction has been adopted. It was.

しかしながら、ライン単位で並列処理を行うと、並列処理の数に応じた数の画像処理部及びメモリーが必要となる。よって、メモリー容量等の削減のために補間演算を行っても、並列処理への対応のために要求されるメモリー容量が並列処理の数に応じて増加することとなり、画像処理の高速化とメモリー容量の削減とを両立することができなかった。   However, when parallel processing is performed in units of lines, a number of image processing units and memories corresponding to the number of parallel processing are required. Therefore, even if interpolation calculation is performed to reduce memory capacity, etc., the memory capacity required to support parallel processing will increase according to the number of parallel processing. It was impossible to achieve both capacity reduction.

本発明は、画像処理の高速化とメモリー容量の削減とを両立することができる画像処理装置及び画像形成装置を提供することを目的とする。   An object of the present invention is to provide an image processing apparatus and an image forming apparatus that can achieve both high-speed image processing and reduction in memory capacity.

請求項1に記載の発明は、画像を構成する複数の画素の各々に対して所定の画像処理を行う画像処理装置であって、画像の所定領域に含まれる複数の画素を当該複数の画素の数よりも少ない数のグループのいずれかと対応付ける対応付け手段と、各グループに対応付けられた画素の画素値に基づいて各グループの代表値を決定する決定手段と、前記所定の画像処理前の画素値に対する前記所定の画像処理後の画素値を記憶する記憶手段と、前記代表値に対応する前記所定の画像処理後の画素値を前記記憶手段から取得する取得手段と、各グループに対応付けられた画素の画素値を各グループの代表値に対応する前記所定の画像処理後の画素値とする処理手段と、を備えることを特徴とする。   The invention according to claim 1 is an image processing apparatus that performs predetermined image processing on each of a plurality of pixels constituting an image, wherein a plurality of pixels included in a predetermined region of the image are converted into the plurality of pixels. Association means for associating with any of the groups smaller than the number, determination means for determining a representative value of each group based on the pixel value of the pixel associated with each group, and the pixel before the predetermined image processing A storage means for storing the pixel value after the predetermined image processing for the value, an acquisition means for acquiring the pixel value after the predetermined image processing corresponding to the representative value from the storage means, and an association with each group. And processing means for setting the pixel value of the obtained pixel to the pixel value after the predetermined image processing corresponding to the representative value of each group.

請求項2に記載の発明は、請求項1に記載の画像処理装置であって、前記決定手段は、前記対応付け手段により各グループに対応付けられた画素の画素値の平均値を各グループの代表値とすることを特徴とする。   A second aspect of the present invention is the image processing apparatus according to the first aspect, wherein the determining unit calculates an average value of the pixel values associated with each group by the association unit. It is a characteristic value.

請求項3に記載の発明は、請求項1又は2に記載の画像処理装置であって、各グループに対応する画素値の範囲を示す範囲情報を生成する生成手段を備え、前記対応付け手段は、各グループに対応する画素値の範囲に基づいて前記所定領域に含まれる複数の画素を各グループと対応付けることを特徴とする。   A third aspect of the present invention is the image processing apparatus according to the first or second aspect, further comprising generation means for generating range information indicating a range of pixel values corresponding to each group, wherein the association means A plurality of pixels included in the predetermined area are associated with each group based on a range of pixel values corresponding to each group.

請求項4に記載の発明は、請求項1から3の何れか1項に記載の画像処理装置であって、前記対応付け手段は、前記所定領域に含まれる複数の画素のそれぞれの画素値に基づいて前記複数の画素を各グループと対応付けることを特徴とする。
請求項5に記載の発明は、請求項4に記載の画像処理装置であって、前記対応付け手段は、前記所定領域に含まれる複数の画素のそれぞれの画素値に基づいて1画素ごとに順次に前記複数の画素を各グループと対応付けることを特徴とする。
請求項6に記載の発明は、請求項3に記載の画像処理装置であって、前記対応付け手段は、各グループに対応する画素値の範囲と、前記複数の画素のそれぞれの画素値と、に基づいて1画素ごとに順次に前記複数の画素を各グループと対応付け、前記生成手段は、前記対応付け手段による1画素の対応付けの終了後に、対応付けられたグループの画素値の範囲を示す範囲情報を更新することを特徴とする。
請求項7に記載の発明は、請求項1から6の何れか1項に記載の画像処理装置であって、前記所定の画像処理は、RGBからCMYKへの色変換処理であり、前記記憶手段は、色変換処理前のRGB色空間の画素値に対する色変換処理後のCMYK色空間の画素値を記憶することを特徴とする。
請求項8に記載の発明は、請求項1から7の何れか1項に記載の画像処理装置であって、前記画像を構成する全ての画素に対する前記所定の画像処理が終了するまで、前記対応付け手段による処理と、前記決定手段による処理と、前記取得手段による処理と、前記処理手段による処理とを繰り返すことを特徴とする。
請求項9に記載の発明は、請求項1から8の何れか1項に記載の画像処理装置であって、前記所定領域に含まれる複数の画素は複数の画素ラインを形成し、各画素ラインを構成する画素の数と前記グループの数が等しいことを特徴とする。
請求項10に記載の発明は、請求項1から9の何れか1項に記載の画像処理装置であって、前記対応付け手段により前記所定領域に含まれる複数の画素の対応付けを開始する時点において、前記グループの数が1つの所定値に設定されていることを特徴とする。
請求項11に記載の発明は、画像を取得する画像取得手段と、前記画像取得手段により取得された画像を構成する複数の画素の各々に対して所定の画像処理を行う画像処理手段と、前記画像処理手段により所定の画像処理が施された画像に基づいて画像を形成する画像形成手段と、を備えた画像形成装置において、前記画像処理手段は、請求項1から10の何れか1項に記載の画像処理装置を含むことを特徴とする。
The invention according to claim 4 is the image processing apparatus according to any one of claims 1 to 3, wherein the associating means sets the pixel values of the plurality of pixels included in the predetermined area. Based on this, the plurality of pixels are associated with each group.
A fifth aspect of the present invention is the image processing apparatus according to the fourth aspect, wherein the associating means sequentially sequentially for each pixel based on respective pixel values of a plurality of pixels included in the predetermined area. The plurality of pixels are associated with each group.
The invention according to claim 6 is the image processing apparatus according to claim 3, wherein the association unit includes a range of pixel values corresponding to each group, a pixel value of each of the plurality of pixels, The plurality of pixels are sequentially associated with each group on a pixel-by-pixel basis, and the generation unit determines a range of pixel values of the associated group after the association of one pixel by the association unit. The range information shown is updated.
A seventh aspect of the present invention is the image processing apparatus according to any one of the first to sixth aspects, wherein the predetermined image processing is color conversion processing from RGB to CMYK, and the storage means Stores the pixel values in the CMYK color space after the color conversion processing for the pixel values in the RGB color space before the color conversion processing.
The invention according to claim 8 is the image processing apparatus according to any one of claims 1 to 7, wherein the correspondence is performed until the predetermined image processing for all the pixels constituting the image is completed. The processing by the attaching means, the processing by the determining means, the processing by the acquiring means, and the processing by the processing means are repeated.
The invention according to claim 9 is the image processing apparatus according to any one of claims 1 to 8, wherein the plurality of pixels included in the predetermined region form a plurality of pixel lines, and each pixel line The number of pixels constituting the number and the number of the groups are equal.
A tenth aspect of the present invention is the image processing apparatus according to any one of the first to ninth aspects, wherein the association unit starts associating a plurality of pixels included in the predetermined area. The number of groups is set to one predetermined value.
The invention according to claim 11 is an image acquisition means for acquiring an image, an image processing means for performing predetermined image processing on each of a plurality of pixels constituting the image acquired by the image acquisition means, 11. An image forming apparatus comprising: an image forming unit that forms an image based on an image that has been subjected to predetermined image processing by the image processing unit, wherein the image processing unit is any one of claims 1 to 10. The image processing apparatus described above is included .

本発明によれば、画像処理の高速化とメモリー容量の削減とを両立することができる。   According to the present invention, both speeding up of image processing and reduction in memory capacity can be achieved.

本発明の一実施形態による画像形成装置の主要構成を示すブロック図である。1 is a block diagram illustrating a main configuration of an image forming apparatus according to an embodiment of the present invention. 画像処理部の回路構成の一例を示す図である。It is a figure which shows an example of the circuit structure of an image process part. 代表値決定部の機能構成の一例を示すブロック図である。It is a block diagram which shows an example of a function structure of a representative value determination part. 代表値と所定領域内の各画素との対応付けのイメージ図である。It is an image figure of matching with a representative value and each pixel in a predetermined field. 画像処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of an image process. 代表値の取得処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a representative value acquisition process. 対応付け処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a matching process. 従来の並列処理による画像処理のイメージ図である。It is an image figure of the image processing by the conventional parallel processing.

以下に、本発明の実施形態について図面を用いて説明する。ただし、以下に述べる実施形態には、本発明を実施するために技術的に好ましい種々の限定が付されているが、発明の範囲を以下の実施形態及び図示例に限定するものではない。   Embodiments of the present invention will be described below with reference to the drawings. However, although various technically preferable limitations for implementing the present invention are given to the embodiments described below, the scope of the invention is not limited to the following embodiments and illustrated examples.

図1は、本発明の一実施形態による画像形成装置1の主要構成を示すブロック図である。
画像形成装置1は、例えば、通信部11、画像処理部12、画像形成部13、操作表示部14、中央制御部15等を備え、これらの各部がバス16により接続されている。
FIG. 1 is a block diagram showing a main configuration of an image forming apparatus 1 according to an embodiment of the present invention.
The image forming apparatus 1 includes, for example, a communication unit 11, an image processing unit 12, an image forming unit 13, an operation display unit 14, a central control unit 15, and the like, and these units are connected by a bus 16.

通信部11は、例えば、ネットワークインターフェースカード(Network Interface Card:NIC)等を有し、通信ネットワークNを介して接続されたパーソナルコンピューター(PC)や携帯端末等、外部の機器と所定の通信プロトコルにより通信を行う。
通信部11は、通信ネットワークNを介して、外部の機器から画像形成の指示と当該指示により形成される画像の元となる画像テータを含む印刷ジョブを受信する。
The communication unit 11 includes, for example, a network interface card (NIC) or the like, and is connected to an external device such as a personal computer (PC) or a portable terminal connected via the communication network N by a predetermined communication protocol. Communicate.
The communication unit 11 receives a print job including an image formation instruction and an image data serving as a source of an image formed by the instruction from an external device via the communication network N.

なお、通信ネットワークNは、例えば、既存の通信回線を利用して構築された通信ネットワークであり、LAN(Local Area Network)やWAN(Wide Area Network)、WiFi(Wireless Fidelity)、Bluetooth(登録商標)、NFC(Near Field Communication)等の様々な回線形態を適用することが可能である。また、通信ネットワークNの通信回線の形態は、有線、無線及び有線と無線との混在を問わない。また、通信ネットワークNは、例えば、電話回線網、ISDN回線網、光ファイバー、移動体通信網、通信衛星回線、CATV回線網、その他の専用線等の各種通信回線網と、それらを接続するインターネットサービスプロバイダ等を含んでいてもよい。また、通信部11により採用される通信プロトコルは、例えば、TCP/IPであるが、一例あってこれに限られるものでなく、外部の機器との相互通信が可能なプロトコルであればその種類を問われない。   Note that the communication network N is, for example, a communication network constructed using an existing communication line, such as a LAN (Local Area Network), a WAN (Wide Area Network), a WiFi (Wireless Fidelity), or a Bluetooth (registered trademark). Various line forms such as NFC (Near Field Communication) can be applied. The form of the communication line of the communication network N may be wired, wireless, or a mixture of wired and wireless. The communication network N is, for example, a telephone line network, an ISDN line network, an optical fiber, a mobile communication network, a communication satellite line, a CATV line network, other dedicated lines and other communication line networks, and an Internet service for connecting them. A provider or the like may be included. The communication protocol adopted by the communication unit 11 is, for example, TCP / IP. However, the communication protocol is not limited to this example, and any type can be used as long as it is a protocol capable of mutual communication with an external device. It doesn't matter.

画像処理部12は、印刷ジョブに含まれる画像データに対して画像処理を行う。画像処理部12により行われる画像処理として、例えば、画像データの色空間(RGB等)を画像形成部13の色剤の色空間(CMYK等)に変換する色変換処理や、画像の色味を調整する色調整処理、ガンマ補正処理等が挙げられるが、一例であってこれに限られるものでない。
画像処理部12による画像処理の詳細は後述する。
The image processing unit 12 performs image processing on the image data included in the print job. As image processing performed by the image processing unit 12, for example, color conversion processing for converting the color space (RGB or the like) of the image data into the color space (CMYK or the like) of the colorant of the image forming unit 13, or the color of the image Color adjustment processing to be adjusted, gamma correction processing, and the like can be mentioned, but this is an example and the present invention is not limited to this.
Details of the image processing by the image processing unit 12 will be described later.

画像形成部13は、画像処理部12により画像処理が施された画像に応じて記録媒体に画像を形成する。
具体的には、画像形成部13は、例えば、画像が形成される記録媒体を搬送する搬送部、搬送部により搬送される記録媒体の記録面に対して対向するよう設けられた複数のノズルを有する記録ヘッド、記録ヘッドにインクを供給するインク供給部等を有し、複数のノズルから記録媒体に対してインクを吐出して画像を形成する。
The image forming unit 13 forms an image on a recording medium according to the image subjected to the image processing by the image processing unit 12.
Specifically, the image forming unit 13 includes, for example, a transport unit that transports a recording medium on which an image is formed, and a plurality of nozzles provided to face the recording surface of the recording medium transported by the transport unit. A recording head, an ink supply unit that supplies ink to the recording head, and the like, and ejects ink from a plurality of nozzles to a recording medium to form an image.

操作表示部14は、例えば、タッチパネル方式の入力表示装置や、各種の入力のためのキー、スイッチ等を備えており、ユーザーからの入力を受け付ける。中央制御部15は、操作表示部14からの入力内容に応じて処理を行い、画像形成装置1の動作を制御する。また、操作表示部14は、中央制御部15の制御下で、画像形成装置1の動作に係る各種の表示出力を行う。   The operation display unit 14 includes, for example, a touch panel type input display device, various input keys, switches, and the like, and receives input from the user. The central control unit 15 performs processing according to the input content from the operation display unit 14 and controls the operation of the image forming apparatus 1. The operation display unit 14 performs various display outputs related to the operation of the image forming apparatus 1 under the control of the central control unit 15.

中央制御部15は、画像形成装置1の各部の動作を制御する。
具体的には、中央制御部15は、例えば、CPU15a、RAM15b、ROM15c等を有し、CPU15aがROM15c等から処理内容に応じたプログラムやデータ等を読み出してRAM15bに展開し、各種の処理を実行することで画像形成装置1の各部の動作を制御する。
The central control unit 15 controls the operation of each unit of the image forming apparatus 1.
Specifically, the central control unit 15 includes, for example, a CPU 15a, a RAM 15b, a ROM 15c, and the like. The CPU 15a reads programs, data, and the like corresponding to the processing contents from the ROM 15c and develops them in the RAM 15b, and executes various processes. Thus, the operation of each unit of the image forming apparatus 1 is controlled.

図2は、画像処理部12の回路構成の一例を示す図である。
画像処理部12は、例えば、FPGA(Field-Programmable Gate Array)等の集積回路上で構築されるデジタル回路である。
画像処理部12は、画素値取得部121、代表値決定部122、LUT記憶部123、代表値変換部124、画素値割付部125等を有する。
以下、画像処理部12により行われる画像処理の一例として、色変換処理時の処理内容に係る説明を行う。
FIG. 2 is a diagram illustrating an example of a circuit configuration of the image processing unit 12.
The image processing unit 12 is a digital circuit constructed on an integrated circuit such as an FPGA (Field-Programmable Gate Array).
The image processing unit 12 includes a pixel value acquisition unit 121, a representative value determination unit 122, an LUT storage unit 123, a representative value conversion unit 124, a pixel value allocation unit 125, and the like.
Hereinafter, as an example of the image processing performed by the image processing unit 12, a description will be given of the processing content during the color conversion processing.

画素値取得部121は、画像の所定領域に含まれる複数の画素の各々の画素値を取得する。ここで、画素値とは、例えば、画素の強度又は輝度を示す値である。以下では、本実施形態で処理される画素値を構成する、画素毎の複数色(例えば、RGB)の強度又は輝度を示すデータをまとめて「画素データ」とする。
具体的には、画素値取得部121は、例えば、図2に示すように、8個のフリップフロップ回路(FF)が直列に設けられたフリップフロップ回路の列を8列分有する。即ち、画素値取得部121は、8[個]×8[ライン]=64[画素]分の画素領域に対応する記憶領域を有する。画素値取得部121は、画像データを構成する複数の画素のうち、1回(1[clk])につき1[個]×8[ライン]の画素データを取得する画素値取得処理を8回(8[clk])繰り返すことにより、8[個]×8[ライン]=64[画素]分の画素領域の画素データを取得する。1回の画素値取得処理により先に取得された1[個]×8[ライン]の画素データは、順次繰り返される画素値取得処理に伴い、図2に示す右側のFFに順次移動され、8回目の画素値取得処理が完了することにより、8[個]×8[ライン]=64[画素]分の画素領域の画素データが画素値取得部121に保持される。
ここで、画素値取得部121により取得される8[個]×8[ライン]の画素領域が画像の所定領域となる。
The pixel value acquisition unit 121 acquires each pixel value of a plurality of pixels included in a predetermined area of the image. Here, the pixel value is, for example, a value indicating the intensity or luminance of the pixel. Hereinafter, data indicating the intensity or luminance of a plurality of colors (for example, RGB) for each pixel constituting the pixel value processed in the present embodiment will be collectively referred to as “pixel data”.
Specifically, for example, as illustrated in FIG. 2, the pixel value acquisition unit 121 includes eight columns of flip-flop circuits in which eight flip-flop circuits (FFs) are provided in series. That is, the pixel value acquisition unit 121 has a storage area corresponding to a pixel area of 8 [pieces] × 8 [lines] = 64 [pixels]. The pixel value acquisition unit 121 performs pixel value acquisition processing 8 times to acquire pixel data of 1 [piece] × 8 [line] per time (1 [clk]) among a plurality of pixels constituting the image data ( 8 [clk]) is repeated to obtain pixel data of a pixel area of 8 [pieces] × 8 [lines] = 64 [pixels]. The pixel data of 1 [piece] × 8 [line] previously acquired by one pixel value acquisition process is sequentially moved to the right FF shown in FIG. By completing the pixel value acquisition process for the first time, the pixel value acquisition unit 121 holds pixel data of a pixel area of 8 [pieces] × 8 [lines] = 64 [pixels].
Here, the pixel area of 8 [pieces] × 8 [lines] acquired by the pixel value acquisition unit 121 is a predetermined area of the image.

代表値決定部122は、画素値取得部121により取得された各々の画素データから当該複数の画素の数よりも少ないグループ数に対応する画素値の代表値を決定する。本実施形態では、代表値決定部122は、画素値取得部121により取得された64[画素]の各々の画素データから、8グループに対応する8つの代表値を決定する。本実施形態の代表値決定部122により取得される8つの代表値は、それぞれ、画素データを構成する各種のデータ値、即ち、画素毎の複数色(例えば、RGB)の強度又は輝度を示す値の代表値である。   The representative value determining unit 122 determines the representative value of the pixel value corresponding to the number of groups smaller than the number of the plurality of pixels from each pixel data acquired by the pixel value acquiring unit 121. In the present embodiment, the representative value determining unit 122 determines eight representative values corresponding to eight groups from each pixel data of 64 [pixels] acquired by the pixel value acquiring unit 121. The eight representative values acquired by the representative value determining unit 122 of the present embodiment are various data values constituting pixel data, that is, values indicating the intensity or luminance of a plurality of colors (for example, RGB) for each pixel. Is a representative value.

以下、代表値決定部122による代表値の選出方法について記載する。
図3は、代表値決定部122の機能構成の一例を示すブロック図である。
代表値決定部122は、例えば、ライン切替部1001と、画素切替部1002と、分類部1003と、更新部1004と、決定部1005と、レジスター1010とを有する。また、分類部1003は、第1の判断部1006と、第2の判断部1007と、距離算出部1008と、統合部1009とを有する。
Hereinafter, a method for selecting a representative value by the representative value determining unit 122 will be described.
FIG. 3 is a block diagram illustrating an example of a functional configuration of the representative value determining unit 122.
The representative value determining unit 122 includes, for example, a line switching unit 1001, a pixel switching unit 1002, a classification unit 1003, an updating unit 1004, a determining unit 1005, and a register 1010. Further, the classification unit 1003 includes a first determination unit 1006, a second determination unit 1007, a distance calculation unit 1008, and an integration unit 1009.

以下、代表値決定部122が有する機能ブロックの各々について詳述する。
レジスター1010は、8つの代表値に対応するグループ情報を記憶する。具体的には、レジスター1010は、図3に示すように、第1のグループ情報P1、第2のグループ情報P2、第3のグループ情報P3と、第4のグループ情報P4と、第5のグループ情報P5と、第6のグループ情報P6、第7のグループ情報P7及び第8のグループ情報P8を記憶する。
第1のグループ情報〜第8のグループ情報の各々は、各グループの代表値に対応付けられる画素を振り分けるための参照値と、代表値を算出するための統計値と、各グループの代表値に対応付けられる画素を特定するための識別情報とを含む。また、各グループ情報には、第1〜第8の番号(インデックス)が割り当てられている。
Hereinafter, each of the functional blocks included in the representative value determination unit 122 will be described in detail.
The register 1010 stores group information corresponding to eight representative values. Specifically, as illustrated in FIG. 3, the register 1010 includes first group information P1, second group information P2, third group information P3, fourth group information P4, and fifth group. Information P5, sixth group information P6, seventh group information P7, and eighth group information P8 are stored.
Each of the first group information to the eighth group information includes a reference value for distributing pixels associated with the representative value of each group, a statistical value for calculating the representative value, and a representative value of each group. And identification information for specifying the associated pixel. Each group information is assigned a first to eighth number (index).

本実施の形態においては、各グループ情報の参照値は、例えば、対応する色空間(直方体)を特定するための対角点、即ち各グループの代表値に対応付けられた画素の強度又は輝度の最大値と最小値とを含む。
又は、各グループ情報の参照値は、例えば、対応する色空間(直方体)の中心点あるいは重心点を含む。
各グループ情報の統計値は、各グループの代表値に対応付けられた画素の強度又は輝度の累計を含む。
In the present embodiment, the reference value of each group information is, for example, a diagonal point for specifying the corresponding color space (cuboid), that is, the intensity or luminance of the pixel associated with the representative value of each group. Includes maximum and minimum values.
Alternatively, the reference value of each group information includes, for example, the center point or barycentric point of the corresponding color space (cuboid).
The statistical value of each group information includes the cumulative intensity or luminance of the pixels associated with the representative value of each group.

代表値決定部122は、1つのラインを構成する各画素を第1のグループ情報P1から第8のグループ情報P8の8つのグループ情報のいずれかに対応付ける対応付け処理をライン数分繰り返す。そして、代表値決定部122は、各グループ情報の統計値及び各グループ情報に対応付けられた画素の数に基づいて各グループ情報に対応する代表値を算出する。以下、詳細に説明する。   The representative value determining unit 122 repeats the association process for associating each pixel constituting one line with any of the eight group information items of the first group information P1 to the eighth group information P8. Then, the representative value determination unit 122 calculates a representative value corresponding to each group information based on the statistical value of each group information and the number of pixels associated with each group information. Details will be described below.

代表値決定部122は、まず、レジスター1010から第1のグループ情報P1〜第8のグループ情報を読み出す。なお、対応付け処理の開始時点(又はリセット直後)では、全てのグループ情報は、未だ参照値が設定されていないグループ情報であり、代表値決定部122は8つのグループ情報に対応する引数等を設定して各グループ情報の枠組みを設ける。   The representative value determining unit 122 first reads the first group information P1 to the eighth group information from the register 1010. Note that at the start of the association process (or immediately after resetting), all group information is group information for which reference values have not yet been set, and the representative value determination unit 122 provides arguments and the like corresponding to the eight group information. Set up a framework for each group information.

次に、代表値決定部122は、当該第1のグループ情報P1〜第8のグループ情報P8と、グループ情報への対応付けの対象となるラインに含まれる各画素の画素データとに基づいて、各画素を第1のグループ情報から第8のグループ情報のいずれかと対応付ける。以下、グループ情報への対応付けの対象となる画素(又は画素データ)を単に「対象となる画素(データ)」と記載する。   Next, the representative value determining unit 122, based on the first group information P1 to the eighth group information P8, and the pixel data of each pixel included in the line to be associated with the group information, Each pixel is associated with any of the first group information to the eighth group information. Hereinafter, a pixel (or pixel data) to be associated with group information is simply referred to as “target pixel (data)”.

ライン切替部1001は、画素値取得部121から画素領域を構成する各ラインの画素データを受け付けて、1ライン分の画素データ(ラインデータ)を画素切替部1002に入力する。ライン切替部1001は、画素切替部1002からのライン終了通知を受け付けて、次のラインデータを画素切替部1002に入力する。ライン切替部1001は、画素値取得部121により取得された全てのラインデータを分類部1003に入力すると、決定部1005にブロック終了通知を送る。   The line switching unit 1001 receives pixel data of each line constituting the pixel region from the pixel value acquisition unit 121 and inputs pixel data (line data) for one line to the pixel switching unit 1002. The line switching unit 1001 receives a line end notification from the pixel switching unit 1002 and inputs the next line data to the pixel switching unit 1002. When the line switching unit 1001 inputs all the line data acquired by the pixel value acquisition unit 121 to the classification unit 1003, the line switching unit 1001 sends a block end notification to the determination unit 1005.

画素切替部1002は、ライン切替部1001からラインデータを受け付けて、1つの画素の画素データを分類部1003に入力する。画素切替部1002は、更新部1004からの画素終了通知を受け付ける度に、順次次の画素データを分類部1003に入力する。画素切替部1002は、ラインデータの全ての画素データを分類部1003に入力すると、ライン切替部1001にライン終了通知を送る。
即ち、画素切替部1002が1つのラインに含まれる画素単位での対応付け処理の進行を管理し、ライン切替部1001がライン単位での対応付け処理の進行を管理して、対象となる画素データとグループ情報とのいずれかの対応付けの完了に応じて対象となる画素データを次の画素データに順次切り替える。
The pixel switching unit 1002 receives line data from the line switching unit 1001 and inputs pixel data of one pixel to the classification unit 1003. Each time the pixel switching unit 1002 receives a pixel end notification from the update unit 1004, the pixel switching unit 1002 sequentially inputs the next pixel data to the classification unit 1003. When all the pixel data of the line data is input to the classification unit 1003, the pixel switching unit 1002 sends a line end notification to the line switching unit 1001.
In other words, the pixel switching unit 1002 manages the progress of the association process in units of pixels included in one line, and the line switching unit 1001 manages the progress of the association process in units of lines, and the target pixel data The target pixel data is sequentially switched to the next pixel data in accordance with the completion of any one of the associations with the group information.

分類部1003の第1の判断部1006は、対象となる画素データに含まれる画素の強度が、第1のグループ情報P1〜第8のグループ情報P8の参照値に含まれるか否かを判断する。ここで、「参照値に含まれる」とは、例えば、対象となる画素の強度が、参照値に含まれる画素の強度(又は輝度)の最大値と最小値により示される画素の強度(又は輝度)の範囲内であることをさす。   The first determination unit 1006 of the classification unit 1003 determines whether or not the pixel intensity included in the target pixel data is included in the reference values of the first group information P1 to the eighth group information P8. . Here, “included in the reference value” means, for example, the intensity (or luminance) of the pixel indicated by the maximum value and the minimum value of the intensity (or luminance) of the pixel included in the reference value. ) Is within the range.

分類部1003の第2の判断部1007は、対象となる画素データに含まれる画素の強度が、第1のグループ情報〜第8のグループ情報の参照値に含まれない場合、未だ参照値が設定されていないグループ情報が存在するか否かを判断する。   The second determination unit 1007 of the classification unit 1003 sets the reference value when the intensity of the pixel included in the target pixel data is not included in the reference values of the first group information to the eighth group information. It is determined whether there is group information that has not been set.

分類部1003は、対象となる画素データに含まれる画素の強度が、第1のグループ情報〜第8のグループ情報の参照値に含まれる場合、当該画素を当該参照値に対応するグループ情報と対応付ける。   When the intensity of the pixel included in the target pixel data is included in the reference values of the first group information to the eighth group information, the classification unit 1003 associates the pixel with the group information corresponding to the reference value. .

また、分類部1003は、対象となる画素データに含まれる画素の強度が、第1のグループ情報〜第8のグループ情報の参照値に含まれない場合であって、未だ参照値が設定されていないグループ情報が存在する場合、対象となる画素を未だ参照値が設定されていないグループ情報と対応付ける。   The classification unit 1003 is a case where the intensity of the pixel included in the target pixel data is not included in the reference values of the first group information to the eighth group information, and the reference value is still set. If there is no group information, the target pixel is associated with group information for which no reference value has been set yet.

よって、対応付け処理の開始後(又はリセット直後)、最初に対象となった画素は自動的に第1のグループ情報と対応付けられる。
その後、2番目に対象となった画素の画素データに含まれる画素の強度が、第1のグループ情報の参照値に含まれる場合(例えば、最初に対象となった画素と2番目に対象となった画素の画素データが同一であった場合)、2番目に対象となった画素は第1のグループ情報と対応付けられる。一方、2番目に対象となった画素の画素データに含まれる画素の強度が、第1のグループ情報の参照値に含まれない場合、まだ第2のグループ情報が未だ参照値が設定されていないグループ情報であることから、2番目に対象となった画素は第2のグループ情報と対応付けられる。
3番目以降に対象となった画素についても同様に処理が繰り返され、最低でも8番目までは当該ルーチンに収まる。
Therefore, after starting the association process (or immediately after resetting), the first target pixel is automatically associated with the first group information.
Then, when the intensity of the pixel included in the pixel data of the second target pixel is included in the reference value of the first group information (for example, the first target pixel and the second target) When the pixel data of the selected pixels are the same), the second target pixel is associated with the first group information. On the other hand, when the intensity of the pixel included in the pixel data of the second target pixel is not included in the reference value of the first group information, the reference value is not yet set in the second group information. Since it is group information, the second target pixel is associated with the second group information.
The same processing is repeated for the third and subsequent pixels, and at least the eighth pixel fits into the routine.

ここで、分類部1003の距離算出部1008は、対象となる画素データに含まれる画素の強度が第1のグループ情報〜第8のグループ情報の参照値に含まれず、かつ、未だ参照値が設定されていないグループ情報が存在しない場合、全てのグループ情報の参照値どうしの色空間における距離(第1の距離)を算出する。
また、距離算出部1008は、対象となる画素の強度と、全てのグループ情報の参照値の各々との色空間における距離(第2の距離)を算出する。
Here, the distance calculation unit 1008 of the classification unit 1003 does not include the pixel intensity included in the target pixel data in the reference values of the first group information to the eighth group information, and the reference value is still set. If there is no group information that has not been set, the distance (first distance) in the color space between the reference values of all the group information is calculated.
Further, the distance calculation unit 1008 calculates the distance (second distance) in the color space between the intensity of the target pixel and each of the reference values of all the group information.

本実施形態の場合、第1の距離は、8つのグループ情報の参照値のうち、2つのグループの参照値どうしを組み合わせた場合の色空間における互いの距離となる。よって、距離算出部1008は、第1の距離として28通りの距離を算出する。
また、本実施形態の場合、第2の距離は、対象となる1つの画素の強度と、8つのグループ情報の参照値の各々との距離となる。よって、距離算出部1008は、第2の距離として8通りの距離を算出する。
In the case of the present embodiment, the first distance is a mutual distance in the color space when the reference values of two groups among the reference values of the eight group information are combined. Therefore, the distance calculation unit 1008 calculates 28 different distances as the first distance.
In the present embodiment, the second distance is a distance between the intensity of one target pixel and each of the reference values of the eight group information. Therefore, the distance calculation unit 1008 calculates eight different distances as the second distance.

分類部1003の統合部1009は、算出された第1の距離と第2の距離とを比較し、最も短い距離が第1の距離に含まれる場合、対応する参照値に対する2つのグループ情報を統合して、新たな1つのグループ情報を生成する。言い換えれば、統合部1009は、色差が最小の組み合わせとなる2つのグループ情報を統合する。   The integration unit 1009 of the classification unit 1003 compares the calculated first distance and the second distance, and if the shortest distance is included in the first distance, integrates two group information for the corresponding reference values. Then, one new group information is generated. In other words, the integration unit 1009 integrates two group information that is a combination with the smallest color difference.

2つのグループ情報の統合に際し、統合部1009は、番号(インデックス)の小さいグループ情報を番号の大きいグループ情報にマージする。代表値決定部122は、マージ後のグループ情報に関し、後述する「どの画素が入っているかを示すフラグ」についてのOR処理を行い、「CMYKの強度の累計」を合算し、「画素数」を合算する。また、代表値決定部122は、マージされるグループ情報どうしのRGBの強度の最大値と最小値とを比較し、マージ後のグループ情報の最大値と最小値を更新する。   When integrating two pieces of group information, the integration unit 1009 merges group information with a small number (index) into group information with a large number. The representative value determination unit 122 performs an OR process on a “flag indicating which pixel is included”, which will be described later, on the group information after merging, adds up “cumulative CMYK intensity”, and sets the “number of pixels”. Add up. In addition, the representative value determination unit 122 compares the maximum and minimum RGB intensity values of the group information to be merged, and updates the maximum and minimum values of the group information after merging.

分類部1003は、統合部1009が、2つのグループ情報を統合して新たな1つのグループ情報を生成した際、即ち、既存の8つのグループ情報が7つのグループ情報に減少した際に、未だ画素が対応付けられていない新たなグループ情報を生成する。即ち、分類部1003は、新たに8つ目のグループ情報を生成して、対象となる画素を当該新たな8つ目のグループ情報と対応付ける。   When the integration unit 1009 generates two new pieces of group information by integrating the two pieces of group information, that is, when the existing eight pieces of group information are reduced to seven pieces of group information, the classification unit 1003 still has pixels. New group information not associated with is generated. That is, the classification unit 1003 newly generates eighth group information, and associates the target pixel with the new eighth group information.

一方、分類部1003は、第1の距離と第2の距離との中で、最も短い距離が第2の距離に含まれる場合、対象となる画素の強度との距離が最も短い距離として特定された参照値を含むグループ情報に対象となる画素を対応付ける。   On the other hand, when the shortest distance is included in the second distance among the first distance and the second distance, the classification unit 1003 is specified as the shortest distance with the intensity of the target pixel. The target pixel is associated with the group information including the reference value.

分類部1003は、画素とグループ情報とを対応付けると、当該画素を特定するための識別情報と画素の強度と当該画素が対応付けられたグループ情報の番号(1〜8のいずれか)とを示す情報を更新部1004に受け渡す。   When the classification unit 1003 associates the pixel with the group information, the classification unit 1003 indicates identification information for specifying the pixel, the intensity of the pixel, and the number of the group information associated with the pixel (any one of 1 to 8). The information is transferred to the update unit 1004.

更新部1004は、分類部1003から当該画素を特定するための識別情報と画素の強度と当該画素が対応付けられたグループ情報の番号とを受け付けて、画素の強度に基づいて分類先のグループ情報の参照値と統計値とを更新する。更新部1004は、グループ情報の参照値と統計値とを更新すると、画素終了通知を画素切替部1002に送る。   The update unit 1004 receives identification information for identifying the pixel, the intensity of the pixel, and the number of group information associated with the pixel from the classification unit 1003, and the group information of the classification destination based on the intensity of the pixel Update the reference value and statistic value. When updating the reference value and the statistical value of the group information, the update unit 1004 sends a pixel end notification to the pixel switching unit 1002.

例えば、更新部1004は、画素データを構成する各色の強度に基づいて、画素が対応付けられたグループ情報の各色の強度の最大値あるいは最小値を更新する。これによって、当該グループ情報の参照値に含まれる画素の強度の範囲が大きくなる。
また、更新部1004は、画素データを構成する各色の強度に基づいて、画素が対応付けられたグループ情報の各色の強度の累計及び画素数を更新する。
For example, the update unit 1004 updates the maximum value or the minimum value of the intensity of each color of the group information associated with the pixel based on the intensity of each color constituting the pixel data. Thereby, the range of the intensity of the pixel included in the reference value of the group information is increased.
Further, the update unit 1004 updates the total of the intensity of each color and the number of pixels of the group information associated with the pixel based on the intensity of each color constituting the pixel data.

決定部1005は、ライン切替部1001からブロック終了通知を受け付けて、第1のグループ情報P1〜第8のグループ情報P8の統計値に基づいて、画素とグループ情報との対応付けの結果としての代表値及び各代表値に対応付けられた画素を示す情報を出力する。
即ち、決定部1005は、例えば、各グループ情報の統計値に含まれる各色の強度の累計を各グループ情報に対応付けられた画素数で割った値を代表値として算出し、代表値変換部124に出力する。また、決定部1005は、各グループ情報から算出された代表値の各々の算出元となったグループ情報に対応付けられた画素を示す情報を、各代表値に対応付けられた画素を示す情報として出力する。
The determination unit 1005 receives a block end notification from the line switching unit 1001 and represents the result of the association between the pixel and the group information based on the statistical values of the first group information P1 to the eighth group information P8. Information indicating the value and the pixel associated with each representative value is output.
That is, for example, the determination unit 1005 calculates, as a representative value, a value obtained by dividing the total of the intensities of the colors included in the statistical value of each group information by the number of pixels associated with each group information, and the representative value conversion unit 124. Output to. Further, the determination unit 1005 uses information indicating pixels associated with the group information that is a calculation source of each representative value calculated from each group information as information indicating pixels associated with each representative value. Output.

図4は、代表値と所定領域内の各画素との対応付けのイメージ図である。図4に示された8[個]×8[ライン]の画素領域を構成する各画素に記載された符号は、各画素が対応付けられたグループ情報を示す。
上記の代表値決定部122による処理により、8[個]×8[ライン]の画素領域に含まれる64[個]の画素は、図4に示すように、それぞれ第1のグループ情報P1〜第8のグループ情報P8のいずれかと対応付けられる。
よって、代表値決定部122は、画像の所定領域に含まれる複数の画素を当該複数の画素の数よりも少ない数のグループのいずれかと対応付ける対応付け手段として機能する。
また、代表値決定部122は、各グループに対応付けられた画素の画素値に基づいて各グループの代表値を決定する決定手段として機能する。
FIG. 4 is an image diagram of the correspondence between the representative value and each pixel in the predetermined area. The code | symbol described in each pixel which comprises the pixel area of 8 [piece] * 8 [line] shown in FIG. 4 shows the group information with which each pixel was matched.
As a result of the processing by the representative value determining unit 122, 64 [pixels] pixels included in the pixel area of 8 [pixels] × 8 [lines] have first group information P1 to P1th as shown in FIG. 8 associated with any one of the group information P8.
Therefore, the representative value determining unit 122 functions as an association unit that associates a plurality of pixels included in a predetermined area of the image with any of a group having a number smaller than the number of the plurality of pixels.
The representative value determining unit 122 functions as a determining unit that determines the representative value of each group based on the pixel value of the pixel associated with each group.

LUT記憶部123は、画像データを構成する各画素が取りうる色変換処理前の画素値の各々と色変換処理後の画素値の各々とが対応付けられたLUTを記憶するメモリーである。
ここで、LUT記憶部123は、所定の画像処理(例えば、色変換処理)前の画素値に対する所定の画像処理後の画素値を記憶する記憶手段として機能する。
The LUT storage unit 123 is a memory that stores an LUT in which each pixel value before color conversion processing that can be taken by each pixel constituting image data is associated with each pixel value after color conversion processing.
Here, the LUT storage unit 123 functions as a storage unit that stores pixel values after predetermined image processing with respect to pixel values before predetermined image processing (for example, color conversion processing).

本実施形態において、LUT記憶部123に記憶されているLUTは、補間処理が想定されたLUTである。即ち、LUT記憶部123に記憶されているLUTは、色変換処理前の各画素が取り得る一部の画素値(例えば、RGB色空間の画素値)と当該一部の画素値に対応する色変換処理後の画素値(例えば、CMYK色空間の画素値)とが対応付けられたLUTである。   In the present embodiment, the LUT stored in the LUT storage unit 123 is an LUT for which interpolation processing is assumed. In other words, the LUT stored in the LUT storage unit 123 is a partial pixel value (for example, a pixel value in the RGB color space) that can be taken by each pixel before the color conversion process and a color corresponding to the partial pixel value. The LUT is associated with pixel values after conversion processing (for example, pixel values in the CMYK color space).

代表値変換部124は、代表値決定部122により選出された代表値の色変換処理を行う。
具体的には、代表値変換部124は、代表値が示す画素値を色変換処理前の画素値として、当該画素値に対応する色変換処理後の画素値を取得する。代表値変換部124は、LUT記憶部123に記憶されているLUTを参照し、必要に応じて補間演算を行って代表値が示す画素値に色変換処理を施し、色変換処理後の画素値を取得する。
ここで、代表値変換部124は、代表値に対応する所定の画像処理(例えば、色変換処理)後の画素値をLUT記憶部123から取得する取得手段として機能する。
The representative value conversion unit 124 performs color conversion processing of the representative value selected by the representative value determination unit 122.
Specifically, the representative value conversion unit 124 uses the pixel value indicated by the representative value as the pixel value before the color conversion process, and acquires the pixel value after the color conversion process corresponding to the pixel value. The representative value conversion unit 124 refers to the LUT stored in the LUT storage unit 123, performs an interpolation operation as necessary, performs a color conversion process on the pixel value indicated by the representative value, and a pixel value after the color conversion process To get.
Here, the representative value conversion unit 124 functions as an acquisition unit that acquires the pixel value after predetermined image processing (for example, color conversion processing) corresponding to the representative value from the LUT storage unit 123.

本実施形態の代表値変換部124は、画素値取得部121による1回の画素値取得処理に伴い取得された64[画素]に基づいて代表値決定部122により選出された8グループの代表値の各々に対して色変換処理を施す。即ち、代表値変換部124は、8グループの代表値の各々の色変換処理のため、LUT記憶部123に8回アクセスする。   The representative value conversion unit 124 according to the present embodiment includes eight groups of representative values selected by the representative value determination unit 122 based on 64 [pixels] acquired with one pixel value acquisition process by the pixel value acquisition unit 121. A color conversion process is performed on each of the above. That is, the representative value conversion unit 124 accesses the LUT storage unit 123 eight times for color conversion processing of each of the eight groups of representative values.

画素値割付部125は、画素値取得部121による1回の画素値取得処理に伴い取得された64[画素]により構成される画素領域に対して、代表値変換部124により取得された画素値、即ち、代表値に色変換処理が施された画素値を割り付ける。
即ち、画素値割付部125は、各グループに対応付けられた画素の画素値を、それぞれのグループの代表値に色変換処理が施された画素値に置き換える。
The pixel value assigning unit 125 obtains the pixel value acquired by the representative value conversion unit 124 for the pixel area configured by 64 [pixels] acquired by one pixel value acquiring process by the pixel value acquiring unit 121. That is, the pixel value subjected to the color conversion process is assigned to the representative value.
That is, the pixel value assigning unit 125 replaces the pixel value of the pixel associated with each group with a pixel value obtained by performing color conversion processing on the representative value of each group.

画素値割付部125による画素値の割り付けにより、画素値取得部121による8回の画素値取得処理に伴い取得された64[画素]により構成される画素領域に含まれる各画素の画素値は、各々の画素が対応付けられたグループ情報から得られた代表値に対して色変換処理が施された画素値となる。画像処理部12は、画素値割付部125による画素値の割り付けを以って、所定領域に対する色変換処理を完了する。
ここで、画素値割付部125は、各グループに対応付けられた画素の画素値を各グループの代表値に対応する所定の画像処理後の画素値とする処理手段として機能する。
The pixel values assigned by the pixel value assigning unit 125, the pixel values of the respective pixels included in the pixel area configured by 64 [pixels] acquired by the pixel value acquiring unit 121 by the pixel value acquiring process eight times, The pixel value is obtained by performing color conversion processing on the representative value obtained from the group information in which each pixel is associated. The image processing unit 12 completes the color conversion processing for the predetermined area by the pixel value allocation by the pixel value allocation unit 125.
Here, the pixel value assigning unit 125 functions as a processing unit that sets the pixel value of the pixel associated with each group to a pixel value after predetermined image processing corresponding to the representative value of each group.

画像処理部12は、色変換処理に際して、上記の画素値取得部121、代表値決定部122、LUT記憶部123、代表値変換部124、画素値割付部125により、印刷ジョブに含まれる画像データから画像の所定領域(例えば、8[個]×8[ライン]の画素領域)を順次切り出して色変換処理を行う。また、画像処理部12は、1つの所定領域に対する色変換処理が終了すると、第1のグループ情報P1〜第8のグループ情報P8に含まれる各種の情報をリセットして初期化する。即ち、代表値の決定及び各代表値に対応付けられる画素の管理は、所定領域ごとに個別に行われる。   In the color conversion process, the image processing unit 12 uses the pixel value acquisition unit 121, the representative value determination unit 122, the LUT storage unit 123, the representative value conversion unit 124, and the pixel value allocation unit 125 to include image data included in the print job. A predetermined region (for example, 8 [pieces] × 8 [line] pixel region) is sequentially cut out from the image and color conversion processing is performed. In addition, when the color conversion process for one predetermined region is completed, the image processing unit 12 resets and initializes various types of information included in the first group information P1 to the eighth group information P8. That is, the determination of the representative value and the management of the pixels associated with each representative value are performed individually for each predetermined area.

なお、図2及び上記の説明にて示したように、画素値取得部121は、各ラインを構成する8つの画素に対応してフリップフロップ回路が8個直列に接続されており、1ラインの画素の取得に8[clk]の処理時間を費やす。
また、代表値変換部124は、8グループの代表値に対応する色変換処理後の画素値を取得するためにグループ数に応じた回数(8回)だけLUT記憶部123にアクセスすることから、当該回数に応じた処理時間、即ち、8[clk]の処理時間を費やす。
ここで、画素値取得部121による処理時間と、代表値変換部124による処理時間とが同一であることから、画像処理部12は、画素値取得部121による画素値の取得と代表値変換部124による代表値の変換とをそれぞれ並行させることができ、ハードウェア上でのパイプライン処理を実現することができる。
As shown in FIG. 2 and the above description, the pixel value acquisition unit 121 has eight flip-flop circuits connected in series corresponding to the eight pixels constituting each line, and one line of It takes 8 [clk] processing time to acquire the pixels.
Further, the representative value conversion unit 124 accesses the LUT storage unit 123 a number of times according to the number of groups (eight times) in order to obtain pixel values after color conversion processing corresponding to the representative values of eight groups. Processing time corresponding to the number of times, that is, processing time of 8 [clk] is consumed.
Here, since the processing time by the pixel value acquisition unit 121 and the processing time by the representative value conversion unit 124 are the same, the image processing unit 12 acquires the pixel value by the pixel value acquisition unit 121 and the representative value conversion unit. The conversion of the representative value by 124 can be performed in parallel, and pipeline processing on hardware can be realized.

以上、上記の説明においては、画像処理部12の具体的な処理内容の一例として、色変換処理について記載したが、画像処理部12は、各画素の画素値等を個別に参照する工程を含む各種の画像処理について、上記の色変換処理と同様に所定領域内の代表値を決定し、各代表値に対応する画像処理後の画素値を取得して各代表値に対応付けられた各画素の画素値を置き換えることにより、所定領域の各画素に画像処理を施した状態とする。
言い換えれば、画像処理部12は、画像処理の種類に応じたLUTをLUT123に記憶させておき、画像に施される画像処理の種類に応じて参照するLUTを切り替えることにより、各種の画像処理を行うことができる。
In the above description, the color conversion process has been described as an example of the specific processing contents of the image processing unit 12, but the image processing unit 12 includes a step of individually referring to the pixel value and the like of each pixel. For various types of image processing, as in the color conversion processing described above, representative values in a predetermined area are determined, and pixel values after image processing corresponding to the respective representative values are acquired, and each pixel associated with each representative value By substituting the pixel values, the image processing is performed on each pixel in the predetermined area.
In other words, the image processing unit 12 stores an LUT corresponding to the type of image processing in the LUT 123, and switches various types of image processing by switching the LUT to be referred to according to the type of image processing performed on the image. It can be carried out.

以下、画像処理部12による画像処理の流れについて、図5〜図7のフローチャートを参照して説明する。
画像処理部12は、まず、画素値取得部121により所定の画素領域に対応する各画素の画素値を取得する(ステップS1)。
次に、画像処理部12は、代表値取得部122により代表値の取得を行う(ステップS100)。ここで、画像処理部12は、所定数(例えば、8つ)の代表値と、各代表値と所定の画素領域を構成する各画素との対応付けを示す情報とを取得する。
次に、画像処理部12は、代表値変換部124が、LUT記憶部123にアクセスして代表値に対応する画像処理後の画素値(補正値)を取得する(ステップS2)。
そして、画像処理部12は、画素値割付部125が、各代表値と対応付けられた画素の画素値を、対応付けられた代表値の補正値とする(ステップS3)ことで画像処理を行う。
Hereinafter, the flow of image processing by the image processing unit 12 will be described with reference to the flowcharts of FIGS.
First, the image processing unit 12 acquires the pixel value of each pixel corresponding to a predetermined pixel region by the pixel value acquisition unit 121 (step S1).
Next, the image processing unit 12 acquires a representative value by the representative value acquiring unit 122 (step S100). Here, the image processing unit 12 acquires a predetermined number (for example, eight) of representative values and information indicating correspondence between each representative value and each pixel constituting a predetermined pixel region.
Next, in the image processing unit 12, the representative value conversion unit 124 accesses the LUT storage unit 123 to acquire a pixel value (correction value) after image processing corresponding to the representative value (step S2).
Then, in the image processing unit 12, the pixel value assigning unit 125 performs image processing by setting the pixel value of the pixel associated with each representative value as the correction value of the associated representative value (step S3). .

その後、画像処理部12は、画像データを構成する全ての画素領域に対する画像処理が完了したか否か判定する(ステップS4)。ここで、全ての画素領域に対する画像処理が完了していないと判定された場合(ステップS4:NO)、画像処理部12は、ステップS1の処理に移行し、画像処理を繰り返す。
一方、ステップS4にて、画像データを構成する全ての画素領域に対する画像処理が完了したと判定された場合(ステップS4:YES)、画像処理部12は、画像処理を終了する。
Thereafter, the image processing unit 12 determines whether or not the image processing for all the pixel areas constituting the image data has been completed (step S4). Here, when it is determined that the image processing for all the pixel regions has not been completed (step S4: NO), the image processing unit 12 proceeds to the processing of step S1 and repeats the image processing.
On the other hand, when it is determined in step S4 that the image processing has been completed for all the pixel areas constituting the image data (step S4: YES), the image processing unit 12 ends the image processing.

以下、ステップS100に示した、代表値の取得処理の流れについて、図6、図7のフローチャートを参照して説明する。   Hereinafter, the flow of the representative value acquisition process shown in step S100 will be described with reference to the flowcharts of FIGS.

まず、ライン切替部1001として機能する代表値決定部122は、対象となる画素領域内の画素を振り分けるためのグループ情報を準備する(ステップS101)。より詳細には、代表値決定部122は、レジスター1010の一時退避領域から、対象となるブロックのための第1のグループ情報P1〜第8のグループ情報P8(一時情報)を読み出して、レジスター1010の作業領域に格納する。なお、レジスター1010の一時退避領域とレジスター1010の作業領域とは、異なる記憶装置によって実現されてもよいし、同一の記憶装置の異なるエリアによって実現されてもよい。   First, the representative value determining unit 122 functioning as the line switching unit 1001 prepares group information for distributing pixels in a target pixel region (step S101). More specifically, the representative value determining unit 122 reads the first group information P1 to the eighth group information P8 (temporary information) for the target block from the temporary save area of the register 1010, and registers 1010. Stored in the work area. Note that the temporary save area of the register 1010 and the work area of the register 1010 may be realized by different storage devices, or may be realized by different areas of the same storage device.

分類部1003として機能する代表値決定部122は、対象となるラインの画素(8画素)とグループ情報との対応付け処理を実行する(ステップS200)。対応付け処理(ステップS200)については後述する。   The representative value determining unit 122 functioning as the classifying unit 1003 executes a process of associating the target line pixels (eight pixels) with the group information (step S200). The association process (step S200) will be described later.

代表値決定部122は、対象となるラインの8画素の対応付け処理が終了すると、レジスター1010の作業領域から、次のラインに渡すデータ(対象となる画素領域のための第1のグループ情報〜第8のグループ情報)を読み出して、当該データをレジスター1010の一時退避領域に格納する(ステップS102)。   When the process of associating the 8 pixels of the target line is completed, the representative value determining unit 122 transfers data (first group information for the target pixel area to the next line) from the work area of the register 1010 to the next line. (Eighth group information) is read and the data is stored in the temporary save area of the register 1010 (step S102).

より詳細には、ステップS102は、次のラインの処理を行うために一旦データを退避させるための処理である。レジスター1010は、8画素の対応付け処理終了後、グループ情報毎の参照値、統計値及び識別情報、即ち、グループ情報毎の「RGBの強度の最大値と最小値」、グループ情報毎の「RGBの強度の累計」、グループ情報毎の「グループ情報に対応付けられた画素の数」、各画素が対応付けられたグループ情報の番号(インデックス)を、次のラインの処理へと引き継ぐデータとして、次のラインの各画素の対応付け処理が開始されるまで保存する。   More specifically, step S102 is a process for temporarily saving data in order to perform the process for the next line. After completing the association process of 8 pixels, the register 1010 displays the reference value, statistical value, and identification information for each group information, that is, “maximum and minimum values of RGB intensity” for each group information, and “RGB for each group information. As the data to be taken over to the processing of the next line, the “total number of intensity”, the “number of pixels associated with the group information” for each group information, and the group information number (index) associated with each pixel, The data is stored until the association process for each pixel in the next line is started.

代表値決定部122は、S102、S200、S104において対象となったライン以降にさらにラインが存在するか否かを判断する(ステップS103)。代表値決定部122は、S102、S200、S104において対象となったライン以降にさらにラインが存在する場合(ステップS103:YES)、ステップS101からの処理を繰り返す。   The representative value determining unit 122 determines whether or not there are more lines after the target lines in S102, S200, and S104 (step S103). The representative value determination unit 122 repeats the processing from step S101 when there are more lines after the target line in S102, S200, and S104 (step S103: YES).

一方、代表値決定部122は、S102、S200、S104において対象となったライン以降にラインが存在しない場合(ステップS103:NO)、所定の画素領域の全てのライン(例えば、8ライン分、64画素)の各画素とグループ情報とのいずれかとの対応付けが完了したか否かを判断する(ステップS104)。代表値決定部122は、全ラインの各画素とグループ情報のいずれかとの対応付けが完了していない場合(ステップS104:NO)、ステップS101からの処理を繰り返す。   On the other hand, when there is no line after the target line in S102, S200, and S104 (step S103: NO), the representative value determining unit 122 sets all lines (for example, 8 lines, 64 lines) in a predetermined pixel area. It is determined whether or not the association between each pixel of pixel) and any of the group information is completed (step S104). The representative value determination unit 122 repeats the processing from step S101 when the association between each pixel of all lines and any of the group information is not completed (step S104: NO).

一方、代表値決定部122は、全ライン分の各画素とグループ情報のいずれかとの対応付けが完了した場合(ステップS104:YES)、各グループ情報の統計値に含まれる各色の強度の累計を各グループ情報に対応付けられた画素数で割った値を代表値として算出して出力すると共に、各グループ情報から算出された代表値の各々の算出元となったグループ情報に対応付けられた画素を示す情報を各代表値に対応付けられた画素を示す情報として出力する(ステップS105)。   On the other hand, when the association between each pixel for all lines and any of the group information is completed (step S104: YES), the representative value determining unit 122 calculates the total of the intensities of the respective colors included in the statistical value of each group information. The value divided by the number of pixels associated with each group information is calculated and output as a representative value, and the pixel associated with the group information from which each representative value calculated from each group information is calculated Is output as information indicating the pixel associated with each representative value (step S105).

以下、ステップS200に示した、対象となる画素とグループ情報との対応付け処理について、図7のフローチャートを参照して説明する。   Hereinafter, the process of associating the target pixel with the group information shown in step S200 will be described with reference to the flowchart of FIG.

まず、分類部1003として機能する代表値決定部122は、対象となる画素データに含まれる画素の強度が、第1のグループ情報〜第8のグループ情報の参照値に含まれるか否かを判断する(ステップS201)。   First, the representative value determination unit 122 functioning as the classification unit 1003 determines whether or not the intensity of the pixel included in the target pixel data is included in the reference values of the first group information to the eighth group information. (Step S201).

対象となる画素データに含まれる画素の強度が第1のグループ情報〜第8のグループ情報の参照値に含まれる場合(ステップS201:YES)、代表値決定部122は、当該画素を当該参照値に対応するグループ情報と対応付ける(ステップS202)。
代表値決定部122は、S203からの処理を実行する。
When the intensity of the pixel included in the target pixel data is included in the reference values of the first group information to the eighth group information (step S201: YES), the representative value determining unit 122 sets the pixel as the reference value. Is associated with the group information corresponding to (step S202).
The representative value determining unit 122 executes the processing from S203.

また、更新部1004が、対象となる画素を含んだグループ情報の参照値、統計値及び識別情報を更新する。   Further, the update unit 1004 updates the reference value, statistical value, and identification information of the group information including the target pixel.

一方、ステップS201にて対象となる画素データに含まれる画素の強度が第1のグループ情報〜第8のグループ情報の参照値に含まれない場合(ステップS201:NO)、代表値決定部122は、未だ参照値が設定されていないグループ情報が存在するか否かを判断する(ステップS204)。   On the other hand, when the pixel intensity included in the target pixel data in step S201 is not included in the reference values of the first group information to the eighth group information (step S201: NO), the representative value determining unit 122 It is then determined whether there is group information for which no reference value has been set yet (step S204).

ここで、未だ参照値が設定されていないグループ情報が存在する場合(ステップS204:YES)、代表値決定部122は、対象となる画素を当該グループ情報と対応付ける(ステップS205)。なお、代表値決定部122は、例えば、より若い番号のグループ情報から順番に画素と対応付ける。   Here, when there is group information for which a reference value has not yet been set (step S204: YES), the representative value determining unit 122 associates the target pixel with the group information (step S205). Note that the representative value determination unit 122 associates the pixels with the pixels in order from, for example, group information having a lower number.

ここでも、対象となる画素が対応付けられたグループ情報の参照値、統計値及び識別情報が更新される。代表値決定部122は、ステップS203からの処理を実行する。   Also here, the reference value, statistical value, and identification information of the group information associated with the target pixel are updated. The representative value determining unit 122 executes the processing from step S203.

未だ参照値が設定されていないグループ情報が存在しない場合(ステップS204:NO)、代表値決定部122は、全てのグループ情報に関する参照値どうしの色空間における第1の距離を算出する。また、距離算出部1008は、対象となる画素の強度と、各グループ情報の参照値との色空間における第2の距離を算出する。   When there is no group information for which no reference value is set yet (step S204: NO), the representative value determining unit 122 calculates a first distance in the color space between reference values for all group information. The distance calculation unit 1008 calculates a second distance in the color space between the intensity of the target pixel and the reference value of each group information.

代表値決定部122は、第1の距離と第2の距離の中で、第1の距離が最も距離が短い場合、対応する参照値に関する2つのグループ情報を統合して、新たな1つのグループ情報を生成する(ステップS206)。そして、代表値決定部122は、未だ画素が対応付けられていない新たなグループ情報を生成して、対象となる画素を当該新たなグループ情報と対応付ける。
一方、代表値決定部122は、第1の距離と第2の距離との中で、第2の距離が最も距離が短い場合、対応する参照値のグループ情報と対象となる画素とを対応付ける。代表値決定部122は、ステップS203からの処理を実行する。
When the first distance is the shortest among the first distance and the second distance, the representative value determination unit 122 integrates two group information related to the corresponding reference values to create a new group. Information is generated (step S206). Then, the representative value determination unit 122 generates new group information that is not yet associated with a pixel, and associates the target pixel with the new group information.
On the other hand, when the second distance is the shortest among the first distance and the second distance, the representative value determining unit 122 associates the group information of the corresponding reference value with the target pixel. The representative value determining unit 122 executes the processing from step S203.

代表値決定部122は、グループ情報に対応付けられた画素の画素データに基づき、グループ情報の参照値、統計値及び識別情報を更新する。   The representative value determination unit 122 updates the reference value, the statistical value, and the identification information of the group information based on the pixel data of the pixels associated with the group information.

ステップS203において、代表値決定部122は、1ブロックに含まれる8画素の各々とグループ情報との対応付けが終了したか否かを判断する(ステップS203)。8画素の各々とグループ情報との対応付けが終了した場合(ステップS203:YES)、代表値決定部122は、対応付け処理を終了する。一方、8画素の各々とグループ情報との対応付けが終了していない場合(ステップS203:NO)、代表値決定部122は、ステップS201からの処理を繰り返す。   In step S203, the representative value determining unit 122 determines whether or not the association between each of the 8 pixels included in one block and the group information has been completed (step S203). When the association between each of the 8 pixels and the group information is completed (step S203: YES), the representative value determining unit 122 ends the association process. On the other hand, when the association between each of the 8 pixels and the group information has not been completed (step S203: NO), the representative value determining unit 122 repeats the processing from step S201.

以上、本実施形態の画像形成装置1によれば、画像処理部12が、画像の所定領域に含まれる複数の画素の各々の画素値から当該複数の画素の数よりも少ないグループ数(例えば、8グループ)の画素値の代表値を決定し、当該複数の画素を代表値のいずれかと対応付け、画像処理(例えば、色変換処理等)前の画素値に対する画像処理後の画素値を含むLUTを参照して代表値に対応する画像処理後の画素値を取得し、複数の画素の画素値を各々の画素と対応付けられた代表値に対応する画像処理後の画素値とするので、LUTを参照するためのメモリーであるLUT記憶部123へのアクセス回数を代表値のグループ数に応じた回数(例えば、8回)とすることができ、所定領域に含まれる全ての画素に対応するアクセス回数に比してLUT記憶部123へのアクセス回数を低減することができることから、より高速に画像処理を行うことができる。加えて、従来の画像処理の高速化方法であったライン単位での並列処理における並列処理の数に応じた処理部及びメモリーを不要とすることができ、画像処理の高速化とメモリー容量の削減とを両立することができる。   As described above, according to the image forming apparatus 1 of the present embodiment, the image processing unit 12 determines the number of groups smaller than the number of the plurality of pixels from the pixel values of the plurality of pixels included in the predetermined area of the image (for example, LUT including pixel values after image processing with respect to pixel values before image processing (for example, color conversion processing), by determining a representative value of pixel values of 8 groups), associating the plurality of pixels with any of the representative values , The pixel value after image processing corresponding to the representative value is obtained, and the pixel value of the plurality of pixels is used as the pixel value after image processing corresponding to the representative value associated with each pixel. The number of accesses to the LUT storage unit 123, which is a memory for referring to the image, can be set to the number of times corresponding to the number of representative value groups (for example, 8 times), and access corresponding to all pixels included in the predetermined area can be performed. L compared to the number of times Since it is possible to reduce the number of accesses to T storage unit 123 can perform image processing at a higher speed. In addition, it is possible to eliminate the need for processing units and memory according to the number of parallel processing in line-by-line parallel processing, which was a conventional method for speeding up image processing, and speeding up image processing and reducing memory capacity. And both.

また、代表値は、グループ情報に対応付けられた画素の画素値の平均値であるので、画像処理後の画素値を画像処理前の画素値により近づけることができる。   Moreover, since the representative value is an average value of the pixel values associated with the group information, the pixel value after the image processing can be made closer to the pixel value before the image processing.

また、画像処理部12は、各代表値に対応する画素値の範囲を示す範囲情報をグループ情報の参照値として生成し、代表値に対応する画素値の範囲内である画素値を有する画素を当該代表値と対応付けるので、代表値に対する各画素の対応付けにおいて、各画素の画素値が考慮された対応付けを行うことができる。   Further, the image processing unit 12 generates range information indicating a range of pixel values corresponding to each representative value as a reference value of the group information, and selects pixels having pixel values that are within the range of pixel values corresponding to the representative value. Since it is associated with the representative value, the association in consideration of the pixel value of each pixel can be performed in the association of each pixel with the representative value.

なお、本発明の実施の形態は、今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment of the present invention should be considered that the embodiment disclosed this time is illustrative and not restrictive in all respects. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

例えば、上記の実施形態では、対象となる画素の強度が、参照値に含まれる画素の強度(又は輝度)の最大値と最小値により示される画素の強度(又は輝度)の範囲内であるか否かに基づいて画素データが参照値に含まれるか否かを判断しているが、一例であってこれに限られるものでない。例えば、第1のグループ情報〜第8のグループ情報の参照値として、それまで対応付けられた画素の強度の値を個別に設定し、参照値に含まれるか否かの判断において、画素データに含まれる画素の強度が、第1のグループ情報〜第8のグループ情報の参照値に一致するか否かを判断するようにしてもよい。また、上記の実施形態における画素の強度を画素の輝度に置き換えて各種の処理を行うようにしてもよい。   For example, in the above embodiment, whether the intensity of the target pixel is within the range of the intensity (or luminance) of the pixel indicated by the maximum value and the minimum value of the intensity (or luminance) of the pixel included in the reference value. Whether or not the pixel data is included in the reference value is determined based on whether or not the pixel value is included in the reference value, but this is an example and the present invention is not limited to this. For example, as the reference values of the first group information to the eighth group information, the intensity values of the pixels associated so far are individually set, and in the determination of whether or not they are included in the reference values, the pixel data You may make it judge whether the intensity | strength of the pixel contained corresponds with the reference value of 1st group information-8th group information. In addition, various processes may be performed by replacing the pixel intensity in the above-described embodiment with the pixel luminance.

また、上記の実施形態におけるグループ情報は、参照値を画素の強度の最大値と最小値とし、統計値を画素の強度の累計としているが、一例であってこれに限られるものでない。例えば、参照値を画素の強度の平均値とし、統計値を画素の強度の最大値と最小値としてもよい。さらに、参照値を画素の強度の最大値と最小値とし、統計値を画素の強度の平均値としてもよい。   In the group information in the above embodiment, the reference value is the maximum value and the minimum value of the pixel intensity, and the statistical value is the cumulative pixel intensity. However, the group information is an example and is not limited thereto. For example, the reference value may be an average value of pixel intensities, and the statistical value may be a maximum value and a minimum value of pixel intensities. Furthermore, the reference value may be the maximum value and the minimum value of the pixel intensity, and the statistical value may be an average value of the pixel intensity.

また、レジスター1010の使用領域を節約するためには、保存すべきデータ量がより少ないことが望ましい。そこで、代表値決定部122は、例えば、ステップS102において、各画素が対応付けられたグループ情報の番号(インデックス)を、画素毎の「どのグループ情報と対応付けられているかを示すデータ」(192bit=64画素×3bit(グループ情報の識別番号))として保存するようにしてもよい。また、各画素が対応付けられたグループ情報の番号(インデックス)を、グループ情報毎の「どの画素が入っているかを示すフラグ」(512bit=64bit(64画素分のON/OFF)×8グループ)とすることもできるが、前者のほうがより少ないデータ量となる。   Further, in order to save the use area of the register 1010, it is desirable that the amount of data to be stored is smaller. Therefore, for example, in step S102, the representative value determination unit 122 sets the group information number (index) associated with each pixel to “data indicating which group information is associated with” for each pixel (192 bits). = 64 pixels × 3 bits (group information identification number)). Further, the group information number (index) associated with each pixel is set to “flag indicating which pixel is included” for each group information (512 bits = 64 bits (ON / OFF for 64 pixels) × 8 groups). However, the former has a smaller amount of data.

また、ステップS101のグループ情報の準備時に、レジスター1010が保存しているRGBの強度の累計と画素数とから平均値を算出して、最大値および最小値に同じ値(平均値)を代入するようにしてもよい。このように構成しても、各画素とグループ情報のいずれかとの対応付けは正しく行われ、画質の変化はほとんど無い。累計も保存されているので、代表値として機能する平均値が正しく算出される。   In addition, when preparing the group information in step S101, an average value is calculated from the accumulated RGB intensity and the number of pixels stored in the register 1010, and the same value (average value) is substituted for the maximum value and the minimum value. You may do it. Even with this configuration, the association between each pixel and any of the group information is performed correctly, and there is almost no change in image quality. Since the total is also stored, the average value that functions as the representative value is correctly calculated.

ここで、レジスター1010は、一時情報の統計値としてグループ情報毎の強度の累計の代わりにグループ情報毎の強度の平均値を保存し、代表値決定部122が当該平均値を代表値として出力してもよい。逆に、レジスター1010は、一時情報の統計値として「RGBの強度の最大値と最小値」を保存し、代表値決定部122が累計または平均値を算出してもよい。   Here, the register 1010 stores the average value of the intensity for each group information instead of the cumulative intensity for each group information as the statistical value of the temporary information, and the representative value determination unit 122 outputs the average value as the representative value. May be. Conversely, the register 1010 may store “maximum and minimum values of RGB intensity” as the statistical value of the temporary information, and the representative value determination unit 122 may calculate the cumulative value or the average value.

また、上記の実施形態における代表値の決定方法は一例であってこれに限られるものでなく、他の方法により代表値を決定してもよい。
例えば、上記の実施形態では、グループ情報に対応付けられた画素の強度の累計値を画素数で割ることにより平均値を算出して代表値としているが、平均値の算出に代えて、所定領域内における特定の画素の画素値をそのまま代表値として採用してもよい。また、平均値を加重平均値や2乗平均値としてもよい。また、平均値でなく中間値としてもよい。また、グループ情報に対応付けられた各画素の強度の分散や偏差等に基づいて特異点とみなされる画素が存在した場合に当該特異点を除外して平均値や中間値を算出するようにしてもよい。
また、所定の画素の強度の範囲内に含まれるか否かを判定するためのディザグループを複数設け、各ディザグループにより振り分けられる画素数の分布に応じて代表値を決定するようにしてもよい。
The method for determining the representative value in the above embodiment is merely an example, and the present invention is not limited to this. The representative value may be determined by another method.
For example, in the above embodiment, the average value is calculated as the representative value by dividing the cumulative value of the intensity of the pixels associated with the group information by the number of pixels, but instead of calculating the average value, the predetermined area The pixel value of a specific pixel in the image may be used as a representative value as it is. The average value may be a weighted average value or a square average value. Moreover, it is good also as an intermediate value instead of an average value. In addition, when there is a pixel that is regarded as a singular point based on intensity dispersion or deviation of each pixel associated with the group information, the average value or the intermediate value is calculated by excluding the singular point. Also good.
In addition, a plurality of dither groups for determining whether or not a pixel is included within a predetermined pixel intensity range may be provided, and the representative value may be determined according to the distribution of the number of pixels distributed by each dither group. .

また、LUTにより定められる色変換処理は、RGBからCMYKへの色変換処理に限られない。逆の色変換処理でもよいし、同一の色空間における色変換処理でもよいし、RGBやCMYK以外の色空間を採用することもできる。   Further, the color conversion process determined by the LUT is not limited to the color conversion process from RGB to CMYK. Reverse color conversion processing may be performed, color conversion processing in the same color space may be performed, and color spaces other than RGB and CMYK may be employed.

また、上記の実施形態では、対象となる画素データに含まれる画素の強度が第1のグループ情報〜第8のグループ情報の参照値に含まれず、かつ、未だ参照値が設定されていないグループ情報が存在しない場合、第1の距離と第2の距離を算出して比較した結果に応じた処理を行っているが、他の方法によってもよい。
例えば、当該場合において、1つの代表値に対応するグループ情報の参照値である画素値の範囲に含まれる画素値の最大値と、他の1つの代表値に対応するグループ情報の参照値である画素値の範囲に含まれる画素値の最小値との差が最も小さい二つの代表値のグループ情報を統合し、統合により1つ分の余裕が生じたグループ情報について新たなグループ情報を生成して当該新たなグループ情報に対象となる画素を対応付けるようにしてもよい。この場合、統合処理は、例えば、上記の統合部1009により行われ、対応付けは、例えば、上記の分類部1003により行われる。
また、当該場合において、グループ情報の参照値である画素値の範囲に含まれる画素値の最大値又は最小値が当該画素の画素値に最も近い画素値の範囲に対応するグループ情報と対象となる画素を対応付けるようにしてもよい。この場合、対応付けは、例えば、上記の分類部1003により行われる。
これらの場合にも、上記の実施形態と同様に、所定領域の画素数よりも少ないグループ数の代表値による画像処理を行うに際して、各代表値と対応付けられる画素の振り分けを画像処理前の各画素の画素値がより考慮されたものとすることができ、画像処理前の各画素の画素値がより考慮された画像処理を行うことができる。
In the above embodiment, the group information in which the intensity of the pixel included in the target pixel data is not included in the reference values of the first group information to the eighth group information, and the reference value is not yet set. Is not present, the first distance and the second distance are calculated and compared according to the result of comparison, but other methods may be used.
For example, in this case, the maximum value of the pixel values included in the pixel value range that is the reference value of the group information corresponding to one representative value, and the reference value of the group information corresponding to the other representative value. The group information of two representative values having the smallest difference from the minimum value of the pixel values included in the pixel value range is integrated, and new group information is generated for the group information in which one margin is generated by the integration. The target pixel may be associated with the new group information. In this case, for example, the integration process is performed by the integration unit 1009, and the association is performed by the classification unit 1003, for example.
In this case, the maximum or minimum pixel value included in the pixel value range that is the reference value of the group information is the group information corresponding to the pixel value range closest to the pixel value of the pixel and the target. Pixels may be associated with each other. In this case, the association is performed by, for example, the classification unit 1003 described above.
Also in these cases, as in the above-described embodiment, when performing image processing with representative values having a smaller number of groups than the number of pixels in the predetermined area, the distribution of pixels associated with each representative value is performed before image processing. The pixel value of the pixel can be considered more, and image processing can be performed in which the pixel value of each pixel before image processing is more considered.

また、上記の実施形態では、第1のグループ情報P1〜第8のグループ情報P8の8つのグループに対応した8つの代表値を用いて画像処理を行っているが、係るグループ及び代表値の数はあくまで一例であってこれに限られるものでなく、画像の所定領域に含まれる複数の画素の数よりも少ない数であれば画像処理に際して行われるLUTに対するアクセス回数を少なくすることができる。   In the above embodiment, image processing is performed using eight representative values corresponding to eight groups of the first group information P1 to the eighth group information P8. Is merely an example, and the present invention is not limited to this. The number of accesses to the LUT performed during image processing can be reduced if the number is smaller than the number of pixels included in a predetermined area of the image.

また、補間演算を行わずに画像処理を行ってもよい。即ち、本発明は、画像処理前後の画素値としてありうる全ての画素値の対応付けのデータを含むLUTを用いて画像処理を行うことを妨げない。
また、補間演算により画像処理を行うに際して、現在又は将来に渡り採用されうるあらゆる補間演算方法を用いることができる。
Further, image processing may be performed without performing interpolation calculation. In other words, the present invention does not prevent the image processing from being performed using the LUT including the data corresponding to all the pixel values that can be the pixel values before and after the image processing.
In addition, when performing image processing by interpolation calculation, any interpolation calculation method that can be employed at present or in the future can be used.

また、上記の実施形態における画像形成装置1は、インクジェット記録装置であるが、他の方式により画像を形成する画像形成装置であってもよい。例えば、電子写真方式や熱転写方式、オフセット方式、その他、記録媒体に画像を形成することができるあらゆる方式の画像形成装置を画像形成システムに採用することができる。   The image forming apparatus 1 in the above embodiment is an ink jet recording apparatus, but may be an image forming apparatus that forms an image by another method. For example, any type of image forming apparatus capable of forming an image on a recording medium, such as an electrophotographic system, a thermal transfer system, an offset system, or the like can be employed in the image forming system.

1 画像形成装置
11 通信部(画像取得手段)
12 画像処理部(画像処理装置、画像処理手段)
13 画像形成部(画像形成手段)
14 操作表示部
15 中央制御部
121 画素値取得部
122 代表値決定部(対応付け手段、決定手段)
123 LUT記憶部(記憶手段)
124 代表値変換部(取得手段)
125 画素値割付部(処理手段)
1001 ライン切替部
1002 画素切替部
1003 分類部(対応付け手段)
1004 更新部(生成手段)
1005 決定部(決定手段)
1006 判断部
1007 判断部
1008 距離算出部
1009 統合部
1010 レジスター
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 11 Communication part (Image acquisition means)
12 Image processing unit (image processing apparatus, image processing means)
13 Image forming unit (image forming means)
14 operation display unit 15 central control unit 121 pixel value acquisition unit 122 representative value determination unit (association unit, determination unit)
123 LUT storage unit (storage means)
124 representative value converter (acquisition means)
125 pixel value assignment unit (processing means)
1001 Line switching unit 1002 Pixel switching unit 1003 Classification unit (associating means)
1004 Update unit (generation means)
1005 Determination unit (determination means)
1006 Judgment Unit 1007 Judgment Unit 1008 Distance Calculation Unit 1009 Integration Unit 1010 Register

Claims (11)

画像を構成する複数の画素の各々に対して所定の画像処理を行う画像処理装置であって、
画像の所定領域に含まれる複数の画素を当該複数の画素の数よりも少ない数のグループのいずれかと対応付ける対応付け手段と、
各グループに対応付けられた画素の画素値に基づいて各グループの代表値を決定する決定手段と、
前記所定の画像処理前の画素値に対する前記所定の画像処理後の画素値を記憶する記憶手段と、
前記代表値に対応する前記所定の画像処理後の画素値を前記記憶手段から取得する取得手段と、
各グループに対応付けられた画素の画素値を各グループの代表値に対応する前記所定の画像処理後の画素値とする処理手段と、
を備えることを特徴とする画像処理装置。
An image processing apparatus that performs predetermined image processing on each of a plurality of pixels constituting an image,
Associating means for associating a plurality of pixels included in a predetermined region of an image with any one of a number of groups smaller than the number of the plurality of pixels;
Determining means for determining a representative value of each group based on a pixel value of a pixel associated with each group;
Storage means for storing the pixel value after the predetermined image processing with respect to the pixel value before the predetermined image processing;
Obtaining means for obtaining the pixel value after the predetermined image processing corresponding to the representative value from the storage means;
Processing means for setting pixel values of pixels associated with each group to pixel values after the predetermined image processing corresponding to representative values of each group;
An image processing apparatus comprising:
前記決定手段は、前記対応付け手段により各グループに対応付けられた画素の画素値の平均値を各グループの代表値とすることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the determining unit sets an average value of pixel values associated with each group by the association unit as a representative value of each group. 各グループに対応する画素値の範囲を示す範囲情報を生成する生成手段を備え、
前記対応付け手段は、各グループに対応する画素値の範囲に基づいて前記所定領域に含まれる複数の画素を各グループと対応付けることを特徴とする請求項1又は2に記載の画像処理装置。
A generating unit that generates range information indicating a range of pixel values corresponding to each group;
The image processing apparatus according to claim 1, wherein the association unit associates a plurality of pixels included in the predetermined area with each group based on a range of pixel values corresponding to each group.
前記対応付け手段は、前記所定領域に含まれる複数の画素のそれぞれの画素値に基づいて前記複数の画素を各グループと対応付けることを特徴とする請求項1から3の何れか1項に記載の画像処理装置。4. The apparatus according to claim 1, wherein the association unit associates the plurality of pixels with each group based on pixel values of the plurality of pixels included in the predetermined region. 5. Image processing device. 前記対応付け手段は、前記所定領域に含まれる複数の画素のそれぞれの画素値に基づいて1画素ごとに順次に前記複数の画素を各グループと対応付けることを特徴とする請求項4に記載の画像処理装置。5. The image according to claim 4, wherein the association unit associates the plurality of pixels with each group sequentially for each pixel based on the pixel values of the plurality of pixels included in the predetermined region. Processing equipment. 前記対応付け手段は、各グループに対応する画素値の範囲と、前記複数の画素のそれぞれの画素値と、に基づいて1画素ごとに順次に前記複数の画素を各グループと対応付け、The association unit sequentially associates the plurality of pixels with each group for each pixel based on a range of pixel values corresponding to each group and each pixel value of the plurality of pixels.
前記生成手段は、前記対応付け手段による1画素の対応付けの終了後に、対応付けられたグループの画素値の範囲を示す範囲情報を更新することを特徴とする請求項3に記載の画像処理装置。The image processing apparatus according to claim 3, wherein the generation unit updates range information indicating a range of pixel values of the associated group after completion of association of one pixel by the association unit. .
前記所定の画像処理は、RGBからCMYKへの色変換処理であり、The predetermined image processing is color conversion processing from RGB to CMYK,
前記記憶手段は、色変換処理前のRGB色空間の画素値に対する色変換処理後のCMYK色空間の画素値を記憶することを特徴とする請求項1から6の何れか1項に記載の画像処理装置。7. The image according to claim 1, wherein the storage unit stores a pixel value in the CMYK color space after the color conversion process for a pixel value in the RGB color space before the color conversion process. Processing equipment.
前記画像を構成する全ての画素に対する前記所定の画像処理が終了するまで、前記対応付け手段による処理と、前記決定手段による処理と、前記取得手段による処理と、前記処理手段による処理とを繰り返すことを特徴とする請求項1から7の何れか1項に記載の画像処理装置。Until the predetermined image processing for all the pixels constituting the image is completed, the processing by the association unit, the processing by the determination unit, the processing by the acquisition unit, and the processing by the processing unit are repeated. The image processing apparatus according to claim 1, wherein: 前記所定領域に含まれる複数の画素は複数の画素ラインを形成し、各画素ラインを構成する画素の数と前記グループの数が等しいことを特徴とする請求項1から8の何れか1項に記載の画像処理装置。The plurality of pixels included in the predetermined region form a plurality of pixel lines, and the number of pixels constituting each pixel line is equal to the number of the groups. The image processing apparatus described. 前記対応付け手段により前記所定領域に含まれる複数の画素の対応付けを開始する時点において、前記グループの数が1つの所定値に設定されていることを特徴とする請求項1から9の何れか1項に記載の画像処理装置。The number of the groups is set to one predetermined value when the association unit starts associating a plurality of pixels included in the predetermined area. The image processing apparatus according to item 1. 画像を取得する画像取得手段と、
前記画像取得手段により取得された画像を構成する複数の画素の各々に対して所定の画像処理を行う画像処理手段と、
前記画像処理手段により所定の画像処理が施された画像に基づいて画像を形成する画像形成手段と、を備えた画像形成装置において、
前記画像処理手段は、
請求項1から10の何れか1項に記載の画像処理装置を含むことを特徴とする画像形成装置。
Image acquisition means for acquiring images;
Image processing means for performing predetermined image processing on each of a plurality of pixels constituting the image acquired by the image acquisition means;
An image forming apparatus comprising: an image forming unit that forms an image based on an image that has been subjected to predetermined image processing by the image processing unit;
The image processing means includes
An image forming apparatus comprising the image processing apparatus according to claim 1 .
JP2012078726A 2012-03-30 2012-03-30 Image processing apparatus and image forming apparatus Active JP5811928B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012078726A JP5811928B2 (en) 2012-03-30 2012-03-30 Image processing apparatus and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012078726A JP5811928B2 (en) 2012-03-30 2012-03-30 Image processing apparatus and image forming apparatus

Publications (2)

Publication Number Publication Date
JP2013210702A JP2013210702A (en) 2013-10-10
JP5811928B2 true JP5811928B2 (en) 2015-11-11

Family

ID=49528509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012078726A Active JP5811928B2 (en) 2012-03-30 2012-03-30 Image processing apparatus and image forming apparatus

Country Status (1)

Country Link
JP (1) JP5811928B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3748172B2 (en) * 1998-12-09 2006-02-22 富士通株式会社 Image processing device
JP4844331B2 (en) * 2005-10-31 2011-12-28 コニカミノルタビジネステクノロジーズ株式会社 Image data processing method and apparatus
JP4978598B2 (en) * 2008-09-17 2012-07-18 コニカミノルタビジネステクノロジーズ株式会社 Image processing method, image processing apparatus, and image processing program
JP2010148026A (en) * 2008-12-22 2010-07-01 Ricoh Co Ltd Image processing method, image processing device, program, and recording media
JP2011101207A (en) * 2009-11-06 2011-05-19 Panasonic Corp Color conversion method, and color conversion device

Also Published As

Publication number Publication date
JP2013210702A (en) 2013-10-10

Similar Documents

Publication Publication Date Title
US11023791B2 (en) Color conversion using neural networks
JP2013232746A (en) Semiconductor device, image processing system, and program
US8891144B2 (en) Color management method, module, and program product, and printer using said method
JP6501621B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM THEREOF
JP2014192833A (en) Print condition setting apparatus, print condition setting method and program
JP6376767B2 (en) Image processing apparatus and image processing method
CN114218421A (en) Resource recall method and device and network side equipment
CN105814872A (en) Correction coefficient calculation unit, image conversion unit, color correction device, display device, correction coefficient calculation method, and program
US10313561B2 (en) Image processing apparatus that executes color conversion on object data in target file
JP5811928B2 (en) Image processing apparatus and image forming apparatus
JP6613880B2 (en) Image processing device
JP5699709B2 (en) Image processing device
JP2011188198A (en) Image processing system, information processing system, control method, and program
KR101941231B1 (en) Method for color grading and color correction, and apparatus using the same
WO2007135807A1 (en) Image processing system and image processing program
US10009509B2 (en) Image processing device, image processing method, and printing system
Dianat et al. Dynamic optimization algorithm for generating inverse printer map with reduced measurements
JP2015126301A (en) Image processor and image processing method
US20100195125A1 (en) Image conversion device, image conversion method, and conversion program
JP2005210339A (en) Image processor, print controller, and image processing method and program
JP2012060397A (en) Color processing device and color processing method
CN107980218A (en) Gray component substitutes
JP2016096434A (en) Color processing device and method for the same
JP2007158928A (en) Apparatus, method and program for color space conversion
JP6446898B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140310

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150303

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150907

R150 Certificate of patent or registration of utility model

Ref document number: 5811928

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150