JP2008066950A - Image color deciding device, image color deciding method, and image color deciding program - Google Patents

Image color deciding device, image color deciding method, and image color deciding program Download PDF

Info

Publication number
JP2008066950A
JP2008066950A JP2006241354A JP2006241354A JP2008066950A JP 2008066950 A JP2008066950 A JP 2008066950A JP 2006241354 A JP2006241354 A JP 2006241354A JP 2006241354 A JP2006241354 A JP 2006241354A JP 2008066950 A JP2008066950 A JP 2008066950A
Authority
JP
Japan
Prior art keywords
image
unit
gray
luminance
determination
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.)
Pending
Application number
JP2006241354A
Other languages
Japanese (ja)
Inventor
Katsumi Minamino
勝巳 南野
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2006241354A priority Critical patent/JP2008066950A/en
Publication of JP2008066950A publication Critical patent/JP2008066950A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To perform processing suitable to features of a document even when an image associated with the document is an achromatic color image. <P>SOLUTION: When deciding that the image is a monochromatic image, a mode deciding unit 152 further decides features of the document by using decision results of a block decision unit 148 which decides color classifications that respective blocks obtained by longitudinally and laterally dividing the image associated with the document belong to decide which of a white-paper document, a gray document, and a black-and-white document the document is. The mode decision unit 152 sets the processing mode of a digital multifunction apparatus 1 to a white-paper mode when deciding that the document is a white-paper document, sets the processing mode of the digital multifunction apparatus 1 to a mode suitable to a gray document when deciding that the document is the gray document, and sets the processing mode of the digital multifunction apparatus 1 to a mode suitable to a black-and-white document when deciding that the document is the black-and-white document. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像色判定装置、画像色判定方法及び画像色判定プログラムに関する。   The present invention relates to an image color determination device, an image color determination method, and an image color determination program.

原稿を読み取って記録紙上に画像を再現する電子写真方式のカラーコピー機は、通常、イエロー,マゼンダ,シアン,黒の4色の画像形成エンジンを備え、記録紙上への画像形成を4回繰り返すことにより、カラーコピーを実現している。しかし、原稿に係る画像が無彩色画像である場合は、4色の画像形成エンジンの全てを動作させて記録紙上への画像形成を行うことは、コピー時間やコピー費用の点で無駄が多い。このため、原稿に係る画像が無彩色画像であるか否かを自動的に判定し、当該画像を無彩色画像とみなすことができる場合には、黒の画像形成エンジンのみを動作させて記録紙上への画像形成を行うことが望ましい。   An electrophotographic color copying machine that reads an original and reproduces an image on a recording sheet is usually provided with an image forming engine of four colors of yellow, magenta, cyan, and black, and repeats image formation on the recording sheet four times. This realizes color copying. However, when the image relating to the document is an achromatic image, it is wasteful in terms of copying time and copying cost to operate all four color image forming engines to form an image on recording paper. For this reason, it is automatically determined whether or not the image relating to the original is an achromatic image, and when the image can be regarded as an achromatic image, only the black image forming engine is operated to operate on the recording paper. It is desirable to form an image on

なお、特許文献1は、画像が無彩色画像であるか否かを判定する技術に関する先行技術文献である。   Note that Patent Document 1 is a prior art document relating to a technique for determining whether an image is an achromatic image.

特公平8−10901号公報Japanese Patent Publication No.8-10901

しかし、従来技術では、原稿に係る画像が無彩色画像であるか否かは判定できるものの、原稿に係る画像が無彩色画像である場合に、原稿の特徴に適した処理をカラーコピー機に行わせることはできなかった。   However, in the prior art, it can be determined whether or not the image related to the original is an achromatic image, but when the image related to the original is an achromatic image, the color copier performs processing suitable for the characteristics of the original. I couldn't.

本発明は、この問題を解決するためになされたもので、カラーコピー機等の画像処理装置において、原稿に係る画像が無彩色画像であっても、原稿の特徴に適した処理を行うことができるようにすることを目的とする。   The present invention has been made to solve this problem, and an image processing apparatus such as a color copier can perform processing suitable for the characteristics of an original even if the image related to the original is an achromatic image. The purpose is to be able to.

上記課題を解決するため、請求項1の発明は、原稿に係る画像を分割して得られるブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定する輝度区分判定手段と、前記輝度区分判定手段の判定結果を利用して、前記画像の処理モードを決定する決定手段とを備えることを特徴とする画像色判定装置である。   In order to solve the above-described problem, the invention of claim 1 includes a luminance classification determination unit that determines whether each of blocks obtained by dividing an image related to a document belongs to a luminance classification of white, gray, or black, An image color determination apparatus comprising: a determination unit that determines a processing mode of the image using a determination result of the luminance classification determination unit.

請求項2の発明は、前記決定手段は、全てのブロックが白の輝度区分に属する場合に、前記画像の処理モードを第1のモードとすることを特徴とする請求項1に記載の画像色判定装置である。   The invention according to claim 2 is characterized in that the determining means sets the processing mode of the image to the first mode when all the blocks belong to the white luminance classification. It is a determination device.

請求項3の発明は、前記決定手段は、グレイの輝度区分に属するブロックの数が基準値以上である場合に、前記画像の処理モードを第2のモードとすることを特徴とする請求項1又は請求項2に記載の画像色判定装置である。   The invention according to claim 3 is characterized in that the determining means sets the processing mode of the image to the second mode when the number of blocks belonging to the gray luminance classification is equal to or greater than a reference value. Alternatively, the image color determination apparatus according to claim 2.

請求項4の発明は、前記決定手段は、グレイの輝度区分に属するブロックの数が基準値より小さい場合に、前記画像の処理モードを第3のモードとすることを特徴とする請求項1ないし請求項3のいずれかに記載の画像色判定装置である。   The invention according to claim 4 is characterized in that the determining means sets the processing mode of the image to a third mode when the number of blocks belonging to the gray luminance division is smaller than a reference value. An image color determination apparatus according to claim 3.

請求項5の発明は、複数の画素を含む画素集合ごとに画素データを平均化する平均化手段と、前記平均化手段により平均化された画素データが白、グレイ及び黒の輝度区分のいずれに属するのかを判定する画素データ判定手段とをさらに備え、前記輝度区分判定手段は、前記画素データ判定手段の判定結果を利用して、ブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定することを特徴とする請求項1ないし請求項4のいずれかに記載の画像色判定装置である。   According to a fifth aspect of the present invention, there is provided averaging means for averaging pixel data for each pixel set including a plurality of pixels, and pixel data averaged by the averaging means is assigned to any of white, gray, and black luminance categories. Pixel data determination means for determining whether the block belongs, and the luminance classification determination means uses the determination result of the pixel data determination means, and each of the blocks belongs to one of white, gray, and black luminance classifications 5. The image color determination apparatus according to claim 1, wherein the image color determination apparatus is configured to determine whether the

請求項6の発明は、原稿から記録媒体へ画像をコピーするコピー手段をさらに備え、コピーの際の変倍率に基づいて前記画素集合に含まれる画素の数を決定することを特徴とする請求項5に記載の画像色判定装置である。   The invention of claim 6 further comprises copy means for copying an image from a document to a recording medium, wherein the number of pixels included in the pixel set is determined based on a scaling factor at the time of copying. 5. The image color determination device according to 5.

請求項7の発明は、前記画像の解像度を変換する変換手段をさらに備え、前記輝度区分判定手段は、前記変換手段により解像度が変換される前の画像を分割して得られるブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定することを特徴とする請求項1ないし請求項6のいずれかに記載の画像色判定装置である。   The invention according to claim 7 further includes conversion means for converting the resolution of the image, and the luminance classification determination means is configured such that each of the blocks obtained by dividing the image before the resolution is converted by the conversion means is white. 7. The image color determination apparatus according to claim 1, wherein the image color determination apparatus determines which one of the brightness classifications gray, gray, and black belongs.

請求項8の発明は、前記画像に係る画像データの構成単位となる単位データがグレイの輝度区分に属するか否かを判定する単位データ判定手段と、グレイの輝度区分に属する単位データの数であるグレイ単位データ数を計数する計数手段とをさらに備え、前記輝度区分判定手段は、グレイ単位データ数が第1閾値超の場合、ブロックがグレイの輝度区分に属すると判定し、グレイ単位データ数が第1閾値以下で第2閾値超の場合、ブロックが黒の輝度区分に属すると判定し、グレイ単位データ数が第2閾値以下の場合、ブロックが白の輝度区分に属すると判定することを特徴とする請求項1ないし請求項7のいずれかに記載の画像色判定装置である。   The invention according to claim 8 includes unit data determination means for determining whether or not unit data that is a constituent unit of image data relating to the image belongs to a gray luminance classification, and the number of unit data belonging to the gray luminance classification. Counting means for counting the number of gray unit data, and the brightness classification determining means determines that the block belongs to the gray brightness classification when the number of gray unit data exceeds a first threshold, and the number of gray unit data Is less than the first threshold and greater than the second threshold, it is determined that the block belongs to the black luminance category, and when the gray unit data number is equal to or less than the second threshold, it is determined that the block belongs to the white luminance category. The image color determination device according to claim 1, wherein the image color determination device is a device for determining image color.

請求項9の発明は、前記画像に係る画像データの構成単位となる単位データがグレイの輝度区分に属するか否か及び黒の輝度区分に属するか否かを判定する単位データ判定手段と、グレイの輝度区分に属する単位データの数であるグレイ単位データ数及び黒の輝度区分に属する単位データの数である黒単位データ数を計数する計数手段とをさらに備え、前記輝度区分判定手段は、グレイ単位データ数が第1閾値超で黒単位データ数が第2閾値超の場合、ブロックが黒の輝度区分に属すると判定し、グレイ単位データ数が第1閾値超で黒単位データ数が第2閾値以下の場合、ブロックがグレイの輝度区分に属すると判定し、グレイ単位データ数が第1閾値以下で黒単位データ数が第2閾値超の場合、ブロックが黒の輝度区分に属すると判定し、グレイ単位データ数が第1閾値以下で黒単位データ数が第2閾値以下の場合、ブロックが白の輝度区分に属すると判定することを特徴とする請求項1ないし請求項7のいずれかに記載の画像色判定装置である。   According to a ninth aspect of the present invention, there is provided unit data determination means for determining whether or not unit data as a constituent unit of image data relating to the image belongs to a gray luminance category and whether to belong to a black luminance category, gray data And counting means for counting the number of gray unit data that is the number of unit data belonging to the luminance classification and the number of black unit data that is the number of unit data belonging to the black luminance classification, and the luminance classification determining means If the number of unit data exceeds the first threshold and the number of black unit data exceeds the second threshold, it is determined that the block belongs to the black luminance classification, the number of gray unit data exceeds the first threshold, and the number of black unit data is the second. If the threshold is less than or equal to the threshold, the block is determined to belong to the gray luminance category. If the number of gray unit data is equal to or less than the first threshold and the number of black unit data exceeds the second threshold, the block is determined to belong to the black luminance category. , 8. The block according to claim 1, wherein when the number of ray unit data is equal to or less than a first threshold and the number of black unit data is equal to or less than a second threshold, it is determined that the block belongs to a white luminance category. This is an image color determination device.

請求項10の発明は、ブロックの各々が属する色区分を判定する色区分判定手段と、前記色区分判定手段の判定結果を利用して、前記画像が無彩色画像であるか否かを判定する無彩色判定手段とをさらに備え、前記無彩色判定手段により前記画像が無彩色画像であると判定された場合に、前記画像の処理モードを決定することを特徴とする請求項1ないし請求項9のいずれかに記載の画像色判定装置である。   The invention according to claim 10 determines whether the image is an achromatic color image by using a color classification determination means for determining a color classification to which each block belongs, and a determination result of the color classification determination means. 10. An achromatic color determining unit, further comprising: determining a processing mode of the image when the achromatic color determining unit determines that the image is an achromatic image. The image color determination apparatus according to any one of the above.

請求項11の発明は、原稿に係る画像を分割して得られるブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定する輝度区分判定工程と、前記輝度区分判定工程の判定結果を利用して、前記画像の処理モードを決定する決定工程とを備える画像色判定方法である。   According to the eleventh aspect of the present invention, there is provided a luminance classification determining step for determining whether each of the blocks obtained by dividing the image relating to the original document belongs to a luminance classification of white, gray or black, and determination of the luminance classification determining step And a determination step of determining a processing mode of the image using a result.

請求項12の発明は、原稿に係る画像を分割して得られるブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定する輝度区分判定手順と、前記輝度区分判定手順の判定結果を利用して、前記画像の処理モードを決定する決定手順とをコンピュータに実行させることを特徴とする画像色判定プログラムである。   According to a twelfth aspect of the present invention, there is provided a luminance classification determination procedure for determining whether each block obtained by dividing an image relating to a document belongs to a luminance classification of white, gray, or black, and determination of the luminance classification determination procedure An image color determination program that causes a computer to execute a determination procedure for determining a processing mode of the image using a result.

請求項1ないし請求項12の発明によれば、原稿に係る画像が無彩色画像であっても、原稿の特徴に適した処理を行うことができる。   According to the first to twelfth aspects of the present invention, even if the image relating to the document is an achromatic image, processing suitable for the characteristics of the document can be performed.

請求項2の発明によれば、第1のモードにおいて白紙原稿に適した処理を行うことができる。   According to the second aspect of the present invention, it is possible to perform processing suitable for a blank original in the first mode.

請求項3の発明によれば、第2のモードにおいてグレイ原稿に適した処理を行うことができる。   According to the invention of claim 3, processing suitable for a gray document can be performed in the second mode.

請求項4の発明によれば、第3のモードにおいて白黒原稿に適した処理を行うことができる。   According to the invention of claim 4, it is possible to perform processing suitable for a black and white document in the third mode.

請求項5の発明によれば、偽色の影響を排除できる。   According to the invention of claim 5, the influence of false color can be eliminated.

請求項6の発明によれば、変倍に起因する偽色の影響を効果的に排除できる。   According to the invention of claim 6, it is possible to effectively eliminate the influence of false color due to zooming.

請求項7の発明によれば、処理モードの決定が解像度の変換の影響を受けなくなる。   According to the invention of claim 7, the determination of the processing mode is not affected by the resolution conversion.

請求項8の発明によれば、画像色判定装置を簡略化できる。   According to the invention of claim 8, the image color determination device can be simplified.

請求項9の発明によれば、画像色判定装置を簡略化できる。   According to invention of Claim 9, an image color determination apparatus can be simplified.

請求項10の発明によれば、原稿に係る画像が無彩色画像であるか否かを自動判定して原稿の特徴に適した処理を行うことができる。   According to the tenth aspect of the present invention, it is possible to automatically determine whether or not an image relating to an original is an achromatic image and to perform processing suitable for the characteristics of the original.

<1 デジタル複合機の全体構成>
図1は、本発明の望ましい実施形態に係るデジタル複合機1の全体構成を示すブロック図である。デジタル複合機1は、MFP(Multi Function Peripherals)とも呼称され、ファクシミリ機能、コピー機能、スキャン機能、プリント機能等の複数の機能を有している。
<1 Overall configuration of digital multifunction device>
FIG. 1 is a block diagram showing an overall configuration of a digital multi-function peripheral 1 according to a preferred embodiment of the present invention. The digital multi-function peripheral 1 is also called MFP (Multi Function Peripherals) and has a plurality of functions such as a facsimile function, a copy function, a scan function, and a print function.

図1に示すように、デジタル複合機1は、CPU102、ROM104及びRAM106を備える。ROM104には、デジタル複合機1のファームウェア等のプログラムPRGが格納され、CPU102、ROM104及びRAM106によって実現されるコンピュータは、ROM104に格納されたプログラムPRGにしたがって演算処理を実行することにより、デジタル複合機1の各構成を統括制御し、デジタル複合機1の各機能を実現している。RAM106は、当該コンピュータによる演算処理の実行に際して、作業領域として用いられる。   As shown in FIG. 1, the digital multifunction peripheral 1 includes a CPU 102, a ROM 104, and a RAM 106. The ROM 104 stores a program PRG such as firmware of the digital multi-function peripheral 1. The computer realized by the CPU 102, the ROM 104, and the RAM 106 executes arithmetic processing according to the program PRG stored in the ROM 104, thereby The functions of the digital multi-function peripheral 1 are realized by comprehensively controlling the components 1. The RAM 106 is used as a work area when the computer executes arithmetic processing.

画像メモリ108は、デジタル複合機1が処理対象とする画像を画像データとして記憶する。   The image memory 108 stores an image to be processed by the digital multi-function peripheral 1 as image data.

デジタル複合機1には、ユーザインターフェースとして、操作パネル110が設けられる。操作パネル110は、操作の対象となる操作部と、情報を視認可能に表示する表示部とを備える。   The digital multi-function peripheral 1 is provided with an operation panel 110 as a user interface. The operation panel 110 includes an operation unit that is an operation target and a display unit that displays information in a visually recognizable manner.

デジタル複合機1は、スキャナ部112及びプリンタ部114を備える。   The digital multifunction device 1 includes a scanner unit 112 and a printer unit 114.

スキャナ部112は、後述するCCDラインセンサ132により原稿を読み取り、画像データを生成する。スキャナ部112は、ADF(Automatic Document Feeder)方式又はFBS(Flat Bed Scanner)方式により原稿を読み取る。ADF方式とは、複数枚の原稿を束ねた原稿束から原稿を一枚づつ繰り込んで読み取る方式であり、FBS方式とは、コンタクトガラス上に載置された原稿を読み取る方式である。ADF方式には、移動する原稿を静止した読取光学系で読み取る方式(シートスルー方式)と、静止した原稿を移動する読取光学系で読み取る方式とがあり、後者の方式を採用する場合、スキャナ部112は、コンタクトガラス上に原稿を静止させ、移動する読取光学系で静止した原稿を読み取り、読み取りが完了した原稿を排出するという読み取り手順を繰り返し実行する。   The scanner unit 112 reads an original with a CCD line sensor 132, which will be described later, and generates image data. The scanner unit 112 reads an original by an ADF (Automatic Document Feeder) method or an FBS (Flat Bed Scanner) method. The ADF method is a method of reading a document by feeding it one by one from a document bundle obtained by bundling a plurality of documents, and the FBS method is a method of reading a document placed on a contact glass. The ADF method includes a method of reading a moving document with a stationary reading optical system (sheet-through method) and a method of reading a stationary document with a reading optical system that moves. When the latter method is adopted, the scanner unit 112 repeats a reading procedure in which a document is stationary on the contact glass, the stationary document is read by the moving reading optical system, and the document that has been read is discharged.

プリンタ部114は、電子写真方式により、画像データに係る画像を記録紙等の記録媒体上に形成し、当該記録媒体を排出する。プリンタ部114は、Y(イエロー),M(マゼンダ),C(シアン),K(黒)の4色の画像形成エンジンを備え、記録媒体上への画像形成を4回繰り返すことにより、カラー画像を記録媒体上に形成することができる。   The printer unit 114 forms an image related to the image data on a recording medium such as recording paper by an electrophotographic method, and discharges the recording medium. The printer unit 114 includes four color image forming engines of Y (yellow), M (magenta), C (cyan), and K (black), and repeats the image formation on the recording medium four times to obtain a color image. Can be formed on a recording medium.

画像色判定部116は、画像データに対して所定の処理を行う。画像色判定部116は、専用LSI等のハードウエアで構成することができるが、画像色判定部116が行う処理の一部又は全部を、CPU102、ROM104及びRAM106によって実現されるコンピュータがプログラムPRGを実行することにより行うようにしてもよい。   The image color determination unit 116 performs predetermined processing on the image data. The image color determination unit 116 can be configured by hardware such as a dedicated LSI, but a computer realized by the CPU 102, the ROM 104, and the RAM 106 performs part or all of the processing performed by the image color determination unit 116 as a program PRG. It may be performed by executing.

圧縮伸張部118は、画像データに対して圧縮処理又は伸張処理を行う。画像データの圧縮方式としては、多階調の画像データについては、JPEG方式等を採用することができ、二階調の画像データについては、MH方式、MR方式、MMR方式及びJBIG方式等を採用することができる。圧縮伸張部118も、専用LSI等のハードウエアで構成することができるが、圧縮伸張部118が行う処理の一部又は全部を、CPU102、ROM104及びRAM106によって実現されるコンピュータがプログラムPRGを実行することにより行うようにしてもよい。   The compression / decompression unit 118 performs compression processing or decompression processing on the image data. As the image data compression method, the JPEG method or the like can be adopted for multi-tone image data, and the MH method, MR method, MMR method, JBIG method, or the like is adopted for two-tone image data. be able to. The compression / decompression unit 118 can also be configured by hardware such as a dedicated LSI, but a computer realized by the CPU 102, the ROM 104, and the RAM 106 executes a program PRG for part or all of the processing performed by the compression / decompression unit 118. You may be made to do by.

NCU120及びモデム122は、公衆電話交換網91を経由したファクシミリ画像データの送受信に用いられる。NCU120は、公衆電話交換網91への接続を制御する。NCU120は、相手先の電話番号に対応したダイヤル信号を送出する機能及び着信を検出する機能を備える。モデム122は、ITU(国際電気通信連合)−T勧告T.30にしたがったファクシミリ伝送制御手順に基づいて、V.17,V.27ter,V.29等にしたがったファクシミリ画像データの変復調を行う。又は、モデム122は、これらに加えて、V.34にしたがったファクシミリ画像データの変復調を行う。   The NCU 120 and the modem 122 are used for transmission / reception of facsimile image data via the public switched telephone network 91. The NCU 120 controls connection to the public switched telephone network 91. The NCU 120 has a function of transmitting a dial signal corresponding to the telephone number of the other party and a function of detecting an incoming call. The modem 122 is based on a facsimile transmission control procedure according to ITU (International Telecommunication Union) -T recommendation T.30. 17, V. 27ter, V.L. The facsimile image data is modulated / demodulated according to 29 or the like. Alternatively, the modem 122 can be connected to the V.V. The facsimile image data is modulated / demodulated in accordance with No. 34.

データ通信部124は、例えば、イーサネット(登録商標)により、デジタル複合機1をネットワーク92に接続する。   The data communication unit 124 connects the digital multi-function peripheral 1 to the network 92 by, for example, Ethernet (registered trademark).

上述したデジタル複合機1の各構成は、バスライン126によって接続され、相互間でデータの送受信を行うことができるようになっている。   Each component of the digital multi-function peripheral 1 described above is connected by a bus line 126 so that data can be transmitted and received between them.

ファクシミリモードでは、デジタル複合機1は、スキャナ部112を用いて、原稿を読み取り、NCU120及びモデム122を用いて、当該原稿に係るファクシミリ画像データを、他のファクシミリ機へ公衆電話交換網91を経由して送信する。また、デジタル複合機1は、NCU120及びモデム122を用いて、他のファクシミリ機から公衆電話交換網91を経由して送信されてきたファクシミリ画像データを受信し、プリンタ部114を用いて、当該ファクシミリ画像データに係る画像を記録媒体上に形成する。   In the facsimile mode, the digital multi-function peripheral 1 reads a document using the scanner unit 112, and uses the NCU 120 and the modem 122 to send facsimile image data relating to the document to another facsimile machine via the public telephone exchange network 91. Then send. Further, the digital multifunction peripheral 1 receives facsimile image data transmitted from another facsimile machine via the public telephone exchange network 91 using the NCU 120 and the modem 122, and uses the printer unit 114 to transmit the facsimile. An image related to the image data is formed on a recording medium.

コピーモードでは、デジタル複合機1は、スキャナ部112を用いて、原稿を読み取り、プリンタ部114を用いて、原稿に係る画像を記録媒体上に形成することにより、原稿から記録媒体へ画像をコピーする。   In the copy mode, the digital multi-function peripheral 1 copies an image from the original to the recording medium by reading the original using the scanner unit 112 and forming an image related to the original on the recording medium using the printer unit 114. To do.

スキャンモードでは、デジタル複合機1は、スキャナ部112を用いて、原稿を読み取り、原稿に係る画像データを画像メモリ108に蓄積する。   In the scan mode, the digital multi-function peripheral 1 reads a document using the scanner unit 112 and accumulates image data related to the document in the image memory 108.

プリントモードでは、デジタル複合機1は、データ通信部124を用いて、パーソナルコンピュータからネットワーク92を経由して送信されてきた画像データを受信し、プリンタ部114を用いて、当該画像データに係る画像を記録媒体上に形成する。   In the print mode, the digital multi-function peripheral 1 receives image data transmitted from the personal computer via the network 92 using the data communication unit 124, and uses the printer unit 114 to receive an image related to the image data. Are formed on the recording medium.

<2 スキャンモード及びプリントモードに関連する構成>
図2は、スキャンモード及びプリントモードにおけるデジタル複合機1の処理と関連する構成を示すブロック図である。図2において、モード判定部152及び2値化部154は、CPU102、ROM104及びRAM106によって実現されるコンピュータがプログラムPRGを実行することにより実現される機能を表現した処理ブロックである。もちろん、モード判定部152及び2値化部154を専用LSI等のハードウエアで構成してもよい。
<2 Configurations related to scan mode and print mode>
FIG. 2 is a block diagram illustrating a configuration related to processing of the digital multi-function peripheral 1 in the scan mode and the print mode. In FIG. 2, a mode determination unit 152 and a binarization unit 154 are processing blocks that represent functions realized when a computer realized by the CPU 102, the ROM 104, and the RAM 106 executes a program PRG. Of course, the mode determination unit 152 and the binarization unit 154 may be configured by hardware such as a dedicated LSI.

以下では、スキャンモード及びプリントモードにおけるデジタル複合機1の処理と関連する構成について、「画像処理に関連する構成」及び「モード判定処理に関連する構成」に分けて説明する。   Hereinafter, the configuration related to the processing of the digital multi-function peripheral 1 in the scan mode and the print mode will be described separately for “configuration related to image processing” and “configuration related to mode determination processing”.

<2.1 画像処理に関連する構成>
図2に実線で示す画像処理の流れに沿って、デジタル複合機1を画像処理装置として機能させる画像処理に関連する構成の概略を説明すると、CCDラインセンサ132が生成した画像データは、ガンマ補正部134によるガンマ補正、解像度変換部136による解像度変換、色空間変換部138による色空間変換を順次施された後に、スキャナ部112から出力される。スキャナ部112から出力された画像データは、画像メモリ108に蓄積される。プリントモードでは、画像メモリ108に蓄積された画像データは、2値化部154による2値化が必要に応じて施された後に、プリンタ部114へ転送され、プリンタ部114において、当該画像データに係る画像が記録媒体上に形成される。スキャンモードでは、画像メモリ108に蓄積された画像データに対して、2値化部154による2値化が必要に応じて施された後に、圧縮伸張部118による圧縮処理が施される。
<2.1 Configuration related to image processing>
An outline of a configuration related to image processing that causes the digital multi-function peripheral 1 to function as an image processing device will be described along the flow of image processing indicated by a solid line in FIG. 2. Image data generated by the CCD line sensor 132 is gamma corrected. After the gamma correction by the unit 134, the resolution conversion by the resolution conversion unit 136, and the color space conversion by the color space conversion unit 138 are sequentially performed, the data is output from the scanner unit 112. The image data output from the scanner unit 112 is accumulated in the image memory 108. In the print mode, the image data stored in the image memory 108 is binarized by the binarizing unit 154 as necessary, and then transferred to the printer unit 114. The printer unit 114 converts the image data into the image data. Such an image is formed on a recording medium. In the scan mode, the image data stored in the image memory 108 is binarized by the binarization unit 154 as necessary, and then subjected to compression processing by the compression / decompression unit 118.

CCDラインセンサ132は、原稿からの光をCCDラインセンサ132へ導く読取光学系が原稿を走査している際に、一定の周期で読み取りを繰り返すことにより、RGB色空間で表現された画像データ、すなわち、R(赤),G(緑),B(青)の色成分データを有する画像データを生成する。読取光学系の走査速度は、CCDラインセンサ132が生成する画像データの副走査方向の解像度に基づいて設定する。具体的には、副走査方向の解像度が高くなるほど、読取光学系の走査速度を遅くし、副走査方向の解像度が低くなるほど、読取光学系の走査速度を速くする。「走査速度」とは、原稿と読取光学系との相対移動速度である。   The CCD line sensor 132 repeats reading at a constant cycle while the reading optical system that guides light from the document to the CCD line sensor 132 scans the document, thereby causing image data expressed in RGB color space, That is, image data having color component data of R (red), G (green), and B (blue) is generated. The scanning speed of the reading optical system is set based on the resolution of the image data generated by the CCD line sensor 132 in the sub-scanning direction. Specifically, the higher the resolution in the sub-scanning direction, the slower the scanning speed of the reading optical system, and the lower the resolution in the sub-scanning direction, the higher the scanning speed of the reading optical system. The “scanning speed” is a relative moving speed between the original and the reading optical system.

ガンマ補正部134は、R,G,Bの色成分データにガンマ補正を施す。   The gamma correction unit 134 performs gamma correction on the R, G, B color component data.

解像度変換部136は、プリントモードでは、画像データの主走査方向の解像度を、原稿を読み取った際の解像度から、プリンタ部114へ転送する際の解像度へ変換し、スキャンモードでは、画像データの主走査方向の解像度を、原稿を読み取った際の解像度から、画像メモリ108に蓄積する際の解像度へ変換する。   In the print mode, the resolution conversion unit 136 converts the resolution in the main scanning direction of the image data from the resolution at the time of reading the document to the resolution at the time of transfer to the printer unit 114. In the scan mode, the resolution conversion unit 136 converts the main resolution of the image data. The resolution in the scanning direction is converted from the resolution at the time of reading the document to the resolution at the time of storing in the image memory 108.

デジタル複合機1では、変倍コピーを行う際には、解像度変換部136における解像度変換により、主走査方向の解像度を操作者が指定した変倍率に応じた解像度とし、読取光学系の走査速度を等倍コピーを行う際と異ならせることにより、副走査方向の解像度を操作者が指定した変倍率に応じた解像度とする。   In the digital multi-function peripheral 1, when performing variable magnification copy, the resolution conversion unit 136 converts the resolution in the main scanning direction according to the magnification specified by the operator, and the scanning speed of the reading optical system is changed. The resolution in the sub-scanning direction is set to a resolution according to the scaling factor designated by the operator by making a difference from the case of performing the same size copy.

色空間変換部138は、RGB色空間で表現された画像データ(以下、「RGB画像データ」)を、YCbCr色空間で表現された画像データ(以下、「YCC画像データ」)へ変換する。色空間変換部138が出力する画像データは、輝度成分Y及び色差成分Cb,Crを有している。   The color space conversion unit 138 converts image data expressed in the RGB color space (hereinafter “RGB image data”) into image data expressed in the YCbCr color space (hereinafter “YCC image data”). The image data output from the color space conversion unit 138 has a luminance component Y and color difference components Cb and Cr.

2値化部154は、画像データを取得し、当該画像データの色成分を2値化した2値化画像を生成し、当該2値化画像を画像メモリ108に蓄積する。ここで、「2値化」とは、多階調の画像データを2階調の画像データへ変換することをいう。画像データの2値化は、単純2値化法、組織的ディザ法及び誤差拡散法等により行うことができる。   The binarization unit 154 acquires image data, generates a binarized image obtained by binarizing the color components of the image data, and stores the binarized image in the image memory 108. Here, “binarization” refers to conversion of multi-gradation image data into two-gradation image data. The binarization of the image data can be performed by a simple binarization method, a systematic dither method, an error diffusion method, or the like.

一方、プリンタ部114は、画像データを取得し、必要な画像形成エンジンを用いて、当該画像データに係る画像を記録媒体上に形成する。   On the other hand, the printer unit 114 acquires image data and forms an image related to the image data on a recording medium using a necessary image forming engine.

圧縮伸張部118は、画像データを取得し、圧縮画像データを生成し、当該圧縮画像データを画像メモリ108に蓄積する。   The compression / decompression unit 118 acquires image data, generates compressed image data, and stores the compressed image data in the image memory 108.

デジタル複合機1の処理モードには、「モノクロモード」及び「カラーモード」があり、「モノクロモード」の中にグレイ原稿に適した「グレイモード」及び白黒原稿に適した「白黒モード」がある。   The processing modes of the digital multi-function peripheral 1 include “monochrome mode” and “color mode”, and “monochrome mode” includes “gray mode” suitable for a gray document and “monochrome mode” suitable for a monochrome document. .

「カラーモード」でスキャンを行う際には、色空間変換部138が、解像度変換部136から入力された多階調のRGB画像データを多階調のYCC画像データへ変換し、圧縮伸張部118が、多階調のYCC画像データをJPEG方式等で圧縮して画像メモリ108に蓄積する。   When scanning in the “color mode”, the color space conversion unit 138 converts the multi-gradation RGB image data input from the resolution conversion unit 136 into multi-gradation YCC image data, and the compression / decompression unit 118. However, the multi-gradation YCC image data is compressed by the JPEG method or the like and stored in the image memory 108.

「カラーモード」でコピーを行う際には、色空間変換部138が、解像度変換部136から入力された多階調のRGB画像データを多階調のLab画像データ(L***色空間で表現された画像データ)へ変換し、多階調のLab画像データをさらに多階調のCMYK画像データ(CMYK色空間で表現された画像データ)へ変換し、二値化部154が、多階調のCMYK画像データを二階調のCMYK画像データへ二値化する。プリンタ部113は、二階調のCMYK画像データを取得し、「Y」「M」「C」「K」の画像形成エンジンの4色の画像形成エンジンのうち必要なものを用いて、記録媒体上にカラー画像を形成する。ここで、「「Y」「M」「C」「K」の画像形成エンジンの4色の画像形成エンジンのうち必要なもの」とは、画像に含まれる色を表現するために必要な画像形成エンジンのみを動作させればよいという趣旨である。例えば、画像に含まれる色の色区分が「Y」のみであれば、「Y」の画像形成エンジンのみを動作させればよく、画像に含まれる色の色区分が「R」であれば、「Y」及び「M」の画像形成エンジンのみを動作させればよい。 When copying in the “color mode”, the color space conversion unit 138 converts the multi-gradation RGB image data input from the resolution conversion unit 136 into multi-gradation Lab image data (L * a * b * color). Image data expressed in space), the multi-tone Lab image data is further converted into multi-tone CMYK image data (image data expressed in the CMYK color space), and the binarization unit 154 Multi-tone CMYK image data is binarized into two-tone CMYK image data. The printer unit 113 acquires two-tone CMYK image data, and uses a necessary one of the four color image forming engines of “Y”, “M”, “C”, and “K” on the recording medium. To form a color image. Here, “necessary of the four color image forming engines of the image forming engines“ Y ”,“ M ”,“ C ”, and“ K ”” means image formation necessary for expressing colors included in an image. The idea is that only the engine needs to be operated. For example, if the color classification of the color included in the image is only “Y”, only the image forming engine of “Y” may be operated. If the color classification of the color included in the image is “R”, Only the “Y” and “M” image forming engines need be operated.

「グレイモード」でスキャンを行う際には、色空間変換部138が、解像度変換部136から入力された多階調のRGB画像データを多階調のYCC画像データへ変換し、圧縮伸張部118が、多階調のYCC画像データの輝度成分YをJPEG方式で圧縮して画像メモリ108に蓄積する。又は、色空間変換部138が、解像度変換部136から入力された多階調のRGB画像データを多階調のYCbCr画像データへ変換し、二値化部154が、多階調のYCC画像データの輝度成分Yを二階調の輝度成分Yへ組織的ディザ法等で二値化し、圧縮伸張部118が、二階調の輝度成分YをJBIG方式等で圧縮して画像メモリ108に蓄積する。   When scanning in the “gray mode”, the color space conversion unit 138 converts the multi-gradation RGB image data input from the resolution conversion unit 136 into multi-gradation YCC image data, and the compression / decompression unit 118. However, the luminance component Y of the multi-gradation YCC image data is compressed by the JPEG method and stored in the image memory 108. Alternatively, the color space conversion unit 138 converts the multi-gradation RGB image data input from the resolution conversion unit 136 into multi-gradation YCbCr image data, and the binarization unit 154 performs multi-gradation YCC image data. The luminance component Y is binarized into a two-gradation luminance component Y by a systematic dither method or the like, and the compression / decompression unit 118 compresses the two-gradation luminance component Y by the JBIG method or the like and stores it in the image memory 108.

「グレイモード」でコピーを行う際は、色空間変換部138が、解像度変換部136から入力された多階調のRGB画像データを多階調のYCC画像データへ変換し、二値化部154が、多階調のYCC画像データの輝度成分Yを二階調の輝度成分Yへ組織的ディザ法や誤差拡散法等で二値化する。プリンタ部113は、二階調の輝度成分Yを取得し、「K」の画像形成エンジンを用いて、記録媒体上にモノクロ画像を形成する。   When copying in the “gray mode”, the color space conversion unit 138 converts the multi-gradation RGB image data input from the resolution conversion unit 136 into multi-gradation YCC image data, and the binarization unit 154. However, the luminance component Y of the multi-gradation YCC image data is binarized into a two-gradation luminance component Y by a systematic dither method, an error diffusion method, or the like. The printer unit 113 acquires a two-tone luminance component Y, and forms a monochrome image on a recording medium using an image forming engine of “K”.

「白黒モード」でスキャンを行う際は、色空間変換部138が、解像度変換部136から入力された多階調のRGB画像データを多階調のYCC画像データへ変換し、二値化部154が、多階調のYCC画像データの輝度成分Yを二階調の輝度成分Yへ単純二値化法等で二値化し、圧縮伸張部118が、二階調の輝度成分YをJBIG方式等で圧縮して画像メモリ108に蓄積する。   When scanning in the “monochrome mode”, the color space conversion unit 138 converts the multi-gradation RGB image data input from the resolution conversion unit 136 into multi-gradation YCC image data, and the binarization unit 154. However, the luminance component Y of the multi-gradation YCC image data is binarized into a two-gradation luminance component Y by a simple binarization method or the like, and the compression / decompression unit 118 compresses the luminance component Y of the two gradations by the JBIG method or the like. And stored in the image memory 108.

「白黒モード」でコピーを行う際は、色空間変換部138が、解像度変換部136から入力された多階調のRGB画像データを多階調のYCC画像データへ変換し、二値化部154が、多階調のYCC画像データの輝度成分Yを二階調の輝度成分Yへ誤差拡散法や単純二値化法等で二値化する。プリンタ部113は、二階調の輝度成分Yを取得し、「K」の画像形成エンジンを用いて、記録媒体上にモノクロ画像を形成する。   When copying in the “monochrome mode”, the color space conversion unit 138 converts the multi-gradation RGB image data input from the resolution conversion unit 136 into multi-gradation YCC image data, and the binarization unit 154. However, the luminance component Y of the multi-gradation YCC image data is binarized into a two-gradation luminance component Y by an error diffusion method, a simple binarization method, or the like. The printer unit 113 acquires a two-tone luminance component Y, and forms a monochrome image on a recording medium using an image forming engine of “K”.

なお、「グレイモード」でコピーを行う際の二値化は、「白黒モード」よりも階調の再現性を重視して行うことが望ましく、「白黒モード」でコピーを行う際の二値化は、「グレイモード」よりも文字の再現性を重視して行うことが望ましい。   It should be noted that binarization when copying in the “gray mode” is preferably performed with more emphasis on gradation reproducibility than the “black and white mode”, and binarization when copying in the “black and white mode”. It is desirable that the reproducibility of characters is more important than the “gray mode”.

<2.2 モード判定処理に関連する構成>
図2に点線で示すモード判定処理の流れに沿って、デジタル複合機1を画像色判定装置として機能させる構成の概略を説明すると、CCDラインセンサ132が生成した画像データは、画像色判定部116に入力され、平均部142による平均化、ガンマ補正部144によるガンマ補正、色空間変換部146による色空間変換を順次施された後に、ブロック判定部148へ入力される。そして、ブロック判定部148において、ブロックが属する色区分及び輝度区分が判定され、判定計数部150において、色区分及び輝度区分の各々に属するブロックの数が計数され、モード判定部152において、原稿の特徴が判定される。モード判定部152は、さらに、デジタル複合機1の処理モードを原稿の特徴に適したモードに設定し、設定したモードに応じた処理を2値化部154、プリンタ部114及び圧縮伸張部118に実行させる。
<2.2 Configuration related to mode determination processing>
The outline of the configuration for causing the digital multi-function peripheral 1 to function as an image color determination device will be described along the flow of the mode determination process indicated by the dotted line in FIG. 2. The image data generated by the CCD line sensor 132 is the image color determination unit 116. Are sequentially applied by the averaging unit 142, gamma correction by the gamma correction unit 144, and color space conversion by the color space conversion unit 146, and then input to the block determination unit 148. Then, the block determination unit 148 determines the color classification and the luminance classification to which the block belongs, the determination counting section 150 counts the number of blocks belonging to each of the color classification and the luminance classification, and the mode determination section 152 performs the document determination. Features are determined. The mode determination unit 152 further sets the processing mode of the digital multi-function peripheral 1 to a mode suitable for the characteristics of the document, and performs processing corresponding to the set mode in the binarization unit 154, the printer unit 114, and the compression / decompression unit 118. Let it run.

平均部142は、複数の画素を含む画素集合ごとに、画素データの平均値を算出する。平均部142に入力される画像データは、RGB色空間で表現されているので、画素データは、R,G,Gの色成分データで構成されている。このため、平均部142は、複数の画素を含む画素集合ごとに、R,G,Bの色成分データの各々について平均値を算出する。すなわち、n個の画素Pi(i=1,2,・・・,n)が画素集合に含まれ、画素PiのR,G,Bの色成分データが、それぞれ、Ri,Gi,Biであるとすれば、平均部142は、R,G,Bの色成分データの平均値Ravg,Gavg,Bavgを式(1)にしたがって算出する。 The averaging unit 142 calculates an average value of pixel data for each pixel set including a plurality of pixels. Since the image data input to the averaging unit 142 is expressed in the RGB color space, the pixel data is composed of R, G, and G color component data. For this reason, the averaging unit 142 calculates an average value for each of the R, G, and B color component data for each pixel set including a plurality of pixels. That is, n pixels P i (i = 1, 2,..., N) are included in the pixel set, and R, G, B color component data of the pixels P i are respectively R i , G i. , B i , the averaging unit 142 calculates the average values R avg , G avg , B avg of the R, G, B color component data according to the equation (1).

Figure 2008066950
Figure 2008066950

本実施形態では、画素集合は、縦(副走査方向)2個×横(主走査方向)2個の隣接する4個の画素からなる。各画素集合における、R,G,Bの色成分データの平均値Ravg,Gavg,Bavgは、後に続く処理において、色を表現する単位データを構成する。当該単位データは、平均化が行われる前の画像データより粗い粗画像データの構成単位となっている。このような平均化は、必ずしも必須ではなく、各画素の色成分データで単位データを構成してもよい。たたし、画素集合ごとの色成分データの平均値Ravg,Gavg,Bavgで単位データを構成すれば、CCDラインセンサ132においてR,G,Bの読み取りラインが数μmのライン間隔をおいて設けられていることに起因する偽色の影響を排除でき、ブロック判定部148における判定を精度よく行うことができるようになる。 In this embodiment, the pixel set is composed of four adjacent pixels of 2 in the vertical direction (sub-scanning direction) × 2 in the horizontal direction (main scanning direction). The average values R avg , G avg , and B avg of R, G, and B color component data in each pixel set constitute unit data that expresses colors in subsequent processing. The unit data is a constituent unit of coarse image data that is coarser than the image data before averaging. Such averaging is not necessarily essential, and the unit data may be composed of color component data of each pixel. However, if the unit data is constituted by the average values R avg , G avg , and B avg of the color component data for each pixel set, the R, G, B reading lines in the CCD line sensor 132 have a line interval of several μm. Therefore, the influence of the false color due to the provision of the block determination unit 148 can be eliminated, and the determination in the block determination unit 148 can be performed with high accuracy.

なお、上述の偽色は、変倍コピーを行う際に問題となることが多い。これは、CCDラインセンサ132のR,G,Bの読み取りラインのライン間隔が、副走査方向の読み取り間隔の整数倍に相当するものであれば、後続する読み取りラインにおける読み取りタイミングを先行する読み取りラインより遅延させることにより偽色を防止することができるが、等倍コピーを行う際に「整数倍」の関係が成立しても、変倍コピーを行う際に「整数倍」の関係が成立するとは限らないためである。   The false color described above often becomes a problem when performing variable-size copying. This is because if the line interval of the R, G, B reading lines of the CCD line sensor 132 corresponds to an integral multiple of the reading interval in the sub-scanning direction, the reading line preceding the reading timing in the subsequent reading line. Although it is possible to prevent false colors by delaying more, even if the “integer multiple” relationship is established when performing the same size copy, the “integer multiple” relationship is established when performing the variable size copy. This is because there is no limit.

例えば、等倍コピーを行う際の副走査方向の解像度が600dpiであり、ライン間隔が読み取り間隔の4倍に相当する場合を考える。この場合、等倍コピーを行う際には、後続する読み取りラインにおける読み取りタイミングを先行する読み取りラインより4周期遅延させることにより偽色を防止することができるが、70%縮小コピーを行う際には、副走査方向の解像度が420dpiとなり、ライン間隔が読み取り間隔の2.8倍に相当するから、後続する読み取りラインにおける読み取りタイミングを先行する読み取りラインより3周期遅延させても、先行する読み取りラインと後続する読み取りラインとの間で読み取り間隔の0.2倍の読み取り位置のずれが生じ、偽色の原因となる。   For example, let us consider a case where the resolution in the sub-scanning direction at the time of copying at the same magnification is 600 dpi and the line interval corresponds to four times the reading interval. In this case, when performing the same-size copy, the false timing can be prevented by delaying the read timing in the subsequent read line by four cycles from the preceding read line, but when performing the 70% reduced copy. Since the resolution in the sub-scanning direction is 420 dpi and the line interval corresponds to 2.8 times the reading interval, even if the reading timing in the subsequent reading line is delayed by three cycles from the preceding reading line, The reading position is shifted by 0.2 times the reading interval from the subsequent reading line, which causes false color.

この他、CCDラインセンサ132のR,G,Bの読み取りラインの形成位置の機械的なずれが偽色の原因となる場合もある。   In addition, a mechanical shift in the formation position of the R, G, and B reading lines of the CCD line sensor 132 may cause false colors.

また、画素集合の大きさは、当該ライン間隔及び変倍率等に応じて決定すべきであり、上述の「縦2個×横2個の隣接する4個の画素」というのは、例示に過ぎない。   In addition, the size of the pixel set should be determined according to the line interval, scaling factor, and the like, and the above-mentioned “vertical 2 × 2 horizontal 4 pixels” is merely an example. Absent.

例えば、変倍コピーを行う際の偽色の影響を排除するためには、「読み取り位置のずれ」が大きくなるほど画素集合の副走査方向の画素数を増加させることが有効であるが、「読み取り位置のずれ」は変倍率によって決まるので、変倍率と画素集合の副走査方向の画素数との関係を記述したテーブルをROM104にあらかじめ準備しておき、当該テーブルを参照して、指定された変倍率に応じて画素集合の副走査方向の画素数を決定することが望ましい。   For example, in order to eliminate the influence of false colors when performing variable magnification copying, it is effective to increase the number of pixels in the sub-scanning direction of the pixel set as the “reading position shift” increases. Since the “positional deviation” is determined by the scaling factor, a table describing the relationship between the scaling factor and the number of pixels in the sub-scanning direction of the pixel set is prepared in advance in the ROM 104, and the specified scaling factor is referred to. It is desirable to determine the number of pixels in the sub-scanning direction of the pixel set according to the magnification.

なお、平均部142は、解像度変換部136による解像度の変換が施されていない画像データについて平均化を行うので、画素集合の主走査方向の画素数が一定であっても特に問題とはならない。主走査方向についての平均化は、上述の「機械的なずれ」に起因する偽色に有効である。   Note that the averaging unit 142 averages image data that has not been subjected to resolution conversion by the resolution conversion unit 136. Therefore, there is no particular problem even if the number of pixels in the main scanning direction of the pixel set is constant. Averaging in the main scanning direction is effective for false colors caused by the above-mentioned “mechanical shift”.

ただし、平均部142において、縦横両方向について平均化を行うことは必須ではない。すなわち、平均部142において、縦方向及び横方向のいずれかについてのみ平均化を行うようにしてもよい。   However, it is not essential for the averaging unit 142 to perform averaging in both the vertical and horizontal directions. That is, the averaging unit 142 may perform averaging only in either the vertical direction or the horizontal direction.

ガンマ補正部144及び色空間変換部146は、それぞれ、ガンマ補正部134及び色空間変換部138と同様の回路構成を有するが、処理に適用される補正テーブルや係数は異なっている。   The gamma correction unit 144 and the color space conversion unit 146 have the same circuit configuration as the gamma correction unit 134 and the color space conversion unit 138, respectively, but the correction tables and coefficients applied to the processing are different.

ブロック判定部148は、原稿に係る画像を縦横に分割して得られるブロックの各々が属する色区分を判定する。ここで、「ブロック」とは、例えば、縦30個×横30個の900個の画素集合を含む領域であり、スキャナ部112において600dpiで原稿を読み取って、縦2画素×横2画素の隣接する4画素について平均化を行った場合、原稿における縦5mm×横5mmの領域に相当する。したがって、縦210mm×横297mmの原稿を600dpiで読み取って、縦2画素×横2画素の隣接する4画素について平均化を行った場合、原稿に係る画像は、縦42個×横60個の2520個のブロックに分割される。また、「ブロックの各々が属する色区分」は、1個の無彩色の色区分と、R,G,B,Y,M,Cの6個の有彩色の色区分との、合計7個の色区分から選択される。   The block determination unit 148 determines the color classification to which each of the blocks obtained by dividing the image relating to the document vertically and horizontally. Here, the “block” is, for example, an area including a set of 900 pixels of 30 vertical pixels × 30 horizontal pixels. The scanner unit 112 reads an original at 600 dpi and is adjacent to 2 vertical pixels × 2 horizontal pixels. When averaging is performed with respect to the four pixels, it corresponds to an area of 5 mm long × 5 mm wide in the document. Therefore, when an original of 210 mm long × 297 mm wide is read at 600 dpi and averaged for four adjacent pixels of 2 vertical pixels × 2 horizontal pixels, the image relating to the original is 2520 × 42 × 60 horizontal. Divided into blocks. The “color classification to which each block belongs” is a total of seven color classifications including one achromatic color classification and six chromatic color classifications of R, G, B, Y, M, and C. Selected from the color category.

さらに、ブロック判定部148は、無彩色の色区分に属するブロックの各々が属する輝度区分を判定する。「ブロックの各々が属する輝度区分」は、白,グレイ,黒の3個の輝度区分から選択される。   Further, the block determination unit 148 determines the luminance classification to which each of the blocks belonging to the achromatic color classification belongs. The “luminance classification to which each block belongs” is selected from three luminance classifications of white, gray, and black.

判定計数部150は、7個の色区分の各々に属するブロックの数を計数する。さらに、判定計数部150は、3個の輝度区分の各々に属するブロックの数も計数する。   The determination counting unit 150 counts the number of blocks belonging to each of the seven color categories. Further, the determination counting unit 150 also counts the number of blocks belonging to each of the three luminance categories.

モード判定部152は、ブロック判定部148の判定結果を利用して、画像に含まれる色の色区分を特定し、画像がカラー画像及びモノクロ画像のいずれであるのかを判定する。「画像に含まれる色の色区分」も、1個の無彩色の色区分と、R,G,B,Y,M,Cの6個の有彩色の色区分との、合計7個の色区分から選択される。そして、モード判定部152は、画像がカラー画像であると判定した場合は、原稿がカラー原稿であると判定して、デジタル複合機1の処理モードをカラーモードに設定する。   The mode determination unit 152 uses the determination result of the block determination unit 148 to specify the color classification of the colors included in the image, and determines whether the image is a color image or a monochrome image. The “color classification of colors included in the image” also includes a total of seven colors, one achromatic color classification and six chromatic color classifications of R, G, B, Y, M, and C. Selected from the category. If the mode determination unit 152 determines that the image is a color image, the mode determination unit 152 determines that the document is a color document, and sets the processing mode of the digital multifunction peripheral 1 to the color mode.

モード判定部152は、画像がモノクロ画像であると判定した場合は、ブロック判定部148の判定結果を利用して、原稿の特徴をさらに判定し、原稿が白紙原稿、グレイ原稿及び白黒原稿のいずれであるのかを判定する。そして、モード判定部152は、原稿が白紙原稿であると判定した場合は、デジタル複合機1の処理モードを白紙モードに設定し、原稿がグレイ原稿であると判定した場合は、デジタル複合機1の処理モードをグレイ原稿に適したモード(例えば、「文字/写真モード」や「写真モード」等)に設定し、原稿が白黒原稿であると判定した場合は、デジタル複合機1の処理モードを白黒原稿に適したモード(例えば、「文字モード」等)に設定する。   If the mode determination unit 152 determines that the image is a monochrome image, the mode determination unit 152 further determines the characteristics of the document using the determination result of the block determination unit 148, and the document is either a blank document, a gray document, or a monochrome document. It is determined whether it is. When the mode determination unit 152 determines that the document is a blank document, the mode setting unit 152 sets the processing mode of the digital multifunction device 1 to the blank page mode. When the mode determination unit 152 determines that the document is a gray document, the digital multifunction device 1 Is set to a mode suitable for gray originals (for example, “text / photo mode”, “photo mode”, etc.), and if it is determined that the original is a black and white original, the processing mode of the digital multifunction peripheral 1 is set. A mode suitable for a black and white document (for example, “character mode”) is set.

なお、画像がモノクロ画像であることが最初からわかっている場合は、モード判定部152において、画像がカラー画像及びモノクロ画像のいずれであるのかを判定する必要はない。例えば、CCDラインセンサ132のGの読み取りラインのみを用いて生成したモノクロ画像データについて判定を行う場合やYCC画像データの輝度成分Yを抽出したモノクロ画像データについて判定を行う場合、画像がカラー画像及びモノクロ画像のいずれであるのかを判定する必要はない。   If it is known from the beginning that the image is a monochrome image, the mode determination unit 152 does not need to determine whether the image is a color image or a monochrome image. For example, when making a determination on monochrome image data generated using only the G reading line of the CCD line sensor 132 or making a determination on monochrome image data obtained by extracting the luminance component Y of the YCC image data, the image is a color image and There is no need to determine whether the image is a monochrome image.

このような構成によれば、原稿を白紙原稿とみなせる場合、2値化部154及び圧縮伸張部118は、特に処理を行わない。   According to such a configuration, when the original can be regarded as a blank original, the binarizing unit 154 and the compression / decompression unit 118 do not perform any particular processing.

また、このような構成によれば、デジタル複合機1に、原稿の特徴に応じて、適切なコピー又はスキャンを行わせることができる。   Further, according to such a configuration, it is possible to cause the digital multi-function peripheral 1 to perform appropriate copying or scanning according to the characteristics of the document.

<2.3 ブロック判定部>
続いて、図3のブロック図を参照しながら、ブロック判定部148の構成をより詳細に説明する。図3に示すように、ブロック判定部148は、アフィン変換部162、単位データ判定部164、単位データ計数部166、色判定部168及び輝度判定部170を備える。
<2.3 Block determination unit>
Next, the configuration of the block determination unit 148 will be described in more detail with reference to the block diagram of FIG. As illustrated in FIG. 3, the block determination unit 148 includes an affine transformation unit 162, a unit data determination unit 164, a unit data counting unit 166, a color determination unit 168, and a luminance determination unit 170.

アフィン変換部162は、単位データの色差成分Cb,Crにアフィン変換を適用し、色差に関する色パラメータCb1,Cr1を得る。このアフィン変換は、後述するような色平面H0から色平面H1を得る際に色相全体に適用されるアフィン変換と同じものとなっており、ブロック判定部148で用いる色平面H1に単位データを適合させるためのものとなっている。   The affine transformation unit 162 applies affine transformation to the color difference components Cb and Cr of the unit data to obtain color parameters Cb1 and Cr1 related to the color difference. This affine transformation is the same as the affine transformation applied to the entire hue when obtaining the color plane H1 from the color plane H0 as will be described later. The unit data is adapted to the color plane H1 used by the block determination unit 148. It is intended to make it.

単位データ判定部164は、ブロックに含まれる画素集合ごとに、単位データが、先述の7個の色区分のいずれに属するのかを判定する。具体的には、単位データ判定部164は、図4に示す色平面H1において、単位データが表現する色に対応する点、すなわち、単位データの色パラメータCb1,Cr1をプロットした点が、7個の部分領域mA,mM,mB,mC,mG,mY,mRのいずれに属するのかを判定し、単位データが表現する色に対応する点が属する部分領域に対応する色区分を、単位データが属する色区分とする。ここで、部分領域mA,mM,mB,mC,mG,mY,mRは、それぞれ、無彩色,M,B,C,G,Y,Rの色区分に対応している。   The unit data determination unit 164 determines, for each pixel set included in the block, to which of the above-described seven color classifications the unit data belongs. Specifically, the unit data determination unit 164 has seven points on the color plane H1 shown in FIG. 4 that correspond to the colors represented by the unit data, that is, seven points on which the color parameters Cb1 and Cr1 of the unit data are plotted. It is determined which of the partial areas mA, mM, mB, mC, mG, mY, and mR belongs to, and the unit data belongs to the color classification corresponding to the partial area to which the point corresponding to the color represented by the unit data belongs. Color classification. Here, the partial areas mA, mM, mB, mC, mG, mY, and mR correspond to the achromatic colors, M, B, C, G, Y, and R, respectively.

さらに、単位データ判定部164は、無彩色の色区分に属する単位データが、白,グレイ,黒のいずれに該当するかを判定する。具体的には、単位データ判定部164は、単位データの輝度成分Yと輝度に関する閾値Y1,Y2(Y1>Y2)との大小関係を調べ、Y≧Y1であれば、単位データが白に該当すると判定し、Y1>Y≧Y2であれば、単位データがグレイに該当すると判定し、Y2>Yであれば、単位データが黒に該当すると判定する。つまり、ここでいう「白」とは、図5の模式図に示すように、輝度が上限値Ymaxに達している「白とび」の状態ではなく、輝度が上限値Ymaxに近い一定の範囲内(Y1〜Ymax)にある明るい状態をいい、ここでいう「黒」とは、輝度が下限値Yminに達した「黒つぶれ」の状態ではなく、輝度が下限値Yminに近い一定の範囲内(Ymin〜Y2)にある暗い状態をいう。このようにすれば、原稿のわずかな汚れやCCDラインセンサ132において発生するノイズの影響を受けて、大部分の単位データがグレイに該当すると判定されてしまうことを防止することができる。 Further, the unit data determination unit 164 determines whether the unit data belonging to the achromatic color classification corresponds to white, gray, or black. Specifically, the unit data determination unit 164 checks the magnitude relationship between the luminance component Y of the unit data and the threshold values Y 1 and Y 2 (Y 1 > Y 2 ) related to the luminance, and if Y ≧ Y 1 , It is determined that the data corresponds to white. If Y 1 > Y ≧ Y 2, it is determined that the unit data corresponds to gray, and if Y 2 > Y, it is determined that the unit data corresponds to black. That is, “white” here is not a “overexposed” state in which the luminance reaches the upper limit value Y max as shown in the schematic diagram of FIG. 5, but a constant luminance close to the upper limit value Y max . The bright state in the range (Y 1 to Y max ) means “black” here, not the “blackout” state where the luminance has reached the lower limit Y min but the luminance is close to the lower limit Ymin. It means a dark state within a certain range (Y min to Y 2 ). In this way, it is possible to prevent most of the unit data from being determined to correspond to gray under the influence of slight dirt on the document or noise generated in the CCD line sensor 132.

なお、単位データが属する無彩色の色区分の判定にあたって、YCbCr色空間における輝度成分Yで判定するかわりに、L***色空間における明度成分L*で判定してもよい。 Note that when determining the achromatic color classification to which the unit data belongs, instead of using the luminance component Y in the YCbCr color space, it may be determined using the lightness component L * in the L * a * b * color space.

単位データ計数部166は、7個の色区分の各々に属する単位データの数を計数する。さらに、単位データ計数部166は、無彩色の色区分に属する単位データについて、白,グレイ,黒に該当する単位データの数を計数する。   The unit data counting unit 166 counts the number of unit data belonging to each of the seven color categories. Further, the unit data counting unit 166 counts the number of unit data corresponding to white, gray, and black for the unit data belonging to the achromatic color classification.

色判定部168は、単位データ計数部166の計数結果(色区分の各々に属する単位データの数)に基づいて、ブロックの各々が属する色区分を判定する。具体的には、上述の7個の色区分の各々について閾値をあらかじめ設定しておき、属する単位データの数が当該閾値を上回る色区分を、ブロックが属する色区分とする。なお、この判定方法によれば、ブロックが属する色区分が2個以上となることもありうる。   The color determination unit 168 determines the color classification to which each block belongs based on the counting result (number of unit data belonging to each color classification) of the unit data counting section 166. Specifically, a threshold value is set in advance for each of the seven color categories described above, and a color category in which the number of unit data to which the unit belongs exceeds the threshold value is set as a color category to which the block belongs. According to this determination method, there may be two or more color sections to which a block belongs.

輝度判定部170は、単位データ計数部166の計数結果(白,グレイ,黒に該当する単位データの数)に基づいて、無彩色の色区分に属するブロックの各々が属する輝度区分を判定する。   The luminance determination unit 170 determines the luminance classification to which each of the blocks belonging to the achromatic color classification belongs, based on the counting result (number of unit data corresponding to white, gray, and black) of the unit data counting section 166.

具体的には、輝度判定部170は、グレイに該当する単位データの数(以下、「グレイ単位データ数」)NGに関するグレイ閾値TGg及び白グレイ閾値TGwg並びに黒に該当する単位データの数(以下、「黒単位データ数」)NBに関する白黒閾値TBwbをあらかじめ設定しておき、グレイ単位データ数NGとグレイ閾値TGg及び白グレイ閾値TGwgとの大小関係、黒単位データ数NBと白黒閾値TBwbとの大小関係を調べ、その結果に応じてブロックが属する輝度区分を特定する。すなわち、輝度判定部170は、グレイ単位データ数NGがグレイ閾値TGgより大きい(NG>TGg)場合、ブロック内の一定以上の領域がグレイ部であることから、ブロックがグレイの輝度区分に属すると判定する。一方、輝度判定部170は、グレイ単位データ数NGが白グレイ閾値TGwgより小さく(NG<TGwg)、かつ、黒単位データ数NBが白黒閾値TBwbより小さい(NB<TBwb)場合、ブロック内の一定以上の領域が明部であることから、ブロックが白の輝度区分に属すると判定する。さらに、輝度判定部170は、残余の場合、ブロックが黒の輝度区分に属すると判定する。 Specifically, the brightness determination unit 170, the number of unit data corresponding to gray (hereinafter "gray Units Data") number of gray threshold TG g and white gray threshold TG wg and unit data corresponding to black about NG (Hereinafter referred to as “the number of black unit data”) A black and white threshold value TB wb for NB is set in advance, and the magnitude relationship between the gray unit data number NG, the gray threshold value TG g and the white gray threshold value TG wg, and the black unit data number NB The magnitude relationship with the black and white threshold TB wb is examined, and the luminance classification to which the block belongs is specified according to the result. That is, when the gray unit data number NG is larger than the gray threshold value TG g (NG> TG g ), the luminance determination unit 170 determines that the block is classified as a gray luminance division because a certain region or more in the block is a gray portion. Judge as belonging. On the other hand, when the gray unit data number NG is smaller than the white gray threshold value TG wg (NG <TG wg ) and the black unit data number NB is smaller than the monochrome threshold value TB wb (NB <TB wb ), Since a certain area or more in the block is a bright part, it is determined that the block belongs to the white luminance division. Further, the luminance determining unit 170 determines that the block belongs to the black luminance category in the case of the residual.

ただし、ブロックが属する輝度区分のこのような判定は一例に過ぎず、白に該当する単位データの数(以下、「白単位データ数」)NWを考慮に入れてブロックが属する輝度区分を判定するようにしてもよいし、白単位データ数NW、グレイ単位データ数NG及び黒単位データ数NBのうちの1個のみを考慮して、ブロックが属する輝度の区分を判定するようにしてもよい。   However, such determination of the luminance classification to which the block belongs is merely an example, and the luminance classification to which the block belongs is determined in consideration of the number of unit data corresponding to white (hereinafter, “number of white unit data”) NW. Alternatively, the brightness classification to which the block belongs may be determined in consideration of only one of the white unit data number NW, the gray unit data number NG, and the black unit data number NB.

後者の例としては、例えば、グレイ単位データ数NGがグレイ閾値TGgより大きければ(NG>TGg)、ブロックがグレイの輝度区分に属すると判定し、グレイ単位データ数NGがグレイ閾値TGg以下で白グレイ閾値TGwgより大きければ(TGg≧NG>TGwg)、ブロックが黒の輝度区分に属すると判定し、グレイ単位データ数NGが白グレイ閾値TGwg以下であれば(TGwg≧NG)、ブロックが白の輝度区分に属すると判定するようにすることが考えられる。もちろん、このような判定を採用する場合、単位データがグレイの輝度区分に属するか否かのみを判定すればよいので、モード判定処理のための構成を簡略化することができる。このようなグレイ単位データ数NGのみに基づく判定は、ブロック内に暗部があれば、明部と暗部との境界にグレイ部が必ず存在すると考えられることから採用しうるものである。なお、この判定によれば、画像全体が明部又は暗部であれば、全てのブロックが白の輝度区分に属すると判定される。 As an example of the latter, for example, if the gray unit data number NG is larger than the gray threshold value TG g (NG> TG g ), it is determined that the block belongs to the gray luminance category, and the gray unit data number NG is the gray threshold value TG g. If it is below the white gray threshold TG wg (TG g ≧ NG> TG wg ), it is determined that the block belongs to the black luminance category, and if the gray unit data number NG is less than or equal to the white gray threshold TG wg (TG wg ≧ NG), it is conceivable to determine that the block belongs to the white luminance category. Of course, when such a determination is adopted, it is only necessary to determine whether or not the unit data belongs to the gray luminance classification, and therefore the configuration for the mode determination process can be simplified. Such a determination based only on the gray unit data number NG can be adopted because if there is a dark part in the block, it is considered that a gray part is always present at the boundary between the bright part and the dark part. According to this determination, if the entire image is a bright part or a dark part, it is determined that all the blocks belong to the white luminance category.

さらに別の例としては、白単位データ数NW、グレイ単位データ数NG及び黒単位データ数NBのうちの2個のみを考慮して、ブロックが属する輝度の区分を判定するようにしてもよい。   As yet another example, the brightness classification to which the block belongs may be determined in consideration of only two of the white unit data number NW, the gray unit data number NG, and the black unit data number NB.

例えば、(1)グレイ単位データ数NGが閾値TGより大きく(NG>TG)、黒単位データ数NBが閾値TBより大きければ(NB>TB)、明部と暗部との境界にグレイ部が存在していると考えられるので、ブロックが黒の輝度区分に属すると判定し、(2)グレイ単位データ数NGが閾値TGより大きく(NG>TG)、黒単位データ数NBが閾値TB以下であれば(TB≧NB)、主にグレイ部が存在するので、ブロックがグレイの輝度区分に属すると判定し、(3)グレイ単位データ数NGが閾値TG以下で(TG≧NG)、黒単位データ数NBが閾値TBより大きければ(NB>TB)、主に暗部が存在するので、ブロックが黒の輝度区分に属すると判定し、(4)グレイ単位データ数NGが閾値TG以下で(TG≧NG)、黒単位データ数NBが閾値TB以下であれば(TB≧NB)、主に明部が存在すると考えられるので、ブロックが白の輝度区分に属すると判定する。もちろん、このような判定を採用する場合、単位データがグレイの輝度区分に属するか否か及び黒の輝度区分に属するか否かのみを判定すればよいので、モード判定処理のための構成を簡略化することができる。   For example, (1) if the gray unit data number NG is larger than the threshold TG (NG> TG) and the black unit data number NB is larger than the threshold TB (NB> TB), a gray part exists at the boundary between the bright part and the dark part Therefore, it is determined that the block belongs to the black luminance classification, and (2) the gray unit data number NG is larger than the threshold TG (NG> TG) and the black unit data number NB is equal to or less than the threshold TB. (TB ≧ NB), since there is mainly a gray portion, it is determined that the block belongs to the gray luminance classification, and (3) the gray unit data number NG is equal to or less than the threshold TG (TG ≧ NG), the black unit data If the number NB is larger than the threshold value TB (NB> TB), it is determined that the block belongs to the black luminance category mainly because there is a dark part. (4) The gray unit data number NG is equal to or less than the threshold value TG (TG ≧ NG), black If position data number NB is equal to or smaller than the threshold value TB (TB ≧ NB), primarily because it is considered that the light portion is present, it determines that the block belongs to the brightness segment white. Of course, when such a determination is adopted, it is only necessary to determine whether the unit data belongs to the gray luminance division and whether the unit data belongs to the black luminance division, so the configuration for the mode determination processing is simplified. Can be

このようなブロックごとの色区分及び輝度区分の判定を採用すれば、ブロックの大きさより著しく小さい汚れが原稿にあっても、当該汚れは「ブロックが属する色区分」及び「ブロックが属する輝度区分」に影響を与えないので、原稿の特徴を適切に判定できるようになる。   If the determination of the color classification and the luminance classification for each block is adopted, even if the original has a stain significantly smaller than the block size, the stain is classified as “the color division to which the block belongs” and “the luminance division to which the block belongs”. Therefore, it is possible to appropriately determine the characteristics of the document.

また、このようなブロックごとの色区分の判定を採用すれば、あるブロックの大部分の領域が無彩色の領域であり、当該ブロックの残余の領域が有彩色の領域である場合に、当該ブロックが属する色区分として、有彩色の色区分を採用することができるので、カラー画像と判定すべき画像をモノクロ画像と判定してしまうことを減らすことがができる。   In addition, if such a determination of the color classification for each block is adopted, when a large area of a certain block is an achromatic area and a remaining area of the block is a chromatic area, the block Since the chromatic color classification can be adopted as the color classification to which the image belongs, it can be reduced that the image to be determined as the color image is determined as the monochrome image.

さらに、このようなブロックごとの色区分及び輝度区分の判定を採用すれば、判定に用いるブロックを適宜選択することにより、判定の対象とする原稿上の領域を所望の範囲とすることができる。   Further, when such determination of color classification and luminance classification for each block is employed, an area on the document to be determined can be set to a desired range by appropriately selecting a block to be used for determination.

<2.4 色平面H1について>
色平面H1は、色パラメータCb1と対応づけられたCb1軸(横軸)と色パラメータCr1と対応づけられたCr1軸(縦軸)との2本の座標軸が直交する2次元色平面である。
<2.4 Color plane H1>
The color plane H1 is a two-dimensional color plane in which two coordinate axes of a Cb1 axis (horizontal axis) associated with the color parameter Cb1 and a Cr1 axis (vertical axis) associated with the color parameter Cr1 are orthogonal.

色平面H1は、YCbCr色空間のCbCr色度図と同様に、原点Oに近づくにつれて示す彩度が低下する性質を有している。このため、色平面H1においては、原点Oを含む部分領域mAは、無彩色の色区分に対応する部分領域とされている。部分領域mAは、Cb1軸に平行な2本の彩度境界線D01,D02と、Cr1軸に平行な2本の彩度境界線D03,D04とに囲まれる正方形(より一般的には,長方形)の領域となっている。このような部分領域mAを色平面H1に設定すれば、色パラメータCb1が上限値−wと下限値+wとの間に含まれているか否か、及び、色パラメータCr1が下限値−wと上限値+wとの間に含まれているか否かを確かめれば、複雑な演算を行うことなく、単位データが表現する色に対応する点が部分領域mAに属するか否かを判定することができるので、モード判定処理において、画像がモノクロ画像であるか否かの判定が容易になる。   Similar to the CbCr chromaticity diagram of the YCbCr color space, the color plane H1 has a property that the saturation shown as it approaches the origin O decreases. For this reason, in the color plane H1, the partial area mA including the origin O is a partial area corresponding to the achromatic color classification. The partial area mA is a square (more generally, a rectangle) surrounded by two saturation boundary lines D01 and D02 parallel to the Cb1 axis and two saturation boundary lines D03 and D04 parallel to the Cr1 axis. ). If such a partial area mA is set in the color plane H1, whether or not the color parameter Cb1 is included between the upper limit value -w and the lower limit value + w, and the color parameter Cr1 is lower limit value -w and the upper limit value. If it is confirmed whether or not it is included between the values + w, it can be determined whether or not the point corresponding to the color represented by the unit data belongs to the partial area mA without performing a complicated calculation. Therefore, it becomes easy to determine whether or not the image is a monochrome image in the mode determination process.

部分領域mAの外側には、原点Oから放射状に伸びる色相境界線D1〜D5で区切られた、6個の有彩色の部分領域mM,mB,mC,mG,mY,mRが設定されている。色平面H1では、色相境界線D1が部分領域mRと部分領域mMとの境界、色相境界線D2が部分領域mMと部分領域mBとの境界、色相境界線D3が部分領域mBと部分領域mCとの境界、色相境界線D4が部分領域mCと部分領域mGとの境界、色相境界線D5が部分領域mGと部分領域mYとの境界、色相境界線D6が部分領域mYと部分領域mRとの境界になっている。   On the outside of the partial area mA, six chromatic colored partial areas mM, mB, mC, mG, mY, and mR, which are partitioned by hue boundary lines D1 to D5 extending radially from the origin O, are set. In the color plane H1, the hue boundary line D1 is the boundary between the partial region mR and the partial region mM, the hue boundary line D2 is the boundary between the partial region mM and the partial region mB, and the hue boundary line D3 is the partial region mB and the partial region mC. , The hue boundary line D4 is the boundary between the partial area mC and the partial area mG, the hue boundary line D5 is the boundary between the partial area mG and the partial area mY, and the hue boundary line D6 is the boundary between the partial area mY and the partial area mR It has become.

色相境界線D1〜D6のうち、色相境界線D1,D4はCr1軸上に設定され、色相境界線D2,D3,D5,D6は、それぞれ、各象限を二等分するように、すなわち、各象限においてCb1軸及びCr1軸と45°の角度をなすように設定される。色相境界線D1〜D6をこのように設定すれば、色パラメータCb1,Cr1の正負及び色パラメータCb1の絶対値と色パラメータCr1の絶対値との大小関係から、色パラメータCb1,Cr1を色平面H1にプロットした点(以下、「プロット点」)が、6個の部分領域mM,mB,mC,mG,mY,mRのいずれに属するかを容易に判定することができる。例えば、色パラメータCb1,Cr1の両方が正であれば、プロット点が第1象限に存在すると判断でき、色パラメータCr1の絶対値が色パラメータCb1の絶対値より大きければ、プロット点が部分領域mMに属すると判断することができる。   Among the hue boundary lines D1 to D6, the hue boundary lines D1 and D4 are set on the Cr1 axis, and the hue boundary lines D2, D3, D5, and D6 are respectively divided into two equal parts, that is, It is set so as to form an angle of 45 ° with the Cb1 axis and the Cr1 axis in the quadrant. If the hue boundary lines D1 to D6 are set in this way, the color parameters Cb1 and Cr1 are set to the color plane H1 based on the positive / negative of the color parameters Cb1 and Cr1 and the magnitude relationship between the absolute value of the color parameter Cr1 and the absolute value of the color parameter Cr1. It is possible to easily determine which of the six partial regions mM, mB, mC, mG, mY, and mR belongs to the points plotted in FIG. For example, if both the color parameters Cb1 and Cr1 are positive, it can be determined that the plot point is in the first quadrant. If the absolute value of the color parameter Cr1 is larger than the absolute value of the color parameter Cb1, the plot point is in the partial region mM. Can be determined to belong to.

このような色平面H1は、YCbCr色空間のCbCr色度図に相当する色平面H0に回転変換やスケーリング変換等のアフィン変換を適用することにより、得ることができる。   Such a color plane H1 can be obtained by applying affine transformation such as rotation transformation and scaling transformation to the color plane H0 corresponding to the CbCr chromaticity diagram of the YCbCr color space.

ここで、図6〜図8を参照しながら、色平面H1を得る方法を説明する。   Here, a method of obtaining the color plane H1 will be described with reference to FIGS.

色平面H1を得るのにあたっては、まず、図6に示すような、YCbCr色空間のCbCr色度図に相当する色平面H0、すなわち、色差成分Cbと対応づけられたCb軸(横軸)と色差成分Crと対応づけられたCr軸(横軸)との2本の座標軸が直交した直交座標系を有する色平面H0に、色相境界線D1〜D6を設定する。色相境界線D1〜D6は、人間の視覚に基づいて設定すればよいが、人間の視覚に基づいてそのまま設定すると原点Oに関して略対称となる2本の色相境界線(例えば、色相境界線D2,D5)が原点Oを通る1本の直線上に乗るように設定する。   In obtaining the color plane H1, first, as shown in FIG. 6, the color plane H0 corresponding to the CbCr chromaticity diagram of the YCbCr color space, that is, the Cb axis (horizontal axis) associated with the color difference component Cb, Hue boundary lines D1 to D6 are set on a color plane H0 having an orthogonal coordinate system in which two coordinate axes orthogonal to the Cr axis (horizontal axis) associated with the color difference component Cr are orthogonal. The hue boundary lines D1 to D6 may be set based on human vision, but if set as they are based on human vision, two hue boundary lines (for example, hue boundary lines D2 and D2, which are substantially symmetric with respect to the origin O). D5) is set to be on a straight line passing through the origin O.

続いて、縦軸に近い色相境界線D1,D4が縦軸と一致するように、原点Oを中心とする回転変換を色相全体に適用する。これにより、図7に示すような、色パラメータCb2と対応づけられたCb2軸(横軸)と色パラメータCr2と対応づけられたCr2軸(縦軸)との2本の座標軸が直交した直交座標系を有する色平面H2が得られる。   Subsequently, the rotation transformation around the origin O is applied to the entire hue so that the hue boundary lines D1, D4 close to the vertical axis coincide with the vertical axis. As a result, as shown in FIG. 7, the orthogonal coordinates in which the two coordinate axes of the Cb2 axis (horizontal axis) associated with the color parameter Cb2 and the Cr2 axis (vertical axis) associated with the color parameter Cr2 are orthogonal to each other. A color plane H2 having a system is obtained.

さらに続いて、縦軸と一致していない色相境界線D2,D3,D5,D6が各象限において横軸及び縦軸と45°の角度をなすように、異方的スケーリング変換(横軸方向と縦軸方向とで拡大率又は縮小率が異なるスケーリング変換)を色相全体に適用する。これにより、図8に示すような、色パラメータCb3と対応づけられたCb3軸(横軸)と色パラメータCr3と対応づけられたCr3軸(縦軸)との2本の座標軸が直交した直交座標系を有する色平面H3が得られる。   Subsequently, anisotropic scaling conversion (in the horizontal axis direction and the horizontal axis direction) is performed so that the hue boundary lines D2, D3, D5, D6 that do not coincide with the vertical axis form an angle of 45 ° with the horizontal axis and the vertical axis in each quadrant. (Scaling conversion in which the enlargement ratio or the reduction ratio differs in the vertical axis direction) is applied to the entire hue. As a result, as shown in FIG. 8, orthogonal coordinates in which two coordinate axes of the Cb3 axis (horizontal axis) associated with the color parameter Cb3 and the Cr3 axis (vertical axis) associated with the color parameter Cr3 are orthogonal to each other. A color plane H3 having a system is obtained.

この色平面H3に対して、さらに、彩度境界線D01〜D04を設定することにより、図4に示す色平面H1が得られる。   A color plane H1 shown in FIG. 4 is obtained by further setting saturation boundary lines D01 to D04 for the color plane H3.

なお、色空間変換部146において、RGB色空間で表現された画像データを、L***色空間で表現された画像データへ変換するようにした場合、ブロック判定部148で用いる色平面H1は、色度成分a*と対応づけられたa*軸と色度成分b*と対応づけられたb*軸との2本の座標軸が直交した直交座標系を有する2次元の色平面に回転変換やスケーリング変換等のアフィン変換を同様に適用することにより得られるものとすればよい。 When the color space conversion unit 146 converts image data expressed in the RGB color space into image data expressed in the L * a * b * color space, the color plane used in the block determination unit 148. H1 is a two-dimensional color plane with orthogonal coordinate system in which the two axes of the b * axis, which are associated with a chromaticity component a * and association was a * axis and the chromaticity component b * is orthogonal What is necessary is just to obtain by applying affine transformation, such as rotation transformation and scaling transformation, similarly.

より一般的には、色空間変換部146が出力する画像データが1個の無彩成分(例えば、YIQ色空間における輝度成分Y、YCbCr色空間における輝度成分Y、L***色空間における明度成分L、L***色空間における明度成分L等)と2個の有彩成分(例えば、YIQ色空間における色差成分I,Q、YCbCr色空間における色差成分Cb,Cr、L***色空間における色度成分a*,b*、L***色空間における明度成分u*,v*等)とから構成される場合、ブロック判定部148で用いる色平面H1は、第1の有彩成分と対応づけられた有彩軸と第2の有彩成分と対応づけられた有彩軸との2本の座標軸が直交した直交座標系を有する2次元の色平面に回転変換やスケーリング変換等のアフィン変換を同様に適用することにより得られるものとすればよい。 More generally, the image data output from the color space conversion unit 146 includes one achromatic component (for example, the luminance component Y in the YIQ color space, the luminance component Y in the YCbCr color space, and the L * a * b * color space. Lightness components L, L * u * v * lightness component L in color space) and two chromatic components (for example, color difference components I, Q in YIQ color space, color difference components Cb, Cr, L in YCbCr color space) * a * b * color space used in the block determination unit 148 in the case of being composed of chromaticity components a * , b * , L * u * v * lightness components u * , v *, etc. H1 is a two-dimensional color having an orthogonal coordinate system in which two coordinate axes of a chromatic axis associated with the first chromatic component and a chromatic axis associated with the second chromatic component are orthogonal Affine transformation such as rotation transformation and scaling transformation is applied to the plane. What is necessary is just to be obtained by applying like.

なお、これまでに説明したような色平面H1をブロック判定部148で用いれば、単位データが属する色区分の判定を行う際の演算量を減らすことができるが、このことは、色平面H1以外の色平面を用いることを妨げるものではない。例えば、図5に示すような、YCbCr色空間のCbCr色度図に相当する色平面H0に原点Oを含む部分領域mAを設定したものを用いることもできる。   If the color plane H1 as described above is used in the block determination unit 148, the amount of calculation when determining the color classification to which the unit data belongs can be reduced. It does not prevent the use of the color plane. For example, as shown in FIG. 5, a color plane H0 corresponding to the CbCr chromaticity diagram in the YCbCr color space with a partial area mA including the origin O may be used.

また、上述の説明では、原点Oから放射状に伸びる色相境界線D1〜D5で色平面H1を6個の有彩色の部分領域mM,mB,mC,mG,mY,mRに分割し、単位データが表現する色に対応する点と色相境界線D1〜D5との位置関係(色パラメータCb1の絶対値と色パラメータCrの絶対値との大小関係)を判定することにより単位データが属する色区分を判定するとしたが、有彩色の部分領域の数は、色相境界線の数を増やすことにより容易に増やすことができる。このため、色平面H1を7個以上の有彩色の部分領域に分割し、1個の無彩色の色区分と7個以上の有彩色の色区分との、合計8個以上の色区分から単位データが属する色区分を選択するようにすることも容易である。   In the above description, the color plane H1 is divided into six chromatic partial areas mM, mB, mC, mG, mY, and mR along hue boundary lines D1 to D5 extending radially from the origin O, and unit data is The color classification to which the unit data belongs is determined by determining the positional relationship between the point corresponding to the color to be expressed and the hue boundary lines D1 to D5 (the magnitude relationship between the absolute value of the color parameter Cb1 and the absolute value of the color parameter Cr). However, the number of chromatic color partial regions can be easily increased by increasing the number of hue boundary lines. For this reason, the color plane H1 is divided into seven or more chromatic color partial areas, and a unit is formed from a total of eight or more color sections, one achromatic color section and seven or more chromatic color sections. It is easy to select the color classification to which the data belongs.

<3 モード判定処理の手順>
図9は、デジタル複合機1におけるモード判定処理の手順を示すフローチャートである。
<3 Mode determination processing procedure>
FIG. 9 is a flowchart illustrating a procedure of mode determination processing in the digital multi-function peripheral 1.

モード判定処理にあたっては、最初に、モード判定部152が、原稿がカラー原稿であるか否かを判定する(ステップS101)。このとき、モード判定部152は、色区分の各々に属するブロックの数を判定計数部150から取得するとともに、あらかじめ設定されたカラー判定基準値をROM104から取得し、有彩色の色区分に属するブロックの数の合計とカラー判定基準値との大小関係を調べる。そして、モード判定部152は、有彩色の色区分に属するブロックの数の合計がカラー判定基準値以上である場合は、原稿に係る画像がカラー画像であると判定し、原稿がカラー原稿であると判定する。   In the mode determination process, first, the mode determination unit 152 determines whether or not the document is a color document (step S101). At this time, the mode determination unit 152 acquires the number of blocks belonging to each of the color classifications from the determination counting unit 150, acquires a preset color determination reference value from the ROM 104, and blocks that belong to the chromatic color classification The size relationship between the total number of colors and the color criterion value is examined. Then, if the total number of blocks belonging to the chromatic color classification is equal to or greater than the color determination reference value, the mode determination unit 152 determines that the image related to the document is a color image, and the document is a color document. Is determined.

そして、モード判定部152は、原稿がカラー原稿であると判定した場合(ステップS101で"YES")、デジタル複合機1の処理モードをカラーモードに設定する(ステップS102)。   When the mode determination unit 152 determines that the document is a color document (“YES” in step S101), the mode determination unit 152 sets the processing mode of the digital multifunction peripheral 1 to the color mode (step S102).

一方、モード判定部152は、原稿がカラー原稿でないと判定した(モノクロ原稿であると判定した)場合(ステップS101で"NO")、原稿が白紙原稿であるか否かを続いて判定する(ステップS103)。このとき、モード判定部152は、白の輝度区分に属するブロックの数を判定計数部150から取得し、全てのブロックが白の輝度区分に属している場合、原稿に係る画像の全体を白部が占めていることから、原稿が白紙原稿であると判定する。   On the other hand, if the mode determination unit 152 determines that the document is not a color document (determines that the document is a monochrome document) ("NO" in step S101), it subsequently determines whether the document is a blank document (step S101). Step S103). At this time, the mode determination unit 152 obtains the number of blocks belonging to the white luminance category from the determination counting unit 150, and when all the blocks belong to the white luminance category, the entire image related to the document Therefore, it is determined that the document is a blank document.

そして、モード判定部152は、原稿が白紙原稿であると判定した場合(ステップS103で"YES")、デジタル複合機1の処理モードを白紙原稿に適した白紙モードに設定する(ステップS104)。   When the mode determination unit 152 determines that the document is a blank document (“YES” in step S103), the mode determination unit 152 sets the processing mode of the digital multifunction peripheral 1 to a blank mode suitable for the blank document (step S104).

また、モード判定部152は、原稿が白紙原稿ではないと判定した場合(ステップS103で"NO")、原稿がグレイ原稿であるか否かをさらに判定する(ステップS105)。このとき、モード判定部152は、グレイの輝度区分に属するブロックの数を判定計数部150から取得するとともに、あらかじめ設定されたグレイ基準値をROM104から取得し、属するブロックの数とグレイ基準値との大小関係を比較する。そして、モード判定部152は、属するブロックの数がグレイ基準値を上回っている場合は、原稿に係る画像の一定部分をグレイが占めていることから、原稿がグレイ原稿であると判定する。   When the mode determination unit 152 determines that the document is not a blank document ("NO" in step S103), the mode determination unit 152 further determines whether the document is a gray document (step S105). At this time, the mode determination unit 152 acquires the number of blocks belonging to the gray luminance category from the determination counting unit 150, acquires a preset gray reference value from the ROM 104, and determines the number of blocks belonging to the gray reference value. Compare the magnitude relationship of. Then, when the number of blocks belonging to the mode exceeds the gray reference value, the mode determination unit 152 determines that the document is a gray document because gray occupies a certain portion of the image related to the document.

そして、モード判定部152は、原稿がグレイ原稿であると判定した場合(ステップS105で"YES")、デジタル複合機1の処理モードをグレイ原稿に適したモードに設定し(ステップS106)、そうでない場合(ステップS105で"NO")、デジタル複合機1の処理モードを白黒原稿に適したモードに設定する(ステップS107)。   When the mode determination unit 152 determines that the document is a gray document (“YES” in step S105), the mode determination unit 152 sets the processing mode of the digital multifunction peripheral 1 to a mode suitable for the gray document (step S106). If not ("NO" in step S105), the processing mode of the digital multi-function peripheral 1 is set to a mode suitable for a monochrome document (step S107).

このようなモード判定処理によれば、原稿に係る画像がモノクロ画像であっても、原稿の特徴に適した処理をデジタル複合機1に行わせることができる。例えば、デジタル複合機1においては、多階調で表現する必要性が低い白黒原稿に係る画像データには2値化処理が行われる一方で、多階調で表現する必要性が高いグレイ原稿に係る画像データには2値化処理は行われないか、階調の再現性を重視した2値化処理が行われる。又は、デジタル複合機1においては、実質的な画像情報を含まない白紙原稿に係る画像データのプリントのために画像形成エンジンを動作させることがなくなっている。   According to such a mode determination process, even if the image related to the document is a monochrome image, it is possible to cause the digital multi-function peripheral 1 to perform a process suitable for the characteristics of the document. For example, in the digital multi-function peripheral 1, binarization processing is performed on image data related to a black and white document that is less required to be expressed in multiple gradations, while a gray document that is highly required to be expressed in multiple gradations. Such image data is not subjected to binarization processing, or is subjected to binarization processing that emphasizes gradation reproducibility. Alternatively, in the digital multi-function peripheral 1, the image forming engine is not operated to print image data related to a blank original that does not include substantial image information.

なお、このような判定処理によれば、グレイ基準値が変化するとモード判定部152の判定結果も変化するので、所望の処理が行われるようにグレイ基準値を調整することができるようにしてもよい。   In addition, according to such a determination process, when the gray reference value changes, the determination result of the mode determination unit 152 also changes, so that the gray reference value can be adjusted so that a desired process is performed. Good.

また、上述した原稿の特徴の判定基準は、良好な結果が得られる一例であるが、他の判定基準を採用することを妨げるものではない。例えば、全てのブロックが白の輝度区分に属している場合に原稿が白紙原稿であると判定する代わりに、白の輝度区分に属するブロックの数が所定数以上となった場合に原稿が白紙原稿であると判定するようにしてもよい。あるいは、黒の輝度区分に属するブロックの数も考慮に入れ、例えば、全てのブロックが黒の輝度区分に属している場合にも原稿が白紙原稿であると判定するようにしてもよい。   In addition, the above-described determination criterion for document characteristics is an example in which good results can be obtained, but it does not preclude the use of other determination criteria. For example, instead of determining that the original is a blank original when all the blocks belong to the white luminance classification, the original is a blank original when the number of blocks belonging to the white luminance classification exceeds a predetermined number. You may make it determine with it. Alternatively, the number of blocks belonging to the black luminance section may be taken into consideration, and for example, the document may be determined to be a blank original even when all the blocks belong to the black luminance section.

<4 その他>
上述の実施形態では、単位データ又はブロックが属する輝度区分を、3個の輝度区分の候補から選択したが、4個以上の輝度区分の候補から選択するようにしてもよい。単位データ又はブロックが属する輝度区分を4個以上の輝度区分から選択するようにした場合、例えば、高輝度側の1個の輝度区分を白の輝度区分、低輝度側の1個の輝度区分を黒の輝度区分、白の輝度区分と黒の輝度区分との間にある中間輝度の2個以上の輝度区分をグレーの輝度区分とみなすことができる。もちろん、高輝度側の2個以上の輝度区分を白の輝度区分とすることや、低輝度側の2個以上の輝度区分を黒の輝度区分とすることも許される。なお、単位データ又はブロックが属する輝度区分の候補の数は、特に制限されないが、コンピュータによる処理の便宜上、8個となることがある。
<4 other>
In the above-described embodiment, the luminance classification to which the unit data or block belongs is selected from three luminance classification candidates, but may be selected from four or more luminance classification candidates. When the brightness category to which the unit data or block belongs is selected from four or more brightness categories, for example, one brightness category on the high brightness side is selected as the white brightness category, and one brightness category on the low brightness side is selected. Two or more luminance divisions having intermediate luminance between the black luminance division, the white luminance division, and the black luminance division can be regarded as the gray luminance division. Of course, two or more luminance segments on the high luminance side may be white luminance segments, and two or more luminance segments on the low luminance side may be black luminance segments. Note that the number of brightness classification candidates to which the unit data or block belongs is not particularly limited, but may be eight for convenience of processing by the computer.

本発明の望ましい実施形態に係るデジタル複合機1の全体構成を示すブロック図である。1 is a block diagram showing an overall configuration of a digital multi-function peripheral 1 according to a preferred embodiment of the present invention. スキャンモード及びプリントモードにおけるデジタル複合機1の処理と関連する構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration related to processing of the digital multi-function peripheral 1 in a scan mode and a print mode. ブロック判定部148の構成を示すブロック図である。It is a block diagram which shows the structure of the block determination part 148. FIG. ブロック判定部148で用いる色平面H1を示す図である。It is a figure which shows the color plane H1 used by the block determination part 148. FIG. 単位データ判定部164における白,グレイ,黒の輝度範囲を説明する図である。It is a figure explaining the brightness | luminance range of white, gray, and black in the unit data determination part 164. FIG. YCbCr色空間のCbCr色度図に相当する色平面H0を示す図である。It is a figure which shows the color plane H0 equivalent to the CbCr chromaticity diagram of YCbCr color space. Cb2軸とCr2軸とが直交した直交座標系を有する色平面H2を示す図である。It is a figure which shows the color plane H2 which has an orthogonal coordinate system with which Cb2 axis | shaft and Cr2 axis | shaft orthogonally crossed. Cb3軸とCr3軸とが直交した直交座標系を有する色平面H3を示す図である。It is a figure which shows the color plane H3 which has the orthogonal coordinate system with which Cb3 axis | shaft and Cr3 axis | shaft orthogonally crossed. デジタル複合機1におけるモード判定処理の手順を示すフローチャートである。4 is a flowchart illustrating a procedure of mode determination processing in the digital multi-function peripheral 1.

符号の説明Explanation of symbols

1 デジタル複合機
102 CPU
104 ROM
106 RAM
108 画像メモリ
112 スキャナ部
114 プリンタ部
116 画像処理部
118 圧縮伸張部
PRG プログラム
1 Digital MFP 102 CPU
104 ROM
106 RAM
108 Image memory 112 Scanner unit 114 Printer unit 116 Image processing unit 118 Compression / decompression unit PRG program

Claims (12)

原稿に係る画像を分割して得られるブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定する輝度区分判定手段と、
前記輝度区分判定手段の判定結果を利用して、前記画像の処理モードを決定する決定手段と、
を備えることを特徴とする画像色判定装置。
Luminance classification determination means for determining whether each of the blocks obtained by dividing the image relating to the original document belongs to white, gray, or black luminance classification;
A determination unit that determines a processing mode of the image using a determination result of the luminance classification determination unit;
An image color determination apparatus comprising:
前記決定手段は、全てのブロックが白の輝度区分に属する場合に、前記画像の処理モードを第1のモードとすることを特徴とする請求項1に記載の画像色判定装置。   The image color determination apparatus according to claim 1, wherein the determination unit sets the processing mode of the image to a first mode when all the blocks belong to a white luminance category. 前記決定手段は、グレイの輝度区分に属するブロックの数が基準値以上である場合に、前記画像の処理モードを第2のモードとすることを特徴とする請求項1又は請求項2に記載の画像色判定装置。   The said determination means makes the processing mode of the said image a 2nd mode, when the number of the blocks which belong to the brightness | luminance classification | category of a grayscale is more than a reference value. Image color determination device. 前記決定手段は、グレイの輝度区分に属するブロックの数が基準値より小さい場合に、前記画像の処理モードを第3のモードとすることを特徴とする請求項1ないし請求項3のいずれかに記載の画像色判定装置。   4. The method according to claim 1, wherein the determination unit sets the processing mode of the image to a third mode when the number of blocks belonging to the gray luminance division is smaller than a reference value. The image color determination apparatus described. 複数の画素を含む画素集合ごとに画素データを平均化する平均化手段と、
前記平均化手段により平均化された画素データが白、グレイ及び黒の輝度区分のいずれに属するのかを判定する画素データ判定手段と、
をさらに備え、
前記輝度区分判定手段は、前記画素データ判定手段の判定結果を利用して、ブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定することを特徴とする請求項1ないし請求項4のいずれかに記載の画像色判定装置。
Averaging means for averaging pixel data for each pixel set including a plurality of pixels;
Pixel data determination means for determining whether the pixel data averaged by the averaging means belongs to a brightness classification of white, gray, or black;
Further comprising
2. The luminance classification determining unit according to claim 1, wherein a determination result of the pixel data determination unit is used to determine whether each of the blocks belongs to a white, gray, or black luminance classification. Item 5. The image color determination device according to any one of Items 4 to 6.
原稿から記録媒体へ画像をコピーするコピー手段、
をさらに備え、
コピーの際の変倍率に基づいて前記画素集合に含まれる画素の数を決定することを特徴とする請求項5に記載の画像色判定装置。
A copy means for copying an image from a manuscript to a recording medium;
Further comprising
6. The image color determination apparatus according to claim 5, wherein the number of pixels included in the pixel set is determined based on a scaling factor at the time of copying.
前記原稿に係る画像データの解像度を変換する変換手段、
をさらに備え、
前記変換手段により解像度が変換される前の画像データに基づいて前記画像の処理モードを決定することを特徴とする請求項1ないし請求項6のいずれかに記載の画像色判定装置。
Conversion means for converting the resolution of the image data relating to the original;
Further comprising
7. The image color determination apparatus according to claim 1, wherein a processing mode of the image is determined based on image data before resolution is converted by the conversion unit.
前記画像に係る画像データの構成単位となる単位データがグレイの輝度区分に属するか否かを判定する単位データ判定手段と、
グレイの輝度区分に属する単位データの数であるグレイ単位データ数を計数する計数手段と、
をさらに備え、
前記輝度区分判定手段は、グレイ単位データ数が第1閾値超の場合、ブロックがグレイの輝度区分に属すると判定し、グレイ単位データ数が第1閾値以下で第2閾値超の場合、ブロックが黒の輝度区分に属すると判定し、グレイ単位データ数が第2閾値以下の場合、ブロックが白の輝度区分に属すると判定することを特徴とする請求項1ないし請求項7のいずれかに記載の画像色判定装置。
Unit data determination means for determining whether or not unit data as a constituent unit of image data relating to the image belongs to a gray luminance classification;
A counting means for counting the number of gray unit data, which is the number of unit data belonging to the gray luminance classification;
Further comprising
The luminance classification determining unit determines that the block belongs to the gray luminance classification when the number of gray unit data exceeds the first threshold, and when the number of gray unit data is equal to or less than the first threshold and exceeds the second threshold, 8. The method according to claim 1, wherein the block is determined to belong to a black luminance section, and if the number of gray unit data is equal to or smaller than a second threshold value, the block is determined to belong to a white luminance section. Image color determination device.
前記画像に係る画像データの構成単位となる単位データがグレイの輝度区分に属するか否か及び黒の輝度区分に属するか否かを判定する単位データ判定手段と、
グレイの輝度区分に属する単位データの数であるグレイ単位データ数及び黒の輝度区分に属する単位データの数である黒単位データ数を計数する計数手段と、
をさらに備え、
前記輝度区分判定手段は、
グレイ単位データ数が第1閾値超で黒単位データ数が第2閾値超の場合、ブロックが黒の輝度区分に属すると判定し、グレイ単位データ数が第1閾値超で黒単位データ数が第2閾値以下の場合、ブロックがグレイの輝度区分に属すると判定し、グレイ単位データ数が第1閾値以下で黒単位データ数が第2閾値超の場合、ブロックが黒の輝度区分に属すると判定し、グレイ単位データ数が第1閾値以下で黒単位データ数が第2閾値以下の場合、ブロックが白の輝度区分に属すると判定することを特徴とする請求項1ないし請求項7のいずれかに記載の画像色判定装置。
Unit data determination means for determining whether or not unit data as a constituent unit of the image data relating to the image belongs to a gray luminance classification and whether to belong to a black luminance classification;
A counting means for counting the number of gray unit data that is the number of unit data belonging to the gray luminance classification and the number of black unit data that is the number of unit data belonging to the black luminance classification;
Further comprising
The luminance classification determining means includes
If the number of gray unit data exceeds the first threshold and the number of black unit data exceeds the second threshold, it is determined that the block belongs to the black luminance category, and the number of gray unit data exceeds the first threshold and the number of black unit data is the first. When the threshold value is 2 or less, it is determined that the block belongs to the gray luminance category. When the gray unit data number is equal to or less than the first threshold value and the black unit data number exceeds the second threshold value, the block is determined to belong to the black luminance category. 8. The method according to claim 1, wherein when the number of gray unit data is less than or equal to the first threshold and the number of black unit data is less than or equal to the second threshold, it is determined that the block belongs to a white luminance category. 2. An image color determination apparatus according to 1.
ブロックの各々が属する色区分を判定する色区分判定手段と、
前記色区分判定手段の判定結果を利用して、前記画像が無彩色画像であるか否かを判定する無彩色判定手段と、
をさらに備え、
前記無彩色判定手段により前記画像が無彩色画像であると判定された場合に、前記画像の処理モードを決定することを特徴とする請求項1ないし請求項8のいずれかに記載の画像色判定装置。
Color classification determination means for determining the color classification to which each of the blocks belongs;
Achromatic color determining means for determining whether or not the image is an achromatic image using the determination result of the color classification determining means;
Further comprising
9. The image color determination according to claim 1, wherein when the achromatic color determination unit determines that the image is an achromatic image, a processing mode of the image is determined. apparatus.
原稿に係る画像を分割して得られるブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定する輝度区分判定工程と、
前記輝度区分判定工程の判定結果を利用して、前記画像の処理モードを決定する決定工程と、
を備える画像色判定方法。
A luminance classification determination step for determining whether each of the blocks obtained by dividing the image relating to the document belongs to a luminance classification of white, gray, or black;
A determination step of determining a processing mode of the image using a determination result of the luminance classification determination step;
An image color determination method comprising:
原稿に係る画像を分割して得られるブロックの各々が白、グレイ及び黒の輝度区分のいずれに属するのかを判定する輝度区分判定手順と、
前記輝度区分判定手順の判定結果を利用して、前記画像の処理モードを決定する決定手順と、
をコンピュータに実行させることを特徴とする画像色判定プログラム。
A luminance classification determination procedure for determining whether each of the blocks obtained by dividing the image related to the original document belongs to a white, gray, or black luminance classification;
A determination procedure for determining a processing mode of the image using a determination result of the luminance classification determination procedure;
An image color determination program that causes a computer to execute the above.
JP2006241354A 2006-09-06 2006-09-06 Image color deciding device, image color deciding method, and image color deciding program Pending JP2008066950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006241354A JP2008066950A (en) 2006-09-06 2006-09-06 Image color deciding device, image color deciding method, and image color deciding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006241354A JP2008066950A (en) 2006-09-06 2006-09-06 Image color deciding device, image color deciding method, and image color deciding program

Publications (1)

Publication Number Publication Date
JP2008066950A true JP2008066950A (en) 2008-03-21

Family

ID=39289280

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006241354A Pending JP2008066950A (en) 2006-09-06 2006-09-06 Image color deciding device, image color deciding method, and image color deciding program

Country Status (1)

Country Link
JP (1) JP2008066950A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014168175A (en) * 2013-02-28 2014-09-11 Brother Ind Ltd Image processing device, image processing method, and image processing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014168175A (en) * 2013-02-28 2014-09-11 Brother Ind Ltd Image processing device, image processing method, and image processing program

Similar Documents

Publication Publication Date Title
JP5220828B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, program, and recording medium
US8009338B2 (en) Image processing apparatus
JP2010183456A (en) Image processor, image reading processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP5442701B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, image reading apparatus, program, and recording medium
JP4315209B2 (en) Image processing apparatus and ground color detection method
JP2008067018A (en) Image color deciding device, image color deciding method, and program
US8599456B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer-readable recording medium on which image processing program is recorded
EP1898626A2 (en) Image color determining device and image color determining method
JP2010258799A (en) Image processing apparatus and image forming apparatus equipped with the same, image processing method, control program, and recording medium
CN111835931B (en) Image processing apparatus, image forming apparatus, image reading apparatus, and control method
JP4438834B2 (en) Image color determination apparatus, image color determination method, and program
US20080055682A1 (en) Apparatus and Method for Deciding Image Color
JP2008066950A (en) Image color deciding device, image color deciding method, and image color deciding program
JP2008066920A (en) Image color deciding device, image color deciding method, and image color deciding program
JP2004112140A (en) Image processing apparatus
JP5851235B2 (en) Image processing apparatus, image forming apparatus, digital camera, image processing method, computer program, and storage medium
JP2008172677A (en) Image processor and ground color detection method
JP4917952B2 (en) Image reading device
JP2008066919A (en) Image color deciding device, image color deciding method, and image color deciding program
JP2008066932A (en) Image color deciding device, image color deciding method, and image color deciding program
US9497486B2 (en) Image processing apparatus, image forming apparatus and recording medium
JP2011059193A (en) Image processing device, image forming device equipped with the same, image processing method, control program, and recording medium
JP4386110B2 (en) Image color determination apparatus, image color determination method, and program
JP2013219546A (en) Image processing device, image forming device, image processing program, and computer readable recording medium
JP2004112561A (en) Image processing apparatus