JP2009301090A - Image processor and image processing program - Google Patents

Image processor and image processing program Download PDF

Info

Publication number
JP2009301090A
JP2009301090A JP2008151548A JP2008151548A JP2009301090A JP 2009301090 A JP2009301090 A JP 2009301090A JP 2008151548 A JP2008151548 A JP 2008151548A JP 2008151548 A JP2008151548 A JP 2008151548A JP 2009301090 A JP2009301090 A JP 2009301090A
Authority
JP
Japan
Prior art keywords
image
value
area
target image
pixel values
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.)
Granted
Application number
JP2008151548A
Other languages
Japanese (ja)
Other versions
JP5151708B2 (en
JP2009301090A5 (en
Inventor
Koichi Fujii
晃一 藤井
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2008151548A priority Critical patent/JP5151708B2/en
Publication of JP2009301090A publication Critical patent/JP2009301090A/en
Publication of JP2009301090A5 publication Critical patent/JP2009301090A5/ja
Application granted granted Critical
Publication of JP5151708B2 publication Critical patent/JP5151708B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To satisfactorily determine the type of an image by using the differential value of the frequency distribution of the pixel value of an object image. <P>SOLUTION: An image processor 10 includes an image acceptance part 11 for accepting the object image and a type determination part 12 for determining the type of the object image based on the differential value of the frequency distribution of the pixel value of the object image. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像処理装置および画像処理プログラムに関する。   The present invention relates to an image processing apparatus and an image processing program.

画像を処理する技術として、様々な技術が提案されている(例えば特許文献1〜3を参照)。   Various techniques have been proposed as an image processing technique (see, for example, Patent Documents 1 to 3).

特許文献1には、カラー画像の特徴を識別する方法として、カラー画像を表現する三原色値を入力し、入力された値に基づいて閾値2値化範囲を計算し、当該閾値2値化範囲に基づいて、入力された値を2値化し、画像中の色領域を識別し、当該色領域を取り囲むフレームを定義し、色領域に対応する入力三原色値に基づいて、第2の閾値2値化範囲を計算し、当該第2の閾値2値化範囲に基づいて、色領域に対応する入力三原色値を2値化するものが記載されている。   In Patent Document 1, as a method for identifying the characteristics of a color image, three primary color values representing a color image are input, a threshold binarization range is calculated based on the input value, and the threshold binarization range is included in the threshold binarization range. And binarizing the input value, identifying a color area in the image, defining a frame surrounding the color area, and binarizing a second threshold based on the input three primary color values corresponding to the color area A description is given of calculating a range and binarizing an input three primary color value corresponding to a color region based on the second threshold binarization range.

特許文献2には、処理対象となるカラー画像の色数に応じて、2つの画像処理を使い分ける画像処理装置が記載されている。具体的には、色数の少ないカラー画像に対しては、色パレットのクラスタリングを用いたラベリングを行い、色数の多いカラー画像に対しては、隣接拡張法を用いたラベリングを行う画像処理装置が記載されている。   Patent Document 2 describes an image processing apparatus that selectively uses two image processes according to the number of colors of a color image to be processed. Specifically, an image processing apparatus that performs labeling using color palette clustering for a color image with a small number of colors and performs labeling using an adjacent extension method for a color image with a large number of colors Is described.

特許文献3には、入力画像データについて前景と背景を分離し、入力画像データから所定画素数分の幅の線分を抽出し、前景とされた連結する画素に対して同一のラベルを付与し、同一ラベルが付与されたラベル領域ごとに画像特徴量を算出し、そのラベル領域ごとのラベル特徴量から当該ラベル領域の属性を判定し、当該属性判定結果を用いて、上記抽出された線分の補正を行う画像処理装置が記載されている。   In Patent Document 3, foreground and background are separated from input image data, a line segment having a predetermined number of pixels is extracted from input image data, and the same label is assigned to connected pixels as foreground. The image feature amount is calculated for each label region to which the same label is assigned, the attribute of the label region is determined from the label feature amount for each label region, and the extracted line segment is calculated using the attribute determination result. An image processing apparatus for correcting the above is described.

特開2000−132689号公報Japanese Patent Laid-Open No. 2000-132589 特開2000−172849号公報JP 2000-172849 A 特開2001−127999号公報JP 2001-127999 A

本発明は、画像の種類を良好に判定することが可能な画像処理装置および画像処理プログラムを提供することを目的とする。   It is an object of the present invention to provide an image processing apparatus and an image processing program that can favorably determine the type of image.

本発明に係る画像処理装置は、対象画像を受け付ける画像受付手段と、前記対象画像の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する種類判定手段と、を有することを特徴とする。   The image processing apparatus according to the present invention includes: an image receiving unit that receives a target image; and a type determination unit that determines a type of the target image based on a differential value of a frequency distribution of pixel values of the target image. Features.

本発明に係る画像処理装置は、画像を受け付ける画像受付手段と、前記画像の背景色を特定する背景色特定手段と、前記画像の中から、前記背景色の領域で区画される領域を、画像構成要素領域として抽出する領域抽出手段と、前記抽出された画像構成要素領域の画像(以下、「対象画像」と称す)の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する種類判定手段と、を有することを特徴とする。   An image processing apparatus according to the present invention includes an image receiving unit that receives an image, a background color specifying unit that specifies a background color of the image, and an area partitioned by the background color region from the image. The type of the target image is determined based on a region extraction means for extracting as a component region and a differential value of a frequency distribution of pixel values of the extracted image component region image (hereinafter referred to as “target image”). And a type determining means.

本発明に係る画像処理装置は、画像を受け付ける画像受付手段と、前記画像の背景色を特定する背景色特定手段と、前記画像の中から、前記背景色の領域で区画される領域を、画像構成要素領域として抽出する領域抽出手段と、前記抽出された画像構成要素領域を、線のみで構成される領域と、それ以外の領域(以下、「絵柄領域」と称す)とに分類する分類手段と、前記絵柄領域に分類された画像構成要素領域の画像(以下、「対象画像」と称す)の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する種類判定手段と、を有することを特徴とする。   An image processing apparatus according to the present invention includes an image receiving unit that receives an image, a background color specifying unit that specifies a background color of the image, and an area partitioned by the background color region from the image. Area extraction means for extracting as a component area, and classification means for classifying the extracted image component area into an area composed only of lines and other areas (hereinafter referred to as “picture areas”) And type determination means for determining the type of the target image based on the differential value of the frequency distribution of the pixel values of the image component region image (hereinafter referred to as “target image”) classified into the pattern region; It is characterized by having.

本発明の一態様では、前記種類判定手段は、前記対象画像の画素値の頻度分布と、前記頻度分布の微分値とに基づき、前記対象画像の種類を判定する。   In one aspect of the present invention, the type determination unit determines the type of the target image based on a frequency distribution of pixel values of the target image and a differential value of the frequency distribution.

また、本発明の一態様では、前記種類判定手段は、前記頻度分布において所定以上の頻度値を有する画素値の数N1が所定の下側閾値より小さい場合には、前記対象画像は比較的少ない色数の非連続階調の画像(以下、「少色非連続階調画像」と称す)であると判定し、前記画素値の数N1が所定の上側閾値より大きい場合には、前記対象画像は比較的多い色数の画像かまたは連続階調の画像(以下、「多色/連続階調画像」と総称する)であると判定し、前記画素値の数N1が前記下側閾値以上かつ前記上側閾値以下である場合には、前記微分値の絶対値が所定値以上の画素値の数N2が所定閾値以上であるときには、前記対象画像は少色非連続階調画像であると判定し、前記画素値の数N2が前記所定閾値未満であるときには、前記対象画像は多色/連続階調画像であると判定する。   In the aspect of the invention, the type determination unit may have a relatively small number of target images when the number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the frequency distribution is smaller than a predetermined lower threshold. If it is determined that the image is a non-continuous tone image of the number of colors (hereinafter referred to as “low-color non-continuous tone image”), and the number N1 of pixel values is larger than a predetermined upper threshold, the target image Is an image having a relatively large number of colors or a continuous tone image (hereinafter collectively referred to as “multicolor / continuous tone image”), and the number N1 of pixel values is equal to or greater than the lower threshold value. When the absolute value of the differential value is equal to or greater than a predetermined value and the number N2 of pixel values equal to or greater than the predetermined threshold when the absolute value of the differential value is equal to or lower than the upper threshold, the target image is determined to be a low-color non-continuous tone image , When the number N2 of pixel values is less than the predetermined threshold, Image is determined to be multi-color / continuous tone images.

また、本発明の一態様では、前記種類判定手段は、前記対象画像を所定解像度に縮小して縮小画像を生成し、前記縮小画像の画素値の頻度分布の微分値に基づき、または前記頻度分布と前記頻度分布の微分値とに基づき、前記対象画像の種類を判定する。   In one aspect of the present invention, the type determination unit generates a reduced image by reducing the target image to a predetermined resolution, or based on a differential value of a frequency distribution of pixel values of the reduced image, or the frequency distribution And the type of the target image is determined based on the differential value of the frequency distribution.

また、本発明の一態様では、前記種類判定手段は、前記対象画像中のエッジ部が保存されるように前記対象画像を縮小する。   In the aspect of the invention, the type determination unit reduces the target image so that an edge portion in the target image is stored.

また、本発明の一態様では、前記種類判定手段は、前記対象画像中の複数の参照画素の画素値から前記縮小画像の1つの画素値を求める際、前記複数の参照画素のうちの所定の基準画素の画素値と、前記基準画素以外の参照画素のうち前記基準画素との画素値の差が所定以下である参照画素の画素値とに基づき、前記縮小画像の1つの画素値を求める。   In the aspect of the invention, the type determination unit may determine a predetermined pixel value of the plurality of reference pixels when obtaining one pixel value of the reduced image from pixel values of the plurality of reference pixels in the target image. One pixel value of the reduced image is obtained based on the pixel value of the reference pixel and the pixel value of the reference pixel having a pixel value difference between the reference pixel other than the reference pixel and the reference pixel that is equal to or less than a predetermined value.

本発明に係る画像処理プログラムは、コンピュータに、対象画像を受け付ける手順と、前記対象画像の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する手順と、を実行させることを特徴とする。   An image processing program according to the present invention causes a computer to execute a procedure for receiving a target image and a procedure for determining the type of the target image based on a differential value of a frequency distribution of pixel values of the target image. Features.

本発明に係る画像処理プログラムは、コンピュータに、画像を受け付ける手順と、前記画像の背景色を特定する手順と、前記画像の中から、前記背景色の領域で区画される領域を、画像構成要素領域として抽出する手順と、前記抽出された画像構成要素領域の画像(以下、「対象画像」と称す)の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する手順と、を実行させることを特徴とする。   An image processing program according to the present invention includes: a procedure for accepting an image to a computer; a procedure for specifying a background color of the image; and a region partitioned by the background color region from the image. A procedure for extracting as a region, a procedure for determining the type of the target image based on a differential value of a frequency distribution of pixel values of the image of the extracted image component region (hereinafter referred to as “target image”), Is executed.

本発明に係る画像処理プログラムは、コンピュータに、画像を受け付ける手順と、前記画像の背景色を特定する手順と、前記画像の中から、前記背景色の領域で区画される領域を、画像構成要素領域として抽出する手順と、前記抽出された画像構成要素領域を、線のみで構成される領域と、それ以外の領域(以下、「絵柄領域」と称す)とに分類する手順と、前記絵柄領域に分類された画像構成要素領域の画像(以下、「対象画像」と称す)の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する手順と、を実行させることを特徴とする。   An image processing program according to the present invention includes: a procedure for accepting an image to a computer; a procedure for specifying a background color of the image; and a region partitioned by the background color region from the image. A procedure for extracting as a region, a procedure for classifying the extracted image component region into a region composed only of lines, and a region other than that (hereinafter referred to as a “design region”), and the design region And a procedure for determining the type of the target image based on the differential value of the frequency distribution of the pixel values of the images of the image component region classified as follows (hereinafter referred to as “target image”). To do.

請求項1に記載の発明によれば、対象画像の画素値の頻度分布の微分値を用いて、対象画像の種類を良好に判定することが可能となる。   According to the first aspect of the present invention, the type of the target image can be satisfactorily determined using the differential value of the frequency distribution of the pixel values of the target image.

請求項2に記載の発明によれば、画像中の画像構成要素領域の画像の種類を良好に判定することが可能となる。   According to the invention described in claim 2, it is possible to satisfactorily determine the image type of the image component area in the image.

請求項3に記載の発明によれば、画像中の絵柄領域の画像の種類を良好に判定することが可能となる。   According to the third aspect of the present invention, it is possible to satisfactorily determine the image type of the pattern area in the image.

請求項4に記載の発明によれば、対象画像の画素値の頻度分布とその微分値とを用いて、対象画像の種類を良好に判定することが可能となる。   According to the invention described in claim 4, it is possible to satisfactorily determine the type of the target image using the frequency distribution of the pixel values of the target image and its differential value.

請求項5に記載の発明によれば、対象画像の画素値の頻度分布とその微分値とを用いて、対象画像を少色非連続階調画像と多色/連続階調画像とに分類することが可能となる。   According to the fifth aspect of the present invention, the target image is classified into the low-color non-continuous tone image and the multi-color / continuous-tone image using the frequency distribution of the pixel values of the target image and its differential value. It becomes possible.

請求項6に記載の発明によれば、対象画像中の略均一色の領域内の色の分布を均一化した上で、対象画像の種類を判定することが可能となる。   According to the sixth aspect of the present invention, it is possible to determine the type of the target image after uniformizing the color distribution in the substantially uniform color region in the target image.

請求項7に記載の発明によれば、対象画像の縮小処理による対象画像の種類の判定への悪影響を軽減することが可能となる。   According to the seventh aspect of the present invention, it is possible to reduce the adverse effect on the determination of the type of the target image by the target image reduction process.

請求項8に記載の発明によれば、対象画像の縮小処理による対象画像の種類の判定への悪影響を軽減しつつ、対象画像を縮小することが可能となる。   According to the invention described in claim 8, it is possible to reduce the target image while reducing the adverse effect on the determination of the type of the target image by the reduction process of the target image.

請求項9に記載の発明によれば、対象画像の画素値の頻度分布の微分値を用いて、対象画像の種類を良好に判定することが可能となる。   According to the ninth aspect of the present invention, it is possible to satisfactorily determine the type of the target image using the differential value of the frequency distribution of the pixel values of the target image.

請求項10に記載の発明によれば、画像中の画像構成要素領域の画像の種類を良好に判定することが可能となる。   According to the invention described in claim 10, it is possible to satisfactorily determine the image type of the image component area in the image.

請求項11に記載の発明によれば、画像中の絵柄領域の画像の種類を良好に判定することが可能となる。   According to the eleventh aspect of the present invention, it is possible to satisfactorily determine the image type of the pattern area in the image.

以下、本発明の実施の形態を図面に従って説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[第1の実施の形態]
図1は、第1の実施の形態に係る画像処理装置10の構成の一例を示すブロック図である。この画像処理装置10は、画像の種類を判定する装置である。
[First Embodiment]
FIG. 1 is a block diagram illustrating an example of a configuration of an image processing apparatus 10 according to the first embodiment. The image processing apparatus 10 is an apparatus that determines the type of image.

画像処理装置10は、一つの態様では、ハードウェア資源とソフトウェアとの協働により実現され、例えばコンピュータである。具体的には、画像処理装置10の機能は、記録媒体に記録された画像処理プログラムがメインメモリに読み出されてCPU(Central Processing Unit)により実行されることによって実現される。上記画像処理プログラムは、CD−ROM等のコンピュータ読み取り可能な記録媒体に記録されて提供されることも可能であるし、データ信号として通信により提供されることも可能である。ただし、画像処理装置10は、ハードウェアのみにより実現されてもよい。また、画像処理装置10は、物理的に1つの装置により実現されてもよいし、複数の装置により実現されてもよい。   In one embodiment, the image processing apparatus 10 is realized by cooperation of hardware resources and software, and is, for example, a computer. Specifically, the functions of the image processing apparatus 10 are realized by reading an image processing program recorded on a recording medium into a main memory and executing it by a CPU (Central Processing Unit). The image processing program can be provided by being recorded on a computer-readable recording medium such as a CD-ROM, or can be provided by communication as a data signal. However, the image processing apparatus 10 may be realized only by hardware. Further, the image processing apparatus 10 may be physically realized by one apparatus or may be realized by a plurality of apparatuses.

図1に示されるように、画像処理装置10は、画像受付部11、種類判定部12、および画像処理部13を有する。   As illustrated in FIG. 1, the image processing apparatus 10 includes an image reception unit 11, a type determination unit 12, and an image processing unit 13.

画像受付部11は、判定対象の画像である対象画像を受け付ける。対象画像は、一つの態様では、カラー画像であり、例えば、RGB色空間、YCbCr色空間、Lab色空間などの画像データである。また、対象画像は、例えば、水平方向および垂直方向にマトリクス状に複数の画素が配列されてなる画像データであり、各画素は、各種色空間の画素値を有する。なお、対象画像は、グレースケール画像であってもよい。   The image receiving unit 11 receives a target image that is a determination target image. In one embodiment, the target image is a color image, for example, image data such as an RGB color space, a YCbCr color space, or a Lab color space. The target image is, for example, image data in which a plurality of pixels are arranged in a matrix in the horizontal direction and the vertical direction, and each pixel has pixel values of various color spaces. Note that the target image may be a grayscale image.

種類判定部12は、画像受付部11により受け付けられた対象画像の画素値の頻度分布(以下、「ヒストグラム」と称す)の微分値に基づき、対象画像の種類を判定する。   The type determining unit 12 determines the type of the target image based on the differential value of the pixel value frequency distribution (hereinafter referred to as “histogram”) of the target image received by the image receiving unit 11.

ここで、上記ヒストグラムの対象となる画素値は、例えば、明度値、輝度値、階調値である。より具体的には、ヒストグラムの対象となる画素値は、例えば、YCbCr色空間のY値(輝度値)、Lab色空間のL値(明度値)、RGB色空間のG値(緑色成分の階調値)である。ヒストグラムの対象となる画素値は、対象画像を構成する何れか1つの画素値(例えばY,Cb,CrのうちのY)であってもよいし、対象画像を構成する複数の画素値から算出される画素値(例えばR,G,Bから算出されるY)であってもよい。   Here, the pixel values to be subjected to the histogram are, for example, lightness values, luminance values, and gradation values. More specifically, pixel values to be subjected to the histogram include, for example, a Y value (luminance value) in the YCbCr color space, an L value (lightness value) in the Lab color space, and a G value (green component level) in the RGB color space. Key value). The pixel value that is the target of the histogram may be any one pixel value (for example, Y of Y, Cb, and Cr) that constitutes the target image, or is calculated from a plurality of pixel values that constitute the target image. May be a pixel value (for example, Y calculated from R, G, and B).

具体的には、種類判定部12は、対象画像の画素値のヒストグラムを求め、当該ヒストグラムの微分値(具体的には一次微分値)を求め、当該微分値に基づいて対象画像の種類を判定する。具体的な一態様では、種類判定部12は、対象画像における各画素値の頻度値を表すヒストグラムを求め、当該ヒストグラムで隣り合う画素値の頻度値の差を演算することにより、ヒストグラムの微分値を求める。例えば、種類判定部12は、画素値x(x=0,1,2,・・・,255)の各々の頻度値f(x)を計数し、微分値d(x)=f(x)−f(x+1)を算出する。   Specifically, the type determination unit 12 calculates a histogram of pixel values of the target image, calculates a differential value (specifically, a primary differential value) of the histogram, and determines the type of the target image based on the differential value. To do. In one specific aspect, the type determination unit 12 obtains a histogram representing the frequency value of each pixel value in the target image, and calculates the differential value of the histogram by calculating the difference between the frequency values of adjacent pixel values in the histogram. Ask for. For example, the type determination unit 12 counts each frequency value f (x) of the pixel value x (x = 0, 1, 2,..., 255), and the differential value d (x) = f (x) -F (x + 1) is calculated.

一つの態様では、種類判定部12は、微分値の絶対値が所定値以上の画素値の数を求め、当該画素値の数に基づいて対象画像の種類を判定する。具体的には、種類判定部12は、上記画素値の数が所定閾値T以上である場合には、対象画像は第1の種類の画像であると判定し、上記画素値の数が所定閾値T未満である場合には、対象画像は第2の種類の画像であると判定する。   In one aspect, the type determination unit 12 obtains the number of pixel values whose differential value is greater than or equal to a predetermined value, and determines the type of the target image based on the number of pixel values. Specifically, the type determination unit 12 determines that the target image is a first type image when the number of pixel values is equal to or greater than a predetermined threshold value T, and the number of pixel values is equal to the predetermined threshold value. If it is less than T, it is determined that the target image is the second type of image.

一つの態様では、種類判定部12は、対象画像が比較的少ない色数の非連続階調の画像(以下、「少色非連続階調画像」と称す)であるか否かを、対象画像が比較的多い色数の画像かまたは連続階調の画像(以下、「多色/連続階調画像」と称す)であるか否かを、または、対象画像が少色非連続階調画像および多色/連続階調画像のうちの何れであるかを、ヒストグラムの微分値に基づいて判定する。具体的な一態様では、種類判定部12は、微分値の絶対値が所定値以上の画素値の数が所定閾値T以上である場合には、対象画像は少色非連続階調画像であると判定し、上記画素値の数が上記所定閾値T未満である場合には、対象画像は多色/連続階調画像であると判定する。   In one aspect, the type determination unit 12 determines whether the target image is a non-continuous tone image having a relatively small number of colors (hereinafter referred to as a “low-color non-continuous tone image”). Is an image having a relatively large number of colors or a continuous tone image (hereinafter referred to as “multicolor / continuous tone image”), or the target image is a low-color non-continuous tone image and Which of the multicolor / continuous tone images is determined is determined based on the differential value of the histogram. In a specific aspect, the type determination unit 12 determines that the target image is a low-color non-continuous tone image when the number of pixel values whose differential value is greater than or equal to a predetermined value is equal to or greater than a predetermined threshold T. If the number of pixel values is less than the predetermined threshold T, it is determined that the target image is a multicolor / continuous tone image.

上記所定閾値Tは、固定値であってもよいし、可変値であってもよい。例えば、種類判定部12は、ヒストグラムにおいて頻度値がゼロでない画素値の数Aを求め、微分値の絶対値が所定値以上の画素値の数Bを求め、B≧k・A(=T)の場合に対象画像は第1の種類の画像(または少色非連続階調画像)であると判定し、B<k・A(=T)の場合に対象画像は第2の種類の画像(または多色/連続階調画像)であると判定する。ただし、上記kは定数である。   The predetermined threshold T may be a fixed value or a variable value. For example, the type determination unit 12 obtains the number A of pixel values whose frequency values are not zero in the histogram, obtains the number B of pixel values having an absolute value of a differential value equal to or larger than a predetermined value, and B ≧ k · A (= T) In this case, it is determined that the target image is the first type image (or the low-color non-continuous tone image), and when B <k · A (= T), the target image is the second type image ( Or a multicolor / continuous tone image). However, k is a constant.

上記少色非連続階調画像と判定される画像としては、例えば、比較的少ない色数の非連続階調の背景上に、比較的少ない色数の非連続階調の前景が配置された画像が挙げられる。前景としては、例えば、文字、図形(内部が色で塗りつぶされた図形を含む)、均一な色の領域などが挙げられる。より具体的には、上記少色非連続階調画像と判定される画像としては、例えば、ドローソフトで作成された画像が挙げられる。一方、上記多色/連続階調画像と判定される画像としては、例えば、写真や、コンピュータグラフィクスのグラデーション画像などが挙げられる。   As an image determined as the low-color non-continuous tone image, for example, an image in which a non-continuous tone foreground having a relatively small number of colors is arranged on a background of a non-continuous tone having a relatively small number of colors. Is mentioned. Examples of the foreground include characters, figures (including figures whose interiors are filled with colors), uniform color areas, and the like. More specifically, the image determined as the low-color non-continuous tone image includes, for example, an image created with draw software. On the other hand, examples of the image determined as the multicolor / continuous tone image include a photograph and a gradation image of computer graphics.

一つの態様では、種類判定部12は、対象画像の画素値のヒストグラムと、当該ヒストグラムの微分値とに基づき、対象画像の種類を判定する。   In one aspect, the type determination unit 12 determines the type of the target image based on the pixel value histogram of the target image and the differential value of the histogram.

具体的な一態様では、種類判定部12は、ヒストグラムにおいて所定以上の頻度値を有する画素値の数N1と、微分値の絶対値が所定値以上の画素値の数N2とに基づいて、対象画像の種類を判定する。上記ヒストグラムにおいて所定以上の頻度値を有する画素値の数N1は、一つの態様では、ヒストグラムの最頻値の所定割合(例えば5%)以上の頻度値を有する画素値の数である。   In a specific aspect, the type determination unit 12 determines whether the target value is based on the number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the histogram and the number N2 of pixel values having an absolute value of a differential value equal to or greater than the predetermined value. Determine the type of image. In one aspect, the number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the histogram is the number of pixel values having a frequency value equal to or higher than a predetermined ratio (for example, 5%) of the mode value of the histogram.

より具体的な一態様では、種類判定部12は、ヒストグラムにおいて所定以上の頻度値を有する画素値の数N1が所定の下側閾値より小さい場合には、対象画像は第1の種類の画像(または少色非連続階調画像)であると判定し、画素値の数N1が所定の上側閾値より大きい場合には、対象画像は第2の種類の画像(多色/連続階調画像)であると判定する。画素値の数N1が下側閾値以上かつ上側閾値以下である場合には、種類判定部12は、ヒストグラムの微分値を用いて対象画像の種類を判定する。すなわち、種類判定部12は、微分値の絶対値が所定値以上の画素値の数N2が所定閾値以上であるときには、対象画像は第1の種類の画像(または少色非連続階調画像)であると判定し、画素値の数N2が上記所定閾値未満であるときには、対象画像は第2の種類の画像(または多色/連続階調画像)であると判定する。上記所定閾値は、上記と同様、固定値でも可変値でもよい。   In a more specific aspect, the type determination unit 12 determines that the target image is a first type image (if the number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the histogram is smaller than a predetermined lower threshold value). Or the number N1 of pixel values is larger than a predetermined upper threshold value, the target image is a second type of image (multicolor / continuous tone image). Judge that there is. When the number N1 of pixel values is greater than or equal to the lower threshold and less than or equal to the upper threshold, the type determination unit 12 determines the type of the target image using the differential value of the histogram. That is, the type determination unit 12 determines that the target image is the first type image (or the low-color non-continuous tone image) when the number N2 of pixel values whose differential values are greater than or equal to a predetermined value is greater than or equal to a predetermined threshold. When the number N2 of pixel values is less than the predetermined threshold, it is determined that the target image is the second type image (or multicolor / continuous tone image). The predetermined threshold value may be a fixed value or a variable value as described above.

図2は、一般的な文字・図形画像(具体的には、略均一な色の背景上に文字や図形が記述された画像)の、画素値のヒストグラムおよびその微分値の絶対値を示す図である。図3は、一般的な写真画像の、画素値のヒストグラムおよびその微分値の絶対値を示す図である。図2,3では、ヒストグラムは、最頻値が100となるように正規化されている。このことは、後の図4,5についても同様である。   FIG. 2 is a diagram showing a histogram of pixel values and an absolute value of a differential value of a general character / graphic image (specifically, an image in which characters and graphics are described on a substantially uniform color background). It is. FIG. 3 is a diagram illustrating a histogram of pixel values and an absolute value of a differential value of a general photographic image. 2 and 3, the histograms are normalized so that the mode value is 100. The same applies to FIGS. 4 and 5 later.

図2,3から分かるように、ヒストグラムにおいて所定レベル以上(例えば最頻値の5%以上)の頻度値を有する画素値の数は、写真画像の方が文字・図形画像よりも明らかに多く、このことから両画像を区別可能である。例えば、上記具体的な一態様によれば、図2のヒストグラムを持つ文字・図形画像は、ヒストグラムにおいて所定以上の頻度値を有する画素値の数N1が所定の下側閾値より小さいと判断され、少色非連続階調画像であると判定される。一方、図3のヒストグラムを持つ写真画像は、ヒストグラムにおいて所定以上の頻度値を有する画素値の数N1が所定の上側閾値より大きいと判断され、多色/連続階調画像であると判定される。   As can be seen from FIGS. 2 and 3, the number of pixel values having a frequency value above a predetermined level (for example, 5% or more of the mode value) in the histogram is clearly larger in the photographic image than in the character / graphic image, From this, both images can be distinguished. For example, according to the above specific embodiment, the character / graphic image having the histogram of FIG. 2 is determined that the number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the histogram is smaller than a predetermined lower threshold value. It is determined that the image is a low-color discontinuous tone image. On the other hand, the photographic image having the histogram of FIG. 3 is determined to have a number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the histogram larger than a predetermined upper threshold, and is determined to be a multicolor / continuous tone image. .

図4は、数色で表現された文字・図形画像(具体的には、互いに異なる色でそれぞれ均一に塗り潰された7つの領域を有する円グラフの画像)の、画素値のヒストグラムおよびその微分値の絶対値を示す図である。図5は、写真画像としては色数が比較的少ない写真画像(具体的には砂漠の写真画像)の、画素値のヒストグラムおよびその微分値の絶対値を示す図である。   FIG. 4 shows a histogram of pixel values and a differential value thereof of a character / graphic image expressed in several colors (specifically, a pie chart image having seven areas each uniformly filled with different colors). It is a figure which shows the absolute value of. FIG. 5 is a diagram illustrating a histogram of pixel values and an absolute value of a differential value of a photographic image having a relatively small number of colors as a photographic image (specifically, a desert photographic image).

図4,5から分かるように、数色で表現された文字・図形画像と、写真画像としては色数が比較的少ない写真画像とでは、ヒストグラムにおいて所定以上の頻度値を有する画素値の数に明確な差異がなく、当該画素値の数だけでは両画像を区別できない。図4,5の微分値の絶対値を見ると、微分値の絶対値が所定レベル以上(例えば10以上)の画素値の数は、文字・図形画像の方が写真画像よりも明らかに多く、このことから両画像を区別可能である。例えば、上記具体的な一態様によれば、図4のヒストグラムを持つ文字・図形画像は、ヒストグラムにおいて所定以上の頻度値を有する画素値の数N1が下側閾値以上かつ上側閾値以下であると判断され、微分値の絶対値が所定値以上の画素値の数N2が所定閾値以上であると判断され、少色非連続階調画像であると判定される。一方、図5のヒストグラムを持つ写真画像は、ヒストグラムにおいて所定以上の頻度値を有する画素値の数N1が下側閾値以上かつ上側閾値以下であると判断され、微分値の絶対値が所定値以上の画素値の数N2が所定閾値未満であると判断され、多色/連続階調画像であると判定される。   As can be seen from FIGS. 4 and 5, a character / graphic image expressed in several colors and a photographic image having a relatively small number of colors as a photographic image have the number of pixel values having a predetermined frequency value or more in the histogram. There is no clear difference, and the two images cannot be distinguished only by the number of the pixel values. 4 and 5, when the absolute value of the differential value is a predetermined level or more (for example, 10 or more), the number of pixel values is clearly larger in the character / graphic image than in the photographic image. From this, both images can be distinguished. For example, according to the above-described specific aspect, in the character / graphic image having the histogram of FIG. 4, the number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the histogram is greater than or equal to the lower threshold and less than or equal to the upper threshold. It is determined that the number N2 of pixel values having an absolute value of the differential value greater than or equal to a predetermined value is greater than or equal to a predetermined threshold, and it is determined that the image is a low-color discontinuous tone image. On the other hand, in the photographic image having the histogram of FIG. 5, it is determined that the number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the histogram is greater than or equal to the lower threshold value and less than or equal to the upper threshold value. It is determined that the number N2 of pixel values is less than a predetermined threshold, and it is determined that the image is a multicolor / continuous tone image.

画像処理部13は、種類判定部12の判定結果に基づき、対象画像の種類に応じた画像処理を対象画像に施す。   The image processing unit 13 performs image processing corresponding to the type of the target image on the target image based on the determination result of the type determination unit 12.

一つの態様では、画像処理部13は、対象画像が少色非連続階調画像であると判定された場合、少色非連続階調画像に適した文字抽出方法または非連続階調の画像に適した文字抽出方法を用いて、当該対象画像から文字を抽出する。一方、対象画像が多色/連続階調画像であると判定された場合、画像処理部13は、多色/連続階調画像に適した文字抽出方法または連続階調の画像に適した文字抽出方法を用いて、当該対象画像から文字を抽出する。   In one aspect, when it is determined that the target image is a low-color non-continuous tone image, the image processing unit 13 converts the character extraction method suitable for the low-color non-continuous tone image or a non-continuous tone image. Characters are extracted from the target image using a suitable character extraction method. On the other hand, when it is determined that the target image is a multicolor / continuous tone image, the image processing unit 13 performs character extraction method suitable for the multicolor / continuous tone image or character extraction suitable for the continuous tone image. Using the method, characters are extracted from the target image.

別の態様では、画像処理部13は、対象画像が少色非連続階調画像であると判定された場合、当該対象画像をベクトル化してベクトル画像データを生成する。一方、対象画像が多色/連続階調画像であると判定された場合、画像処理部13は、当該対象画像をベクトル化せず、例えばビットマップ画像データのまま出力する。   In another aspect, when it is determined that the target image is a low-color non-continuous tone image, the image processing unit 13 generates vector image data by vectorizing the target image. On the other hand, when it is determined that the target image is a multicolor / continuous tone image, the image processing unit 13 does not vectorize the target image, and outputs it as bitmap image data, for example.

図6は、第1の実施の形態に係る画像処理装置10の動作の一例を示すフローチャートである。以下、図6を参照して、画像処理装置10の動作の一例を説明する。   FIG. 6 is a flowchart illustrating an example of the operation of the image processing apparatus 10 according to the first embodiment. Hereinafter, an example of the operation of the image processing apparatus 10 will be described with reference to FIG.

画像処理装置10は、対象画像を受け付ける(S11)。   The image processing apparatus 10 receives the target image (S11).

ついで、画像処理装置10は、上記対象画像の画素値のヒストグラムの微分値に基づき、上記対象画像の種類を判定する(S12)。具体的には、画像処理装置10は、図7に示される種類判定処理を実行する。   Next, the image processing apparatus 10 determines the type of the target image based on the differential value of the histogram of the pixel value of the target image (S12). Specifically, the image processing apparatus 10 executes a type determination process shown in FIG.

そして、画像処理装置10は、上記ステップS12の判定の結果に基づき、対象画像の種類に応じた画像処理を対象画像に施す(S13)。   Then, the image processing apparatus 10 performs image processing corresponding to the type of the target image on the target image based on the determination result of step S12 (S13).

以下、図7の種類判定処理を説明する。   Hereinafter, the type determination process of FIG. 7 will be described.

画像処理装置10は、対象画像の画素値のヒストグラムを採取する(S101)。   The image processing apparatus 10 collects a histogram of pixel values of the target image (S101).

ついで、画像処理装置10は、採取したヒストグラムの最頻値を決定し、最頻値の所定割合以上の頻度値を有する画素値の数N1を計数する(S102)。   Next, the image processing apparatus 10 determines the mode value of the collected histogram, and counts the number N1 of pixel values having a frequency value equal to or higher than a predetermined ratio of the mode value (S102).

ついで、画像処理装置10は、画素値の数N1が所定の下側閾値より小さいか否かを判断する(S103)。   Next, the image processing apparatus 10 determines whether or not the number N1 of pixel values is smaller than a predetermined lower threshold (S103).

画素値の数N1が所定の下側閾値より小さいと判断された場合(S103:YES)、画像処理装置10は、対象画像は少色非連続階調画像であると判定する(S104)。   When it is determined that the number N1 of pixel values is smaller than the predetermined lower threshold (S103: YES), the image processing apparatus 10 determines that the target image is a low-color non-continuous tone image (S104).

一方、画素値の数N1が所定の下側閾値以上であると判断された場合(S103:NO)、画像処理装置10は、画素値の数N1が所定の上側閾値より大きいか否かを判断する(S105)。   On the other hand, when it is determined that the number N1 of pixel values is equal to or greater than the predetermined lower threshold (S103: NO), the image processing apparatus 10 determines whether the number N1 of pixel values is greater than the predetermined upper threshold. (S105).

画素値の数N1が所定の上側閾値より大きいと判断された場合(S105:YES)、画像処理装置10は、対象画像は多色/連続階調画像であると判定する(S106)。   When it is determined that the number N1 of pixel values is greater than the predetermined upper threshold (S105: YES), the image processing apparatus 10 determines that the target image is a multicolor / continuous tone image (S106).

一方、画素値の数N1が所定の上側閾値以下であると判断された場合(S105:NO)、画像処理装置10は、処理をステップS107に進める。   On the other hand, when it is determined that the number N1 of pixel values is equal to or smaller than the predetermined upper threshold (S105: NO), the image processing apparatus 10 advances the process to step S107.

ステップS107では、画像処理装置10は、上記採取したヒストグラムの隣り合う画素値の頻度値の差を演算することにより、ヒストグラムの微分値を採取する。   In step S107, the image processing apparatus 10 collects the differential value of the histogram by calculating the difference between the frequency values of adjacent pixel values in the collected histogram.

ついで、画像処理装置10は、上記採取したヒストグラムにおいて、頻度値がゼロでない画素値の数Aを計数する(S108)。   Next, the image processing apparatus 10 counts the number A of pixel values whose frequency values are not zero in the collected histogram (S108).

ついで、画像処理装置10は、上記採取したヒストグラムの微分値において、微分値の絶対値が所定値以上の画素値の数N2を計数する(S109)。   Next, the image processing apparatus 10 counts the number N2 of pixel values in which the absolute value of the differential value is equal to or greater than a predetermined value in the differential value of the collected histogram (S109).

ついで、画像処理装置10は、画素値の数N2を画素値の数Aで除して得られる値N2/Aが所定閾値以上であるか否かを判断する(S110)。   Next, the image processing apparatus 10 determines whether or not a value N2 / A obtained by dividing the number N2 of pixel values by the number A of pixel values is equal to or greater than a predetermined threshold (S110).

値N2/Aが所定閾値以上であると判断された場合(S110:YES)、画像処理装置10は、対象画像は少色非連続階調画像であると判定する(S111)。   When it is determined that the value N2 / A is equal to or greater than the predetermined threshold (S110: YES), the image processing apparatus 10 determines that the target image is a low-color non-continuous tone image (S111).

一方、値N2/Aが所定閾値未満であると判断された場合(S110:NO)、画像処理装置10は、対象画像は多色/連続階調画像であると判定する(S112)。   On the other hand, when it is determined that the value N2 / A is less than the predetermined threshold (S110: NO), the image processing apparatus 10 determines that the target image is a multicolor / continuous tone image (S112).

[第2の実施の形態]
図8は、第2の実施の形態に係る画像処理装置20の構成の一例を示すブロック図である。この画像処理装置20は、入力画像の中から画像構成要素の領域(すなわち画像構成要素領域)を抽出し、当該画像構成要素領域の画像の種類を判定し、画像の種類に応じた画像処理を当該画像構成要素領域の画像に施すものである。以下の説明では、画像構成要素を「画像オブジェクト」と称し、画像構成要素領域を「画像オブジェクト領域」と称す。
[Second Embodiment]
FIG. 8 is a block diagram illustrating an example of the configuration of the image processing apparatus 20 according to the second embodiment. The image processing apparatus 20 extracts an image component region (that is, an image component region) from the input image, determines an image type of the image component region, and performs image processing according to the image type. This is applied to the image of the image component area. In the following description, an image component is referred to as an “image object”, and an image component region is referred to as an “image object region”.

画像処理装置20の実現態様は、上記第1の実施の形態と同様である。すなわち、画像処理装置20は、ハードウェア資源とソフトウェアとの協働により実現されてもよいし、ハードウェアのみにより実現されてもよい。また、画像処理装置20は、物理的に1つの装置により実現されてもよいし、複数の装置により実現されてもよい。また、画像処理装置20の機能を実現するための画像処理プログラムは、コンピュータ読み取り可能な記録媒体に記録されて提供されることも可能であるし、データ信号として通信により提供されることも可能である。   The realization mode of the image processing apparatus 20 is the same as that of the first embodiment. That is, the image processing apparatus 20 may be realized by cooperation of hardware resources and software, or may be realized only by hardware. In addition, the image processing apparatus 20 may be physically realized by one apparatus or may be realized by a plurality of apparatuses. The image processing program for realizing the functions of the image processing apparatus 20 can be provided by being recorded on a computer-readable recording medium or can be provided by communication as a data signal. is there.

図8に示されるように、画像処理装置20は、画像受付部21、背景色特定部22、領域抽出部23、種類判定部24、および画像処理部25を有する。   As illustrated in FIG. 8, the image processing apparatus 20 includes an image receiving unit 21, a background color specifying unit 22, a region extracting unit 23, a type determining unit 24, and an image processing unit 25.

画像受付部21は、画像(以下、「入力画像」と称す)を受け付ける。入力画像は、一つの態様では、カラー画像であり、例えば、RGB色空間、YCbCr色空間、Lab色空間などの画像データである。また、入力画像は、例えば、水平方向および垂直方向にマトリクス状に複数の画素が配列されてなる画像データであり、各画素は、各種色空間の画素値を有する。具体的な一態様では、入力画像は、RGB各色8ビットのビットマップ画像データである。入力画像は、例えば、原稿の画像を光学的に読み取る画像読取装置により生成された画像データである。ただし、入力画像は、各種の記録媒体に記録された画像データなどであってもよい。   The image receiving unit 21 receives an image (hereinafter referred to as “input image”). In one aspect, the input image is a color image, for example, image data such as an RGB color space, a YCbCr color space, or a Lab color space. The input image is, for example, image data in which a plurality of pixels are arranged in a matrix in the horizontal direction and the vertical direction, and each pixel has pixel values of various color spaces. In a specific aspect, the input image is bitmap image data of 8 bits for each color of RGB. The input image is, for example, image data generated by an image reading apparatus that optically reads a document image. However, the input image may be image data recorded on various recording media.

図9には、フルカラーの入力画像の一例が示されている。図9の入力画像は、背景50と前景51〜54とを含む。図9において、斜線ハッチングは連続階調領域を表現しており、前景51は、例えば、写真上に文字列「ABC」が記述された画像である。網点は色が均一であることを表現しており、網点の密度の違いは色が異なることを表現している。例えば、前景52,53は、1つ以上の均一色領域(平坦色領域ともいう)で構成された画像である。ここで、均一色領域は、背景部分が均一な色で表現された領域であり、文字や図形等の前景を含んでもよい。具体的には、前景52は、第1の色の背景上に文字列「DEF」が記述された均一色領域と、第2の色の背景上に文字列「GHI」が記述された均一色領域とが連結された画像である。前景53は、第3の色の背景上に文字列「JKL」が記述された均一色領域の画像である。前景54は、文字列「MNO」である。   FIG. 9 shows an example of a full-color input image. The input image in FIG. 9 includes a background 50 and foregrounds 51 to 54. In FIG. 9, hatched hatching represents a continuous tone region, and the foreground 51 is, for example, an image in which a character string “ABC” is described on a photograph. A halftone dot represents that the color is uniform, and a difference in the density of the halftone dot represents that the color is different. For example, the foregrounds 52 and 53 are images composed of one or more uniform color regions (also referred to as flat color regions). Here, the uniform color region is a region in which the background portion is expressed in a uniform color, and may include a foreground such as characters and figures. Specifically, the foreground 52 includes a uniform color region in which the character string “DEF” is described on the background of the first color and a uniform color in which the character string “GHI” is described on the background of the second color. This is an image in which regions are connected. The foreground 53 is an image of a uniform color area in which the character string “JKL” is described on the background of the third color. The foreground 54 is the character string “MNO”.

背景色特定部22は、画像受付部21により受け付けられた入力画像の背景色を特定する。背景色特定部22は、特定の1つの色を背景色として特定してもよいし、色空間における特定の範囲の色を背景色として特定してもよい。背景色特定部22は、様々な方法により背景色を特定することができるが、例えば、入力画像において出現頻度が最も高い色、または当該色から所定範囲内の色を背景色として特定する。   The background color specifying unit 22 specifies the background color of the input image received by the image receiving unit 21. The background color specifying unit 22 may specify one specific color as the background color, or may specify a specific range of colors in the color space as the background color. The background color specifying unit 22 can specify the background color by various methods. For example, the background color specifying unit 22 specifies a color having the highest appearance frequency in the input image or a color within a predetermined range from the color as the background color.

領域抽出部23は、上記入力画像の中から、上記背景色の領域(すなわち背景領域)で区画される領域を、画像オブジェクト領域として抽出する。一つの態様では、領域抽出部23は、入力画像の画素を背景色の画素と背景色以外の画素とに分類することにより、入力画像を2値画像に変換する。例えば、領域抽出部23は、背景色の画素の画素値を「0」とし、背景色以外の画素の画素値を「1」として、図9に示されるフルカラーの入力画像から、図10に示される2値画像を生成する。図10では、画素値「0」の領域は白色で表現され、画素値「1」の領域は黒色で表現されている。ついで、領域抽出部23は、上記2値画像中の背景色以外の画素の各連結成分の領域を、画像オブジェクト領域として抽出する。ここで、連結成分とは、2値画像中で、同じ値を持つ画素が互いに連結して一つの塊を形成しているものである。具体的な一態様では、領域抽出部23は、上記2値画像に対してラベリング処理を行って、ラベリング画像を生成する。ここで、ラベリング処理とは、2値画像中の各連結成分の画素に対し、連結成分毎に異なるラベルを割り当てる処理である。例えば、領域抽出部23は、図10の2値画像に対してラベリング処理を行って、図11に示されるラベリング画像を生成する。図11では、各連結成分の画素には、連結成分毎に異なるラベル番号1,2,3,4,5,6が割り当てられている。同一のラベル番号が割り当てられた画素群の領域が、それぞれ画像オブジェクト領域に対応する。すなわち、図11の例では、ラベル番号1〜6の6つの画像オブジェクト領域が抽出されている。   The area extraction unit 23 extracts an area partitioned by the background color area (that is, the background area) from the input image as an image object area. In one aspect, the region extraction unit 23 converts the input image into a binary image by classifying the pixels of the input image into pixels of the background color and pixels other than the background color. For example, the region extraction unit 23 sets the pixel value of the background color pixel to “0” and sets the pixel value of the pixels other than the background color to “1”, and displays the full color input image shown in FIG. A binary image is generated. In FIG. 10, the region with the pixel value “0” is expressed in white, and the region with the pixel value “1” is expressed in black. Next, the area extracting unit 23 extracts the area of each connected component of pixels other than the background color in the binary image as an image object area. Here, the connected component is a binary image in which pixels having the same value are connected to each other to form one lump. In a specific aspect, the region extraction unit 23 performs a labeling process on the binary image to generate a labeling image. Here, the labeling process is a process of assigning a different label for each connected component to each connected component pixel in the binary image. For example, the region extraction unit 23 performs a labeling process on the binary image of FIG. 10 to generate a labeling image shown in FIG. In FIG. 11, different connected label numbers 1, 2, 3, 4, 5, and 6 are assigned to the pixels of each connected component. Each pixel group region to which the same label number is assigned corresponds to an image object region. That is, in the example of FIG. 11, six image object regions with label numbers 1 to 6 are extracted.

種類判定部24は、領域抽出部23により抽出された画像オブジェクト領域の画像の種類を、上記第1の実施の形態の種類判定部12と同様に判定する。具体的には、種類判定部24は、抽出された各画像オブジェクト領域の画像を対象画像として、種類判定部12と同様に対象画像の種類を判定する。図9〜11の例では、種類判定部24は、ラベル番号1〜6の6つの画像オブジェクト領域のそれぞれの画像の種類を判定する。例えば、種類判定部24は、ラベル番号1の画像オブジェクト領域の画像(すなわち前景51)について多色/連続階調画像であると判定し、ラベル番号2〜6の画像オブジェクト領域の画像については少色非連続階調画像であると判定する。   The type determination unit 24 determines the image type of the image object region extracted by the region extraction unit 23 in the same manner as the type determination unit 12 of the first embodiment. Specifically, the type determining unit 24 determines the type of the target image in the same manner as the type determining unit 12 using the extracted image of each image object region as the target image. In the example of FIGS. 9 to 11, the type determination unit 24 determines the image type of each of the six image object regions with label numbers 1 to 6. For example, the type determining unit 24 determines that the image of the image object area with the label number 1 (ie, the foreground 51) is a multicolor / continuous tone image, and the image object area with the label numbers 2 to 6 is small. It is determined that the image is a color non-continuous tone image.

画像処理部25は、上記第1の実施の形態の画像処理部13と同様に、種類判定部24の判定結果に基づき、対象画像の種類に応じた画像処理を対象画像に施す。図9〜11の例では、画像処理部25は、ラベル番号1〜6の6つの画像オブジェクト領域の画像のそれぞれについて、当該画像オブジェクト領域の画像の種類に応じた画像処理を当該画像オブジェクト領域の画像に施す。   Similar to the image processing unit 13 of the first embodiment, the image processing unit 25 performs image processing corresponding to the type of the target image on the target image based on the determination result of the type determination unit 24. In the example of FIGS. 9 to 11, the image processing unit 25 performs image processing according to the type of image of the image object area for each of the images of the six image object areas with label numbers 1 to 6. Apply to images.

図12は、第2の実施の形態に係る画像処理装置20の動作の一例を示すフローチャートである。以下、図12を参照して、画像処理装置20の動作の一例を説明する。   FIG. 12 is a flowchart illustrating an example of the operation of the image processing apparatus 20 according to the second embodiment. Hereinafter, an example of the operation of the image processing apparatus 20 will be described with reference to FIG.

画像処理装置20は、入力画像(例えば24ビットフルカラー画像データ)を受け付ける(S21)。   The image processing apparatus 20 receives an input image (for example, 24-bit full color image data) (S21).

ついで、画像処理装置20は、入力画像の背景色を特定する(S22)。   Next, the image processing apparatus 20 specifies the background color of the input image (S22).

ついで、画像処理装置20は、入力画像の中から、背景色の領域で区画される各領域を、画像オブジェクト領域として抽出する(S23)。すなわち、画像処理装置20は、背景上の画像オブジェクト領域を検出する。   Next, the image processing apparatus 20 extracts each area partitioned by the background color area from the input image as an image object area (S23). That is, the image processing device 20 detects an image object area on the background.

ついで、画像処理装置20は、上記抽出された画像オブジェクト領域の画像の全てについて、第1の実施の形態と同様の方法で、画像の種類を判定する(S24)。   Next, the image processing apparatus 20 determines the type of image for all the extracted image object region images by the same method as in the first embodiment (S24).

そして、画像処理装置20は、上記ステップS24の判定の結果に基づき、各画像オブジェクト領域の画像に対し、当該画像の種類に応じた画像処理を施す(S25)。   Then, the image processing device 20 performs image processing corresponding to the type of the image on the image of each image object region based on the determination result of step S24 (S25).

[第3の実施の形態]
図13は、第3の実施の形態に係る画像処理装置30の構成の一例を示すブロック図である。この画像処理装置30は、入力画像の中から画像構成要素の領域(すなわち画像構成要素領域)を抽出し、抽出された画像構成要素領域を文字領域と絵柄領域とに分類し、絵柄領域に分類された画像構成要素領域の画像の種類を判定し、画像の種類に応じた画像処理を当該画像構成要素領域の画像に施すものである。以下の説明では、画像構成要素を「画像オブジェクト」と称し、画像構成要素領域を「画像オブジェクト領域」と称す。
[Third Embodiment]
FIG. 13 is a block diagram illustrating an example of the configuration of the image processing apparatus 30 according to the third embodiment. The image processing apparatus 30 extracts an image component area (that is, an image component area) from the input image, classifies the extracted image component area into a character area and a picture area, and classifies it into a picture area. The type of the image in the image component area is determined, and image processing corresponding to the type of image is performed on the image in the image component area. In the following description, an image component is referred to as an “image object”, and an image component region is referred to as an “image object region”.

画像処理装置30の実現態様は、上記第1の実施の形態と同様である。すなわち、画像処理装置30は、ハードウェア資源とソフトウェアとの協働により実現されてもよいし、ハードウェアのみにより実現されてもよい。また、画像処理装置30は、物理的に1つの装置により実現されてもよいし、複数の装置により実現されてもよい。また、画像処理装置30の機能を実現するための画像処理プログラムは、コンピュータ読み取り可能な記録媒体に記録されて提供されることも可能であるし、データ信号として通信により提供されることも可能である。   The implementation mode of the image processing apparatus 30 is the same as that of the first embodiment. That is, the image processing apparatus 30 may be realized by cooperation of hardware resources and software, or may be realized only by hardware. Further, the image processing apparatus 30 may be physically realized by one apparatus or may be realized by a plurality of apparatuses. The image processing program for realizing the functions of the image processing apparatus 30 can be provided by being recorded on a computer-readable recording medium or can be provided by communication as a data signal. is there.

図13に示されるように、画像処理装置30は、画像受付部31、背景色特定部32、領域抽出部33、分類部34、種類判定部35、および画像処理部36を有する。   As illustrated in FIG. 13, the image processing apparatus 30 includes an image receiving unit 31, a background color specifying unit 32, an area extracting unit 33, a classification unit 34, a type determining unit 35, and an image processing unit 36.

画像受付部31は、画像(以下、「入力画像」と称す)を受け付ける。入力画像は、上記第2の実施の形態と同様である。   The image receiving unit 31 receives an image (hereinafter referred to as “input image”). The input image is the same as in the second embodiment.

背景色特定部32は、画像受付部31により受け付けられた入力画像の背景色を特定する。背景色特定部32の処理は、上記第2の実施の形態の背景色特定部22の処理と同様である。   The background color specifying unit 32 specifies the background color of the input image received by the image receiving unit 31. The processing of the background color specifying unit 32 is the same as the processing of the background color specifying unit 22 of the second embodiment.

領域抽出部33は、上記入力画像の中から、上記背景色の領域(すなわち背景領域)で区画される領域を、画像オブジェクト領域として抽出する。領域抽出部33の処理は、上記第2の実施の形態の領域抽出部23の処理と同様である。   The area extraction unit 33 extracts an area partitioned by the background color area (that is, the background area) from the input image as an image object area. The processing of the region extraction unit 33 is the same as the processing of the region extraction unit 23 of the second embodiment.

分類部34は、領域抽出部33により抽出された画像オブジェクト領域を、線のみで構成される領域(以下、「文字領域」と称す)と、それ以外の領域(以下、「絵柄領域」と称す)とに分類する。   The classification unit 34 refers to the image object region extracted by the region extraction unit 33 as a region composed of only lines (hereinafter referred to as “character region”) and other regions (hereinafter referred to as “picture region”). ).

上記文字領域は、例えば、文字、表、線画など、線のみで構成される領域である。   The character area is an area composed of only lines, such as characters, tables, and line drawings.

一つの態様では、分類部34は、抽出された各画像オブジェクト領域の外接矩形を特定し、当該外接矩形に基づいて、各画像オブジェクト領域を文字領域と絵柄領域とに分類する。具体的には、分類部34は、画像オブジェクト領域の外接矩形の大きさ(例えば面積)が所定未満である場合には、当該画像オブジェクト領域を文字領域に分類し、外接矩形の大きさが所定以上である場合には、当該外接矩形に占める画像オブジェクトの割合(例えば面積比)が所定未満であるときには、当該画像オブジェクト領域を文字領域に分類し、当該外接矩形に占める画像オブジェクト領域の割合が所定以上であるときには、当該画像オブジェクト領域を絵柄領域に分類する。   In one aspect, the classification unit 34 specifies a circumscribed rectangle of each extracted image object area, and classifies each image object area into a character area and a picture area based on the circumscribed rectangle. Specifically, when the size (for example, area) of the circumscribed rectangle of the image object region is less than a predetermined value, the classification unit 34 classifies the image object region into a character region, and the size of the circumscribed rectangle is predetermined. In the above case, when the ratio (for example, area ratio) of the image object occupying the circumscribed rectangle is less than a predetermined value, the image object area is classified as a character area, and the ratio of the image object area occupying the circumscribed rectangle is When it is equal to or greater than the predetermined value, the image object area is classified into a pattern area.

例えば、図9〜11の例では、分類部34は、ラベル番号1〜3の画像オブジェクト領域を絵柄領域に分類し、ラベル番号4〜6の画像オブジェクト領域を文字領域に分類する。   For example, in the example of FIGS. 9 to 11, the classification unit 34 classifies the image object areas with the label numbers 1 to 3 into picture areas and classifies the image object areas with the label numbers 4 to 6 into character areas.

種類判定部35は、分類部34により絵柄領域に分類された画像オブジェクト領域の画像の種類を、上記第1の実施の形態の種類判定部12と同様に判定する。具体的には、種類判定部35は、絵柄領域に分類された各画像オブジェクト領域の画像を対象画像として、種類判定部12と同様に対象画像の種類を判定する。図9〜11の例では、種類判定部35は、ラベル番号1〜3の3つの画像オブジェクト領域のそれぞれの画像の種類を判定する。例えば、種類判定部35は、ラベル番号1の画像オブジェクト領域の画像(すなわち前景51)について多色/連続階調画像であると判定し、ラベル番号2,3の画像オブジェクト領域の画像(すなわち前景52,53)については少色非連続階調画像であると判定する。   The type determination unit 35 determines the image type of the image object area classified into the pattern area by the classification unit 34 in the same manner as the type determination unit 12 of the first embodiment. Specifically, the type determination unit 35 determines the type of the target image in the same manner as the type determination unit 12 using the images of the respective image object areas classified into the pattern areas as target images. In the example of FIGS. 9 to 11, the type determination unit 35 determines the type of each image in the three image object areas with label numbers 1 to 3. For example, the type determination unit 35 determines that the image of the image object area with label number 1 (ie, foreground 51) is a multicolor / continuous tone image, and the image of the image object area with label numbers 2 and 3 (ie, foreground). 52, 53) are determined to be low-color non-continuous tone images.

