JP5716953B2 - Image printing apparatus, coloring picture generation method, coloring picture generation program - Google Patents

Image printing apparatus, coloring picture generation method, coloring picture generation program Download PDF

Info

Publication number
JP5716953B2
JP5716953B2 JP2010293536A JP2010293536A JP5716953B2 JP 5716953 B2 JP5716953 B2 JP 5716953B2 JP 2010293536 A JP2010293536 A JP 2010293536A JP 2010293536 A JP2010293536 A JP 2010293536A JP 5716953 B2 JP5716953 B2 JP 5716953B2
Authority
JP
Japan
Prior art keywords
color
image
coloring
model
generating
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.)
Active
Application number
JP2010293536A
Other languages
Japanese (ja)
Other versions
JP2012142757A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010293536A priority Critical patent/JP5716953B2/en
Publication of JP2012142757A publication Critical patent/JP2012142757A/en
Application granted granted Critical
Publication of JP5716953B2 publication Critical patent/JP5716953B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、塗り絵画像を生成し印刷する機能を備えた画像印刷装置と、この画像印刷装置で塗り絵画像を生成する塗り絵画像生成方法と、この塗り絵画像生成方法をコンピュータに実行させるための塗り絵画像生成プログラムと、に関する。
The present invention includes an image printing apparatus having a function for printing to produce a coloring image, an image generating method for coloring of generating a coloring image by the image printing apparatus to execute the coloring image generating method in the computer a coloring image generating program for concerns.

カメラで撮影した写真画像やスキャナで取り込んだスキャン画像などの輪郭を抽出する画像処理を行うことによって塗り絵用の線画像を生成する技術が提案されている。例えば、特開2009−217606号公報(特許文献1)では、人物の目鼻立ち部分の画像を学習させた自己組織化特徴地図を用いて写真画像における人物とそれ以外の領域とを区分けし、入力画像をグレースケールに変換し、目鼻立ち部分の輪郭抽出にはラプラシアンフィルターなど輪郭抽出フィルターを用いてエッジの強度を検出し、それ以外の領域の輪郭抽出にはprewittテンプレートマッチングを用い、それぞれのフィルター出力を調整して画像を整える提案がなされている。   There has been proposed a technique for generating a line image for coloring by performing image processing for extracting an outline of a photograph image taken by a camera or a scan image taken by a scanner. For example, in Japanese Patent Laid-Open No. 2009-217606 (Patent Document 1), a self-organized feature map obtained by learning an image of a person's eyes and nose standing part is used to classify a person in a photographic image from other areas, and input image Is converted to grayscale, the edge strength is detected using a contour extraction filter such as a Laplacian filter for contour extraction of the eyes and nose, and prefilter template matching is used for contour extraction of other regions. Proposals have been made to adjust the images.

また、特開2010−74217号公報(特許文献2)では、原画像の一部を抽出して、抽出した画像をグレースケール化した後、明るさとコントラストを調整し、また、各画像の最大輝度と最小輝度を求めて、最大輝度の画素の輝度を大きく最小輝度に近いほど輝度を小さく補正して明暗差を大きくすることにより塗り絵画像データとし、原画像の一部のみを塗り絵画像に変換することについて提案がなされている。
Further, in JP 2010-74217 (Patent Document 2), by extracting a part of the original image, the extracted image after grayscale, adjust the brightness and contrast, and the maximum of each image seeking the luminance and the minimum luminance, for a coloring image data by increasing the brightness difference as corrected reduced intensity close to the larger minimum luminance pixel brightness of the maximum brightness, only a part of the original image Coloring Proposals have been made for converting to images.

このような写真画像やスキャン画像などの原画像から塗り絵用の線画像を作成し、ユーザが所有している筆記具の色である所有色を用いて塗り絵を完成させた場合、写真画像やスキャン画像をそのまま印刷した場合と比較して、絵にユーザの個性を加えて独創性を強調することが可能となり、創作感を向上させることができる。
When a line image for coloring is created from an original image such as a photographic image or scanned image, and the coloring book is completed using the possessed color that is the color of the writing instrument owned by the user, the photographic image or scanned image Compared with the case of printing as it is, it is possible to emphasize the originality by adding the personality of the user to the picture, and the creativity can be improved.

特開2009−217606号公報JP 2009-217606 A 特開2010−74217号公報JP 2010-74217 A

上記特許文献1や特許文献2の提案によれば、画像から塗り絵用の線画像を作成することができるが、塗り絵に使用可能な色は、ユーザが所有している筆記具の色である所有色に制限されるため、実際の画像の色に近づけて塗り絵を実行しようと考えたとしても、手持ちの色以外の色は表現することができなかった。また、ユーザは実際の画像に近い色を所有している色である所有色の中から選択して塗りつぶしていくこととなるが、配色ミスなどを起こす可能性があった。
According to the proposals in Patent Document 1 and Patent Document 2, a line image for coloring can be created from the original image, but the color that can be used for coloring is the color of the writing instrument owned by the user. Since it is limited to colors , even if it was decided to carry out a coloring book close to the actual color of the original image, colors other than the colors on hand could not be expressed. In addition, although the user selects and paints from among the owned colors that are colors that are close to the actual original image, there is a possibility of causing a color arrangement error.

本発明は、このような従来技術の問題点に鑑みてなされたものであり、ユーザが所有している筆記具の色である所有色に合わせて塗り絵用画像を作成可能な画像印刷装置と、塗り絵画像生成方法と、塗り絵画像生成プログラムと、を提供することを目的としている。
The present invention has such has been made in view of the prior art problems, an image printing apparatus can create a coloring for picture image in accordance with the own color which is the color of the writing instrument owned by the user, and its object is to provide an image generation method for coloring, a coloring image generating program, a.

前記目的を果たすため、本発明の画像印刷装置の一態様は、ユーザが指定する色である指定色の情報である指定色情報が記憶されるものであって、当該ユーザが所有している筆記具の色である所有色の情報が記憶される所有色情報記憶手段を備えた指定色情報記憶手段と、塗り絵の手本画像の元となる手本元画像が記憶される手本元画像記憶手段と、前記塗り絵の前記手本画像を生成するものであって、前記手本元画像に使用されている色を前記指定色の中で近似する色に変換する色変換手段を備えた手本画像生成手段と、塗り絵用画像を生成するものであって、前記手本画像から輪郭を抽出して線画像を生成する線画像生成手段を備えた塗り絵用画像生成手段と、前記手本画像および前記塗り絵用画像が表示される表示手段および該表示手段を制御する表示制御手段と、前記塗り絵用画像および前記手本画像を印刷する印刷手段と、を備え、前記指定色情報記憶手段には、前記指定色情報がLab色空間の色情報として記憶され、前記塗り絵用画像生成手段は、RGB色空間から前記Lab色空間へ、および、前記Lab色空間から当該RGB色空間へと表色系を変換する表色系変換手段を有し、前記表色系変換手段が前記手本元画像の前記RGB色空間を画素毎に前記Lab色空間へと変換し、前記色変換手段が前記指定色の色と前記手本元画像の色との色差を算出し、当該色差が少ない前記指定色内の色に前記手本元画像の色を変換し、前記表色系変換手段が色変換後の画像を前記Lab色空間から前記RGB色空間へと変換する、ことを特徴とする。
To fulfill the above object, one aspect of the image printing apparatus of the present invention, which specifies color information is information designated color is a color specified by the user is stored, a writing instrument in which the user owns a designated color information storage means owned color information of a color with a possession color information storage means to be stored in, model original image storage means for model original image which is the source of the coloring exemplars image is stored When been made to generate the model images of the coloring, model images having a color converter for converting the colors used in the model original image to the color that approximates in the designated color A generating unit, a coloring image, and a coloring image generating unit including a line image generating unit that extracts a contour from the sample image to generate a line image; the sample image; and display means and those the display coloring image is displayed Display control means for controlling the stage, and printing means for printing the coloring images and the model images, Bei give a, wherein the designated color information storage means, said designated color information as the color information of the Lab color space The coloring image generating means is stored and has a color system conversion means for converting a color system from the RGB color space to the Lab color space and from the Lab color space to the RGB color space. A color system conversion unit converts the RGB color space of the sample original image into the Lab color space for each pixel, and the color conversion unit converts a color difference between the color of the designated color and the color of the sample original image. And the color of the sample original image is converted to a color within the specified color with a small color difference, and the color system conversion means converts the color converted image from the Lab color space to the RGB color space. It is characterized by converting .

前記目的を果たすため、本発明の塗り絵用画像生成方法の一態様は、ユーザが指定する色である指定色の情報である指定色情報を記憶する処理であって、当該ユーザが所有している筆記具の色である所有色の情報を記憶する所有色情報記憶処理を含む指定色情報記憶処理と、塗り絵の手本画像の元となる手本元画像を読み込む手本元画像読込処理と、前記塗り絵の前記手本画像を生成する処理であって、前記手本元画像に使用されている色を前記所有色の中で近似する色に変換する色変換処理を備えた手本画像生成処理と、塗り絵用画像を生成する処理であって、少なくとも前記手本画像から輪郭を抽出して線画像を生成する線画像生成処理を備えた塗り絵用画像生成処理と、前記手本画像および前記塗り絵用画像を表示手段に表示させる表示制御処理と、前記塗り絵用画像および前記手本画像を印刷する印刷処理と、を実行し、前記指定色情報記憶処理では、前記指定色情報がLab色空間の色情報として記憶され、前記塗り絵用画像生成処理では、前記手本元画像のRGB色空間を画素毎に前記Lab色空間へと変換する表色系変換処理と、前記表色系変換処理で前記Lab色空間に変換された前記手本元画像と前記指定色情報との色差を算出し、当該色差が少ない前記指定色内の色に前記手本元画像の色を変換する前記色変換処理と、前記色変換処理で色変換した後の画像を前記Lab色空間から前記RGB色空間へと変換する表色系再変換処理と、が実行される、ことを特徴とする。
To fulfill the above object, one aspect of the coloring image generating method of the present invention is a process of storing specified color information is information designated color is a color designated by the user, the user owns a designated color information storage process, including proprietary color information storage process of storing own color information of the color of the writing instrument, the model original image reading processing to read the underlying model original image Coloring model image, the a process of generating the model image Coloring, and model image generating processing with the color conversion process to convert the color used in the model original image to the color that approximates in the own color A coloring image generating process including a line image generating process for generating a line image by extracting a contour from at least the model image; and the model image and the coloring image Table for displaying images on display means And control process, a printing process for printing the coloring image and the model image, is executed, and in the designated color information storage process, the designated color information is stored as the color information of the Lab color space, for the coloring In the image generation process, the RGB color space of the sample original image is converted to the Lab color space for each pixel, and the hand converted to the Lab color space by the color system conversion process is used. A color difference between the original image and the specified color information is calculated, and the color conversion process for converting the color of the original original image into a color within the specified color with a small color difference, and the color conversion process is performed. a color system re-conversion processing for converting the image after the Lab color space into the RGB color space, is executed, that you characterized.

前記目的を果たすため、本発明のコンピュータ読み取り可能な塗り絵画像生成プログラムの一態様は、ユーザが指定する色である指定色の情報である指定色情報を記憶する処理であって、当該ユーザが所有している筆記具の色である所有色の情報を記憶する所有色情報記憶処理を含む指定色情報記憶処理と、塗り絵の手本画像の元となる手本元画像を読み込む手本元画像読込処理と、前記塗り絵の前記手本画像を生成する処理であって、前記手本元画像に使用されている色を前記所有色の中で近似する色に変換する色変換処理を備えた手本画像生成処理と、塗り絵用画像を生成する処理であって、少なくとも前記手本画像から輪郭を抽出して線画像を生成する線画像生成処理を備えた塗り絵用画像生成処理と、前記手本画像および前記塗り絵用画像を表示手段に表示させる表示制御処理と、前記塗り絵用画像および前記手本画像を印刷する印刷処理と、をコンピュータに実行させ、前記指定色情報記憶処理では、前記指定色情報がLab色空間の色情報として記憶され、前記塗り絵用画像生成処理では、前記手本元画像のRGB色空間を画素毎に前記Lab色空間へと変換する表色系変換処理と、前記表色系変換処理で前記Lab色空間に変換された前記手本元画像と前記指定色情報との色差を算出し、当該色差が少ない前記指定色内の色に前記手本元画像の色を変換する前記色変換処理と、前記色変換処理で色変換した後の画像を前記Lab色空間から前記RGB色空間へと変換する表色系再変換処理と、を前記コンピュータに実行させる、ことを特徴とする。
To fulfill the above object, one aspect of the computer readable coloring image generating program according to the present invention is a process of storing specified color information is information designated color is a color designated by the user, the user is Specified color information storage process including owned color information storage process for storing owned color information, which is the color of the writing instrument that you own, and a model original image reading that reads a model original image that is the basis of a model image for coloring and processing, a process of generating the model image of the coloring, with a color conversion process of converting the colors used in the model original image to the color that approximates in the own color model An image generation process, a process for generating a coloring picture image, the coloring image generating process including a line image generation process for generating a line image by extracting a contour from at least the model image, and the model image And the coating A display control process for displaying the use image on the display unit, a printing process for printing the coloring images and the model images, cause the computer to execute, in the designated color information storage process, the designated color information Lab The color space is stored as color information, and in the coloring image generation process, the color system conversion process for converting the RGB color space of the model original image into the Lab color space for each pixel, and the color system conversion The color for calculating the color difference between the original sample image converted into the Lab color space and the specified color information by processing, and converting the color of the original sample image to a color within the specified color with a small color difference The computer is caused to perform conversion processing and color system re-conversion processing for converting an image after color conversion by the color conversion processing from the Lab color space to the RGB color space .

本発明によれば、ユーザが所有している筆記具の色である所有色に合わせて塗り絵用画像を作成可能な画像印刷装置と、塗り絵画像生成方法と、塗り絵画像生成プログラムと、を提供することができる。
According to the present invention, an image printing apparatus can create a coloring for picture image in accordance with the own color which is the color of the writing instrument the user owns, and an image generation method for coloring, a coloring image generating program, the Can be provided.

本発明の実施形態に係る画像印刷装置の斜視図である。1 is a perspective view of an image printing apparatus according to an embodiment of the present invention. 上記画像印刷装置の断面模式図である。It is a cross-sectional schematic diagram of the image printing apparatus. 上記画像印刷装置の機能ブロック図である。It is a functional block diagram of the image printing apparatus. 塗り絵画像生成機能についての説明図である。It is explanatory drawing about the image generation function for coloring pictures. 塗り絵画像生成機能についての説明図である。It is explanatory drawing about the image generation function for coloring pictures. 絵画調変換パターンに関しての説明図である。It is explanatory drawing regarding a painting style conversion pattern. 塗り絵画像生成機能における制御フローを示すフローチャートである。It is a flowchart which shows the control flow in the image generation function for coloring books. 手本画像パターンを生成する処理における制御フローを示すフローチャートである。It is a flowchart which shows the control flow in the process which produces | generates a model image pattern. 塗り絵用画像を生成する処理における制御フローを示すフローチャートである。It is a flowchart which shows the control flow in the process which produces | generates the image for coloring. 塗り絵の手順を表示又は印刷する実施形態に関しての説明図である。It is explanatory drawing regarding embodiment which displays or prints the procedure of coloring book.

以下、本発明を実施するための形態について述べる。図1は、本発明の実施形態に係る画像印刷装置の斜視図であり、図2は、この画像印刷装置の内部構成を示す断面模式図であり、図3は、画像印刷装置における回路構成を示す機能ブロック図である。なお、図2は、見やすくなるようにハッチングを除いて描いている。   Hereinafter, modes for carrying out the present invention will be described. FIG. 1 is a perspective view of an image printing apparatus according to an embodiment of the present invention, FIG. 2 is a schematic cross-sectional view showing an internal configuration of the image printing apparatus, and FIG. 3 shows a circuit configuration of the image printing apparatus. It is a functional block diagram shown. Note that FIG. 2 is drawn without hatching for easy viewing.

本実施形態に係る画像印刷装置は、ユーザが所有している色鉛筆や水性絵の具、パステル、油絵の具などの筆記具の色である所有色で塗り絵を完成させることができるように、ユーザにあらかじめ色を指定させ、原画像をユーザが指定した色で構成される画像に色変換して塗り絵の手本となる手本画像を生成し、この手本画像から線画像などの塗り絵をするための画像を生成する機能である、塗り絵画像生成機能を備えている。以下、画像印刷装置の構成について述べる。
The image printing apparatus according to the present embodiment designates the color in advance so that the user can complete the coloring with the owned color that is the color of the writing pencil such as a colored pencil, water-based paint, pastel, or oil paint owned by the user. Then, the original image is color-converted into an image composed of the colors specified by the user to generate a model image as a model for coloring, and an image for coloring such as a line image is generated from this model image is a function that includes a coloring image generating function. The configuration of the image printing apparatus will be described below.

画像印刷装置は、メモリーカードなどの着脱可能な可搬型記憶媒体に記憶された画像を葉書(100×148mm)やL判(89×127mm)、2L判(178×127mm)などの比較的小さな印刷用紙に印刷を実行可能な装置である。また、画像印刷装置は、住所録を作成する機能や、住所録から自動で葉書に宛名書をする機能や、文章を編集する機能、取り込んだ画像と文章とを組み合わせて葉書に印刷する機能などを備え、パーソナルコンピュータを介すことなく可搬型記憶媒体に記憶された画像を取り込んで画像処理を行い印刷を実行するといった処理が可能な電子機器である。
Image printing devices print images stored on removable portable storage media such as memory cards, such as postcards (100 x 148 mm), L size (89 x 127 mm), and 2 L size (178 x 127 mm). It is a device capable of printing on paper. In addition, the image printing device has a function to create an address book, a function to automatically address a postcard from the address book, a function to edit text, a function to print a postcard by combining the captured image and text, etc. the provided is an electronic device that can process such executes printing performs image processing captures the image stored in the portable storage medium without that intervention of a personal computer.

この画像印刷装置1は、図1に示すように、箱形の筐体2を備え、筐体2の前方にはキーボード3が配置されている。このキーボード3は、筐体2の前方下端近傍に回動可能に装着されており、使用状態では図1に示したように前方に倒され、使用しない場合には筐体2の前面と対向した状態で収納されている。   As shown in FIG. 1, the image printing apparatus 1 includes a box-shaped housing 2, and a keyboard 3 is disposed in front of the housing 2. The keyboard 3 is rotatably mounted near the front lower end of the housing 2 and is tilted forward as shown in FIG. 1 when in use, and faces the front of the housing 2 when not in use. It is stored in a state.

筐体2の前面には、印刷が完了した葉書や写真などの印刷用紙10が排出される排紙口5と、可搬型記憶媒体を挿入可能な記憶媒体挿入口6とが形成されている。画像印刷装置1は、この記憶媒体挿入口6を備えることにより、可搬型記憶媒体からデジタルカメラで撮影された写真の画像データなどを取り込み可能であるとともに、画像印刷装置1で編集したデータを保存可能である。   Formed on the front surface of the housing 2 are a paper discharge port 5 through which printing paper 10 such as postcards and photographs that have been printed is discharged, and a storage medium insertion port 6 into which a portable storage medium can be inserted. The image printing apparatus 1 includes the storage medium insertion slot 6 so that image data of a photograph taken with a digital camera can be captured from a portable storage medium, and data edited by the image printing apparatus 1 can be stored. Is possible.

筐体2の上面には、タッチパネル8が配置され、筐体2の正面方向に回動可能とされている。また、筐体2の上部には、筐体2の後方側から筐体2の上方までの間を回動可能な取っ手15が装着されている。この取っ手15は、略コ字状に形成され、画像印刷装置1の運搬時などに把持されて使用される。   A touch panel 8 is disposed on the upper surface of the housing 2 and is rotatable in the front direction of the housing 2. In addition, a handle 15 that can rotate between the rear side of the housing 2 and the top of the housing 2 is attached to the upper portion of the housing 2. The handle 15 is formed in a substantially U shape, and is used by being gripped when the image printing apparatus 1 is transported.

そして、画像印刷装置1は、図2に示すように、筐体2の背面に開口する空腔部16を有し、この空腔部16の開口を塞ぐように給紙トレイ18が配置されている。この給紙トレイ18は、筐体2の後方であって下方近傍位置に軸着されており、前後方向に回動可能とされ、印刷用紙10を複数重ねて収容することができるようになっている。   As shown in FIG. 2, the image printing apparatus 1 has a cavity portion 16 that opens at the back of the housing 2, and a paper feed tray 18 is disposed so as to close the opening of the cavity portion 16. Yes. The paper feed tray 18 is pivotally mounted at a position near the lower part of the rear side of the housing 2 and can be rotated in the front-rear direction so that a plurality of printing papers 10 can be accommodated. Yes.

給紙トレイ18の内側であって上方位置には、給紙トレイ18に収容された印刷用紙10を1枚ずつ下方に送り出すピックアップローラ19が配置されている。また、給紙トレイ18の下端近傍には、ピックアップローラ19によって下方に送り出された印刷用紙10を筐体2の排紙口5方向へと搬送する搬送ローラ20a,20bが配置されている。   A pick-up roller 19 is disposed inside the paper feed tray 18 and at an upper position to feed the printing paper 10 stored in the paper feed tray 18 downward one by one. Further, in the vicinity of the lower end of the paper feed tray 18, transport rollers 20a and 20b for transporting the printing paper 10 sent downward by the pickup roller 19 in the direction of the paper discharge port 5 of the housing 2 are arranged.

