JP2009100078A - Image data analysis device, image data analysis method, and program - Google Patents

Image data analysis device, image data analysis method, and program Download PDF

Info

Publication number
JP2009100078A
JP2009100078A JP2007267489A JP2007267489A JP2009100078A JP 2009100078 A JP2009100078 A JP 2009100078A JP 2007267489 A JP2007267489 A JP 2007267489A JP 2007267489 A JP2007267489 A JP 2007267489A JP 2009100078 A JP2009100078 A JP 2009100078A
Authority
JP
Japan
Prior art keywords
halftone
halftone dot
image data
contour
basic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2007267489A
Other languages
Japanese (ja)
Inventor
Nobuhiro Karido
信宏 狩戸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007267489A priority Critical patent/JP2009100078A/en
Publication of JP2009100078A publication Critical patent/JP2009100078A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To remove halftone dots of an image without vignetting the contour of a subject or a character. <P>SOLUTION: Spaces between halftone dots are divided like am equal-distance grid to generate halftone dot cells surrounding individual halftone dots, and generated halftone dot cells are grouped by a prescribed number to generate fundamental grids. It is checked whether a halftone dot is formed in each of halftone dot cells constituting a fundamental grid or not to acquire halftone dot arrangement in the position of this fundamental grid. Since it is considered that halftone dot cells wherein halftone dots are formed are located on the inside of the contour and halftone dot cells wherein halftone dots are not formed are located on the outside of the contour, it is possible to estimate the contour line in he fundamental grid on the basis of the acquired halftone dot arrangement. Since it is possible to extract the entire contour in image data by estimating the contour in positions of respective fundamental grids in accordance with this method, it is possible that only the inside of the contour is vignetted to remove halftone dots without vignetting the contour. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像の濃淡を表すために使われる網点を画像から除去する技術に関連する。   The present invention relates to a technique for removing halftone dots used to represent the shading of an image from the image.

印刷業界などでは、網点と呼ばれる小さな点を用いて画像の濃淡を表現する方法が広く
用いられている。この方法では、表現したい濃さに応じて網点の大きさを変えながら、多
数の網点を印刷することによって画像を印刷する。すると、これを少し離れて見れば、個
々の網点は目立たなくなり、あたかも一定の濃さで塗りつぶされたように見えるので、濃
淡を表すことが可能である。
In the printing industry and the like, a method of expressing the density of an image using small dots called halftone dots is widely used. In this method, an image is printed by printing a large number of halftone dots while changing the size of the halftone dots according to the density to be expressed. Then, if this is viewed a little away, the individual halftone dots will not be noticeable, and it will appear as if they are filled with a certain darkness, so that it is possible to express the shading.

ここで、網点を用いて形成された画像は、隣接する網点は一定の間隔で形成されている
から、網点による画像をスキャナによって読み込む場合、網点の周期とスキャナの読み取
り解像度との干渉によって干渉縞が発生する「モアレ」と呼ばれる現象が発生し、画質が
低下してしまうことがある。あるいは、濃淡が網点によって表現されている画像のデジタ
ルデータを生成しようとする場合には、網点の一つ一つをデジタルデータによって表現し
なければならないので、網点の周期とデジタルデータの解像度とが干渉して、モアレが生
じ得る。そこで、ローパスフィルタを用いたぼかし処理を行い、網点を除去すると共に網
点で表現された濃淡を中間色の濃淡に置き換えることによって、網点によるモアレの発生
を回避する技術が提案されている(例えば、特許文献1)。
Here, in an image formed using halftone dots, adjacent halftone dots are formed at a constant interval. Therefore, when reading an image with halftone dots by a scanner, the period between the halftone dots and the reading resolution of the scanner are determined. A phenomenon called “moire” in which interference fringes occur due to interference may occur, and image quality may deteriorate. Alternatively, when trying to generate digital data of an image whose shading is represented by halftone dots, each halftone dot must be represented by digital data, so the period of halftone dots and the digital data Moire can occur due to interference with the resolution. Therefore, a technique for avoiding the generation of moire due to halftone dots has been proposed by performing a blurring process using a low-pass filter, removing halftone dots, and replacing the shades represented by halftone dots with shades of intermediate colors ( For example, Patent Document 1).

特開平7−95409号公報JP 7-95409 A

しかし、こうした技術では、ローパスフィルタによって画像中の文字や被写体の輪郭が
ぼやけてしまうので、画像全体がぼやけた低品質な画像になってしまうという問題があっ
た。もちろん、画像データを詳しく解析して文字や被写体の輪郭を検出すれば、輪郭の部
分を避けてぼかし処理をすることも可能であるが、輪郭を正確に検出するためには複雑な
画像処理が要求されるので、処理負担が増大してしまうという新たな問題を招聘してしま
う。
However, with such a technique, the low-pass filter blurs the characters in the image and the outline of the subject, so that there is a problem that the entire image becomes a blurred and low-quality image. Of course, if the image data is analyzed in detail and the outline of the character or subject is detected, it is possible to avoid the outline portion and perform the blurring process. However, in order to accurately detect the outline, complicated image processing is required. This demands a new problem of increasing the processing load.

本発明は、従来の技術が有する上述した課題を解決するためになされたものであり、文
字や被写体の輪郭をぼかすことなく簡易な処理で網点を除去可能とする技術の提供を目的
とする。
The present invention has been made in order to solve the above-described problems of conventional techniques, and an object of the present invention is to provide a technique that can remove halftone dots with a simple process without blurring the outline of characters or subjects. .

上述した課題の少なくとも一部を解決するために、本発明の画像データ解析装置は次の
構成を採用した。すなわち、
複数の網点によって表現された画像を読み込んだ画像データ内の輪郭を抽出する画像デ
ータ解析装置であって、
前記画像を構成する全ての前記網点の間で、該画像を等間隔の格子状に分割する複数の
網点セルを算出する網点セル算出手段と、
互いに隣接する所定個数の前記網点セルから構成される基本格子を算出する基本格子算
出手段と、
前記基本格子内の各網点セルでの前記網点の形成有無を検出することにより、該基本格
子内での網点配置を検出する網点配置検出手段と、
前記基本格子内で検出された前記網点配置に基づいて、該基本格子内での輪郭を抽出す
る基本格子内輪郭抽出手段と、
互いに隣接する複数の前記基本格子の各々について、該基本格子内での輪郭を抽出する
ことにより、前記画像データ内の輪郭を抽出する輪郭抽出手段と
を備えることを要旨とする。
In order to solve at least a part of the problems described above, the image data analysis apparatus of the present invention employs the following configuration. That is,
An image data analysis device that extracts an outline in image data obtained by reading an image represented by a plurality of halftone dots,
A halftone dot cell calculating means for calculating a plurality of halftone cells that divide the image into a regular grid between all the halftone dots constituting the image;
Basic lattice calculation means for calculating a basic lattice composed of a predetermined number of halftone cells adjacent to each other;
Halftone dot arrangement detecting means for detecting the halftone dot arrangement in the basic grid by detecting the presence or absence of the halftone dots in each halftone cell in the basic grid;
A basic in-grid contour extracting means for extracting a contour in the basic grid based on the halftone dot arrangement detected in the basic grid;
The gist of the present invention is to provide contour extracting means for extracting a contour in the image data by extracting a contour in the basic lattice for each of the plurality of basic lattices adjacent to each other.

また、上記の画像データ解析装置に対応する本発明の画像データ解析方法は、
複数の網点によって表現された画像を読み込んだ画像データ内の輪郭を抽出する画像デ
ータ解析方法であって、
前記画像を構成する全ての前記網点の間で、該画像を等間隔の格子状に分割する複数の
網点セルを算出する工程と、
互いに隣接する所定個数の前記網点セルから構成される基本格子を算出する工程と、
前記基本格子内の各網点セルでの前記網点の形成有無を検出することにより、該基本格
子内での網点配置を検出する工程と、
前記基本格子内で検出された前記網点配置に基づいて、該基本格子内での輪郭を抽出す
る工程と、
互いに隣接する複数の前記基本格子の各々について、該基本格子内での輪郭を抽出する
ことにより、前記画像データ内の輪郭を抽出する工程と
を備えることを要旨とする。
In addition, the image data analysis method of the present invention corresponding to the above image data analysis apparatus,
An image data analysis method for extracting an outline in image data obtained by reading an image represented by a plurality of halftone dots,
Calculating a plurality of halftone cells that divide the image into equidistant grids among all the halftone dots constituting the image;
Calculating a basic grid composed of a predetermined number of the halftone cells adjacent to each other;
Detecting the dot arrangement in the basic grid by detecting the presence or absence of the halftone dots in each halftone cell in the basic grid; and
Extracting a contour in the basic grid based on the halftone dot arrangement detected in the basic grid;
And a step of extracting a contour in the image data by extracting a contour in the basic lattice for each of the plurality of basic lattices adjacent to each other.

かかる本発明の画像データ解析装置および画像データ解析方法では、複数の網点で表現
された画像データを受け取ると、画像データを網点の間で等間隔に分割することによって
個々の網点を取り囲む格子(網点セル)を算出する。尚、画像の一部のみが網点によって
表現された画像の場合(例えば、網点によって表現された写真や絵柄などと、網点ではな
く通常の黒文字が用いられている文章部分とが混在している画像などの場合)には、網点
によって表現された部分に網点セルを設定すればよい。網点セルを算出したら、隣接して
いる網点セルを所定個数ごとにまとめて基本格子を生成し、各基本格子内での網点配置を
検出する。そして、検出した網点配置から、基本格子ごとに輪郭を抽出することにより、
画像データ内の輪郭を抽出する。
In such an image data analysis apparatus and image data analysis method of the present invention, when image data expressed by a plurality of halftone dots is received, the image data is divided into equal intervals between the halftone dots to surround each halftone dot. A grid (halftone cell) is calculated. In the case of an image in which only a part of the image is represented by halftone dots (for example, a photograph or a picture represented by halftone dots and a text portion in which normal black characters are used instead of halftone dots are mixed. In the case of an image or the like), a halftone cell may be set in a portion represented by a halftone dot. When the halftone cells are calculated, a basic grid is generated by collecting adjacent halftone cells every predetermined number, and the halftone dot arrangement in each basic grid is detected. And, by extracting the outline for each basic grid from the detected halftone dot arrangement,
Extract contours in image data.

かかる本発明は、「互いに隣接する所定個数の網点セルを基本格子にまとめておけば、
その基本格子内の網点配置に基づいて、簡易な処理で輪郭の位置を抽出することができる
」という新たな知見を見出すことによって完成されたものである。そこで、先ず始めに、
本願の発明者によって見出されたかかる知見について説明する。一般に、網点によって画
像を表現する場合、輪郭の内側には網点が形成され、輪郭の外側には網点が形成されない
ことから、個々の網点セルの網点形成の有無は、その網点セルが輪郭線の内側に位置して
いるのか、それとも外側に位置しているのかを意味していると考えることができる。する
と、網点が形成されている網点セルのすぐ隣に網点が形成されていない網点セルがあれば
、これらの網点セルの間に輪郭線が存在していると推定することができる。例えば、隣接
する2つの網点セルのうちの左側の網点セルに網点が形成されており、右側の網点セルに
網点が形成されていない場合には、左の網点セルは輪郭の内側であって右の網点セルは輪
郭の外側であると考えられることから、この2つの網点セルの間に輪郭線が存在すると推
定できる。もちろん、2つの網点セルだけでなく、より多くの網点セルの網点形成の有無
から輪郭線の位置を推定することも可能である。そこで、所定個数ごとに網点セルをまと
めて基本格子を作っておけば、各々の基本格子内の網点セルの網点形成の有無を調べるこ
とによって、各々の基本格子における輪郭線を抽出することが可能である。そして、各基
本格子から抽出した輪郭線をつなぎ合わせていけば、画像データ内の輪郭線を抽出するこ
とが可能となる。
According to the present invention, "if a predetermined number of halftone cells adjacent to each other are put together in a basic grid,
Based on the arrangement of halftone dots in the basic grid, it was completed by finding a new finding that the position of the contour can be extracted by simple processing. So first of all,
Such knowledge found by the inventors of the present application will be described. In general, when an image is represented by halftone dots, halftone dots are formed inside the outline and halftone dots are not formed outside the outline. It can be considered that it means whether the point cell is located inside or outside the outline. Then, if there is a halftone cell in which a halftone dot is not formed immediately adjacent to a halftone dot cell in which a halftone dot is formed, it can be estimated that a contour line exists between these halftone dot cells. it can. For example, when a halftone dot is formed in the left halftone cell of two adjacent halftone cells and no halftone dot is formed in the right halftone cell, the left halftone cell is Since the right halftone cell is considered to be outside the contour, it can be estimated that a contour line exists between the two halftone cells. Of course, it is also possible to estimate the position of the contour line from the presence / absence of halftone dot formation of not only two halftone cells but also more halftone cells. Therefore, if a basic grid is formed by grouping halftone cells for each predetermined number, the contour lines in each basic grid are extracted by checking whether or not halftone dots are formed in each basic grid. It is possible. Then, by connecting the contour lines extracted from the basic grids, it becomes possible to extract the contour lines in the image data.

本発明は、こうした新たな知見に基づいており、基本格子の網点配置に基づいて各々の
基本格子で輪郭線を抽出することによって、画像データ内の輪郭を抽出することを可能と
している。こうして画像データ内の輪郭が抽出できれば、抽出した輪郭線の内部に対して
ぼかし処理を行うことにより、輪郭をぼやけさせることなく網点を除去することが可能と
なる。また、こうした方法によれば、各網点セルで網点形成の有無を調べるだけで輪郭を
抽出可能であり、他に複雑な画像解析を行う必要がないので、処理負担を過大に増加させ
ることがなく、網点を除去することが可能となる。
The present invention is based on such new knowledge, and it is possible to extract a contour in image data by extracting a contour line from each basic lattice based on the halftone dot arrangement of the basic lattice. If the contour in the image data can be extracted in this way, it is possible to remove halftone dots without blurring the contour by performing blurring processing on the inside of the extracted contour line. In addition, according to such a method, it is possible to extract a contour only by checking the presence or absence of halftone dot formation in each halftone cell, and it is not necessary to perform other complicated image analysis, so that the processing burden is excessively increased. It is possible to eliminate halftone dots.

また、上述した本発明の画像データ解析装置では、基本格子を算出する際に、互いに交
差する方向に2つずつ並んだ4つの網点セルをまとめて基本格子とすることとしてもよい
In the above-described image data analysis apparatus of the present invention, when calculating the basic grid, four halftone cells arranged in a direction intersecting each other may be collectively used as the basic grid.

基本格子内を横切る輪郭線の向き(例えば、輪郭線が基本格子を縦横何れの方向に横切
っているのか)を決定するためには、少なくとも互いに交差する方向に並んだ複数の網点
セルを、基本格子としてまとめることが必要となる。一例として、上下左右に並んだ4つ
の網点セルからなる基本格子のうち、右上の網点セルのみに網点が形成されていない場合
を考える。まず、左右方向については、網点が形成されていない網点セルは、右半分に存
在する。次に、上下方向については、網点が形成されていない網点セルは、上半分に存在
する。そして、これら2つのことを加味することによって、輪郭線は基本格子の右上部分
を右下から左上に向かって斜めに通っていることが推定可能となっている。この様に、輪
郭線の方向を決める為には、互いに交差する方向に並んだ複数の網点セルが必要となる。
こうした一方で、基本格子としてまとめる網点セルの数が多くなる程、基本格子内での輪
郭線の位置を決定することは困難となる。これらの点に鑑みれば、互いに交差する方向に
並んだ2つずつの網点セルを基本格子としてまとめておくことで、基本格子内の輪郭を簡
単に決定することが可能となる。
In order to determine the direction of the contour line traversing the basic grid (for example, whether the contour traverses the basic grid in the vertical or horizontal direction), a plurality of halftone cells arranged in at least a direction intersecting each other, It is necessary to put it together as a basic lattice. As an example, let us consider a case where a halftone dot is not formed only in the upper right halftone dot cell among the basic lattice composed of four halftone dot cells arranged vertically and horizontally. First, in the left-right direction, a halftone cell in which no halftone dot is formed exists in the right half. Next, in the vertical direction, halftone cells in which no halftone dots are formed exist in the upper half. By taking these two things into consideration, it is possible to estimate that the contour line passes obliquely from the lower right to the upper left in the upper right part of the basic lattice. As described above, in order to determine the direction of the contour line, a plurality of halftone cells arranged in a direction intersecting each other are required.
On the other hand, as the number of halftone cells collected as a basic grid increases, it becomes more difficult to determine the position of the contour line in the basic grid. In view of these points, it is possible to easily determine the contour in the basic grid by collecting two halftone cells arranged in a crossing direction as a basic grid.

また、上述した本発明の画像データ解析装置では、各網点セルにおける網点の形成の有
無を調べる際には、網点セル内に所定の濃度よりも濃度が高い領域が存在するか否かを調
べることとしてもよい。そして、そのような領域が存在し、なお且つ、その領域の大きさ
が網点セルの大きさと比べて所定の比率以上である場合には、その網点セルには網点が形
成されているものと判断することとしてもよい。
In the image data analysis apparatus of the present invention described above, when checking the presence / absence of halftone dot formation in each halftone cell, whether or not there is a region having a density higher than a predetermined density in the halftone cell. It is also possible to investigate. When such a region exists and the size of the region is equal to or larger than a predetermined ratio compared to the size of the halftone cell, a halftone dot is formed in the halftone cell. It may be judged as a thing.

一般に、ノイズ等は連続した一定の大きさの領域を形成するのではなく、とびとびに存
在する傾向があることから、この様に濃度の高い領域の大きさを考慮すれば、ノイズ等が
網点セル内に発生している場合であっても、網点とノイズ等とを見分けることが可能とな
る。これにより、ノイズ等の為に網点形成の有無の判断を誤ってしまうことがなく、網点
形成の有無を正確に判断することが可能となり、延いては、輪郭を正確に抽出することが
可能となる。
In general, noise or the like does not form a continuous area of a constant size, but tends to exist in a discrete manner. Even if it occurs in the cell, it is possible to distinguish between halftone dots and noise. As a result, it is possible to accurately determine the presence or absence of halftone dots without erroneously determining the presence or absence of halftone dots due to noise or the like. It becomes possible.

また、上述した本発明の画像データ解析装置では、各基本格子において網点配置を調べ
ることに加えて、各基本格子内の網点が欠けているか否かを調べることとしてもよい。そ
して、網点配置に加えて、網点の欠けの有無を考慮することによって、その基本格子にお
ける輪郭を抽出することとしてもよい。
In the image data analysis apparatus of the present invention described above, in addition to checking the halftone dot arrangement in each basic grid, it is also possible to check whether or not the halftone dots in each basic grid are missing. Then, in addition to the halftone dot arrangement, the contours in the basic grid may be extracted by considering the presence or absence of a halftone dot.

網点が欠けている場合、その欠けは輪郭線によって生じたものと考えられることから、
少なくとも、その欠けた網点のより近くを輪郭線が通っているものと推定できる。そこで
、基本格子の網点の欠けの有無を考慮すれば、基本格子内での輪郭線の位置をより正確に
推定することが可能となり、この結果として、画像データ内の輪郭をより正確に抽出する
ことが可能となる。
If a halftone dot is missing, it is considered that the missing is caused by the outline,
It can be estimated that the contour line passes at least near the missing halftone dot. Therefore, if the presence or absence of halftone dots in the basic grid is taken into account, the position of the contour line in the basic grid can be estimated more accurately. As a result, the contour in the image data can be extracted more accurately. It becomes possible to do.

また、上述した本発明の画像データ解析装置では、網点セル内に形成された網点の中心
位置を求め、求めた網点の中心位置と網点セルの中心位置との偏差を調べることによって
、その網点の形状が欠けているか否かを判断することとしてもよい。
In the image data analysis apparatus of the present invention described above, the center position of the halftone dot formed in the halftone cell is obtained, and the deviation between the obtained center position of the halftone dot and the center position of the halftone cell is examined. It may be determined whether the halftone dot shape is missing.

どのような大きさの網点であっても、網点が欠けた場合には、欠けた分だけ中心位置が
偏る。そこで、網点の中心位置と、網点に欠けがない場合の中心位置である網点セルの中
心位置との偏差を調べれば、網点の大きさに拘わらず網点が欠けているか否かを正確に判
断することが可能となり、この結果、輪郭を正確に抽出することが可能となる。
Whatever the size of the halftone dot is, if the halftone dot is missing, the center position is biased by the missing amount. Therefore, if the deviation between the center position of the halftone dot and the center position of the halftone cell that is the center position when the halftone dot is not missing is examined, whether or not the halftone dot is missing regardless of the size of the halftone dot. Can be accurately determined, and as a result, the contour can be accurately extracted.

また、上述した本発明の画像データ解析装置では、抽出した輪郭の内部の領域にローパ
スフィルタを作用させ、得られた画像データを出力することとしてもよい。
In the above-described image data analysis apparatus of the present invention, a low-pass filter may be applied to a region inside the extracted contour, and the obtained image data may be output.

こうすれば、輪郭の内部のみが、ローパスフィルタによってぼかし処理されるので、輪
郭をぼかすことなく網点を除去することが可能となる。これにより、モアレ等がなく、な
お且つ、輪郭のくっきりした好適な画像を出力することが可能となる。また、ローパスフ
ィルタなどの画像処理フィルタを画像データに適用する処理は、CPU等によって簡便に
実行可能なことから、処理負担が過大になることがなく、網点を除去することが可能とな
る。
In this way, only the inside of the contour is blurred by the low-pass filter, so that halftone dots can be removed without blurring the contour. As a result, it is possible to output a suitable image having no moire and a clear outline. Further, the process of applying an image processing filter such as a low-pass filter to the image data can be easily executed by a CPU or the like, so that halftone dots can be removed without increasing the processing load.

更に本発明は、上述した画像データ解析方法を実現するためのプログラムをコンピュー
タに読み込ませ、所定の機能を実行させることにより、コンピュータを用いて実現するこ
とも可能である。従って、本発明は次のようなプログラムとしての態様も含んでいる。す
なわち、上述した画像データ解析方法に対応する本発明のプログラムは、
複数の網点によって表現された画像を読み込んだ画像データ内の輪郭を抽出する方法を
、コンピュータを用いて実現するためのプログラムであって、
前記画像を構成する全ての前記網点の間で画像を等間隔の格子状に分割する複数の網点
セルを算出する機能と、
互いに隣接する所定個数の前記網点セルから構成される基本格子を算出する機能と、
前記基本格子内の各網点セルでの前記網点の形成有無を検出することにより、該基本格
子内での網点配置を検出する機能と、
前記基本格子内で検出された前記網点配置に基づいて、該基本格子内での輪郭を抽出す
る機能と、
互いに隣接する複数の前記基本格子の各々について、該基本格子内での輪郭を抽出する
ことにより、前記画像データ内の輪郭を抽出する機能と
をコンピュータによって実現させることを要旨とする。
Furthermore, the present invention can also be realized using a computer by causing a computer to read a program for realizing the above-described image data analysis method and executing a predetermined function. Therefore, the present invention also includes the following aspects as a program. That is, the program of the present invention corresponding to the image data analysis method described above is
A program for realizing, using a computer, a method for extracting a contour in image data obtained by reading an image represented by a plurality of halftone dots,
A function of calculating a plurality of halftone cells that divide the image into equidistant grids among all the halftone dots constituting the image;
A function of calculating a basic lattice composed of a predetermined number of halftone cells adjacent to each other;
A function of detecting a halftone dot arrangement in the basic grid by detecting the presence or absence of the halftone dots in each halftone cell in the basic grid;
A function of extracting a contour in the basic grid based on the halftone dot arrangement detected in the basic grid;
The gist is to realize, by a computer, a function of extracting a contour in the image data by extracting a contour in the basic lattice for each of the plurality of basic lattices adjacent to each other.

このプログラムをコンピュータに読み込んで、上記の各機能を実現させれば、網点を迅
速に除去してモアレのない好適な画像を得ることが可能となる。
If this program is read into a computer and the above functions are realized, it is possible to quickly remove halftone dots and obtain a suitable image without moire.

以下では、上述した本願発明の内容を明確にするために、次のような順序に従って実施
例を説明する。
A.装置構成:
B.網点除去処理:
C.変形例:
C−1.第1変形例:
C−2.第2変形例:
Hereinafter, in order to clarify the contents of the present invention described above, examples will be described in the following order.
A. Device configuration:
B. Halftone removal processing:
C. Variations:
C-1. First modification:
C-2. Second modification:

A.装置構成 :
図1は、本実施例の画像データ解析装置を搭載した印刷装置10を例示した斜視図であ
る。図示されるように、印刷装置10は、スキャナ部100と、プリンタ部200と、ス
キャナ部100およびプリンタ部200の動作を制御する制御部300などから構成され
ている。スキャナ部100は、印刷された画像を読み込んで画像データを生成するスキャ
ナ機能を有しており、プリンタ部200は、画像データを受けとって印刷媒体上に画像を
印刷するプリンタ機能を有している。また、スキャナ部100で読み取った画像をプリン
タ部200から出力すれば、コピー機能を実現することも可能である。すなわち、本実施
例の印刷装置10は、単独でスキャナ機能、プリンタ機能、コピー機能を実現可能な、い
わゆるスキャナ・プリンタ・コピー複合装置となっている。
A. Device configuration :
FIG. 1 is a perspective view illustrating a printing apparatus 10 equipped with the image data analysis apparatus of this embodiment. As illustrated, the printing apparatus 10 includes a scanner unit 100, a printer unit 200, a control unit 300 that controls operations of the scanner unit 100 and the printer unit 200, and the like. The scanner unit 100 has a scanner function of reading a printed image and generating image data, and the printer unit 200 has a printer function of receiving image data and printing an image on a print medium. . If the image read by the scanner unit 100 is output from the printer unit 200, a copy function can be realized. That is, the printing apparatus 10 according to the present embodiment is a so-called scanner / printer / copy combined apparatus that can independently realize a scanner function, a printer function, and a copy function.

制御部300には、CPUやROM、RAMなどが搭載されており、スキャナ部100
やプリンタ部200の制御に加えて、プリンタ部200から出力される画像の画質を改善
するための種々の処理を実行することが可能である。例えば、濃淡が網点によって表され
ている画像をコピーする際に、取り込んだ画像をそのまま印刷するとスキャナ部100や
プリンタ部200の解像度と網点とが干渉してモアレが発生してしまう点に鑑みて、取り
込んだ画像データにぼかし処理を施すことで網点を除去する機能を有している。もっとも
、ぼかし処理によって文字や被写体の輪郭がぼやけてしまうと、画像全体がぼやけた低品
質な画像になってしまう。そこで、本実施例の制御部300は、画像データを解析して輪
郭を推定することによって、輪郭をぼやけさせることなく網点を除去可能とする機能を搭
載している。
The control unit 300 includes a CPU, a ROM, a RAM, and the like.
In addition to the control of the printer unit 200, various processes for improving the image quality of the image output from the printer unit 200 can be executed. For example, when copying an image whose shading is represented by halftone dots, if the captured image is printed as it is, the resolution of the scanner unit 100 or the printer unit 200 interferes with the halftone dots, resulting in moire. In view of this, it has a function of removing halftone dots by performing blurring processing on the captured image data. However, if the outline of the character or subject is blurred due to the blurring process, the entire image becomes a blurred low-quality image. Therefore, the control unit 300 according to the present embodiment is equipped with a function that can remove halftone dots without blurring the outline by analyzing the image data and estimating the outline.

図1には、輪郭をぼやけさせずに網点を除去する機能が制御部300に搭載されている
様子が概念的に示されている。制御部300は、網点によって濃淡が表された画像データ
をスキャナ部100や記憶媒体等から受け取ると、画像データを解析して輪郭を推定し、
その輪郭の内側だけにぼかし処理を施して網点を除去する。そして、網点を除去した画像
データをプリンタ部200に供給することによって、モアレがなく、なお且つ輪郭がくっ
きりした好適な画像を印刷する。以下では、制御部300が行うこうした処理について詳
しく説明する。
FIG. 1 conceptually illustrates a state in which the control unit 300 has a function of removing halftone dots without blurring the outline. When the control unit 300 receives from the scanner unit 100, the storage medium, or the like the image data whose density is represented by the halftone dots, the control unit 300 analyzes the image data to estimate the contour,
A halftone dot is removed by applying a blurring process only to the inside of the contour. Then, by supplying the image data from which the halftone dots are removed to the printer unit 200, a suitable image having no moire and a clear outline is printed. Hereinafter, such processing performed by the control unit 300 will be described in detail.

B.網点除去処理 :
図2は、本実施例の「網点除去処理」の流れを示した説明図である。かかる処理は、網
点によって印刷された画像をコピーするためにスキャナ部100で取り込んでプリンタ部
200から出力する際に、読み込んだ画像の網点を除去するために行われる処理である。
もちろん、スキャナ部100で取り込んだ画像データを記録媒体に保存しておき、その画
像データを読み出してプリンタ部で印刷する際にも同様な処理が行われる。更には、いわ
ゆる網点処理が施されて網点による表現形式に変換された画像データを受け取って、プリ
ンタ部200から出力する際にも、制御部300において同様な処理が行われる。
B. Halftone removal processing:
FIG. 2 is an explanatory diagram showing the flow of “halftone removal processing” in the present embodiment. Such processing is processing performed to remove halftone dots of the read image when the scanner unit 100 captures the image printed by the halftone dots and outputs the image from the printer unit 200.
Of course, similar processing is performed when image data captured by the scanner unit 100 is stored in a recording medium, and the image data is read out and printed by the printer unit. Further, when image data that has been subjected to so-called halftone dot processing and converted into a representation format using halftone dots is received and output from the printer unit 200, similar processing is performed in the control unit 300.

印刷装置10のコピー機能が実行されると、スキャナ部100は画像の読み取りを開始
し、読み取った画像データを制御部300に転送する。これを受けて、制御部300は図
2の「網点除去処理」を開始し、スキャナ部100から送られてくる画像データを制御部
300のRAM上に取得する(ステップS100)。尚、本実施例では、図3に例示した
画像を読み込むものとする。
When the copy function of the printing apparatus 10 is executed, the scanner unit 100 starts reading an image and transfers the read image data to the control unit 300. In response to this, the control unit 300 starts the “halftone removal process” in FIG. 2, and acquires the image data sent from the scanner unit 100 on the RAM of the control unit 300 (step S100). In this embodiment, it is assumed that the image illustrated in FIG. 3 is read.

画像データを読み込んだら、次いで、画像データを解析して、「網点セル」を求める処
理を行う(ステップS102)。ここで、「網点セル」とは次のようなものである。通常
、網点を使って濃淡を表現する場合、網点を不規則な位置に配置するのではなく、網点を
規則的な位置に配置している。例えば、図3に例示した画像を見ると、多数の網点が並べ
られることによって濃淡が表現されているが、これらの網点一つ一つは不規則に配置され
ているのではなく、碁盤目状に規則的に配置されている。図3の画像に限らず、一般に、
網点によって濃淡が表現された画像では、網点が格子状に規則的に配置されており、一つ
一つの網点を取り囲む格子を想定することができる。この格子が「網点セル」と呼ばれて
いる。ステップS102では、画像の網点を格子状に区分けして、網点一つ一つを取り囲
む格子(網点セル)を求める処理を行う。網点セルを求めるには、種々の方法を用いるこ
とができるが、網点の繰り返しを表す基本ベクトルを算出することによって、容易に求め
ることが可能である。
After the image data is read, the image data is analyzed to obtain a “halftone cell” (step S102). Here, the “halftone cell” is as follows. Usually, when expressing shading using halftone dots, the halftone dots are not arranged at irregular positions but are arranged at regular positions. For example, in the image illustrated in FIG. 3, the shading is expressed by arranging a large number of halftone dots, but each of these halftone dots is not irregularly arranged. It is regularly arranged in a grid. In general, not limited to the image of FIG.
In an image in which shading is expressed by halftone dots, the halftone dots are regularly arranged in a grid pattern, and a grid surrounding each halftone dot can be assumed. This lattice is called a “halftone cell”. In step S102, the halftone dots of the image are divided into grids, and processing for obtaining a grid (halftone dot cell) surrounding each halftone dot is performed. Various methods can be used to obtain a halftone cell, but it can be easily obtained by calculating a basic vector representing the repetition of a halftone dot.

図4は、基本ベクトルを算出する様子を概念的に示した説明図である。基本ベクトルを
算出するには、まず、網点が描かれている領域の中から任意の領域をサンプル領域として
選び出す。図4(a)の例では、Aと表記した領域をサンプル領域として選び出している
。サンプル領域を選び出したら、今度は、図4(b)に示されている様に、サンプル領域
の画像を少しずつ動かしながら周辺の画像と重ね合わせて、サンプル領域の画像と一致す
る領域を探し出す。サンプル領域の画像と一致する領域が見つかれば、そこでサンプル領
域の画像が繰り返されていることになるので、その領域の位置と元のサンプル領域の位置
との差のベクトルを算出することによって、繰り返しを表すベクトル(基本ベクトル)が
得られる(図4(c)参照)。
FIG. 4 is an explanatory diagram conceptually showing how the basic vector is calculated. In order to calculate the basic vector, first, an arbitrary region is selected as a sample region from among regions in which halftone dots are drawn. In the example of FIG. 4A, an area indicated as A is selected as a sample area. When the sample area is selected, this time, as shown in FIG. 4B, the image of the sample area is overlapped with the surrounding images while being moved little by little, and an area that matches the image of the sample area is searched. If an area that matches the image of the sample area is found, the image of the sample area is repeated there, so it is repeated by calculating the vector of the difference between the position of the area and the position of the original sample area. (Basic vector) is obtained (see FIG. 4C).

こうして基本ベクトルを1つ得たら、今度は、もう1つ別の基本ベクトルを得るために
、先の基本ベクトルとは別の方向にサンプル領域の画像を動かしていく。例えば、図4(
c)の例では、横向きの基本ベクトルが得られたので、今度は、縦方向にサンプル領域の
画像を動かせばよい(図4(d)参照)。そして、先に基本ベクトルを求めた際と同様に
、サンプル領域の画像と一致する領域を探し出す。一致する領域を見つけたら、その領域
の位置と元のサンプル領域の位置との差を求めることで、もう1つの基本ベクトルが得ら
れる(図4(d)参照)。こうして2つの基本ベクトルを得たら、今度は、この2つの基
本ベクトルに基づいて網点セルを求める。
When one basic vector is obtained in this way, this time, in order to obtain another basic vector, the image of the sample area is moved in a direction different from the previous basic vector. For example, FIG.
In the example of c), since a horizontal basic vector is obtained, the image of the sample area may be moved in the vertical direction (see FIG. 4D). Then, as in the case of obtaining the basic vector previously, an area that matches the image of the sample area is searched for. When a matching region is found, another basic vector is obtained by obtaining a difference between the position of the region and the position of the original sample region (see FIG. 4D). When two basic vectors are obtained in this way, a halftone cell is obtained based on the two basic vectors.

図5は、2つの基本ベクトルから網点セルを求める様子を概念的に示した説明図である
。図5(a)に示されている様に、網点を始点として基本ベクトルを描くと、基本ベクト
ルは網点の繰り返し周期を表していることから、基本ベクトルの終点はちょうど隣の網点
の位置にくる。そこで、基本ベクトルの中点に着目すると、基本ベクトルの中点はちょう
ど網点と網点との間隔の真ん中になるので、ここからもう一方の基本ベクトルに平行に直
線を引けば、網点と網点との間を均等に分割する直線を引くことができる。もう一方の基
本ベクトルについても同様に、中点から直線を引くことによって、網点と網点との間を均
等に分割する直線が引ける。こうして2本の直線を引いたら、今度は、この2本の直線を
基本ベクトルを使って平行移動させていくことによって、網点全体に直線を引いていく(
図5(b)参照)。こうして基本ベクトルを用いて網点全体に直線を引くことによって、
網点一つ一つを取り囲む網点セルが決定される(図5(b)参照)。
FIG. 5 is an explanatory diagram conceptually showing how halftone cells are obtained from two basic vectors. As shown in FIG. 5A, when a basic vector is drawn starting from a halftone dot, since the basic vector represents the repetition period of the halftone dot, the end point of the basic vector is just the next halftone dot. Come in position. Therefore, focusing on the midpoint of the basic vector, the midpoint of the basic vector is exactly in the middle of the distance between the halftone dots, so if you draw a straight line parallel to the other basic vector, A straight line that evenly divides between halftone dots can be drawn. Similarly, by drawing a straight line from the middle point for the other basic vector, a straight line that evenly divides between the halftone dots can be drawn. If two straight lines are drawn in this way, this time, the two straight lines are drawn using the basic vector to draw a straight line over the entire halftone dot (
(Refer FIG.5 (b)). By drawing a straight line through the halftone dot using the basic vector,
A halftone cell surrounding each halftone dot is determined (see FIG. 5B).

図6は、図3の画像の一部分(図3で「A」と示した部分)に網点セルが設定されてい
る様子を示した説明図である。図6に示されている様に、直線を引いて網点セルを設定す
ると、実際に網点が存在する部分だけでなく、網点がない部分にも網点セルを設定するこ
とができる。そこで、次のステップS104では、これら全ての網点セルについて、網点
セルの中に実際に網点が存在するか否かを調べていく。網点が存在するか否かは、網点セ
ル内の画素のデータを取得することで容易に判断することができる。すなわち、網点の部
分の画素は所定の階調値で塗りつぶされているので、この階調値を有する画素が網点セル
内にあるか否かを調べればよい。例えば、黒色に塗りつぶされた網点であれば、網点セル
内の各画素の輝度を所定の閾値と比較することによって、網点の黒色に対応する画素があ
るか否かを調べればよい。網点の黒色に対応する画素があれば、その網点セルは「網点あ
り」と判断できるし、逆に、網点の黒色に対応する画素がなければ、「網点なし」と判断
できる。尚、ノイズ等によって黒色の階調値を有する画素が偶然存在することもあり得る
ので、こうしたノイズ等の影響を避けるために、黒色の階調値を有する画素が一定数以上
固まって存在している場合にのみ「網点あり」と判断することとしてもよい。
FIG. 6 is an explanatory diagram showing a state in which halftone cells are set in a part of the image of FIG. 3 (portion indicated by “A” in FIG. 3). As shown in FIG. 6, when a halftone cell is set by drawing a straight line, a halftone cell can be set not only in a portion where a halftone dot actually exists but also in a portion where there is no halftone dot. Accordingly, in the next step S104, it is checked whether or not there is actually a halftone dot in the halftone cell for all of these halftone cells. Whether or not a halftone dot exists can be easily determined by acquiring pixel data in the halftone cell. That is, since the pixels in the halftone dot portion are filled with a predetermined gradation value, it is only necessary to check whether or not a pixel having this gradation value is in the halftone cell. For example, in the case of a halftone dot filled in black, the luminance of each pixel in the halftone cell is compared with a predetermined threshold value to check whether there is a pixel corresponding to the black dot. If there is a pixel corresponding to a black dot, the halftone cell can be determined to have “halftone dot”, and conversely, if there is no pixel corresponding to a black dot, “no dot” can be determined. . In addition, since a pixel having a black gradation value may exist by chance due to noise or the like, in order to avoid the influence of such noise or the like, a certain number or more of pixels having a black gradation value are present. It may be determined that “there is a halftone dot” only when there is.

以上のようにして、全ての網点セルについて「網点あり」または「網点なし」を判断し
たら、次いで、網点セルの「網点あり」および「網点なし」の配置パターンに基づいて、
網点を除去する領域を設定する処理を行う(図2のステップS106)。すなわち、網点
セルの「網点あり」および「網点なし」の配置から被写体の輪郭線を推定し、輪郭線の内
側を網点除去領域(ローパスフィルタによるぼかし処理を施す領域)に設定するのである
。ここで、理解を容易にするために、このステップS106で行う処理の具体的な内容を
説明する前に、まず、「網点あり」および「網点なし」の配置パターンに基づいて被写体
の輪郭を推定する方法について説明する。
As described above, when “halftone” or “no halftone” is determined for all halftone cells, then, based on the arrangement pattern of “halftone” and “no halftone” in the halftone cells. ,
A process for setting a region for removing halftone dots is performed (step S106 in FIG. 2). That is, the contour line of the subject is estimated from the arrangement of “halftone dot” and “no halftone dot” in the halftone cell, and the inside of the contour line is set as a halftone dot removal region (region subjected to blur processing by a low-pass filter). It is. Here, to facilitate understanding, before describing the specific contents of the processing performed in step S106, first, the contour of the subject is determined based on the arrangement pattern of “with halftone dots” and “without halftone dots”. A method of estimating the will be described.

図7は、「網点あり」および「網点なし」の配置パターンから、輪郭を推定する様子を
示した説明図である。図7の網点は、図3に示されている画像の一部分であり(図3で「
A」と示した部分)、格子状に描かれている線は、先のステップS102で設定した網点
セルである。まず、図7において「A」で示した4つの網点セルに注目すると、この4つ
の網点セルには全て網点が存在している。輪郭線の外側には網点は無いはずであるから、
この4つの網点はすべて輪郭線の内側に位置していることになる。したがって、輪郭線は
、この4つの網点の内側には存在しないことが推定できる。
FIG. 7 is an explanatory diagram showing how the contour is estimated from the arrangement pattern of “with halftone dot” and “without halftone dot”. A halftone dot in FIG. 7 is a part of the image shown in FIG.
A portion indicated by “A”), a line drawn in a grid pattern is a halftone cell set in the previous step S102. First, paying attention to the four halftone cells indicated by “A” in FIG. 7, all of the four halftone cells have halftone dots. Since there should be no halftone dots outside the outline,
These four halftone dots are all located inside the contour line. Therefore, it can be estimated that the contour line does not exist inside these four halftone dots.

一方、図中「B」で示された4つの網点セルに注目すると、上側の2つの網点セルでは
網点が無く、下側の2つの網点セルでは網点が存在している。この場合、網点がない上側
の2つの網点セルは輪郭よりも外側に位置しており、網点がある下側の2つの網点セルは
輪郭よりも内側に位置していると考えられる。したがって、輪郭線は、下側の2つの網点
セルと上側の2つの網点セルとの間を横方向に通っていることが推定できる。
On the other hand, when attention is paid to the four halftone cells indicated by “B” in the figure, the upper two halftone cells have no halftone dots, and the lower two halftone cells have halftone dots. In this case, it is considered that the upper two halftone cells without halftone dots are located outside the contour, and the lower two halftone cells with halftone dots are located inside the contour. . Therefore, it can be estimated that the outline passes in the horizontal direction between the lower two halftone cells and the upper two halftone cells.

また、図中「C」で示された4つの網点セルに注目すると、右上の網点セルには網点が
なく、その他の3つの網点セルには網点が存在している。このことから、網点のない右上
の網点セルは輪郭よりも外側に位置しており、一方、右上以外の3つの網点セル(網点の
あるセル)は輪郭よりも内側に位置していると考えられる。したがって、輪郭線は、右上
の網点セルとそれ以外の3つの網点セルとの間を斜めに通っていることが推定できる。
Further, when attention is paid to the four halftone cells indicated by “C” in the figure, the upper right halftone cell has no halftone dot and the other three halftone cells have halftone dots. From this, the upper right halftone dot cell without halftone dots is located outside the outline, while the three halftone dots other than the upper right (cells with halftone dots) are located inside the outline. It is thought that there is. Therefore, it can be estimated that the outline passes obliquely between the upper right halftone cell and the other three halftone cells.

この様に、「網点有り」の網点セルおよび「網点無し」の網点セルの位置関係を見れば
、輪郭線の有無あるいは位置を推測することが可能である。そこで、図2のステップS1
06では、先のステップS104で求めた「網点あり」および「網点なし」の配置関係に
基づいて輪郭線を推定し、推定した輪郭線の内側を網点除去領域(ローパスフィルタによ
るぼかし処理を行う領域)に設定する処理を行うのである。尚、輪郭線を推定する際は、
4つの網点セルに限らず、より多くの網点セルから輪郭線を推定することも可能である。
あるいは、例えば、4つの網点セルを対角線で2つに分割することにより、実質的に3つ
の網点セルから輪郭線を推定することも可能である。この様に、原理的には網点セルの数
は4つに限られることはないが、本実施例では、4つの網点セルの「網点あり」および「
網点なし」の位置関係に基づいて輪郭線を推定するものとして説明する。
In this way, by looking at the positional relationship between the halftone dot cell with “halftone dot” and the halftone dot cell with “no halftone dot”, it is possible to infer the presence or absence or position of the outline. Therefore, step S1 in FIG.
In 06, a contour line is estimated based on the arrangement relationship of “with halftone dot” and “without halftone dot” obtained in the previous step S104, and the inside of the estimated contour line is represented by a halftone dot removal region (blurring process using a low-pass filter). The process of setting to (region to perform) is performed. When estimating the contour line,
It is possible to estimate the contour line from a larger number of halftone cells, not limited to four halftone cells.
Alternatively, for example, it is also possible to estimate a contour line from three halftone cells substantially by dividing four halftone cells into two diagonal lines. In this way, the number of halftone cells is not limited to four in principle, but in this embodiment, the four halftone cells “with halftone dots” and “
The description will be made assuming that the contour line is estimated based on the positional relationship of “no dot”.

また、4つの網点セルの「網点あり」および「網点なし」の位置関係に基づいて輪郭線
を推定する場合、4つの網点セルがそれぞれ「網点あり」または「網点なし」の2通りを
取り得ることから、「網点あり」および「網点なし」の配置パターンは、全部で2の4乗
通り(=16通り)しか存在していない。そこで、本実施例の網点除去処理では、これら
の16通りの網点の配置パターンに対して推定される輪郭線を予め求めておき、推定され
る輪郭線と網点の配置パターンとを対応付けて記憶しておくことによって、迅速に輪郭線
を推定することを可能としている。以下では、こうした方法によって輪郭線を推定し、輪
郭線の内側に網点除去領域を設定する処理(図2のステップS106)について詳しく説
明する。
Further, when the contour line is estimated based on the positional relationship between the “halftone dot” and “no halftone dot” of the four halftone cells, the four halftone cells are “with halftone dot” or “without halftone dot”, respectively. Therefore, the arrangement pattern of “with halftone dots” and “without halftone dots” has only 2 4 ways (= 16 ways) in total. Therefore, in the halftone dot removal processing of the present embodiment, the estimated contour lines are obtained in advance for these 16 types of halftone dot arrangement patterns, and the estimated contour lines correspond to the halftone dot arrangement patterns. By attaching and memorizing it, it is possible to quickly estimate the contour line. Hereinafter, a process (step S106 in FIG. 2) of estimating a contour line by such a method and setting a halftone dot removal area inside the contour line will be described in detail.

図8は、16通りの網点配置パターンについて、推定される輪郭線および網点除去領域
がそれぞれの網点配置パターンに対応付けられている様子を示した説明図である。前述し
た様に、網点の配置パターンから輪郭線を推定することができるので、16通りの全ての
網点配置パターンについて、それぞれ輪郭線を対応付けておくことが可能である。例えば
、図中「A」で示された4つの網点が全てある配置パターンの場合、前述した様に、これ
ら4つの網点は輪郭線よりも内側に位置していると推定される。従って、図示されている
様に、この場合は網点の内側を網点除去領域とすることができる。同様に、右上の網点が
ない配置パターンの場合(図8中「B」で表示)、右上の網点は輪郭線の外側に位置して
おり、その他の3つの網点は輪郭線の内側にあるので、輪郭線は図中に太線で示した位置
にあり、輪郭線の左下の領域を網点除去領域とすることができる。その他の配置パターン
についても、同様に、それぞれ網点除去領域を対応付けておくことが可能である。本実施
例の印刷装置10の制御部300は、こうした16通りの網点配置パターンと網点除去領
域とを対応付けて記憶しており、これらを用いて、次の様に網点除去領域を設定していく
FIG. 8 is an explanatory diagram showing a state in which estimated contour lines and halftone dot removal regions are associated with the respective halftone dot arrangement patterns with respect to 16 halftone dot arrangement patterns. As described above, since the contour line can be estimated from the halftone dot arrangement pattern, it is possible to associate the contour lines with each of the 16 halftone dot arrangement patterns. For example, in the case of an arrangement pattern having all four halftone dots indicated by “A” in the figure, it is estimated that these four halftone dots are located inside the contour line as described above. Therefore, as shown in the figure, in this case, the inside of the halftone dot can be used as a halftone dot removal region. Similarly, in the case of an arrangement pattern without the upper right halftone dot (indicated by “B” in FIG. 8), the upper right halftone dot is located outside the outline, and the other three halftone dots are located inside the outline. Therefore, the contour line is at the position indicated by the thick line in the figure, and the lower left region of the contour line can be used as a halftone dot removal region. Similarly, other halftone dot removal regions can be associated with other arrangement patterns. The control unit 300 of the printing apparatus 10 of the present embodiment stores the 16 halftone dot arrangement patterns and the halftone dot removal areas in association with each other, and using these, the halftone dot removal area is stored as follows. Set it.

図9は、画像に網点除去領域を設定する様子を示した説明図である。図示されている画
像は、図3に示されている画像の一部分(図3で「A」と示した部分)であり、破線は網
点セルである。この画像に対して、本実施例の制御部300は、次のように網点除去領域
を設定していく。まず、図9(a)において「A」で示された4つの網点セルに注目する
と、下側の2つの網点セルには網点があり、上側の2つの網点セルには網点がないので、
この網点配置パターンは、図8の「C」で示した網点配置パターンである。そこで、制御
部300は、この網点配置パターンに対応付けて記憶しておいた網点除去領域を読み出し
て、その網点除去領域を画像に設定する。こうして図中「A」で示した4つの網点セルに
着目して網点除去領域を設定したら、今度は、これとは別の4つの網点セルに着目して網
点除去領域を設定する。
FIG. 9 is an explanatory diagram showing a state in which a halftone dot removal area is set in an image. The image shown in FIG. 3 is a part of the image shown in FIG. 3 (the part indicated by “A” in FIG. 3), and the broken line is a halftone dot cell. For this image, the control unit 300 of this embodiment sets a halftone dot removal area as follows. First, paying attention to the four halftone cells indicated by “A” in FIG. 9A, the lower two halftone cells have halftone dots and the upper two halftone cells have halftone dots. Because there is no
This halftone dot arrangement pattern is the halftone dot arrangement pattern indicated by “C” in FIG. Therefore, the control unit 300 reads the halftone dot removal area stored in association with the halftone dot arrangement pattern, and sets the halftone dot removal area in the image. When the halftone dot removal area is set by paying attention to the four halftone cells indicated by “A” in the drawing, the halftone dot removal area is set by paying attention to another four halftone cells. .

図9(b)では、図中「B」で示された4つの網点セルに着目して網点除去領域を設定
している。この4つの網点セルは、全ての網点セルに網点があるので、図8に「A」で示
した網点配置パターンに対応している。そこで、制御部300は、この網点配置パターン
に対応付けられている網点除去領域を読み出して、その網点除去領域を画像に設定する。
すると、先ほどの図9(a)で設定した網点除去領域にちょうど繋がる様に網点除去領域
が設定される。
In FIG. 9B, the halftone dot removal area is set by paying attention to the four halftone cells indicated by “B” in the figure. These four halftone cells correspond to the halftone dot arrangement pattern indicated by “A” in FIG. 8 since all halftone cells have halftone dots. Therefore, the control unit 300 reads out the halftone dot removal area associated with the halftone dot arrangement pattern and sets the halftone dot removal area in the image.
Then, the halftone dot removal area is set so as to be connected to the halftone dot removal area set in FIG. 9A.

こうして網点除去領域を設定したら、また別の4つの網点セルに注目して網点除去領域
を設定していく。例えば、網点セル1つ分ずつ下に移動しながら4つの網点セルに注目し
て網点除去領域を設定していけば、図9(c)に示されているように、網点除去領域を下
に向かって順次設定していくことができる。そして、図中「C」で示された位置では、今
度は、図8の「D」で示された配置パターンになっているので、図8の「D」に対応付け
られている網点除去領域を設定すればよい。この様に、4つの網点セルに着目して、その
配置パターンに対応付けて記憶していた網点除去領域を読み出せば、網点除去領域を順次
設定していくことができる。
After the halftone dot removal area is set in this way, the halftone dot removal area is set by paying attention to another four halftone cells. For example, if a halftone dot removal area is set by paying attention to four halftone cells while moving downward by one halftone cell, halftone dot removal is performed as shown in FIG. The area can be set sequentially downward. Then, at the position indicated by “C” in the figure, this time, the arrangement pattern indicated by “D” in FIG. 8 is used, so halftone dot removal associated with “D” in FIG. 8 is performed. What is necessary is just to set an area | region. In this way, by focusing on the four halftone cells and reading the halftone dot removal area stored in association with the arrangement pattern, the halftone dot removal areas can be sequentially set.

図10は、こうした処理を全ての網点セルに対して行うことによって網点除去領域が設
定された様子を示した説明図である。前述した様に、4つの網点セルの配置パターンごと
に網点除去領域を設定していけば、その配置パターンから推定される輪郭線の内側に網点
除去領域が設定され、図示されている様に、推定される輪郭線の内側だけに網点除去領域
が設定される。こうして網点除去領域を設定したら、今度は、網点除去領域にローパスフ
ィルタを作用させることによって網点を除去する処理を行う(図2のステップS108)
FIG. 10 is an explanatory diagram showing a state in which a halftone dot removal region is set by performing such processing on all halftone cells. As described above, if a halftone dot removal area is set for each arrangement pattern of four halftone cells, a halftone dot removal area is set inside the contour estimated from the arrangement pattern, and is shown in the figure. Similarly, the halftone dot removal region is set only inside the estimated contour line. After the halftone dot removal area is set in this way, a process for removing halftone dots is performed by applying a low-pass filter to the halftone dot removal area (step S108 in FIG. 2).
.

図11は、網点を除去するために用いるローパスフィルタを例示した説明図である。図
示されている様に、ローパスフィルタでは、対象画素の階調値とその周りの画素の階調値
とを同じ重みで足し合わせて平均値を求め、得られた平均値を対象画素の階調値とする。
こうしたローパスフィルタを、網点除去領域の画素を対象画素として適用していけば、網
点除去領域の階調値が平均化されることによって、網点が除去される。例えば、黒色の網
点の場合、網点除去領域は、網点部分の画素(黒色)と網点以外の部分の画素(例えば白
色)とから構成されるが、ローパスフィルタを適用すると、周辺の平均の階調値に置き換
えられることによって、網点部分の画素および網点以外の部分の画素のいずれも、黒色と
白色との中間色となる。こうして、網点部分もそれ以外の部分も同じ色となって見分けが
つかなくなることにより、網点が除去される。そして、このとき、網点部分と網点以外の
部分との面積比(すなわち網点が表している濃淡)に対応した階調値が得られるので、単
に網点を除去するだけでなく、網点で表されていた濃淡を階調値に置き換えて表現するこ
とが可能となる。
FIG. 11 is an explanatory diagram illustrating a low-pass filter used for removing halftone dots. As shown in the figure, in the low-pass filter, the gradation value of the target pixel and the gradation values of the surrounding pixels are added with the same weight to obtain an average value, and the obtained average value is used for the gradation of the target pixel. Value.
If such a low-pass filter is applied to pixels in the halftone dot removal region as target pixels, the halftone dots are removed by averaging the gradation values in the halftone dot removal region. For example, in the case of a black halftone dot, the halftone dot removal region is composed of a halftone dot pixel (black) and a pixel other than the halftone dot (for example, white). By being replaced with the average gradation value, both the halftone pixel and the pixel other than the halftone are intermediate colors between black and white. Thus, the halftone dots are removed by making the halftone dot portion and the other portions in the same color indistinguishable. At this time, since the gradation value corresponding to the area ratio between the halftone dot portion and the portion other than the halftone dot (that is, the shading represented by the halftone dot) is obtained, not only the halftone dot is removed but also the halftone dot is removed. It is possible to replace the shades represented by dots with gradation values.

尚、網点除去領域にローパスフィルタを適用する際には、ローパスフィルタの範囲内の
画素(図11のローパスフィルタでは、縦5画素×横5画素の25画素)全てを用いて平
均階調値を算出するのではなく、ローパスフィルタの範囲内の画素の中で網点除去領域に
ある画素のみを用いて平均の階調値を算出することとしてもよい。例えば、輪郭線のすぐ
内側の画素を対象画素としてローパスフィルタを適用する場合、輪郭線の外側の画素がロ
ーパスフィルタの範囲内に入ることがあるが、こうした場合には、輪郭線の外側の画素は
用いずに輪郭線の内側の画素のみを用いて平均階調値を算出することとしてもよい。こう
すれば、輪郭線の外側の階調値の影響を受けることがないので、網点で表されていた濃淡
に対応するより正確な階調値を得ることができる。また、輪郭線の内側の階調値と輪郭線
の外側の階調値とが僅かながら近づいてしまう事態を回避することも可能となるので、輪
郭をよりくっきりさせることが可能となる。
When the low pass filter is applied to the halftone dot removal area, the average gradation value is calculated using all the pixels within the range of the low pass filter (25 pixels of 5 vertical pixels × 5 horizontal pixels in the low pass filter in FIG. 11). The average gradation value may be calculated by using only the pixels in the halftone dot removal region among the pixels within the range of the low-pass filter. For example, when a low pass filter is applied using a pixel immediately inside the contour line as a target pixel, a pixel outside the contour line may fall within the range of the low pass filter. In such a case, a pixel outside the contour line may be included. The average gradation value may be calculated using only the pixels inside the contour line without using. By doing so, since there is no influence of the gradation value outside the contour line, a more accurate gradation value corresponding to the shading represented by the halftone dot can be obtained. In addition, since it is possible to avoid a situation in which the gradation value inside the contour line and the gradation value outside the contour line are slightly approaching, the contour can be made clearer.

こうして、網点除去領域にローパスフィルタを作用させて網点を除去したら、図2の網
点除去処理を終了する。そして、網点が除去された画像データに基づいてプリンタ部20
0で画像を印刷すれば、網点が除去されていることから、モアレ等がない良好な画像が得
られる。そして、このとき、本実施例の網点除去処理では、輪郭線の内側だけにローパス
フィルタを適用していることから、ローパスフィルタの為に被写体や文字の輪郭までもが
ぼやけてしまう事態を回避することができ、その結果、輪郭がくっきりとした好適な画像
を得ることが可能となる。
When the halftone dot is removed by applying the low pass filter to the halftone dot removal region in this way, the halftone dot removal process in FIG. Based on the image data from which the halftone dots have been removed, the printer unit 20
If the image is printed at 0, since the halftone dots are removed, a good image without moire or the like can be obtained. At this time, since the low-pass filter is applied only to the inside of the contour line in the halftone dot removal processing of the present embodiment, the situation where the subject and the contour of the character are blurred due to the low-pass filter is avoided. As a result, it is possible to obtain a suitable image with a clear outline.

以上に説明した様に、本実施例の網点除去処理では、網点の配置パターンに基づいて輪
郭線を推定し、推定した輪郭線の内側だけにローパスフィルタを適用することによって、
被写体や文字の輪郭をぼかすことなく網点を除去することを可能としている。もちろん、
網点の配置から推定した輪郭線は、本来の輪郭線と厳密に一致しているわけではないので
、本来の輪郭を厳密に再現できるわけではない。しかし、輪郭線に従って網点が配置され
ている以上、網点の配置から推定した輪郭線が本来の輪郭線と大きく異なることはないの
で、推定した輪郭線に基づいて網点除去を行うことで、輪郭がほぼ正しく再現された好適
な画像を印刷することが可能となる。特に、文字の輪郭については、推定した輪郭線が本
来の輪郭線と多少異なっていても不自然に感じられることはないので、推定した輪郭線に
基づいて網点を除去することによって十分に品質の高い文字を印刷することが可能となっ
ている。
As described above, in the halftone dot removal process of the present embodiment, the contour line is estimated based on the arrangement pattern of the halftone dots, and the low pass filter is applied only to the inside of the estimated contour line.
It is possible to remove halftone dots without blurring the outline of the subject or characters. of course,
Since the contour estimated from the arrangement of the halftone dots does not exactly match the original contour, the original contour cannot be accurately reproduced. However, as long as the halftone dots are arranged according to the outline, the outline estimated from the arrangement of the halftone dots is not significantly different from the original outline, so by performing halftone dot removal based on the estimated outline Thus, it is possible to print a suitable image in which the contour is almost correctly reproduced. In particular, with regard to the outline of a character, even if the estimated outline is slightly different from the original outline, it does not feel unnatural. Therefore, by removing halftone dots based on the estimated outline, it is possible to obtain sufficient quality. It is possible to print high-quality characters.

更に、本実施例の網点除去処理では、16通りの網点配置パターンについて、網点配置
パターンと網点除去領域とを予め対応付けて記憶していることから(図8を参照)、迅速
に網点除去が可能となっている。すなわち、画像に網点除去領域を設定する際には、画像
の網点配置パターンと16通りの網点配置パターンとを照合して合致する網点配置パター
ンを探すだけでよく、この網点配置パターンを照合する処理は、照合するパターンが16
通りしかないことから、極めて高速に処理可能となっている。例えば、CPUを用いて照
合処理を行う場合、照合処理に必要なデータサイズは4ビット(すなわち16通り)だけ
でよいので、4ビットを1サイクルで処理可能なCPU(例えば一般的な8ビットCPU
など)であれば、1サイクルだけで高速に処理が可能である。この様に、網点除去領域を
設定する際には、高速に実行可能な網点パターンの照合処理を行えばよく、その他に複雑
な画像解析処理は何ら必要としないので、迅速に網点を除去することが可能となっている
。また、CPUの1サイクルだけで照合処理が可能なことから、汎用の低速なCPUであ
っても十分に高速な処理が可能であるから、画像処理専用の高速LSIなどを必要とする
ことがなく、装置構成を簡素に保つことも可能となっている。
Further, in the halftone dot removal process of the present embodiment, the halftone dot placement pattern and the halftone dot removal area are stored in advance in association with each other with respect to the 16 halftone dot placement patterns (see FIG. 8). Halftone dot removal is possible. That is, when setting a halftone dot removal region in an image, it is only necessary to match the halftone dot arrangement pattern of the image with the 16 halftone dot arrangement patterns to find a matching halftone dot arrangement pattern. In the pattern matching process, there are 16 patterns to be matched.
Since it only passes, it can be processed extremely quickly. For example, when collation processing is performed using a CPU, the data size required for the collation processing is only 4 bits (that is, 16 types), so a CPU that can process 4 bits in one cycle (for example, a general 8-bit CPU)
Etc.), high-speed processing is possible in only one cycle. In this way, when setting the halftone dot removal area, it is only necessary to perform a halftone dot pattern matching process that can be performed at high speed, and no other complicated image analysis processing is required. It can be removed. In addition, since collation processing can be performed with only one CPU cycle, even a general-purpose low-speed CPU can perform sufficiently high-speed processing, so that a high-speed LSI dedicated to image processing is not required. It is also possible to keep the device configuration simple.

尚、網点セルの配置パターンから網点除去領域を設定する際には、前述した様に、4つ
の網点セルを用いて網点除去領域を設定するのではなく、より多くの網点セルを用いて設
定することも可能であるし、より少ない網点セルを用いて設定することも可能である。し
かし、本実施例の様に、4つの網点セルを用いた場合には、特に簡便に網点除去領域を設
定することが可能となる。この点について、補足して説明しておく。すなわち、画像に描
かれた多数の網点は、見方を変えれば、網点一つ一つを格子点とする格子と捉えることが
できる。すると、4つの網点は、ちょうどこの格子の単位格子を構成することになる。こ
こで、単位格子は、単位格子を平行に並べていくことで格子全体を構成できる性質(並進
対称性)を有することから、単位格子である4つの網点に網点除去領域を対応付けておけ
ば、この網点除去領域を平行移動させながら並べていくだけで、網点全体に網点除去領域
を設定することが可能である。こうした理由から、図9に示した様に、4つの網点配置パ
ターンごとに網点除去領域を設定する処理を繰り返し実行するだけで、網点全体に網点除
去領域を設定することが可能となっているのである。
When setting the halftone dot removal area from the halftone cell arrangement pattern, as described above, the halftone dot removal area is not set by using the four halftone cells, but more halftone dot cells are set. It is also possible to set using a small number of halftone cells. However, when four halftone cells are used as in this embodiment, it is possible to set the halftone removal area particularly easily. This point will be supplementarily described. That is, a large number of halftone dots drawn in an image can be regarded as a lattice having each halftone dot as a lattice point, if the way of viewing is changed. Then, the four halftone dots constitute just a unit cell of this lattice. Here, since the unit cell has the property (translational symmetry) that can form the entire cell by arranging the unit cells in parallel, the halftone dot removal region can be associated with the four halftone dots that are the unit cell. For example, it is possible to set a halftone dot removal region for the whole halftone dot by simply arranging the halftone dot removal regions while being translated. For this reason, as shown in FIG. 9, it is possible to set a halftone dot removal area for the whole halftone dot by simply executing a process for setting a halftone dot removal area for each of the four halftone dot arrangement patterns. It has become.

C.変形例 :
C−1.第1変形例 :
上述した実施例では、「網点あり」の網点セルおよび「網点なし」の網点セルの配置パ
ターンに基づいて輪郭線を推定するものとして説明した。しかし、「網点あり」および「
網点なし」の配置パターンに加えて、網点が欠けているか否かを考慮することで、より正
確に輪郭線を推定することが可能である。
C. Modified example:
C-1. First modification:
In the above-described embodiments, the description has been made on the assumption that the contour line is estimated based on the arrangement pattern of the halftone cells with “halftone” and the halftone cells with “no halftone”. However, “with halftone dots” and “
In addition to the arrangement pattern of “no halftone dots”, it is possible to estimate the contour line more accurately by considering whether or not halftone dots are missing.

図12は、網点の欠けをも考慮して、輪郭線を推定する様子を示した説明図である。こ
こで、図12(a)は、上述の実施例で説明した網点の欠けを考慮しない場合の配置パタ
ーンから推定される輪郭線である(図8を参照)。図12(a)の網点配置パターンの場
合、前述した様に、右上には網点がなく、その他には網点があることから、図に実線で示
された位置に輪郭線があるものと推定される。一方、網点が欠けている場合、その欠けは
輪郭線によって生じたものであるから、少なくとも、欠けた網点のすぐ近くを輪郭線が通
っているものと推定できる。例えば、図12(b)に示された配置パターンであれば、左
上の網点が欠けていることから、この網点のすぐ近くを輪郭線が通っていることが推定で
きる。そこで、欠けた網点がある場合には、欠けた網点に輪郭線を近づけることで、より
正確な輪郭線を推定することが可能となる。図12(b)には、このようにしてより正確
な輪郭線を推定する様子が示されている。尚、図12(b)では、網点セルの中心を通る
様に輪郭線を近づけるものとしている。しかし、これに限らず、図12(a)に示した状
態から輪郭線の位置を欠けた網点の側に近づけるのであれば、どの様な態様で近づけても
構わない。
FIG. 12 is an explanatory diagram showing a state in which the contour line is estimated in consideration of the lack of halftone dots. Here, FIG. 12A is an outline estimated from the arrangement pattern in the case of not considering the lack of halftone dots described in the above-described embodiment (see FIG. 8). In the case of the halftone dot arrangement pattern in FIG. 12 (a), as described above, there is no halftone dot in the upper right, and there are other halftone dots, so that there is a contour line at the position indicated by the solid line in the figure. It is estimated to be. On the other hand, when a halftone dot is missing, the lack is caused by a contour line, so it can be estimated that the contour line passes at least in the immediate vicinity of the missing halftone dot. For example, in the arrangement pattern shown in FIG. 12B, since the upper left halftone dot is missing, it can be estimated that the contour line passes through the immediate vicinity of this halftone dot. Therefore, when there is a missing halftone dot, it is possible to estimate a more accurate contour line by bringing the outline closer to the missing halftone dot. FIG. 12B shows how a more accurate contour line is estimated in this way. In FIG. 12B, the contour line is made to approach the center of the halftone cell. However, the present invention is not limited to this, and any form may be used as long as the position of the contour line is brought closer to the missing halftone dot from the state shown in FIG.

また、図12(c)に示されている様に、右下の網点が欠けている場合には、右下の網
点の近くを輪郭線が通っていることが推定できるので、図12(a)の輪郭線を右下の網
点に近づけることで、より正確な輪郭線が得られる。更に、図12(d)に示されている
様に、左上の網点と右下の網点との両方が欠けている場合には、輪郭線がこの2つの網点
の近くを通っていることから、図12(a)の輪郭線を欠けた2つの網点に近づけること
で、より正確な輪郭線が得られる。
Further, as shown in FIG. 12 (c), when the lower right halftone dot is missing, it can be estimated that the outline passes near the lower right halftone dot. By bringing the outline of (a) closer to the lower right halftone dot, a more accurate outline can be obtained. Furthermore, as shown in FIG. 12D, when both the upper left halftone dot and the lower right halftone dot are missing, the contour line passes near the two halftone dots. Therefore, a more accurate contour line can be obtained by bringing the contour line in FIG. 12A closer to the two missing halftone dots.

また、図12(e)および図12(f)は、4つの網点セルのうちの左側2つにのみ網
点がある場合について、網点の欠けからより正確な輪郭線を推定する様子が示されている
。図12(e)の場合、前述の実施例で説明した様に、右側の2つの網点がないことから
、図示されている輪郭線が推定できる。これに対して、図12(f)の様に、左上の網点
が欠けている場合には、欠けた網点の近くに輪郭線が存在していると考えられることから
、図12(e)の輪郭線を左上の網点に近づけることで、より正確な輪郭線を得ることが
できる。その他の網点配置パターンについても、同様に、欠けている網点の近くに輪郭線
が存在すると考えられることから、欠けた網点に輪郭線を近づけることで、より正確に輪
郭線を推定することが可能である。
12 (e) and 12 (f) show a state in which a more accurate contour line is estimated from the lack of halftone dots when there are halftone dots only in the left two of the four halftone cells. It is shown. In the case of FIG. 12E, since there are no two right halftone dots as described in the above-described embodiment, the illustrated contour line can be estimated. On the other hand, when the upper left halftone dot is missing as shown in FIG. 12 (f), it is considered that an outline exists near the missing halftone dot. ) Is closer to the upper left halftone dot, a more accurate contour line can be obtained. Similarly, for other halftone dot arrangement patterns, it is considered that there is a contour line near the missing halftone dot, so the contour line can be estimated more accurately by bringing the contour line closer to the missing halftone dot. It is possible.

この様に、網点が欠けている場合には、欠けた網点のすぐ近くを輪郭線が通っていると
考えられることから、欠けた網点に輪郭線を近づけることで、より正確な輪郭線が得られ
る。そこで、前述の実施例において、4つの網点セルの「網点あり」「網点なし」の配置
パターンに対して推定される輪郭線および網点除去領域を予め対応付けて記憶しておいた
のと同様に(図8を参照)、第1変形例では、4つの網点セルの「網点あり」「網点なし
」「網点欠け」の配置パターンに対して、推定される輪郭線および網点除去領域を予め対
応付けて記憶しておく。ここで、「網点欠け」を含む配置パターンについては、上述した
様に、欠けた網点に輪郭線を近づけることで得られる輪郭線および網点除去領域を記憶し
ておけばよく、一方、「網点欠け」を含まない配置パターンについては、図8に示した輪
郭線および網点除去領域を記憶しておけばよい。そして、前述の実施例と同様に(図9を
参照)、画像の網点配置パターンと、記憶しておいた配置パターンとを照合することによ
って、画像に網点除去領域を設定する。こうして網点除去領域を設定すれば、網点の欠け
によってより正確に輪郭線を推定し、その内側に網点除去領域を設定することが可能とな
る。
In this way, when a halftone dot is missing, it is considered that the outline passes through the immediate vicinity of the missing halftone dot. Therefore, a more accurate outline can be obtained by bringing the outline close to the missing halftone dot. A line is obtained. Therefore, in the above-described embodiment, the estimated contour line and the halftone dot removal area are stored in advance in association with the arrangement pattern of “with halftone dot” and “without halftone dot” in the four halftone cells. As in (see FIG. 8), in the first modified example, the estimated contour lines for the arrangement patterns of “with halftone dots”, “without halftone dots”, and “missing halftone dots” in the four halftone cells. The halftone dot removal area is stored in association with each other. Here, for the arrangement pattern including “halftone dot missing”, as described above, it is only necessary to store the outline and halftone dot removal area obtained by bringing the outline close to the missing halftone dot, For an arrangement pattern that does not include “halftone dot missing”, the outline and halftone dot removal region shown in FIG. 8 may be stored. Then, similarly to the above-described embodiment (see FIG. 9), the halftone dot removal region is set in the image by collating the halftone dot arrangement pattern of the image with the stored arrangement pattern. If the halftone dot removal area is set in this way, it is possible to estimate the contour line more accurately based on the lack of halftone dots and set the halftone dot removal area inside.

尚、第1変形例では、4つの網点がそれぞれ「網点あり」「網点なし」「網点欠け」の
3通りを取り得ることから、全部で3の4乗通り(=81通り)の配置パターンについて
、網点配置パターンと網点除去領域とを対応付けて記憶しておく必要があるので、記憶し
ておく配置パターン数は前述の実施例よりも多くなっている。しかし、前述の実施例で説
明した様に、記憶しておいた配置パターンと画像の網点配置パターンとを照合する処理は
高速に実行可能なことから、記憶しておく配置パターンが多くなっても、依然として高速
に網点除去領域を設定可能となっている。
In the first modification, since the four halftone dots can take three ways of “with halftone dot”, “no halftone dot”, and “missing halftone dot”, respectively, a total of 3 to the 4th power (= 81 ways) Since it is necessary to store the halftone dot placement pattern and the halftone dot removal area in association with each other, the number of placement patterns to be stored is larger than in the above-described embodiment. However, as described in the above-described embodiment, since the process of collating the stored arrangement pattern with the halftone dot arrangement pattern of the image can be executed at high speed, the number of arrangement patterns to be stored increases. However, the halftone dot removal region can still be set at high speed.

また、網点セル内の網点が欠けているか否かの判断については、種々の方法によって判
断可能であるが、網点の重心の位置を算出して、網点セルの中心の位置との差を調べるこ
とで容易に判断することが可能である。図13には、網点の重心と網点セルの中心との差
を調べることで網点の欠けを判断する様子が示されている。図中ハッチで示された画素は
、網点を構成する画素である。網点を構成する画素は、網点セル内の全ての画素について
網点に相当する階調値を有するか否かを調べることで抽出することができる。こうして網
点を構成する画素を抽出したら、それらの画素の重心位置を算出する。ここで、網点が欠
けていなければ、図13に点線で示されている様に、網点を構成する画素は網点セルの中
心に略円状に存在するはずなので、網点の重心は網点セルの中心と一致する。これに対し
て、網点が欠けていれば、網点が欠けた分だけ重心が偏るので、網点セルの中心と網点の
重心とに偏差が生じる。この様に、網点の重心の位置と網点セルの中心との偏差の有無を
調べれば、網点が欠けているか否かを判断することが可能である。こうした方法で網点の
欠けを判断すれば、どのような大きさの網点であっても欠けがあれば重心がずれることか
ら、網点が表している濃淡(すなわち網点の大きさ)に拘わらず網点の欠けを容易に検出
することが可能である。
The determination of whether or not the halftone dot in the halftone cell is missing can be made by various methods. However, the position of the center of gravity of the halftone dot is calculated and the position of the center of the halftone cell is calculated. It can be easily judged by examining the difference. FIG. 13 shows how a halftone dot is determined by examining the difference between the center of gravity of the halftone dot and the center of the halftone cell. Pixels indicated by hatching in the figure are pixels constituting halftone dots. Pixels constituting a halftone dot can be extracted by examining whether or not all pixels in the halftone cell have a gradation value corresponding to the halftone dot. When the pixels constituting the halftone dots are extracted in this way, the barycentric positions of those pixels are calculated. Here, if the halftone dot is not missing, as shown by the dotted line in FIG. 13, the pixels constituting the halftone dot should exist in a substantially circular shape at the center of the halftone cell. Matches the center of the halftone cell. On the other hand, if the halftone dot is missing, the center of gravity is biased by the lack of the halftone dot, so that a deviation occurs between the center of the halftone cell and the center of gravity of the halftone dot. In this way, it is possible to determine whether or not a halftone dot is missing by examining whether or not there is a deviation between the position of the center of gravity of the halftone dot and the center of the halftone dot cell. If a halftone dot is determined by such a method, the center of gravity will be shifted if there is a halftone dot of any size, so the shading represented by the halftone dot (ie, the size of the halftone dot) will be reduced. Regardless, it is possible to easily detect missing dots.

図14は、「網点あり」「網点なし」の配置パターンに網点の欠けも考慮して網点除去
領域を設定した様子を示した説明図である。前述した様に、網点の欠けはその網点の近く
に輪郭線があることを意味しているので、網点欠けを考慮することによって、図示されて
いる様に、輪郭線をより正確に推定することが可能となっている。こうして設定した網点
除去領域に対してローパスフィルター(図11参照)を適用すれば、本来の輪郭がより正
確に再現された好適な画像を出力することが可能となる。
FIG. 14 is an explanatory diagram showing a state in which a halftone dot removal region is set in consideration of the lack of halftone dots in the arrangement pattern of “with halftone dots” and “without halftone dots”. As described above, the lack of a halftone dot means that there is a contour line near the halftone dot, so by considering the lack of halftone dot, the contour line is more accurately shown as shown in the figure. It is possible to estimate. If a low-pass filter (see FIG. 11) is applied to the halftone dot removal region set in this way, a suitable image in which the original contour is reproduced more accurately can be output.

C−2.第2変形例 :
前述した第1変形例では、「網点あり」「網点なし」「網点欠け」の網点配置パターン
に対して推定される輪郭線を予め対応付けて記憶しておくことで、輪郭線を正確に推定す
るものとして説明した。しかし、単に網点の欠けの有無を考慮するだけでなく、欠けた量
をも考慮して、より細かく輪郭線の近づけ方を調整することによって、いっそう正確に輪
郭線を推定することも可能である。
C-2. Second modification:
In the first modified example described above, contour lines estimated for the halftone dot arrangement patterns of “with halftone dot”, “no halftone dot”, and “halftone dot missing” are stored in advance in association with each other. Was described as an accurate estimate. However, it is possible not only to consider the presence or absence of halftone dots, but also to estimate the outline more accurately by adjusting the approach of the outline more finely in consideration of the amount of lack. is there.

図15は、欠けた網点について輪郭線を微調整する様子を例示した説明図である。図中
破線で示されているのは、第1変形例の方法によって推定された輪郭線であり、前述した
様に、欠けた網点に近い位置に(図示された例では、網点セルの中心に向けて)輪郭線が
引かれている。しかし、網点の欠けを見れば、輪郭線を網点にもっと近づけてもよいこと
がわかる。
FIG. 15 is an explanatory view exemplifying how the outline is finely adjusted for the missing halftone dot. The broken line in the figure is the contour estimated by the method of the first modification example, and as described above, it is close to the missing halftone dot (in the example shown, the halftone dot cell The outline is drawn (towards the center). However, it can be seen that the outline may be brought closer to the halftone dot by looking at the lack of the halftone dot.

ここで、輪郭線を調整する際には、欠けた網点の形状を詳しく調べて、網点の欠けた部
分の形状と輪郭線とが滑らかに繋がるように輪郭線を調整してもよいし、あるいは、より
簡単に、欠けた網点を構成する画素の中で一番端に位置する画素(図15の例では、一番
右側の画素)を通るように輪郭線を調整してもよい。尚、こうした微調整を行う処理は、
欠けた網点のみを対象に行えばよいので、処理負担が過大になることはない。この為、第
2変形例においても、依然として高速に網点除去領域を設定可能である。
Here, when adjusting the contour line, the shape of the missing halftone dot may be examined in detail, and the contour line may be adjusted so that the shape of the part lacking the halftone dot and the contour line are smoothly connected. Alternatively, the outline may be adjusted so as to pass through the pixel located at the extreme end among the pixels constituting the missing halftone dot (the rightmost pixel in the example of FIG. 15). . Note that the process of making these fine adjustments is
Since only the missing halftone dots need to be processed, the processing load is not excessive. For this reason, also in the second modification, the halftone dot removal region can be set still at high speed.

図16は、微調整を行った輪郭線に対して網点除去領域が設定された様子を例示した説
明図である。欠けた網点に基づいて輪郭線を微調整すれば、本来の輪郭線により近い位置
に輪郭線を引くことができるので、図示されているように、輪郭線をより正確に推定する
ことが可能となる。
FIG. 16 is an explanatory view exemplifying a state in which a halftone dot removal region is set with respect to a contour line subjected to fine adjustment. If the outline is fine-tuned based on the missing halftone dot, the outline can be drawn closer to the original outline, so that the outline can be estimated more accurately as shown in the figure. It becomes.

以上、本実施例の画像データ解析装置について説明したが、本発明は上記すべての実施
例に限られるものではなく、その要旨を逸脱しない範囲において種々の態様で実施するこ
とが可能である。
The image data analysis apparatus according to the present embodiment has been described above. However, the present invention is not limited to all the embodiments described above, and can be implemented in various modes without departing from the spirit of the present invention.

例えば、本実施例では、画像データ解析装置が印刷装置に搭載されている場合について
説明したが、画像データ解析装置は印刷装置に搭載される場合に限られず、例えば、液晶
ディスプレイやCRTディスプレイなどの画像表示装置に搭載することも可能であるし、
フォトビューワーや携帯電話端末などの携帯型表示装置に搭載することも可能である。更
には、街角や公共の場などに置かれた無人の写真印刷端末などに搭載することも可能であ
る。
For example, in the present embodiment, the case where the image data analysis apparatus is mounted on the printing apparatus has been described. However, the image data analysis apparatus is not limited to the case where the image data analysis apparatus is mounted on the printing apparatus. It can be mounted on an image display device,
It can also be mounted on a portable display device such as a photo viewer or a mobile phone terminal. Further, it can be mounted on an unmanned photo printing terminal placed on a street corner or in a public place.

本実施例の画像データ解析装置を搭載した印刷装置を示す説明図である。It is explanatory drawing which shows the printing apparatus carrying the image data analysis apparatus of a present Example. 本実施例の網点除去処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the halftone dot removal process of a present Example. 本実施例の網点除去処理を行う画像を例示した説明図である。It is explanatory drawing which illustrated the image which performs the halftone dot removal process of a present Example. 網点セルを求めるための基本ベクトルを算出する様子を示した説明図である。It is explanatory drawing which showed a mode that the basic vector for calculating | requiring a halftone cell was calculated. 基本ベクトルに基づいて網点セルを求める様子を示した説明図である。It is explanatory drawing which showed a mode that a halftone cell was calculated | required based on a basic vector. 画像に網点セルが設定された様子を示した説明図である。It is explanatory drawing which showed a mode that the halftone cell was set to the image. 「網点あり」および「網点なし」の配置パターンに基づいて輪郭線を推定する様子を示した説明図である。It is explanatory drawing which showed a mode that a contour line was estimated based on the arrangement pattern of "with halftone dot" and "without halftone dot". 網点配置パターンと網点除去領域とが対応付けられた様子を示した説明図である。It is explanatory drawing which showed a mode that the halftone dot arrangement | positioning pattern and the halftone dot removal area | region were matched. 4つの網点セルごとに網点除去領域を設定していく様子を概念的に示した説明図である。It is explanatory drawing which showed notionally the mode that the halftone dot removal area | region is set for every four halftone cells. 網点除去領域が設定された様子を示した説明図である。It is explanatory drawing which showed a mode that the halftone dot removal area | region was set. 網点除去に用いるローパスフィルタを例示した説明図である。It is explanatory drawing which illustrated the low pass filter used for a halftone dot removal. 第1変形例において、網点の欠けを考慮して輪郭線を推定する様子を概念的に示した説明図である。In a 1st modification, it is explanatory drawing which showed notionally that a contour line was estimated in consideration of the lack of halftone dots. 第1変形例において、網点の重心を調べることで網点の欠けを検出する様子を概念的に示した説明図である。It is explanatory drawing which showed notably the mode that the missing | missing of a halftone dot was detected by investigating the gravity center of a halftone dot in the 1st modification. 第1変形例において、網点の欠けを考慮して網点除去領域が設定された様子を示した説明図である。FIG. 10 is an explanatory diagram showing a state in which a halftone dot removal area is set in consideration of missing halftone dots in the first modification. 第2変形例において、個々の網点の欠けを考慮して輪郭線を微調整する様子を概念的に示した説明図である。In the 2nd modification, it is explanatory drawing which showed notionally that a contour line was fine-tuned in consideration of the lack of each halftone dot. 第2変形例において、網点除去領域が設定された様子を示した説明図である。It is explanatory drawing which showed a mode that the halftone dot removal area | region was set in the 2nd modification.

符号の説明Explanation of symbols

10…印刷装置、
100…スキャナ部、 200…プリンタ部 300…制御部
10: Printing device,
DESCRIPTION OF SYMBOLS 100 ... Scanner part 200 ... Printer part 300 ... Control part

Claims (8)

複数の網点によって表現された画像を読み込んだ画像データ内の輪郭を抽出する画像デ
ータ解析装置であって、
前記画像を構成する全ての前記網点の間で、該画像を等間隔の格子状に分割する複数の
網点セルを算出する網点セル算出手段と、
互いに隣接する所定個数の前記網点セルから構成される基本格子を算出する基本格子算
出手段と、
前記基本格子内の各網点セルでの前記網点の形成有無を検出することにより、該基本格
子内での網点配置を検出する網点配置検出手段と、
前記基本格子内で検出された前記網点配置に基づいて、該基本格子内での輪郭を抽出す
る基本格子内輪郭抽出手段と、
互いに隣接する複数の前記基本格子の各々について、該基本格子内での輪郭を抽出する
ことにより、前記画像データ内の輪郭を抽出する輪郭抽出手段と
を備える画像データ解析装置。
An image data analysis device that extracts an outline in image data obtained by reading an image represented by a plurality of halftone dots,
A halftone dot cell calculating means for calculating a plurality of halftone cells that divide the image into a regular grid between all the halftone dots constituting the image;
Basic lattice calculation means for calculating a basic lattice composed of a predetermined number of halftone cells adjacent to each other;
Halftone dot arrangement detecting means for detecting the halftone dot arrangement in the basic grid by detecting the presence or absence of the halftone dots in each halftone cell in the basic grid;
A basic in-grid contour extracting means for extracting a contour in the basic grid based on the halftone dot arrangement detected in the basic grid;
An image data analyzing apparatus comprising: a contour extracting unit configured to extract a contour in the image data by extracting a contour in the basic lattice for each of the plurality of basic lattices adjacent to each other.
請求項1に記載の画像データ解析装置であって、
前記基本格子算出手段は、互いに交差する方向に2つずつ並んだ4つの前記網点セルを
前記基本格子とする手段である画像データ解析装置
The image data analysis device according to claim 1,
The basic grid calculation means is an image data analysis device which is a means for using the four halftone cells arranged in a direction crossing each other as the basic grid.
請求項1に記載の画像データ解析装置であって、
前記網点配置検出手段は、前記網点セルに対して所定面積比以上の大きさを有し、且つ
、所定値よりも濃度が高い連続した領域が検出された該網点セルには、前記網点が形成さ
れているものと判断して、前記網点配置を検出する手段である画像データ解析装置。
The image data analysis device according to claim 1,
The halftone dot detection means has a size equal to or larger than a predetermined area ratio with respect to the halftone dot cell, and the halftone dot cell in which a continuous region having a concentration higher than a predetermined value is detected includes An image data analysis device which is means for determining that halftone dots are formed and detecting the halftone dot arrangement.
請求項1に記載の画像データ解析装置であって、
前記網点配置検出手段は、前記基本格子内での前記網点配置に加えて、該網点配置を構
成する前記網点の各々について、該網点の形状の欠けの有無も検出する手段であり、
前記基本格子内輪郭抽出手段は、前記基本格子内の前記網点配置と、該網点配置を構成
する前記網点の欠けの有無とに基づいて、該基本格子内での輪郭を抽出する手段である画
像データ解析装置。
The image data analysis device according to claim 1,
In addition to the halftone dot arrangement in the basic grid, the halftone dot arrangement detecting means is a means for detecting whether or not the halftone dot shape is missing for each of the halftone dots constituting the halftone dot arrangement. Yes,
The basic lattice outline extracting means is a means for extracting a contour in the basic grid based on the halftone dot arrangement in the basic grid and the presence / absence of the lack of the halftone dots constituting the halftone dot arrangement. An image data analysis apparatus.
請求項1に記載の画像データ解析装置であって、
前記網点配置検出手段は、前記網点セル内で検出された前記網点の中心位置と、該網点
セルの中心位置との偏りに基づいて、該網点の形状の欠けの有無を検出する手段である画
像データ解析装置。
The image data analysis device according to claim 1,
The halftone dot arrangement detecting means detects the presence or absence of a lack of the halftone dot shape based on a deviation between the center position of the halftone dot detected in the halftone dot cell and the center position of the halftone dot cell. An image data analysis apparatus that is means for performing
請求項1に記載の画像データ解析装置であって、
前記画像データ内で抽出された輪郭の内部の領域にローパスフィルタを作用させた後、
得られた該画像データを出力する画像データ出力手段を備える画像データ解析装置。
The image data analysis device according to claim 1,
After applying a low pass filter to the area inside the contour extracted in the image data,
An image data analysis device comprising image data output means for outputting the obtained image data.
複数の網点によって表現された画像を読み込んだ画像データ内の輪郭を抽出する画像デ
ータ解析方法であって、
前記画像を構成する全ての前記網点の間で、該画像を等間隔の格子状に分割する複数の
網点セルを算出する工程と、
互いに隣接する所定個数の前記網点セルから構成される基本格子を算出する工程と、
前記基本格子内の各網点セルでの前記網点の形成有無を検出することにより、該基本格
子内での網点配置を検出する工程と、
前記基本格子内で検出された前記網点配置に基づいて、該基本格子内での輪郭を抽出す
る工程と、
互いに隣接する複数の前記基本格子の各々について、該基本格子内での輪郭を抽出する
ことにより、前記画像データ内の輪郭を抽出する工程と
を備える画像データ解析方法。
An image data analysis method for extracting an outline in image data obtained by reading an image represented by a plurality of halftone dots,
Calculating a plurality of halftone cells that divide the image into equidistant grids among all the halftone dots constituting the image;
Calculating a basic grid composed of a predetermined number of the halftone cells adjacent to each other;
Detecting the dot arrangement in the basic grid by detecting the presence or absence of the halftone dots in each halftone cell in the basic grid; and
Extracting a contour in the basic grid based on the halftone dot arrangement detected in the basic grid;
Extracting a contour in the image data by extracting a contour in the basic lattice for each of the plurality of basic lattices adjacent to each other.
複数の網点によって表現された画像を読み込んだ画像データ内の輪郭を抽出する方法を
、コンピュータを用いて実現するためのプログラムであって、
前記画像を構成する全ての前記網点の間で画像を等間隔の格子状に分割する複数の網点
セルを算出する機能と、
互いに隣接する所定個数の前記網点セルから構成される基本格子を算出する機能と、
前記基本格子内の各網点セルでの前記網点の形成有無を検出することにより、該基本格
子内での網点配置を検出する機能と、
前記基本格子内で検出された前記網点配置に基づいて、該基本格子内での輪郭を抽出す
る機能と、
互いに隣接する複数の前記基本格子の各々について、該基本格子内での輪郭を抽出する
ことにより、前記画像データ内の輪郭を抽出する機能と
をコンピュータにより実現させるプログラム。
A program for realizing, using a computer, a method for extracting a contour in image data obtained by reading an image represented by a plurality of halftone dots,
A function of calculating a plurality of halftone cells that divide the image into equidistant grids among all the halftone dots constituting the image;
A function of calculating a basic lattice composed of a predetermined number of halftone cells adjacent to each other;
A function of detecting a halftone dot arrangement in the basic grid by detecting the presence or absence of the halftone dots in each halftone cell in the basic grid;
A function of extracting a contour in the basic grid based on the halftone dot arrangement detected in the basic grid;
A program for realizing a function of extracting a contour in the image data by extracting a contour in the basic lattice for each of a plurality of the basic lattices adjacent to each other.
JP2007267489A 2007-10-15 2007-10-15 Image data analysis device, image data analysis method, and program Withdrawn JP2009100078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007267489A JP2009100078A (en) 2007-10-15 2007-10-15 Image data analysis device, image data analysis method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007267489A JP2009100078A (en) 2007-10-15 2007-10-15 Image data analysis device, image data analysis method, and program

Publications (1)

Publication Number Publication Date
JP2009100078A true JP2009100078A (en) 2009-05-07

Family

ID=40702699

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007267489A Withdrawn JP2009100078A (en) 2007-10-15 2007-10-15 Image data analysis device, image data analysis method, and program

Country Status (1)

Country Link
JP (1) JP2009100078A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006203319A (en) * 2005-01-18 2006-08-03 Konica Minolta Business Technologies Inc Image processing apparatus and image processing program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006203319A (en) * 2005-01-18 2006-08-03 Konica Minolta Business Technologies Inc Image processing apparatus and image processing program

Similar Documents

Publication Publication Date Title
JP4926568B2 (en) Image processing apparatus, image processing method, and image processing program
JP4137890B2 (en) Image processing apparatus, image forming apparatus, image reading processing apparatus, image processing method, image processing program, and computer-readable recording medium
JP4890974B2 (en) Image processing apparatus and image processing method
JP2010187376A (en) Resizing digital document image
CN100477722C (en) Image processing apparatus, image forming apparatus, image reading process apparatus and image processing method
JP2009278363A (en) Image processor and image processing method
EP3422690B1 (en) Information processing apparatus, control method thereof, and program
JP3639452B2 (en) Image processing device
US10339636B2 (en) Image processing apparatus that specifies edge pixel in target image by calculating edge strength
JP2006148292A (en) Image processing apparatus
JP5975945B2 (en) Image processing device
JP2009100078A (en) Image data analysis device, image data analysis method, and program
JP6025475B2 (en) Image area determination apparatus, image area determination method, and image processing apparatus
JP6025803B2 (en) Image processing device
JP6841254B2 (en) Image processing equipment and computer programs
JP2007081793A (en) Image forming apparatus
JP3877535B2 (en) Color image processing method, color image processing apparatus, color image processing program, and recording medium
JP6732428B2 (en) Image processing device, halftone dot determination method, and program
JP2008079196A (en) Image correcting method, image correcting program and image correcting module
JP2012114869A (en) Image processing device, image processing method, image processing program and program recording medium
JP6651776B2 (en) Image processing apparatus, image processing method, and program
JP5818559B2 (en) Image processing device
US20120201461A1 (en) Character detection apparatus, character detection method, and computer-readable storage medium
JP4545134B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4412339B2 (en) Image forming apparatus and image data correction method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100826

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110908

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110913

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20110930