画像処理部36は、上記第1の実施の形態の画像処理部13と同様に、種類判定部35の判定結果に基づき、対象画像の種類に応じた画像処理を対象画像に施す。図9〜11の例では、画像処理部36は、ラベル番号1〜3の3つの画像オブジェクト領域の画像のそれぞれについて、当該画像オブジェクト領域の画像の種類に応じた画像処理を当該画像オブジェクト領域の画像に施す。例えば、画像処理部36は、ラベル番号1の画像オブジェクト領域の画像上の文字「ABC」を、多色/連続階調画像(または連続階調画像)に適した文字抽出方法により抽出し、ラベル番号2,3の画像オブジェクト領域の画像上の文字「DEFGHI」,「JKL」を、少色非連続階調画像(または非連続階調画像)に適した文字抽出方法により抽出する。   Similar to the image processing unit 13 of the first embodiment, the image processing unit 36 performs image processing corresponding to the type of the target image on the target image based on the determination result of the type determination unit 35. In the example of FIGS. 9 to 11, the image processing unit 36 performs image processing corresponding to the image type of the image object area for each of the three image object areas with the label numbers 1 to 3. Apply to images. For example, the image processing unit 36 extracts the character “ABC” on the image of the image object area with the label number 1 by a character extraction method suitable for a multicolor / continuous gradation image (or continuous gradation image), Characters “DEFGHI” and “JKL” on the images of the image object areas of numbers 2 and 3 are extracted by a character extraction method suitable for a low-color non-continuous tone image (or non-continuous tone image).

図14は、第3の実施の形態に係る画像処理装置30の動作の一例を示すフローチャートである。以下、図14を参照して、画像処理装置30の動作の一例を説明する。   FIG. 14 is a flowchart illustrating an example of the operation of the image processing apparatus 30 according to the third embodiment. Hereinafter, an example of the operation of the image processing apparatus 30 will be described with reference to FIG.

画像処理装置30は、入力画像(例えば24ビットフルカラー画像データ)を受け付ける(S31)。   The image processing apparatus 30 receives an input image (for example, 24-bit full color image data) (S31).

ついで、画像処理装置30は、入力画像の背景色を特定する(S32)。   Next, the image processing device 30 specifies the background color of the input image (S32).

ついで、画像処理装置30は、入力画像の中から、背景色の領域で区画される各領域を、画像オブジェクト領域として抽出する(S33)。すなわち、画像処理装置30は、背景上の画像オブジェクト領域を検出する。   Next, the image processing apparatus 30 extracts each area partitioned by the background color area from the input image as an image object area (S33). That is, the image processing apparatus 30 detects an image object area on the background.

ついで、画像処理装置30は、上記ステップS33で抽出された各画像オブジェクト領域を文字領域と絵柄領域とに分類する(S34)。   Next, the image processing apparatus 30 classifies each image object area extracted in step S33 into a character area and a picture area (S34).

