JP4941157B2 - Coloring production apparatus, coloring production method and program thereof - Google Patents

Coloring production apparatus, coloring production method and program thereof Download PDF

Info

Publication number
JP4941157B2
JP4941157B2 JP2007197584A JP2007197584A JP4941157B2 JP 4941157 B2 JP4941157 B2 JP 4941157B2 JP 2007197584 A JP2007197584 A JP 2007197584A JP 2007197584 A JP2007197584 A JP 2007197584A JP 4941157 B2 JP4941157 B2 JP 4941157B2
Authority
JP
Japan
Prior art keywords
image
line segment
coloring
original image
area
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.)
Expired - Fee Related
Application number
JP2007197584A
Other languages
Japanese (ja)
Other versions
JP2009032178A (en
Inventor
陽一郎 牧
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 JP2007197584A priority Critical patent/JP4941157B2/en
Publication of JP2009032178A publication Critical patent/JP2009032178A/en
Application granted granted Critical
Publication of JP4941157B2 publication Critical patent/JP4941157B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To detect a line segment region included in an image under a more suitable condition. <P>SOLUTION: A printer 20 acquires an original image used for generating a coloring picture image by reading out the image from a document under a preset condition of reading resolution by a scanner part 40. A processing condition for blurring is set so as to increase a region of the original image to be blurred in the detection when the reading resolution is higher. A dot processing part 27a removes dots by blurring the original image under a set processing condition, and detects a detection region by applying the line segment detection processing to the resultant original image. A gamma conversion part 27b applies different gamma conversion processing to the detected region and the region other than the detected region, and produces a line segment region and a blank region to generate a coloring picture image. A condition for blurring used for line detection processing is set by use of the reading resolution of the original image. <P>COPYRIGHT: (C)2009,JPO&amp;INPIT

Description

本発明は、ぬりえ製造装置、ぬりえ製造方法及びそのプログラムに関する。   The present invention relates to a coloring production apparatus, a coloring production method, and a program thereof.

従来、ぬりえ製造装置としては、元画像において所定輝度以下の領域を墨線領域として検出し、墨線領域を取り囲む近傍の領域を近傍領域として検出し、墨線領域と近傍領域とを除いた領域を輪郭部分として検出し、墨線領域及び輪郭領域と、その他の領域と、に対して異なる色を割り当ててぬりえを製造するものが提案されており(例えば、特許文献1参照)、これによれば、部分的に輪郭が強調されているような画像から自然な線画を生成することができる、とされている。
特開2004−334303号公報
Conventionally, as a coloring manufacturing apparatus, an area having a predetermined luminance or less in an original image is detected as a black line area, a neighboring area surrounding the black line area is detected as a neighboring area, and an area excluding the black line area and the neighboring area is a contour portion. In other words, the coloring area is manufactured by assigning different colors to the black line area and the outline area and the other areas (see, for example, Patent Document 1). A natural line drawing can be generated from an image whose outline is emphasized.
JP 2004-334303 A

しかしながら、この特許文献1に記載されたぬりえ製造装置では、輝度については考慮しているが、ぬりえ画像を生成するとき、例えば線分を検出する線分検出処理を実行する際にその他の元画像の情報については考慮していなかった。このため、例えば原稿を読み取って元画像にする場合などには、画像に含まれる線分の領域を検出する線分検出処理を十分に実行することができない場合があった。   However, in the coloring manufacturing apparatus described in Patent Document 1, luminance is taken into consideration, but when generating a coloring image, for example, when executing a line segment detection process for detecting a line segment, other original images The information of was not considered. For this reason, for example, when a document is read to be an original image, the line segment detection process for detecting a line segment area included in the image may not be sufficiently executed.

本発明は、このような課題に鑑みなされたものであり、画像に含まれる線分の領域を検出する線分検出処理をより適切な条件で実行することができるぬりえ製造装置、ぬりえ製造方法及びそのプログラムを提供することを目的とする。   The present invention has been made in view of such problems, and a coloring manufacturing apparatus, a coloring manufacturing method, and a coloring manufacturing method capable of executing a line segment detection process for detecting a line segment area included in an image under more appropriate conditions. The purpose is to provide the program.

本発明は、上述の目的を達成するために以下の手段を採った。   The present invention adopts the following means in order to achieve the above-mentioned object.

本発明のぬりえ製造装置は、
ぬりえ画像の生成に用いられる元画像を所定の取得条件で原稿から読み取ることにより取得する画像取得手段と、
前記取得条件及び前記元画像に関する画像条件のうち少なくとも1つを含む読取時条件に基づいて前記元画像の線分領域を検出する線分検出処理を行う際に前記元画像に施す所定の処理の処理条件を設定する条件設定手段と、
前記設定された処理条件で前記元画像に前記所定の処理を施し、該処理後の元画像に前記線分検出処理を実行して検出領域を検出し、該検出した検出領域を線分領域とすると共に該検出領域以外の領域を空白領域としてぬりえ画像を生成する画像生成手段と、
を備えたものである。
The coloring production apparatus of the present invention is
Image acquisition means for acquiring an original image used for generation of a coloring image by reading it from a document under predetermined acquisition conditions;
A predetermined process performed on the original image when performing a line segment detection process for detecting a line segment area of the original image based on a reading condition including at least one of the acquisition condition and an image condition related to the original image; Condition setting means for setting processing conditions;
The predetermined process is performed on the original image under the set processing conditions, the line segment detection process is performed on the original image after the process to detect a detection area, and the detected detection area is defined as a line segment area. And an image generation means for generating a coloring image using a region other than the detection region as a blank region;
It is equipped with.

このぬりえ製造装置では、ぬりえ画像の生成に用いられる元画像を所定の取得条件で原稿から読み取ることにより取得し、この取得条件及び元画像に関する画像条件のうち少なくとも1つを含む読取時条件に基づいて元画像の線分領域を検出する線分検出処理を行う際に元画像に施す所定の処理の処理条件を設定し、設定した処理条件で元画像に所定の処理を施し、この処理後の元画像に線分検出処理を実行して検出領域を検出し、この検出した検出領域を線分領域とすると共にこの検出領域以外の領域を空白領域としてぬりえ画像を生成する。このように、元画像の取得条件や元画像の画像条件を含む読取時条件を用いて線分検出処理に用いる所定処理の条件を定めるのである。したがって、画像に含まれる線分の領域を検出する線分検出処理をより適切な条件で実行することができる。   In this coloring manufacturing apparatus, an original image used for generating a coloring image is acquired by reading from a document under a predetermined acquisition condition, and based on a reading condition including at least one of the acquisition condition and the image condition related to the original image. The processing conditions of the predetermined processing to be applied to the original image when performing the line segment detection processing for detecting the line segment area of the original image are set, the predetermined processing is applied to the original image under the set processing conditions, and the post-processing A line segment detection process is performed on the original image to detect a detection area, and the detected detection area is set as a line segment area and a non-detection area is used as a blank area to generate a coloring image. In this way, the conditions for the predetermined process used for the line segment detection process are determined using the reading conditions including the original image acquisition condition and the original image condition. Therefore, the line segment detection process for detecting the line segment area included in the image can be executed under more appropriate conditions.

本発明のぬりえ製造装置において、前記画像取得手段は、所定の取得条件として所定の読取解像度で前記元画像を前記原稿から読み取ることにより取得し、前記条件設定手段は、前記元画像に施す所定の処理としてぼかし処理の処理条件を前記読取解像度に基づいて設定し、前記画像生成手段は、前記元画像に前記ぼかし処理を施し該処理後の元画像に前記線分検出処理を実行するものとしてもよい。ぼかし処理は読取画像に含まれ線分領域として誤検出される網点を除去する効果があり、読取解像度はぼかし処理の程度に関係することから、読取画像の読取解像度を用いて画像に含まれる線分の領域を検出する線分検出処理をより適切な条件で実行することができる。このとき、前記条件設定手段は、前記ぼかし処理の処理条件を前記読取解像度に基づいて設定するに際して、前記読取解像度が大きくなると前記ぼかし処理を実行するときの実行領域が大きくなるように前記ぼかし処理の処理条件を設定するものとしてもよい。   In the coloring manufacturing apparatus of the present invention, the image acquisition unit acquires the original image by reading the original from the original with a predetermined reading resolution as a predetermined acquisition condition, and the condition setting unit performs a predetermined process applied to the original image. Processing conditions for blur processing may be set as processing based on the reading resolution, and the image generation unit may perform the blur processing on the original image and execute the line segment detection processing on the original image after the processing. Good. The blurring process has an effect of removing halftone dots that are included in the read image and erroneously detected as a line segment area. Since the reading resolution is related to the degree of the blurring process, it is included in the image using the reading resolution of the read image. The line segment detection process for detecting the line segment area can be executed under more appropriate conditions. At this time, when the processing condition of the blurring process is set based on the reading resolution, the condition setting unit sets the blurring process so that an execution area when the blurring process is executed becomes larger when the reading resolution increases. These processing conditions may be set.

本発明のぬりえ製造装置において、前記条件設定手段は、前記画像取得手段によって前記原稿から読み取ることにより取得された画像を解析することにより所定の画像条件としての前記元画像の所定線数を検出し、前記元画像に施す所定の処理としてぼかし処理の処理条件を前記検出した所定線数に基づいて設定し、前記画像生成手段は、前記元画像に前記ぼかし処理を施し該処理後の元画像に前記線分検出処理を実行するものとしてもよい。ぼかし処理は読取画像に含まれ線分領域として誤検出される網点を除去する効果があり、読取画像の線数はぼかし処理の程度に関係するから、読取画像の線数を用いて画像に含まれる線分の領域を検出する線分検出処理をより適切な条件で実行することができる。このとき、前記条件設定手段は、前記画像生成手段が生成するぬりえ画像の前記線分領域が前記元画像全体の所定割合になるように、前記検出した元画像の所定線数に基づいて前記線分検出処理の実行条件を設定するものとしてもよい。こうすれば、線分検出処理を一層適切な条件で実行可能であるため、ぬりえ画像に形成される線数の適正化を図ることができる。ここで「所定割合」は、生成されるぬりえ画像の状態と線分領域の割合とに基づいて経験的に定めるものとしてもよい。   In the coloring production apparatus of the present invention, the condition setting unit detects a predetermined number of lines of the original image as a predetermined image condition by analyzing an image acquired by reading from the original by the image acquisition unit. A blur processing condition is set based on the detected predetermined number of lines as a predetermined process to be performed on the original image, and the image generation unit performs the blur process on the original image and adds the blur to the original image after the process. The line segment detection process may be executed. The blurring process has the effect of removing halftone dots that are included in the read image and erroneously detected as line segment areas, and the number of lines in the read image is related to the degree of blurring processing. The line segment detection process for detecting the included line segment area can be executed under more appropriate conditions. At this time, the condition setting means sets the line based on the detected number of lines of the original image so that the line segment area of the coloring image generated by the image generation means becomes a predetermined ratio of the whole original image. An execution condition for the minute detection process may be set. By doing so, the line segment detection process can be executed under more appropriate conditions, and therefore the number of lines formed in the coloring image can be optimized. Here, the “predetermined ratio” may be determined empirically based on the state of the generated coloring image and the ratio of the line segment area.

本発明のぬりえ製造装置において、前記画像生成手段は、前記検出した検出領域を線分領域とすると共に該検出領域以外の領域を空白領域とするに際して、前記検出した検出領域には入力値を高輝度側へ変換して出力する第1ガンマ変換処理を実行して前記線分領域とし、前記検出領域以外の領域には入力値を白色へ変換する第2ガンマ変換処理を実行することにより前記空白領域として前記ぬりえ画像を生成するものとしてもよい。こうすれば、ガンマ変換処理により比較的容易に線分領域と空白領域としてぬりえ画像を生成することができる。   In the coloring production apparatus of the present invention, the image generating means increases the input value to the detected detection area when the detected detection area is a line segment area and the area other than the detection area is a blank area. A first gamma conversion process that converts to the luminance side and outputs is executed to obtain the line segment area, and the blank area is obtained by executing a second gamma conversion process that converts the input value to white in an area other than the detection area. The coloring image may be generated as a region. In this way, it is possible to generate a coloring image as a line segment area and a blank area relatively easily by gamma conversion processing.

本発明のぬりえ製造装置において、前記画像生成手段は、前記取得した元画像にモノクロ処理を実行し、該処理したモノクロ画像に対して、前記設定された処理条件で前記所定の処理を施し該処理後のモノクロ画像に前記線分検出処理を実行して検出した検出領域を線分領域とすると共に該検出領域以外の領域を空白領域としてぬりえ画像を生成するものとしてもよい。こうすれば、階調表現の限定されたモノクロ画像に対して線分検出処理を行うため、比較的容易な処理で線分検出処理を実行することができる。あるいは、前記画像生成手段は、前記線分検出処理を実行するに際して、前記元画像に含まれる複数の色成分の各々に対して前記設定された処理条件で前記所定の処理を施し該処理後の各色成分の元画像に前記線分検出処理を実行して前記検出領域を検出するものとしてもよい。こうすれば、各色成分の元画像を用いて線分検出処理を実行するから、例えばモノクロの元画像を用いて線分検出するのに比して多数の階調を用いて線分検出を行うため、線分検出処理をより確実に行うことができる。   In the coloring production apparatus of the present invention, the image generation means performs monochrome processing on the acquired original image, performs the predetermined processing on the processed monochrome image under the set processing conditions, and performs the processing. A detection area detected by executing the line segment detection process on a subsequent monochrome image may be used as a line segment area, and an area other than the detection area may be used as a blank area to generate a coloring image. By doing so, the line segment detection process is performed on a monochrome image with limited gradation expression, and therefore the line segment detection process can be executed with a relatively easy process. Alternatively, when executing the line segment detection process, the image generation unit performs the predetermined process on each of a plurality of color components included in the original image under the set processing condition, The line segment detection process may be executed on the original image of each color component to detect the detection area. In this way, line segment detection processing is executed using the original image of each color component, and therefore, line segment detection is performed using a larger number of gradations compared to, for example, line segment detection using a monochrome original image. Therefore, the line segment detection process can be performed more reliably.

本発明のぬりえ製造装置は、画像を表示可能な表示手段と、ユーザの操作に基づいて設定される前記ぬりえ画像を生成する際の設定情報を取得可能な設定取得手段と、前記設定取得手段によって前記元画像が自然画である設定情報を取得したときには、前記画像生成手段が生成する線分領域に関する設定情報をユーザが入力する旨の情報を表示するよう前記表示手段を制御する制御手段と、を備え、前記条件設定手段は、前記設定取得手段が取得した前記線分領域に関する設定情報をも加味して前記線分検出処理を行う際に前記元画像に施す所定の処理の処理条件を設定し、前記画像生成手段は、前記設定された処理条件で前記元画像に前記所定の処理を施し、該処理後の元画像に前記線分検出処理を実行して検出領域を検出するものとしてもよい。こうすれば、元画像の状態によっては線分領域の検出が変動しやすい自然画が元画像であるときに、ユーザの操作によってぬりえ画像の線分領域に関する情報を指定可能であるため、画像に含まれる線分の領域を検出する線分検出処理をよりユーザの好む条件で実行することができる。このとき、前記制御手段は、前記設定取得手段によって前記元画像がイラスト画である設定情報を取得したときには、前記画像生成手段が生成する線分領域に関する設定情報をユーザが入力する旨の情報を表示しないよう前記表示手段を制御するものとしてもよい。   The coloring production apparatus of the present invention includes a display unit capable of displaying an image, a setting acquisition unit capable of acquiring setting information when generating the coloring image set based on a user operation, and the setting acquisition unit. Control means for controlling the display means to display information indicating that the user inputs setting information related to a line segment region generated by the image generating means when the original image is set as a natural image; The condition setting means sets processing conditions for a predetermined process to be performed on the original image when the line segment detection process is performed in consideration of setting information regarding the line segment area acquired by the setting acquisition means. The image generation means performs the predetermined processing on the original image under the set processing conditions, and executes the line segment detection processing on the processed original image to detect a detection region. Good. In this way, when a natural image whose line segment area detection is likely to fluctuate depending on the state of the original image is the original image, information about the line segment area of the coloring image can be specified by a user operation. The line segment detection process for detecting the included line segment area can be executed under conditions that the user prefers. At this time, when the setting acquisition unit acquires the setting information that the original image is an illustration image, the control unit receives information indicating that the user inputs setting information related to the line segment region generated by the image generation unit. The display means may be controlled not to display.

本発明のぬりえ製造装置は、前記画像生成手段が生成したぬりえ画像を印刷媒体へ印刷処理する印刷実行手段、を備えたものとしてもよい。こうすれば、ぬりえ画像が形成された印刷媒体を得やすい。   The coloring production apparatus of the present invention may include a print execution unit that prints the coloring image generated by the image generation unit onto a print medium. This makes it easier to obtain a print medium on which a coloring image is formed.

本発明のぬりえ製造方法は、
ぬりえ画像を生成するぬりえ製造方法であって、
(a)ぬりえ画像の生成に用いられる元画像を所定の取得条件で原稿から読み取ることにより取得するステップと、
(b)前記取得条件及び前記元画像に関する画像条件のうち少なくとも1つを含む読取時条件に基づいて前記元画像の線分領域を検出する線分検出処理を行う際に前記元画像に施す所定の処理の処理条件を設定するステップと、
(c)前記ステップ(b)で設定された処理条件で前記ステップ(a)で取得した元画像に前記所定の処理を施し、該処理後の元画像に前記線分検出処理を実行して検出領域を検出し、該検出した検出領域を線分領域とすると共に該検出領域以外の領域を空白領域としてぬりえ画像を生成するステップと、
を含むものである。
The coloring production method of the present invention includes:
A coloring manufacturing method for generating a coloring image,
(A) acquiring an original image used for generating a coloring image by reading it from a document under predetermined acquisition conditions;
(B) A predetermined process applied to the original image when performing a line segment detection process for detecting a line segment region of the original image based on a reading condition including at least one of the acquisition condition and an image condition related to the original image. Setting the processing conditions for the processing of
(C) Applying the predetermined process to the original image acquired in the step (a) under the processing conditions set in the step (b) and executing the line segment detection process on the original image after the process Detecting a region, setting the detected detection region as a line segment region and generating a coloring image using a region other than the detection region as a blank region; and
Is included.

このぬりえ製造方法では、ぬりえ画像の生成に用いられる元画像を所定の取得条件で原稿から読み取ることにより取得し、この取得条件及び元画像に関する画像条件のうち少なくとも1つを含む読取時条件に基づいて元画像の線分領域を検出する線分検出処理を行う際に元画像に施す所定の処理の処理条件を設定し、設定した処理条件で元画像に所定の処理を施し、この処理後の元画像に線分検出処理を実行して検出領域を検出し、この検出した検出領域を線分領域とすると共にこの検出領域以外の領域を空白領域としてぬりえ画像を生成する。このように、元画像の取得条件や元画像の画像条件を含む読取時条件を用いて線分検出処理に用いる所定処理の条件を定めるのである。したがって、画像に含まれる線分の領域を検出する線分検出処理をより適切な条件で実行することができる。なお、このぬりえ製造方法において、上述したぬりえ製造装置の種々の態様を採用してもよいし、また、上述したぬりえ製造装置の各機能を実現するようなステップを追加してもよい。   In this coloring manufacturing method, an original image used to generate a coloring image is acquired by reading from a document under a predetermined acquisition condition, and based on a reading condition including at least one of the acquisition condition and the image condition related to the original image. The processing conditions of the predetermined processing to be applied to the original image when performing the line segment detection processing for detecting the line segment area of the original image are set, the predetermined processing is applied to the original image under the set processing conditions, and the post-processing A line segment detection process is performed on the original image to detect a detection area, and the detected detection area is set as a line segment area and a non-detection area is used as a blank area to generate a coloring image. In this way, the conditions for the predetermined process used for the line segment detection process are determined using the reading conditions including the original image acquisition condition and the original image condition. Therefore, the line segment detection process for detecting the line segment area included in the image can be executed under more appropriate conditions. In this coloring manufacturing method, various aspects of the above-described coloring manufacturing apparatus may be adopted, and steps for realizing each function of the above-described coloring manufacturing apparatus may be added.

本発明のプログラムは、上述したぬりえ製造方法の各ステップを1又は複数のコンピュータに実現させるためのものである。このプログラムは、コンピュータが読み取り可能な記録媒体(例えばハードディスク、ROM、FD、CD、DVDなど)に記録されていてもよいし、伝送媒体(インターネットやLANなどの通信網)を介してあるコンピュータから別のコンピュータへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムを一つのコンピュータに実行させるか又は複数のコンピュータに各ステップを分担して実行させれば、上述したぬりえ製造方法の各ステップが実行されるため、このぬりえ製造方法と同様の作用効果が得られる。   The program of this invention is for making each step of the coloring manufacturing method mentioned above implement | achieve in one or several computers. This program may be recorded on a computer-readable recording medium (for example, hard disk, ROM, FD, CD, DVD, etc.), or from a computer via a transmission medium (communication network such as the Internet or LAN). It may be distributed to another computer, or may be exchanged in any other form. If this program is executed by a single computer, or if each step is shared and executed by a plurality of computers, each step of the above-described coloring manufacturing method is executed. Therefore, the same effect as this coloring manufacturing method can be obtained. can get.

次に、本発明を実施するための最良の形態を図面を用いて説明する。図1は、ぬりえ10を作製するプリンタ20の構成の概略を示す構成図である。プリンタ20は、図1に示すように、スキャナ機能、プリンタ機能及びコピー機能を有するマルチファンクションプリンタとして構成されており、装置全体の制御を司るコントローラ21と、携帯用の記憶媒体であるメモリカード60をスロット25aに装着・取外し可能であるリーダライタ25と、接続された外部機器との間で情報の入出力が可能なインタフェース(I/F)28と、プリンタ機構31を制御するICチップであるプリンタASIC(Application Specific Integrated Circuit)32を含んで構成されるプリンタ部30と、スキャナ機構41を制御するICチップであるスキャナASIC42を含んで構成されるスキャナ部40と、ユーザへ情報を表示可能でありユーザの指示を入力可能である操作パネル50と、を備えている。コントローラ21やリーダライタ25、I/F28、プリンタ部30、スキャナ部40、操作パネル50は、バス29によって電気的に接続されている。コントローラ21は、CPU22を中心とするマイクロプロセッサとして構成されており、情報を記憶消去可能であり各種処理プログラムなどを記憶したフラッシュROM23と、一時的にデータを記憶するRAM24と、プリンタ20をコピーとして使用する際に画像処理などを実行するコピー処理部27と、を備えている。コピー処理部27は、所定サイズ(例えば5×5ピクセル,7×7ピクセル又は9×9ピクセルなど)のガウシアンフィルタ(ぼかしフィルタ)を用いて読み取った画像に含まれる網点を除去する網点処理部27aと、読み取った画像のイメージ領域を除き文字領域などをより黒色とするなどのガンマ変換処理を実行するガンマ変換部27bとを備えており、コピー時の画像処理を行う機能を有している。プリンタ機構31は、シアン(C)・マゼンタ(M)・イエロー(Y)・ブラック(K)の各色のインクを個別に収容したインクカートリッジ34と、インクカートリッジ34から供給された各インクに圧力をかける圧力発生部35と、圧力発生部35で加圧されたインクを記録紙Sに吐出する吐出ノズル36と、記録紙Sを搬送する搬送ローラ38とを備えている。なお、圧力発生部35は、圧電素子の変形によりインクを加圧するものとしてもよいしヒータの熱で発生する気泡によりインクを加圧するものとしてもよい。スキャナ機構41は、いわゆるフラットベッド型であり、画像を読み取る原稿である媒体Mを載置するガラス面43と、このガラス面43を介して媒体Mを光学的に読み取る読取センサ44と、媒体Mの読取りの際に読取センサ44を走査させる移動部46とを備えている。読取センサ44は、媒体Mに向かって発光した後の反射光をレッド(R)、グリーン(G)、ブルー(B)の各色に分解してスキャンデータとする周知のカラーイメージセンサである。操作パネル50は、ユーザがプリンタ20に対して各種の指示を入力するためのデバイスであり、各種の指示に応じた文字や画像が表示されるカラー液晶パネルにより構成された表示部52や、各種操作を行う操作部54が設けられている。操作部54には、ユーザが処理や文字等を選択するカーソルなどを移動させるときに押下されるカーソルキー54aや処理選択などを決定するときに押下される決定キー54bなどが配置されている。メモリカード60は、データの書き込み及び消去が可能な不揮発性のメモリであり、デジタルカメラなどの撮影装置により撮影された複数の画像ファイルなどが保存されている。   Next, the best mode for carrying out the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram showing an outline of a configuration of a printer 20 for producing the coloring page 10. As shown in FIG. 1, the printer 20 is configured as a multi-function printer having a scanner function, a printer function, and a copy function, and includes a controller 21 that controls the entire apparatus and a memory card 60 that is a portable storage medium. Is an IC chip that controls the printer mechanism 31 and an interface (I / F) 28 capable of inputting / outputting information between the reader / writer 25 that can be attached / detached to / from the slot 25a, a connected external device, and the like. A printer unit 30 including a printer ASIC (Application Specific Integrated Circuit) 32, a scanner unit 40 including a scanner ASIC 42 which is an IC chip for controlling the scanner mechanism 41, and information can be displayed to the user. Yes, with user instructions It includes an operation panel 50 is capable force, the. The controller 21, reader / writer 25, I / F 28, printer unit 30, scanner unit 40, and operation panel 50 are electrically connected by a bus 29. The controller 21 is configured as a microprocessor centered on the CPU 22, and can store and erase information and can store a flash ROM 23 that stores various processing programs, a RAM 24 that temporarily stores data, and a printer 20 as a copy. And a copy processing unit 27 that executes image processing and the like when used. The copy processing unit 27 removes halftone dots included in an image read using a Gaussian filter (blurring filter) having a predetermined size (for example, 5 × 5 pixels, 7 × 7 pixels, or 9 × 9 pixels). A unit 27a, and a gamma conversion unit 27b that executes gamma conversion processing such as making the character region, etc., black except the image region of the read image, and has a function of performing image processing at the time of copying. Yes. The printer mechanism 31 includes an ink cartridge 34 that individually accommodates ink of each color of cyan (C), magenta (M), yellow (Y), and black (K), and pressure applied to each ink supplied from the ink cartridge 34. A pressure generating unit 35 to be applied, a discharge nozzle 36 for discharging the ink pressurized by the pressure generating unit 35 onto the recording paper S, and a conveyance roller 38 for conveying the recording paper S are provided. The pressure generator 35 may pressurize the ink by deformation of the piezoelectric element, or pressurize the ink by bubbles generated by the heat of the heater. The scanner mechanism 41 is a so-called flatbed type, and includes a glass surface 43 on which a medium M that is a document for reading an image is placed, a reading sensor 44 that optically reads the medium M through the glass surface 43, and a medium M And a moving unit 46 that scans the reading sensor 44 at the time of reading. The reading sensor 44 is a well-known color image sensor that separates the reflected light after being emitted toward the medium M into red (R), green (G), and blue (B) colors to obtain scan data. The operation panel 50 is a device for a user to input various instructions to the printer 20, and includes a display unit 52 configured by a color liquid crystal panel on which characters and images corresponding to the various instructions are displayed, An operation unit 54 for performing an operation is provided. The operation unit 54 is provided with a cursor key 54a that is pressed when the user moves a cursor or the like for selecting a process or a character, a determination key 54b that is pressed when determining a process selection, or the like. The memory card 60 is a nonvolatile memory in which data can be written and erased, and stores a plurality of image files photographed by a photographing device such as a digital camera.

次に、こうして構成された本実施形態のプリンタ20の動作、特に、ぬりえを作製する動作について説明する。図2は、元画像70の説明図である。元画像70は、線分領域72により色領域70aや色領域70bなど幾つかの領域に分けられたイラスト画像である。この元画像70には、線分領域72に隣接して色領域70a側には、網点74aが線分領域72に沿って形成されており、色領域70b側には網点74bが線分領域72に沿って形成されている。この網点74a,74bは、例えば130線/インチなどとなる間隔に形成されている。一般的に、イラスト画像は、線分が175線/インチや150線/インチ、130線/インチなど、おおよその範囲に形成されていることが多い。本実施形態では主としてこの元画像70を用いてぬりえの作製処理について説明する。まず、操作者は、ぬりえの元画像70が形成された原稿Mをスキャナ部40にセットし、図示しない処理実行画面を表示部52へ表示させ、原稿Mを読み取った画像からぬりえを作製する作製指示を操作部54を操作して入力する。すると、プリンタ20は、スキャナ部40にセットされた画像のぬりえの作製処理を実行する。図3は、ぬりえ作製処理ルーチンの一例を示すフローチャートである。このルーチンは、フラッシュROM23に記憶され、ぬりえ作製指示が入力されたあとCPU22により実行される。このルーチンを開始すると、CPU22は、まず、ぬりえ生成条件の設定処理を実行する(ステップS100)。ここで、一旦ぬりえ作製処理ルーチンの説明を中断し、ぬりえ生成条件の設定処理について説明する。   Next, the operation of the printer 20 of this embodiment configured as described above, particularly, the operation for producing a coloring page will be described. FIG. 2 is an explanatory diagram of the original image 70. The original image 70 is an illustration image divided into several areas such as a color area 70 a and a color area 70 b by a line segment area 72. In the original image 70, a halftone dot 74a is formed along the line segment area 72 on the color area 70a side adjacent to the line segment area 72, and a halftone dot 74b is formed on the color area 70b side. It is formed along the region 72. The halftone dots 74a and 74b are formed at an interval of 130 lines / inch, for example. In general, an illustration image is often formed in an approximate range of line segments such as 175 lines / inch, 150 lines / inch, and 130 lines / inch. In the present embodiment, the coloring production process will be described mainly using the original image 70. First, the operator sets the original M on which the coloring original image 70 is formed on the scanner unit 40, displays a processing execution screen (not shown) on the display unit 52, and creates a coloring from the image obtained by reading the original M. An instruction is input by operating the operation unit 54. Then, the printer 20 executes an image coloring production process set on the scanner unit 40. FIG. 3 is a flowchart illustrating an example of a coloring production process routine. This routine is stored in the flash ROM 23 and executed by the CPU 22 after a coloring production instruction is input. When this routine is started, the CPU 22 first executes a coloring generation condition setting process (step S100). Here, the description of the coloring production process routine will be interrupted, and the setting process of the coloring generation condition will be described.

図4は、ぬりえ生成条件設定ルーチンの一例を示すフローチャートである。このフローチャートはフラッシュROM23に記憶されている。このルーチンを開始すると、CPU22は、設定入力画面を表示部52へ表示させる(ステップS300)。図5は、表示部52に表示される設定入力画面80の説明図である。設定入力画面80は、ぬりえの生成条件の基本的な設定を行う画面であり、フラッシュROM23に記憶されている。この設定入力画面80には、カーソルキー54aの上下の押下に伴って上下に移動するカーソル81と、スキャナ部40やメモリカード60など画像の入力元を設定可能な入力装置設定欄80aや、原稿Mの読取解像度を右キーの押下で表示される図示しないプルダウンメニューにより設定可能な読取解像度設定欄80b、イラストや写真など原稿Mに形成されている画像の種類を設定可能な原稿種別設定欄80c、原稿Mがカラーかモノクロかを設定可能な色種別設定欄80d、A4サイズやハガキサイズなど用紙サイズを設定可能な用紙サイズ設定欄80e、普通紙やフォトマット紙など印刷する用紙の種別を設定可能な用紙種設定欄80fなどが含まれている。この設定入力画面80では、カーソル81を合わせカーソルキー54aの左右キーを押下すると設定と解除とを切り替え可能に構成されている。なお、読取解像度設定欄80bは、入力装置設定欄80aに「スキャナ」が設定された場合のみ設定可能となっている。   FIG. 4 is a flowchart illustrating an example of a coloring generation condition setting routine. This flowchart is stored in the flash ROM 23. When this routine is started, the CPU 22 displays a setting input screen on the display unit 52 (step S300). FIG. 5 is an explanatory diagram of a setting input screen 80 displayed on the display unit 52. The setting input screen 80 is a screen for performing basic setting of coloring generation conditions, and is stored in the flash ROM 23. The setting input screen 80 includes a cursor 81 that moves up and down when the cursor key 54a is pressed up and down, an input device setting field 80a in which an image input source such as the scanner unit 40 and the memory card 60 can be set, a document A reading resolution setting field 80b that can be set by a pull-down menu (not shown) displayed when the right key is pressed for the reading resolution of M, and a document type setting field 80c that can set the type of an image formed on the document M such as an illustration or a photograph. A color type setting field 80d for setting whether the document M is color or monochrome, a paper size setting field 80e for setting a paper size such as A4 size or postcard size, and a type of paper to be printed such as plain paper or photomat paper A possible paper type setting field 80f is included. The setting input screen 80 is configured to be able to switch between setting and releasing when the cursor 81 is set and the left and right keys of the cursor key 54a are pressed. The reading resolution setting field 80b can be set only when “scanner” is set in the input device setting field 80a.

この設定入力画面80を表示すると、CPU22は、設定入力画面80のいずれかの設定欄に入力があったか否かを判定し(ステップS310)、いずれかの設定欄に入力があったとき、例えば読取解像度設定欄80bに新たな読取解像度が入力されたときには入力された値をRAM24に記憶する(ステップS320)。ステップS320のあと、または、ステップS310で設定欄に入力がなかったときには、設定値の入力が終了したか否かを決定キー54bが押下されたか否かに基づいて判定する(ステップS330)。設定値の入力が終了していないときには、ステップS300以降の処理を繰り返し、設定値の入力が終了したときには、原稿種別設定欄80cに入力された原稿種別が写真(自然画)であるか否かを判定する(ステップS340)。原稿種別が写真(自然画)であるときには、原稿によってはいわゆるエッジが弱かったり生成されるぬりえ画像が変化するため、ユーザにぬりえ画像の線数や色の濃さなどユーザの嗜好を入力させるサブ情報入力画面82を表示部52へ表示出力させる(ステップS350)。図6は、表示部52に表示されるサブ情報入力画面82の説明図である。このサブ情報入力画面82には、生成されるぬりえ画像の線数を「少なめ」「普通」「多め」のいずれかに設定可能な線数設定欄82aや、生成されるぬりえ画像の線の色の濃さを5段階のいずれかに設定可能な線濃度設定欄82b、印刷品質を標準ときれいのいずれかに設定可能な品質設定欄82cなどが含まれている。線数設定欄82aの各値は、生成されたぬりえ画像の状態に基づいて、例えば「多め」には生成したぬりえ画像について全体の画像面積の15%程度が線分領域となるように経験的に定められた、後述する線分検出処理の閾値が対応付けられ、「普通」には画像面積の10%程度が線分領域となるような閾値が対応付けられ、「少なめ」には画像面積の5%程度が線分領域となるような閾値が対応付けられている。   When this setting input screen 80 is displayed, the CPU 22 determines whether or not there is an input in any setting field of the setting input screen 80 (step S310). When a new reading resolution is input to the resolution setting field 80b, the input value is stored in the RAM 24 (step S320). After step S320 or when there is no input in the setting field in step S310, it is determined whether or not the input of the setting value is completed based on whether or not the enter key 54b is pressed (step S330). When the input of the set value has not been completed, the processing from step S300 is repeated, and when the input of the set value has been completed, whether or not the document type input in the document type setting field 80c is a photograph (natural image). Is determined (step S340). When the document type is a photograph (natural image), the so-called edge is weak or the generated coloring image changes depending on the document, so that the user inputs the user's preference such as the number of lines and the color density of the coloring image. The information input screen 82 is displayed and output on the display unit 52 (step S350). FIG. 6 is an explanatory diagram of the sub information input screen 82 displayed on the display unit 52. The sub-information input screen 82 includes a line number setting field 82a in which the number of lines of the generated coloring image can be set to “less”, “normal”, or “large”, and the line color of the generated coloring image A line density setting field 82b that can set the density of the image to any one of five levels, a quality setting field 82c that can set the print quality to either standard or beautiful, and the like are included. Each value in the number-of-lines setting field 82a is empirically based on the state of the generated coloring image, for example, “more” is empirical so that about 15% of the total image area of the generated coloring image becomes a line segment region. A threshold value for line segment detection processing described later is associated, “normal” is associated with a threshold value such that about 10% of the image area is a line segment region, and “less” is image area. Is associated with a threshold value such that about 5% of the line segment region becomes.

続いて、CPU22は、サブ情報入力画面82のいずれかの設定欄に入力があったか否かを判定し(ステップS360)、いずれかの設定欄に入力があったとき、例えば線数設定欄82aに「少なめ」が入力されたときには入力された値をRAM24に記憶する(ステップS370)。ステップS370のあと、または、ステップS360で設定欄に入力がなかったときには、設定値の入力が終了したか否かを決定キー54bが押下されたか否かに基づいて判定する(ステップS380)。設定値の入力が終了していないときには、ステップS350以降の処理を繰り返す。ステップS380で設定値の入力が終了したとき、または、ステップS340で原稿種別が写真でないとき、即ちイラスト画であるときには、CPU22は、ユーザの設定した値を実行用の設定値に反映させ(ステップS390)、このルーチンを終了する。なお、ここでは、原稿種別設定欄80cにイラスト画が設定されているものとして以下説明する。   Subsequently, the CPU 22 determines whether or not there is an input in any setting field of the sub information input screen 82 (step S360), and when there is an input in any of the setting fields, for example, in the line number setting field 82a. When “less” is input, the input value is stored in the RAM 24 (step S370). After step S370 or when there is no input in the setting field in step S360, it is determined whether or not the input of the setting value is completed based on whether or not the enter key 54b is pressed (step S380). When the input of the set value has not been completed, the processes after step S350 are repeated. When the input of the setting value is completed in step S380, or when the document type is not a photograph in step S340, that is, an illustration image, the CPU 22 reflects the value set by the user in the setting value for execution (step S390), this routine is terminated. In the following description, it is assumed that an illustration is set in the document type setting field 80c.

さて、ステップS100のぬりえ生成条件の設定処理のあと、ぬりえ作製処理ルーチンにおいて、CPU22は、ユーザにより設定された値を用いて元画像の取得処理を実行する(ステップS110)。ここでは、CPU22がスキャナASIC42にスキャナ機構41を駆動制御させ、ガラス面43に載置された原稿Mを移動部46により読取センサ44を走査してユーザにより設定された読取解像度で読み取り、画像データとして元画像70を取得する処理を実行するものとした(図2参照)。また、ここでは、読み取った画像は、周知のモノクロ処理を経てモノクロ画像とするものとした。   Now, after the coloring generation condition setting process in step S100, in the coloring production process routine, the CPU 22 executes the original image acquisition process using the value set by the user (step S110). Here, the CPU 22 causes the scanner ASIC 42 to drive and control the scanner mechanism 41, scans the document M placed on the glass surface 43 with the reading sensor 44 by the moving unit 46, reads the document M with the reading resolution set by the user, and reads the image data As shown in FIG. 2, the process of acquiring the original image 70 is executed. Here, the read image is assumed to be a monochrome image through a known monochrome process.

次に、CPU22は、得られた元画像70に対して輝度化(Y)を実行し(ステップS120)、入力された読取解像度に基づいて網点除去フィルタを設定し(ステップS130)、設定した網点除去フィルタを用いて網点除去処理を実行する(ステップS140)。網点除去フィルタは、ぼかしフィルタであるガウシアンフィルタを用いるものとし、この網点除去フィルタは、CPU22が読取解像度が大きくなるほど大きくなる傾向にぼかし処理の実行領域としてのガウシアンフィルタのサイズを決定するものとした。ここでは、例えば、読取解像度が300dpiのときにはガウシアンフィルタのサイズが7×7ピクセルであり、読取解像度が600dpiのときにはガウシアンフィルタのサイズが9×9ピクセルに設定されるものとした。また、ここでは、原稿画像としてイラスト画が設定されているときには原稿に含まれる元画像の線数が130線/インチであるものとし、原稿画像として自然画が設定されているときには、原稿に含まれる元画像の線数が175線/インチであるものとして、固定的に取り扱うものとした。この網点除去処理は、CPU22がコピー処理部27の網点処理部27aに実行させるものとした。   Next, the CPU 22 executes luminance (Y) on the obtained original image 70 (step S120), sets a halftone dot removal filter based on the input reading resolution (step S130), and sets it. A halftone removal process is executed using the halftone removal filter (step S140). The halftone dot removal filter uses a Gaussian filter that is a blurring filter, and this halftone dot removal filter determines the size of the Gaussian filter as an execution area of the blurring process so that the CPU 22 tends to increase as the reading resolution increases. It was. Here, for example, the Gaussian filter size is set to 7 × 7 pixels when the reading resolution is 300 dpi, and the Gaussian filter size is set to 9 × 9 pixels when the reading resolution is 600 dpi. Also, here, when an illustration image is set as a document image, the number of lines of the original image included in the document is 130 lines / inch, and when a natural image is set as the document image, it is included in the document. It is assumed that the number of lines of the original image to be processed is fixed at 175 lines / inch. This halftone dot removal process is executed by the CPU 22 in the halftone dot processing unit 27a of the copy processing unit 27.

網点の除去処理が終了すると、CPU22は、線分領域の検出処理を実行する(ステップS150)。線分領域の検出は、例えば、ソーベルフィルタやラプラシアンフィルタなどを用いてエッジ検出処理を実行することにより行うことができる。このとき、エッジを検出する閾値は、基本的には読み取る原稿種別がイラスト画であるか自然画であるかに応じて経験的に定められた値を用いて行うよう設定されている。ここでは、自然画の方が線分領域を抽出しにくいことから、イラスト画よりも自然画の方がエッジを検出する閾値が低く設定されている。また、読取原稿が自然画のときには、線数設定欄82aで「多め」が設定されているとこの閾値を低めにし「少なめ」が設定されているとこの閾値を高めにするものとした。このエッジ検出により、図2に示した元画像70の線分領域72が検出される。   When the halftone dot removal process ends, the CPU 22 executes a line segment area detection process (step S150). The line segment area can be detected by executing an edge detection process using, for example, a Sobel filter or a Laplacian filter. At this time, the threshold value for detecting the edge is basically set to be an empirically determined value depending on whether the document type to be read is an illustration image or a natural image. Here, since the natural image is more difficult to extract the line segment region, the threshold value for detecting the edge is set lower in the natural image than in the illustration image. Further, when the read original is a natural image, this threshold value is lowered when “large” is set in the line number setting field 82a, and is raised when “small” is set. By this edge detection, the line segment area 72 of the original image 70 shown in FIG. 2 is detected.

線分領域の検出処理が終了すると、CPU22は、読み取った画像データのうち、注目画素を設定し(ステップS160)、設定した注目画素が線分領域であるか線分領域以外の領域としてのイメージ領域であるかを判定する(ステップS170)。ここでは、読み取った画像データの左上の画素を初期位置(x、y)とし、処理を繰り返すたびに右側へ向かって移動させ右端に達すると次列の左端の画素から右端へ移動させるよう順に注目画素が設定されるものとした。注目画素がイメージ領域に該当するときには、CPU22は、背景除去用のガンマ処理をガンマ変換部27bに実行させる(ステップS180)。図7は、背景除去処理に用いるガンマ変換線の説明図である。ここでは、図7の実線に示すように、イメージ領域では、すべての範囲の入力値を白色として出力するガンマ変換を実行する。なお、ガンマ変換部27bは、コピー処理のときには、イメージ領域に対して図7の一点鎖線で示したガンマ変換を行うよう設定されている。   When the line segment area detection process ends, the CPU 22 sets a target pixel in the read image data (step S160), and the image as a region where the set target pixel is a line segment area or other than the line segment area. It is determined whether it is an area (step S170). Here, the upper left pixel of the read image data is set as the initial position (x, y), and attention is given in order so that the pixel moves to the right side every time the process is repeated and moves to the right end from the left end pixel in the next row when the right end is reached. The pixel was set. When the target pixel corresponds to the image area, the CPU 22 causes the gamma conversion unit 27b to execute gamma processing for background removal (step S180). FIG. 7 is an explanatory diagram of gamma conversion lines used for background removal processing. Here, as shown by the solid line in FIG. 7, in the image area, gamma conversion is performed to output the input values in the entire range as white. Note that the gamma conversion unit 27b is set to perform gamma conversion indicated by a one-dot chain line in FIG.

一方、ステップS170で注目画素が線分領域であるときには、CPU22は、エッジ強調処理を実行し(ステップS190)、線分領域用ガンマ処理をガンマ変換部27bに実行させる(ステップS200)。ここで、エッジ強調処理は、エッジ強調フィルタを用いて元画像のエッジ強調を行うことにより、線分領域を強調する処理である。また、線分領域用ガンマ処理は、強調処理を行った線分領域の色をぬりえに適した濃度に薄く調整する処理である。図8は、線分領域用ガンマ処理に用いるガンマ変換線の説明図である。ここでは、図8の実線に示すように、黒色から所定の灰色(A1参照)までの入力値を無彩色の高輝度側へ変換し所定の灰色(B1参照)として出力するガンマ変換を実行するものとした。なお、図8の二点鎖線に示すように入力値の輝度が高くなると出力値の輝度が高くなるようなガンマ変換を行うものとしてもよい。なお、ガンマ変換部27bは、コピー処理のときには、イメージ領域に対して図8の一点鎖線で示したガンマ変換を行うよう設定されている。   On the other hand, when the target pixel is a line segment area in step S170, the CPU 22 executes edge enhancement processing (step S190), and causes the gamma conversion section 27b to execute gamma processing for line segment area (step S200). Here, the edge enhancement processing is processing for enhancing a line segment region by performing edge enhancement of an original image using an edge enhancement filter. The line segment gamma process is a process for thinly adjusting the color of the line segment area subjected to the enhancement process to a density suitable for coloring. FIG. 8 is an explanatory diagram of gamma conversion lines used for the line segment region gamma processing. Here, as shown by the solid line in FIG. 8, gamma conversion is performed to convert the input value from black to a predetermined gray (see A1) to the high luminance side of the achromatic color and output as a predetermined gray (see B1). It was supposed to be. Note that, as indicated by a two-dot chain line in FIG. 8, gamma conversion may be performed so that the luminance of the output value increases as the luminance of the input value increases. Note that the gamma conversion unit 27b is set to perform gamma conversion indicated by a one-dot chain line in FIG.

ステップS200のあと、または、ステップS180のあと、CPU22は、読み取った画像データの全領域についてステップS180〜S200の処理が終了したか否かを判定し(ステップS210)、全領域の処理が終了していないときには、ステップS180〜S200の処理を繰り返し、全領域の処理が終了したときには、生成した画像データを表示部52へ表示出力させる(ステップS220)。図9は、ぬりえ10の説明図である。図9に示すように、ステップS180〜S200の処理により、元画像70(図2参照)の線分領域72をやや薄い無彩色の線分領域12とし、元画像70の色領域70aを空白である空白領域10aとし、元画像70の色領域70bを空白である空白領域10bとするなどにより、ぬりえ画像が生成されるのである。   After step S200 or after step S180, the CPU 22 determines whether or not the processing of steps S180 to S200 has been completed for all regions of the read image data (step S210), and the processing of all regions has been completed. If not, the processing in steps S180 to S200 is repeated, and when the processing for all areas is completed, the generated image data is displayed on the display unit 52 (step S220). FIG. 9 is an explanatory diagram of the coloring page 10. As shown in FIG. 9, by the processing of steps S180 to S200, the line segment area 72 of the original image 70 (see FIG. 2) is made a slightly thin achromatic line segment area 12, and the color area 70a of the original image 70 is blank. A coloring image is generated by setting a certain blank area 10a and the color area 70b of the original image 70 as a blank area 10b.

ステップS220のあと、CPU22は、ぬりえ生成をやり直すか否かのメッセージを表示部52に表示させ、ぬりえ画像の生成処理をやり直すか否かを判定する(ステップS230)。この判定は、印刷実行ボタンとやり直しボタンとを含む図示しない確認画面を表示部52に表示し、この確認画面でカーソルキー54aの操作によりやり直しボタンが選択されて決定キー54bが押下されたか否かに基づいて行うものとした。確認画面でやり直しボタンが押下され、ぬりえ画像の生成処理をやり直すときには、CPU22は、ステップS100以降の処理を繰り返し実行する。一方、確認画面で印刷実行ボタンが押下されたときには、CPU22は、生成したぬりえ画像の印刷処理を実行し(ステップS240)、このルーチンを終了する。印刷処理では、CPU22は、プリンタASIC32へ画像データを出力し、これを受けたプリンタASIC32が画像データをビットマップイメージへRAM24の印刷バッファ内で展開し、展開した展開データに基づいてインクカートリッジ34に収容されたインクを記録紙Sに吐出するようプリンタ機構31の圧力発生部35や搬送ローラ38などを制御する。このようにして、図9に示す、元画像よりも輝度の高い線分領域12が形成され、この線分領域12に隣接する空白領域10a,10bなどが形成されたぬりえ10が作製されるのである。   After step S220, the CPU 22 causes the display unit 52 to display a message as to whether or not to generate the coloring page again, and determines whether or not to restart the coloring image generation process (step S230). In this determination, a confirmation screen (not shown) including a print execution button and a redo button is displayed on the display unit 52, and whether or not the redo button is selected by operating the cursor key 54a and the determination key 54b is pressed on the confirmation screen. Based on. When the redo button is pressed on the confirmation screen and the coloring image generation process is redone, the CPU 22 repeatedly executes the processes after step S100. On the other hand, when the print execution button is pressed on the confirmation screen, the CPU 22 executes print processing for the generated coloring image (step S240), and ends this routine. In the printing process, the CPU 22 outputs the image data to the printer ASIC 32, and the printer ASIC 32 receiving the image data develops the image data into a bitmap image in the print buffer of the RAM 24, and stores it in the ink cartridge 34 based on the developed data. The pressure generator 35 and the transport roller 38 of the printer mechanism 31 are controlled so that the stored ink is ejected onto the recording paper S. In this way, the coloring area 10 shown in FIG. 9 is formed in which the line segment area 12 having higher luminance than the original image is formed, and the blank areas 10a and 10b adjacent to the line segment area 12 are formed. is there.

ここで、原稿種別として写真(自然画)が設定され、ステップS100〜S230の処理を繰り返す場合について説明する。図10は、写真90からぬりえ96を作製する際の説明図であり、図10(a)が写真90の説明図、図10(b)が線数の少ないぬりえ92の説明図、図10(c)が線数の多いぬりえ94の説明図であり、図10(d)が線数の適切なぬりえ96の説明図である。まず、ユーザは、ガラス面43に載置した写真90を読み取った画像からぬりえを作製する作製指示を操作部54を操作して入力する。次に、ユーザは、図5に示す設定入力画面80で原稿種別設定欄80cに「写真」を設定する。続いて、サブ情報入力画面82が表示部52へ表示されるから、線数設定欄82aに「普通」を設定する。すると、CPU22は、設定された読取解像度に応じて、ステップS130で網点除去フィルタを設定し、ステップS150で線分領域の検出処理を実行する。このとき、線数設定欄82aに設定した「普通」に応じてエッジ検出の閾値を設定し、ステップS160でこの閾値を超えた画素を線分領域に検出する。このエッジ検出の閾値は、複数の一般的な写真を用いて経験的に定めてあるが、元画像によっては、図10(b)に示す、線数が少ないぬりえ92になってしまう場合がある。このような場合には、ユーザは、ステップS230でぬりえ画像の生成処理のやり直しを選択し、再度表示されたサブ情報入力画面82で線数設定欄82aに「多め」を設定する。すると、CPU22は、エッジ検出の閾値を低く設定してステップS150で線分領域の検出処理を行う。すると、ぬりえ92よりも多い線分領域が検出され、図10(d)に示す、線数の適切なぬりえ96を生成することができる。また、線数設定欄82aに「普通」を設定してぬりえ作製を行ったところ、図10(c)に示す、線数が多いぬりえ94になってしまった場合には、ユーザは、再度表示されたサブ情報入力画面82で線数設定欄82aに「少なめ」を設定すれば、図10(d)に示す線数の適切なぬりえ96を生成することができる。なお、線数設定欄82aには3段階の線数を設定可能としたが、5段以上など更に多段にし、これに応じた閾値を経験的に設けるものとしてもよい。   Here, a case where a photograph (natural image) is set as the document type and the processes in steps S100 to S230 are repeated will be described. 10A and 10B are explanatory diagrams when the coloring 96 is produced from the photograph 90. FIG. 10A is an explanatory diagram of the photograph 90, FIG. 10B is an explanatory diagram of the coloring 92 with a small number of lines, and FIG. FIG. 10C is an explanatory diagram of the coloring 94 having a large number of lines, and FIG. 10D is an explanatory diagram of the coloring 96 having an appropriate number of lines. First, the user operates the operation unit 54 to input a production instruction for producing a coloring from an image obtained by reading a photograph 90 placed on the glass surface 43. Next, the user sets “photograph” in the document type setting field 80c on the setting input screen 80 shown in FIG. Subsequently, since the sub information input screen 82 is displayed on the display unit 52, “normal” is set in the line number setting field 82a. Then, the CPU 22 sets a halftone dot removal filter in step S130 according to the set reading resolution, and executes line segment region detection processing in step S150. At this time, a threshold value for edge detection is set according to “normal” set in the line number setting field 82a, and pixels exceeding this threshold value are detected in the line segment region in step S160. The threshold for edge detection is determined empirically using a plurality of general photographs, but depending on the original image, there may be a coloring 92 with a small number of lines as shown in FIG. . In such a case, the user selects redoing the generation process of the coloring image in step S230, and sets “large” in the line number setting field 82a on the sub information input screen 82 displayed again. Then, the CPU 22 sets the edge detection threshold value low and performs line segment region detection processing in step S150. Then, more line segment regions than the coloring 92 are detected, and a coloring 96 with an appropriate number of lines shown in FIG. 10D can be generated. Further, when “normal” is set in the number-of-lines setting field 82a and coloring is performed, when the coloring number 94 has a large number of lines as shown in FIG. 10C, the user displays it again. If “less” is set in the number-of-lines setting field 82a on the sub-information input screen 82, an appropriate coloring 96 having the number of lines shown in FIG. 10D can be generated. Although the number of lines in three stages can be set in the number-of-lines setting field 82a, the number of lines may be further increased to five or more, and a threshold value corresponding to this may be provided empirically.

ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態のスキャナ部40及びコントローラ21が画像取得手段に相当し、コントローラ21が本発明の条件設定手段、画像生成手段、及び制御手段に相当し、表示部52が表示手段に相当し、プリンタ部30が印刷実行手段に相当し、操作パネル50及びコントローラ21が設定取得手段に相当する。また、記録紙Sが印刷媒体に相当し、線分領域用ガンマ処理が第1ガンマ変換処理に相当し、背景除去用ガンマ処理が第2ガンマ変換処理に相当する。なお、本実施形態では、プリンタ20の動作を説明することにより本発明のぬりえ製造方法の一例も明らかにしている。   Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The scanner unit 40 and the controller 21 of the present embodiment correspond to an image acquisition unit, the controller 21 corresponds to a condition setting unit, an image generation unit, and a control unit of the present invention, the display unit 52 corresponds to a display unit, and a printer The unit 30 corresponds to a print execution unit, and the operation panel 50 and the controller 21 correspond to a setting acquisition unit. The recording paper S corresponds to a print medium, the line segment gamma processing corresponds to the first gamma conversion processing, and the background removal gamma processing corresponds to the second gamma conversion processing. In the present embodiment, an example of the coloring manufacturing method of the present invention is also clarified by describing the operation of the printer 20.

以上詳述した本実施形態のプリンタ20によれば、ぬりえ画像の生成に用いられる元画像を、設定した読取解像度の条件で原稿から読み取ることにより取得し、この読取解像度が大きくなると、線分検出処理を行う際に元画像に施すぼかし処理を実行するときの実行領域が大きくなるように、このぼかし処理の処理条件を設定し、設定したぼかし処理条件で元画像にぼかし処理を施し、この処理後の元画像に線分検出処理を実行して検出領域を検出し、この検出した検出領域を線分領域とすると共にこの検出領域以外の領域を空白領域としてぬりえ画像を生成する。このように、元画像の読取解像度を用いて線分検出処理に用いるぼかし処理の条件を定めるのである。したがって、画像に含まれる線分の領域を検出する線分検出処理をより適切な条件で実行することができる。また、ぼかし処理は読取画像に含まれ線分領域として誤検出される網点を除去する効果があり、読取解像度はぼかし処理の程度に関係することから、読取画像の読取解像度を用いて画像に含まれる線分の領域を検出する線分検出処理をより適切な条件で実行することができる。更に、線分領域用ガンマ処理を実行して線分領域とし、背景除去用ガンマ処理により空白領域としてぬりえ画像を生成するため、ガンマ変換処理により比較的容易に線分領域と空白領域としてぬりえ画像を生成することができる。更にまた、モノクロ画像に対して線分検出処理を行うため、比較的容易な処理で線分検出処理を実行することができる。そして、線数設定欄82aにユーザが指定した線分領域に関する設定情報をも加味して線分検出処理を行うため、元画像の状態によっては線分領域の検出が変動しやすい自然画が元画像であるときに、画像に含まれる線分の領域を検出する線分検出処理をよりユーザの好む条件で実行することができる。そしてまた、プリンタ部30を備えるため、ぬりえ画像が形成された記録紙Sを得やすい。そして更に、コピー機能に用いられる網点処理部27aやガンマ変換部27bを利用してぬりえを作製可能であるため、ぬりえ作製のための新たな構成を増やすことなくぬりえ画像の生成を実現することができる。   According to the printer 20 of the present embodiment described in detail above, an original image used for generating a coloring image is acquired by reading from a document under a set reading resolution condition, and when this reading resolution increases, line segment detection is performed. Set the processing conditions for this blurring process so that the execution area when performing the blurring process applied to the original image when processing is performed, and perform the blurring process on the original image under the set blurring process conditions. A line segment detection process is performed on the subsequent original image to detect a detection area, and this detected detection area is set as a line segment area and a non-detection area is used as a blank area to generate a coloring image. In this way, the blurring processing conditions used for the line segment detection processing are determined using the reading resolution of the original image. Therefore, the line segment detection process for detecting the line segment area included in the image can be executed under more appropriate conditions. In addition, the blurring process has an effect of removing halftone dots that are included in the read image and erroneously detected as a line segment area, and the reading resolution is related to the degree of the blurring process. The line segment detection process for detecting the included line segment area can be executed under more appropriate conditions. Furthermore, since the gamma processing for the line segment area is executed to form a line segment area, and the color image is generated as a blank area by the gamma process for background removal, the color image is relatively easily converted into the line segment area and the blank area by the gamma conversion process. Can be generated. Furthermore, since the line segment detection process is performed on the monochrome image, the line segment detection process can be executed with a relatively easy process. Then, since the line segment detection process is performed in consideration of the setting information related to the line segment area specified by the user in the line number setting field 82a, a natural image whose line segment area detection is likely to fluctuate depending on the state of the original image. When the image is an image, line segment detection processing for detecting a line segment area included in the image can be executed under conditions that the user prefers. In addition, since the printer unit 30 is provided, it is easy to obtain the recording paper S on which a coloring image is formed. Furthermore, since coloring can be produced using the halftone dot processing unit 27a and gamma conversion unit 27b used for the copy function, it is possible to realize generation of a coloring image without increasing a new configuration for coloring production. Can do.

なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。   It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.

例えば、上述した実施形態では、線分領域12は、無彩色のうち元画像に対して高輝度の灰色により形成されるものとしたが、特にこれに限定されず、線分領域12は黒色や有彩色により形成されていてもよいし、元画像の輝度以下の輝度で形成されていてもよい。   For example, in the above-described embodiment, the line segment region 12 is formed of a high gray color with respect to the original image among the achromatic colors. It may be formed with a chromatic color, or may be formed with a luminance equal to or lower than the luminance of the original image.

上述した実施形態では、ステップS110でモノクロ画像として取得した元画像に対して網点除去処理や線分検出処理などを実行するものとしたが、カラー画像として取得した元画像に含まれる色成分(例えばR,G,Bなど)の各々の画像を生成し、各々の色成分について網点除去処理や線分検出処理などを実行するものとしてもよい。こうすれば、各色成分の元画像を用いて線分検出処理を実行するため、例えばモノクロの元画像を用いて線分検出するのに比して、線分検出処理をより確実に行うことができる。   In the above-described embodiment, halftone dot removal processing, line segment detection processing, and the like are performed on the original image acquired as a monochrome image in step S110. However, the color components included in the original image acquired as a color image ( For example, each image of R, G, B, etc.) may be generated, and halftone dot removal processing, line segment detection processing, etc. may be executed for each color component. In this way, since the line segment detection process is executed using the original image of each color component, for example, the line segment detection process can be performed more reliably than when the line segment is detected using a monochrome original image. it can.

上述した実施形態では、ガンマ変換線(図7,8)を用いて元画像の無彩色の領域をより輝度の高い色とすると共にイメージ領域に対して白色化を図るものとしたが、ガンマ変換線を用いずに元画像の無彩色の領域をより輝度の高い色とすると共にイメージ領域に対して白色化を図るものとしてもよい。   In the above-described embodiment, the achromatic region of the original image is made higher in brightness and whitened with respect to the image region using the gamma conversion line (FIGS. 7 and 8). The achromatic region of the original image may be made a brighter color without using a line, and the image region may be whitened.

上述した実施形態では、読み取った元画像に対して線分検出処理を実行するものとしたが、読み取った元画像を複製することにより領域抽出用画像を作成し、この作成した領域抽出用画像に対して線分検出処理を実行して線分領域72の範囲の情報を検出し、検出した情報を用いて元画像から線分領域72を抽出するものとしてもよい。こうすれば、領域抽出用画像に対しては、例えば、様々な画像処理を加えることが可能であるから、比較的容易に線分領域を検出することができる。   In the above-described embodiment, the line segment detection process is performed on the read original image. However, an area extraction image is created by duplicating the read original image, and the created area extraction image Alternatively, the line segment detection process may be executed to detect information on the range of the line segment region 72, and the line segment region 72 may be extracted from the original image using the detected information. In this way, for example, various image processing can be applied to the region extraction image, so that the line segment region can be detected relatively easily.

上述した実施形態では、元画像の線数は、原稿種別に応じて所定値に定めてその後の処理を行うものとしたが、スキャナ部40で原稿Mを読み取ることにより元画像の線数を把握するものとしてもよい。具体的には、CPU22は、ぬりえ作製指示が入力されると、スキャナ部40で原稿Mを読み取り元画像70を取得する。次に取得した元画像70の画像内容を解析して、単位面積あたりの線分の数や網点74a,74bの間隔などを検出し、この検出した値から元画像の線数を検出する。そして、CPU22は、予め経験的に定められた網点除去処理に用いるぼかしフィルタの大きさを、検出した元画像の線数と読取解像度とに応じて設定し、設定したぼかしフィルタを用いて網点除去処理を行い、線分検出処理を行うものとしてもよい。例えば、検出された画像の線分が130線/インチのときは実行領域としてのガウシアンフィルタのサイズを7×7ピクセルに設定し、検出された画像の線分が175線/インチのときはガウシアンフィルタのサイズを5×5ピクセルに設定するものとしてもよい。このように、ぼかし処理は読取画像に含まれ線分領域として誤検出される網点を除去する効果がある一方、読取画像の線数はぼかし処理の程度に関係するから、読取画像の線数を用いて画像に含まれる線分の領域を検出する線分検出処理をより適切な条件で実行することができる。なお、元画像の線数により定められるガウシアンフィルタのサイズと、読取解像度に基づいて定められるガウシアンフィルタのサイズとが異なるときには、いずれかのうちより大きなガウシアンフィルタのサイズをぼかし処理に用いるように定めるものとしてもよい。また、このとき、検出した元画像の線数に基づいて、作製後のぬりえの線分領域が画像全体の所定値(例えば5%や10%、15%など)になるように経験的に線分検出処理の閾値を設定するものとしてもよい。例えば、原稿Mを読み取って得た元画像を解析して検出した元画像の線数と、ある閾値を用いて線分検出処理を実行し得られたぬりえ画像の線数との関係を経験的に求め、この関係を用いて元画像の線数が与えられると線分検出処理の閾値を設定するものとしてもよい。こうすれば、作製されるぬりえ画像の線分領域を適正な範囲としやすい。   In the embodiment described above, the number of lines of the original image is set to a predetermined value according to the document type and the subsequent processing is performed. However, the number of lines of the original image is grasped by reading the document M by the scanner unit 40. It is good also as what to do. Specifically, when a coloring production instruction is input, the CPU 22 reads the original M with the scanner unit 40 and acquires the original image 70. Next, the content of the acquired original image 70 is analyzed to detect the number of line segments per unit area, the interval between the halftone dots 74a and 74b, and the number of lines in the original image is detected from the detected values. Then, the CPU 22 sets the size of the blurring filter used for the halftone dot removal process determined in advance based on the experience according to the number of lines of the detected original image and the reading resolution, and uses the set blurring filter. Point removal processing may be performed, and line segment detection processing may be performed. For example, when the line segment of the detected image is 130 lines / inch, the size of the Gaussian filter as the execution area is set to 7 × 7 pixels, and when the line segment of the detected image is 175 lines / inch, Gaussian is set. The filter size may be set to 5 × 5 pixels. As described above, the blurring process has an effect of removing halftone dots included in the read image and erroneously detected as a line segment area. On the other hand, the number of lines of the read image is related to the degree of the blurring process. It is possible to execute a line segment detection process for detecting a line segment area included in an image using a more appropriate condition. When the Gaussian filter size determined based on the number of lines of the original image and the Gaussian filter size determined based on the reading resolution are different, the larger Gaussian filter size is selected to be used for the blurring process. It may be a thing. Also, at this time, based on the detected number of lines of the original image, the line segment area after coloring is empirically set to a predetermined value (for example, 5%, 10%, 15%, etc.) of the entire image. A threshold value for the minute detection process may be set. For example, the relationship between the number of lines of the original image detected by analyzing the original image obtained by reading the document M and the number of lines of the coloring image obtained by executing the line segment detection process using a certain threshold is empirically determined. If the number of lines of the original image is given using this relationship, a threshold value for the line segment detection process may be set. In this way, it is easy to set the line segment area of the coloring image to be produced to an appropriate range.

上述した実施形態では、ステップS230でぬりえ画像の作製をやり直すか否かを判定するものとしたが、この処理を省略し作製したぬりえ画像をそのまま印刷処理するものとしてもよい。ここでは、ぬりえ画像の作製にコピー処理部27の網点処理部27aやガンマ変換部27bなどを用いているため、原稿Mをコピー処理するのと同程度の速い速度で原稿Mの読み取りからぬりえの印刷までを実行することができる。   In the above-described embodiment, it is determined in step S230 whether or not to create a coloring image again. However, this processing may be omitted and the produced coloring image may be printed as it is. In this case, since the halftone dot processing unit 27a and the gamma conversion unit 27b of the copy processing unit 27 are used for producing the coloring image, the original M is read from the original M at the same speed as the copy processing. Up to printing can be executed.

上述した実施形態では、スキャナ部40で読み取った画像からぬりえ10を作製するものとしたが、メモリカード60に記憶された画像やI/F28を介して図示しないネットワークから取得した画像からぬりえ10を作製してもよい。   In the above-described embodiment, the coloring 10 is produced from the image read by the scanner unit 40. However, the coloring 10 is created from an image stored in the memory card 60 or an image obtained from a network (not shown) via the I / F 28. It may be produced.

上述した実施形態では、プリンタ20を本発明のぬりえ製造装置として説明したが、画像から線分領域及び空白領域を備えたぬりえ画像を生成するものであれば特に限定されず、デジタルカメラ、ピクチャービューワ、デジタルビデオ、カメラ付き携帯電話及びパソコンなどとしてもよい。また、プリンタ20は、スキャナを備えたマルチファンクションプリンタとしたが、スキャナ部40を省略してもよいし、FAXなどとしてもよい。また、上述した実施形態では、プリンタ機構31は、加圧されたインクを記録紙Sに吐出して印刷処理を実行するインクジェット方式の機構であるとしたが、電子写真方式のカラーレーザプリンタや、熱転写方式のカラープリンタや、ドットインパクト方式のカラープリンタとしてもよいし、これらのモノクロプリンタとしてもよい。特に、レーザプリンタなどでは、水性又は油性の絵の具などでぬりえを行うことができるぬりえ10を作製することができる。更に、プリンタ20の態様で説明したが、ぬりえ製造方法の態様としてもよいし、この方法のプログラムの態様としてもよい。   In the above-described embodiment, the printer 20 has been described as the coloring production apparatus of the present invention. However, the printer 20 is not particularly limited as long as it generates a coloring image having a line segment area and a blank area from the image. Digital video, mobile phone with camera, personal computer, etc. Further, although the printer 20 is a multi-function printer provided with a scanner, the scanner unit 40 may be omitted or may be a FAX. In the above-described embodiment, the printer mechanism 31 is an ink jet type mechanism that discharges pressurized ink onto the recording paper S and executes a printing process. However, an electrophotographic color laser printer, A thermal transfer type color printer, a dot impact type color printer, or a monochrome printer of these may be used. In particular, in a laser printer or the like, it is possible to produce a coloring page 10 that can be colored with an aqueous or oily paint. Furthermore, although the embodiment of the printer 20 has been described, it may be an embodiment of a coloring production method or an embodiment of a program of this method.

プリンタ20の構成の概略を示す構成図である。FIG. 2 is a configuration diagram illustrating an outline of a configuration of a printer 20. 元画像70の説明図である。It is explanatory drawing of the original image. ぬりえ作製処理ルーチンの一例を示すフローチャートである。It is a flowchart which shows an example of a coloring production process routine. ぬりえ生成条件設定ルーチンの一例を示すフローチャートである。It is a flowchart which shows an example of a coloring generation condition setting routine. 表示部52に表示される設定入力画面80の説明図である。It is explanatory drawing of the setting input screen 80 displayed on the display part 52. FIG. 表示部52に表示されるサブ情報入力画面82の説明図である。It is explanatory drawing of the sub information input screen 82 displayed on the display part 52. FIG. 背景除去処理に用いるガンマ変換線の説明図である。It is explanatory drawing of the gamma conversion line used for a background removal process. 線分領域用ガンマ処理に用いるガンマ変換線の説明図である。It is explanatory drawing of the gamma conversion line used for the gamma process for line segment area | regions. ぬりえ10の説明図である。It is explanatory drawing of the coloring 10. 写真90からぬりえ96を作製する際の説明図である。It is explanatory drawing at the time of producing the coloring 96 from the photograph 90. FIG.

符号の説明Explanation of symbols

10a,10b 空白領域、12 線分領域、20 プリンタ、21 コントローラ、22 CPU、23 フラッシュROM、24 RAM、25 リーダライタ、25a スロット、27 コピー処理部、27a 網点処理部、27b ガンマ変換部、28 インタフェース(I/F)、29 バス、30 プリンタ部、31 プリンタ機構、32 プリンタASIC、34 インクカートリッジ、35 圧力発生部、36 吐出ノズル、38 搬送ローラ、40 スキャナ部、41 スキャナ機構、42 スキャナASIC、43 ガラス面、44 読取センサ、46 移動部、50 操作パネル、52 表示部、54 操作部、54a カーソルキー、54b 決定キー、60 メモリカード、70 元画像、70a,70b 色領域、72 線分領域、74a,74b 網点、80 設定入力画面、80a 入力装置設定欄、80b 読取解像度設定欄、80c 原稿種別設定欄、80d 色種別設定欄、80e 用紙サイズ設定欄、80f 用紙種設定欄、81 カーソル、82 サブ情報入力画面、82a 線数設定欄、82b 線濃度設定欄、82c 品質設定欄、90 写真、92,94,96 ぬりえ。   10a, 10b Blank area, 12 line segment area, 20 printer, 21 controller, 22 CPU, 23 flash ROM, 24 RAM, 25 reader / writer, 25a slot, 27 copy processing section, 27a halftone processing section, 27b gamma conversion section, 28 Interface (I / F), 29 Bus, 30 Printer section, 31 Printer mechanism, 32 Printer ASIC, 34 Ink cartridge, 35 Pressure generating section, 36 Discharge nozzle, 38 Transport roller, 40 Scanner section, 41 Scanner mechanism, 42 Scanner ASIC, 43 Glass surface, 44 Reading sensor, 46 Moving part, 50 Operation panel, 52 Display part, 54 Operation part, 54a Cursor key, 54b Enter key, 60 Memory card, 70 Original image, 70a, 70b Color area, 72 lines Minute area, 74 , 74b, halftone dot, 80 setting input screen, 80a input device setting field, 80b reading resolution setting field, 80c original type setting field, 80d color type setting field, 80e paper size setting field, 80f paper type setting field, 81 cursor, 82 Sub information input screen, 82a Line number setting column, 82b Line density setting column, 82c Quality setting column, 90 Photos, 92, 94, 96 Coloring.

Claims (11)

ぬりえ画像の生成に用いられる元画像を所定の取得条件で原稿から読み取ることにより取得する画像取得手段と、
前記取得条件及び前記元画像に関する画像条件のうち少なくとも1つを含む読取時条件に基づいて前記元画像の線分領域を検出する線分検出処理を行う際に前記元画像に施す所定の処理としてぼかし処理の処理条件を設定する条件設定手段と、
前記設定された処理条件で前記元画像に前記ぼかし処理を施し、該処理後の元画像に前記線分検出処理を実行して検出領域を検出し、該検出した検出領域を線分領域とすると共に該検出領域以外の領域を空白領域としてぬりえ画像を生成する画像生成手段とを備え、
前記画像取得手段は、所定の取得条件として所定の読取解像度で前記元画像を前記原稿から読み取ることにより取得し、
前記条件設定手段は、前記元画像に施す前記ぼかし処理の処理条件を前記読取解像度に基づいて設定することを特徴とする、ぬりえ製造装置。
Image acquisition means for acquiring an original image used for generation of a coloring image by reading it from a document under predetermined acquisition conditions;
As a predetermined process to be performed on the original image when performing a line segment detection process for detecting a line segment area of the original image based on a reading condition including at least one of the acquisition condition and an image condition related to the original image Condition setting means for setting processing conditions for blur processing;
The blurring process is performed on the original image under the set processing conditions, the line segment detection process is performed on the original image after the process to detect a detection area, and the detected detection area is set as a line segment area. And an image generation means for generating a coloring image using a region other than the detection region as a blank region,
The image acquisition means acquires the original image by reading from the document at a predetermined reading resolution as a predetermined acquisition condition,
The coloring production apparatus according to claim 1 , wherein the condition setting means sets a processing condition of the blurring process applied to the original image based on the reading resolution .
前記条件設定手段は、前記ぼかし処理の処理条件を前記読取解像度に基づいて設定するに際して、前記読取解像度が大きくなると前記ぼかし処理を実行するときの実行領域が大きくなるように前記ぼかし処理の処理条件を設定する、請求項1に記載のぬりえ製造装置。 The condition setting means, when setting the processing condition of the blurring process based on the reading resolution, the processing condition of the blurring process so that an execution area when the blurring process is executed becomes larger when the reading resolution increases. The coloring production apparatus according to claim 1, wherein: 前記条件設定手段は、前記画像取得手段によって前記原稿から読み取ることにより取得された画像を解析することにより所定の画像条件としての前記元画像の所定線数を検出し、
前記元画像に施す前記ぼかし処理の処理条件を前記検出した所定線数に基づいて設定し、
前記画像生成手段は、前記元画像に前記ぼかし処理を施し該処理後の元画像に前記線分検出処理を実行する、請求項1または2のいずれか1項に記載のぬりえ製造装置。
The condition setting means detects a predetermined number of lines of the original image as a predetermined image condition by analyzing an image acquired by reading from the original by the image acquisition means,
A processing condition for the blurring process applied to the original image is set based on the detected predetermined number of lines,
The coloring production apparatus according to claim 1, wherein the image generation unit performs the blurring process on the original image and executes the line segment detection process on the original image after the process.
前記条件設定手段は、前記画像生成手段が生成するぬりえ画像の前記線分領域が前記元画像全体の所定割合になるように、前記検出した元画像の所定線数に基づいて前記線分検出処理の実行条件を設定する、請求項3に記載のぬりえ製造装置。 The condition setting unit is configured to perform the line segment detection processing based on a predetermined number of lines of the detected original image so that the line segment area of the coloring image generated by the image generation unit is a predetermined ratio of the entire original image. The coloring production apparatus according to claim 3, wherein execution conditions are set. 前記画像生成手段は、前記検出した検出領域を線分領域とすると共に該検出領域以外の領域を空白領域とするに際して、前記検出した検出領域には入力値を高輝度側へ変換して出力する第1ガンマ変換処理を実行して前記線分領域とし、前記検出領域以外の領域には入力値を白色へ変換する第2ガンマ変換処理を実行することにより前記空白領域として前記ぬりえ画像を生成する、請求項1〜4のいずれか1項に記載のぬりえ製造装置。 The image generation means converts the input value to the detected luminance area to the high luminance side and outputs the detected area when the detected area is a line segment area and an area other than the detected area is a blank area. The coloring image is generated as the blank area by executing a first gamma conversion process to obtain the line segment area and executing a second gamma conversion process for converting the input value to white in the area other than the detection area. The coloring production apparatus of any one of Claims 1-4. 前記画像生成手段は、前記取得した元画像にモノクロ処理を実行し、該処理したモノクロ画像に対して、前記設定された処理条件で前記ぼかし処理を施し該処理後のモノクロ画像に前記線分検出処理を実行して検出した検出領域を線分領域とすると共に該検出領域以外の領域を空白領域としてぬりえ画像を生成する、請求項1〜5のいずれか1項に記載のぬりえ製造装置。 The image generation unit performs monochrome processing on the acquired original image, performs the blurring process on the processed monochrome image under the set processing conditions, and detects the line segment in the processed monochrome image. The coloring production apparatus according to any one of claims 1 to 5, wherein a detection image detected by executing the process is used as a line segment region, and a coloring image is generated using a region other than the detection region as a blank region. 前記画像生成手段は、前記線分検出処理を実行するに際して、前記元画像に含まれる複数の色成分の各々に対して前記設定された処理条件で前記ぼかし処理を施し該処理後の各色成分の元画像に前記線分検出処理を実行して前記検出領域を検出する、請求項1〜5のいずれか1項に記載のぬりえ製造装置。 When executing the line segment detection process, the image generation unit performs the blurring process on each of a plurality of color components included in the original image under the set processing conditions, and performs the processing for each color component after the processing. The coloring production apparatus according to any one of claims 1 to 5, wherein the detection area is detected by executing the line segment detection process on an original image. 請求項1〜7のいずれか1項に記載のぬりえ製造装置であって、
画像を表示可能な表示手段と、
ユーザの操作に基づいて設定される前記ぬりえ画像を生成する際の設定情報を取得可能な設定取得手段と、
前記設定取得手段によって前記元画像が自然画である設定情報を取得したときには、前記画像生成手段が生成する線分領域に関する設定情報をユーザが入力する旨の情報を表示するよう前記表示手段を制御する制御手段と、を備え、
前記条件設定手段は、前記設定取得手段が取得した前記線分領域に関する設定情報をも加味して前記線分検出処理を行う際に前記元画像に施す所定の処理の処理条件を設定し、
前記画像生成手段は、前記設定された処理条件で前記元画像に前記所定の処理を施し、該処理後の元画像に前記線分検出処理を実行して検出領域を検出する、ぬりえ製造装置。
It is a coloring manufacturing apparatus of any one of Claims 1-7,
Display means capable of displaying images;
Setting acquisition means capable of acquiring setting information when generating the coloring image set based on a user operation;
When the setting acquisition unit acquires the setting information that the original image is a natural image, the display unit is controlled to display information indicating that the user inputs setting information related to the line segment region generated by the image generation unit. Control means for
The condition setting means sets processing conditions for a predetermined process to be performed on the original image when performing the line segment detection process in consideration of setting information regarding the line segment area acquired by the setting acquisition means,
The coloring production apparatus, wherein the image generation unit performs the predetermined process on the original image under the set processing conditions, and executes the line segment detection process on the original image after the process to detect a detection area.
請求項1〜8のいずれか1項に記載のぬりえ製造装置であって、
前記画像生成手段が生成したぬりえ画像を印刷媒体へ印刷処理する印刷実行手段、を備えたぬりえ製造装置。
It is a coloring manufacturing apparatus of any one of Claims 1-8,
A coloring production apparatus comprising: a print execution unit that prints a coloring image generated by the image generation unit on a print medium.
ぬりえ画像を生成するぬりえ製造方法であって、
(a)ぬりえ画像の生成に用いられる元画像を所定の取得条件として所定の読取解像度で原稿から読み取ることにより取得するステップと、
(b)前記取得条件及び前記元画像に関する画像条件のうち少なくとも1つを含む読取時条件に基づいて前記元画像の線分領域を検出する線分検出処理を行う際に前記元画像に施す所定の処理としてぼかし処理の処理条件を前記読取解像度に基づいて設定するステップと、
(c)前記ステップ(b)で設定された処理条件で前記ステップ(a)で取得した元画像に前記ぼかし処理を施し、該処理後の元画像に前記線分検出処理を実行して検出領域を検出し、該検出した検出領域を線分領域とすると共に該検出領域以外の領域を空白領域としてぬりえ画像を生成するステップと、
を含むぬりえ製造方法。
A coloring manufacturing method for generating a coloring image,
(A) acquiring an original image used for generating a coloring image by reading it from a document at a predetermined reading resolution as a predetermined acquisition condition;
(B) A predetermined process applied to the original image when performing a line segment detection process for detecting a line segment region of the original image based on a reading condition including at least one of the acquisition condition and an image condition related to the original image. Setting processing conditions for blur processing based on the reading resolution as the processing of
(C) The blurring process is performed on the original image acquired in the step (a) under the processing conditions set in the step (b), and the line segment detection process is performed on the original image after the processing to detect a detection area Detecting the detected area as a line segment area and generating a coloring image with an area other than the detected area as a blank area;
Coloring manufacturing method including.
請求項10に記載のぬりえ製造方法の各ステップを1以上のコンピュータに実行させるためのプログラム。   The program for making one or more computers perform each step of the coloring manufacturing method of Claim 10.
JP2007197584A 2007-07-30 2007-07-30 Coloring production apparatus, coloring production method and program thereof Expired - Fee Related JP4941157B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007197584A JP4941157B2 (en) 2007-07-30 2007-07-30 Coloring production apparatus, coloring production method and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007197584A JP4941157B2 (en) 2007-07-30 2007-07-30 Coloring production apparatus, coloring production method and program thereof

Publications (2)

Publication Number Publication Date
JP2009032178A JP2009032178A (en) 2009-02-12
JP4941157B2 true JP4941157B2 (en) 2012-05-30

Family

ID=40402590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007197584A Expired - Fee Related JP4941157B2 (en) 2007-07-30 2007-07-30 Coloring production apparatus, coloring production method and program thereof

Country Status (1)

Country Link
JP (1) JP4941157B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009239394A (en) 2008-03-26 2009-10-15 Seiko Epson Corp Coloring image generating apparatus and method
JP2013062648A (en) * 2011-09-13 2013-04-04 Dainippon Printing Co Ltd Individual identification device, individual identification method, and program
WO2014141404A1 (en) * 2013-03-13 2014-09-18 楽天株式会社 Image processing device, image processing method, and image processing program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002185766A (en) * 2000-12-12 2002-06-28 Minolta Co Ltd Image forming system
JP2007311911A (en) * 2006-05-16 2007-11-29 Murata Mach Ltd Image forming apparatus

Also Published As

Publication number Publication date
JP2009032178A (en) 2009-02-12

Similar Documents

Publication Publication Date Title
JP4890974B2 (en) Image processing apparatus and image processing method
JP4683654B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP5014284B2 (en) Image processing apparatus, image processing method, and program
JP4890973B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
US8472076B2 (en) Detecting and removing blur of a character by comparison with the original image after a thinning and fattening operation
JP2008036856A (en) Printer and method for printing
JP2018056873A (en) Image processing device and computer program
JP2023030811A (en) Information processing apparatus, extraction processing apparatus, image processing system, control method of information processing apparatus, and program
JP2009031978A (en) Coloring, coloring picture producing device, coloring picture producing method, and program thereof
JP2010258752A (en) Image forming apparatus
JP4941157B2 (en) Coloring production apparatus, coloring production method and program thereof
JP2015015599A (en) Image processing apparatus, image forming apparatus, image processing method, and program and recording medium of the same
JP2006255970A (en) Inkjet printer, and copying device
JP5058695B2 (en) Image processing apparatus, image processing method, and image processing program
US9749495B2 (en) Information processing apparatus, image forming apparatus, image processing method, and non-transitory computer-readable medium, configured to convert image data to lower resolution and delete pixel of interest
JP6087334B2 (en) Image processing apparatus and image forming apparatus
JP2007088741A (en) Image processing apparatus and image processing method
JP2012199669A (en) Image processing apparatus, image processing method, image processing program, and printer
JP2005252710A (en) Image processing apparatus, image processing method, and image processing program
JP6601225B2 (en) Control device and computer program
JP5854973B2 (en) Image forming apparatus
JP2009021915A (en) Image processing apparatus and image processing method
JP2009027425A (en) Image processing device, image processing method, and program thereof
JP6025803B2 (en) Image processing device
JP2005109807A (en) Image processing method, image processor, image forming device and image processing system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20091127

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20091204

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110705

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110826

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111018

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111216

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120131

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120213

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150309

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees