JP3673478B2 - Handwritten image output program - Google Patents
Handwritten image output program Download PDFInfo
- Publication number
- JP3673478B2 JP3673478B2 JP2001035086A JP2001035086A JP3673478B2 JP 3673478 B2 JP3673478 B2 JP 3673478B2 JP 2001035086 A JP2001035086 A JP 2001035086A JP 2001035086 A JP2001035086 A JP 2001035086A JP 3673478 B2 JP3673478 B2 JP 3673478B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- handwritten
- contour line
- tone
- output program
- 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
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、手書き調画像出力プログラムに関する。より詳しくは、製図用具又はCADなどによって機械調に描かれた原画像を手書き調に描かれた画像にコンピュータを用いて自動的に変換出力するためのプログラムに関する。
【0002】
【従来の技術】
従来、住宅販売業者や内装品販売業者は、販売住宅の間取りや販売内装品の配置状態を製図用具又はCADなどを用いて描き、それをチラシとして配布したり、カタログとして本に載せたりしていた。製図用具又はCADなどを用いることにより、各線は歪みや突き出しがないものとなり、色は斑(ムラ)のないものとなる。また、輪郭を特に強調しておきたい例えば壁などは、黒一色でべた塗りしていた。このように線及び色が統一的に描かれた所謂機械調画像の図面は、見た目がはっきりしてわかりやすいと共に、類似した図面の作成を容易にする。
【0003】
【発明が解決しようとする課題】
しかし、最近では、上述したような機械調の図面よりも、人間が手書きした図面、つまり、線の歪みや色斑などが少々ある図面の方が、見た感じが柔らかくて馴染みがあり、また面白みがあって実感が湧きやすいということで好評になってきている。かといって、人間が1枚1枚手書きしていたのでは、時間と費用が多くかかってしまう。
本発明は、上述の問題に鑑みてなされたものであり、製図用具又はCADなどによって機械調に描かれた画像を手書き調の画像に自動的に変換できるプログラムの提供を目的とする。
【0004】
【課題を解決するための手段】
上述の課題を解決するべく、請求項1の発明は、図2及び図5によく示されるように、機械調に描かれた原画像G0を手書き調に描かれた画像G8に変換出力するための手書き調画像出力プログラムTPであって、前記原画像G0における輪郭線r及び該輪郭線rの角部eを抽出する第1ステップS22,23と、前記第1ステップS22,23で抽出した前記角部eから前記輪郭線rを突き出す第2ステップS24と、前記輪郭線rのうち、強調するべき強調輪郭線rWを抽出する第3ステップS25と、前記第3ステップS25で抽出した前記強調輪郭線rWを太線化する第4ステップS26と、
前記第2ステップS24又は前記第4ステップS26で得られた画像を複数の正方形の子領域に区分し、区分した各子領域の頂点座標に乱数演算を施すことで、各頂点位置をずらして各子領域を変形させ、該子領域の変形に対応させるように前記輪郭線rを歪ませる第5ステップS4とを有する。
請求項1の発明によると、角部eにおいて直線が少しはみ出てしまったという、手書きする際によくありがちな状態が表現できる。また、強調輪郭線rWが太線化されるので、画像に面白みがでる。
また、輪郭線rが例えば下地用紙の縁に対して偏角するので、定規を使用したとしてもあまり上手に描くことができなかったという状態が表現できる。
さらに、輪郭線rにおける複数の線分r1,r2…がそれぞれ連続して偏角するので、定規を使わずにフリーハンドで描いたという状態が表現できる。
【0005】
請求項2の発明では、前記第2ステップS24は、前記角部eから前記輪郭線rをランダムに突き出してなる。
請求項2の発明によると、角部eから輪郭線rがランダムに突き出るので、手書きしたという感じが一層強まる。
請求項3の発明は、図2及び図3によく示されるように、機械調に描かれた原画像G0を手書き調に描かれた画像G8に変換出力するための手書き調画像出力プログラムTPであって、前記原画像G0における色と該原画像G0の背景色とを混合する第6ステップS1と、前記請求項1又は2で得られた画像G6と前記第6ステップS1で得られた画像G2とを合成する第7ステップS3とを有する。
請求項3の発明によると、請求項1又は2の発明で得られる効果に加えて、原画像G0における色と該原画像G0の背景色とが混合されることにより色斑ができるので、水彩画調又は色鉛筆調で描いたという状態が表現できる。
【0007】
【発明の実施の形態】
以下、添付図面に基づいて、本発明の一実施形態である変換プログラムTPについて説明する。
変換プログラムTPは、スキャナー等の画像読取り装置によりラスターデータとして入力された機械調画像の画像データを手書き調画像の画像データに変換して出力するものである。変換プログラムTPは、フロッピーディスクやCD−ROMなどの記憶媒体に記憶される。または、適当なプログラム配信サーバからパーソナルコンピュータ等におけるハードディスクにダウンロードするようにしてもよい。
【0008】
図1は、入力される原画像G0と、変換プログラムTPによって変換出力された手書き調画像G8とを比較して示す図である。図1(A)は変換前の画像を示し、図1(B)は変換後の画像を示す。
図1(A)のように、原画像G0は、製図用具やCADを用いて機械調に描かれた機械調画像である。すなわち、輪郭線となる直線のうち、横線は下地用紙の縦縁に沿ったX軸に平行であり、縦線は下地用紙の横縁に沿ったY軸に平行である。各線に歪みや突き出しは無く、円弧の曲率は一定であり、塗られた部分には斑が無い。なお、輪郭を特に強調させようとした部分である壁Wは、黒一色でべた塗りされている。その他の部分、例えば床や机Tは、茶色や黄色などで描かれている。
これに対して手書き調画像G8では、図1(B)のように、輪郭線となる直線に歪みが生じ、各輪郭線の角部eから該輪郭線がランダムに突き出している。また、塗られた部分に斑が生じており、手書きした感じが現れている。図中、まばらに描かれた斜線は、色に斑があることを示している。
【0009】
次に、図2から図8を参照して、変換プログラムTPで行なう処理について説明する。なお、説明をわかりやすくするため、図1における壁W及び机Tに注目して説明する。
図2は変換プログラムTPにより原画像G0が手書き調画像G8に変換されるまでの各処理段階における画像を模式的に示す図、図3は変換プログラムTPで行なう処理内容の概略を示すフローチャート、図4は色変換ステップS1の処理内容を示すフローチャート、図5は突き出し及び強調ステップS2の処理内容を示すフローチャート、図6は歪みステップS4の処理内容を示すフローチャート、図7はL字パターンLPを示す図、図8は歪みステップS4で行なう処理を模式的に説明するための図である。
【0010】
図3のように、変換プログラムTPは、色変換ステップS1、突き出し及び強調ステップS2、画像合成ステップS3、及び歪みステップS4からなる。
色変換ステップS1では、原画像G0における壁W及び机Tの色を、水彩画調又は色鉛筆画調の色に変換して色変換画像G2を生成する。
図4のように、色変換ステップS1は、斑生成ステップS11及び暈し(ぼかし)ステップS12からなる。斑生成ステップS11では、原画像G0における壁W又は机Tの色と、背景色(例えば白色)とをそれぞれ混合させて斑画像G1を生成する。水彩画調とする場合には、壁W又は机Tの色と背景色とを所定のパラメータによる混合比で混合し彩度を調整する。色鉛筆画調とする場合には、壁W又は机Tの色と背景色とを、乱数を用いた混合比で画素毎にそれぞれランダムな割合で混合する。斑画像G1は、このままでは見た目が粗いため、次の暈しステップS12の処理を施すことで滑らかな斑にする。暈しステップS12では、斑画像G1に移動平均法を適用することにより、斑画像G1に暈しを与える。これにより、粗かった斑画像G1は滑らかな色変換画像G2となる。
【0011】
突き出し及び強調ステップS2では、壁W及び机Tの各輪郭線r(rW,rT)、及び各輪郭線rの角部e(eW,eT)を抽出して各角部eにランダムな確率で突き出し線pe(peW,peT)を付与すると共に、強調するべき輪郭線である壁Wにおける輪郭線rWを太くすることで輪郭線強調画像G6を生成する。
図5のように、突き出し及び強調ステップS2は、グレースケール変換ステップS21、輪郭線抽出ステップS22、パターンマッチングステップS23、突き出しステップS24、強調部抽出ステップS25、及び強調ステップS26からなる。
【0012】
グレースケールステップS21では、原画像G0をグレースケールに変換してグレースケール画像G3を生成する。輪郭線抽出ステップS22では、グレースケール画像G3の輪郭線rを抽出して、輪郭線rのみで描かれた輪郭線画像G4を生成する。輪郭線rの抽出は、2次微分オペレータにより行なう。すなわち、例えば、X方向又はY方向にライン単位で順次読取った画像データにおける互いに隣接するライン間の画像データの濃度差の差分に基づいて抽出する。
パターンマッチングステップS23では、輪郭線画像G4と、予めマッチング用データとして作成されたL字パターンLP1〜LP4(図7参照)とのパターンマッチングにより、輪郭線画像G4における角部eを検出する。
【0013】
突き出しステップS24では、パターンマッチングステップS23で検出された角部eに対して、該角部eを形成する輪郭線rを微小長さだけ延長した突き出し線peをランダムな確率で付与することにより、輪郭線突き出し画像G5を生成する。突き出し線peにより、角部eにおいて直線が少しはみ出てしまったという、手書きする際によくありがちな状態が表現できる。
強調部抽出ステップS25では、グレースケール画像G3と輪郭線画像G4とに基づいて、強調したい部分、つまり、壁Wの輪郭線を抽出する。原画像G0において、壁Wは黒色で濃く描かれているので、グレースケール画像G3においてもその部分は濃くなる。まず、グレースケール画像G3を所定の濃度閾値と比較することにより、画像上における壁Wの存在がわかり、その位置が特定される。次に、輪郭線画像G4において、壁Wと重なりをもつ輪郭線rWを、強調するべき輪郭線として抽出する。これに対して、机Tは濃度が薄いので、画像上における机Tの存在がわからない。従って、机Tの輪郭線rTは強調するべき輪郭線として抽出されない。
強調ステップS26では、強調部抽出ステップS25で抽出された強調するべき輪郭線rWを太くすることで、輪郭線強調画像G6を生成する。これにより、壁Wは太い輪郭線で囲まれた形で表現され、画像に面白みが出る。
【0014】
画像合成ステップS3では、色変換ステップS1で生成した色変換画像G2と、強調ステップS26で生成した輪郭線強調画像G6とを合成して合成画像G7を生成する。合成画像G7は、原画像G0が水彩画調又は色鉛筆画調色に変換され、輪郭線rの角部eにランダムな突き出し線peが加わり、壁Wが太い輪郭線で囲まれた形で表現された画像である。
ところで、合成の際、輪郭線rは、色変換画像G2によって滲んだ感じになってしまう。そこで、合成した画像において、一旦、輪郭線r及びその外側を背景色で塗りつぶし、その画像に再び輪郭線強調画像G6を重ねる処理を行なうことにより、輪郭線rが滲まない画像としている。
【0015】
歪みステップS4では、合成画像G7の輪郭線rに歪みを与えることで、手書き調画像G8を生成する。歪みは、輪郭線rを複数の線分r1,r2,…に分割し輪郭線rが連続線となるように線分r1,r2,…をそれぞれ偏角させることで作り出す。
図6のように、歪みステップS4は、座標データ生成ステップS41及び偏角ステップS42からなる。
座標データ生成ステップS41では、まず、図8(A)のように、合成画像G7を複数の正方形の子領域uに区分けし、各子領域uの頂点の座標を求める。なお、図8では、説明をわかりやすくするために子領域uの数を9としているが、実際にはその数は100程度である。次に、各頂点の座標に乱数演算を施すことにより、各子領域uの頂点をX方向及びY方向にずらす。乱数演算は、例えば、各頂点の座標値に所定スケールの乱数を加減算することで行なう。乱数演算により、各子領域uは、図8(B)のように、正方形が歪んだ形に変形される。偏角ステップS42では、各子領域uの変形する変換に対応した変換によって、子領域u内の輪郭線線分rW1,rW2,…、rT1,rT2,…をそれぞれ輪郭線線分rW1´,rW2´,…、rT1´,rT2´,…に変換する。輪郭線rは、線分r1,r2,…、rT1´,rT2´,…毎に偏角され、これにより、定規を使わずにフリーハンドで描いたという状態が表現できる。
【0016】
また、強調ステップ26で太くされた輪郭線が子領域uに所定量以上あった場合に、その子領域uにおける変形の度合い強くすることもできる。これによって、太線部分の歪みが大きくなり、画像に一層面白みが出ることが期待できる。
また、子領域u内の輪郭線rを変形する際に線形補間をすることでアンチエリアジングの効果を得ることもできる。
以上、壁W及び机Tに注目して説明したが、床や椅子などについても同様に処理される。
【0017】
このように、変換プログラムTPによると、入力画像である機械調で描かれた原画像G0に対して、色を水彩画調又は色鉛筆画調とし、輪郭線rの角部eに突き出し線peをランダムな確率で付与し、強調したい壁Wの輪郭線rWを太くし、更に、輪郭線rに歪みを与えることで、手書き調画像G8が出力される。
本実施形態において、変換プログラムTPの全体又は一部における処理の方式、処理順序、処理タイミングなどは、本発明の主旨に沿って種々に変更できる。
【0018】
【発明の効果】
本発明によると、製図用具又はCADなどによって描かれた機械調の画像を、手書き調の画像に自動的に変換できる。従って、見た感じが柔らかくて馴染みがあり、また面白みがあって実感が湧きやすいとされている手書き調画像が、時間と費用が多くかけることなく得られる。
【図面の簡単な説明】
【図1】 入力される原画像と、変換プログラムによって変換出力された手書き調画像とを比較して示す図である。
【図2】 変換プログラムにより原画像が手書き調画像に変換されるまでの各処理段階における画像を模式的に示す図である。
【図3】 変換プログラムで行なう処理内容の概略を示すフローチャートである。
【図4】 色変換ステップの処理内容を示すフローチャートである。
【図5】 突き出し及び強調ステップの処理内容を示すフローチャートである。
【図6】 歪みステップの処理内容を示すフローチャートである。
【図7】 L字パターンを示すを示す図である。
【図8】 歪みステップで行なう処理を模式的に説明するための図である。
【符号の説明】
TP 変換プログラム(手書き調画像出力プログラム)
r 輪郭線
r1,r2 複数の線分
e 角部
S1 色変換ステップ(第6ステップ)
S22 輪郭線抽出ステップ(第1ステップ)
S23 パターンマッチングステップ(第1ステップ)
S24 突き出しステップ(第2ステップ)
S25 強調部抽出ステップ(第3ステップ)
S26 強調ステップ(第4ステップ)
S3 画像合成ステップ(第7ステップ)
S4 歪みステップ(第5ステップ)
rW 強調輪郭線
G0 原画像
G8 手書き調画像(画像)
G6 輪郭線強調画像(画像)[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a handwritten tone image output program. More specifically, the present invention relates to a program for automatically converting and outputting an original image drawn in a mechanical tone by a drawing tool or CAD to an image drawn in a handwritten tone using a computer.
[0002]
[Prior art]
Conventionally, home dealers and interior goods dealers have drawn the layout of homes for sale and the layout of the sales interior goods using drafting tools or CAD, and distributed them as flyers or placed them in catalogs as books. It was. By using a drawing tool, CAD, or the like, each line has no distortion or protrusion, and the color has no spots (unevenness). In addition, for example, walls that are particularly emphasized in outlines are painted in solid black. A so-called mechanical image drawing in which lines and colors are drawn in a unified manner in this way is clear and easy to understand, and facilitates the creation of similar drawings.
[0003]
[Problems to be solved by the invention]
However, recently, drawings drawn by humans, that is, drawings with a little line distortion or color spots, are softer and more familiar than the mechanical drawings as described above. It has become popular because it is interesting and easy to realize. However, it would be time consuming and expensive for humans to write by hand.
The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a program capable of automatically converting an image drawn in a mechanical tone by a drawing tool or CAD into a handwritten tone image.
[0004]
[Means for Solving the Problems]
In order to solve the above-mentioned problems, the invention of claim 1 is to convert an original image G0 drawn in a mechanical tone into an image G8 drawn in a handwritten tone, as well shown in FIGS. The handwritten-tone image output program TP of the first step S22, 23 for extracting the contour line r and the corner portion e of the contour line r in the original image G0 and the first step S22, 23 A second step S24 for projecting the outline r from the corner e, a third step S25 for extracting an emphasized outline rW to be emphasized from the outline r , and the emphasized outline extracted in the third step S25 A fourth step S26 for thickening the line rW ;
The image obtained in the second step S24 or the fourth step S26 is divided into a plurality of square child regions, and by applying a random number calculation to the vertex coordinates of each divided child region, each vertex position is shifted to each And a fifth step S4 for deforming the child region and distorting the contour r so as to correspond to the deformation of the child region .
According to the first aspect of the present invention, it is possible to express a state that is often common in handwriting, in which a straight line protrudes slightly at the corner e. Further, since the emphasized outline rW is thickened, the image is interesting.
Further, since the contour line r is deviated with respect to the edge of the base paper, for example, it is possible to express a state in which drawing is not performed well even if a ruler is used.
Further, since the plurality of line segments r1, r2,... In the contour line r are continuously declined, it is possible to express a state of drawing with freehand without using a ruler.
[0005]
In the second aspect of the invention, the second step S24 projects the contour line r at random from the corner e.
According to the invention of claim 2, since the contour line r protrudes randomly from the corner e, the feeling of handwriting is further enhanced.
The invention of claim 3 is a handwritten tone image output program TP for converting and outputting an original image G0 drawn in a mechanical tone to an image G8 drawn in a handwritten tone, as well shown in FIGS. The sixth step S1 for mixing the color in the original image G0 and the background color of the original image G0, the image G6 obtained in the first or second aspect, and the image obtained in the sixth step S1. And a seventh step S3 for synthesizing G2.
According to the invention of claim 3, in addition to the effect obtained by the invention of claim 1 or 2, the color in the original image G0 and the background color of the original image G0 are mixed, so that a color spot is formed. A state of drawing in a tone or colored pencil tone can be expressed.
[0007]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a conversion program TP according to an embodiment of the present invention will be described with reference to the accompanying drawings.
The conversion program TP converts image data of a mechanical image input as raster data by an image reading device such as a scanner into image data of a handwritten image and outputs the image data. The conversion program TP is stored in a storage medium such as a floppy disk or a CD-ROM. Or you may make it download to the hard disk in a personal computer etc. from a suitable program delivery server.
[0008]
FIG. 1 is a diagram showing a comparison between an input original image G0 and a handwritten tone image G8 converted and output by the conversion program TP. FIG. 1A shows an image before conversion, and FIG. 1B shows an image after conversion.
As shown in FIG. 1A, the original image G0 is a mechanical tone image drawn in a mechanical tone using a drawing tool or CAD. That is, of the straight lines that are the contour lines, the horizontal line is parallel to the X axis along the vertical edge of the base paper, and the vertical line is parallel to the Y axis along the horizontal edge of the base paper. There is no distortion or protrusion in each line, the curvature of the arc is constant, and there are no spots on the painted part. It should be noted that the wall W, which is the part that particularly emphasizes the outline, is solidly painted with black. Other portions such as the floor and the desk T are drawn in brown or yellow.
On the other hand, in the handwritten tone image G8, as shown in FIG. 1B, the straight line that becomes the outline is distorted, and the outline protrudes at random from the corner e of each outline. In addition, there are spots on the painted parts, and a handwritten feeling appears. In the figure, sparsely drawn diagonal lines indicate that the color is uneven.
[0009]
Next, processing performed by the conversion program TP will be described with reference to FIGS. In order to make the description easy to understand, the description will be made by paying attention to the wall W and the desk T in FIG.
2 is a diagram schematically showing an image at each processing stage until the original image G0 is converted into the handwritten tone image G8 by the conversion program TP, and FIG. 3 is a flowchart showing an outline of processing contents performed by the conversion program TP. 4 is a flowchart showing the processing contents of the color conversion step S1, FIG. 5 is a flowchart showing the processing contents of the protrusion and enhancement step S2, FIG. 6 is a flowchart showing the processing contents of the distortion step S4, and FIG. 7 shows the L-shaped pattern LP. FIGS. 8A and 8B are diagrams for schematically explaining the processing performed in the distortion step S4.
[0010]
As shown in FIG. 3, the conversion program TP includes a color conversion step S1, a protrusion and enhancement step S2, an image composition step S3, and a distortion step S4.
In the color conversion step S1, the color of the wall W and the desk T in the original image G0 is converted into a color of watercolor or color pencil, and a color conversion image G2 is generated.
As shown in FIG. 4, the color conversion step S1 includes a spot generation step S11 and a blurring (blurring) step S12. In the spot generation step S11, the spot image G1 is generated by mixing the color of the wall W or the desk T in the original image G0 and the background color (for example, white). In the case of a watercolor painting tone, the color of the wall W or desk T and the background color are mixed at a mixing ratio based on predetermined parameters to adjust the saturation. In the case of a color pencil drawing tone, the color of the wall W or desk T and the background color are mixed at a random ratio for each pixel at a mixing ratio using random numbers. Since the spot image G1 looks rough as it is, it is made smooth by performing the process of the next tanning step S12. In the tanning step S12, the moving image method is applied to the spot image G1, thereby giving a check to the spot image G1. Thereby, the rough spot image G1 becomes a smooth color conversion image G2.
[0011]
In the projecting and emphasizing step S2, each contour r (rW, rT) of the wall W and the desk T and the corner e (eW, eT) of each contour r are extracted, and each corner e is random with a probability. An outline emphasis image G6 is generated by giving a protruding line pe (peW, peT) and thickening the outline rW on the wall W, which is the outline to be emphasized.
As shown in FIG. 5, the protrusion and enhancement step S2 includes a gray scale conversion step S21, an outline extraction step S22, a pattern matching step S23, a protrusion step S24, an enhancement part extraction step S25, and an enhancement step S26.
[0012]
In the gray scale step S21, the original image G0 is converted into a gray scale to generate a gray scale image G3. In the contour line extracting step S22, the contour line r of the gray scale image G3 is extracted, and a contour line image G4 drawn only by the contour line r is generated. The contour line r is extracted by a secondary differential operator. That is, for example, extraction is performed based on the difference in density of image data between adjacent lines in image data that is sequentially read in line units in the X or Y direction.
In the pattern matching step S23, a corner e in the contour image G4 is detected by pattern matching between the contour image G4 and L-shaped patterns LP1 to LP4 (see FIG. 7) created in advance as matching data.
[0013]
In the protrusion step S24, a protrusion line pe obtained by extending the contour line r forming the corner part e by a minute length is given to the corner part e detected in the pattern matching step S23 with a random probability. An outline protruding image G5 is generated. With the protruding line pe, it is possible to express a state often found in handwriting that a straight line has slightly protruded at the corner e.
In the enhancement portion extraction step S25, the portion to be enhanced, that is, the contour line of the wall W, is extracted based on the grayscale image G3 and the contour image G4. In the original image G0, the wall W is drawn dark in black, so that the portion is also dark in the grayscale image G3. First, by comparing the gray scale image G3 with a predetermined density threshold, the presence of the wall W on the image is known, and its position is specified. Next, in the contour image G4, a contour rW that overlaps the wall W is extracted as a contour to be emphasized. On the other hand, since the density of the desk T is low, the presence of the desk T on the image is unknown. Therefore, the outline rT of the desk T is not extracted as an outline to be emphasized.
In the emphasis step S26, the contour line emphasis image G6 is generated by thickening the contour line rW to be emphasized extracted in the emphasis part extraction step S25. Thereby, the wall W is expressed in a form surrounded by a thick outline, and the image is interesting.
[0014]
In the image composition step S3, the color conversion image G2 generated in the color conversion step S1 and the outline enhanced image G6 generated in the enhancement step S26 are combined to generate a composite image G7. The composite image G7 is expressed in a form in which the original image G0 is converted into a watercolor or color pencil tone, a random protrusion line pe is added to the corner e of the contour r, and the wall W is surrounded by a thick contour. It is an image.
By the way, at the time of composition, the contour line r becomes blurred due to the color conversion image G2. Therefore, in the synthesized image, the outline r and the outside thereof are once painted with the background color, and the outline-enhanced image G6 is overlaid again on the image, so that the outline r is not blurred.
[0015]
In the distortion step S4, a handwritten tone image G8 is generated by distorting the outline r of the composite image G7. Distortion is created by dividing the contour line r into a plurality of line segments r1, r2,... And declining the line segments r1, r2,.
As shown in FIG. 6, the distortion step S4 includes a coordinate data generation step S41 and a declination step S42.
In the coordinate data generation step S41, first, as shown in FIG. 8A, the composite image G7 is divided into a plurality of square child regions u, and the coordinates of the vertices of each child region u are obtained. In FIG. 8, the number of child regions u is set to 9 for the sake of easy understanding. However, the number is actually about 100. Next, by applying random number calculation to the coordinates of each vertex, the vertex of each child region u is shifted in the X direction and the Y direction. The random number calculation is performed, for example, by adding or subtracting a random number of a predetermined scale to the coordinate value of each vertex. By the random number calculation, each child region u is transformed into a distorted square as shown in FIG. In the declination step S42, the contour line segments rW1, rW2,..., RT1, rT2,. ,..., RT1 ′, rT2 ′,. The contour line r is deviated for each of the line segments r1, r2,..., RT1 ′, rT2 ′,..., Thereby expressing a state of drawing freehand without using a ruler.
[0016]
Further, when the contour line thickened in the emphasis step 26 is more than a predetermined amount in the child region u, the degree of deformation in the child region u can be increased. As a result, the distortion of the thick line portion is increased, and it can be expected that the image becomes more interesting.
Further, the anti-aliasing effect can be obtained by performing linear interpolation when deforming the contour line r in the child region u.
As described above, the description has been made with attention paid to the wall W and the desk T, but the same applies to the floor and the chair.
[0017]
As described above, according to the conversion program TP, the original image G0 drawn in mechanical tone, which is the input image, is colored in watercolor or color pencil, and the protruding line pe is randomly drawn at the corner e of the contour r. The handwritten tone image G8 is output by thickening the contour line rW of the wall W to be given with high probability, and further distorting the contour line r.
In the present embodiment, the processing method, processing order, processing timing, etc. in the whole or a part of the conversion program TP can be variously changed in accordance with the gist of the present invention.
[0018]
【The invention's effect】
According to the present invention, a mechanical image drawn by a drawing tool or CAD can be automatically converted to a handwritten image. Therefore, it is possible to obtain a handwritten tone image that is soft and familiar to the user and that is interesting and easy to realize without much time and cost.
[Brief description of the drawings]
FIG. 1 is a diagram showing a comparison between an input original image and a handwritten tone image converted and output by a conversion program.
FIG. 2 is a diagram schematically showing an image in each processing stage until an original image is converted into a handwritten tone image by a conversion program.
FIG. 3 is a flowchart showing an outline of processing performed by a conversion program.
FIG. 4 is a flowchart showing processing contents of a color conversion step.
FIG. 5 is a flowchart showing processing contents of a protrusion and emphasis step.
FIG. 6 is a flowchart showing processing details of a distortion step.
FIG. 7 is a diagram showing an L-shaped pattern.
FIG. 8 is a diagram for schematically explaining processing performed in a distortion step.
[Explanation of symbols]
TP conversion program (handwritten image output program)
r contour line r1, r2 multiple line segments e corner S1 color conversion step ( sixth step)
S22 Outline extraction step (first step)
S23 Pattern matching step (first step)
S24 Protrusion step (second step)
S25 Emphasis part extraction step (third step)
S26 Emphasis step (4th step)
S3 Image composition step ( seventh step)
S4 Distortion step ( fifth step)
rW Emphasized contour G0 Original image G8 Handwritten image (image)
G6 Outline-enhanced image (image)
Claims (3)
前記原画像における輪郭線及び該輪郭線の角部を抽出する第1ステップと、
前記第1ステップで抽出した前記角部から前記輪郭線を突き出す第2ステップと、
前記輪郭線のうち、強調するべき強調輪郭線を抽出する第3ステップと、
前記第3ステップで抽出した前記強調輪郭線を太線化する第4ステップと、
前記第2ステップ又は前記第4ステップで得られた画像を複数の正方形の子領域に区分し、区分した各子領域の頂点座標に乱数演算を施すことで、各頂点位置をずらして各子領域を変形させ、該子領域の変形に対応させるように前記輪郭線を歪ませる第5ステップと、
を有することを特徴とする手書き調画像出力プログラム。A handwritten image output program for converting and outputting an original image drawn in mechanical style into an image drawn in handwritten style,
A first step of extracting a contour line and a corner of the contour line in the original image;
A second step of projecting the contour line from the corner extracted in the first step;
A third step of extracting an emphasized outline to be emphasized among the outlines;
A fourth step of thickening the emphasized contour line extracted in the third step;
The image obtained in the second step or the fourth step is divided into a plurality of square child regions, and each child region is shifted by performing a random number operation on the vertex coordinates of each divided child region. And deforming the contour line so as to correspond to the deformation of the child region,
A handwritten tone image output program characterized by comprising:
前記原画像における色と該原画像の背景色とを混合する第6ステップと、
前記請求項1又は2で得られた画像と前記第6ステップで得られた画像とを合成する第7ステップと、
を有することを特徴とする手書き調画像出力プログラム。A handwritten image output program for converting and outputting an original image drawn in mechanical style into an image drawn in handwritten style,
A sixth step of mixing the color in the original image and the background color of the original image;
A seventh step of synthesizing the image obtained in claim 1 or 2 and the image obtained in the sixth step;
A handwritten tone image output program characterized by comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001035086A JP3673478B2 (en) | 2001-02-13 | 2001-02-13 | Handwritten image output program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001035086A JP3673478B2 (en) | 2001-02-13 | 2001-02-13 | Handwritten image output program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002236920A JP2002236920A (en) | 2002-08-23 |
| JP3673478B2 true JP3673478B2 (en) | 2005-07-20 |
Family
ID=18898583
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001035086A Expired - Fee Related JP3673478B2 (en) | 2001-02-13 | 2001-02-13 | Handwritten image output program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3673478B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008242533A (en) * | 2007-03-24 | 2008-10-09 | Univ Of Fukui | Coloring drawing creation apparatus and method, and program thereof |
| KR101207084B1 (en) * | 2011-02-08 | 2012-12-04 | 포항공과대학교 산학협력단 | Method of processing image and apparatus for the same |
| JP2013257844A (en) * | 2012-06-14 | 2013-12-26 | Casio Comput Co Ltd | Image conversion device, and image conversion method and program |
-
2001
- 2001-02-13 JP JP2001035086A patent/JP3673478B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2002236920A (en) | 2002-08-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0950988B1 (en) | Three-Dimensional image generating apparatus | |
| JPH06507743A (en) | Image synthesis and processing | |
| US11288499B2 (en) | Interactive method for generating strokes with Chinese ink painting style and device thereof | |
| JPH04507314A (en) | Image digital signal conversion device and method | |
| JP2003256865A (en) | Method and program for generating 2D image of cartoon expression from 3D object data | |
| US7327364B2 (en) | Method and apparatus for rendering three-dimensional images of objects with hand-drawn appearance in real time | |
| KR102573822B1 (en) | Method for changing style and replaying of vector image | |
| CN103198498A (en) | Image processing apparatus for converting image in characteristic region of original image into image of brushstroke patterns | |
| Zhang et al. | " Confrontation or Acceptance": Understanding Novice Visual Artists' Perception towards AI-assisted Art Creation | |
| JP3673478B2 (en) | Handwritten image output program | |
| Carrington et al. | Like this, but better”: Supporting novices’ design and fabrication of 3D models using existing objects | |
| Elkheshen | Pixel art as a visual stimulus in graphic arts | |
| Leong | AI-generated artwork as a modern interpretation of historical paintings | |
| Von Gagern et al. | Hyperbolization of Euclidean ornaments | |
| JP6644966B2 (en) | Three-dimensional model creation device and three-dimensional model creation method | |
| WO2002056253A1 (en) | Method for representing color paper mosaic using computer | |
| JPH0296880A (en) | Image processing method | |
| JP2862080B1 (en) | Image processing apparatus and image processing method | |
| CN101615240B (en) | Decoding method of two-dimensional dot code | |
| JP2006127410A (en) | Floor plan image processing method | |
| JP4143613B2 (en) | Drawing method and drawing apparatus | |
| JP2008158936A (en) | Three-dimensional scan data correction system, method, and program | |
| JP4875030B2 (en) | Two-dimensional barcode decoding method | |
| JP5494733B2 (en) | Image forming method, image forming apparatus, and image forming processing program | |
| JP2002245480A (en) | Method and apparatus for creating three-dimensional data, three-dimensional shape control file, three-dimensional shape projection file, or line drawing relief pattern, and recording medium storing three-dimensional data, three-dimensional shape control file, three-dimensional shape projection file, or line drawing relief pattern creation program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20040706 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20040707 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040806 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041005 |
|
| 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: 20050415 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050422 |
|
| 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: 20080428 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090428 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090428 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100428 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100428 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110428 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120428 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130428 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140428 Year of fee payment: 9 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |