JP2007335982A - Image processing apparatus and method, and program and storage medium - Google Patents

Image processing apparatus and method, and program and storage medium Download PDF

Info

Publication number
JP2007335982A
JP2007335982A JP2006162575A JP2006162575A JP2007335982A JP 2007335982 A JP2007335982 A JP 2007335982A JP 2006162575 A JP2006162575 A JP 2006162575A JP 2006162575 A JP2006162575 A JP 2006162575A JP 2007335982 A JP2007335982 A JP 2007335982A
Authority
JP
Japan
Prior art keywords
region
area
integration
noise
image processing
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
JP2006162575A
Other languages
Japanese (ja)
Inventor
Hiroki Kishi
裕樹 岸
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 JP2006162575A priority Critical patent/JP2007335982A/en
Publication of JP2007335982A publication Critical patent/JP2007335982A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus and method, and a program and a storage medium capable of preventing deterioration in the image quality and decreasing a vector code amount in the case of applying vector processing to a scan image. <P>SOLUTION: A clip art conversion section 203 includes: an input section 301; a noise elimination section 302; a region division section 303 for defining a region to a received image on the basis of pixel values to divide the image into a plurality of regions; a region integration section 304 for integrating the same regions among the division regions; a noise region integration section 305 applying discrimination and elimination of noise regions to data as a result of the region integration; a vector processing section 306 for applying vector processing to data after elimination of the noise regions; a halftone region elimination section 307 for eliminating halftone regions from the data after the vector processing; and an output section 308. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像処理装置及び方法、並びにプログラム及び記憶媒体に関し、特に、画像のベクトル化技術に特徴のある画像処理装置及び方法、並びにプログラム及び記憶媒体に関する。   The present invention relates to an image processing apparatus and method, a program, and a storage medium, and more particularly, to an image processing apparatus and method, a program, and a storage medium that are characteristic of image vectorization technology.

複写機や複合機(複写機能、プリンタ機能、ファクシミリ機能などを併せ持つ機器)において、スキャン画像の再利用を実現する技術としてベクトル化技術があり、適用例として、特許文献1、2記載の技術がある。このベクトル化処理の対象となる画像として、図14に示すような、コンピュータで作成し、比較的色数が少ない画像クリップアートがある。
特開2004−246577号公報 特開2004−265384号公報
In copiers and multi-function peripherals (equipment that has copier function, printer function, facsimile function, etc.), there is a vectorization technique as a technique for realizing the reuse of scanned images. is there. As an image to be subjected to this vectorization processing, there is an image clip art created with a computer and having a relatively small number of colors as shown in FIG.
Japanese Patent Laid-Open No. 2004-246577 JP 2004-265384 A

スキャン画像には、スキャン時に発生するスキャンノイズが発生するため、スキャンノイズを取り除くために平滑化フィルタをかける。しかし、平滑化フィルタを用いても図15に示すように、ノイズが広がってしまい、まるでエッジから染み出したような領域(中間調領域)Aが現れることがある。この中間調領域Aは画質上問題であり、また、この中間調領域Aの存在により、余計なベクトル符号量が発生してしまうという問題もある。   Since scan noise generated during scanning occurs in the scan image, a smoothing filter is applied to remove the scan noise. However, even if a smoothing filter is used, as shown in FIG. 15, noise spreads and a region (halftone region) A that appears as if it exudes from the edge may appear. This halftone area A is a problem in image quality, and the presence of this halftone area A also causes an extra vector code amount.

本発明の目的は、スキャン画像のベクトル化に際し、画質の劣化を防止し、かつ、ベクトル符号量を減らすことができる画像処理装置及び方法、並びにプログラム及び記憶媒体を提供することにある。   An object of the present invention is to provide an image processing apparatus and method, a program, and a storage medium that can prevent deterioration in image quality and reduce the vector code amount when vectorizing a scan image.

上記目的を達成するために、請求項1記載の画像処理装置は、入力された画像を、画素値を基に領域を定義して複数の領域に分割する領域分割手段と、分割された領域のうち、同一の領域を統合する領域統合手段と、領域統合結果のデータに対してノイズ領域の判定と除去を行うノイズ領域判定・除去手段と、ノイズ領域除去後のデータに対してベクトル化を行うベクトル化手段と、ベクトル化後のデータに対して中間調領域を除去する中間調領域除去手段とを備えることを特徴とする。   In order to achieve the above object, an image processing apparatus according to claim 1, an area dividing unit that divides an input image into a plurality of areas by defining an area based on a pixel value; Among them, a region integration unit that integrates the same region, a noise region determination / removal unit that determines and removes a noise region from the region integration result data, and vectorization of the data after the removal of the noise region It is characterized by comprising vectorization means and halftone area removal means for removing halftone areas from the vectorized data.

請求項6記載の画像処理方法は、入力された画像を、画素値を基に領域を定義して複数の領域に分割する領域分割ステップと、分割された領域のうち、同一の領域を統合する領域統合ステップと、領域統合結果のデータに対してノイズ領域の判定と除去を行うノイズ領域判定・除去ステップと、ノイズ領域除去後のデータに対してベクトル化を行うベクトル化ステップと、ベクトル化後のデータに対して中間調領域を除去する中間調領域除去ステップとを備えることを特徴とする。   The image processing method according to claim 6, wherein an input image is defined based on pixel values and divided into a plurality of areas, and the same area among the divided areas is integrated. A region integration step, a noise region determination / removal step for determining and removing a noise region from the region integration result data, a vectorization step for vectorizing the data after the noise region removal, and a post-vectorization A halftone area removing step for removing the halftone area from the data.

請求項11画像処理プログラムは、入力された画像を、画素値を基に領域を定義して複数の領域に分割する領域分割モジュールと、分割された領域のうち、同一の領域を統合する領域統合モジュールと、領域統合結果のデータに対してノイズ領域の判定と除去を行うノイズ領域判定・除去モジュールと、ノイズ領域除去後のデータに対してベクトル化を行うベクトル化モジュールと、ベクトル化後のデータに対して中間調領域を除去する中間調領域除去モジュールとをコンピュータに実行させることを特徴とする。   11. An image processing program comprising: an area dividing module for defining an area based on pixel values and dividing the input image into a plurality of areas; and area integration for integrating the same area among the divided areas. A module, a noise area determination / removal module for determining and removing a noise area from the data of the area integration result, a vectorization module for vectorizing the data after the noise area removal, and data after vectorization On the other hand, the computer is caused to execute a halftone area removing module for removing a halftone area.

請求項12記載のコンピュータ読み取り可能な記憶媒体は、請求項11記載の画像処理プログラムを格納する。   A computer-readable storage medium according to a twelfth aspect stores the image processing program according to the eleventh aspect.

本発明によれば、入力された画像を、画素値を基に領域を定義して複数の領域に分割すし、分割された領域のうち、同一の領域を統合する。そして、領域統合結果のデータに対してノイズ領域の判定と除去を行い、更にノイズ領域除去後のデータに対してベクトル化を行って、ベクトル化後のデータに対して中間調領域を除去する。従って、画質上問題となる中間調領域はなくなり、スキャン画像のベクトル化に際し、画質の劣化を防止し、かつ、ベクトル符号量を減らすことができる。   According to the present invention, an input image is divided into a plurality of regions by defining regions based on pixel values, and the same region is integrated among the divided regions. Then, the determination and removal of the noise region is performed on the data of the region integration result, and vectorization is performed on the data after the noise region removal, and the halftone region is removed from the data after the vectorization. Therefore, there is no halftone region that causes a problem in image quality, and when the scan image is vectorized, image quality deterioration can be prevented and the vector code amount can be reduced.

以下、本発明の実施の形態を図面を参照しながら詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明の実施の形態に係る画像処理装置としての複合機の構成を概略的に示す図である。   FIG. 1 is a diagram schematically showing a configuration of a multifunction peripheral as an image processing apparatus according to an embodiment of the present invention.

図1において、複合機100は、スキャン部101、領域判定部102、画像変換部103、HDD104、及びプリント部105を備える。   In FIG. 1, the multifunction peripheral 100 includes a scan unit 101, an area determination unit 102, an image conversion unit 103, an HDD 104, and a print unit 105.

次に、その複合機100の動作を説明する。スキャン部101は、ユーザーにより指定された画像をスキャンし、スキャンデータを領域判定部102へ出力する。領域判定部102は、画像中の領域毎に属性を判定した上で、判定結果と画像データを画像変換部103へ出力する。   Next, the operation of the multifunction device 100 will be described. The scan unit 101 scans an image designated by the user and outputs scan data to the region determination unit 102. The area determination unit 102 determines an attribute for each area in the image, and then outputs a determination result and image data to the image conversion unit 103.

ここで、領域の属性の判定は、図14に示したようなCG等で作られたクリップアートと、それ以外の2種類で判定するものとする。本実施形態では、色数が所定閾値(例えば32色)より少ない画像(イラスト画像など)をクリップアートとして判定するものとする。画像変換部103は、画像中の領域の特性に応じて、画像圧縮,ベクトル化等の処理を行い、処理結果をHDD104へ出力する。ユーザーからプリントの指示があると、プリント部105は、HDD105から変換された画像データを読み出しプリントする。   Here, it is assumed that the attribute of the region is determined by a clip art made of CG or the like as shown in FIG. 14 and other two types. In the present embodiment, an image (illustration image or the like) having fewer colors than a predetermined threshold (for example, 32 colors) is determined as a clip art. The image conversion unit 103 performs processing such as image compression and vectorization according to the characteristics of the region in the image, and outputs the processing result to the HDD 104. When there is a print instruction from the user, the print unit 105 reads the image data converted from the HDD 105 and prints it.

図2は、図1における画像変換部の構成を概略的に示す図である。   FIG. 2 is a diagram schematically showing the configuration of the image conversion unit in FIG.

図2において、画像変換部103は、入力部201、JPEG圧縮部202、クリップアート変換部203、統合部204、及び出力部205を備える。   In FIG. 2, the image conversion unit 103 includes an input unit 201, a JPEG compression unit 202, a clip art conversion unit 203, an integration unit 204, and an output unit 205.

次に、その画像変換部103の動作を説明する。領域判定部102により領域判定された画像データは、入力部201に入力され、クリップアートと判定された領域については、クリップアート変換部203へ出力される。また、クリップアート以外と判定された領域についてはJPEG圧縮部202へ出力される。   Next, the operation of the image conversion unit 103 will be described. The image data determined by the region determination unit 102 is input to the input unit 201, and the region determined to be clip art is output to the clip art conversion unit 203. In addition, an area determined to be other than clip art is output to the JPEG compression unit 202.

JPEG圧縮部202は、国際標準方式のJPEG圧縮方式により領域を圧縮して統合部204へ出力する。クリップアート変換部203における処理は後程詳述する。統合部204は、領域毎に処理されたデータを1枚の画像データとして扱えるように、各領域のデータを統合し、ヘッダ等を付加する。出力部205は、統合されて生成された画像データをHDD104へ出力する。   The JPEG compression unit 202 compresses the area by the international standard JPEG compression method and outputs the compressed region to the integration unit 204. The processing in the clip art conversion unit 203 will be described in detail later. The integration unit 204 integrates the data of each region and adds a header or the like so that the data processed for each region can be handled as one piece of image data. The output unit 205 outputs the integrated and generated image data to the HDD 104.

図3は、図2におけるクリップアート変換部の構成を概略的に示す図である。   FIG. 3 is a diagram schematically showing the configuration of the clipart conversion unit in FIG.

図3において、クリップアート変換部203は、入力部301、ノイズ除去部302、領域分割部303、領域統合部304、ノイズ領域統合部305、ベクトル化部306、中間調領域除去部307、及び出力部308を備える。   In FIG. 3, the clip art conversion unit 203 includes an input unit 301, a noise removal unit 302, a region division unit 303, a region integration unit 304, a noise region integration unit 305, a vectorization unit 306, a halftone region removal unit 307, and an output. Part 308.

次に、そのクリップアート変換部203の動作を説明する。入力部301は、クリップアートと判定された領域のデータ(以下単にクリップアート画像)を入力して、ノイズ除去部302へ出力する。   Next, the operation of the clip art conversion unit 203 will be described. The input unit 301 inputs data of an area determined to be clip art (hereinafter simply referred to as “clip art image”) and outputs the data to the noise removal unit 302.

ノイズ除去部302は、主にスキャン時に発生したスキャンノイズを抑制するために、ガウシアンフィルタ等の平滑化フィルタによるフィルタリングをクリップアート画像に実施し、その結果を領域分割部303へ出力する。領域分割部303は、図4のフローチャートに従ってクリップアート画像を分割する。   The noise removing unit 302 performs filtering on a clipart image by using a smoothing filter such as a Gaussian filter in order to suppress scan noise generated mainly during scanning, and outputs the result to the region dividing unit 303. The area dividing unit 303 divides the clipart image according to the flowchart of FIG.

図4は、図3における領域分割部によって実行される領域分割処理の手順を示すフローチャートである。   FIG. 4 is a flowchart showing the procedure of the area dividing process executed by the area dividing unit in FIG.

図4において、まず、ラスタスキャンしたスタートの画素により、最初のクラスタを生成する(ステップS401)。そして、次の画素に対して、全てのクラスタ間との類似度を求める(ステップS402)。類似度が高いほど、画素とクラスタとの特徴が近いと考えられる。ここでは、類似度の計算にRGB値を用いるが、他のカラー空間の情報、あるいは、カラー以外の情報を特徴量としても使える。   In FIG. 4, first, a first cluster is generated from the start pixel subjected to raster scanning (step S401). Then, the similarity between all the clusters is obtained for the next pixel (step S402). The higher the similarity, the closer the characteristics of the pixel and cluster. Here, RGB values are used for calculating the similarity, but information on other color spaces or information other than color can also be used as the feature amount.

次に、一番高い類似度とこの類似度に対応したクラスタ番号を記録し、この類似度を事前に設定された閾値と比較する(ステップS403)。類似度が閾値より高ければ、対象画素を記録されたクラスタに属させる(ステップS404)。類似度が閾値より低ければ、対象画素により新たなクラスタを生成する(ステップS405)。   Next, the highest similarity and the cluster number corresponding to this similarity are recorded, and this similarity is compared with a preset threshold value (step S403). If the similarity is higher than the threshold, the target pixel belongs to the recorded cluster (step S404). If the similarity is lower than the threshold, a new cluster is generated by the target pixel (step S405).

そして、全ての画素に対する処理が終わるかどうかを判断する(ステップS406)。未処理の画素があれば、ステップS402に戻り、以上の処理を繰り返し実行する。未処理の画素がなければ、領域分割処理を終了する。   Then, it is determined whether or not the processing for all the pixels is finished (step S406). If there is an unprocessed pixel, the process returns to step S402 and the above process is repeated. If there is no unprocessed pixel, the area division process is terminated.

このようにして領域分割されたデータについて、領域統合部304は図5のフローチャートに従い、同一と思われる領域を統合する。   With respect to the data divided in this way, the region integration unit 304 integrates regions that are considered to be the same according to the flowchart of FIG.

図5は、図3における領域統合部によって実行される領域統合処理の手順を示すフローチャートである。   FIG. 5 is a flowchart showing a procedure of region integration processing executed by the region integration unit in FIG.

図5において、まず、分離したい領域数の目標値を入力する(ステップS501)。本実施の形態では、何色くらいに分離するかの目安にする。そして、現在のクラスタの数を数え(ステップS502)、現在のクラスタの数を目標値と比較する(ステップS503)。   In FIG. 5, first, a target value for the number of regions to be separated is input (step S501). In the present embodiment, this is a guide for how many colors are separated. Then, the number of current clusters is counted (step S502), and the number of current clusters is compared with a target value (step S503).

現在のクラスタ数が目標値より多ければ、クラスタの統合を行う(ステップS504、S505)。ステップS504では、各クラスタ間の類似度を計算し、その中から一番類似度の高い2つのクラスタを統合処理の対象とする。ステップS505では、統合処理対象の2つのクラスタを1つに統合する。   If the current number of clusters is greater than the target value, cluster integration is performed (steps S504 and S505). In step S504, the degree of similarity between the clusters is calculated, and two clusters having the highest degree of similarity are selected as the targets of the integration process. In step S505, the two clusters to be integrated are integrated into one.

1回目の領域統合が終わった後、再びステップS502に戻り、クラスタの数を数える。クラスタ数が目標値より高ければ、クラスタ統合処理を繰り返し実行し、そうでなければ、領域統合処理を終了する。   After the first region integration is completed, the process returns to step S502 again, and the number of clusters is counted. If the number of clusters is higher than the target value, the cluster integration process is repeatedly executed. If not, the area integration process is terminated.

領域統合部304は、領域の統合処理を終えると、データをノイズ領域統合部305へ出力し、ノイズ領域統合部305において、エッジ近傍におけるノイズの存在の有無の判定を行う。   When the region integration processing is finished, the region integration unit 304 outputs data to the noise region integration unit 305, and the noise region integration unit 305 determines whether noise exists in the vicinity of the edge.

なお、このノイズはJPEG圧縮によるモスキートノイズ等であり、JPEG圧縮部202における圧縮により生成されたものではない。スキャン対象の画像がJPEG圧縮されたデータのプリントアウトであるために、スキャン対象画像上(つまりハードコピー上)に存在していたものである。   This noise is mosquito noise or the like due to JPEG compression, and is not generated by compression in the JPEG compression unit 202. Since the image to be scanned is a printout of JPEG-compressed data, it exists on the image to be scanned (that is, on the hard copy).

図6は、図3におけるノイズ領域統合部で判定されるノイズを示す図である。   FIG. 6 is a diagram illustrating noise determined by the noise region integration unit in FIG. 3.

図6において、クラスタ(1)61とクラスタ(2)62は、領域分割処理及び領域統合処理後のクラスタから代表として選ばれた二つのクラスタ例である。これらのクラスタに小さな領域(ノイズ領域)が沢山あり、そのままクラスタの輪郭線と内部色情報をベクトルデータに変換すれば、データ量が膨大となり問題となる。   In FIG. 6, cluster (1) 61 and cluster (2) 62 are two examples of clusters selected as representatives from the cluster after the area dividing process and the area integrating process. There are many small areas (noise areas) in these clusters, and if the cluster outlines and internal color information are converted into vector data as they are, the amount of data becomes enormous and becomes a problem.

この問題を解決するため、ノイズ領域統合(ノイズ領域の判定と除去)を行う。この処理について、図7のフローチャートを用いて説明する。   In order to solve this problem, noise area integration (determination and removal of noise areas) is performed. This process will be described with reference to the flowchart of FIG.

図7は、図3におけるノイズ領域統合部によって実行されるノイズ領域統合処理の手順を示す図である。   FIG. 7 is a diagram illustrating a procedure of noise region integration processing executed by the noise region integration unit in FIG.

図7において、まず、ノイズ領域の判定を行う(ステップS701)。本実施の形態においては、領域の面積(画素数)が所定値より小さい場合、ノイズ領域と判定する。そして、ノイズ画素と各隣接クラスタ間の類似度を計算し、ノイズ画素を計算された類似度から一番類似度の高いクラスタに属させる(ステップS702)。   In FIG. 7, first, a noise region is determined (step S701). In the present embodiment, when the area (number of pixels) of the region is smaller than a predetermined value, it is determined as a noise region. Then, the similarity between the noise pixel and each adjacent cluster is calculated, and the noise pixel is assigned to the cluster having the highest similarity from the calculated similarity (step S702).

最後に、このノイズ領域の全てのノイズ画素に対する除去処理が終わるかどうかを判断する(ステップS703)。未処理の画素があれば、ステップS701に戻り、以上の処理を繰り返し実行する。未処理の画素がなければ、このノイズ領域のノイズ除去処理を終了する。   Finally, it is determined whether or not the removal process for all the noise pixels in the noise region is finished (step S703). If there is an unprocessed pixel, the process returns to step S701, and the above process is repeated. If there is no unprocessed pixel, the noise removal processing in this noise region is terminated.

ベクトル化部306は、背景領域以外の領域に対してベクトル化を行い、その結果を出力部308へ出力する。なおベクトル化の手法としては、ベジエ曲線近似等が考えられる。   Vectorization section 306 performs vectorization on an area other than the background area, and outputs the result to output section 308. As a vectorization method, Bezier curve approximation or the like can be considered.

中間調領域除去部307は、領域毎に領域の面積に対するベクトル符号量の比(ベクトル符号量比)を調べ、ベクトル符号量比が所定値以上の領域については、中間調領域と考えて、隣接する領域のうち色が近い領域へ統合する。例えば、図11において、領域Xが中間調領域だとした場合、隣接領域A,B,Cの中で色に関してAが一番近いので、XをAに統合する(XをAと同色に着色する)。   The halftone area removing unit 307 examines the ratio of the vector code amount to the area of each area (vector code amount ratio) for each area, and considers an area where the vector code quantity ratio is equal to or greater than a predetermined value as a halftone area. Of the areas to be merged into areas with similar colors. For example, in FIG. 11, if region X is a halftone region, A is the closest to the color in adjacent regions A, B, and C, so X is integrated into A (X is colored the same color as A). To do).

図8は、図3における中間調領域除去部の構成を概略的に示す図である。   FIG. 8 is a diagram schematically showing the configuration of the halftone area removing unit in FIG.

図8において、中間調領域除去部307は、判定部801と統合部802とを備える。   In FIG. 8, the halftone area removal unit 307 includes a determination unit 801 and an integration unit 802.

図9は、図8における判定部によって実行される、第1の実施の形態に係る中間調領域判定処理の手順を示すフローチャートである。   FIG. 9 is a flowchart showing the procedure of the halftone area determination process according to the first embodiment, which is executed by the determination unit in FIG.

図9において、まず、全領域をサーチして領域数をカウントする(ステップS901)。本実施の形態においては領域数をNとする。処理した領域の数を数えるカウンタを“0”に設定し(ステップS902)、カウンタの値がNと等しいか判断する(ステップS903)。   In FIG. 9, first, the whole area is searched and the number of areas is counted (step S901). In this embodiment, the number of regions is N. A counter that counts the number of processed areas is set to “0” (step S902), and it is determined whether the counter value is equal to N (step S903).

カウンタの値がNと等しくなければ(ステップS903でNО)、カウンタの値に対応する領域に関してベクトル量(Amount)を測定し(ステップS904)、画素数(num)をカウントする(ステップS905)。   If the counter value is not equal to N (NO in step S903), the vector amount (Amount) is measured for the region corresponding to the counter value (step S904), and the number of pixels (num) is counted (step S905).

続いて、ベクトル量と画素数の比(Amount/num)を求めて所定の閾値と比較し(ステップS906)、比が閾値以上であれば(ステップS906でYES)、統合処理を行い(ステップS907)、処理をステップS908へ進める。   Subsequently, the ratio (Amount / num) of the vector amount and the number of pixels is obtained and compared with a predetermined threshold (step S906). If the ratio is equal to or greater than the threshold (YES in step S906), an integration process is performed (step S907). ), The process proceeds to step S908.

一方、比が閾値未満であれば(ステップS906でNO)、処理をステップS908へ進める。ステップS908では、カウンタをインクリメントし、処理をステップS903へ戻す。ステップS903で、カウンタの値がNと等しければ(ステップS903でYES)、処理を終了する。   On the other hand, if the ratio is less than the threshold value (NO in step S906), the process proceeds to step S908. In step S908, the counter is incremented, and the process returns to step S903. If the value of the counter is equal to N in step S903 (YES in step S903), the process ends.

図10は、図8における統合部によって実行される、第1の実施の形態に係る中間調領域統合処理の手順を示すフローチャートであり、図9のステップS907で実行される統合処理のフローチャートである。   FIG. 10 is a flowchart showing the procedure of the halftone area integration processing according to the first embodiment, which is executed by the integration unit in FIG. 8, and is a flowchart of the integration processing executed in step S907 in FIG. .

図10において、まず、注目領域の隣接領域をサーチして数える(ステップS1001)。本実施の形態においては、隣接領域の数をMとする。次いで、妥当な統合先であるか検証する処理を行った隣接領域を数えるカウンタを“0”に設定し、エッジ強度の最小値を格納する変数(Kmin)に、エッジ強度として出現しない大きさの数を設定する(ステップS1002)。   In FIG. 10, first, the adjacent region of the region of interest is searched and counted (step S1001). In the present embodiment, the number of adjacent regions is M. Next, a counter that counts adjacent regions that have been processed to verify whether they are valid integration destinations is set to “0”, and the variable that stores the minimum value of edge strength (Kmin) has a size that does not appear as edge strength. A number is set (step S1002).

例えば、Kminに設定する値として、画像のビット精度が8ビットであれば、2の32乗を与えれば十分である。続いて、カウンタがMと等しいか判断する(ステップS1003)。等しくなければ(ステップS1003でNO)、カウンタの値に対応する領域と、中間調領域の間の平均エッジ強度(Ki)を測定する(ステップS1004)。   For example, if the bit precision of the image is 8 bits, it is sufficient to give 2 to the 32nd power as the value set for Kmin. Subsequently, it is determined whether the counter is equal to M (step S1003). If not equal (NO in step S1003), the average edge intensity (Ki) between the area corresponding to the counter value and the halftone area is measured (step S1004).

ここで平均エッジ強度とは、2つの領域境界を構成する各画素に対して、ソーベルフィルタ等のフィルタリングを実施して得られた強度を求め、各画素のエッジ強度の和を求めて、エッジを構成する画素数で割って得られる値である。   Here, the average edge strength is obtained by performing the filtering such as the Sobel filter on each pixel constituting the boundary between the two regions, obtaining the sum of the edge strengths of the respective pixels, Is obtained by dividing by the number of pixels constituting.

次に、KminとKiの大きさを比較して(ステップS1005)、KiがKminより小さければ(ステップS1005でYES)、KminにKiを代入して(ステップS1006)、処理をステップS1007へ進める。一方KiがKminより大きければ、処理をステップS1007へ進める。ステップS1007ではカウンタをインクリメントし処理をS1003へ戻す。   Next, the magnitudes of Kmin and Ki are compared (step S1005). If Ki is smaller than Kmin (YES in step S1005), Ki is substituted for Kmin (step S1006), and the process proceeds to step S1007. On the other hand, if Ki is larger than Kmin, the process proceeds to step S1007. In step S1007, the counter is incremented, and the process returns to S1003.

ステップS1003でi=Mであれば、エッジ強度Kminを持つ領域と同じ色で、中間調領域を着色し(ステップS1008)、処理を終了する。   If i = M in step S1003, the halftone area is colored with the same color as the area having the edge strength Kmin (step S1008), and the process ends.

出力部308は、入力されたデータを統合部204へ出力する。   The output unit 308 outputs the input data to the integration unit 204.

以上説明した通り、本実施の形態における画像処理装置は、中間調領域を隣接領域へ統合することで、データ量の抑制を実現できる。   As described above, the image processing apparatus according to the present embodiment can realize a reduction in data amount by integrating halftone areas into adjacent areas.

第1の実施の形態においては、ベクトル量と画素数の比(Amount/num)を基に中間調領域を特定し、エッジ強度の平均値を基に統合する隣接領域を決めた。中間調領域の特定に関して、ベクトル量と画素数の比(Amount/num)だけでは、原画像に存在する領域を除去してしまうこともあり得る。   In the first embodiment, the halftone area is specified based on the ratio of the vector amount to the number of pixels (Amount / num), and the adjacent area to be integrated is determined based on the average value of the edge intensity. Regarding the specification of the halftone area, the area existing in the original image may be removed only by the ratio of the vector amount to the number of pixels (Amount / num).

以下に示す第2の実施の形態では、Amount/numの基準でピックアップされた領域を中間調領域の候補とする。そして、候補になった領域に対応する原画像上の領域にノイズと思われる高周波成分が存在したら、候補の中間調領域は当該ノイズが平滑化されることで発生したものであると考え、隣接領域へ統合する。さらに、統合先の選定方法として、本実施の形態では、領域の代表色の色差を基に行う。   In the second embodiment described below, an area picked up based on the Amount / num standard is used as a halftone area candidate. If a high-frequency component that seems to be noise exists in the area on the original image corresponding to the candidate area, the candidate halftone area is considered to be generated by smoothing the noise, and is adjacent to the candidate area. Integrate into the area. Further, in the present embodiment, the integration destination selection method is based on the color difference between the representative colors of the regions.

図12は、図8における判定部によって実行される、第2の実施の形態に係る中間調領域判定処理の手順を示すフローチャートである。   FIG. 12 is a flowchart illustrating a halftone region determination process according to the second embodiment, which is executed by the determination unit in FIG. 8.

図12のフローチャートは、第1の実施の形態におけるフローチャート(図9)に、ステップS1201を付け加え、ステップS907の統合処理をステップS1202へ置き換えたものであり、以下これらのステップのみを説明する。   The flowchart in FIG. 12 is obtained by adding step S1201 to the flowchart (FIG. 9) in the first embodiment and replacing the integration process in step S907 with step S1202, and only these steps will be described below.

ステップS906で、ベクトル量と画素数の比(Amount/num)が閾値より大きい場合、注目領域に対応する、原画像上の領域における高周波成分を測定し、ノイズが存在するかどうか判断する(ステップS1201)。判断方法としては、ソーベルフィルタによりエッジ抽出を行い、所定値以上の強度を持つエッジの数を基に判断する方法等が考えられる。   If the ratio of the vector amount to the number of pixels (Amount / num) is larger than the threshold value in step S906, the high-frequency component in the region on the original image corresponding to the region of interest is measured to determine whether noise exists (step S906). S1201). As a determination method, a method of performing edge extraction using a Sobel filter and determining based on the number of edges having an intensity greater than or equal to a predetermined value can be considered.

高周波成分が所定値以下であると判断した場合(ステップS1201でNO)、注目領域は中間調領域ではないと考え、処理をS908へ進める。高周波成分が所定値以上あると判断した場合(ステップS1501でYES)、注目領域は中間調領域であると考え、処理をステップS1202へ進める。   If it is determined that the high frequency component is equal to or less than the predetermined value (NO in step S1201), the region of interest is considered not to be a halftone region, and the process proceeds to S908. If it is determined that the high frequency component is greater than or equal to the predetermined value (YES in step S1501), the region of interest is considered to be a halftone region, and the process proceeds to step S1202.

図13は、図8における統合部によって実行される、第2の実施の形態に係る中間調領域統合処理の手順を示すフローチャートであり、図12のステップS1202で実行される統合処理のフローチャートである。   FIG. 13 is a flowchart showing the procedure of the halftone area integration processing according to the second embodiment, which is executed by the integration unit in FIG. 8, and is a flowchart of the integration processing executed in step S1202 of FIG. .

図13において、まず、注目領域の隣接領域をサーチして数える(ステップS1301)。本実施の形態においては、隣接領域の数をMとする。次に、妥当な統合先であるか検証する処理を行った隣接領域を数えるカウンタを“0”に設定し、色差の最小値を格納する変数(Smin)に、色差として出現しない大きさの数を設定する(ステップS1302)。   In FIG. 13, first, the adjacent region of the region of interest is searched and counted (step S1301). In the present embodiment, the number of adjacent regions is M. Next, a counter that counts adjacent areas that have been processed to verify whether they are valid integration destinations is set to “0”, and the number of sizes that do not appear as color differences in the variable (Smin) that stores the minimum value of color differences Is set (step S1302).

例えば、Sminに設定する値として、画像のビット精度が8ビットであれば、2の10乗を与えれば十分である。続いて、カウンタがMと等しいか判断する(ステップS1303)。カウンタがMと等しくなければ(ステップS1303でNO)、カウンタの値に対応する領域と、中間調領域の間の色差(Si)を測定する(ステップS1304)。ここで色差とは、2つの領域の代表色の色差のことである。   For example, as the value to be set for Smin, it is sufficient to give 2 to the 10th power if the bit accuracy of the image is 8 bits. Subsequently, it is determined whether the counter is equal to M (step S1303). If the counter is not equal to M (NO in step S1303), the color difference (Si) between the area corresponding to the counter value and the halftone area is measured (step S1304). Here, the color difference is the color difference between the representative colors of the two regions.

次に、SminとSiの大きさを比較して(ステップS1305)、SiがSminより小さければ(ステップS1305でYES)、SminにSiを代入して(ステップS1306)、処理をステップS1307へ進める。一方SiがSminより大きければ、処理をステップS1307へ進める。   Next, the sizes of Smin and Si are compared (step S1305). If Si is smaller than Smin (YES in step S1305), Si is substituted for Smin (step S1306), and the process proceeds to step S1307. On the other hand, if Si is larger than Smin, the process proceeds to step S1307.

ステップS1307ではカウンタをインクリメントし、処理をステップS1303へ戻す。S1303でi=Mであれば、色差Sminを持つ領域と同じ色で、中間調領域を着色し(ステップS1308)、処理を終了する。   In step S1307, the counter is incremented, and the process returns to step S1303. If i = M in S1303, the halftone area is colored with the same color as the area having the color difference Smin (step S1308), and the process ends.

以上説明した通り、本実施の形態における画像処理装置は、より高い精度で中間調領域を判定し統合することで、データ量の抑制を実現できる。   As described above, the image processing apparatus according to the present embodiment can realize the suppression of the data amount by determining and integrating the halftone areas with higher accuracy.

なお、ベクトル化手法としては、ベジエに限られることはなく、スプライン近似等でもよい。   The vectorization method is not limited to Bezier, and may be spline approximation or the like.

また、本発明の目的は、実施の形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムまたは装置に供給し、そのシステムまたは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出して実行することによっても達成される。   In addition, an object of the present invention is to supply a storage medium in which a program code of software for realizing the functions of the embodiment is recorded to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus stores the storage medium It is also achieved by reading out and executing the program code stored in.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。または、プログラムコードをネットワークを介してダウンロードしてもよい。   Examples of the storage medium for supplying the program code include a floppy (registered trademark) disk, a hard disk, a magneto-optical disk, a CD-ROM, a CD-R, a CD-RW, a DVD-ROM, a DVD-RAM, and a DVD. -RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM, etc. can be used. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれる。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) running on the computer based on the instruction of the program code. A case where part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing is also included.