ついで、画像処理装置30は、上記ステップS34で絵柄領域に分類された画像オブジェクト領域の画像の全てについて、第1の実施の形態と同様の方法で、画像の種類を判定する(S35)。具体的には、画像処理装置30は、絵柄領域に分類された各画像オブジェクト領域の画像を、少色非連続階調画像と多色/連続階調画像とに分類する。   Next, the image processing apparatus 30 determines the type of image for all the images in the image object area classified as the picture area in step S34 by the same method as in the first embodiment (S35). Specifically, the image processing apparatus 30 classifies the image of each image object area classified into the pattern area into a low-color non-continuous tone image and a multi-color / continuous-tone image.

そして、画像処理装置30は、上記ステップS35の判定の結果に基づき、各画像オブジェクト領域の画像に対し、当該画像の種類に応じた画像処理を施す(S36)。具体的には、画像処理装置30は、少色非連続階調画像に分類された画像については、少色非連続階調画像(または非連続階調画像)に適した文字抽出方法を使用して、当該画像上の文字を抽出し、多色/連続階調画像に分類された画像については、多色/連続階調画像(または連続階調画像)に適した文字抽出方法を使用して、当該画像上の文字を抽出する。   Then, the image processing apparatus 30 performs image processing according to the type of the image on the image of each image object region based on the determination result of step S35 (S36). Specifically, the image processing apparatus 30 uses a character extraction method suitable for a low-color non-continuous tone image (or non-continuous-tone image) for images classified as low-color non-continuous tone images. Then, characters extracted from the image are classified into a multi-color / continuous tone image, and a character extraction method suitable for the multi-color / continuous tone image (or continuous tone image) is used. Then, characters on the image are extracted.

[第4の実施の形態]
第4の実施の形態に係る画像処理装置は、上記第1から第3の実施の形態に係る画像処理装置と殆ど同じであるが、種類判定部が対象画像を縮小して縮小画像を生成し、当該縮小画像に基づいて対象画像の種類を判定する点で相違する。以下、第4の実施の形態における種類判定部の処理を説明する。なお、第4の実施の形態における種類判定部の処理のうち、第1から第3の実施の形態と共通する部分については、説明を省略または簡略化する。
[Fourth Embodiment]
The image processing apparatus according to the fourth embodiment is almost the same as the image processing apparatuses according to the first to third embodiments, but the type determination unit reduces the target image and generates a reduced image. The difference is that the type of the target image is determined based on the reduced image. Hereinafter, the process of the type determination unit in the fourth embodiment will be described. Note that, in the processing of the type determination unit in the fourth embodiment, description of parts common to the first to third embodiments will be omitted or simplified.

本実施の形態では、種類判定部は、対象画像を所定解像度に縮小して縮小画像を生成し、当該縮小画像の画素値のヒストグラムの微分値に基づき、または当該ヒストグラムと当該ヒストグラムの微分値とに基づき、対象画像の種類を判定する。具体的には、種類判定部は、上記縮小画像のヒストグラムの微分値に基づき、またはヒストグラムとその微分値とに基づき、上記第1から第3の実施の形態と同様に、対象画像の種類を判定する。   In the present embodiment, the type determination unit generates a reduced image by reducing the target image to a predetermined resolution, and based on the differential value of the histogram of the pixel value of the reduced image, or the histogram and the differential value of the histogram Based on the above, the type of the target image is determined. Specifically, the type determination unit determines the type of the target image based on the differential value of the histogram of the reduced image or on the basis of the histogram and the differential value, as in the first to third embodiments. judge.

上記縮小処理は、例えば次の観点より行われるものである。印刷物や、印刷物をスキャンして得られるスキャン画像では、単色領域も網点により表現されるため、単色領域内で色のバラツキがある。このような画像に対して縮小処理を施すと、色が均一化され、単色領域内の色のバラツキが抑えられる。縮小画像の画素値のヒストグラムでは、元の印刷物の画像のヒストグラムと比較して、ピークの形状が鋭くなる。   The reduction process is performed from the following viewpoint, for example. In a printed material or a scanned image obtained by scanning the printed material, a monochrome region is also represented by a halftone dot, and thus there is a color variation within the monochrome region. When the reduction process is performed on such an image, the colors are made uniform, and variations in colors within the monochromatic region are suppressed. In the histogram of the pixel values of the reduced image, the peak shape is sharper than the histogram of the original printed image.

対象画像中に画素値の差(例えば輝度値または明度値の階調差)が大きなエッジ部(境界部)が存在する場合、対象画像を単純に縮小すると、元々無かった色が作り出される可能性がある。例えば、対象画像が画素値0の領域と画素値255の領域との境界を含む場合、対象画像の画素値のヒストグラムでは、画素値0,255にピークが現れるが、対象画像の解像度を1/2に縮小した縮小画像の画素値のヒストグラムでは、画素値0,64,128,192,255にピークが現れる。   If there is an edge part (boundary part) with a large pixel value difference (for example, luminance value or brightness value gradation difference) in the target image, simply reducing the target image may produce a color that did not exist originally. There is. For example, when the target image includes a boundary between a region having a pixel value of 0 and a region having a pixel value of 255, a peak appears at pixel values 0 and 255 in the pixel value histogram of the target image, but the resolution of the target image is reduced to 1 / In the histogram of pixel values of a reduced image reduced to 2, peaks appear at pixel values 0, 64, 128, 192, and 255.

上記事情を回避する観点より、一つの態様では、種類判定部は、対象画像中のエッジ部が保存されるように対象画像を縮小する。   From a viewpoint of avoiding the above circumstances, in one aspect, the type determination unit reduces the target image so that the edge portion in the target image is preserved.

エッジ部を保存しながら対象画像を縮小する方法としては、例えば、以下の第1および第2の縮小方法が挙げられる。   Examples of a method for reducing the target image while preserving the edge portion include the following first and second reduction methods.

(第1の縮小方法)
種類判定部は、対象画像中の複数の参照画素の画素値から縮小画像の1つの画素値を求めることにより、対象画像を所定解像度の縮小画像に変換する。上記複数の参照画素は、例えば、2×2のウィンドウ内の4つの画素である。
(First reduction method)
The type determination unit obtains one pixel value of the reduced image from pixel values of a plurality of reference pixels in the target image, thereby converting the target image into a reduced image having a predetermined resolution. The plurality of reference pixels are, for example, four pixels in a 2 × 2 window.

上記縮小処理において、参照画素の画素値から縮小画像の1つの画素値を求める際、種類判定部は、複数の参照画素の画素値の最大値と最小値を特定し、最大値と最小値の差が所定値より小さい場合には、全部の参照画素の画素値を使用して縮小画像の1つの画素値を求める。例えば、全部の参照画素の画素値の平均値を算出し、当該平均値を縮小画像の画素値とする。一方、最大値と最小値の差が所定値以上である場合には、複数の参照画素の画素値のうちの所定の1つの画素値を縮小画像の1つの画素値として決定する。例えば、複数の参照画素の画素値の中央値、または複数の参照画素の中で最も出現個数が多い画素値を縮小画像の画素値とする。   In the reduction process, when obtaining one pixel value of the reduced image from the pixel value of the reference pixel, the type determination unit specifies the maximum value and the minimum value of the pixel values of the plurality of reference pixels, and sets the maximum value and the minimum value. When the difference is smaller than the predetermined value, one pixel value of the reduced image is obtained using the pixel values of all the reference pixels. For example, the average value of the pixel values of all the reference pixels is calculated, and the average value is set as the pixel value of the reduced image. On the other hand, when the difference between the maximum value and the minimum value is greater than or equal to a predetermined value, one predetermined pixel value among the pixel values of the plurality of reference pixels is determined as one pixel value of the reduced image. For example, the median value of the pixel values of the plurality of reference pixels or the pixel value having the largest number of appearances among the plurality of reference pixels is set as the pixel value of the reduced image.

(第2の縮小方法)
種類判定部は、対象画像中の複数の参照画素の画素値から縮小画像の1つの画素値を求めることにより、対象画像を所定解像度の縮小画像に変換する。
(Second reduction method)
The type determination unit obtains one pixel value of the reduced image from pixel values of a plurality of reference pixels in the target image, thereby converting the target image into a reduced image having a predetermined resolution.

上記縮小処理において、参照画素の画素値から縮小画像の1つの画素値を求める際、種類判定部は、複数の参照画素のうちの所定の基準画素の画素値と、基準画素以外の参照画素のうち基準画素との画素値の差が所定以下である参照画素の画素値とに基づき、縮小画像の1つの画素値を求める。上記複数の参照画素は、例えば3×3のウィンドウ内の9つの画素であり、上記基準画素は、例えば3×3のウィンドウの中心の画素である。   In the reduction process, when obtaining one pixel value of the reduced image from the pixel value of the reference pixel, the type determining unit determines the pixel value of a predetermined standard pixel among the plurality of reference pixels and the reference pixel other than the standard pixel. Among them, one pixel value of the reduced image is obtained based on the pixel value of the reference pixel whose pixel value difference with the reference pixel is equal to or less than a predetermined value. The plurality of reference pixels are, for example, nine pixels in a 3 × 3 window, and the reference pixel is, for example, the center pixel of a 3 × 3 window.

例えば、種類判定部は、基準画素の画素値と、基準画素以外の各参照画素の画素値との差を算出し、算出された差が所定値以下の参照画素の画素値および基準画素の画素値の平均値を算出し、当該平均値を縮小画像の画素値とする。   For example, the type determination unit calculates the difference between the pixel value of the reference pixel and the pixel value of each reference pixel other than the reference pixel, and the pixel value of the reference pixel and the pixel of the reference pixel whose calculated difference is equal to or less than a predetermined value An average value is calculated, and the average value is used as the pixel value of the reduced image.

一つの態様では、種類判定部は、上記第2の縮小方法を使用して対象画像を所定の中間解像度の画像に縮小し、上記第1の縮小方法を使用して上記中間解像度の画像を所定解像度の縮小画像に縮小する。また、別の態様では、種類判定部は、上記第1の縮小方法を使用して対象画像を所定の中間解像度の画像に縮小し、上記第2の縮小方法を使用して上記中間解像度の画像を所定解像度の縮小画像に縮小する。   In one aspect, the type determination unit reduces the target image to a predetermined intermediate resolution image using the second reduction method, and the intermediate resolution image is predetermined using the first reduction method. Reduce to a reduced image with resolution. In another aspect, the type determining unit reduces the target image to an image with a predetermined intermediate resolution using the first reduction method, and uses the second reduction method to output the intermediate resolution image. Is reduced to a reduced image having a predetermined resolution.

なお、本発明は、上記実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で種々変更することができる。   In addition, this invention is not limited to the said embodiment, It can change variously within the range which does not deviate from the summary of this invention.

第1の実施の形態に係る画像処理装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the image processing apparatus which concerns on 1st Embodiment. 一般的な文字・図形画像の、画素値のヒストグラムおよびその微分値の絶対値を示す図である。It is a figure which shows the absolute value of the histogram of a pixel value, and its differential value of a general character and figure image. 一般的な写真画像の、画素値のヒストグラムおよびその微分値の絶対値を示す図である。It is a figure which shows the absolute value of the histogram of a pixel value, and its differential value of a general photographic image. 数色で表現された文字・図形画像の、画素値のヒストグラムおよびその微分値の絶対値を示す図である。It is a figure which shows the absolute value of the histogram of a pixel value, and its differential value of the character and figure image expressed by several colors. 写真画像としては色数が比較的少ない写真画像の、画素値のヒストグラムおよびその微分値の絶対値を示す図である。It is a figure which shows the absolute value of the histogram of a pixel value, and its differential value of a photographic image with relatively few colors as a photographic image. 第1の実施の形態に係る画像処理装置の動作の一例を示すフローチャートである。3 is a flowchart illustrating an example of an operation of the image processing apparatus according to the first embodiment. 種類判定処理の一例を示すフローチャートである。It is a flowchart which shows an example of a kind determination process. 第2の実施の形態に係る画像処理装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the image processing apparatus which concerns on 2nd Embodiment. 入力画像の一例を示す図である。It is a figure which shows an example of an input image. 図9の画像を背景色で2値化して得られる2値画像の一例を示す図である。It is a figure which shows an example of the binary image obtained by binarizing the image of FIG. 9 with a background color. 図9の画像をラベリング処理して得られるラベリング画像の一例を示す図である。It is a figure which shows an example of the labeling image obtained by labeling the image of FIG. 第2の実施の形態に係る画像処理装置の動作の一例を示すフローチャートである。12 is a flowchart illustrating an example of an operation of the image processing apparatus according to the second embodiment. 第3の実施の形態に係る画像処理装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the image processing apparatus which concerns on 3rd Embodiment. 第3の実施の形態に係る画像処理装置の動作の一例を示すフローチャートである。10 is a flowchart illustrating an example of an operation of the image processing apparatus according to the third embodiment.

符号の説明Explanation of symbols

10,20,30 画像処理装置、11,21,31 画像受付部、12,24,35 種類判定部、13,25,36 画像処理部、22,32 背景色特定部、23,33 領域抽出部、34 分類部。   10, 20, 30 Image processing device, 11, 21, 31 Image receiving unit, 12, 24, 35 Type determining unit, 13, 25, 36 Image processing unit, 22, 32 Background color specifying unit, 23, 33 Area extracting unit 34 Classification section.

Claims (11)

