JP2006100997A - Image processing apparatus and method - Google Patents

Image processing apparatus and method Download PDF

Info

Publication number
JP2006100997A
JP2006100997A JP2004282290A JP2004282290A JP2006100997A JP 2006100997 A JP2006100997 A JP 2006100997A JP 2004282290 A JP2004282290 A JP 2004282290A JP 2004282290 A JP2004282290 A JP 2004282290A JP 2006100997 A JP2006100997 A JP 2006100997A
Authority
JP
Japan
Prior art keywords
pixel
color
attribute
image
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
JP2004282290A
Other languages
Japanese (ja)
Inventor
Tatsuo Kimura
辰夫 木村
Hidetsugu Kagawa
英嗣 香川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2004282290A priority Critical patent/JP2006100997A/en
Publication of JP2006100997A publication Critical patent/JP2006100997A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus and method for properly discriminating attributes over a wide-range region of image data. <P>SOLUTION: A pixel attribute discrimining section 102 discriminates the color attribute of a target pixel, on the basis of a second luminance signal obtained by multiplying coefficients with first luminance signals, the coefficients being individually set to the first luminance signals comprising pixels of a color multi-value image and received from an original read section. A main control section 103 counts arrangement attributes discriminated in accordance with the arrangement of color attributes as to 32 lines, in a block obtained by dividing a band of 64 lines in the color multi-value image into eight parts in the main scanning direction and counts the number of discriminated color attributes. A parameter, denoting the image feature of the concerned block, is calculated on the basis of the counted values, and the image attribute of the band is discriminated on the basis of the image attribute of the discriminated block, in response to the counts and the parameter obtained. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

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

従来から、記録部にインクジェット方式を用いた画像形成装置において、ブラック(Bk)画像形成用のヘッドとして、他のカラー画像形成用ヘッドよりも長尺のものを採用したものが知られている。この画像形成装置においては、原稿をライン単位でモノクロ領域かカラー領域かが判断され、モノクロ領域と判断されたライン群については、この長尺のブラック画像形成用のヘッドにより画像形成され、これにより、カラー画像であっても画像品位を損なうことなく、一度に画像形成することができる範囲を広げることができ、記録速度を向上させることができる(特許文献1参照)。   2. Description of the Related Art Conventionally, in an image forming apparatus using an ink jet system for a recording unit, a head that is longer than other color image forming heads is known as a black (Bk) image forming head. In this image forming apparatus, it is determined whether the original is a monochrome area or a color area in units of lines, and the line group determined to be a monochrome area is image-formed by this long black image forming head. Even in the case of a color image, the range in which an image can be formed at a time can be expanded without impairing the image quality, and the recording speed can be improved (see Patent Document 1).

特開2003-237191号公報JP 2003-237191 A

しかしながら、読取部で読み取られた輝度信号は、そのまま画像処理されていたので、読取部で生じるリニアリティのずれによって、本来、モノクロと判別されなければならないライン群がカラーと判別されて、カラー用のヘッドにより画像形成され、このため、黒が混在するカラー原稿の画像形成に時間がかかっていた。   However, since the luminance signal read by the reading unit has been subjected to image processing as it is, the line group that should originally be determined to be monochrome is determined to be color by the deviation in linearity that occurs in the reading unit, so Since an image is formed by the head, it takes a long time to form an image of a color document including black.

また、本来、白であるはずの領域についても、同様にして、ライン群がカラーと判別された場合には、画像全体に色がかぶってしまい、色味が変化した。   Similarly, in the area that should originally be white, when the line group is determined to be color, the entire image is covered with color and the color changes.

請求項1の発明は、カラー多値画像の画素ごとの第1の輝度信号を入力する入力手段と、該入力手段により入力された第1の輝度信号のリニアリティのずれを補正して第2の輝度信号を得る補正手段と、該補正手段による補正により得られた第2の輝度信号に基づいて画素ごとに色属性を判定する色属性判定手段と、該色属性判定手段により判定された色属性を、注目画素を含む所定領域内の画素分記憶する記憶手段と、前記カラー多値画像を、副走査方向に、所定数のラインよりなる第1のライン群に分割し、該第1のライン群をさらに主走査方向に複数個のブロックに分割し、各ブロックに属する第1のライン群から所定数のラインよりなる第2のライン群を抽出し、前記記憶手段内における前記色属性の配列に従って配列属性を判定し、各配列属性の数を計数する第1の計数手段と、前記色属性判定手段により判定された前記色属性を有する画素数を、前記ブロックについて計数する第2の計数手段と、前記第1及び第2の計数手段により係数された計数値に基づいて、前記第1のブロックについて、その画像特徴を示すパラメータを算出する算出手段と、前記第1及び第2の計数手段による計数値と、前記算出手段で算出されたパラメータとに応じて、前記第1のブロックの画像属性を判定するブロック属性判定手段と、前記ブロック属性判定手段による判定結果に基づいて、前記第1のライン群の画像属性を判定するライン属性判定手段とを備えたことを特徴とする。   According to the first aspect of the present invention, there is provided an input unit that inputs a first luminance signal for each pixel of a color multi-valued image, and a linearity shift of the first luminance signal input by the input unit to correct the second luminance signal. Correction means for obtaining a luminance signal, color attribute determination means for determining a color attribute for each pixel based on the second luminance signal obtained by correction by the correction means, and color attribute determined by the color attribute determination means Are stored in a first line group consisting of a predetermined number of lines in the sub-scanning direction, and storage means for storing pixels in a predetermined area including the target pixel, and the first line The group is further divided into a plurality of blocks in the main scanning direction, a second line group consisting of a predetermined number of lines is extracted from the first line group belonging to each block, and the array of the color attributes in the storage means Determine the array attribute according to First counting means for counting the number of each array attribute; second counting means for counting the number of pixels having the color attribute determined by the color attribute determining means for the block; and the first and first Calculation means for calculating a parameter indicating an image feature of the first block based on the count value obtained by the counting by the two counting means, the count value by the first and second counting means, and the calculation A block attribute determining unit that determines an image attribute of the first block according to a parameter calculated by the unit, and an image attribute of the first line group based on a determination result by the block attribute determining unit. And a line attribute determining means for determining.

請求項1の発明において、リニアリティ補正手段は、前記第1の輝度信号に対して係数をそれぞれの輝度信号に対して個別に設定し、個々に設定された係数をそれぞれの輝度信号に対して乗算することにより、所定の輝度レベル値となる第2の輝度信号を得る係数乗算手段を有することができる。   In the first aspect of the present invention, the linearity correction means sets a coefficient for each luminance signal individually for the first luminance signal, and multiplies each luminance signal by the individually set coefficient. Thus, it is possible to have coefficient multiplying means for obtaining a second luminance signal having a predetermined luminance level value.

請求項1又は2の発明において、ライン属性判定手段による第1のライン群についての判定結果と、所定の第2のライン群についての判定結果とに基づいて、第1のライン群と第2のライン群とに共通して含まれる第3のライン群の画像属性を判定する最終判定手段をさらに備えることができる。   In the first or second aspect of the invention, the first line group and the second line based on the determination result for the first line group by the line attribute determination means and the determination result for the predetermined second line group. The image forming apparatus may further include a final determination unit that determines an image attribute of a third line group that is included in common with the line group.

請求項1ないし3のいずれかの発明において、色属性判定手段は、前記画素が白画素であるか否かを判定する白画素判定手段と、前記画素が黒画素であるか否かを判定する黒画素判定手段と、前記画素がカラー画素であるか否かを判定するカラー画素判定手段とを備えることができる。   4. The color attribute determination unit according to claim 1, wherein the color attribute determination unit determines whether the pixel is a white pixel, and determines whether the pixel is a black pixel. Black pixel determination means and color pixel determination means for determining whether or not the pixel is a color pixel can be provided.

請求項4の発明において、白画素判定手段は、第2の輝度信号を所定の閾値と比較することによって、前記画素が白画素であるか否かを判定することができる。   In the invention of claim 4, the white pixel determining means can determine whether or not the pixel is a white pixel by comparing the second luminance signal with a predetermined threshold value.

請求項4の発明において、黒画素判定手段は、第2の輝度信号と所定の閾値との比較結果及び第2の輝度信号の色成分間における差分値と所定の閾値との比較結果に基づいて、前記画素が黒画素であるか否かを判定することができる。   According to a fourth aspect of the present invention, the black pixel determining means is based on a comparison result between the second luminance signal and the predetermined threshold value and a comparison value between the difference value between the color components of the second luminance signal and the predetermined threshold value. It can be determined whether or not the pixel is a black pixel.

請求項4の発明において、カラー画素判定手段は、当該画素について、前記白画素判定手段により白画素でないと判定され、かつ前記黒画素判定手段により黒画素でないと判定された場合に、当該画素をカラー画素であると判定し、前記カラー画素を含むラインの副走査方向の前ラインにおける対応画素が、前記色属性判定手段によってカラー画素であると判定されている場合に、注目画素の色属性を連続カラー画素と判定し、前記カラー画素を含むラインの副走査方向の前ラインにおける対応画素が、前記色属性判定手段によってカラー画素であると判定されていない場合に、該注目画素の色属性を単体カラー画素と判定することができる。   In the invention of claim 4, when the color pixel determining means determines that the pixel is not a white pixel by the white pixel determining means and the black pixel determining means determines that the pixel is not a black pixel, the color pixel determining means If it is determined that the pixel is a color pixel, and the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is determined to be a color pixel by the color attribute determination unit, the color attribute of the target pixel is If the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is not determined to be a color pixel by the color attribute determination unit, the color attribute of the target pixel is determined. It can be determined as a single color pixel.

請求項7の発明において、記憶手段は、前記カラー多値画像における所定のラインについて、画素ごとの色属性を保持するライン保持手段と、前記ライン保持手段に保持された前記ラインについての画素ごとの色属性と、該ラインの副走査方向の次ラインについての画素ごとの色属性をウインドウ形式で記憶するウインドウ記憶手段とを備えることができる。   In a seventh aspect of the invention, the storage means includes a line holding means for holding a color attribute for each pixel for a predetermined line in the color multi-valued image, and a pixel holding unit for each pixel for the line held in the line holding means. Window storage means for storing the color attribute and the color attribute for each pixel for the next line in the sub-scanning direction of the line in a window format can be provided.

請求項8の発明において、ウインドウ記憶手段は、主走査方向がM(Mは正整数)画素、副走査方向が2画素によって構成される第1のウインドウ形式で前記画素ごとの色属性を記憶する第1のウインドウ記憶手段と、主走査方向がN(Nは正整数)画素、副走査方向が2画素によって構成される第2のウインドウ形式で前記画素ごとの色属性を記憶する第2のウインドウ記憶手段とを備えることができる。   The window storage means stores the color attribute for each pixel in a first window format in which the main scanning direction is M (M is a positive integer) pixels and the sub-scanning direction is 2 pixels. A first window storing means, and a second window for storing color attributes for each pixel in a second window format comprising N pixels (N is a positive integer) in the main scanning direction and two pixels in the sub-scanning direction. Storage means.

請求項9の発明において、第1の計数手段は、第1のウインドウ記憶手段において、注目画素がカラー画素であって、前記注目画素に対して少なくとも1つの黒画素が隣接する場合のウインドウ数を前記第2のブロックごとに計数して第1の配列属性数を得る第1の配列属性計数手段と、第2のウインドウ記憶手段において、両端4画素を除くウインドウ領域でカラー画素が縦方向に連続し、かつ、両端4画素を含めたウインドウ領域内に黒画素が存在しない場合のウインドウ数を前記第2のブロックごとに計数して第2の配列属性数を得る第2の配列属性計数手段と、第2のウインドウ記憶手段において、主走査方向がI画素、副走査方向が2画素のウインドウ領域内に前記連続カラー画素が存在する場合のウインドウ数を前記第2のブロックごとに計数して第3の配列属性数を得る第3の配列属性計数手段と、第1のウインドウ記憶手段において、前記注目画素がカラー画素であって、該カラー画素の周囲に黒画素が存在しない場合のウインドウ数を前記第2のブロックごとに計数して第4の配列属性数を得る第4の配列属性計数手段とを備えることができる。   In the invention of claim 9, the first counting means calculates the number of windows in the first window storage means when the target pixel is a color pixel and at least one black pixel is adjacent to the target pixel. In the first array attribute counting means for obtaining the first array attribute number by counting for each second block, and in the second window storage means, color pixels continue in the vertical direction in the window area excluding the four pixels at both ends. And second array attribute counting means for obtaining the second array attribute number by counting the number of windows for each of the second blocks when no black pixel exists in the window area including the four pixels at both ends. In the second window storage means, the number of windows when the continuous color pixel exists in a window region in which the main scanning direction is I pixels and the sub-scanning direction is 2 pixels is set to the second block memory. In the third array attribute counting means for obtaining the third array attribute number by counting each pixel and the first window storage means, the pixel of interest is a color pixel, and a black pixel is around the color pixel. Fourth arrangement attribute counting means for counting the number of windows when they do not exist for each of the second blocks to obtain a fourth arrangement attribute number can be provided.

請求項10の発明において、第2の計数手段は、黒画素判定手段によって黒画素と判定された画素を前記第2のブロックごとに計数して黒画素計数値を得る第5の配列属性計数手段を備えることができる。   11. The fifth array attribute counting means according to claim 10, wherein the second counting means counts the pixels determined to be black pixels by the black pixel determining means for each of the second blocks to obtain a black pixel count value. Can be provided.

請求項10の発明において、算出手段は、第1の配列属性数と第2の配列属性数との比率を用いて第1のパラメータを得る第1の演算手段と、第4の配列属性数と黒画素計数値との比率を用いて第2のパラメータを得る第2の演算手段とを備えることができる。   In the invention of claim 10, the calculating means includes a first computing means for obtaining a first parameter using a ratio between the first array attribute number and the second array attribute number; a fourth array attribute number; And a second calculation means for obtaining a second parameter using a ratio with the black pixel count value.

請求項1の発明において、ブロック属性判定手段は、第1及び第2の計数手段による計数値及び算出手段で算出された前記第1のパラメータ及び前記第2のパラメータのそれぞれについて所定の閾値と比較することによって、前記第1のブロックの画像属性を判定することができる。   In the first aspect of the present invention, the block attribute determining means compares the count values of the first and second counting means and the first parameter and the second parameter calculated by the calculating means with a predetermined threshold value. By doing so, the image attribute of the first block can be determined.

請求項3の発明において、ライン属性判定手段は、ブロック属性判定手段によって判定された結果に応じて、前記第1のライン群の画像属性がモノクロか否かを判定することができ、最終判定手段は、前記第1のライン群及び第2のライン群の画像属性がいずれもモノクロと判定された場合、共通して含まれる前記第3のライン群の画像属性をモノクロと判定することができる。   In the invention of claim 3, the line attribute determining means can determine whether or not the image attribute of the first line group is monochrome according to the result determined by the block attribute determining means. When the image attributes of the first line group and the second line group are both determined to be monochrome, the image attribute of the third line group included in common can be determined to be monochrome.

請求項3の発明において、前記第1のライン群と前記第2のライン群は、同一のライン数とすることができる。   In the invention of claim 3, the first line group and the second line group may have the same number of lines.

請求項15の発明において、前記第3のライン群は、前記第1のライン群及び前記第2のライン群の半分のライン数とすることができる。   In the invention of claim 15, the third line group may be half the number of lines of the first line group and the second line group.

請求項3の発明において、最終判定手段によって判定された前記第3のライン群の画像属性に応じた画像処理を該第3のライン群に対して施す画像処理手段をさらに備えることができる。   The invention according to claim 3 may further comprise image processing means for performing image processing on the third line group according to the image attribute of the third line group determined by the final determining means.

請求項4の発明において、所定ライン単位で前記カラー多値画像の記録を行う画像記録手段をさらに備えることができ、該所定ライン単位は、前記第3のライン群と同一のライン数とすることができる。   The invention according to claim 4 may further comprise image recording means for recording the color multi-valued image in a predetermined line unit, and the predetermined line unit has the same number of lines as in the third line group. Can do.

請求項18の発明において、画像記録手段は、インクジェット方式によるモノクロヘッド及びカラーヘッドを備えることができ、モノクロヘッドは、カラーヘッドよりも長尺とすることができる。   In the invention of claim 18, the image recording means can include an ink-jet monochrome head and a color head, and the monochrome head can be longer than the color head.

請求項20の発明は、カラー多値画像の画素ごとの第1の輝度信号のリニアリティのずれを補正して第2の輝度信号を得る補正ステップと、該補正ステップによる補正により得られた第2の輝度信号に基づいて画素ごとに色属性を判定する色属性判定ステップと、該色属性判定ステップにより判定された前記色属性を、注目画素を含む所定領域内の画素分を所定の記憶装置に記憶する記憶ステップと、前記カラー多値画像を、副走査方向に、所定数のラインよりなる第1のライン群に分割し、該第1のライン群をさらに主走査方向に複数個のブロックに分割し、各ブロックに属する第1のライン群から所定数のラインよりなる第2のライン群を抽出し、前記記憶手段内における前記色属性の配列に従って配列属性を判定し、各配列属性の数を計数する第1の計数ステップと、前記色属性判定ステップにより判定された前記色属性を有する画素数を、前記ブロックについて計数する第2の計数ステップと、前記第1及び第2の計数ステップにより係数された計数値に基づいて、前記第1のブロックについて、その画像特徴を示すパラメータを算出する算出ステップと、前記第1及び第2の計数ステップにより係数された計数値と、前記算出ステップで算出されたパラメータとに応じて、前記第1のブロックの画像属性を判定するブロック属性判定ステップと、前記ブロック属性判定ステップによる判定結果に基づいて、前記第1のライン群の画像属性を判定するライン属性判定ステップとを有することを特徴とする。   The invention according to claim 20 is a correction step for correcting a linearity shift of the first luminance signal for each pixel of the color multi-valued image to obtain a second luminance signal, and a second obtained by correction by the correction step. A color attribute determination step for determining a color attribute for each pixel based on the luminance signal of the pixel, and the color attribute determined by the color attribute determination step for a pixel in a predetermined area including the target pixel in a predetermined storage device A storage step for storing, and the color multi-valued image is divided into a first line group composed of a predetermined number of lines in the sub-scanning direction, and the first line group is further divided into a plurality of blocks in the main scanning direction; Dividing, extracting a second line group consisting of a predetermined number of lines from the first line group belonging to each block, determining an array attribute according to the array of the color attributes in the storage means, and determining the number of each array attribute The A first counting step for counting, a second counting step for counting the number of pixels having the color attribute determined by the color attribute determining step for the block, and a coefficient by the first and second counting steps. On the basis of the counted value, a calculation step for calculating a parameter indicating the image feature of the first block, a count value obtained by coefficient calculation by the first and second counting steps, and a calculation by the calculation step A block attribute determination step for determining an image attribute of the first block according to the determined parameter, and a line for determining an image attribute of the first line group based on a determination result by the block attribute determination step And an attribute determination step.

請求項20の発明において、リニアリティ補正ステップは、第1の輝度信号に対して係数をそれぞれの輝度信号に対して個別に設定し、個々に設定された係数をそれぞれの輝度信号に対して乗算することにより、所定の輝度レベル値となる第2の輝度信号を得る係数乗算ステップを有することができる。   In the invention of claim 20, the linearity correction step sets a coefficient for each luminance signal individually for the first luminance signal, and multiplies each luminance signal for the coefficient set individually. Thus, a coefficient multiplying step for obtaining a second luminance signal having a predetermined luminance level value can be provided.

請求項20又は21の発明において、ライン属性判定ステップによる第1のライン群についての判定結果と、所定の第2のライン群についての判定結果とに基づいて、前記第1のライン群と前記第2のライン群とに共通して含まれる第3のライン群の画像属性を判定する最終判定ステップをさらに有することができる。   The invention according to claim 20 or 21 is characterized in that the first line group and the first line group are determined based on the determination result for the first line group in the line attribute determination step and the determination result for the predetermined second line group. The image forming apparatus may further include a final determination step of determining an image attribute of a third line group included in common with the two line groups.

請求項20ないし22の発明において、色属性判定ステップは、画素が白画素であるか否かを判定する白画素判定ステップと、前記画素が黒画素であるか否かを判定する黒画素判定ステップと、前記画素がカラー画素であるか否かを判定するカラー画素判定ステップとを有することができる。   23. The invention according to claim 20, wherein the color attribute determining step includes a white pixel determining step for determining whether or not the pixel is a white pixel, and a black pixel determining step for determining whether or not the pixel is a black pixel. And a color pixel determination step for determining whether or not the pixel is a color pixel.

請求項22又は23の発明において、カラー画素判定ステップは、前記白画素判定ステップ及び前記黒画素判定ステップのいずれにおいても否と判定された場合に前記画素をカラー画素であると判定することができ、該カラー画素を含むラインの副走査方向の前ラインにおける対応画素は、前記色属性判定ステップによってカラー画素であると判定されている場合に、注目画素の色属性を連続カラー画素と判定し、前記カラー画素を含むラインの副走査方向の前ラインにおける対応画素は、前記色属性判定ステップによってカラー画素であると判定されていない場合に、該注目画素の色属性を単体カラー画素と判定することができる。   In the invention of claim 22 or 23, the color pixel determining step can determine that the pixel is a color pixel when it is determined NO in both the white pixel determining step and the black pixel determining step. If the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is determined to be a color pixel by the color attribute determination step, the color attribute of the target pixel is determined to be a continuous color pixel, When the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is not determined to be a color pixel by the color attribute determination step, the color attribute of the target pixel is determined as a single color pixel Can do.

請求項25の発明に係るコンピュータプログラムは、コンピュータに、カラー多値画像の画素ごとの第1の輝度信号に基づいて前記第1の輝度信号に対して係数をそれぞれの輝度信号に対して個別に設定し、個々に設定された係数をそれぞれの輝度信号に対して乗算することで所定の輝度レベル値となる第2の輝度信号を得る係数乗算手順と、前記第2の輝度信号に基づいて前記画素の色属性を判定する色属性判定手順と、該色属性判定手順により判定された前記色属性を、注目画素を含む所定領域内の画素分を所定の記憶装置に記憶する記憶手順と、前記カラー多値画像における所定の第1のライン群を主走査方向に分割して得られる第1のブロック内の所定ライン数の第2のブロックについて、前記記憶装置内における前記色属性の配列に従って判定される配列属性を計数する第1の計数手順と、前記色属性判定手順により判定された前記色属性を、前記第2のブロックについて計数する第2の計数手順と、前記第1及び第2の計数手順による計数値に基づいて、前記第1のブロックについて、その画像特徴を示すパラメータを算出する算出手順と、前記第1及び第2の計数手段による計数値及び前記算出手順で算出されたパラメータに応じて、前記第1のブロックの画像属性を判定するブロック属性判定手順と、前記ブロック属性判定手順による判定結果に基づいて、前記第1のライン群の画像属性を判定するライン属性判定手順と、前記ライン属性判定手順による前記第1のライン群についての判定結果と所定の第2のライン群についての判定結果に基づいて、前記第1のライン群と前記第2のライン群とに共通して含まれる第3のライン群の画像属性を判定する最終判定手順とを実行させる。   According to a twenty-fifth aspect of the present invention, there is provided a computer program for causing a computer to separately calculate a coefficient for each luminance signal based on a first luminance signal for each pixel of a color multilevel image. A coefficient multiplication procedure for obtaining a second luminance signal having a predetermined luminance level value by multiplying each luminance signal by an individually set coefficient, and based on the second luminance signal, A color attribute determination procedure for determining a color attribute of a pixel; a storage procedure for storing the color attribute determined by the color attribute determination procedure in a predetermined storage device for pixels in a predetermined area including the target pixel; The arrangement of the color attributes in the storage device for the second block having a predetermined number of lines in the first block obtained by dividing the predetermined first line group in the color multi-valued image in the main scanning direction. Therefore, a first counting procedure for counting the array attributes to be determined, a second counting procedure for counting the color attributes determined by the color attribute determining procedure for the second block, the first and first On the basis of the count value obtained by the second counting procedure, the calculation procedure for calculating the parameter indicating the image feature of the first block, the count value by the first and second counting means, and the calculation procedure are used. A block attribute determination procedure for determining an image attribute of the first block according to the determined parameter, and a line attribute determination for determining an image attribute of the first line group based on a determination result by the block attribute determination procedure Based on the determination result for the first line group and the determination result for the predetermined second line group according to the procedure and the line attribute determination procedure, To execute a determining final determination steps image attributes of the third group of lines included in common with the in-group second line group.

請求項26の発明に係るコンピュータ読み取り可能な記録媒体は、請求項25に記載のコンピュータプログラムを記録してある。   A computer-readable recording medium according to a twenty-sixth aspect of the invention records the computer program according to the twenty-fifth aspect.

本発明によれば、簡易な構成で、画像データの広範囲な領域の適切な属性判定を可能とし、高画質な画像形成を可能とする。   According to the present invention, it is possible to determine appropriate attributes of a wide range of image data with a simple configuration, and to form a high-quality image.

以下、本発明の一実施形態を図面を参照して説明する。
図1は本発明の一実施形態を示す。これは、画像処理装置の例である。図1に示すように、本画像処理装置は、原稿読取部101と、画素属性判別部102と、主制御部(CPU)103と、画像処理部105とが、バスを介して相互に接続されている。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 shows an embodiment of the present invention. This is an example of an image processing apparatus. As shown in FIG. 1, in this image processing apparatus, a document reading unit 101, a pixel attribute determination unit 102, a main control unit (CPU) 103, and an image processing unit 105 are connected to each other via a bus. ing.

原稿読取部101は、CCDやCIS(コンタクトイメージセンサ)により、原稿のカラー画像データ、すなわち赤(以下「R」と称す。)、緑(以下「G」と称す。)、青(以下「B」と称す。)の多値画像データの読み取りを行って画素ごとの輝度信号を得るものである。コンシューマ向けのCCDやCISでは図7のように輝度成分ごとにリニアリティのズレが生じることがあり、リニアリティのズレが生じると、グレー画像を読み取ってもRGBの輝度成分が同じ値で出力されないので、後述する画素属性判別部102において、本来グレー画像であるものがカラー画像と判別されてしまう。   The document reading unit 101 uses a CCD or CIS (contact image sensor) to color image data of a document, that is, red (hereinafter referred to as “R”), green (hereinafter referred to as “G”), blue (hereinafter referred to as “B”). Multi-valued image data is read to obtain a luminance signal for each pixel. In a CCD or CIS for consumer use, linearity deviation may occur for each luminance component as shown in FIG. 7, and when the linearity deviation occurs, RGB luminance components are not output with the same value even when a gray image is read. In a pixel attribute determination unit 102, which will be described later, an original gray image is determined as a color image.

このリニアリティのズレを低減させるため、原稿読取部101によって読み取られたRGBそれぞれの輝度信号データは、係数演算部106に送られる。係数演算部106では、あらかじめ設定されている係数を輝度成分ごとに所定の輝度信号レベルになるように乗算して、得られた輝度信号を画素属性判別部102に送る。   In order to reduce the deviation of the linearity, the RGB luminance signal data read by the document reading unit 101 is sent to the coefficient calculation unit 106. The coefficient calculation unit 106 multiplies a preset coefficient so as to obtain a predetermined luminance signal level for each luminance component, and sends the obtained luminance signal to the pixel attribute determination unit 102.

具体的には、プレスキャン時において原稿の下地を読み込む際に、入力される輝度データが、256階調で、RGBそれぞれ、R=228、G=241、B=252の輝度値が得られるCCDやCISであれば、乗算する係数値をそれぞれ、Kr=1.12、Kg=1.06、Kb=1.01と設定しておき、得られた輝度値に係数値を乗算すると、R=255、G=254、B=255の値が得られる。   Specifically, when reading the background of a document at the time of pre-scanning, the input luminance data is 256 gradations, and the CCD can obtain luminance values of R = 228, G = 241, and B = 252 for RGB, respectively. Or CIS, the coefficient values to be multiplied are set as Kr = 1.12, Kg = 1.06, Kb = 1.01, and when the obtained luminance value is multiplied by the coefficient value, R = The values 255, G = 254, B = 255 are obtained.

こうした処理を輝度信号に施すことでR、G、Bの輝度データをフラットにして白レベルのバランスを調整することで、本来白であるエリアを多くすることができる。   By applying such processing to the luminance signal, the luminance data of R, G, B is flattened and the balance of the white level is adjusted, so that the area that is originally white can be increased.

次に、画素属性判別部102は、原稿読取部101によって読み取られたカラー画像データを所定の閾値と比較することにより、画素ごとに属性を判定し、属性ごとに計数する。   Next, the pixel attribute determination unit 102 determines the attribute for each pixel by comparing the color image data read by the document reading unit 101 with a predetermined threshold, and counts for each attribute.

主制御部103は、システムバスを介して本画像処理装置全体を制御し、画素属性判別部102によって計数された属性別計数値を用いて属性の判定を行う。また、主制御部103は、記憶部104に接続されている。記憶部104は、主制御部103が所定ライン分の判定を行う際に使用される。画像処理部105は、主制御部103において判定された判定結果を受け、高画質処理を行う。   The main control unit 103 controls the entire image processing apparatus via the system bus, and performs attribute determination using the attribute-specific count value counted by the pixel attribute determination unit 102. The main control unit 103 is connected to the storage unit 104. The storage unit 104 is used when the main control unit 103 makes a determination for a predetermined line. The image processing unit 105 receives the determination result determined by the main control unit 103 and performs high image quality processing.

図2は、図1の画素属性判別部102の詳細な構成を示すブロック図である。図2において、レジスタ201〜209は、画素属性判別部102において、原稿読取部101により読み取られたカラー画像データの属性を、画素ごとに判定するために必要なパラメータ等を格納したDフリップフロップ(DFF)等により構成され、主制御部103により所定の閾値が設定される。   FIG. 2 is a block diagram illustrating a detailed configuration of the pixel attribute determination unit 102 of FIG. In FIG. 2, registers 201 to 209 are D flip-flops that store parameters and the like necessary for determining, for each pixel, the attribute of color image data read by the document reading unit 101 in the pixel attribute determination unit 102. DFF) and the like, and a predetermined threshold is set by the main control unit 103.

また、WTHRと、WTHGと、WTHBは、原稿読取部101により入力される各画素データが、白画素であるか否かの判定を行うための閾値設定レジスタである。そして、WTHRには、原稿読取部101により入力される画素データのR信号レベルの白画素判定に関する判定レベルが記憶されている。同様に、WTHGには、G信号レベルの白画素判定に関する判定レベルが、WTHBには、B信号レベルの白画素判定に関する判定レベルが記憶されている。   WTHR, WTHG, and WTHL are threshold setting registers for determining whether each pixel data input by the document reading unit 101 is a white pixel. In WTHR, a determination level relating to white pixel determination of the R signal level of the pixel data input by the document reading unit 101 is stored. Similarly, a determination level related to white pixel determination at the G signal level is stored in WTHG, and a determination level related to white pixel determination at the B signal level is stored in WTHG.

さらに、BTHR、BTHG、BTHB、DRG、DGB、及びDRBは、原稿読取部101により入力される各画素データが黒画素であるか否かの判定を行うための閾値設定レジスタである。そして、BTHRには、原稿読取部101により入力される画素データのR信号レベルの黒画素判定に関する判定レベルが記憶されている。同様に、BTHGには、G信号レベルの黒画素判定に関する判定レベルが、BTHBには、B信号レベルの黒画素判定に関する判定レベルが記憶されている。   Further, BTHR, BTHG, BTHB, DRG, DGB, and DRB are threshold setting registers for determining whether each pixel data input by the document reading unit 101 is a black pixel. In BTHR, a determination level relating to black pixel determination of the R signal level of the pixel data input by the document reading unit 101 is stored. Similarly, a determination level related to black pixel determination of the G signal level is stored in BTHG, and a determination level related to black pixel determination of the B signal level is stored in BTHB.

一方、DRGは、原稿読取部101により入力される画素データが黒画素であるか否かの判定を行うための閾値設定レジスタであり、R信号レベルとG信号レベルの差分の絶対値に関する閾値が設定されている。同様に、DGBには、G信号レベルとB信号レベルの差分の絶対値に関する閾値が設定され、DRBには、R信号レベルとB信号レベルの差分の絶対値に関する閾値が設定されている。   On the other hand, the DRG is a threshold setting register for determining whether or not the pixel data input by the document reading unit 101 is a black pixel, and a threshold relating to the absolute value of the difference between the R signal level and the G signal level. Is set. Similarly, a threshold relating to the absolute value of the difference between the G signal level and the B signal level is set in DGB, and a threshold relating to the absolute value of the difference between the R signal level and the B signal level is set in DRB.

原稿読取部101により読み取られたカラー画像データは、各画素の信号成分ごとに上記閾値設定レジスタに記憶されている閾値との比較が行われる。すなわち、白画素判定に関しては、比較器213により入力画素データのR信号レベルがWTHRで設定された閾値と比較される。そして、比較器213は、入力画素のR信号レベルがWTHRで設定された所定の閾値よりも大きい場合、条件を満たす信号(「Hiレベル」)を出力する。   The color image data read by the document reading unit 101 is compared with the threshold value stored in the threshold value setting register for each signal component of each pixel. That is, regarding the white pixel determination, the comparator 213 compares the R signal level of the input pixel data with the threshold set by WTHR. Then, when the R signal level of the input pixel is larger than a predetermined threshold set by WTHR, the comparator 213 outputs a signal that satisfies the condition (“Hi level”).

同様に、入力画素データのG信号レベルは、比較器214によりWTHGで設定された閾値と比較され、入力画素データのB信号レベルは、比較器215により、WTHBで設定された閾値と比較される。それぞれがWTHG、WTHBで設定された所定の閾値よりも大きい場合、比較器214及び比較器215は、条件を満たす信号(「Hiレベル」)を出力する。これによって、入力画素データが白画素であるか否かを判定することができる。   Similarly, the G signal level of the input pixel data is compared with the threshold value set by WTHG by the comparator 214, and the B signal level of the input pixel data is compared with the threshold value set by WTB by the comparator 215. . When each is larger than a predetermined threshold set by WTHG and WTHG, the comparator 214 and the comparator 215 output a signal (“Hi level”) that satisfies the condition. Thereby, it can be determined whether or not the input pixel data is a white pixel.

一方、黒画素判定に関しては、まず、比較器216により、入力画素データのR信号レベルがBTHRで設定された閾値と比較される。そして、比較器216は、入力画素のR信号レベルがBTHRで設定された所定の閾値よりも小さい場合、条件を満たす信号(「Hiレベル」)を出力する。同様に、入力画素データのG信号レベルは、比較器217によりBTHGで設定された閾値と比較され、入力画素データのB信号レベルは、比較器218によりBTHBで設定された閾値と比較される。それぞれがBTHG、BTHBで設定された閾値よりも小さい場合、比較器217及び比較器218は、条件を満たす信号(「Hiレベル」)を出力する。   On the other hand, regarding the black pixel determination, first, the comparator 216 compares the R signal level of the input pixel data with the threshold set by BTHR. The comparator 216 outputs a signal (“Hi level”) that satisfies the condition when the R signal level of the input pixel is smaller than a predetermined threshold set by BTHR. Similarly, the G signal level of the input pixel data is compared with the threshold value set by BTHG by the comparator 217, and the B signal level of the input pixel data is compared with the threshold value set by BTHB by the comparator 218. When each is smaller than the threshold value set by BTHG and BTHB, the comparator 217 and the comparator 218 output a signal (“Hi level”) that satisfies the condition.

さらに、黒画素判定に関しては、比較器219、比較器220及び比較器221により、入力画素データのR信号レベル、G信号レベル及びB信号レベルそれぞれの差分の絶対値を用いた判定が行われる。すなわち、減算器210により入力画素データのR信号レベルとG信号レベルの差分の絶対値を算出する。そして、DRGで設定された黒画素判定に関するR信号レベルとG信号レベルの差分の絶対値に関する閾値と比較される。比較器219は、減算器210による演算結果がDRGで設定された閾値よりも小さい場合、条件を満たす信号(「Hiレベル」)を出力する。   Further, regarding the black pixel determination, the comparator 219, the comparator 220, and the comparator 221 perform determination using absolute values of differences between the R signal level, the G signal level, and the B signal level of the input pixel data. That is, the subtracter 210 calculates the absolute value of the difference between the R signal level and the G signal level of the input pixel data. And it compares with the threshold value regarding the absolute value of the difference of R signal level regarding the black pixel determination set by DRG, and G signal level. Comparator 219 outputs a signal (“Hi level”) that satisfies the condition when the calculation result by subtractor 210 is smaller than the threshold set by DRG.

同様にして、比較器220は、減算器211による入力画素データのG信号レベルとB信号レベルの差分の絶対値の算出結果と、DGBで設定された黒画素判定に関するG信号レベルとB信号レベルの差分の絶対値に関する閾値と比較を行う。そして、減算器211による演算結果がDGBで設定された閾値よりも小さい場合、条件を満たす信号(「Hiレベル」)を出力する。また、比較器221は、減算器212による入力画素データのR信号レベルとB信号レベルの差分の絶対値の算出結果と、DRBで設定された黒画素判定に関するR信号レベルとB信号レベルの差分の絶対値に関する閾値と比較を行う。そして、減算器212による演算結果がDRBで設定された閾値よりも小さい場合、条件を満たす信号(「Hiレベル」)を出力する。このように、各色成分間の差分の絶対値が所定の閾値よりも小さい場合に条件を満たすようにすることで、グレー等の無彩色等も黒画素と判定することが可能となる。   Similarly, the comparator 220 calculates the absolute value of the difference between the G signal level and the B signal level of the input pixel data by the subtractor 211, and the G signal level and the B signal level related to the black pixel determination set by the DGB. A comparison is made with a threshold relating to the absolute value of the difference of When the calculation result by the subtractor 211 is smaller than the threshold set by DGB, a signal that satisfies the condition (“Hi level”) is output. Further, the comparator 221 calculates the absolute value of the difference between the R signal level and the B signal level of the input pixel data by the subtractor 212 and the difference between the R signal level and the B signal level related to the black pixel determination set in the DRB. Compare with the threshold value for the absolute value of. When the calculation result by the subtractor 212 is smaller than the threshold set by DRB, a signal that satisfies the condition (“Hi level”) is output. As described above, by satisfying the condition when the absolute value of the difference between the color components is smaller than the predetermined threshold, it is possible to determine an achromatic color such as gray as a black pixel.

次に、入力画素データの白、黒、カラー画素判定に関して説明する。
白画素判定部222は、比較器213〜215の出力信号を基に入力画素の白画素判定を行う。具体的には、接続される比較器213〜215の全ての出力が条件を満たす信号(「Hiレベル」の信号)である場合に入力画素を白画素であると判定し、判定信号を出力する。
Next, the white, black, and color pixel determination of the input pixel data will be described.
The white pixel determination unit 222 performs white pixel determination of input pixels based on output signals from the comparators 213 to 215. Specifically, when all the outputs of the connected comparators 213 to 215 are signals that satisfy the condition (“Hi level” signal), the input pixel is determined to be a white pixel and a determination signal is output. .

黒画素判定部223は、比較器216〜221の出力信号を基に入力画素の黒画素判定を行う。具体的には、接続される比較器216〜221の全ての出力が条件を満たす信号(「Hiレベル」の信号)である場合に入力画素を黒画素であると判定し、判定信号を出力する。黒画素計数部231は、黒画素判定部223の出力信号を受け、黒画素数を計数する。   The black pixel determination unit 223 performs black pixel determination of input pixels based on output signals from the comparators 216 to 221. Specifically, when all the outputs of the connected comparators 216 to 221 are signals that satisfy the condition (“Hi level” signal), the input pixel is determined to be a black pixel and a determination signal is output. . The black pixel counting unit 231 receives the output signal from the black pixel determining unit 223 and counts the number of black pixels.

入力画素データのカラー画素の判定は、白画素判定部222の出力信号及び黒画素判定部223の出力信号を参照して行われる。すなわち、白画素判定部222及び黒画素判定部223による出力がいずれも条件を満たす信号(「Hiレベル」)でない場合、入力画素データをカラー画素と判定し、判定信号を出力する。上述したように、入力された画素データは、白、黒又はカラー画素のいずれかに判定することができる。   The determination of the color pixel of the input pixel data is performed with reference to the output signal of the white pixel determination unit 222 and the output signal of the black pixel determination unit 223. That is, when the outputs from the white pixel determination unit 222 and the black pixel determination unit 223 are not signals satisfying both conditions (“Hi level”), the input pixel data is determined as a color pixel and a determination signal is output. As described above, the input pixel data can be determined as one of white, black, and color pixels.

すなわち、本実施の形態に係る画像処理装置における画素属性判別部102は、注目画素が白画素であるか否かを判定する白画素判定部222と、当該画素が黒画素であるか否かを判定する黒画素判定部223と、当該画素がカラー画素であるか否かを判定するカラー画素判定部224とを備えたことを特徴とする。   That is, the pixel attribute determination unit 102 in the image processing apparatus according to the present embodiment determines whether or not the target pixel is a white pixel, and whether or not the pixel is a black pixel. A black pixel determination unit 223 for determining and a color pixel determination unit 224 for determining whether or not the pixel is a color pixel are provided.

また、本実施の形態に係る画像処理装置は、白画素判定部222が、入力された輝度信号を所定の閾値と比較することによって、注目画素が白画素であるか否かを判定することを特徴とする。さらに、黒画素判定部223が、入力された輝度信号と所定の閾値との比較結果及び輝度信号の色成分間における差分値と所定の閾値との比較結果に基づいて、注目画素が黒画素であるか否かを判定することを特徴とする。   In the image processing apparatus according to the present embodiment, the white pixel determination unit 222 determines whether or not the target pixel is a white pixel by comparing the input luminance signal with a predetermined threshold. Features. Further, the black pixel determination unit 223 determines that the target pixel is a black pixel based on the comparison result between the input luminance signal and the predetermined threshold value and the comparison value between the difference value between the color components of the luminance signal and the predetermined threshold value. It is characterized by determining whether or not there is.

次に、注目画素の画素属性分類方法について説明する。白画素判定部222、黒画素判定部223、及びカラー画素判定部224による判定結果は、小ウインドウ処理部225及び大ウインドウ処理部226に入力される。さらに、小ウインドウ処理部225及び大ウインドウ処理部226にはメモリ232が接続されている。なお、メモリ232は、入力1画素当たり2ビット分であって主走査方向画素数分の記憶容量を有する。   Next, a pixel attribute classification method for the target pixel will be described. The determination results by the white pixel determination unit 222, the black pixel determination unit 223, and the color pixel determination unit 224 are input to the small window processing unit 225 and the large window processing unit 226. Further, a memory 232 is connected to the small window processing unit 225 and the large window processing unit 226. The memory 232 has a storage capacity of 2 bits per input pixel and the number of pixels in the main scanning direction.

図3は、小ウインドウ処理部225における処理用のウインドウ構成を示す図である。また、図4は、大ウインドウ処理部226における処理用のウインドウ構成を示す図である。図3及び図4に示すように、本実施形態では、小ウインドウ処理部225において主走査方向3画素、副走査方向2画素のウインドウサイズを適用して処理を行う。また、大ウインドウ処理部226において主走査方向32画素、副走査方向2画素のウインドウサイズを適用する。   FIG. 3 is a diagram showing a window configuration for processing in the small window processing unit 225. FIG. 4 is a diagram showing a processing window configuration in the large window processing unit 226. As shown in FIGS. 3 and 4, in this embodiment, the small window processing unit 225 performs processing by applying a window size of 3 pixels in the main scanning direction and 2 pixels in the sub-scanning direction. The large window processing unit 226 applies a window size of 32 pixels in the main scanning direction and 2 pixels in the sub-scanning direction.

図3において、符号301〜306は、それぞれ入力画素に対応する判定結果を保持するレジスタを示しており、画素データが入力されるタイミングで各ラインごと後段のレジスタに記憶データがシフトするシフトレジスタにより構成される。すなわち、画素データが入力されるタイミングで、レジスタ301の記憶データはレジスタ302に記憶され、レジスタ304の記憶データはレジスタ305に記憶される。   In FIG. 3, reference numerals 301 to 306 denote registers for holding the determination results corresponding to the input pixels, respectively, and the shift register in which the stored data is shifted to the subsequent register for each line at the timing when the pixel data is input. Composed. That is, the storage data of the register 301 is stored in the register 302 and the storage data of the register 304 is stored in the register 305 at the timing when the pixel data is input.

図4においても図3と同様に、符号401〜464は、それぞれ入力画素に対応する判定結果を保持するレジスタを示しており、画素データが入力されるタイミングで各ラインごと後段のレジスタに記憶データがシフトするシフトレジスタにより構成される。すなわち、画素データが入力されるタイミングで、レジスタ401の記憶データはレジスタ402に記憶され、レジスタ433の記憶データはレジスタ434に記憶される。   Also in FIG. 4, as in FIG. 3, reference numerals 401 to 464 denote registers that hold the determination results corresponding to the input pixels, and the data stored in the subsequent register for each line at the timing when the pixel data is input. Is constituted by a shift register that shifts. In other words, the storage data of the register 401 is stored in the register 402 and the storage data of the register 433 is stored in the register 434 at the timing when the pixel data is input.

また、レジスタ301及びレジスタ401には、メモリ232から得られる前ラインの画素の判定結果が記憶され、レジスタ304及びレジスタ433には、入力画素の判定結果が記憶される。   The register 301 and the register 401 store the determination result of the pixel on the previous line obtained from the memory 232, and the register 304 and the register 433 store the determination result of the input pixel.

すなわち、本実施の形態に係る画像処理装置内で、カラー多値画像における所定のラインについて、画素ごとの色属性を保持し、保持されたラインについての画素ごとの色属性と、当該ラインの副走査方向の次ラインについての画素ごとの色属性をウインドウ形式で記憶することを特徴とする。   That is, in the image processing apparatus according to the present embodiment, the color attribute for each pixel is retained for a predetermined line in the color multi-valued image, the color attribute for each pixel for the retained line, and the sub-line of the line. The color attribute for each pixel for the next line in the scanning direction is stored in a window format.

また、本実施の形態に係る画像処理装置では、メモリ232内に、主走査方向がM画素、副走査方向が2画素によって構成される第1のウインドウ形式で画素ごとの色属性を記憶するとともに、主走査方向がN画素、副走査方向が2画素によって構成される第2のウインドウ形式で画素ごとの色属性を記憶することを特徴とする。なお、本実施形態では、Mが3、Nが32の場合について示している。   In the image processing apparatus according to the present embodiment, the color attribute for each pixel is stored in the memory 232 in the first window format configured by M pixels in the main scanning direction and 2 pixels in the sub scanning direction. The color attribute for each pixel is stored in a second window format constituted by N pixels in the main scanning direction and two pixels in the sub-scanning direction. In the present embodiment, M is 3 and N is 32.

小ウインドウ処理部225及び大ウインドウ処理部226における注目画素の画素属性判定はそれぞれ、図3及び図4に示すように、前ラインの各画素の判定結果と現読み取りラインの画素判定結果に基づいて行われる。   The pixel attribute determination of the target pixel in the small window processing unit 225 and the large window processing unit 226 is based on the determination result of each pixel on the previous line and the pixel determination result on the current reading line, as shown in FIGS. Done.

メモリ232より読み取られた判定結果データは、レジスタ301及びレジスタ401に記憶されてしまうとその後は不要になるため、その判定結果データの記憶されていたメモリ232のアドレスには、入力画素の判定結果が新しく記憶される。従って、前ラインの判定結果を保持するメモリ232としては、入力原稿画像データの1ライン分の主走査方向画素数分の容量が最低限備わっていればよい。   Since the determination result data read from the memory 232 is unnecessary after being stored in the register 301 and the register 401, the determination result of the input pixel is included in the address of the memory 232 where the determination result data is stored. Is newly remembered. Therefore, the memory 232 that holds the determination result of the previous line only needs to have a minimum capacity for the number of pixels in the main scanning direction for one line of the input document image data.

また、レジスタ301〜306、レジスタ401〜464及びメモリ232の記憶データは、処理原稿単位或いは処理ライン単位で白画素判定結果に初期化される。また、図3において黒で示したレジスタ305が、判定の対象となる注目画素の判定データに相当する。   The data stored in the registers 301 to 306, the registers 401 to 464, and the memory 232 are initialized to white pixel determination results in units of processing originals or processing lines. Further, the register 305 shown in black in FIG. 3 corresponds to the determination data of the target pixel to be determined.

図3及び図4に示す各レジスタに記憶されるデータは、小ウインドウ処理部225及び大ウインドウ処理部226に入力される画素が白画素である場合、小ウインドウ処理部225及び大ウインドウ処理部226は、入力画素が白画素であることを示す2ビットデータをレジスタに記憶する。ここで本実施形態においては、入力画素が白画素であることを示すデータを「11」とする。   The data stored in each register shown in FIGS. 3 and 4 is the small window processing unit 225 and the large window processing unit 226 when the pixels input to the small window processing unit 225 and the large window processing unit 226 are white pixels. Stores 2-bit data indicating that the input pixel is a white pixel in the register. Here, in the present embodiment, data indicating that the input pixel is a white pixel is “11”.

また、入力画素が黒画素である場合、小ウインドウ処理部225及び大ウインドウ処理部226は、入力画素が黒画素であることを示す2ビットデータをレジスタに記憶する。ここで本実施形態においては、入力画素が黒画素であることを示すデータを「00」とする。   When the input pixel is a black pixel, the small window processing unit 225 and the large window processing unit 226 store 2-bit data indicating that the input pixel is a black pixel in a register. In this embodiment, data indicating that the input pixel is a black pixel is “00”.

さらに、入力画素がカラー画素である場合、小ウインドウ処理部225及び大ウインドウ処理部226は、入力画素がカラー画素であることを示す2ビットデータをレジスタに記憶する。ここで本実施形態においては、入力画素がカラー画素であることを示すデータを「10」又は「01」とする。すなわち、入力画素の前ラインの画素判定結果がカラー画素である場合は連続カラー画素判定を示す「01」、入力画素の前ラインの画素判定結果が白画素もしくは黒画素の場合は単体カラー画素判定を示す「10」がレジスタに記憶される。このように、本実施の形態では、入力画像データが単にカラー画素であるか否かを判定するだけでなく、当該カラー画素が連続カラー画素又は単体カラー画素のいずれであるかを判定することが可能である。   Further, when the input pixel is a color pixel, the small window processing unit 225 and the large window processing unit 226 store 2-bit data indicating that the input pixel is a color pixel in a register. In this embodiment, data indicating that the input pixel is a color pixel is “10” or “01”. That is, “01” indicating continuous color pixel determination when the pixel determination result of the previous line of the input pixel is a color pixel, and single color pixel determination when the pixel determination result of the previous line of the input pixel is a white pixel or a black pixel “10” indicating “” is stored in the register. Thus, in this embodiment, not only whether or not the input image data is a color pixel but also whether the color pixel is a continuous color pixel or a single color pixel is determined. Is possible.

すなわち、本実施の形態に係る画像処理装置では、カラー画素判定部224が、白画素判定部222及び黒画素判定部223のいずれにおいても否と判定された場合に注目画素をカラー画素であると判定し、当該カラー画素を含むラインの副走査方向の前ラインにおける対応画素がカラー画素であると判定されている場合に、注目画素の色属性を連続カラー画素と判定し、当該カラー画素を含むラインの副走査方向の前ラインにおける対応画素がカラー画素であると判定されていない場合に、注目画素の色属性を単体カラー画素と判定することを特徴とする。   In other words, in the image processing apparatus according to the present embodiment, when the color pixel determination unit 224 determines NO in both the white pixel determination unit 222 and the black pixel determination unit 223, the target pixel is a color pixel. If the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is determined to be a color pixel, the color attribute of the target pixel is determined to be a continuous color pixel, and the color pixel is included. If the corresponding pixel in the previous line in the sub-scanning direction of the line is not determined to be a color pixel, the color attribute of the pixel of interest is determined to be a single color pixel.

次に、エッジカラー計数部228における処理について説明する。エッジカラー計数部228は、小ウインドウ処理部225によって黒文字に付随するカラー画素を検出して計数する。具体的には、小ウインドウ処理部225に画素データが入力されたタイミングにおいて、注目画素についてのレジスタ305には、カラー画素判定結果を示す「10」又は「01」のいずれかが記憶されている。そして、注目画素の周囲、すなわち、レジスタ301〜304及びレジスタ306のいずれかに黒画素判定を示す「00」が記憶されていた場合、小ウインドウ処理部225はエッジカラー計数部228に信号を出力する。エッジカラー計数部228はその出力信号を受け、エッジカラー数を計数する。   Next, processing in the edge color counting unit 228 will be described. The edge color counting unit 228 detects and counts color pixels associated with black characters by the small window processing unit 225. Specifically, at the timing when pixel data is input to the small window processing unit 225, the register 305 for the target pixel stores either “10” or “01” indicating the color pixel determination result. . When “00” indicating black pixel determination is stored around the pixel of interest, that is, in any of the registers 301 to 304 and the register 306, the small window processing unit 225 outputs a signal to the edge color counting unit 228. To do. The edge color counting unit 228 receives the output signal and counts the number of edge colors.

次に、孤立カラー計数部227における処理について説明する。孤立カラー計数部227は、小ウインドウ処理部225によって黒文字に付随しないカラー画素を検出して計数する。具体的には、小ウインドウ処理部225に画素データが入力されたタイミングにおいて、注目画素についてのレジスタ305にはカラー画素判定結果を示す「10」又は「01」が記憶されている。そして、注目画素の周囲、すなわち、レジスタ301〜304及びレジスタ306のいずれにも黒画素判定を示す「00」が記憶されていない場合、小ウインドウ処理部225は孤立カラー計数部227に信号を出力する。孤立カラー計数部227はその出力信号を受け、カラー画素数を計数する。   Next, processing in the isolated color counting unit 227 will be described. The isolated color counting unit 227 detects and counts color pixels not associated with black characters by the small window processing unit 225. Specifically, at the timing when the pixel data is input to the small window processing unit 225, “10” or “01” indicating the color pixel determination result is stored in the register 305 for the target pixel. When “00” indicating black pixel determination is not stored around the pixel of interest, that is, in any of the registers 301 to 304 and the register 306, the small window processing unit 225 outputs a signal to the isolated color counting unit 227. To do. The isolated color counter 227 receives the output signal and counts the number of color pixels.

次に、Vカラー計数部230における処理について説明する。Vカラー計数部230は、大ウインドウ処理部226によってカラーの縦罫線を検出して計数する。具体的には、大ウインドウ処理部226に画素データが入力されたタイミングで、両端のレジスタ(レジスタ401、432、433、464)を除くレジスタにおいて、カラー画素判定結果を示す「10」又は「01」が記憶されているレジスタが縦に連続しており(例えば、レジスタ416と448)、かつ、両端のレジスタを含む全レジスタにおいて、黒画素判定結果を示す「00」が記憶されているレジスタが1つもない場合、大ウインドウ処理部226はVカラー計数部230に信号を出力する。Vカラー計数部230はその出力信号を受け、Vカラー数を計数する。   Next, processing in the V color counting unit 230 will be described. The V color counting unit 230 detects and counts the color vertical ruled lines by the large window processing unit 226. Specifically, at the timing when the pixel data is input to the large window processing unit 226, “10” or “01” indicating the color pixel determination result in the registers other than the registers (registers 401, 432, 433, and 464) at both ends. ”Is stored vertically (for example, registers 416 and 448), and among all the registers including the registers at both ends, there is a register storing“ 00 ”indicating the black pixel determination result. If there is none, the large window processing unit 226 outputs a signal to the V color counting unit 230. The V color counting unit 230 receives the output signal and counts the number of V colors.

また、ブロックカラー計数部229は、大ウインドウ処理部226によって広い領域に亘るカラー画素を検出して計数する。具体的には、Vカラー計数部230と同様のタイミングにおいて、全レジスタにおいて、連続カラー画素判定結果を示す「01」が16×2画素以上の領域で記憶されている場合(例えば、レジスタ410〜425及びレジスタ442〜457に「01」が記憶されている場合)、大ウインドウ処理部226はブロックカラー計数部229に信号を出力する。ブロックカラー計数部229はその出力信号を受け、ブロックカラー数を計数する。なお、本実施形態では、一例として上記領域を16×2画素としたが、これ以外の大きさの領域であっても同様に本発明を適用することが可能である。   Further, the block color counting unit 229 detects and counts color pixels over a wide area by the large window processing unit 226. Specifically, at the same timing as the V color counting unit 230, when “01” indicating the continuous color pixel determination result is stored in an area of 16 × 2 pixels or more in all the registers (for example, the registers 410 to 410). 425 and the registers 442 to 457 (when “01” is stored), the large window processing unit 226 outputs a signal to the block color counting unit 229. The block color counting unit 229 receives the output signal and counts the number of block colors. In the present embodiment, the area is 16 × 2 pixels as an example, but the present invention can be similarly applied to areas of other sizes.

すなわち、本実施の形態に係る画像処理装置内の画素属性判別部102には、小ウインドウ処理部225において注目画素がカラー画素であって、注目画素に対して少なくとも1つの黒画素が隣接する場合のウインドウ数を第2のブロックごとに計数して第1の配列属性数を得るエッジカラー計数部228と、大ウインドウ処理部226において、両端4画素を除くウインドウ領域でカラー画素が縦方向に連続し、かつ、両端4画素を含めたウインドウ領域内に黒画素が存在しない場合のウインドウ数を第2のブロックごとに計数して第2の配列属性数を得るVカラー計数部230と、大ウインドウ処理部226において、主走査方向がI画素、副走査方向が2画素のウインドウ領域内に連続カラー画素が存在する場合のウインドウ数を第2のブロックごとに計数して第3の配列属性数を得るブロックカラー計数部229と、小ウインドウ処理部225において、注目画素がカラー画素であって、当該カラー画素の周囲に黒画素が存在しない場合のウインドウ数を第2のブロックごとに計数して第4の配列属性数を得る孤立カラー計数部227とを備えたことを特徴とする。   That is, when the pixel of interest is a color pixel in the small window processing unit 225 and at least one black pixel is adjacent to the pixel of interest in the pixel attribute determination unit 102 in the image processing apparatus according to the present embodiment. In the edge color counting unit 228 that obtains the first array attribute number by counting the number of windows for each second block, and the large window processing unit 226, color pixels continue in the vertical direction in the window area excluding the four pixels at both ends. And a V color counting unit 230 that counts the number of windows when there are no black pixels in the window area including the four pixels at both ends for each second block, and obtains a second array attribute number, and a large window In the processing unit 226, the number of windows when the continuous color pixel is present in the window region in which the main scanning direction is I pixels and the sub-scanning direction is 2 pixels is the second number. In the block color counting unit 229 that counts for each block to obtain the third array attribute number and the small window processing unit 225, when the pixel of interest is a color pixel and there is no black pixel around the color pixel An isolated color counting unit 227 that counts the number of windows for each second block to obtain a fourth array attribute number is provided.

主制御部103は、画素属性判別部102内の上述したそれぞれの計数部において計数された計数結果を用いて、所定の領域がモノクロ画像であるかカラー画像であるかを判定する。ここで本実施形態では、副走査方向64ライン分の領域を「1バンド」とし、かつ、主走査方向を8分割し、分割した領域を「1ブロック」として、そのブロックごとに判定を行うものとする。なお、本発明の適用は、判定バンド単位を副走査方向64ラインに限らず、64ラインよりも広い領域又は狭い領域であっても同様に可能である。また、主走査方向の分割数も8分割に限られず、8分割よりも多い分割数又は少ない分割数により判定を行ってもよい。   The main control unit 103 determines whether the predetermined area is a monochrome image or a color image using the counting results counted by the above-described respective counting units in the pixel attribute determination unit 102. Here, in this embodiment, the area for 64 lines in the sub-scanning direction is set to “1 band”, the main scanning direction is divided into 8 and the divided area is set to “1 block”, and determination is performed for each block. And The application of the present invention is not limited to the determination band unit of 64 lines in the sub-scanning direction, and can be similarly applied to an area wider or narrower than 64 lines. Further, the number of divisions in the main scanning direction is not limited to eight divisions, and the determination may be performed based on a division number larger or smaller than eight divisions.

図5は、主制御部103における1バンド単位の判定処理手順を説明するためのフローチャートである。まず、画素属性判別部102内の各計数部においてバンドを構成する全64ラインの1/2、すなわち32ライン分が計数されたタイミングで、主制御部103は、ブロックごとにそれらの計数値を読み取り、各計数部の値をリセットする(ステップS101)。すなわち、本実施形態では32ライン分が計数されたタイミングで各計数部が初期化される。ここで、記憶部104には、現在計数された32ラインの前32ライン分の計数値が記憶されている。なお、本実施の形態における各計数値の読み取りタイミングは、バンド構成の半分のライン数ごとに限定されるものではなく、それ以上又はそれ以下のライン数であってもよい。   FIG. 5 is a flowchart for explaining a determination processing procedure for each band in the main control unit 103. First, at the timing when 1/2 of all 64 lines constituting the band, that is, 32 lines, is counted in each counting unit in the pixel attribute determination unit 102, the main control unit 103 sets the count value for each block. Read and reset the value of each counter (step S101). That is, in this embodiment, each counting unit is initialized at the timing when 32 lines are counted. Here, the storage unit 104 stores count values for 32 lines preceding the currently counted 32 lines. In addition, the reading timing of each count value in the present embodiment is not limited to each half of the number of lines in the band configuration, and may be more or less than that.

次に、ブロックごとに記憶部104に記憶されている前32ライン分の計数値と、各計数部から読み取った現32ライン分の計数値とを加算することにより、64ライン分の黒、白及びカラー画素計数値を算出する(ステップS102)。なお、この加算演算の終了後、記憶部104はブロックごとに現32ライン分の計数値を記憶する。   Next, by adding the count value for the previous 32 lines stored in the storage unit 104 for each block and the count value for the current 32 lines read from each count unit, 64 lines of black, white The color pixel count value is calculated (step S102). After this addition operation is completed, the storage unit 104 stores the count values for the current 32 lines for each block.

次に、Vカラー計数値とエッジカラー計数値に基づいて、
(Vカラー率) = (Vカラー数)/(エッジカラー数) …(1)
の演算を行って、Vカラー率を求める(ステップS103)。このVカラー率が1に近いブロックは、文字領域であると考えられる。
Next, based on the V color count value and the edge color count value,
(V color ratio) = (number of V colors) / (number of edge colors) (1)
The V color rate is obtained by performing the above calculation (step S103). A block having a V color ratio close to 1 is considered to be a character area.

また、ステップS104においては、孤立カラーの計数値と黒画素の計数値に基づいて、
(カラー率) = (孤立カラー数)/(黒画素数) …(2)
の演算を行って、カラー率を求める(ステップS104)。このカラー率の大きいバンドには、広い領域のカラー画像が存在すると考えられる。
In step S104, based on the count value of the isolated color and the count value of the black pixel,
(Color rate) = (Number of isolated colors) / (Number of black pixels) (2)
The color ratio is obtained by performing the above calculation (step S104). It is considered that a wide area color image exists in the band having a large color rate.

すなわち、本実施の形態は、主制御部103が、黒画素判定部223によって黒画素と判定された画素を第2のブロックごとに計数して黒画素計数値を得ることを特徴とする。また、本実施の形態に係る画像処理装置は、主制御部103が、エッジカラー数とVカラー数との比率を用いて第1のパラメータを得、孤立カラー数と黒画素数との比率を用いて第2のパラメータを得ることを特徴とする。   In other words, the present embodiment is characterized in that the main control unit 103 obtains a black pixel count value by counting the pixels determined to be black pixels by the black pixel determination unit 223 for each second block. In the image processing apparatus according to the present embodiment, the main control unit 103 obtains the first parameter using the ratio between the number of edge colors and the number of V colors, and sets the ratio between the number of isolated colors and the number of black pixels. To obtain the second parameter.

主制御部103は、上述したように32ラインごとに各計数部のブロックごとの計数値に基づいて式(1)及び式(2)の演算を行うことによって、64ラインに対する判定要素を得る。そして、当該判定要素を用いて、以下のように、それぞれのブロックの属性判定を行う。   As described above, the main control unit 103 obtains a determination element for 64 lines by performing the calculations of Expression (1) and Expression (2) based on the count value for each block of each counting unit for every 32 lines. And using the said determination element, the attribute determination of each block is performed as follows.

まず、カラーブロック数が所定値CBHTHよりも大きいか否かが判定される(ステップS105)。その結果、カラーブロック数がCBHTHよりも大きい場合には、該当ブロックはカラー画像の領域であると判定する(ステップS110)。これは、該当ブロック内に広い領域に亘るベタのカラー画像があると考えられるためである。   First, it is determined whether or not the number of color blocks is larger than a predetermined value CBHTH (step S105). As a result, if the number of color blocks is larger than CBHTH, it is determined that the corresponding block is a color image area (step S110). This is because it is considered that there is a solid color image over a wide area in the block.

他方、カラーブロック数がCBHTHよりも大きくないと判定された場合には、孤立カラー数が所定値KOTHよりも大きいか否かを判定される(ステップS106)。そして、孤立カラー数が所定値KOTHよりも大きいと判定された場合も、カラー画像の領域であると判定する(ステップS110)。これは、当該ブロックが、黒点の少ない網点画像であると考えられるため、該当ブロックはカラー画像の領域であると判定する。   On the other hand, if it is determined that the number of color blocks is not greater than CBHTH, it is determined whether or not the number of isolated colors is greater than a predetermined value KOTH (step S106). When it is determined that the number of isolated colors is greater than the predetermined value KOTH, it is determined that the area is a color image (step S110). This is because the block is considered to be a halftone dot image with few black dots, and the block is determined to be a color image region.

他方、ステップS106で、孤立カラー数が所定値KOTHよりも大きくないと判定された場合は、カラーブロック数がCBLTHよりも大きいか否かが判定される。そして、カラーブロック数がCBLTHよりも大きいと判定された場合(ステップS107)において、Vカラー率が所定値VRTHよりも小さいと判定され(ステップS108)、かつカラー率が所定値CRTHよりも大きいと判定された場合には(ステップS109)、網点画像を検出したと考えられるため、該当ブロックはカラー画像の領域であると判定する(ステップS110)。   On the other hand, if it is determined in step S106 that the number of isolated colors is not greater than the predetermined value KOTH, it is determined whether or not the number of color blocks is greater than CBLTH. When it is determined that the number of color blocks is larger than CBLTH (step S107), it is determined that the V color rate is smaller than the predetermined value VRTH (step S108), and the color rate is larger than the predetermined value CRTH. If it is determined (step S109), it is considered that a halftone image has been detected, so that the corresponding block is determined to be a color image region (step S110).

なお、本実施の形態では、CBLTH<CBHTHとするが、これに限定されるものではない。   In the present embodiment, CBLTH <CBHTH is set, but the present invention is not limited to this.

他方、ステップS107で、カラーブロック数がCBLTHよりも大きくないと判定されるか、ステップS108で、Vカラー率が所定値VRTHよりも小さくないと判定されるか、又はS109で、カラー率が所定値CRTHよりも大きくないと判定された場合であって、Vカラー数がVTHよりも大きいと判定された場合には(ステップS112)、該当ブロックはカラー画像の領域であると判定する(ステップS110)。   On the other hand, in step S107, it is determined that the number of color blocks is not greater than CBLTH, in step S108, it is determined that the V color rate is not smaller than the predetermined value VRTH, or in S109, the color rate is predetermined. When it is determined that the value is not greater than the value CRTH and the number of V colors is determined to be greater than VTH (step S112), it is determined that the corresponding block is a color image region (step S110). ).

また、ステップS112で、Vカラー数がVTHよりも大きくないと判定された場合には、該当ブロックはモノクロ画像の領域であると判定する(S113)。すなわち、これまでのステップで属性が未判定であるブロックについては、カラーの罫線が検出されない場合、モノクロ画像の領域であると判定する。すなわち、本実施の形態は、主制御部103が、計数された計数値及び算出された第1のパラメータ(Vカラー率)及び第2のパラメータ(カラー率)のそれぞれについて所定の閾値と比較することによって、ブロックの画像属性を判定することを特徴とする。   If it is determined in step S112 that the number of V colors is not greater than VTH, it is determined that the corresponding block is a monochrome image region (S113). In other words, if a color ruled line is not detected for a block whose attribute has not been determined in the previous steps, it is determined that the block is a monochrome image region. That is, in the present embodiment, the main control unit 103 compares the counted value and the calculated first parameter (V color ratio) and second parameter (color ratio) with a predetermined threshold value. Thus, the image attribute of the block is determined.

以上のように、ブロック単位にカラー又はモノクロの属性判定を行い、その結果を用いてバンド単位(64ライン)でカラー又はモノクロの属性判定が行われる。   As described above, color or monochrome attribute determination is performed for each block, and color or monochrome attribute determination is performed for each band (64 lines) using the result.

次に、ブロック単位での属性判定結果を用いたバンド単位での属性判定方法について説明する。ステップS110で該当ブロックがカラー画像の領域であると判定された場合、現バンド内に未判定のブロックが存在していても、現バンドはカラーであると判定される(ステップS111)。つまり、現バンド内にカラーと判定されたブロックが1つでもある場合には、現バンドをカラーであると判定する。   Next, an attribute determination method in band units using attribute determination results in block units will be described. If it is determined in step S110 that the corresponding block is a color image region, the current band is determined to be in color even if an undetermined block exists in the current band (step S111). That is, if there is at least one block determined to be color in the current band, the current band is determined to be color.

なお、本実施形態ではカラーと判定されたブロックが1つでもあれば現バンドをカラーであると判定するが、本発明の適用はこれに限定されるものではない。すなわち、現バンド内のすべてのブロックに対してカラー又はモノクロの属性判定を行い、そのブロックごとの属性判定結果の組み合わせを用いて現バンドのカラー又はモノクロの属性判定を行うようにしてもよい。例えば、カラーと判定されたブロックが3つ以上存在する場合に、現バンドをカラー画像の領域であると判定してもよい。また、カラーと判定されたブロックが2つ連続した場合に、現バンドをカラーであると判定するようにしてもよい。   In this embodiment, if there is at least one block determined to be color, the current band is determined to be color, but the application of the present invention is not limited to this. That is, color or monochrome attribute determination may be performed for all blocks in the current band, and color or monochrome attribute determination for the current band may be performed using a combination of attribute determination results for each block. For example, when there are three or more blocks determined to be in color, the current band may be determined to be a color image region. Further, when two blocks determined to be color are consecutive, the current band may be determined to be color.

他方、ステップS113で該当ブロックがモノクロ画像であると判定され、かつ、ステップS114で現バンド内にカラー又はモノクロの属性が未判定であるブロックが存在すると判定された場合には、ステップS105に進み、未判定のブロックについて同様の属性判定がされる。   On the other hand, if it is determined in step S113 that the corresponding block is a monochrome image, and it is determined in step S114 that there is a block whose color or monochrome attribute has not been determined in the current band, the process proceeds to step S105. The same attribute determination is performed for the undetermined block.

また、ステップS114で現バンド内のすべてのブロックについて、カラー又はモノクロの属性判定が終了したと判定された場合には、すべてのブロックがモノクロ判定である場合に、現バンドをモノクロと判定する(ステップS115)。   If it is determined in step S114 that the color or monochrome attribute determination has been completed for all the blocks in the current band, the current band is determined to be monochrome if all the blocks are determined to be monochrome ( Step S115).

以上のように、本実施形態ではバンド(64ライン)単位でカラー又はモノクロの属性判定が行われる。すなわち、本実施の形態は、主制御部103が、ブロックについて判定された結果に応じて、第1のライン群の画像属性がモノクロか否かを判定し、最終判定手段として、第1のライン群及び第2のライン群の画像属性がいずれもモノクロと判定された場合、共通して含まれる第3のライン群の画像属性をモノクロと判定することを特徴とする。   As described above, in this embodiment, color or monochrome attribute determination is performed in units of bands (64 lines). That is, in the present embodiment, the main control unit 103 determines whether the image attribute of the first line group is monochrome according to the determination result for the block, and uses the first line as a final determination unit. When the image attributes of the group and the second line group are both determined to be monochrome, the image attribute of the third line group included in common is determined to be monochrome.

さらに、このバンド単位の判定結果を用いた最終判定処理を行うようにしてもよい。そこで、以下にこの最終判定処理について説明する。図6は、本実施形態における1/2バンド(32ライン)単位の最終属性判定処理の一例を説明するための図である。   Furthermore, a final determination process using the determination result for each band may be performed. Therefore, the final determination process will be described below. FIG. 6 is a diagram for explaining an example of final attribute determination processing in units of 1/2 band (32 lines) in the present embodiment.

本実施形態においては上述したように、主制御部103により32ラインごとに読み取られた各計数部の計数値と、式(1)と式(2)により生成された各演算結果とに基づいて、1バンド(64ライン分)の判定要素が算出され、算出された判定要素が、図5に示すブロックごとの判定処理に用いられることによって、1バンドごとにカラー又はモノクロの属性判定が行われる。   In the present embodiment, as described above, based on the count value of each counting unit read by the main control unit 103 every 32 lines and the calculation results generated by the equations (1) and (2). The determination elements for one band (for 64 lines) are calculated, and the calculated determination elements are used for the determination processing for each block shown in FIG. 5, whereby color or monochrome attribute determination is performed for each band. .

図6(a)は、原稿画像中において、各々32ラインで構成されるデータ領域B1〜B4を用いて64ラインのバンドを構成した例を示す。図6(a)において、領域B1と領域B2によって構成した64ラインデータ(バンドA)については、それぞれの領域について図5に示す判定処理によってカラー判定が行われている。同様に、領域B2と領域B3による64ラインデータ(バンドB)にはモノクロ判定が、領域B3と領域B4による64ラインデータ(バンドC)にもモノクロ判定が行われている場合について示す。   FIG. 6A shows an example in which a band of 64 lines is configured using data areas B1 to B4 each having 32 lines in a document image. In FIG. 6A, for 64-line data (band A) configured by the areas B1 and B2, color determination is performed for each area by the determination process shown in FIG. Similarly, a case where monochrome determination is performed for 64-line data (band B) by the regions B2 and B3 and monochrome determination is performed for 64-line data (band C) by the regions B3 and B4 is also shown.

以下、図6(a)に示すデータについて最終判定を行う例について説明する。本実施形態では、上述した64ラインごとの判定のみによって最終判定を行うものではなく、64ラインで構成される2つのバンドの判定結果を用いて、判定結果が重なる32ライン分の領域判定を行う。すなわち、バンドAの判定結果とバンドBの判定結果とに基づき、32ライン領域であるB2に対する最終判定がなされる。同様に、バンドBの判定結果とバンドCの判定結果に基づき、32ライン領域B3に対する最終判定がなされる。具体的には、最終判定を行う32ライン分のデータを含む前後64ライン構成の判定がいずれもモノクロ判定である場合にのみ、最終判定結果をモノクロとするようにする。   Hereinafter, an example in which the final determination is performed on the data illustrated in FIG. In the present embodiment, the final determination is not performed only by the determination for every 64 lines described above, but the region determination for 32 lines in which the determination results overlap is performed using the determination results of two bands configured by 64 lines. . That is, based on the determination result of the band A and the determination result of the band B, the final determination is performed on B2 that is the 32 line area. Similarly, based on the determination result of the band B and the determination result of the band C, the final determination for the 32-line region B3 is made. Specifically, the final determination result is set to monochrome only when the determination of the front and rear 64 lines including the data for 32 lines for final determination is monochrome determination.

図6(a)の例に対する最終判定結果を図6(b)に示す。この例においては、バンドAの判定結果がカラーであり、バンドBの判定結果がモノクロであるため、領域B2はカラーとして最終判定される。また、領域B3については、バンドB、バンドC共に判定結果がモノクロであるため、モノクロとして最終判定される。すなわち、本実施の形態は、第1のライン群と第2のライン群が、同一のライン数であることを特徴とする。また、本実施の形態は、第3のライン群が、第1のライン群及び第2のライン群の半分のライン数であることを特徴とする。   FIG. 6B shows the final determination result for the example of FIG. In this example, since the determination result of the band A is color and the determination result of the band B is monochrome, the region B2 is finally determined as color. In addition, regarding the region B3, since the determination result is monochrome for both the band B and the band C, the region B3 is finally determined as monochrome. In other words, the present embodiment is characterized in that the first line group and the second line group have the same number of lines. In addition, the present embodiment is characterized in that the third line group has half the number of lines as the first line group and the second line group.

なお、主制御部103より出力される判定結果信号としては、モノクロ画像であるかカラー画像であるかを示す信号であれば良いため、1ビットデータを出力させるものとする。具体的には、モノクロ画像である場合に「Hiレベル」を出力し、カラー画像である場合に「Lowレベル」を出力するように構成する。主制御部103より出力された判定結果信号は、画像処理部105により高画質処理に使用される。例えば、黒画素であると判定された画素についてはすなわち黒文字領域と判定し、文字領域に好適な画像処理が施される。一方、黒画素でないと判定された画素については、例えば写真領域に好適な画像処理が施される。すなわち、本実施の形態は、主制御部103により判定された第3のライン群の画像属性に応じた画像処理を当該第3のライン群に対して施す画像処理部105をさらに備えたことを特徴とする。   Since the determination result signal output from the main control unit 103 may be a signal indicating whether it is a monochrome image or a color image, 1-bit data is output. Specifically, “Hi level” is output when the image is a monochrome image, and “Low level” is output when the image is a color image. The determination result signal output from the main control unit 103 is used by the image processing unit 105 for high image quality processing. For example, a pixel determined to be a black pixel is determined as a black character region, and image processing suitable for the character region is performed. On the other hand, for a pixel determined not to be a black pixel, for example, image processing suitable for a photographic area is performed. That is, the present embodiment further includes an image processing unit 105 that performs image processing on the third line group according to the image attribute of the third line group determined by the main control unit 103. Features.

なお、本実施の形態では、バンドごとの属性判定が主制御部103におけるソフトウェア動作として行われる例について説明したが、該バンド判定をハードウェアによって実現するように構成してもよい。   In the present embodiment, the example in which the attribute determination for each band is performed as a software operation in the main control unit 103 has been described. However, the band determination may be implemented by hardware.

また、本実施形態において属性判定に用いられる各閾値は固定でもよいが、例えば装置の処理動作モードに応じて任意に変更可能であるようにすることもできる。   In addition, each threshold value used for attribute determination in the present embodiment may be fixed, but may be arbitrarily changed according to the processing operation mode of the apparatus, for example.

以上説明したように本実施形態によれば、簡易な構成で、CCDおよびCISのリニアリティの補正を行うことができ、画素属性判別部の判定精度を向上させることができる。判定精度が向上することで、カラー画像と判定されていたライン群がモノクロ画像であると判定されるため、カラーヘッドよりも長尺なモノクロヘッドで印字することができるため、印字スピードを向上させることができる。   As described above, according to this embodiment, the linearity of CCD and CIS can be corrected with a simple configuration, and the determination accuracy of the pixel attribute determination unit can be improved. By improving the determination accuracy, it is determined that the line group that has been determined as a color image is a monochrome image, so printing can be performed with a monochrome head that is longer than the color head, thus improving the printing speed. be able to.

更にはプリスキャン時において、原稿の下地をあらかじめ取り込み、取り込んだ輝度データR、G、Bの白側のデータのバランスを取り(ホワイトバランス)、ホワイトバランスをとった輝度データを白と判定することで、本来、白であるべきエリアについての色かぶりを防止することができる。これによって白レベルを確実に判定することができることから、白の領域を多くすることができる。よって印字の際に印刷されていた印字エリアのデータが、白となることから、印刷時において白スキップできることから、記録ヘッドのスキャン数を削減できることから印字スピードを大幅に向上させることができる。   Further, at the time of pre-scanning, the background of the original is captured in advance, the white data of the captured luminance data R, G, B is balanced (white balance), and the luminance data with white balance is determined to be white. Thus, it is possible to prevent color cast for an area that should be white. As a result, the white level can be reliably determined, so that the white area can be increased. Therefore, since the print area data printed at the time of printing becomes white, white can be skipped at the time of printing, and the number of scans of the recording head can be reduced, so that the printing speed can be greatly improved.

また、モノクロ画像と判定された領域についてはカラーデータとして扱わないことと、白データが多くなることから、後段の画像処理部等に送るデータ量を少なくすることができ、記録速度を向上させることができる。   In addition, since the area determined to be a monochrome image is not handled as color data and the amount of white data increases, the amount of data sent to the subsequent image processing unit or the like can be reduced, and the recording speed can be improved. Can do.

上述したように、本発明に係る画像処理装置は、カラー多値画像の画素ごとの第1の輝度信号を入力する原稿読取部101と、前記第1の輝度信号に対して係数をそれぞれの輝度信号に対して個別に設定し、個々に設定された係数をそれぞれの輝度信号に対して乗算することで所定の輝度レベル値となる第2の輝度信号を得る係数乗算手段106と、前記第2の輝度信号に基づいて、注目画素の色属性を判定する画素属性判別部102と、判定された色属性を、注目画素を含む所定領域内の画素分記憶し、主制御部103において、カラー多値画像における所定の64ラインからなるバンド(第1のライン群)を主走査方向に8分割して得られる第1のブロック内の32ライン分について、記憶された色属性の配列に従って判定される配列属性を計数し、判定された色属性を、32ライン分について計数し、計数された計数値に基づいて、当該ブロックについて、その画像特徴を示すパラメータを算出し、計数された計数値及び算出されたパラメータに応じて、ブロックの画像属性を判定し、判定結果に基づいて、前記バンドの画像属性を判定することを特徴とする。   As described above, the image processing apparatus according to the present invention includes a document reading unit 101 that inputs a first luminance signal for each pixel of a color multi-valued image, and a coefficient for each luminance of the first luminance signal. Coefficient multiplying means 106 which obtains a second luminance signal having a predetermined luminance level value by individually setting the signal and multiplying each luminance signal by a coefficient set individually; A pixel attribute determination unit 102 that determines the color attribute of the target pixel based on the luminance signal of the target pixel, and stores the determined color attribute for pixels within a predetermined area including the target pixel. A determination is made according to the stored color attribute arrangement for 32 lines in the first block obtained by dividing a band (first line group) of predetermined 64 lines in the value image into eight in the main scanning direction. Array genus And the determined color attribute is counted for 32 lines. Based on the counted value, a parameter indicating the image feature is calculated for the block, and the counted value and the calculated value are calculated. The image attribute of the block is determined according to the parameter, and the image attribute of the band is determined based on the determination result.

また、本実施の形態に係る画像処理装置の主制御部103は、第1のライン群についての判定結果と所定の1/2バンド(第2のライン群)についての判定結果に基づいて、第1のライン群と第2のライン群とに共通して含まれる第3のライン群の画像属性を判定することを特徴とする。   In addition, the main control unit 103 of the image processing apparatus according to the present embodiment uses the determination result for the first line group and the determination result for the predetermined ½ band (second line group). The image attribute of the third line group included in common to the one line group and the second line group is determined.

なお、本実施の形態は、複数の機器(例えば、ホストコンピュータ、インタフェイス機器、リーダ、プリンタ等)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置等)に適用してもよい。   Note that the present embodiment can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but an apparatus composed of a single device (for example, a copier, a facsimile) It may be applied to a device etc.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(又は記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(又はCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)等が実際の処理の一部又は全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that implements the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or CPU) of the system or apparatus. Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) or the like running on the computer based on an instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードや、コンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPU等が実際の処理の一部又は全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program code read from the storage medium is written to a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.

本発明の一実施形態に係る画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention. 図1の画素属性判別部102の詳細な構成を示すブロック図である。FIG. 2 is a block diagram illustrating a detailed configuration of a pixel attribute determination unit 102 in FIG. 1. 小ウインドウ処理部225における処理用のウインドウ構成を示す図である。It is a figure which shows the window structure for the process in the small window process part 225. 大ウインドウ処理部226における処理用のウインドウ構成を示す図である。It is a figure which shows the window structure for a process in the large window process part. 主制御部103における1バンド単位の判定処理手順を説明するためのフローチャートである。4 is a flowchart for explaining a determination processing procedure for each band in a main control unit 103; 同実施形態における1/2バンド単位の最終属性判定処理の一例を説明するための図である。It is a figure for demonstrating an example of the final attribute determination process of a 1/2 band unit in the embodiment. リニアリティのズレを示す図である。It is a figure which shows the gap | deviation of a linearity.

符号の説明Explanation of symbols

101 原稿読取部
102 画素属性判別部
103 主制御部
104 記憶部
105 画像処理部
106 係数乗算部
101 Document Reading Unit 102 Pixel Attribute Determination Unit 103 Main Control Unit 104 Storage Unit 105 Image Processing Unit 106 Coefficient Multiplying Unit

Claims (26)

カラー多値画像の画素ごとの第1の輝度信号を入力する入力手段と、
該入力手段により入力された第1の輝度信号のリニアリティのずれを補正して第2の輝度信号を得る補正手段と、
該補正手段による補正により得られた第2の輝度信号に基づいて画素ごとに色属性を判定する色属性判定手段と、
該色属性判定手段により判定された色属性を、注目画素を含む所定領域内の画素分記憶する記憶手段と、
前記カラー多値画像を、副走査方向に、所定数のラインよりなる第1のライン群に分割し、該第1のライン群をさらに主走査方向に複数個のブロックに分割し、各ブロックに属する第1のライン群から所定数のラインよりなる第2のライン群を抽出し、前記記憶手段内における前記色属性の配列に従って配列属性を判定し、各配列属性の数を計数する第1の計数手段と、
前記色属性判定手段により判定された前記色属性を有する画素数を、前記ブロックについて計数する第2の計数手段と、
前記第1及び第2の計数手段により係数された計数値に基づいて、前記第1のブロックについて、その画像特徴を示すパラメータを算出する算出手段と、
前記第1及び第2の計数手段による計数値と、前記算出手段で算出されたパラメータとに応じて、前記第1のブロックの画像属性を判定するブロック属性判定手段と、
前記ブロック属性判定手段による判定結果に基づいて、前記第1のライン群の画像属性を判定するライン属性判定手段と
を備えたことを特徴とする画像処理装置。
Input means for inputting a first luminance signal for each pixel of the color multivalued image;
Correction means for correcting a linearity shift of the first luminance signal input by the input means to obtain a second luminance signal;
Color attribute determination means for determining a color attribute for each pixel based on the second luminance signal obtained by the correction by the correction means;
Storage means for storing the color attributes determined by the color attribute determination means for pixels in a predetermined area including the target pixel;
The color multi-value image is divided into a first line group composed of a predetermined number of lines in the sub-scanning direction, and the first line group is further divided into a plurality of blocks in the main scanning direction. A second line group consisting of a predetermined number of lines is extracted from the first line group to which it belongs, the array attribute is determined according to the array of color attributes in the storage means, and the number of each array attribute is counted Counting means;
Second counting means for counting the number of pixels having the color attribute determined by the color attribute determining means for the block;
Calculation means for calculating a parameter indicating an image feature of the first block based on the count values obtained by the first and second counting means;
A block attribute determining unit that determines an image attribute of the first block according to the count value obtained by the first and second counting units and the parameter calculated by the calculating unit;
An image processing apparatus comprising: a line attribute determining unit that determines an image attribute of the first line group based on a determination result by the block attribute determining unit.
請求項1において、前記リニアリティ補正手段は、前記第1の輝度信号に対して係数をそれぞれの輝度信号に対して個別に設定し、個々に設定された係数をそれぞれの輝度信号に対して乗算することにより、所定の輝度レベル値となる第2の輝度信号を得る係数乗算手段を有することを特徴とする画像処理装置。   2. The linearity correction unit according to claim 1, wherein the linearity correction means sets a coefficient for each luminance signal individually for the first luminance signal, and multiplies each luminance signal by the individually set coefficient. Thus, an image processing apparatus comprising coefficient multiplication means for obtaining a second luminance signal having a predetermined luminance level value. 請求項1又は2において、前記ライン属性判定手段による前記第1のライン群についての判定結果と、所定の第2のライン群についての判定結果とに基づいて、前記第1のライン群と前記第2のライン群とに共通して含まれる第3のライン群の画像属性を判定する最終判定手段をさらに備えたことを特徴とする画像処理装置。   3. The first line group and the first line group according to claim 1 or 2, based on a determination result for the first line group by the line attribute determination unit and a determination result for a predetermined second line group. An image processing apparatus, further comprising final determination means for determining an image attribute of a third line group included in common with the two line groups. 請求項1ないし3のいずれかにおいて、前記色属性判定手段は、
前記画素が白画素であるか否かを判定する白画素判定手段と、
前記画素が黒画素であるか否かを判定する黒画素判定手段と、
前記画素がカラー画素であるか否かを判定するカラー画素判定手段と
を備えたことを特徴とする画像処理装置。
The color attribute determination means according to any one of claims 1 to 3,
White pixel determination means for determining whether or not the pixel is a white pixel;
Black pixel determining means for determining whether or not the pixel is a black pixel;
An image processing apparatus comprising: a color pixel determination unit that determines whether or not the pixel is a color pixel.
請求項4において、前記白画素判定手段は、前記第2の輝度信号を所定の閾値と比較することによって、前記画素が白画素であるか否かを判定することを特徴とする画像処理装置。   The image processing apparatus according to claim 4, wherein the white pixel determination unit determines whether or not the pixel is a white pixel by comparing the second luminance signal with a predetermined threshold value. 請求項4において、前記黒画素判定手段は、前記第2の輝度信号と所定の閾値との比較結果及び前記第2の輝度信号の色成分間における差分値と所定の閾値との比較結果に基づいて、前記画素が黒画素であるか否かを判定することを特徴とする画像処理装置。   5. The black pixel determination unit according to claim 4, wherein the black pixel determination means is based on a comparison result between the second luminance signal and a predetermined threshold value, and a comparison value between a difference value between color components of the second luminance signal and a predetermined threshold value. And determining whether or not the pixel is a black pixel. 請求項4において、前記カラー画素判定手段は、
当該画素について、前記白画素判定手段により白画素でないと判定され、かつ前記黒画素判定手段により黒画素でないと判定された場合に、当該画素をカラー画素であると判定し、
前記カラー画素を含むラインの副走査方向の前ラインにおける対応画素が、前記色属性判定手段によってカラー画素であると判定されている場合に、注目画素の色属性を連続カラー画素と判定し、前記カラー画素を含むラインの副走査方向の前ラインにおける対応画素が、前記色属性判定手段によってカラー画素であると判定されていない場合に、該注目画素の色属性を単体カラー画素と判定する
ことを特徴とする画像処理装置。
The color pixel determination means according to claim 4,
If the pixel is determined not to be a white pixel by the white pixel determination unit and is determined not to be a black pixel by the black pixel determination unit, the pixel is determined to be a color pixel;
When the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is determined to be a color pixel by the color attribute determination unit, the color attribute of the target pixel is determined as a continuous color pixel, Determining that the color attribute of the target pixel is a single color pixel when the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is not determined to be a color pixel by the color attribute determination unit A featured image processing apparatus.
請求項7において、前記記憶手段は、
前記カラー多値画像における所定のラインについて、画素ごとの色属性を保持するライン保持手段と、
前記ライン保持手段に保持された前記ラインについての画素ごとの色属性と、該ラインの副走査方向の次ラインについての画素ごとの色属性をウインドウ形式で記憶するウインドウ記憶手段と
を備えたことを特徴とする画像処理装置。
The storage means according to claim 7,
Line holding means for holding color attributes for each pixel for a predetermined line in the color multi-valued image;
Window storage means for storing, in a window format, a color attribute for each pixel of the line held by the line holding means and a color attribute for each pixel of the next line in the sub-scanning direction of the line; A featured image processing apparatus.
請求項8において、前記ウインドウ記憶手段は、
主走査方向がM(Mは正整数)画素、副走査方向が2画素によって構成される第1のウインドウ形式で前記画素ごとの色属性を記憶する第1のウインドウ記憶手段と、
主走査方向がN(Nは正整数)画素、副走査方向が2画素によって構成される第2のウインドウ形式で前記画素ごとの色属性を記憶する第2のウインドウ記憶手段と
を備えたことを特徴とする画像処理装置。
The window storage means according to claim 8,
First window storage means for storing color attributes for each pixel in a first window format in which the main scanning direction is M (M is a positive integer) pixels and the sub-scanning direction is two pixels;
Second window storage means for storing color attributes for each pixel in a second window format in which the main scanning direction is N (N is a positive integer) pixels and the sub-scanning direction is two pixels. A featured image processing apparatus.
請求項9において、前記第1の計数手段は、
前記第1のウインドウ記憶手段において、注目画素がカラー画素であって、前記注目画素に対して少なくとも1つの黒画素が隣接する場合のウインドウ数を前記第2のブロックごとに計数して第1の配列属性数を得る第1の配列属性計数手段と、
前記第2のウインドウ記憶手段において、両端4画素を除くウインドウ領域でカラー画素が縦方向に連続し、かつ、両端4画素を含めたウインドウ領域内に黒画素が存在しない場合のウインドウ数を前記第2のブロックごとに計数して第2の配列属性数を得る第2の配列属性計数手段と、
前記第2のウインドウ記憶手段において、主走査方向がI画素、副走査方向が2画素のウインドウ領域内に前記連続カラー画素が存在する場合のウインドウ数を前記第2のブロックごとに計数して第3の配列属性数を得る第3の配列属性計数手段と、
前記第1のウインドウ記憶手段において、前記注目画素がカラー画素であって、該カラー画素の周囲に黒画素が存在しない場合のウインドウ数を前記第2のブロックごとに計数して第4の配列属性数を得る第4の配列属性計数手段と
を備えたことを特徴とする画像処理装置。
The first counting means according to claim 9,
In the first window storage means, the number of windows when the pixel of interest is a color pixel and at least one black pixel is adjacent to the pixel of interest is counted for each second block. First sequence attribute counting means for obtaining the number of sequence attributes;
In the second window storage means, the number of windows when the color pixels are continuous in the vertical direction in the window area excluding the four pixels at both ends and there are no black pixels in the window area including the four pixels at both ends is the number of windows. Second sequence attribute counting means for counting every two blocks to obtain a second sequence attribute number;
In the second window storage means, the number of windows when the continuous color pixel exists in a window region having a main scanning direction of I pixels and a sub scanning direction of 2 pixels is counted for each second block. Third sequence attribute counting means for obtaining a sequence attribute number of 3,
In the first window storage means, the number of windows when the target pixel is a color pixel and no black pixel exists around the color pixel is counted for each second block, and a fourth array attribute is obtained. An image processing apparatus comprising: fourth array attribute counting means for obtaining a number.
請求項10において、前記第2の計数手段は、前記黒画素判定手段によって黒画素と判定された画素を前記第2のブロックごとに計数して黒画素計数値を得る第5の配列属性計数手段を備えたことを特徴とする画像処理装置。   11. The fifth array attribute counting unit according to claim 10, wherein the second counting unit counts pixels determined to be black pixels by the black pixel determining unit for each of the second blocks to obtain a black pixel count value. An image processing apparatus comprising: 請求項10において、前記算出手段は、
前記第1の配列属性数と前記第2の配列属性数との比率を用いて第1のパラメータを得る第1の演算手段と、
前記第4の配列属性数と前記黒画素計数値との比率を用いて第2のパラメータを得る第2の演算手段と
を備えたことを特徴とする画像処理装置。
The calculation means according to claim 10,
First computing means for obtaining a first parameter using a ratio between the first array attribute number and the second array attribute number;
An image processing apparatus comprising: a second computing unit that obtains a second parameter using a ratio between the fourth array attribute number and the black pixel count value.
請求項1において、前記ブロック属性判定手段は、前記第1及び第2の計数手段による計数値及び前記算出手段で算出された前記第1のパラメータ及び前記第2のパラメータのそれぞれについて所定の閾値と比較することによって、前記第1のブロックの画像属性を判定することを特徴とする画像処理装置。   2. The block attribute determination unit according to claim 1, wherein the block attribute determination unit includes a predetermined threshold value for each of the count values obtained by the first and second counting units and the first parameter and the second parameter calculated by the calculation unit. An image processing apparatus, wherein the image attribute of the first block is determined by comparison. 請求項3において、前記ライン属性判定手段は、前記ブロック属性判定手段によって判定された結果に応じて、前記第1のライン群の画像属性がモノクロか否かを判定し、
前記最終判定手段は、前記第1のライン群及び第2のライン群の画像属性がいずれもモノクロと判定された場合、共通して含まれる前記第3のライン群の画像属性をモノクロと判定することを特徴とする画像処理装置。
The line attribute determining unit according to claim 3, wherein the line attribute determining unit determines whether or not the image attribute of the first line group is monochrome according to the result determined by the block attribute determining unit.
The final determination means determines that the image attribute of the third line group included in common is monochrome when the image attributes of the first line group and the second line group are both determined to be monochrome. An image processing apparatus.
請求項3において、前記第1のライン群と前記第2のライン群は、同一のライン数であることを特徴とする画像処理装置。   The image processing apparatus according to claim 3, wherein the first line group and the second line group have the same number of lines. 請求項15において、前記第3のライン群は、前記第1のライン群及び前記第2のライン群の半分のライン数であることを特徴とする画像処理装置。   16. The image processing apparatus according to claim 15, wherein the third line group is half the number of lines of the first line group and the second line group. 請求項3において、前記最終判定手段によって判定された前記第3のライン群の画像属性に応じた画像処理を該第3のライン群に対して施す画像処理手段をさらに備えたことを特徴とする画像処理装置。   4. The image processing device according to claim 3, further comprising image processing means for performing image processing on the third line group according to the image attribute of the third line group determined by the final determination means. Image processing device. 請求項4において、所定ライン単位で前記カラー多値画像の記録を行う画像記録手段をさらに備え、該所定ライン単位は、前記第3のライン群と同一のライン数であることを特徴とする画像処理装置。   5. The image according to claim 4, further comprising image recording means for recording the color multi-valued image in a predetermined line unit, wherein the predetermined line unit has the same number of lines as the third line group. Processing equipment. 請求項18において、前記画像記録手段は、インクジェット方式によるモノクロヘッド及びカラーヘッドを備えており、前記モノクロヘッドは、前記カラーヘッドよりも長尺であることを特徴とする画像処理装置。   19. The image processing apparatus according to claim 18, wherein the image recording unit includes an inkjet monochrome head and a color head, and the monochrome head is longer than the color head. カラー多値画像の画素ごとの第1の輝度信号のリニアリティのずれを補正して第2の輝度信号を得る補正ステップと、
該補正ステップによる補正により得られた第2の輝度信号に基づいて画素ごとに色属性を判定する色属性判定ステップと、
該色属性判定ステップにより判定された前記色属性を、注目画素を含む所定領域内の画素分を所定の記憶装置に記憶する記憶ステップと、
前記カラー多値画像を、副走査方向に、所定数のラインよりなる第1のライン群に分割し、該第1のライン群をさらに主走査方向に複数個のブロックに分割し、各ブロックに属する第1のライン群から所定数のラインよりなる第2のライン群を抽出し、前記記憶手段内における前記色属性の配列に従って配列属性を判定し、各配列属性の数を計数する第1の計数ステップと、
前記色属性判定ステップにより判定された前記色属性を有する画素数を、前記ブロックについて計数する第2の計数ステップと、
前記第1及び第2の計数ステップにより係数された計数値に基づいて、前記第1のブロックについて、その画像特徴を示すパラメータを算出する算出ステップと、
前記第1及び第2の計数ステップにより係数された計数値と、前記算出ステップで算出されたパラメータとに応じて、前記第1のブロックの画像属性を判定するブロック属性判定ステップと、
前記ブロック属性判定ステップによる判定結果に基づいて、前記第1のライン群の画像属性を判定するライン属性判定ステップと
を有することを特徴とする画像処理方法。
A correction step of correcting a linearity shift of the first luminance signal for each pixel of the color multi-valued image to obtain a second luminance signal;
A color attribute determination step for determining a color attribute for each pixel based on the second luminance signal obtained by the correction in the correction step;
Storing the color attribute determined in the color attribute determination step in a predetermined storage device for pixels in a predetermined area including the target pixel;
The color multi-value image is divided into a first line group composed of a predetermined number of lines in the sub-scanning direction, and the first line group is further divided into a plurality of blocks in the main scanning direction. A second line group consisting of a predetermined number of lines is extracted from the first line group to which it belongs, the array attribute is determined according to the array of color attributes in the storage means, and the number of each array attribute is counted Counting step;
A second counting step of counting the number of pixels having the color attribute determined in the color attribute determining step for the block;
A calculation step of calculating a parameter indicating an image characteristic of the first block based on the count value obtained by the first and second counting steps;
A block attribute determination step of determining an image attribute of the first block according to the count value calculated by the first and second counting steps and the parameter calculated in the calculation step;
A line attribute determination step for determining an image attribute of the first line group based on a determination result obtained by the block attribute determination step.
請求項20において、前記リニアリティ補正ステップは、前記第1の輝度信号に対して係数をそれぞれの輝度信号に対して個別に設定し、個々に設定された係数をそれぞれの輝度信号に対して乗算することにより、所定の輝度レベル値となる第2の輝度信号を得る係数乗算ステップを有することを特徴とする画像処理方法。   21. The linearity correction step according to claim 20, wherein the linearity correction step sets a coefficient for each luminance signal individually for the first luminance signal, and multiplies each luminance signal by the individually set coefficient. An image processing method comprising a coefficient multiplying step for obtaining a second luminance signal having a predetermined luminance level value. 請求項20又は21において、前記ライン属性判定ステップによる前記第1のライン群についての判定結果と、所定の第2のライン群についての判定結果とに基づいて、前記第1のライン群と前記第2のライン群とに共通して含まれる第3のライン群の画像属性を判定する最終判定ステップをさらに有することを特徴とする画像処理方法。   23. The first line group and the first line group according to claim 20 or 21, based on a determination result for the first line group in the line attribute determination step and a determination result for a predetermined second line group. An image processing method further comprising a final determination step of determining an image attribute of a third line group included in common with the two line groups. 請求項20ないし22において、前記色属性判定ステップは、
前記画素が白画素であるか否かを判定する白画素判定ステップと、
前記画素が黒画素であるか否かを判定する黒画素判定ステップと、
前記画素がカラー画素であるか否かを判定するカラー画素判定ステップと
を有することを特徴とする画像処理方法。
23. The color attribute determination step according to claim 20, wherein:
A white pixel determination step of determining whether or not the pixel is a white pixel;
A black pixel determination step for determining whether or not the pixel is a black pixel;
And a color pixel determination step of determining whether or not the pixel is a color pixel.
請求項22又は23において、前記カラー画素判定ステップは、
前記白画素判定ステップ及び前記黒画素判定ステップのいずれにおいても否と判定された場合に前記画素をカラー画素であると判定し、
該カラー画素を含むラインの副走査方向の前ラインにおける対応画素は、前記色属性判定ステップによってカラー画素であると判定されている場合に、注目画素の色属性を連続カラー画素と判定し、前記カラー画素を含むラインの副走査方向の前ラインにおける対応画素は、前記色属性判定ステップによってカラー画素であると判定されていない場合に、該注目画素の色属性を単体カラー画素と判定する
ことを特徴とする画像処理方法。
The color pixel determination step according to claim 22 or 23,
When it is determined as NO in both the white pixel determination step and the black pixel determination step, the pixel is determined to be a color pixel;
If the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is determined to be a color pixel by the color attribute determination step, the color attribute of the target pixel is determined to be a continuous color pixel, When the corresponding pixel in the previous line in the sub-scanning direction of the line including the color pixel is not determined to be a color pixel by the color attribute determination step, the color attribute of the target pixel is determined to be a single color pixel. A featured image processing method.
コンピュータに、
カラー多値画像の画素ごとの第1の輝度信号に基づいて前記第1の輝度信号に対して係数をそれぞれの輝度信号に対して個別に設定し、個々に設定された係数をそれぞれの輝度信号に対して乗算することで所定の輝度レベル値となる第2の輝度信号を得る係数乗算手順と、
前記第2の輝度信号に基づいて前記画素の色属性を判定する色属性判定手順と、
該色属性判定手順により判定された前記色属性を、注目画素を含む所定領域内の画素分を所定の記憶装置に記憶する記憶手順と、
前記カラー多値画像における所定の第1のライン群を主走査方向に分割して得られる第1のブロック内の所定ライン数の第2のブロックについて、前記記憶装置内における前記色属性の配列に従って判定される配列属性を計数する第1の計数手順と、
前記色属性判定手順により判定された前記色属性を、前記第2のブロックについて計数する第2の計数手順と、
前記第1及び第2の計数手順による計数値に基づいて、前記第1のブロックについて、その画像特徴を示すパラメータを算出する算出手順と、
前記第1及び第2の計数手段による計数値及び前記算出手順で算出されたパラメータに応じて、前記第1のブロックの画像属性を判定するブロック属性判定手順と、
前記ブロック属性判定手順による判定結果に基づいて、前記第1のライン群の画像属性を判定するライン属性判定手順と、
前記ライン属性判定手順による前記第1のライン群についての判定結果と所定の第2のライン群についての判定結果に基づいて、前記第1のライン群と前記第2のライン群とに共通して含まれる第3のライン群の画像属性を判定する最終判定手順と
を実行させるためのコンピュータプログラム。
On the computer,
Based on the first luminance signal for each pixel of the color multi-valued image, a coefficient is individually set for each luminance signal with respect to the first luminance signal, and the individually set coefficient is set for each luminance signal. A coefficient multiplication procedure for obtaining a second luminance signal that is a predetermined luminance level value by multiplying
A color attribute determination procedure for determining a color attribute of the pixel based on the second luminance signal;
A storage procedure for storing the color attributes determined by the color attribute determination procedure in a predetermined storage device for pixels in a predetermined area including the target pixel;
For a second block having a predetermined number of lines in the first block obtained by dividing a predetermined first line group in the color multi-valued image in the main scanning direction, according to the arrangement of the color attributes in the storage device. A first counting procedure for counting the sequence attributes to be determined;
A second counting procedure for counting the color attribute determined by the color attribute determining procedure for the second block;
A calculation procedure for calculating a parameter indicating an image feature of the first block based on the count values obtained by the first and second counting procedures;
A block attribute determination procedure for determining an image attribute of the first block according to the count value by the first and second counting means and the parameter calculated in the calculation procedure;
A line attribute determination procedure for determining an image attribute of the first line group based on a determination result by the block attribute determination procedure;
Common to the first line group and the second line group based on the determination result for the first line group and the determination result for the predetermined second line group by the line attribute determination procedure. The computer program for performing the final determination procedure which determines the image attribute of the 3rd line group contained.
請求項25に記載のコンピュータプログラムを記録したコンピュータ読み取り可能な記録媒体。
The computer-readable recording medium which recorded the computer program of Claim 25.
JP2004282290A 2004-09-28 2004-09-28 Image processing apparatus and method Pending JP2006100997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004282290A JP2006100997A (en) 2004-09-28 2004-09-28 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004282290A JP2006100997A (en) 2004-09-28 2004-09-28 Image processing apparatus and method

Publications (1)

Publication Number Publication Date
JP2006100997A true JP2006100997A (en) 2006-04-13

Family

ID=36240425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004282290A Pending JP2006100997A (en) 2004-09-28 2004-09-28 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2006100997A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010253844A (en) * 2009-04-27 2010-11-11 Ricoh Co Ltd Image processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010253844A (en) * 2009-04-27 2010-11-11 Ricoh Co Ltd Image processing device

Similar Documents

Publication Publication Date Title
US8237991B2 (en) Image processing apparatus, image processing method, and program
US8040569B2 (en) Image processing apparatus and method for contrast processing and intermediate color removal
JP4728695B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
US8437045B2 (en) Bitmapped based trapping methods, apparatus and system by modifying non-black halftone pixel bitmap plane using estimated continuous tone value
JP4078132B2 (en) Image processing apparatus and method
JP3762267B2 (en) Image processing apparatus and method
KR101116682B1 (en) Image forming apparatus and control method thereof
US20060285167A1 (en) Image processing method and a recording medium storing image processing program
US7315400B2 (en) Image processing apparatus and image processing method
US20120236337A1 (en) Image processing apparatus
EP0892551B1 (en) Image processing device
JP2010119006A (en) Image processing apparatus,and image processing method
JP2006100997A (en) Image processing apparatus and method
US6819453B1 (en) Image processing apparatus
US8682070B2 (en) Method to restore edges in rasterized images
JP5682313B2 (en) Image processing apparatus and image processing method
US8289573B2 (en) Method for reducing registration defects in color printing
JP7077925B2 (en) Image processing equipment, image processing methods, and programs
US10277781B2 (en) Image processing apparatus, image forming apparatus, and non-transitory computer readable medium
JP2008092323A (en) Image processing equipment, and image reading apparatus and image forming apparatus equipped with the same
US20120121201A1 (en) Image processing apparatus and image processing method
JP2015149545A (en) Image processing apparatus, control method of the same, and program
JP2009105808A (en) Image processing apparatus, image processing method, program for executing image processing method, and storage medium
JP2002077646A (en) Apparatus and method of image processing
JP2003198841A (en) Image forming method and image forming apparatus