更に、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれる。   Further, after the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. This includes the case where the CPU or the like provided in the board or the 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 diagram schematically showing a configuration of a multifunction peripheral as an image processing apparatus according to an embodiment of the present invention. 図1における画像変換部の構成を概略的に示す図である。It is a figure which shows schematically the structure of the image conversion part in FIG. 図2におけるクリップアート変換部の構成を概略的に示す図である。It is a figure which shows schematically the structure of the clip art conversion part in FIG. 図3における領域分割部によって実行される領域分割処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the area division process performed by the area division part in FIG. 図3における領域統合部によって実行される領域統合処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the area | region integration process performed by the area | region integration part in FIG. 図3におけるノイズ領域統合部で判定されるノイズを示す図である。It is a figure which shows the noise determined by the noise area | region integration part in FIG. 図3におけるノイズ領域統合部によって実行されるノイズ領域統合処理の手順を示す図である。It is a figure which shows the procedure of the noise area integration process performed by the noise area integration part in FIG. 図3における中間調領域除去部の構成を概略的に示す図である。FIG. 4 is a diagram schematically showing a configuration of a halftone area removing unit in FIG. 3. 図8における判定部によって実行される、第1の実施の形態に係る中間調領域判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the halftone area determination process which concerns on 1st Embodiment performed by the determination part in FIG. 図8における統合部によって実行される、第1の実施の形態に係る中間調領域統合処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the halftone area | region integration process which concerns on 1st Embodiment performed by the integration part in FIG. 図3における中間調領域除去部の中間調領域除去処理を説明する図である。It is a figure explaining the halftone area removal process of the halftone area removal part in FIG. 図8における判定部によって実行される、第2の実施の形態に係る中間調領域判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the halftone area determination process based on 2nd Embodiment performed by the determination part in FIG. 図8における統合部によって実行される、第2の実施の形態に係る中間調領域統合処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the halftone area | region integration process which concerns on 2nd Embodiment performed by the integration part in FIG. クリップアートの例を示す図である。It is a figure which shows the example of a clip art. 中間調領域を示す図である。It is a figure which shows a halftone area | region.

符号の説明Explanation of symbols

101 スキャン部
102 領域判定部
103 画像変換部
104 HDD
105 プリント部
203 クリープアート変換部
303 領域分割部(領域分割手段)
304 領域統合部(領域統合手段)
305 ノイズ領域統合部(ノイズ領域判定・除去手段)
306 ベクトル化部(ベクトル化手段)
307 中間調領域除去部(中間調領域除去手段)
801 判定部
802 統合部
101 Scan unit 102 Area determination unit 103 Image conversion unit 104 HDD
105 Print unit 203 Creep art conversion unit 303 Area division unit (area division unit)
304 Area integration unit (area integration means)
305 Noise area integration unit (noise area determination / removal means)
306 Vectorization unit (vectorization means)
307 Halftone area removing unit (halftone area removing means)
801 determination unit 802 integration unit

Claims (12)

入力された画像を、画素値を基に領域を定義して複数の領域に分割する領域分割手段と、
分割された領域のうち、同一の領域を統合する領域統合手段と、
領域統合結果のデータに対してノイズ領域の判定と除去を行うノイズ領域判定・除去手段と、
ノイズ領域除去後のデータに対してベクトル化を行うベクトル化手段と、
ベクトル化後のデータに対して中間調領域を除去する中間調領域除去手段と、
を備えることを特徴とする画像処理装置。
Area dividing means for defining an area based on pixel values and dividing the input image into a plurality of areas;
Of the divided areas, area integration means for integrating the same area;
Noise region determination / removal means for determining and removing a noise region from the region integration result data;
Vectorization means for vectorizing the data after removing the noise region;
Halftone area removing means for removing the halftone area from the vectorized data;
An image processing apparatus comprising:
前記中間調領域除去手段は、
ベクトル情報を基に除去対象領域を判定する判定手段と、
隣接する領域の中から、除去対象領域を統合する統合先領域を決定し、除去対象領域に対して、統合先領域と同じ色で着色する統合手段と、
を備えることを特徴とする請求項1記載の画像処理装置。
The halftone area removing means includes
Determination means for determining a removal target region based on vector information;
An integration unit that determines an integration destination region to integrate the removal target region from adjacent regions, and colors the removal target region with the same color as the integration destination region,
The image processing apparatus according to claim 1, further comprising:
前記判定手段は、領域の面積に対するベクトル符号量を基に除去対象領域を判定することを特徴とする請求項2記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the determination unit determines a removal target region based on a vector code amount with respect to the area of the region. 前記統合手段は、領域間のエッジ強度を基に統合先領域を決定することを特徴とする請求項2記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the integration unit determines an integration destination region based on edge strength between regions. 前記統合手段は、領域間の代表色に関する色差を基に統合先領域を決定することを特徴とする請求項2記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the integration unit determines an integration destination region based on a color difference related to a representative color between the regions. 入力された画像を、画素値を基に領域を定義して複数の領域に分割する領域分割ステップと、
分割された領域のうち、同一の領域を統合する領域統合ステップと、
領域統合結果のデータに対してノイズ領域の判定と除去を行うノイズ領域判定・除去ステップと、
ノイズ領域除去後のデータに対してベクトル化を行うベクトル化ステップと、
ベクトル化後のデータに対して中間調領域を除去する中間調領域除去ステップと、
を備えることを特徴とする画像処理方法。
An area dividing step for dividing an input image into a plurality of areas by defining areas based on pixel values;
An area integration step for integrating the same area among the divided areas;
A noise region determination / removal step for determining and removing a noise region from the region integration result data;
A vectorization step for vectorizing the data after removing the noise region;
A halftone region removal step for removing a halftone region from the vectorized data;
An image processing method comprising:
前記中間調領域除去ステップは、
ベクトル情報を基に除去対象領域を判定する判定ステップと、
隣接する領域の中から、除去対象領域を統合する統合先領域を決定し、除去対象領域に対して、統合先領域と同じ色で着色するステツプと、
を備えることを特徴とする請求項6記載の画像処理方法。
The halftone area removing step includes:
A determination step of determining a removal target region based on vector information;
A step of determining an integration destination area for integrating the removal target areas from adjacent areas, and coloring the removal target area with the same color as the integration destination area;
The image processing method according to claim 6, further comprising:
前記判定ステップは、領域の面積に対するベクトル符号量を基に除去対象領域を判定することを特徴とする請求項7記載の画像処理方法。   8. The image processing method according to claim 7, wherein the determination step determines a removal target region based on a vector code amount with respect to the area of the region. 前記統合ステップは、領域間のエッジ強度を基に統合先領域を決定することを特徴とする請求項7記載の画像処理方法。   The image processing method according to claim 7, wherein the integration step determines an integration destination region based on an edge strength between the regions. 前記統合ステップは、領域間の代表色に関する色差を基に統合先領域を決定することを特徴とする請求項7記載の画像処理方法。   The image processing method according to claim 7, wherein the integration step determines an integration destination region based on a color difference related to a representative color between the regions. 入力された画像を、画素値を基に領域を定義して複数の領域に分割する領域分割モジュールと、
分割された領域のうち、同一の領域を統合する領域統合モジュールと、
領域統合結果のデータに対してノイズ領域の判定と除去を行うノイズ領域判定・除去モジュールと、
ノイズ領域除去後のデータに対してベクトル化を行うベクトル化モジュールと、
ベクトル化後のデータに対して中間調領域を除去する中間調領域除去モジュールと、
をコンピュータに実行させることを特徴とする画像処理プログラム。
An area division module that divides an input image into a plurality of areas by defining areas based on pixel values;
Of the divided areas, an area integration module that integrates the same area;
A noise region determination / removal module that performs noise region determination and removal on the region integration result data;
A vectorization module that vectorizes the data after removing the noise region;
A halftone region removal module for removing halftone regions from the vectorized data;
An image processing program for causing a computer to execute.
請求項11記載の画像処理プログラムを格納するコンピュータ読み取り可能な記憶媒体。   A computer-readable storage medium storing the image processing program according to claim 11.
JP2006162575A 2006-06-12 2006-06-12 Image processing apparatus and method, and program and storage medium Pending JP2007335982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006162575A JP2007335982A (en) 2006-06-12 2006-06-12 Image processing apparatus and method, and program and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006162575A JP2007335982A (en) 2006-06-12 2006-06-12 Image processing apparatus and method, and program and storage medium

Publications (1)

Publication Number Publication Date
JP2007335982A true JP2007335982A (en) 2007-12-27

Family

ID=38935074

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006162575A Pending JP2007335982A (en) 2006-06-12 2006-06-12 Image processing apparatus and method, and program and storage medium

Country Status (1)

Country Link
JP (1) JP2007335982A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009272834A (en) * 2008-05-02 2009-11-19 Canon Inc Image processing apparatus and image encoding method
JP2011013900A (en) * 2009-07-01 2011-01-20 Canon Inc Image processing apparatus, image processing method, program, and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009272834A (en) * 2008-05-02 2009-11-19 Canon Inc Image processing apparatus and image encoding method
US8331671B2 (en) 2008-05-02 2012-12-11 Canon Kabushiki Kaisha Image processing apparatus and image encoding method related to non-photo image regions
JP2011013900A (en) * 2009-07-01 2011-01-20 Canon Inc Image processing apparatus, image processing method, program, and storage medium
US8810877B2 (en) 2009-07-01 2014-08-19 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium for eliminating blurring of scanned image

Similar Documents

Publication Publication Date Title
JP5047051B2 (en) Image processing apparatus and image encoding method
US7936929B2 (en) Image processing method and apparatus for removing noise from a document image
JP5302768B2 (en) Image processing apparatus and image processing method
US8384964B2 (en) Image processing apparatus and image processing method
JP4568460B2 (en) Image processing apparatus and recording medium
JP4662066B2 (en) Image processing apparatus, image forming apparatus, image distribution apparatus, image processing method, program, and recording medium
JP5219706B2 (en) Image processing apparatus, image processing method, and image processing program
JP4557843B2 (en) Image processing apparatus and method
US7710619B2 (en) Image processing apparatus and method that performs differential scaling on picture regions than on text and line regions to enhance speed while preserving quality
JP4744623B2 (en) Image compression method, image compression apparatus, image forming apparatus, computer program, and recording medium
US8395813B2 (en) Subtractive color method, subtractive color processing apparatus, image forming apparatus, and computer-readable storage medium for computer program
US8395820B2 (en) Image processing apparatus for printing in black coloring material based on attribute information
JP2004193964A (en) Picture processor, picture processing method, program and recording medium
KR101224936B1 (en) Image processing apparatus, image forming apparatus and computer readable medium
JP2010146218A (en) Image processing apparatus, image processing method, computer program
JP2007335982A (en) Image processing apparatus and method, and program and storage medium
JP3899872B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium recording the same
JP2008147712A (en) Image processor and image processing method
JP4248947B2 (en) Image color reduction device, image color reduction method, and image color reduction program
JP4742632B2 (en) Image processing apparatus, image processing method, and program
JP6641982B2 (en) Image processing apparatus, image processing method, and program
RU2737001C1 (en) Image processing device and method and data medium
JPH11136505A (en) Picture processor and picture processing method
JP4957570B2 (en) Image processing device
US7675642B2 (en) Print apparatus and print method