筐体2の内部であって搬送ローラ20a,20bの前方近傍には、印刷手段とされる印刷ヘッド21が配置されている。また、筐体2の内部であって印刷ヘッド21の前方には、印刷を完了した印刷用紙10を排紙口5から排出する排紙ローラ22a,22bが配置されている。この搬送ローラ20aと排紙ローラ22aは、図示しないステッピングモータによって回転を制御されて、所定速度で印刷用紙10を搬送している。
A print head 21 serving as a printing unit is disposed inside the housing 2 and in the vicinity of the front of the transport rollers 20a and 20b. In addition, paper discharge rollers 22a and 22b for discharging the printing paper 10 that has been printed from the paper discharge port 5 are disposed inside the housing 2 and in front of the print head 21. And the conveying roller 20a and the discharge roller 22a, is controlled to rotate by a stepping motor (not shown), carrying the printing paper 10 at a predetermined speed.

そして、給紙トレイ18に収容された印刷用紙10は、ピックアップローラ19によって前方に位置する印刷用紙10から順に下方に送り出され、搬送ローラ20a,20bとの間に挟み込まれた状態で印刷ヘッド21の下方に繰り出され、印刷が完了後、排紙ローラ22a,22bの間に挟み込まれて排紙口5から外部へと排出される。   Then, the printing paper 10 accommodated in the paper feed tray 18 is sequentially sent downward from the printing paper 10 positioned in front by the pickup roller 19 and is sandwiched between the conveyance rollers 20a and 20b. After the printing is completed, the sheet is sandwiched between the discharge rollers 22a and 22b and discharged from the discharge port 5 to the outside.

この画像印刷装置1は、図3に示すように、制御部41としてのCPUと、記憶部としてのROM42やRAM43と、キーボード3やタッチパネル8から構成される入力部45と、タッチパネル8である表示部46と、上述した印刷ヘッド21やピックアップローラ19、搬送ローラ20a,20b、排紙ローラ22a,22b、各ローラを回転させるステッピングモータなどによって構成される印刷部48と、スピーカーなどの音声出力部49と、を備えた回路により構成される。   As shown in FIG. 3, the image printing apparatus 1 includes a CPU as a control unit 41, a ROM 42 and RAM 43 as storage units, an input unit 45 including a keyboard 3 and a touch panel 8, and a display as a touch panel 8. Unit 46, the above-described print head 21, pickup roller 19, transport rollers 20a, 20b, paper discharge rollers 22a, 22b, a printing unit 48 configured to rotate each roller, and a sound output unit such as a speaker. And 49.

制御部41は、入力部45から入力信号に応じて、又は、自動でROM42にあらかじめ記憶されているシステムプログラム、メモリーカードに記憶された制御プログラムなどを起動させ、RAM43をワークメモリとして回路各部の動作を制御する。ROM42は、文書編集時に使用する文字フォントや印刷の字体のデータ、編集する印刷用紙の規格データ、その他の制御プログラムなどが記憶されている。RAM43は、入力部45で入力された文字などの文書の編集情報やタッチパネル8に表示されるモードデータ、画像処理中の画像情報などを記憶するワークメモリである。   The control unit 41 activates a system program stored in advance in the ROM 42, a control program stored in a memory card, or the like in accordance with an input signal from the input unit 45 or automatically, and the RAM 43 as a work memory. Control the behavior. The ROM 42 stores character fonts and print font data used when editing a document, standard data of printing paper to be edited, other control programs, and the like. The RAM 43 is a work memory that stores document editing information such as characters input by the input unit 45, mode data displayed on the touch panel 8, image information during image processing, and the like.

入力部45は、画像処理における操作や画像選択、印刷実行など画像印刷装置1におけるあらゆる入力に使用され、ユーザが操作すると所定の信号を制御部41に送出する。表示部46は、可搬型記憶媒体から読み出した画像や各種メニュー、操作における選択肢、エラーメッセージなどを表示する。印刷部48は、印刷用紙10を搬送しながら用紙に印刷を行う。音声出力部49は、エラー音や操作の音声案内など音声メッセージを出力する。   The input unit 45 is used for all inputs in the image printing apparatus 1 such as operations in image processing, image selection, and print execution, and sends a predetermined signal to the control unit 41 when operated by the user. The display unit 46 displays images read from the portable storage medium, various menus, operation options, error messages, and the like. The printing unit 48 performs printing on the paper while conveying the printing paper 10. The voice output unit 49 outputs voice messages such as error sounds and voice guidance for operations.

次に、本実施形態における画像印刷装置1が備える塗り絵画像生成機能について述べる。写真撮影して得られる写真画像やスキャナで取り込んだスキャン画像などから輪郭を抽出し、塗り絵用の線画像を生成する技術は既に存在している。しかしながら、従来から存在する技術を用いて線画像を生成した場合、ユーザは原画像(写真画像やスキャン画像)を参考にしながら線画像に色を塗ることとなるが、ユーザが所有している(筆記具の)色である所有色の種類には限界があるため、ユーザが所有していない色を塗る必要がある領域には、原画像における色と似た色をユーザが選択して塗る必要があった。そこで、本実施形態における画像印刷装置1の塗り絵画像生成機能では、ユーザにあらかじめ所有している筆記具の色である所有色などを指定させ、原画像を指定された色(指定色)で構成された画像に変換して塗り絵の手本となる手本画像を生成することにより、ユーザが所有している筆記具だけで塗り絵を完成させることができるようにしている。
Will now be described coloring image generating function of the image printing apparatus 1 is provided in this embodiment. There is already a technique for extracting a contour from a photograph image obtained by taking a photograph or a scan image captured by a scanner and generating a line image for coloring. However, when a line image is generated using a conventional technique, the user paints the line image with reference to the original image (a photographic image or a scanned image), but the user owns the line image ( Since there is a limit to the type of possession color that is the color of the writing instrument), it is necessary for the user to select and paint a color similar to the color in the original image in areas where it is necessary to paint a color that the user does not own there were. Therefore, in the coloring image generating function of the image printing apparatus 1 in the present embodiment, composed to specify, for example, owned color which is the color of the writing instrument in advance owned user, the specified original image color (designated color) By converting the generated image into a model image that serves as a model for coloring, the user can complete the coloring with only the writing tools owned by the user.

より具体的に述べると、図4(a)に示すような花の画像の原画を塗り絵画像に変換する場合に、ユーザは、図4(b)に示すように、指定色として所有している筆記具の色(所有色)である赤a1、橙a2、黄a3、黄緑a4、緑a5、空色a6、青a7、紫a8を入力設定することができる。制御部41は、原画像をユーザが入力設定した指定色(所有色)で構成された手本画像に色変換する。色変換された画像は、図4(c)に示すような全てが所有色で構成された画像、すなわち、花がa1,a3,a8で構成され、茎がa5で構成され、葉がa4で構成された画像である。そして、制御部41は、色変換した画像である手本画像から線画像を生成し、手本画像と線画像を印刷部48で印刷する。これにより、ユーザは、図4(d)に示すような線画像と、図4(c)に示したような手本画像と、を得られるため、手本画像にしたがって線画像の所定の領域を塗りつぶすだけで所有している筆記具のみで塗り絵を完成させることができる。
More specifically, in the case of converting the original image of the flower image as shown in FIG. 4 (a) Coloring image, the user, as shown in FIG. 4 (b), possess a specified color The color (owned color) of the writing instrument being red can be input and set to red a1, orange a2, yellow a3, yellow green a4, green a5, sky blue a6, blue a7, purple a8. The control unit 41 converts the original image into a model image composed of a designated color (owned color) input and set by the user. As shown in FIG. 4 (c), the color-converted image is an image composed entirely of proprietary colors, that is, the flowers are composed of a1, a3, a8, the stem is composed of a5, and the leaf is composed of a4. It is a constructed image. Then, the control unit 41 generates a line image from the model image is a color converted image is printed and a model image and a line image in the printing unit 48. As a result, the user can obtain a line image as shown in FIG. 4D and a model image as shown in FIG. You can finish painting with only the writing instruments that you own.

また、図5(a)に示すような花の画像の原画(図4(a)と同じ)を塗り絵画像に変換する場合に、ユーザは図5(b)に示すように指定色として所有色に加えてユーザが所有していないものの完成した塗り絵に反映させたい色である希望色(ここでは桃色b1、ベージュb2)を入力設定することもできる。制御部41は、原画像をユーザが入力設定した指定色(所有色および希望色)で構成された手本画像に色変換する。色変換された画像は、図5(c)に示すような所有色と希望色で構成された画像、すなわち、花がa8,b1,b2で構成され、茎がa5で構成され、葉がa4で構成された画像である。そして、制御部41は、手本画像から線画像を生成し、さらに、線画像における希望色が付される領域に、対応する希望色を着色して図5(d)に示すような塗り絵用画像を生成し、印刷部48で手本画像と塗り絵用画像を印刷する。これにより、ユーザは、図5(d)に示した塗り絵用画像と、図5(c)に示したような手本画像と、を得られるため、手本画像にしたがって塗り絵用画像の所定の領域を塗りつぶすだけで所有している筆記具のみで塗り絵を完成させることができる。
Further, in the case of converting the original image of the flower image as shown in FIG. 5 (a) (FIG. 4 (a) and the same) Coloring image, the user as the designated color as shown in FIG. 5 (b) In addition to the owned colors, the desired colors (in this case, pink b1 and beige b2) that are colors that are not owned by the user but are desired to be reflected in the completed coloring book can be input and set. The control unit 41 performs color conversion of the original image into a model image composed of designated colors (owned color and desired color) input and set by the user. The color-converted image, Fig image composed of owned colors as shown in (c) and the desired color and, i.e., flower consists of a8, b1, b2, stem is constituted by a5, leaves This is an image composed of a4. Then, the control unit 41 generates a line image from the model image, and further colors the corresponding desired color in the region to which the desired color is added in the line image, as shown in FIG. 5D. It generates an image, to print the model image and the coloring image by the printing unit 48. As a result, the user can obtain the coloring image shown in FIG. 5D and the model image as shown in FIG. 5C, so that the predetermined color of the coloring image is determined according to the model image. Just fill the area and you can complete the painting with only your writing instruments.

このような塗り絵画像生成機能を実行するため、ROM42には、図3に示したように、手本画像生成プログラム42a、絵画調変換プログラム42d、絵画調変換パターンデータ42f、塗り絵用画像生成プログラム42h、表示制御プログラム42o、印刷制御プログラム42q、印刷データ生成プログラム42sが記憶されている。
To perform such coloring image generating function, the ROM 42, as shown in FIG. 3, model image generating program 42a, painting-style conversion program 42d, painting-style conversion pattern data 42f, coloring image generating program 42h, a display control program 42o, a print control program 42q, and a print data generation program 42s are stored.

手本画像生成プログラム42aは、写真画像やスキャン画像などの原画像をそのまま、又は、絵画調変換した後に指定色で構成された画像へと変換し、手本画像を生成するプログラムである。この手本画像生成プログラム42aは、表色系変換プログラム42bおよび色変換プログラム42cを備えてなる。表色系変換プログラム42bは、RGB色空間で表示された色をLab色空間の色に、又は、Lab色空間で表示された色をRGB色空間の色に変換するプログラムである。また、色変換プログラム42cは、色を近似する他の色に変換するプログラムである。   The model image generation program 42a is a program that generates a model image by converting an original image such as a photographic image or a scanned image as it is or after converting it into an image composed of designated colors after painting-like conversion. The model image generation program 42a includes a color system conversion program 42b and a color conversion program 42c. The color system conversion program 42b is a program for converting a color displayed in the RGB color space into a color in the Lab color space, or a color displayed in the Lab color space into a color in the RGB color space. The color conversion program 42c is a program for converting colors to other colors that approximate.

絵画調変換プログラム42dは、写真画像などの原画像を色鉛筆調やパステル調など、絵の表現調を絵画調に変換するプログラムである。絵画調変換パターンデータ42fは、原画像をどのような風合いの絵画調に変換するかについての複数のパターン情報である。具体的な絵画調変換パターンとしては、図6(a)に示すような写真の画像を変換するとき、図6(b)に示すような水彩画調に変換する水彩画調パターン、図6(c)に示すような色鉛筆調に変換する色鉛筆調パターン、図6(d)に示すような油彩調に変換する油彩調パターン、図6(e)に示すようなパステル調に変換するパステル調パターンがある。
The painting style conversion program 42d is a program for converting an original image such as a photographic image into a painting style such as a colored pencil style or a pastel style. The painting style conversion pattern data 42f is a plurality of pieces of pattern information about how the original image is converted into a painting style. As a specific painting style conversion pattern, when converting an original image of a photograph as shown in FIG. 6A, a watercolor style pattern that is converted into a watercolor style as shown in FIG. 6B, FIG. ), A color pencil tone pattern to be converted into a color pencil tone, an oil color tone pattern to be converted into an oil tone tone as shown in FIG. 6D, and a pastel tone pattern to be converted into a pastel tone as shown in FIG. is there.

塗り絵用画像生成プログラム42hは、手本画像から塗り絵に使用する画像、すなわち、ユーザが筆記具を用いて着色するための画像を生成するためのプログラムであり、線画像生成プログラム42iと希望色着色プログラム42jを備えてなる。線画像生成プログラム42iは、手本画像の中から輪郭を抽出するプログラムである。希望色着色プログラム42jは、線画像の中で希望色を使用する領域に、対応する希望色を着色するプログラムである。
The coloring image generation program 42h is a program for generating an image to be used for coloring from a model image, that is, an image for coloring by a user using a writing tool. The line image generation program 42i and a desired color coloring program It made and a 42j. The line image generation program 42i is a program for extracting a contour from a model image. The desired color coloring program 42j is a program for coloring a corresponding desired color in an area where the desired color is used in the line image.

表示制御プログラム42oは、表示部46を制御するプログラムである。印刷制御プログラム42qは、印刷部48を制御するプログラムである。印刷データ生成プログラム42sは、印刷を実行するときに画像データから印刷データを生成するプログラムである。   The display control program 42o is a program for controlling the display unit 46. The print control program 42q is a program for controlling the printing unit 48. The print data generation program 42s is a program that generates print data from image data when executing printing.

RAM43には、原画像記憶部43a、指定色情報記憶部43b、絵画調画像記憶部43g、手本画像記憶部43k、塗り絵用画像記憶部43m、印刷条件記憶部43q、印刷データ記憶部43sなどのバッファやワークメモリとしての領域が設けられている。   The RAM 43 includes an original image storage unit 43a, a specified color information storage unit 43b, a painting-like image storage unit 43g, a model image storage unit 43k, a coloring image storage unit 43m, a printing condition storage unit 43q, a print data storage unit 43s, and the like. An area as a buffer or work memory is provided.

原画像記憶部43aは、記憶媒体挿入口6に挿入された可搬型記憶媒体から読み出された画像など、画像変換が行われる前の画像が記憶される領域である。なお、後述するが、原画像を直接色変換して手本画像を生成することがあり、この場合には原画像が手本元画像となり、原画像記憶部43aが手本元画像記憶手段として機能する。   The original image storage unit 43a is an area in which an image before image conversion, such as an image read from a portable storage medium inserted into the storage medium insertion slot 6, is stored. As will be described later, a model image may be generated by directly color-converting the original image. In this case, the original image becomes the model original image, and the original image storage unit 43a serves as the model original image storage means. Function.

指定色情報記憶部43bは、ユーザが指定した色の情報である指定色情報が記憶される領域である。この指定色情報記憶部43bは、所有色情報記憶部43cとしての領域と希望色情報記憶部43eとしての領域からなる。所有色情報記憶部43cは、ユーザが入力設定した、あるいは、初期設定で設定されたユーザが所有している筆記具の色である所有色の情報が記憶される領域である。なお、所有色情報が初期設定で設定された状態とは、画像印刷装置1を販売するときに複数色の筆記具もセットで販売する場合などに、セットの筆記具の色をあらかじめ初期設定として登録された場合などである。希望色情報記憶部43eは、ユーザが入力した所有していないが塗り絵画像に反映したい希望色の情報が記憶される領域である。
The designated color information storage unit 43b is an area in which designated color information, which is color information designated by the user, is stored. The designated color information storage unit 43b includes an area as the owned color information storage unit 43c and an area as the desired color information storage unit 43e. The owned color information storage unit 43c is an area in which owned color information that is the color of the writing instrument owned by the user or set by the initial setting is stored. The state in which the owned color information is set as the initial setting means that the color of the writing instrument in the set is registered as the initial setting in advance when the image printing apparatus 1 is sold, such as when the writing tools of multiple colors are also sold as a set. This is the case. Desired color information storage unit 43e is not owned user enters an area where desired color information to be reflected in the coloring image are stored.

絵画調画像記憶部43gは、原画像を絵画調変換した画像が記憶される領域であり、後述するが、原画像記憶部43aとともに手本元画像記憶手段として機能する。手本画像記憶部43kは、原画像や絵画調画像を色変換した後の画像である塗り絵の手本となる手本画像が記憶される領域である。   The painting-like image storage unit 43g is an area in which an image obtained by converting an original image into a painting-like manner is stored. As will be described later, the painting-like image storage unit 43g functions as an original image storage unit together with the original image storage unit 43a. The model image storage unit 43k is an area in which a model image serving as a model for coloring, which is an image after color conversion of an original image or a picture-like image, is stored.

塗り絵用画像記憶部43mは、線画像や線画像の一部に着色が施された一部着色画像など、ユーザが塗り絵を行う塗り絵用の画像が記憶される領域である。この塗り絵用画像記憶部43mは、線画像記憶部43nと着色画像記憶部43oを備えてなる。線画像記憶部43nは、手本画像から輪郭を抽出して生成される線画像が記憶される領域である。着色画像記憶部43oは、線画像の一部に希望色が着色された一部着色画像が記憶される領域である。
The coloring image storage unit 43m is an area in which an image for coloring for the user to perform coloring, such as a line image or a partially colored image in which a part of the line image is colored, is stored. The coloring image storage unit 43m is formed by a line-image storage unit 43n colored image storage unit 43 o. The line image storage unit 43n is an area in which a line image generated by extracting a contour from a model image is stored. The colored image storage unit 43o is an area in which a partially colored image in which a desired color is colored in a part of a line image is stored.

印刷条件記憶部43qは、ユーザが設定した印刷用紙のサイズや色の濃さ、高品質モードで印刷するといった印刷の条件が記憶される領域である。印刷データ記憶部43sは、画像を元に生成された印刷データが記憶される領域である。   The printing condition storage unit 43q is an area for storing printing conditions such as printing paper size and color density set by the user and printing in the high quality mode. The print data storage unit 43s is an area in which print data generated based on an image is stored.

次に、塗り絵画像生成機能における制御フローについて図7乃至図9のフローチャートを用いて述べる。ユーザが塗り絵モードを選択すると(S101)、制御部41は、ROM42に記憶された表示制御プログラム42oを読み出し、表示部46に指定色として所有色の入力設定を行うか否かを問う案内を表示させ、所有色の入力設定を行うか否かを判定する所有色入力設定判定処理(ステップS105)を実行する。   Next, the control flow in the coloring image generation function will be described with reference to the flowcharts of FIGS. When the user selects the coloring mode (S101), the control unit 41 reads the display control program 42o stored in the ROM 42, and displays a guidance asking whether or not to input the owned color as the designated color on the display unit 46. Then, the proprietary color input setting determination process (step S105) for determining whether or not the proprietary color input setting is to be performed is executed.

所有色入力設定判定処理(ステップS105)においてユーザが所有色の入力設定を行う旨を選択した場合、制御部41は、ROM42に記憶された表示制御プログラム42oを読み出して表示部46に所有色の入力設定を行う案内を表示させ、ユーザは所有色の入力設定を行う(S111)。この所有色の入力設定を行うとき、表示部46には複数色からなるパレットが表示され、ユーザがパレットの中から所有している色である所有色を選択することにより所有色の入力設定を行うことができる。ユーザによる所有色の入力設定が終了すると、制御部41は、設定された所有色情報をRAM43の所有色情報記憶部43cに記憶させる。なお、所有色入力設定判定処理(ステップS105)において、既に所有色情報記憶部43cに登録記憶されている色である所有色を使用すれば足りるためにユーザが所有色の入力設定を行わない旨を選択した場合、制御部41は、後述の希望色使用判定処理(ステップS115)を実行する。
In the owned color input setting determination process (step S105), when the user selects to perform the owned color input setting, the control unit 41 reads the display control program 42o stored in the ROM 42, and displays the owned color on the display unit 46. A guide for input setting is displayed, and the user performs input setting of the possessed color (S111). When the input setting of the owned color is performed, a palette composed of a plurality of colors is displayed on the display unit 46, and the owned color input setting is selected by the user selecting an owned color that is owned from the palette. It can be carried out. When the input setting of the owned color by the user is completed, the control unit 41 stores the set owned color information in the owned color information storage unit 43c of the RAM 43. In the possessed color input setting determination process (step S105), it is sufficient to use an owned color that is already registered and stored in the owned color information storage unit 43c, so that the user does not set the owned color. Is selected, the control unit 41 executes a desired color use determination process (step S115) described later.

所有色の入力設定(S111)が終了すると、制御部41は、ROM42に記憶された表示制御プログラム42oを読み出し、表示部46に指定色として希望色も使用するか否かを問う案内を表示させ、希望色を使用するか否かを判定する希望色使用判定処理(ステップS115)を実行する。   When the owned color input setting (S111) is completed, the control unit 41 reads the display control program 42o stored in the ROM 42 and causes the display unit 46 to display a guidance asking whether or not to use the desired color as the designated color. Then, a desired color use determination process (step S115) for determining whether or not to use the desired color is executed.

この希望色使用判定処理(ステップS115)においてユーザが希望色の入力設定を行う旨を選択した場合、制御部41は、ROM42に記憶された表示制御プログラム42oを読み出して表示部46に希望色の入力設定を行う画面を表示させ、ユーザは希望色の入力設定を行う(S121)。この希望色の入力設定を行うときも所有色の入力設定と同様に、表示部46には複数色を備えたパレットが表示され、ユーザがパレットの中から所有していないものの使用を欲する色を選択することにより希望色の入力設定を行うことができる。ユーザによる希望色の入力設定が終了すると、制御部41は、設定された希望色情報をRAM43の希望色情報記憶部43eに記憶させる。なお、希望色使用判定処理(ステップS115)において希望色を使用しない旨を選択した場合、制御部41は、後述の原画像読み出し処理(ステップS125)を実行する。   When the user selects to perform desired color input setting in the desired color use determination process (step S115), the control unit 41 reads the display control program 42o stored in the ROM 42, and displays the desired color on the display unit 46. A screen for performing input setting is displayed, and the user performs input setting of a desired color (S121). When the desired color input setting is performed, a palette with a plurality of colors is displayed on the display unit 46 as in the owned color input setting, and a color that the user does not own from the palette is selected. By selecting, the input setting of the desired color can be performed. When the input setting of the desired color by the user is completed, the control unit 41 stores the set desired color information in the desired color information storage unit 43e of the RAM 43. When it is selected that the desired color is not used in the desired color use determination process (step S115), the control unit 41 executes an original image reading process (step S125) described later.

希望色の入力設定(S121)が終了すると、ユーザは塗り絵用画像に変換する原画像を選択し、制御部41は、可搬型記憶媒体から原画像を読み出す原画像読込処理(ステップS125)を実行し、読み出した原画像をRAM43の原画像記憶部43aに記憶させる。   When the desired color input setting (S121) is completed, the user selects an original image to be converted into an image for coloring, and the control unit 41 executes an original image reading process (step S125) for reading the original image from the portable storage medium. Then, the read original image is stored in the original image storage unit 43a of the RAM 43.

原画像読込処理(ステップS125)の後、制御部41は、ROM42に記憶された表示制御プログラム42oを読み出し、絵画調に変換するか否かをユーザに問う案内を表示部46に表示させ、絵画調変換を行うか否かを判定する絵画調変換有無判定処理(ステップS131)を実行する。絵画調変換有無判定処理(ステップS131)において、ユーザが絵画調変換を行う旨を選択すると、制御部41は、ROM42に記憶された絵画調変換パターンデータと表示制御プログラム42oを読み出し、表示部46に絵画調変換パターンを表示してユーザに選択させ、ユーザは所望の絵画調変換パターンを選択する(S135)。ユーザが絵画調変換パターンを選択すると、制御部41は、ROM42に記憶された絵画調変換プログラム42dを読み出し、原画像を絵画調に変換する絵画調変換処理(ステップS141)を実行し、絵画調画像をRAM43の絵画調画像記憶部43gに記憶させる。   After the original image reading process (step S125), the control unit 41 reads the display control program 42o stored in the ROM 42, and displays on the display unit 46 guidance for asking the user whether or not to convert it to painting style. A painting tone conversion presence / absence determination process (step S131) for determining whether or not to perform tone conversion is executed. In the painting-style conversion presence / absence determination process (step S131), when the user selects to perform the painting-style conversion, the control unit 41 reads out the painting-style conversion pattern data and the display control program 42o stored in the ROM 42, and displays the display unit 46. The painting style conversion pattern is displayed on the screen and the user selects it, and the user selects a desired painting style conversion pattern (S135). When the user selects a painting style conversion pattern, the control unit 41 reads the painting style conversion program 42d stored in the ROM 42, executes a painting style conversion process (step S141) for converting the original image into a painting style, and performs the painting style conversion. The image is stored in the painting-like image storage unit 43g of the RAM 43.

絵画調変換処理(ステップS141)の後、又は、絵画調変換有無判定処理(ステップS131)においてユーザが絵画調変換を行わない旨を選択した場合、制御部41は、ROM42に記憶された色変換プログラム42cを読み出し、原画像記憶部43aに記憶された原画像、又は、絵画調画像記憶部43gに記憶された絵画調画像、すなわち、手本画像の元になる手本元画像における色を指定色内の色に変換する色変換処理(ステップS145)を実行する。なお、この色変換処理(ステップS145)で生成された画像は塗り絵における手本画像となるため、色変換処理(ステップS145)は手本画像生成処理でもある。また、絵画調変換を使用しない場合には原画像が手本元画像となり、絵画調変換を実行する場合には絵画調画像が手本元画像となるため、原画像記憶部43aおよび絵画調画像記憶部43gは、手本元画像記憶手段として機能する。この色変換処理(ステップS145)に関しては、図8のフローチャートを用いて説明する。   After the painting style conversion process (step S141) or when the user selects not to perform the painting style conversion in the painting style conversion presence / absence determination process (step S131), the control unit 41 converts the color conversion stored in the ROM 42. Reads the program 42c and specifies the color of the original image stored in the original image storage unit 43a or the painting-like image stored in the painting-like image storage unit 43g, that is, the model original image that is the basis of the model image A color conversion process (step S145) for converting to a color within the color is executed. Since the image generated by the color conversion process (step S145) is a model image for coloring, the color conversion process (step S145) is also a model image generation process. In addition, since the original image becomes a model original image when painting style conversion is not used, and when the painting style conversion is executed, the painting style image becomes a model original image, the original image storage unit 43a and the painting style image The storage unit 43g functions as a model original image storage unit. This color conversion process (step S145) will be described with reference to the flowchart of FIG.

色変換処理(ステップS145)において制御部41は、原画像記憶部43aに記憶された原画像、又は、絵画調画像記憶部43gに記憶された絵画調画像である手本元画像を読み込む手本元画像読込処理(ステップS201)を実行する。そして、制御部41は、手本元画像における画素pをクリア(ステップS205)した後(色変換処理におけるバッファメモリの画素pを記憶する領域を初期化)、pに1を代入(ステップS207)する。次に、制御部41は、ROM42に記憶された表色系変換プログラム42bを読み出し、手本元画像のp番目の画素の色をRGB色空間からLab色空間へ変換する表色系変換処理(ステップS215)を実行し、p番目の画素のLab色と指定色情報とを比較して色差を算出する色差算出処理(ステップS221)を実行する。   In the color conversion process (step S145), the control unit 41 reads a sample original image that is an original image stored in the original image storage unit 43a or a painting-like image stored in the painting-like image storage unit 43g. An original image reading process (step S201) is executed. Then, the control unit 41 clears the pixel p in the model original image (step S205) (initializes the area storing the pixel p of the buffer memory in the color conversion process), and then substitutes 1 for p (step S207). To do. Next, the control unit 41 reads the color system conversion program 42b stored in the ROM 42 and converts the color of the p-th pixel of the model original image from the RGB color space to the Lab color space ( Step S215) is executed, and a color difference calculation process (step S221) is performed for calculating the color difference by comparing the Lab color of the p-th pixel with the designated color information.

色差算出処理(ステップS221)の後、制御部41は、ROM42に記憶された色変換プログラム42cを読み出し、p番目の画素の色を最小の色差となる色に変換する色変換処理(ステップS225)を実行し、ROM42に記憶された表色系変換プログラム42bを読み出し、Lab色空間からRGB色空間へ変換する表色系変換処理(ステップS231)を実行する。そして、制御部41は、pに1を加える処理(ステップS235)をした後、pが全画素数よりも大きいか否か、すなわち、全画素の色変換が完了したか否かを判定する変換完了判定処理(ステップS241)を実行する。   After the color difference calculation process (step S221), the control unit 41 reads the color conversion program 42c stored in the ROM 42, and converts the color of the p-th pixel into a color having the minimum color difference (step S225). The color system conversion program 42b stored in the ROM 42 is read, and the color system conversion process (step S231) for converting from the Lab color space to the RGB color space is executed. Then, after performing the process of adding 1 to p (step S235), the control unit 41 determines whether or not p is larger than the total number of pixels, that is, whether or not the color conversion of all the pixels has been completed. A completion determination process (step S241) is executed.

変換完了判定処理(ステップS241)においてpが全画素数以下の場合、制御部41は、ステップS215からステップS235を繰り返し実行し、全画素の色変換が終了するまで各処理を繰り返す。変換完了判定処理(ステップS241)においてpが全画素数よりも大きい場合、すなわち、全画素の色変換が完了した場合、制御部41は、RAM43の手本画像記憶部43kに色変換後の画像を記憶する手本画像記憶処理(ステップS245)を実行し、色変換処理(ステップS145)を終了する。   When p is less than or equal to the total number of pixels in the conversion completion determination process (step S241), the control unit 41 repeatedly executes steps S215 to S235, and repeats each process until the color conversion of all the pixels is completed. When p is larger than the total number of pixels in the conversion completion determination process (step S241), that is, when the color conversion of all the pixels is completed, the control unit 41 stores the image after color conversion in the model image storage unit 43k of the RAM 43. Is executed (step S245), and the color conversion process (step S145) is terminated.

色変換処理(ステップS145)の後、図7に示したように、制御部41は、ROM42に記憶された塗り絵用画像生成プログラム42hを読み出し、手本画像から塗り絵用画像を生成する塗り絵用画像生成処理(ステップS151)を実行する。この塗り絵用画像生成処理(ステップS151)に関しては、図9のフローチャートを用いて説明する。
After the color conversion process (step S145), as shown in FIG. 7, the control unit 41 reads the image generating program 42h for coloring stored in ROM 42, for coloring for generating a coloring for picture image from the model image An image generation process (step S151) is executed. The coloring image generation process (step S151) will be described with reference to the flowchart of FIG.

制御部41は、手本画像記憶部43kに記憶された手本画像を読み込む手本画像読込処理(ステップS301)を実行する。そして、制御部41は、ROM42に記憶された線画像生成プログラム42iを読み出し、手本画像から輪郭のみを抽出した線画像を生成する線画像生成処理(ステップS305)を実行し、RAM43の線画像記憶部43nに記憶させる。次に、制御部41は、手本画像に希望色が使用されているか否かを判定する希望色使用判定処理(ステップS311)を実行し、希望色を使用している場合には線画像における希望色を使用している領域に当該希望色を着色する希望色着色処理(ステップS315)を実行して塗り絵用画像を生成し、希望色を着色した塗り絵用画像をRAM43の着色画像記憶部43oに記憶させて塗り絵用画像生成処理(ステップS151)を終了する。なお、希望色使用判定処理(ステップS311)において希望色が使用されていない場合、線画像が塗り絵用画像となるためそのまま塗り絵用画像生成処理(ステップS151)を終了する。   The control unit 41 executes a model image reading process (step S301) for reading a model image stored in the model image storage unit 43k. Then, the control unit 41 reads the line image generation program 42i stored in the ROM 42, executes line image generation processing (step S305) for generating a line image obtained by extracting only the outline from the model image, and executes the line image stored in the RAM 43. It memorize | stores in the memory | storage part 43n. Next, the control unit 41 executes a desired color use determination process (step S311) for determining whether or not the desired color is used in the model image. The desired color coloring process (step S315) for coloring the desired color in the area using the desired color is performed to generate a coloring image, and the coloring image with the desired color is stored in the colored image storage unit 43o of the RAM 43. And finishes the coloring image generation process (step S151). If the desired color is not used in the desired color use determination process (step S311), the line image becomes the coloring image, and the coloring image generation process (step S151) is terminated as it is.

塗り絵用画像生成処理(ステップS151)の後、制御部41は、図7に示したように、ROM42に記憶された表示制御プログラム42oを読み出し、表示部46に印刷を実行するか否かを問う画面を表示させ、印刷を実行するか否かを判定する印刷判定処理(ステップS155)を実行する。印刷判定処理(ステップS155)においてユーザが印刷実行の操作をすると制御部41は、ROM42に記憶された表示制御プログラム42oを読み出して表示部46に印刷条件をユーザに設定させる画面を表示させ、印刷用紙10のサイズなどの印刷条件を設定させる印刷条件設定処理(ステップS161)を実行し、設定された印刷条件をRAM43の印刷条件記憶部43qに記憶させる。なお、印刷判定処理(ステップS155)において、ユーザが印刷を実行しない旨の操作を行った場合には、塗り絵画像生成機能における処理を終了する。   After the coloring image generation process (step S151), as shown in FIG. 7, the control unit 41 reads the display control program 42o stored in the ROM 42 and asks the display unit 46 whether or not to execute printing. A screen is displayed, and a print determination process (step S155) for determining whether to execute printing is executed. When the user performs a print execution operation in the print determination process (step S155), the control unit 41 reads the display control program 42o stored in the ROM 42, causes the display unit 46 to display a screen for setting print conditions, and prints. A printing condition setting process (step S161) for setting printing conditions such as the size of the paper 10 is executed, and the set printing conditions are stored in the printing condition storage unit 43q of the RAM 43. In the print determination process (step S155), when the user performs an operation not to execute printing, the process in the coloring image generation function is ended.

そして、制御部41は、ROM42に記憶された印刷データ生成プログラム42sを読み出し、RAM43の手本画像記憶部43kに記憶された手本画像、および、塗り絵用画像記憶部43mに記憶された塗り絵用画像から印刷データを生成し、印刷データ記憶部43sに記憶させる。その後、制御部41は、印刷制御プログラム42qを読み出し、印刷条件記憶部43qに記憶された印刷条件にしたがって印刷部48で印刷を行う印刷処理(ステップS165)を実行し、塗り絵画像生成機能における処理を終了する。すなわち、印刷処理(ステップS165)では、塗り絵用画像および手本画像が印刷されることとなる。   Then, the control unit 41 reads the print data generation program 42s stored in the ROM 42, the model image stored in the model image storage unit 43k of the RAM 43, and the coloring image stored in the coloring image storage unit 43m. Print data is generated from the image and stored in the print data storage unit 43s. Thereafter, the control unit 41 reads the print control program 42q, executes a printing process (step S165) in which the printing unit 48 performs printing in accordance with the printing conditions stored in the printing condition storage unit 43q, and performs processing in the coloring image generation function Exit. That is, in the printing process (step S165), the coloring image and the model image are printed.

このように本実施形態の画像印刷装置1は、ユーザに使用する色を指定させ、指定された色を用いて手本画像を生成するため、写真などの原画像をそのまま手本画像とした場合よりも容易に塗り絵を完成させることができる。また、指定色としてユーザが所有している筆記具の色である所有色を入力設定させることにより、手本画像をユーザが所有している色のみで生成することができるため、ユーザが所有している筆記具で塗り絵を完成させることができる。よって、ユーザが塗り絵を完成させるときに、ユーザが所有していない色が手本画像にあるために配色ミスを起こすといったことを防止できる。   As described above, the image printing apparatus 1 according to the present embodiment allows the user to specify a color to be used and generates a model image using the specified color, so that an original image such as a photograph is used as a model image as it is. Coloring book can be completed more easily. In addition, the model image can be generated only with the color owned by the user by inputting and setting the owned color that is the color of the writing instrument owned by the user as the designated color. You can complete the coloring book with the writing instrument. Therefore, when the user completes the coloring book, it is possible to prevent a color arrangement error from occurring because the model image has colors that the user does not own.

さらに、指定色としてユーザが所有していないものの使用を欲する色である希望色を入力設定させることにより、所有色だけを用いて色変換を行った場合よりも多くの色を用いて本画像を生成できることとなる。また、希望色が使用される領域を着色した状態の塗り絵用画像を生成できるため、所有していない色が含まれる塗り絵も容易に完成させることができる。
Further, by inputting set the desired color is a color that wants to use by the user as the designated color is not owned, hand using a number of color than the case of performing color conversion using only own color the image Can be generated. In addition, since a coloring image in a state where a region where the desired color is used is colored can be generated, a coloring book including a color that is not owned can be easily completed.

また、画像印刷装置1が絵画調変換機能を有しているため、ユーザが所有している筆記具の種類、すなわち、色鉛筆や水性絵の具、油性絵の具、パステルなどに合わせて手本画像および塗り絵用画像を生成できる。   In addition, since the image printing apparatus 1 has a painting-like conversion function, a model image and a coloring image according to the type of writing instrument owned by the user, that is, a color pencil, water-based paint, oil-based paint, pastel, etc. Can be generated.

さらに、RGBからLabに表色系を変換し、Lab色空間で所有色および希望色との色差を算出して色変換を行った後にRGBへ再度表色系を変換することにより色変換処理を行っているため、RGBで直接色変換を行う場合よりもユーザにとって原画像における色に近い色に色変換を行うことができる。よって、原画像と近い塗り絵を完成させることができる。   Furthermore, color conversion processing is performed by converting the color system from RGB to Lab, calculating the color difference between the possessed color and the desired color in the Lab color space, performing color conversion, and then converting the color system again to RGB. Therefore, it is possible for the user to perform color conversion closer to the color in the original image than when performing direct color conversion with RGB. Therefore, a coloring book close to the original image can be completed.

なお、上述した実施形態における各種処理は、コンピュータに実現させることのできる塗り絵画像生成プログラムとして、例えば磁気ディスク、光ディスク、半導体メモリなどの記憶媒体に書き込んだ状態で各種装置に適用する、あるいは、通信媒体により伝送して各種装置に適用することも可能である。このように本実施形態で述べた各処理を実行させるための塗り絵画像生成プログラムを他の電子機器などで実行させることにより、上述した画像印刷装置1を用いた場合と同様の作用効果が得られる。なお、コンピュータは、画像印刷装置1に内蔵されたコンピュータに限定されるわけではなく、上記のような塗り絵画像生成プログラムを読み取り可能であって、読み取ったプログラムにしたがって制御動作を行うCPUなどの演算装置を備えているあらゆる電子機器に組み込まれたコンピュータを含む。
The various processes in the above-described embodiment are applied to various apparatuses as a coloring image generating program that can be realized by a computer, for example, written in a storage medium such as a magnetic disk, an optical disk, or a semiconductor memory, or It is also possible to apply to various devices by transmitting through a communication medium. As described above, by executing the coloring image generating program for executing each process described in the present embodiment on another electronic device or the like, it is possible to obtain the same operation and effect as in the case of using the image printing apparatus 1 described above. It is done. The computer is not limited to a computer which is built in the image printing apparatus 1, a readable Coloring image generating program such as described above, such as a CPU that performs a control operation in accordance with the read program Includes a computer embedded in any electronic device equipped with a computing device.

さらに、本発明は、以上の実施形態に限定されるものでなく、発明の要旨を逸脱しない範囲で自由に変更、改良が可能である。例えば、上述した実施形態ではユーザが所望の絵画調変換パターンを選択する構成としているが、ユーザが所有している筆記具の種類をあらかじめ入力設定させ、絵画調変換を行う場合には入力設定された筆記具調に自動で絵画調変換を行う構成としてもよい。また、色変換処理(ステップS145)では、手本元画像における色と指定色とを比較して、近似する色に変換して手本画像を生成する構成としているが、必ずしも近似している色に変換させる必要はなく、いくつかの色変換パターンを作成してユーザに所望のパターンを選択させる構成としてもよい。
Furthermore, the present invention is not limited to the above embodiments, freely modified without departing from the spirit and scope of the invention, improvements are possible. For example, in the above-described embodiment, the user selects a desired painting style conversion pattern. However, the type of writing instrument owned by the user is input and set in advance, and input setting is performed when performing painting style conversion. It is good also as a structure which performs picture-like conversion automatically to writing instrument-like. In the color conversion process (step S145), the color in the model original image is compared with the specified color and converted to an approximate color to generate a model image. There is no need to convert the color pattern into a number, and it is possible to create several color conversion patterns and allow the user to select a desired pattern.

また、上述した実施形態では、手本画像をそのまま表示および印刷する構成としているが、塗り絵の順序を表示した画像を順次表示および/又は印刷する構成としてもよい。すなわち、図4(c)に示したような手本画像となるように塗り絵をする場合、図10(a)に示すように、まず、塗り絵用画像の中で赤a1を使用する領域を塗りつぶした画像を表示又は印刷し、次に、図10(b)に示すように黄a3を塗りつぶした画像を表示又は印刷し、以下、図10(c)に示すように黄緑a4、図10(d)に示すように緑a5、図10(e)に示すように紫a8と順次塗りつぶした画像を表示又は印刷する構成としてもよい。   In the above-described embodiment, the model image is displayed and printed as it is, but the image displaying the order of the coloring book may be sequentially displayed and / or printed. That is, when the coloring is performed so that the model image as shown in FIG. 4C is obtained, first, as shown in FIG. 10A, the region using the red a1 is filled in the coloring image. Then, an image filled with yellow a3 is displayed or printed as shown in FIG. 10B. Hereinafter, yellow green a4, FIG. It is also possible to display or print an image that is sequentially filled with green a5 as shown in d) and purple a8 as shown in FIG. 10 (e).

このように、本発明は、ユーザが指定した色で手本画像を生成し、かつ、塗り絵用画像を生成することを特徴としており、その他の構成、例えば絵画調変換などは必須の構成要素ではなく、様々な設計変更が可能である。   As described above, the present invention is characterized by generating a model image with a color designated by the user and generating a coloring picture image, and other configurations such as painting-like conversion are not essential components. Various design changes are possible.

1 画像印刷装置 2 筐体
3 キーボード 5 排紙口
6 記憶媒体挿入口 8 タッチパネル
10 印刷用紙 15 取っ手
16 空腔部 18 給紙トレイ
19 ピックアップローラ
20a,20b 搬送ローラ
21 印刷ヘッド
22a,22b 排紙ローラ
41 制御部 42 ROM
42a 手本画像生成プログラム 42b 表色系変換プログラム
42c 色変換プログラム 42d 絵画調変換プログラム
42f 絵画調変換パターンデータ 42h 塗り絵用画像生成プログラム
42i 線画像生成プログラム 42j 希望色着色プログラム
42o 表示制御プログラム 42q 印刷制御プログラム
42s 印刷データ生成プログラム
43 RAM
43a 原画像記憶部 43b 指定色情報記憶部
43c 所有色情報記憶部 43e 希望色情報記憶部
43g 絵画調画像記憶部 43k 手本画像記憶部
43m 塗り絵用画像記憶部 43n 線画像記憶部
43o 着色画像記憶部 43q 印刷条件記憶部
43s 印刷データ記憶部
45 入力部 46 表示部
48 印刷部 49 音声出力部
1 Image printer 2 Housing
3 Keyboard 5 Output slot
6 Storage medium insertion slot 8 Touch panel
10 Printing paper 15 Handle
16 Cavity 18 Feed tray
19 Pickup roller
20a, 20b Transport roller
21 Print head
22a, 22b Paper discharge roller
41 Control unit 42 ROM
42a Model image generation program 42b Color system conversion program
42c Color conversion program 42d Painting conversion program
42f Painting-like conversion pattern data 42h Image generation program for coloring
42i Line image generation program 42j Desired color coloring program
42o Display control program 42q Print control program
42s Print data generation program
43 RAM
43a Original image storage unit 43b Specified color information storage unit
43c Owned color information storage unit 43e Desired color information storage unit
43g Painting image storage unit 43k Model image storage unit
43m Color image storage unit 43n Line image storage unit
43o Colored image storage unit 43q Printing condition storage unit
43s Print data storage
45 Input section 46 Display section
48 Printing section 49 Audio output section

Claims (15)

ユーザが指定する色である指定色の情報である指定色情報が記憶されるものであって、当該ユーザが所有している筆記具の色である所有色の情報が記憶される所有色情報記憶手段を備えた指定色情報記憶手段と、
塗り絵の手本画像の元となる手本元画像が記憶される手本元画像記憶手段と、
前記塗り絵の前記手本画像を生成するものであって、前記手本元画像に使用されている色を前記指定色の中で近似する色に変換する色変換手段を備えた手本画像生成手段と、
塗り絵用画像を生成するものであって、前記手本画像から輪郭を抽出して線画像を生成する線画像生成手段を備えた塗り絵用画像生成手段と、
前記手本画像および前記塗り絵用画像が表示される表示手段および該表示手段を制御する表示制御手段と、
前記塗り絵用画像および前記手本画像を印刷する印刷手段と、
を備え、
前記指定色情報記憶手段には、前記指定色情報がLab色空間の色情報として記憶され、
前記塗り絵用画像生成手段は、RGB色空間から前記Lab色空間へ、および、前記Lab色空間から当該RGB色空間へと表色系を変換する表色系変換手段を有し、
前記表色系変換手段が前記手本元画像の前記RGB色空間を画素毎に前記Lab色空間へと変換し、
前記色変換手段が前記指定色の色と前記手本元画像の色との色差を算出し、当該色差が少ない前記指定色内の色に前記手本元画像の色を変換し、
前記表色系変換手段が色変換後の画像を前記Lab色空間から前記RGB色空間へと変換する、
ことを特徴とする画像印刷装置。
It is those designated color information which is information of the designated color is a color specified by the user is stored, owned color information storage means owned color information of the user is a color of the writing instrument which owns is stored A designated color information storage means comprising:
A model original image storage means for storing a model original image that is a source of the model image of the coloring book;
Be one that generates the model images of the coloring, model image generating means having a color converter for converting the colors used in the model original image to the color that approximates in the designated color When,
A coloring image generating means comprising: a line image generating means for generating a line image by extracting a contour from the model image;
Display control means for controlling the display unit and those of the display means and the model image and the coloring image is displayed,
Printing means for printing the coloring image and the model image;
Bei to give a,
The designated color information storage means stores the designated color information as color information in the Lab color space,
The coloring image generating means has color system conversion means for converting a color system from the RGB color space to the Lab color space and from the Lab color space to the RGB color space.
The color system conversion means converts the RGB color space of the model original image into the Lab color space for each pixel,
The color conversion means calculates a color difference between the color of the designated color and the color of the sample original image, converts the color of the sample original image to a color within the designated color with a small color difference,
The color system conversion means converts the image after color conversion from the Lab color space to the RGB color space;
An image printing apparatus.
前記指定色情報記憶手段は、前記ユーザが所有していない色であって前記ユーザが使用を希望する色である希望色の情報が記憶される希望色情報記憶手段も備えていることを特徴とする請求項1に記載の画像印刷装置。 The designated color information storage means, and wherein the user is also provided with desired color information storage means by the user to a color that does not own the desired color information of a color desired to use is stored The image printing apparatus according to claim 1. 前記塗り絵用画像生成手段は、前記手本画像が前記所有色および前記希望色の両方の色を使用して生成されているとき、前記線画像生成手段が生成した前記線画像の中で前記希望色が付される領域に、対応する前記希望色を着色した前記塗り絵用画像を生成する希望色着色手段を備えていることを特徴とする請求項2に記載の画像印刷装置。 The coloring image generating means, when the model images are generated using the color of both the own color and the desired color, the choice among the line image in which the line image generating means has generated The image printing apparatus according to claim 2, further comprising a desired color coloring unit that generates the coloring image corresponding to the desired color in a region to be colored. 原画像を絵画調に変換して絵画調画像を生成する絵画調変換手段をさらに備え、
前記手本元画像が前記原画像又は前記絵画調画像から構成されることを特徴とする請求項1乃至請求項3のいずれか1項に記載の画像印刷装置。
It further comprises painting-like conversion means for converting the original image into a painting-like image to generate a painting-like image,
The image printing apparatus according to claim 1, wherein the model original image includes the original image or the painting-like image.
前記表示手段は、前記手本画像を前記塗り絵の順序を表示するように順次表示し、前記印刷手段は、前記手本画像を前記塗り絵の当該順序を表示するように順次印刷することを特徴とする請求項1乃至請求項4のいずれか1項に記載の画像印刷装置。The display means sequentially displays the model images so as to display the order of the coloring pictures, and the printing means sequentially prints the model images so as to display the order of the coloring pictures. The image printing apparatus according to any one of claims 1 to 4. ユーザが指定する色である指定色の情報である指定色情報を記憶する処理であって、当該ユーザが所有している筆記具の色である所有色の情報を記憶する所有色情報記憶処理を含む指定色情報記憶処理と、
塗り絵の手本画像の元となる手本元画像を読み込む手本元画像読込処理と、
前記塗り絵の前記手本画像を生成する処理であって、前記手本元画像に使用されている色を前記所有色の中で近似する色に変換する色変換処理を備えた手本画像生成処理と、
塗り絵用画像を生成する処理であって、少なくとも前記手本画像から輪郭を抽出して線画像を生成する線画像生成処理を備えた塗り絵用画像生成処理と、
前記手本画像および前記塗り絵用画像を表示手段に表示させる表示制御処理と、
前記塗り絵用画像および前記手本画像を印刷する印刷処理と、
を実行し、
前記指定色情報記憶処理では、前記指定色情報がLab色空間の色情報として記憶され、
前記塗り絵用画像生成処理では、
前記手本元画像のRGB色空間を画素毎に前記Lab色空間へと変換する表色系変換処理と、
前記表色系変換処理で前記Lab色空間に変換された前記手本元画像と前記指定色情報との色差を算出し、当該色差が少ない前記指定色内の色に前記手本元画像の色を変換する前記色変換処理と、
前記色変換処理で色変換した後の画像を前記Lab色空間から前記RGB色空間へと変換する表色系再変換処理と、
が実行される、
ことを特徴とする塗り絵画像生成方法。
A process of storing specified color information is information designated color is a color designated by the user, including ownership color information storage process in which the user stores owned color information of the color of the writing instrument which owns Specified color information storage processing;
A model original image reading process for reading a model original image that is a source of the model image of the coloring book,
A process of generating the model image of the coloring, model image generating processing with the color conversion process to convert the color used in the model original image to the color that approximates in the own color When,
Coloring image generation processing comprising: a line image generation processing for generating a line image by extracting a contour from at least the example image;
Display control processing for displaying the sample image and the coloring image on a display means;
A printing process for printing the coloring image and the model image;
The execution,
In the designated color information storage process, the designated color information is stored as color information in the Lab color space,
In the coloring image generation process,
A color system conversion process for converting the RGB color space of the original image into the Lab color space for each pixel;
A color difference between the original color image converted into the Lab color space by the color system conversion process and the specified color information is calculated, and the color of the original image is set to a color within the specified color with a small color difference. Converting the color conversion process;
A color system re-conversion process for converting the image after color conversion in the color conversion process from the Lab color space to the RGB color space;
Is executed,
A method for generating an image for coloring book.
前記指定色情報記憶処理では、前記所有色情報記憶処理の後に、前記ユーザが所有していない色であって前記ユーザが使用を希望する色である希望色の情報を記憶する希望色情報記憶処理も実行されることを特徴とする請求項6に記載の塗り絵画像生成方法。 Wherein the specified color information storage process, after the owner color information storage process, desired color information storage process in which the user stores the desired color information of a desired color was the user a color not use owned Coloring image generation method according to claim 6, characterized in that is also executed. 前記塗り絵用画像生成処理では、前記手本画像が前記所有色および前記希望色の両方の色を使用して生成されているとき、前記線画像生成処理の後に、前記線画像生成処理で生成した前記線画像の中で前記希望色が付される領域に、対応する前記希望色を着色して前記塗り絵用画像を生成する希望色着色処理を実行することを特徴とする請求項7に記載の塗り絵画像生成方法。 In the coloring image generation process, when the model image is generated using both the possessed color and the desired color, the line image generation process generates the line image generation process after the line image generation process. in a region where the desired color is added in the line image, colored the desired color corresponding according to claim 7, characterized in that to perform the desired coloring process of generating the coloring image A method for generating an image for coloring. 前記指定色情報記憶処理の後に原画像を絵画調に変換して絵画調画像を生成する絵画調変換処理と、
前記絵画調変換処理で変換された画像が前記手本元画像として記憶される手本元画像記憶処理と、が実行されることを特徴とする請求項6乃至請求項8のいずれか1項に記載の塗り絵画像生成方法。
A painting-like conversion process for generating a painting-like image by converting the original image into a painting-like image after the specified color information storage processing;
In any one of claims 6 to 8, characterized in that the model original image storage processing the converted image by the painting-style conversion process is stored as the model original image, it is executed A method for generating an image for coloring book as described.
前記表示制御処理では、前記手本画像を前記塗り絵の順序を表示するように順次表示し、前記印刷処理では、前記手本画像を前記塗り絵の当該順序を表示するように順次印刷することを特徴とする請求項6乃至請求項9のいずれか1項に記載の塗り絵用画像生成方法。In the display control process, the model images are sequentially displayed so as to display the order of the coloring book, and in the printing process, the model images are sequentially printed so as to display the order of the coloring book. The coloring image generating method according to any one of claims 6 to 9. ユーザが指定する色である指定色の情報である指定色情報を記憶する処理であって、当該ユーザが所有している筆記具の色である所有色の情報を記憶する所有色情報記憶処理を含む指定色情報記憶処理と、
塗り絵の手本画像の元となる手本元画像を読み込む手本元画像読込処理と、
前記塗り絵の前記手本画像を生成する処理であって、前記手本元画像に使用されている色を前記所有色の中で近似する色に変換する色変換処理を備えた手本画像生成処理と、
塗り絵用画像を生成する処理であって、少なくとも前記手本画像から輪郭を抽出して線画像を生成する線画像生成処理を備えた塗り絵用画像生成処理と、
前記手本画像および前記塗り絵用画像を表示手段に表示させる表示制御処理と、
前記塗り絵用画像および前記手本画像を印刷する印刷処理と、
コンピュータに実行させ、
前記指定色情報記憶処理では、前記指定色情報がLab色空間の色情報として記憶され、
前記塗り絵用画像生成処理では、
前記手本元画像のRGB色空間を画素毎に前記Lab色空間へと変換する表色系変換処理と、
前記表色系変換処理で前記Lab色空間に変換された前記手本元画像と前記指定色情報との色差を算出し、当該色差が少ない前記指定色内の色に前記手本元画像の色を変換する前記色変換処理と、
前記色変換処理で色変換した後の画像を前記Lab色空間から前記RGB色空間へと変換する表色系再変換処理と、
を前記コンピュータに実行させる、
ことを特徴とするコンピュータ読み取り可能な塗り絵画像生成プログラム。
A process of storing specified color information is information designated color is a color designated by the user, including ownership color information storage process in which the user stores owned color information of the color of the writing instrument which owns Specified color information storage processing;
A model original image reading process for reading a model original image that is a source of the model image of the coloring book,
A process of generating the model image of the coloring, model image generating processing with the color conversion process to convert the color used in the model original image to the color that approximates in the own color When,
Coloring image generation processing comprising: a line image generation processing for generating a line image by extracting a contour from at least the example image;
Display control processing for displaying the sample image and the coloring image on a display means;
A printing process for printing the coloring image and the model image;
To the computer ,
In the designated color information storage process, the designated color information is stored as color information in the Lab color space,
In the coloring image generation process,
A color system conversion process for converting the RGB color space of the original image into the Lab color space for each pixel;
A color difference between the original color image converted into the Lab color space by the color system conversion process and the specified color information is calculated, and the color of the original image is set to a color within the specified color with a small color difference. Converting the color conversion process;
A color system re-conversion process for converting the image after color conversion in the color conversion process from the Lab color space to the RGB color space;
Causing the computer to execute
A computer-readable image generation program for coloring book characterized by the above.
前記指定色情報記憶処理では、前記所有色情報記憶処理の後に、前記ユーザが所有していない色であって前記ユーザが使用を希望する色である希望色の情報を記憶する希望色情報記憶処理も前記コンピュータに実行させることを特徴とする請求項11に記載のコンピュータ読み取り可能な塗り絵画像生成プログラム。 Wherein the specified color information storage process, after the owner color information storage process, desired color information storage process in which the user stores the desired color information of a desired color was the user a color not use owned computer readable coloring image generating program according to claim 11, characterized in that it also causes the computer to perform. 前記塗り絵用画像生成処理では、前記手本画像が前記指定色として前記所有色および前記希望色の両方の色を使用して生成されているとき、前記線画像生成処理の後に、前記線画像生成処理で生成した前記線画像の中で前記希望色が付される領域に、対応する前記希望色を着色して前記塗り絵用画像を生成する希望色着色処理を前記コンピュータに実行させることを特徴とする請求項12に記載のコンピュータ読み取り可能な塗り絵画像生成プログラム。 In the coloring image generation process, when the model image is generated using both the possessed color and the desired color as the designated color, the line image generation is performed after the line image generation process. in a region where the desired color is added in the line image generated by the process, and characterized in that to perform the desired coloring process of generating the coloring image colored the desired color corresponding to the computer The computer-readable image generation program for coloring book according to claim 12. 前記塗り絵用画像生成処理では、前記指定色情報記憶処理の後に原画像を絵画調に変換して絵画調画像を生成する絵画調変換処理と、
前記絵画調変換処理で変換された画像が前記手本元画像として記憶される手本元画像記憶処理と、
前記コンピュータに実行させることを特徴とする請求項11乃至請求項13のいずれか1項に記載のコンピュータ読み取り可能な塗り絵画像生成プログラム。
In the coloring image generation process, a painting-like conversion process for generating a painting-like image by converting the original image into a painting-like image after the designated color information storage process;
A model original image storing process transformed image in the painting-style conversion process is stored as the model original image,
The computer-readable image generation program for coloring book according to any one of claims 11 to 13, wherein the computer is executed.
前記表示制御処理では、前記手本画像を前記塗り絵の順序を表示するように順次表示し、前記印刷処理では、前記手本画像を前記塗り絵の当該順序を表示するように順次印刷する、ことを前記コンピュータに実行させることを特徴とする請求項11乃至請求項14のいずれか1項に記載のコンピュータ読み取り可能な塗り絵用画像生成プログラム。In the display control process, the model images are sequentially displayed so as to display the order of the coloring book, and in the printing process, the model images are sequentially printed so as to display the order of the coloring book. 15. The computer-readable image generation program for coloring book according to claim 11, wherein the computer-readable image generation program is executed by the computer.
JP2010293536A 2010-12-28 2010-12-28 Image printing apparatus, coloring picture generation method, coloring picture generation program Active JP5716953B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010293536A JP5716953B2 (en) 2010-12-28 2010-12-28 Image printing apparatus, coloring picture generation method, coloring picture generation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010293536A JP5716953B2 (en) 2010-12-28 2010-12-28 Image printing apparatus, coloring picture generation method, coloring picture generation program

Publications (2)

Publication Number Publication Date
JP2012142757A JP2012142757A (en) 2012-07-26
JP5716953B2 true JP5716953B2 (en) 2015-05-13

Family

ID=46678601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010293536A Active JP5716953B2 (en) 2010-12-28 2010-12-28 Image printing apparatus, coloring picture generation method, coloring picture generation program

Country Status (1)

Country Link
JP (1) JP5716953B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11055886B2 (en) * 2019-04-15 2021-07-06 Xerox Corporation Methods and systems for automatic filling of colors in outline images at a multi-function device
KR102488627B1 (en) * 2021-11-08 2023-01-18 청주대학교 산학협력단 Automatic converting method for PIPO painting image and automatic converting system for PIPO painting image using thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06301779A (en) * 1993-04-16 1994-10-28 Casio Comput Co Ltd Contour image output device
JPH10243211A (en) * 1997-02-28 1998-09-11 Sanyo Electric Co Ltd Image processor, image-processing method and recording medium
JP2002185766A (en) * 2000-12-12 2002-06-28 Minolta Co Ltd Image forming system
JP3640897B2 (en) * 2001-04-02 2005-04-20 ニューリー株式会社 Conversion program for painting-like images
JP2005311544A (en) * 2004-04-19 2005-11-04 Toppan Printing Co Ltd Device and method for converting color data
JP2009031978A (en) * 2007-07-26 2009-02-12 Seiko Epson Corp Coloring, coloring picture producing device, coloring picture producing method, and program thereof
JP2010074217A (en) * 2008-09-16 2010-04-02 Kawai Musical Instr Mfg Co Ltd Method and computer program for coloring image generation and recording medium

Also Published As

Publication number Publication date
JP2012142757A (en) 2012-07-26

Similar Documents

Publication Publication Date Title
JP5375894B2 (en) Nail printing apparatus and printing control method
JP2006114024A (en) Caricature character generating system and method
RU2006121538A (en) DEVICE FOR COMBINING IMAGES AND METHOD AND PROGRAM OF MANAGING THEM
JPH10162159A (en) Method and system for combining previously stored digital image with document and/or graphic dedicated to individual, and medium used for the same
CN102541484B (en) Image processing apparatus, print accept and order for goods device and printing and to accept and order for goods method
US7649651B2 (en) Print data editing apparatus and print data editing program stored in computer readable medium
JP2004153825A (en) Document restoration method and device
JP5716953B2 (en) Image printing apparatus, coloring picture generation method, coloring picture generation program
JP4186558B2 (en) Image processing method and apparatus
US8760718B2 (en) Image printer for changing a tone of an original image based on associated identification information and printing the image data having the changed tone, and corresponding image printing method and recording medium
JP2006053718A (en) Photographic processor
JP4660075B2 (en) Multi-function printer, label printing method, program thereof, and printing system
JP5645072B2 (en) Image printing apparatus, image printing method, and image printing program
JP2010041369A (en) Image forming apparatus, and method for controlling image forming apparatus
JP2005242576A (en) Image generation for editing and generating image by processing image data constituting image
JP2007124623A5 (en)
EP1883048A1 (en) Data correction method, apparatus and program
JP5846406B2 (en) Image printing apparatus, image printing method, and image printing program
JP4052502B2 (en) Caricature image creation device, computer program, and recording medium
JP5787147B2 (en) Image processing apparatus, image processing method, and program
JP2008228006A (en) Unit and method for processing image
JP5692574B2 (en) Image processing apparatus, painting style conversion method, and painting style conversion program
JP5713184B2 (en) Image printing apparatus, image composition printing method, and image composition printing program
Gatter Production for Print
JP2005301337A (en) Apparatus and method for image processing, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141106

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141224

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: 20150219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150304

R150 Certificate of patent or registration of utility model

Ref document number: 5716953

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150