JP2009037277A - Appearance color histogram creation circuit and image processor - Google Patents

Appearance color histogram creation circuit and image processor Download PDF

Info

Publication number
JP2009037277A
JP2009037277A JP2007198523A JP2007198523A JP2009037277A JP 2009037277 A JP2009037277 A JP 2009037277A JP 2007198523 A JP2007198523 A JP 2007198523A JP 2007198523 A JP2007198523 A JP 2007198523A JP 2009037277 A JP2009037277 A JP 2009037277A
Authority
JP
Japan
Prior art keywords
circuit
color
register
data
value
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.)
Withdrawn
Application number
JP2007198523A
Other languages
Japanese (ja)
Inventor
Toyoaki Kuwabara
豊明 桑原
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007198523A priority Critical patent/JP2009037277A/en
Publication of JP2009037277A publication Critical patent/JP2009037277A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor not requiring a CPU to perform processing to specify the most frequently appearing color when performing image processing which needs the most frequently appearing color. <P>SOLUTION: An image processor of a composite machine or the like is equipped with an appearance color histogram creation circuit 20 for obtaining and storing the most frequently appearing color (the most frequently appearing color register 25) related to image data to be processed while creating an appearance color histogram related to the image data on an SRAM 23. The circuit 20 stores the frequency and color data in a frequency register 24 and a most frequently appearing color register 25, respectively, when writing the frequency exceeding a value on the frequency register 24 in the SRAM 23. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、最頻出色を必要とする画像処理を画像データに対して行う機能を有する画像処理装置と、そのような画像処理装置の構成要素として使用される出現色ヒストグラム作成回路とに、関する。   The present invention relates to an image processing apparatus having a function of performing image processing that requires the most frequently occurring color on image data, and an appearance color histogram creation circuit used as a component of such an image processing apparatus. .

コピー機等の画像処理装置(目的とする処理を行うために、画像データを加工する装置)にて行われる画像処理の中には、処理対象画像データ中の各色の出現頻度分布(以下、出現色ヒストグラムと表記する)を必要とするもの(例えば、特許文献1参照)が,存在している。   In image processing performed by an image processing apparatus such as a copier (an apparatus that processes image data to perform a target process), the appearance frequency distribution of each color in the processing target image data (hereinafter referred to as appearance) There are those that require a color histogram (for example, see Patent Document 1).

そして、出現色ヒストグラムの作成をCPUに行わせたのでは、時間がかかってしまうことになるため、出現色ヒストグラムを必要とする画像処理を行う一般的な画像処理装置(例えば、特許文献2参照)には、出現色ヒストグラムを作成するためのハードウェア(以下、出現色ヒストグラム作成回路と表記する)が搭載されている。   If the CPU creates the appearance color histogram, it takes time. Therefore, a general image processing apparatus that performs image processing that requires the appearance color histogram (see, for example, Patent Document 2). ) Is equipped with hardware for creating an appearance color histogram (hereinafter referred to as an appearance color histogram creation circuit).

ただし、既存の画像処理装置に搭載されている出現色ヒストグラム作成回路は、出現色ヒストグラムを作成することしか出来ない回路であるため、既存の画像処理装置は、最頻出色(最も、出現頻度が高い色)を必要とする画像処理〔最頻出色のみ,或いは,最頻出色及び出現色ヒストグラムを必要とする画像処理〕を実行すべき場合、当該画像処理を実際に開始する前に、CPUが、出現色ヒストグラム内の比較的多数(例えば、4096個)のデータ(出現頻度)を読み出して最頻出色を特定する処理を行うように構成された装置となっている。   However, since the appearance color histogram creation circuit mounted in the existing image processing apparatus is a circuit that can only create the appearance color histogram, the existing image processing apparatus has the most frequently appearing colors (most frequently appearing frequency). When image processing requiring high color) (only the most frequently occurring color or image processing requiring the most frequently occurring color and appearance color histogram) is to be executed, the CPU The apparatus is configured to read out a relatively large number (for example, 4096) of data (appearance frequency) in the appearance color histogram and specify the most frequently appearing color.

特開平7−85275号公報JP 7-85275 A 特開2002−369034号公報JP 2002-369034 A

そこで、本発明の課題は、最頻出色を必要とする画像処理時に,CPUに,最頻出色を特定する処理を行わせる必要がない画像処理装置と、それを用いることにより,そのような画像処理装置を実現できる出現色ヒストグラム作成回路とを、提供することにある。   Accordingly, an object of the present invention is to provide an image processing apparatus that does not require the CPU to perform processing for specifying the most frequently occurring color at the time of image processing that requires the most frequently occurring color, and to use such an image. An object of the present invention is to provide an appearance color histogram creation circuit capable of realizing a processing device.

上記課題を解決するために、本発明の出現色ヒストグラム作成回路は、外部回路が読出アクセスを行える最頻出色レジスタと、頻度レジスタと、外部回路が読出アクセスを行える複数の記憶領域を有する出現色ヒストグラム記憶回路と、複数の色データからなる処理対象画像データ中の色データ毎に、出現色ヒストグラム記憶回路内の,その色データの値によって特定される記憶領域に記憶されている値を“1”増加させる処理を行う色データ処理回路であって、増加させた後の値である更新値が頻度レジスタに記憶されている値よりも大きな値であった場合には、最頻出色レジスタ,頻度レジスタに,それぞれ,当該更新値を記憶している記憶領域を示す情報,当該更新値を設定する処理を行う色データ処理回路と、色データ処理回路による処理の完了を外部回路に通知するための処理完了通知回路とを、備える。   In order to solve the above problems, an appearance color histogram creation circuit according to the present invention includes an appearance color having a most frequently appearing color register to which an external circuit can perform read access, a frequency register, and a plurality of storage areas to which the external circuit can perform read access. For each color data in the histogram storage circuit and the processing target image data composed of a plurality of color data, the value stored in the storage area specified by the value of the color data in the appearance color histogram storage circuit is “1”. "A color data processing circuit that performs an increase process, and if the updated value after the increase is larger than the value stored in the frequency register, the most frequent color register, frequency Each register includes information indicating a storage area storing the update value, a color data processing circuit that performs processing for setting the update value, and a color data processing circuit. And a processing completion notification circuit for notifying the completion of the process to an external circuit, provided.

すなわち、本発明の出現色ヒストグラム作成回路は、処理対象画像データに関する出現色ヒストグラムを作成するための処理〔色データ処理回路による.色データ毎に,出現色ヒストグラム記憶回路内の,その色データの値によって特定される記憶領域に記憶されている値を“1”増加させる処理〕と、処理対象画像データに関する最頻出色を特定するための処理〔色データ処理回路による,更新値が頻度レジスタに記憶されている値よりも大きな値であった場合に、最頻出色レジスタ,頻度レジスタに,それぞれ,当該更新値を記憶している記憶領域を示す情報,当該更新値を設定する処理〕とを,並行的に行う回路構成を有する回路となっている。従って、この出現色ヒストグラム作成回路を用いておけば、最頻出色を必要とする画像処理時に,CPUに,最頻出色を特定する処理を行わせる必要がない画像処理装置(最頻出色を必要とする画像処理がより高速に完了する画像処理装置/請求項4記載の画像処理装置)を実現できることになる。   That is, the appearance color histogram creation circuit of the present invention is a process for creating an appearance color histogram relating to processing target image data [by the color data processing circuit. For each color data, the process of increasing the value stored in the storage area specified by the value of the color data in the appearance color histogram storage circuit by “1” and the most frequently appearing color for the processing target image data [When the update value by the color data processing circuit is larger than the value stored in the frequency register, the update value is stored in the most frequent color register and the frequency register, respectively. In other words, the circuit has a circuit configuration in which the information indicating the storage area being stored and the process of setting the update value are performed in parallel. Therefore, if this appearance color histogram creation circuit is used, it is not necessary to cause the CPU to perform processing for specifying the most frequently occurring color at the time of image processing requiring the most frequently occurring color (requires the most frequently occurring color). An image processing apparatus / image processing apparatus according to claim 4 that completes image processing at a higher speed can be realized.

なお、本発明における“色データ”とは、有彩色或いは無彩色を示すデータのことであり、本発明の出現色ヒストグラム作成回路を製造するに際しては、そのような色データ自体と出現色ヒストグラム記憶回路上の記憶領域とが,1:1対応するようにしておくことも、特定の条件(R,G,B階調値の各上位ビットが等しい等)を満たす色データ群と、出現色ヒストグラム記憶回路上の記憶領域とが,1:1対応するようにしておくことも出来る。また、本発明の出現色ヒストグラム作成回路の構成要素である処理完了通知回路は、外部回路に対して.積極的/能動的に処理の完了を通知する回路(割り込み信号を出力する回路等)であっても良く、処理が完了しているか否かが分かる情報(外部回路が読出可能なもの)を保持する回路であっても良い。   The “color data” in the present invention is data indicating chromatic colors or achromatic colors. When the appearance color histogram creation circuit of the present invention is manufactured, such color data itself and the appearance color histogram memory are stored. The storage area on the circuit may have a 1: 1 correspondence, a color data group that satisfies a specific condition (e.g., each higher bit of R, G, B gradation values is equal), and an appearance color histogram The storage area on the storage circuit may correspond to 1: 1. The processing completion notification circuit, which is a component of the appearance color histogram creation circuit of the present invention, is connected to an external circuit. It may be a circuit that actively / actively notifies the completion of processing (a circuit that outputs an interrupt signal, etc.), and holds information that can be used to determine whether or not the processing is complete (one that can be read by an external circuit) It may be a circuit.

また、外部回路が読出アクセスを行える第2頻出色レジスタと、第2頻度レジスタとを付加し、更新値が,頻度レジスタに記憶されている値以下の,第2頻度レジスタに記憶されている値よりも大きな値であった場合には、第2頻出色レジスタ,第2頻度レジスタに,それぞれ,当該更新値を記憶している記憶領域を示す情報,当該更新値を設定する処理を行う色データ処理回路を採用した形で、本発明の出現色ヒストグラム作成回路を製造しておくことも出来る。そして、そのように製造された出現色ヒストグラム作成回路を用いれば、出現頻度が2番目に大きな色(第2頻出色レジスタ上の情報から特定出来る色)を必要とする画像処理も高速に行える画像処理装置を製造できることになる。   A value stored in the second frequency register that is less than or equal to the value stored in the frequency register is added by adding a second frequent color register and a second frequency register to which the external circuit can perform read access. If the value is larger than the value, information indicating the storage area storing the updated value in the second frequent color register and the second frequency register, and color data for performing processing for setting the updated value, respectively. The appearance color histogram creation circuit of the present invention can also be manufactured by adopting the processing circuit. If the appearance color histogram creation circuit manufactured in this way is used, an image that can perform image processing that requires the second-most frequently occurring color (a color that can be specified from information in the second frequent color register) at high speed can be performed. A processing apparatus can be manufactured.

また、本発明の出現色ヒストグラム作成回路を,第2頻出色レジスタの付加等を行ったものする場合には、さらに、色データ処理回路による処理が完了していない色データ数を監視し、当該色データ数が,記頻度レジスタ上の値から第2頻度レジスタ上の値を減じた値と一致したときに、色データ処理回路による処理を停止させる停止制御回路を付加しておくことが出来る。そして、そのような構成を有する出現色ヒストグラム作成回路を用いれば、最頻出色を必要とする実際の画像処理をより短時間で開始できる画像処理回路を製造できることになる。   In addition, when the appearance color histogram creation circuit of the present invention is the one in which the second frequent color register is added, the number of color data that has not been processed by the color data processing circuit is further monitored, When the number of color data matches the value obtained by subtracting the value on the second frequency register from the value on the recording frequency register, a stop control circuit for stopping the processing by the color data processing circuit can be added. If an appearance color histogram creation circuit having such a configuration is used, an image processing circuit capable of starting actual image processing requiring the most frequently occurring color in a shorter time can be manufactured.

以下、本発明を実施するための最良の形態を、図面を参照して詳細に説明する。   Hereinafter, the best mode for carrying out the present invention will be described in detail with reference to the drawings.

《第1実施形態》
まず、図1及び図2を用いて、本発明の第1実施形態に係る画像処理装置10の概要を、説明する。
<< First Embodiment >>
First, the outline of the image processing apparatus 10 according to the first embodiment of the present invention will be described with reference to FIGS. 1 and 2.

図1に示してあるように、本実施形態に係る画像処理装置10は、スキャナ11と操作パネル12とコントローラ13と印刷エンジン14とを備えた装置である。なお、画像処理装置10は、PC(パーソナルコンピュータ)と接続しなくても使用可能な装置なのであるが、通常は、何台かのPCとネットワーク接続(及び/或いはダイレクト接続)して使用される装置(つまり、プリンタとしての機能を有する複合機)となっている。   As shown in FIG. 1, the image processing apparatus 10 according to this embodiment is an apparatus that includes a scanner 11, an operation panel 12, a controller 13, and a print engine 14. The image processing apparatus 10 can be used without being connected to a PC (Personal Computer), but is usually used by connecting to several PCs via a network (and / or direct connection). It is a device (that is, a multifunction device having a function as a printer).

本実施形態に係る画像処理装置10が備える操作パネル12は、ユーザから各種の指示を得るため(及び、画像処理装置10の状態をユーザに提示するため)に、画像処理装置10に設けられているユニットである。この操作パネル12は、LCD,複数のLED,複数の押しボタンスイッチ等から構成されたユニットとなっている。   An operation panel 12 provided in the image processing apparatus 10 according to the present embodiment is provided in the image processing apparatus 10 in order to obtain various instructions from the user (and to present the state of the image processing apparatus 10 to the user). Unit. The operation panel 12 is a unit composed of an LCD, a plurality of LEDs, a plurality of push button switches, and the like.

印刷エンジン14は、用紙上にカラー/モノクロ印刷を行うためのユニットである。スキャナ11は、自身にセットされた原稿をスキャンすることにより,当該原稿の画像データ(各画素に関する色データの集合)を生成するユニットである。このスキャナ11は、各画素について,8ビットのR階調データ,8ビットのG階調データ及び8ビットのB階調データからなる色データを含む画像データを出力するものとなっている。   The print engine 14 is a unit for performing color / monochrome printing on paper. The scanner 11 is a unit that generates image data (a set of color data relating to each pixel) of the original by scanning the original set on the scanner 11. The scanner 11 outputs image data including color data including 8-bit R gradation data, 8-bit G gradation data, and 8-bit B gradation data for each pixel.

コントローラ13は、画像処理装置10内の各部を統合的に制御するための,図2に示した構成を有するユニットである。   The controller 13 is a unit having the configuration shown in FIG. 2 for controlling each part in the image processing apparatus 10 in an integrated manner.

そして、本実施形態に係る画像処理装置10は、このコントローラ13に実装されているメモリ制御ASIC内の出現色ヒストグラム作成回路20(図では、“作成回路”)の構成/機能と、コントローラ13のROM上のファームウェアの内容のみが、既存の画像処理装置(本画像処理装置10の元となった画像処理装置)と異なった装置となっている。   The image processing apparatus 10 according to the present embodiment includes the configuration / function of the appearance color histogram creation circuit 20 (“creation circuit” in the drawing) in the memory control ASIC mounted on the controller 13, and the controller 13. Only the contents of the firmware on the ROM are different from the existing image processing apparatus (the image processing apparatus on which the image processing apparatus 10 is based).

以上のことを前提に、以下、本実施形態に係る画像処理装置10の構成及び動作をさらに具体的に説明する。   Based on the above, the configuration and operation of the image processing apparatus 10 according to the present embodiment will be described more specifically below.

本実施形態に係る画像処理装置10に用いられている出現色ヒストグラム作成回路20(画像処理装置10のコントローラ13に搭載されているメモリ制御ASIC内の出現色ヒストグラム作成回路20)は、図3に示してあるように、データ読出・アドレス変換回路21,SRAM制御回路22,SRAM23,頻度レジスタ24,最頻出色レジスタ25を備えた回路である。   The appearance color histogram creation circuit 20 (the appearance color histogram creation circuit 20 in the memory control ASIC installed in the controller 13 of the image processing apparatus 10) used in the image processing apparatus 10 according to the present embodiment is shown in FIG. As shown, the circuit includes a data read / address conversion circuit 21, an SRAM control circuit 22, an SRAM 23, a frequency register 24, and a most frequent color register 25.

この出現色ヒストグラム作成回路20が備えるSRAM23は、1ワードのデータを記憶可能な記憶領域を,4096個,有するSRAM(12ビットのアドレスで,リード/ライトする記憶領域を指定できるSRAM)である。頻度レジスタ24,最頻出色レジスタ25は、いずれも、1ワード(16ビット)のデータを記憶可能なレジスタであり、出現色ヒストグラム作成回路20は、レジスタ23,24及びSRAM23に記憶されているデータを、CPUが読み出せる回路となっている。   The SRAM 23 provided in the appearance color histogram creation circuit 20 is an SRAM (SRAM that can specify a storage area to be read / written with a 12-bit address) having 4096 storage areas capable of storing data of one word. Both the frequency register 24 and the most frequent color register 25 are registers that can store data of one word (16 bits), and the appearance color histogram creation circuit 20 is data stored in the registers 23 and 24 and the SRAM 23. The circuit can be read by the CPU.

データ読出・アドレス変換回路21は、DMA転送開始アドレスレジスタ,DMA転送データ量レジスタ,スタートレジスタ,割込要否レジスタ等(いずれも,CPUがアクセス可能なレジスタ)を備えた回路である。そして、このデータ読出・アドレス変換回路21は、スタートレジスタに所定値(本実施形態では、“1”)が書き込まれた場合、出現色ヒストグラム作成回路20内に設けられているゼロクリア回路(図3に示していない,SRAMの各記憶領域に“0”を書き込む回路)を機能させることにより、SRAM23の全記憶領域を“0”クリアする処理と、頻度レジスタ24及び最頻出色レジスタ25を“0”クリアする処理とを行ってから、『SDRAM(図2参照)上の,DMA転送開始アドレスレジスタに設定されているアドレス以降のDMA転送データ数レジスタに設定されている数(以下、DMA転送データ数と表記する)の色データ(3バイトデータ)を,各色成分の下位4ビットデータを除去した12ビットデータ(R,G,Bの各階調データの上位4ビットを組み合わせたデータ)に変換した上で,順次,SRAM制御回路22にDMA転送する処理』を開始する回路となっている。   The data read / address conversion circuit 21 includes a DMA transfer start address register, a DMA transfer data amount register, a start register, an interrupt necessity register, etc. (all of which are accessible by the CPU). The data reading / address converting circuit 21 is a zero clear circuit (FIG. 3) provided in the appearance color histogram creating circuit 20 when a predetermined value (“1” in the present embodiment) is written in the start register. The circuit that writes “0” to each storage area of the SRAM (not shown in FIG. 4) functions to clear all the storage areas of the SRAM 23 to “0”, and the frequency register 24 and the most frequent color register 25 are set to “0”. “After clearing processing,“ the number set in the DMA transfer data number register after the address set in the DMA transfer start address register on the SDRAM (see FIG. 2) (hereinafter referred to as DMA transfer data). 12-bit data (R, G, etc.) obtained by removing the lower 4 bit data of each color component Of on converted into data) that combines the upper four bits of the gradation data, sequentially, and has a circuit for starting the process "for the DMA transfer to the SRAM control circuit 22.

また、データ読出・アドレス変換回路21は、未転送データ数(=DMA転送データ数−DMA転送が完了したデータ数)を管理(カウントして記憶)するための未転送データ数レジスタを備え,未転送データ数レジスタの値(未転送データ数)が“0”となった際に,スタートレジスタの値を“0”に戻す回路となっている。さらに、データ読出・アドレス変換回路21は、割込要否レジスタに所定値が設定されていた場合には、未転送データ数が“0”となった際に,割込信号を出力する処理(メモリ制御ASICの特定の端子の信号レベルを変更する処理)を行う回路ともなっている。   Further, the data read / address conversion circuit 21 includes an untransferred data number register for managing (counting and storing) the number of untransferred data (= the number of DMA transfer data−the number of data for which DMA transfer has been completed). In this circuit, the value of the start register is returned to “0” when the value of the transfer data number register (number of untransferred data) becomes “0”. Further, when a predetermined value is set in the interrupt necessity register, the data read / address conversion circuit 21 outputs an interrupt signal when the number of untransferred data becomes “0” ( It is also a circuit that performs processing for changing the signal level of a specific terminal of the memory control ASIC.

SRAM制御回路22は、データ読出・アドレス変換回路21から,12ビットの色データが入力される度に、図4に示した処理を行う回路である。   The SRAM control circuit 22 is a circuit that performs the processing shown in FIG. 4 every time 12-bit color data is input from the data read / address conversion circuit 21.

すなわち、SRAM制御回路22は、色データが入力されると、その色データを注目アドレス(リード或いはライトアドレス)として使用して,SDRAM23上の注目アドレスデータRDを読み出す処理(ステップS101)と、RDに1を加算したWDを、注目アドレスデータとしてSDRAM23に書き戻す処理(ステップS102)とを行う回路であると共に、色データが入力されると、WDと頻度レジスタ24に記憶されているデータMFDの大小関係を判断(ステップS103)し、WD>MFDが成立していた場合(ステップS103;YES)には、WD,注目アドレス(入力された色データ)を、それぞれ、頻度レジスタ24,最頻出色レジスタ25にセット(ステップS104)する回路となっている。なお、図4の流れ図では、ステップS102の処理完了後に、ステップS104の処理が行われることになっているが、実際のSDRAM制御回路22は、ステップS104の処理を,ステップS102の処理とほぼ同時に行う回路構成を有するものとなっている。   That is, when color data is input, the SRAM control circuit 22 uses the color data as a target address (read or write address) to read the target address data RD on the SDRAM 23 (step S101), and RD 1 is added to the SDRAM 23 as the address data of interest (step S102). When color data is input, the WD and the data MFD stored in the frequency register 24 are stored. When the size relationship is determined (step S103) and WD> MFD is satisfied (step S103; YES), the WD and the address of interest (input color data) are respectively set in the frequency register 24 and the most frequently appearing color. The circuit is set in the register 25 (step S104). In the flowchart of FIG. 4, the process of step S104 is performed after the process of step S102 is completed, but the actual SDRAM control circuit 22 performs the process of step S104 almost simultaneously with the process of step S102. It has a circuit configuration to perform.

そして、本実施形態に係る画像処理装置10は、そのファームウェアとして、SDRAM上の画像データ(通常、スキャナ11が生成した画像データ)に対して,その最頻出色を必要とする画像処理を行う場合、CPUが、各種情報設定を行うことにより出現色ヒストグラム作成回路20を動作させた後,割込信号が入力されたとき(或いは、出現色ヒストグラム作成回路20内のスタートレジスタの値が“0”となったとき)に、出現色ヒストグラム作成回路20内の最頻出色レジスタ25に記憶されているデータ(つまり、最頻出色)を読み出し、その読み出したデータを利用して実際の画像処理を行うことになるものが用意(作成)されて使用されている装置となっている。   When the image processing apparatus 10 according to the present embodiment performs image processing that requires the most frequently occurring color on image data (usually, image data generated by the scanner 11) on the SDRAM as firmware. When the CPU operates the appearance color histogram creation circuit 20 by performing various information settings and then receives an interrupt signal (or the value of the start register in the appearance color histogram creation circuit 20 is “0”). The data stored in the most frequently appearing color register 25 in the appearance color histogram creating circuit 20 (that is, the most frequently appearing color) is read out, and actual image processing is performed using the read data. The device is prepared (created) and used.

以上、説明したように、本発明の第1実施形態に係る画像処理装置10は、処理対象画像データ(データ読出・アドレス変換回路21が12ビット化して色データ毎にSRAM制御回路22へ供給する画像データ)に関する出現色ヒストグラムを作成しながら、処理対象画像データに関する最頻出色を求めてしまう出現色ヒストグラム作成回路20を備えた装置となっている。そして、画像処理装置10は、CPUが、出現色ヒストグラム作成回路20が求めた最頻出色(最頻出色レジスタ25の値)を用いて画像処理を行う装置であるため、この画像処理装置10は、CPUが、ハードウェアによって用意された出現色ヒストグラムから最頻出色を求める処理を行わない分、既存の画像処理装置よりも、最頻出色を必要とする画像処理が早く完了する装置となっていることになる。   As described above, the image processing apparatus 10 according to the first embodiment of the present invention processes image data (the data read / address conversion circuit 21 converts the data into 12 bits and supplies the color data to the SRAM control circuit 22. The apparatus includes an appearance color histogram creation circuit 20 that obtains the most frequently appearing color for the processing target image data while creating the appearance color histogram for the image data. The image processing apparatus 10 is an apparatus in which the CPU performs image processing using the most frequently occurring color (the value of the most frequently occurring color register 25) obtained by the appearance color histogram creating circuit 20, and therefore the image processing apparatus 10 Since the CPU does not perform the process of obtaining the most frequently occurring color from the appearance color histogram prepared by hardware, the image processing that requires the most frequently occurring color is completed earlier than the existing image processing apparatus. Will be.

《第2実施形態》
本発明の第2実施形態に係る画像処理装置は、本発明の第1実施形態に係る画像処理装置10と同様のハードウェア構成(図1,図2参照)を有する装置である。ただし、第2実施形態に係る画像処理装置に実装されているメモリ制御ASICは、図5に示した構成の出現色ヒストグラム作成回路30を備えたものとなっている。
<< Second Embodiment >>
The image processing apparatus according to the second embodiment of the present invention is an apparatus having the same hardware configuration (see FIGS. 1 and 2) as the image processing apparatus 10 according to the first embodiment of the present invention. However, the memory control ASIC implemented in the image processing apparatus according to the second embodiment includes the appearance color histogram creation circuit 30 having the configuration shown in FIG.

この出現色ヒストグラム作成回路30が備えるSRAM33は、SRAM23と同仕様・同用途のメモリである。第1頻度レジスタ34,第1頻出色レジスタ35は、それぞれ、頻度レジスタ24,最頻出色レジスタ25と同仕様・同用途のレジスタである。 The SRAM 33 provided in the appearance color histogram creation circuit 30 is a memory having the same specification and the same application as the SRAM 23. The first frequency register 34 1 and the first frequent color register 35 1 are registers having the same specifications and uses as the frequency register 24 and the most frequent color register 25, respectively.

第2頻出色レジスタ35は、出現色ヒストグラム作成回路30が動作すると、出現頻度が2番目に大きな色データ(12ビット長のもの;以下、第2頻出色と表記する)が記憶されることになるレジスタ(本実施形態では、1ワードのデータを記憶可能なもの)である。第2頻度レジスタ34は、出現色ヒストグラム作成回路30が動作すると、第2頻出色の出現頻度(出現回数)が記憶されることになるレジスタ(本実施形態では、1ワードのデータを記憶可能なもの)である。 Second frequent color register 35 2, the color appearance histogram creation circuit 30 operates, occurrence frequency large color data in the second (that of 12-bit length, hereinafter referred to as second frequent color) that is stored Is a register (which can store one word of data in this embodiment). Second frequency register 34 2, the color appearance histogram creation circuit 30 operates, in the register (in this embodiment that the frequency of occurrence of the second frequent color (number of occurrences) is to be stored, capable of storing one word of data ).

データ読出・アドレス変換回路31は、データ読出・アドレス変換回路21と同様の機能を有する回路である。ただし、データ読出・アドレス変換回路31は、スタートレジスタに所定値(本実施形態では、“1”)が書き込まれた場合、第2頻度レジスタ34及び第2頻出色レジスタ35も“0”クリアする回路となっている。また、データ読出・アドレス変換回路31は、停止制御回路36(詳細は後述)から所定の停止指示信号が入力された場合、データのDMA転送処理を中止して、スタートレジスタの値を“0”に戻す処理や、割込信号を出力する処理を行った後に動作を停止する回路となっている。 The data read / address conversion circuit 31 is a circuit having the same function as the data read / address conversion circuit 21. However, the data read-address conversion circuit 31 is a predetermined value to start register (in this embodiment, "1") if is written, a second frequency register 34 2 and the second frequent color register 35 2 is also "0" It is a circuit to clear. Further, when a predetermined stop instruction signal is input from the stop control circuit 36 (details will be described later), the data read / address conversion circuit 31 stops the data DMA transfer process and sets the value of the start register to “0”. This is a circuit that stops the operation after performing the process of returning to the above and the process of outputting an interrupt signal.

SRAM制御回路32は、データ読出・アドレス変換回路31から,12ビットの色データが入力される度に、図6に示した処理を行う回路である。   The SRAM control circuit 32 is a circuit that performs the processing shown in FIG. 6 every time 12-bit color data is input from the data read / address conversion circuit 31.

すなわち、SRAM制御回路32は、色データが入力されると、SRAM制御回路22が行うものと同内容の処理(ステップS201〜S204)を行う回路であると共に、FD1≧WD>FD2が成立していた場合、WD,注目アドレス(入力された色データ)を、それぞれ、第2頻度レジスタ34,第2頻出色レジスタ35にセットする処理(ステップS205及びS206)を行う回路となっている。なお、FD1,FD2とは、それぞれ、第1頻度レジスタ34の値、第2頻度レジスタ34の値のことである。 In other words, the SRAM control circuit 32 is a circuit that performs the same processing (steps S201 to S204) as that performed by the SRAM control circuit 22 when color data is input, and FD1 ≧ WD> FD2 is satisfied. If, WD, attention address (input color data), respectively, the second frequency register 34 2, it has a circuit that performs processing (steps S205 and S206) to set the second frequent color register 35 2. Incidentally, FD1, FD2 and, respectively, the first frequency register 34 value of 1, is that of the second frequency register 34 2 values.

また、SRAM制御回路32は、上記した停止指示信号が停止制御回路36から入力された場合、動作を終了する回路ともなっている。   The SRAM control circuit 32 is also a circuit that terminates the operation when the stop instruction signal is input from the stop control circuit 36.

停止制御回路36(図5)は、データ読出・アドレス変換回路31が管理している未転送データ数RN,第1頻度レジスタ34の値FD1,第2頻度レジスタ34の値FD2に関する関係式“RN=FD1−FD2−1”が成立したとき〔つまり、その後に処理される全ての色データが第2頻出色データであっても、第2頻出色データの総数(FD2)が,現在の第1頻出色データの総数(FD1)を超えないことが確定したとき〕に、上記した停止指示信号を、データ読出・アドレス変換回路31及びSRAM制御回路32に対して出力する機能を有する回路である。この停止制御回路36は、動作させる(停止指示信号を出力させる)か否かをCPUが指定できる回路となっている。 The stop control circuit 36 (FIG. 5) is untransmitted data number data read-address conversion circuit 31 is managed by RN, the first frequency register 34 1 value FD1, relationship for the second frequency register 34 2 values FD2 When “RN = FD1-FD2-1” is satisfied [that is, even if all the color data processed after that is the second frequent color data, the total number (FD2) of the second frequent color data is the current A circuit having a function of outputting the above stop instruction signal to the data read / address conversion circuit 31 and the SRAM control circuit 32 when it is determined that the total number of the first frequent color data (FD1) is not exceeded. is there. The stop control circuit 36 is a circuit that allows the CPU to specify whether to operate (output a stop instruction signal).

要するに、本実施形態に係る画像処理装置が備える出現色ヒストグラム作成回路30は、停止制御回路36を動作させなかった場合には、正確な出現色ヒストグラムを作成でき,かつ,第2頻出色も求めることができる回路として機能し、停止制御回路36を動作させた場合には、作成される出現色ヒストグラム(SRAM33上のデータ群)は正確なものとはならないが,第1頻出色をより短時間で求めることができる回路として機能するものとなっている。   In short, the appearance color histogram creation circuit 30 included in the image processing apparatus according to the present embodiment can create an accurate appearance color histogram when the stop control circuit 36 is not operated, and also obtains the second frequent color. When the stop control circuit 36 is operated, the appearance color histogram (data group on the SRAM 33) to be created is not accurate, but the first frequent color is shortened in a shorter time. It functions as a circuit that can be obtained by

そして、そのような出現色ヒストグラム作成回路30を備えた装置であるが故に、本実施形態に係る画像処理装置は、最頻出色のみを必要とする画像処理を行う場合には、CPUが、停止制御回路36が動作する状態で出現色ヒストグラム作成回路30を動作させることになり、正確な出現色ヒストグラムや第2頻出色を必要とする画像処理を行う場合には、CPUが、停止制御回路36が動作しない状態で出現色ヒストグラム作成回路30を動作させることになるように、そのファームウェアを作成した装置となっている。   Since the image processing apparatus according to this embodiment is an apparatus including such an appearance color histogram creation circuit 30, the CPU stops when performing image processing that requires only the most frequently occurring colors. When the appearance color histogram creation circuit 30 is operated in a state in which the control circuit 36 is operating, and when performing image processing that requires an accurate appearance color histogram or the second frequent color, the CPU controls the stop control circuit 36. Thus, the firmware is created so that the appearance color histogram creation circuit 30 is operated in a state in which the device does not operate.

従って、本発明の第2実施形態に係る画像処理装置は、最頻出色のみを必要とする画像処理(正確な出現色ヒストグラムを必要としない処理)が第1実施形態に係る画像処理装置10よりも早く完了する装置であると共に、第2頻出色も必要とする画像処理が第1実施形態に係る画像処理装置10よりも早く完了する装置となっていると言うことが出来る。   Therefore, in the image processing apparatus according to the second embodiment of the present invention, image processing that requires only the most frequently occurring color (processing that does not require an accurate appearance color histogram) is performed by the image processing apparatus 10 according to the first embodiment. It can be said that the apparatus completes earlier than the image processing apparatus 10 according to the first embodiment, and the image processing that requires the second frequent color is also completed.

《第3実施形態》
本発明の第3実施形態に係る画像処理装置は、本発明の第2実施形態に係る画像処理装置を変形したものである。このため、以下では、第2実施形態の説明時に用いたものと同じ符号を用いて、第2実施形態に係る画像処理装置と異なる部分を中心に、本発明の第3実施形態に係る画像処理装置の構成及び動作を説明することにする。
<< Third Embodiment >>
The image processing apparatus according to the third embodiment of the present invention is a modification of the image processing apparatus according to the second embodiment of the present invention. For this reason, hereinafter, the same reference numerals as those used in the description of the second embodiment are used, and the image processing according to the third embodiment of the present invention will be focused on the parts different from the image processing apparatus according to the second embodiment. The configuration and operation of the device will be described.

第3実施形態に係る画像処理装置に用いられている出現色ヒストグラム作成回路30(メモリ制御ASIC上の回路)は、第2頻出色レジスタ35及び第2頻度レジスタ34を備えない回路である。さらに、第3実施形態に係る出現色ヒストグラム作成回路30は、SRAM制御回路32として、ステップS205,S206の処理を行わない回路が用いられ、停止制御回路36が、第1頻度レジスタ34の値FD1が,データ読出・アドレス変換回路31が管理しているDMA転送データ数の1/2を超えたときに、停止指示信号を出力する回路が用いられた回路となっている。 Third according to an embodiment the image processing apparatus has color appearance histogram creation circuit 30 used in the (circuit on the memory control ASIC) is a circuit that does not include a second frequent color register 35 2 and the second frequency register 34 2 . Furthermore, color appearance histogram creation circuit 30 according to the third embodiment, as an SRAM control circuit 32, step S205, processing is not performed circuitry S206 is used, the stop control circuit 36, a first frequency register 34 the value of 1 This circuit uses a circuit that outputs a stop instruction signal when FD1 exceeds 1/2 of the number of DMA transfer data managed by the data read / address conversion circuit 31.

要するに、本実施形態に係る画像処理装置が備える出現色ヒストグラム作成回路は、停止制御回路36を動作させなかった場合には、正確な出現色ヒストグラムを作成できる回路として機能し、停止制御回路36を動作させた場合には、作成される出現色ヒストグラム(SRAM33上のデータ群)は正確なものとはならないが,第1頻出色をより短時間で求めることができる回路として機能するものとなっている。   In short, the appearance color histogram creation circuit included in the image processing apparatus according to the present embodiment functions as a circuit that can create an accurate appearance color histogram when the stop control circuit 36 is not operated. When it is operated, the generated appearance color histogram (data group on the SRAM 33) is not accurate, but functions as a circuit that can obtain the first frequent color in a shorter time. Yes.

そして、そのような出現色ヒストグラム作成回路を備えた装置であるが故に、本実施形態に係る画像処理装置は、最頻出色のみを必要とする画像処理を行う場合には、CPUが、停止制御回路36が動作する状態で出現色ヒストグラム作成回路30を動作させることになり、正確な出現色ヒストグラムを必要とする画像処理を行う場合には、CPUが、停止制御回路36が動作しない状態で出現色ヒストグラム作成回路30を動作させることになるように、そのファームウェアを作成した装置となっている。   Since the image processing apparatus according to this embodiment is an apparatus including such an appearance color histogram creation circuit, the CPU performs stop control when performing image processing that requires only the most frequently occurring colors. When the appearance color histogram creation circuit 30 is operated in a state where the circuit 36 is operating, and when performing image processing that requires an accurate appearance color histogram, the CPU appears in a state where the stop control circuit 36 is not operating. The firmware is created so that the color histogram creation circuit 30 is operated.

従って、本発明の第3実施形態に係る画像処理装置は、最頻出色のみを必要とする画像処理(正確な出現色ヒストグラムを必要としない処理)が第1実施形態に係る画像処理装置10よりも早く完了する装置となっていると言うことが出来る。   Therefore, in the image processing apparatus according to the third embodiment of the present invention, image processing that requires only the most frequently occurring color (processing that does not require an accurate appearance color histogram) is performed by the image processing apparatus 10 according to the first embodiment. It can be said that the device is completed as soon as possible.

《変形形態》
上記した各実施形態に係る画像処理装置,出現色ヒストグラム作成回路は、各種の変形を行うことが出来る。例えば、上記した出現色ヒストグラム作成回路20,30を、モノクロ多階調画像データに関する出現色(この場合、無彩色)ヒストグラムを作成する回路に変形し、各実施形態に係る画像処理装置を、モノクロ複合機に変形することが出来る。また、出現色ヒストグラム作成回路30を、出現頻度がN(>2)番目までの頻出色を求めることが出来る回路に変形することも出来る。
<Deformation>
The image processing apparatus and the appearance color histogram creation circuit according to each embodiment described above can perform various modifications. For example, the appearance color histogram creation circuits 20 and 30 described above are transformed into a circuit for creating an appearance color (in this case, achromatic color) histogram related to monochrome multi-tone image data, and the image processing apparatus according to each embodiment is changed to a monochrome image. It can be transformed into a multifunction device. In addition, the appearance color histogram creation circuit 30 can be modified to a circuit that can obtain frequent colors up to the N (> 2) th appearance frequency.

また、上記した画像処理装置は、いわゆる複合機であったが、出現色ヒストグラム作成回路20,30は、画像処理を行うどのような装置にも使用できるものである。従って、上記技術を利用して、複合機以外の画像処理装置(デジタルカメラ,スキャナ,ビデオデータの加工装置等)を実現しても良いことは、当然のことである。   Although the above-described image processing apparatus is a so-called multi-function machine, the appearance color histogram creation circuits 20 and 30 can be used for any apparatus that performs image processing. Accordingly, it is a matter of course that an image processing apparatus (digital camera, scanner, video data processing apparatus, etc.) other than the multifunction machine may be realized using the above technique.

本発明の第1実施形態に係る画像処理装置の構成図。1 is a configuration diagram of an image processing apparatus according to a first embodiment of the present invention. 第1実施形態に係る画像処理装置が備えるコントローラの構成図。1 is a configuration diagram of a controller included in an image processing apparatus according to a first embodiment. 第1実施形態に係る画像処理装置に用いられているメモリ制御ASICが備える出現色ヒストグラム作成回路の構成図。FIG. 3 is a configuration diagram of an appearance color histogram creation circuit included in a memory control ASIC used in the image processing apparatus according to the first embodiment. 第1実施形態に係る出現色ヒストグラム作成回路内のSRAM制御回路の機能を説明するための流れ図。6 is a flowchart for explaining the function of the SRAM control circuit in the appearance color histogram creation circuit according to the first embodiment; 本発明の第2実施形態に係る画像処理装置に用いられているメモリ制御ASICが備える出現色ヒストグラム作成回路の構成図。The block diagram of the appearance color histogram creation circuit with which the memory control ASIC used for the image processing apparatus which concerns on 2nd Embodiment of this invention is provided. 第2実施形態に係る出現色ヒストグラム作成回路内のSRAM制御回路の機能を説明するための流れ図。9 is a flowchart for explaining functions of an SRAM control circuit in an appearance color histogram creation circuit according to the second embodiment.

符号の説明Explanation of symbols

10 画像処理装置、 11 スキャナ、 12 操作パネル
13 コントローラ、 14 印刷エンジン
20,30 出現色ヒストグラム作成回路
21,31 データ読出・アドレス変換回路
22,32 SRAM制御回路、 23,33 SRAM
24 頻度レジスタ、25 最頻出色レジスタ
34 第1頻度レジスタ、 34 第2頻度レジスタ
35 第1頻出色レジスタ、 35 第2頻出色レジスタ、 36 停止制御回路
DESCRIPTION OF SYMBOLS 10 Image processing apparatus, 11 Scanner, 12 Operation panel 13 Controller, 14 Print engine 20, 30 Appearance color histogram creation circuit 21, 31 Data reading / address conversion circuit 22, 32 SRAM control circuit, 23, 33 SRAM
24 frequency register, 25 most frequent color register 34 1 first frequency register, 34 2 second frequency register 35 1 first frequent color register, 35 2 second frequent color register, 36 stop control circuit

Claims (4)

外部回路が読出アクセスを行える最頻出色レジスタと、
頻度レジスタと、
外部回路が読出アクセスを行える複数の記憶領域を有する出現色ヒストグラム記憶回路と、
複数の色データからなる処理対象画像データ中の色データ毎に、前記出現色ヒストグラム記憶回路内の,その色データの値によって特定される記憶領域に記憶されている値を“1”増加させる処理を行う色データ処理回路であって、増加させた後の前記値である更新値が前記頻度レジスタに記憶されている値よりも大きな値であった場合には、前記最頻出色レジスタ,前記頻度レジスタに,それぞれ,当該更新値を記憶している前記記憶領域を示す情報,当該更新値を設定する処理を行う色データ処理回路と、
前記色データ処理回路による処理の完了を外部回路に通知するための処理完了通知回路と
を備えることを特徴とする出現色ヒストグラム作成回路。
The most frequent color register that can be read by an external circuit;
A frequency register;
An appearance color histogram storage circuit having a plurality of storage areas to which an external circuit can perform read access;
Processing for incrementing the value stored in the storage area specified by the value of the color data in the appearance color histogram storage circuit for each color data in the processing target image data composed of a plurality of color data. In the color data processing circuit that performs the above, when the updated value that is the increased value is larger than the value stored in the frequency register, the most frequent color register, the frequency Information indicating the storage area storing the update value in the register, a color data processing circuit for performing processing for setting the update value, and
An appearance color histogram creation circuit comprising: a processing completion notification circuit for notifying an external circuit of completion of processing by the color data processing circuit.
外部回路が読出アクセスを行える第2頻出色レジスタと、
第2頻度レジスタとを、さらに、備え、
前記色データ処理回路が、
前記更新値が,前記頻度レジスタに記憶されている値以下の,前記第2頻度レジスタに記憶されている値よりも大きな値であった場合には、前記第2頻出色レジスタ,前記第2頻度レジスタに,それぞれ,当該更新値を記憶している前記記憶領域を示す情報,当該更新値を設定する処理を行う回路である
ことを特徴とする請求項1記載の出現色ヒストグラム作成回路。
A second frequent color register from which an external circuit can perform read access;
A second frequency register, and
The color data processing circuit is
If the updated value is less than the value stored in the frequency register and greater than the value stored in the second frequency register, the second frequent color register, the second frequency The appearance color histogram creation circuit according to claim 1, wherein each register is a circuit that performs processing for setting information indicating the storage area storing the update value and the update value.
前記色データ処理回路による処理が完了していない色データ数を監視し、当該色データ数が,記頻度レジスタ上の値から前記第2頻度レジスタ上の値を減じた値と一致したときに、前記色データ処理回路による処理を停止させる停止制御回路を、さらに備える
ことを特徴とする請求項2記載の出現色ヒストグラム作成回路。
When the number of color data that has not been processed by the color data processing circuit is monitored and the number of color data matches the value obtained by subtracting the value on the second frequency register from the value on the recording frequency register, The appearance color histogram creation circuit according to claim 2, further comprising: a stop control circuit that stops processing by the color data processing circuit.
請求項1乃至請求項3のいずれかに記載の出現色ヒストグラム作成回路と、
前記出現色ヒストグラム作成回路による処理が行われた前記処理対象画像データに対して、前記出現色ヒストグラム作成回路内の前記最頻出色レジスタ上の情報を必要とする画像処理を行う画像処理手段と
を、備えることを特徴とする画像処理装置。
An appearance color histogram creation circuit according to any one of claims 1 to 3,
Image processing means for performing image processing that requires information on the most frequently appearing color register in the appearance color histogram creation circuit on the processing target image data that has been processed by the appearance color histogram creation circuit; An image processing apparatus comprising:
JP2007198523A 2007-07-31 2007-07-31 Appearance color histogram creation circuit and image processor Withdrawn JP2009037277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007198523A JP2009037277A (en) 2007-07-31 2007-07-31 Appearance color histogram creation circuit and image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007198523A JP2009037277A (en) 2007-07-31 2007-07-31 Appearance color histogram creation circuit and image processor

Publications (1)

Publication Number Publication Date
JP2009037277A true JP2009037277A (en) 2009-02-19

Family

ID=40439152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007198523A Withdrawn JP2009037277A (en) 2007-07-31 2007-07-31 Appearance color histogram creation circuit and image processor

Country Status (1)

Country Link
JP (1) JP2009037277A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8331668B2 (en) 2009-08-21 2012-12-11 Seiko Epson Corporation Image processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8331668B2 (en) 2009-08-21 2012-12-11 Seiko Epson Corporation Image processing device

Similar Documents

Publication Publication Date Title
JP4476203B2 (en) Image processing apparatus, program, and image processing method
JP2010251925A (en) Data processing apparatus and method for controlling the same
JP2008225320A (en) Image forming apparatus
US20160078332A1 (en) Image forming device, method of switching modes, and computer-readable recording medium
JP2009081742A (en) Image forming device
JP7073634B2 (en) Electronic devices and programs
JP2007082060A (en) Image processing device and connection system for image processings
JP2007116457A (en) Image forming apparatus
JP2009037277A (en) Appearance color histogram creation circuit and image processor
US9036197B2 (en) Data transfer control apparatus and data transfer control method
JP2009276825A (en) Image processing apparatus, image processing method, image processing program, and storage medium
JP2004038545A (en) Hibernation control process, hibernation controller unit, and image processor
JP2007037017A (en) Image processing apparatus, image processing method, image processing program, and recording medium with image processing program recorded thereon
JP2012234458A (en) Image processing device, and control method and program for image processing device
JP2009207014A (en) Image processing apparatus
JP2008301090A (en) Image processing device
JP6210223B2 (en) Image forming apparatus, image forming method, and program
JP2007306445A (en) Image data conversion device
JP2011056935A (en) Printing device, method for controlling printing device, and program
JP7167679B2 (en) Image processing device
JP2007125728A (en) Printing device and image processor
JP2007280373A (en) Data processing device, image processing device, image forming apparatus, and computer program
JP6091481B2 (en) Image processing apparatus and screen display method
JP2008109385A (en) Image processing method, apparatus and program
JP2005167882A (en) Remote management system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20101005