対象画像を受け付ける画像受付手段と、
前記対象画像の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する種類判定手段と、
を有することを特徴とする画像処理装置。
Image receiving means for receiving a target image;
Type determination means for determining the type of the target image based on the differential value of the frequency distribution of the pixel values of the target image;
An image processing apparatus comprising:
画像を受け付ける画像受付手段と、
前記画像の背景色を特定する背景色特定手段と、
前記画像の中から、前記背景色の領域で区画される領域を、画像構成要素領域として抽出する領域抽出手段と、
前記抽出された画像構成要素領域の画像(以下、「対象画像」と称す)の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する種類判定手段と、
を有することを特徴とする画像処理装置。
Image receiving means for receiving images;
Background color specifying means for specifying the background color of the image;
An area extracting means for extracting an area partitioned by the background color area from the image as an image component area;
Type determination means for determining the type of the target image based on a differential value of a frequency distribution of pixel values of the extracted image component region image (hereinafter referred to as “target image”);
An image processing apparatus comprising:
画像を受け付ける画像受付手段と、
前記画像の背景色を特定する背景色特定手段と、
前記画像の中から、前記背景色の領域で区画される領域を、画像構成要素領域として抽出する領域抽出手段と、
前記抽出された画像構成要素領域を、線のみで構成される領域と、それ以外の領域(以下、「絵柄領域」と称す)とに分類する分類手段と、
前記絵柄領域に分類された画像構成要素領域の画像(以下、「対象画像」と称す)の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する種類判定手段と、
を有することを特徴とする画像処理装置。
Image receiving means for receiving images;
Background color specifying means for specifying the background color of the image;
An area extracting means for extracting an area partitioned by the background color area from the image as an image component area;
Classifying means for classifying the extracted image component area into an area composed only of lines and an area other than that (hereinafter referred to as a “picture area”);
Type determination means for determining the type of the target image based on the differential value of the frequency distribution of the pixel values of the image component region image (hereinafter referred to as “target image”) classified into the picture region;
An image processing apparatus comprising:
請求項1から3のいずれか1項に記載の画像処理装置であって、
前記種類判定手段は、前記対象画像の画素値の頻度分布と、前記頻度分布の微分値とに基づき、前記対象画像の種類を判定することを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 3,
The image processing apparatus according to claim 1, wherein the type determination unit determines the type of the target image based on a frequency distribution of pixel values of the target image and a differential value of the frequency distribution.
請求項4に記載の画像処理装置であって、
前記種類判定手段は、
前記頻度分布において所定以上の頻度値を有する画素値の数N1が所定の下側閾値より小さい場合には、前記対象画像は比較的少ない色数の非連続階調の画像(以下、「少色非連続階調画像」と称す)であると判定し、
前記画素値の数N1が所定の上側閾値より大きい場合には、前記対象画像は比較的多い色数の画像かまたは連続階調の画像(以下、「多色/連続階調画像」と総称する)であると判定し、
前記画素値の数N1が前記下側閾値以上かつ前記上側閾値以下である場合には、前記微分値の絶対値が所定値以上の画素値の数N2が所定閾値以上であるときには、前記対象画像は少色非連続階調画像であると判定し、前記画素値の数N2が前記所定閾値未満であるときには、前記対象画像は多色/連続階調画像であると判定する、
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 4,
The type determining means includes
When the number N1 of pixel values having a frequency value greater than or equal to a predetermined value in the frequency distribution is smaller than a predetermined lower threshold, the target image is a non-continuous tone image having a relatively small number of colors (hereinafter, “low color It is called a “non-continuous tone image”)
When the number N1 of pixel values is larger than a predetermined upper threshold, the target image is an image having a relatively large number of colors or a continuous tone image (hereinafter collectively referred to as “multicolor / continuous tone image”). )
When the number N1 of pixel values is greater than or equal to the lower threshold and less than or equal to the upper threshold, when the number N2 of pixel values where the absolute value of the differential value is greater than or equal to a predetermined value is greater than or equal to the predetermined threshold, the target image Is determined to be a low-color non-continuous tone image, and when the number N2 of pixel values is less than the predetermined threshold, the target image is determined to be a multi-color / continuous tone image.
An image processing apparatus.
請求項1から5のいずれか1項に記載の画像処理装置であって、
前記種類判定手段は、前記対象画像を所定解像度に縮小して縮小画像を生成し、前記縮小画像の画素値の頻度分布の微分値に基づき、または前記頻度分布と前記頻度分布の微分値とに基づき、前記対象画像の種類を判定することを特徴とする画像処理装置。
An image processing apparatus according to any one of claims 1 to 5,
The type determining unit generates a reduced image by reducing the target image to a predetermined resolution, and based on a differential value of a frequency distribution of pixel values of the reduced image, or based on the frequency distribution and a differential value of the frequency distribution. An image processing apparatus that determines a type of the target image based on the image.
請求項6に記載の画像処理装置であって、
前記種類判定手段は、前記対象画像中のエッジ部が保存されるように前記対象画像を縮小することを特徴とする画像処理装置。
The image processing apparatus according to claim 6,
The image processing apparatus, wherein the type determination unit reduces the target image so that an edge portion in the target image is preserved.
請求項7に記載の画像処理装置であって、
前記種類判定手段は、前記対象画像中の複数の参照画素の画素値から前記縮小画像の1つの画素値を求める際、前記複数の参照画素のうちの所定の基準画素の画素値と、前記基準画素以外の参照画素のうち前記基準画素との画素値の差が所定以下である参照画素の画素値とに基づき、前記縮小画像の1つの画素値を求めることを特徴とする画像処理装置。
The image processing apparatus according to claim 7,
The type determining means, when obtaining one pixel value of the reduced image from pixel values of a plurality of reference pixels in the target image, a pixel value of a predetermined reference pixel of the plurality of reference pixels, and the reference An image processing apparatus that obtains one pixel value of the reduced image based on a pixel value of a reference pixel that has a pixel value difference that is not more than a predetermined value among reference pixels other than pixels.
コンピュータに、
対象画像を受け付ける手順と、
前記対象画像の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する手順と、
を実行させることを特徴とする画像処理プログラム。
On the computer,
A procedure for receiving the target image;
A procedure for determining the type of the target image based on a differential value of a frequency distribution of pixel values of the target image;
An image processing program for executing
コンピュータに、
画像を受け付ける手順と、
前記画像の背景色を特定する手順と、
前記画像の中から、前記背景色の領域で区画される領域を、画像構成要素領域として抽出する手順と、
前記抽出された画像構成要素領域の画像(以下、「対象画像」と称す)の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する手順と、
を実行させることを特徴とする画像処理プログラム。
On the computer,
The procedure for accepting images,
Identifying the background color of the image;
A procedure for extracting an area partitioned by the background color area from the image as an image component area;
A procedure for determining a type of the target image based on a differential value of a frequency distribution of pixel values of the extracted image component region image (hereinafter referred to as “target image”);
An image processing program for executing
コンピュータに、
画像を受け付ける手順と、
前記画像の背景色を特定する手順と、
前記画像の中から、前記背景色の領域で区画される領域を、画像構成要素領域として抽出する手順と、
前記抽出された画像構成要素領域を、線のみで構成される領域と、それ以外の領域(以下、「絵柄領域」と称す)とに分類する手順と、
前記絵柄領域に分類された画像構成要素領域の画像(以下、「対象画像」と称す)の画素値の頻度分布の微分値に基づき、前記対象画像の種類を判定する手順と、
を実行させることを特徴とする画像処理プログラム。
On the computer,
The procedure for accepting images,
Identifying the background color of the image;
A procedure for extracting an area partitioned by the background color area from the image as an image component area;
A procedure for classifying the extracted image component area into an area composed only of lines and an area other than that (hereinafter referred to as a “picture area”);
A procedure for determining the type of the target image based on the differential value of the frequency distribution of the pixel values of the image component region image (hereinafter referred to as “target image”) classified into the pattern region;
An image processing program for executing
JP2008151548A 2008-06-10 2008-06-10 Image processing apparatus and image processing program Expired - Fee Related JP5151708B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008151548A JP5151708B2 (en) 2008-06-10 2008-06-10 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008151548A JP5151708B2 (en) 2008-06-10 2008-06-10 Image processing apparatus and image processing program

Publications (3)

Publication Number Publication Date
JP2009301090A true JP2009301090A (en) 2009-12-24
JP2009301090A5 JP2009301090A5 (en) 2011-07-21
JP5151708B2 JP5151708B2 (en) 2013-02-27

Family

ID=41547960

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008151548A Expired - Fee Related JP5151708B2 (en) 2008-06-10 2008-06-10 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP5151708B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012048300A (en) * 2010-08-24 2012-03-08 Fuji Xerox Co Ltd Image processing device and program
JP2013211807A (en) * 2012-03-30 2013-10-10 Brother Ind Ltd Image processing device and program
WO2014064916A1 (en) * 2012-10-25 2014-05-01 三菱電機株式会社 Image processing device and image processing method
US9449375B2 (en) 2013-01-31 2016-09-20 Mitsubishi Electric Corporation Image processing apparatus, image processing method, program, and recording medium
KR101738105B1 (en) * 2010-10-22 2017-05-22 삼성디스플레이 주식회사 Image Processing Device, Image Processing Method and Flat Panel Display

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334616A (en) * 1994-06-06 1995-12-22 Sharp Corp Image sorting device
JPH09326922A (en) * 1996-06-03 1997-12-16 Fuji Xerox Co Ltd Image processor
JP2001143076A (en) * 1999-11-11 2001-05-25 Fuji Xerox Co Ltd Image processor
JP2003123072A (en) * 2001-10-18 2003-04-25 Nec Corp Image kind identification method and device, and image processing program
JP2006148292A (en) * 2004-11-17 2006-06-08 Pfu Ltd Image processing apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334616A (en) * 1994-06-06 1995-12-22 Sharp Corp Image sorting device
JPH09326922A (en) * 1996-06-03 1997-12-16 Fuji Xerox Co Ltd Image processor
JP2001143076A (en) * 1999-11-11 2001-05-25 Fuji Xerox Co Ltd Image processor
JP2003123072A (en) * 2001-10-18 2003-04-25 Nec Corp Image kind identification method and device, and image processing program
JP2006148292A (en) * 2004-11-17 2006-06-08 Pfu Ltd Image processing apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012048300A (en) * 2010-08-24 2012-03-08 Fuji Xerox Co Ltd Image processing device and program
KR101738105B1 (en) * 2010-10-22 2017-05-22 삼성디스플레이 주식회사 Image Processing Device, Image Processing Method and Flat Panel Display
JP2013211807A (en) * 2012-03-30 2013-10-10 Brother Ind Ltd Image processing device and program
WO2014064916A1 (en) * 2012-10-25 2014-05-01 三菱電機株式会社 Image processing device and image processing method
JP5889431B2 (en) * 2012-10-25 2016-03-22 三菱電機株式会社 Image processing apparatus and image processing method
EP2913795A4 (en) * 2012-10-25 2016-06-29 Mitsubishi Electric Corp Image processing device and image processing method
US9619873B2 (en) 2012-10-25 2017-04-11 Mitsubishi Electric Corporation Image processing device and image processing method
US9449375B2 (en) 2013-01-31 2016-09-20 Mitsubishi Electric Corporation Image processing apparatus, image processing method, program, and recording medium

Also Published As

Publication number Publication date
JP5151708B2 (en) 2013-02-27

Similar Documents

Publication Publication Date Title
JP5875637B2 (en) Image processing apparatus and image processing method
US20040017579A1 (en) Method and apparatus for enhancement of digital image quality
JP2008011267A (en) Image processor, image processing method, image processing program, and memory medium
JP6781406B2 (en) Image processing equipment and computer programs
JP6127877B2 (en) Image processing apparatus and computer program
JP2008005317A (en) Image processor and image processing method, and computer program and recording medium
US8335373B2 (en) Image processing apparatus and control method thereof
JP2007013551A (en) Image processing apparatus and image processing method
JP5151708B2 (en) Image processing apparatus and image processing program
US8620081B2 (en) Image processing apparatus, method, and storage medium for determining attributes
JP6362632B2 (en) Image processing apparatus and image processing method
JP2018056873A (en) Image processing device and computer program
US8285036B2 (en) Image processing method, image processing apparatus, and computer-readable storage medium for computer program
US9781308B2 (en) Non-transitory computer-readable medium
JP6486082B2 (en) Image processing apparatus, image processing method, and program
JP2006050548A (en) Image processing device and method
JP2013102300A (en) Image processor and image processing method
JP4379580B2 (en) Color correction apparatus, color correction method, color correction program, color conversion apparatus, color conversion method, and color conversion program
JPH09247483A (en) Picture emphasizing device
JP6641982B2 (en) Image processing apparatus, image processing method, and program
JP2005235238A (en) Method and apparatus of image processing and storage medium
JP2013102299A (en) Image processor and image processing method
JP2013202927A (en) Image forming method and image forming apparatus
JP4228905B2 (en) Image processing apparatus and program
US11924390B2 (en) Apparatus, method, and storage medium for performing color reduction processing

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110602

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110602

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120517

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120522

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120719

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121106

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121119

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151214

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5151708

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees