Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4097101B2 - Raster image processor - Google Patents
[go: Go Back, main page]

JP4097101B2 - Raster image processor - Google Patents

Raster image processor Download PDF

Info

Publication number
JP4097101B2
JP4097101B2 JP22023798A JP22023798A JP4097101B2 JP 4097101 B2 JP4097101 B2 JP 4097101B2 JP 22023798 A JP22023798 A JP 22023798A JP 22023798 A JP22023798 A JP 22023798A JP 4097101 B2 JP4097101 B2 JP 4097101B2
Authority
JP
Japan
Prior art keywords
hairline
raster
data
hairline pattern
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP22023798A
Other languages
Japanese (ja)
Other versions
JP2000057358A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP22023798A priority Critical patent/JP4097101B2/en
Publication of JP2000057358A publication Critical patent/JP2000057358A/en
Application granted granted Critical
Publication of JP4097101B2 publication Critical patent/JP4097101B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Paper (AREA)
  • Image Generation (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、木目柄等の絵柄を有する化粧シートに対して「照り」と呼ばれる光沢模様を表現するためにエンボス加工を施すための、2値のビットマップ形式のヘアラインパターンの作成を行うラスタイメージプロセッサに関する。
【0002】
【従来の技術及び発明が解決しようとする課題】
壁紙や床材等の建材の表面装飾や、家具の表面装飾のために用いる化粧シートにおいては、照りと称される光沢模様を表現するために、多数のヘアラインパターンを直接化粧シートにエンボス加工したり、あるいは透明なシートにヘアラインパターンをエンボス加工してエンボスシートを作成し、そのエンボスシートを木目柄等の模様を印刷した化粧シートに貼り付けて積層構造とすることが広く行われている。
【0003】
このようなヘアラインパターンを作成する方法は種々知られており、本出願人も種々提案してきたところであるが、ヘアラインパターンを描画するためのデータ形式として、一つ一つのヘアラインパターンを描画するためのデータが、スプライン曲線を形成するための複数の制御点の座標値列からなるベクタ形式で与えられることがある。
【0004】
ヘアラインパターンのデータが上述したようなベクタ形式で与えられた場合、一つ一つのヘアラインパターンは、それぞれのヘアラインパターンに与えられた制御点の座標値列に基づいて形成されるスプライン曲線で描画されることになる。例えば、いま、ある一つのヘアラインパターンを描画するためのデータが、5個の制御点からなり、それらの制御点の座標値が、(x1,y1),(x2,y2),(x3,y3),(x4,y4),(x5,y5)であるとすると、これらの制御点の座標値に基づいて、図7に示すようにスプライン曲線を描画するのである。なお、図7において、P1 ,P2 ,P3 ,P4 ,P5 は与えられた5個の制御点を示し、それらの座標値は、それぞれ、(x1,y1),(x2,y2),(x3,y3),(x4,y4),(x5,y5)であり、Mはこれらの5個の制御点に基づいて描画されたスプライン曲線を示す。
【0005】
ところで、ヘアラインパターンには、ある線幅が必要である。そこで、上述したように、与えられた制御点の座標値列に基づいてスプライン曲線を描画するに際しては所望の線幅を設定し、図8に示すように、制御点の座標値に基づいて描画したスプライン曲線に所望の線幅を付けることになる。なお、図8に示すヘアラインパターンは、図7に示すスプライン曲線Mに設定された線幅を付けた場合を示している。
【0006】
しかし、図8に示すように、ヘアラインパターンの線幅を一定にすると、このようなヘアラインパターンでエンボス版を作成し、そのエンボス版で化粧シート等にエンボス加工を施した場合、図8において矢印で示すヘアラインパターンの両端部において鋭い反射が生じてしまうという問題があることが確認されており、エンボス製品としては望ましくないものとなる。
【0007】
更に、2次元のビットマップ形式の2値のヘアラインパターンを作成するについては、そのヘアラインパターンを描画するために膨大なメモリ容量が必要であり、そのメモリ容量の制約のために広大な2次元領域にヘアラインパターンを描画することができないという問題もあった。
【0008】
即ち、エンボス版を作成するためのヘアラインパターンとしては、1m×1m程度のサイズのものが要求されることは珍しいことではなく、しかも解像度としては1mm当たり100画素程度は要求される。そして、そのような2次元領域に、数十万本〜百万本程度のヘアラインパターンを描画することが要求されるのである。
【0009】
従って、ヘアラインパターンの描画は、上述したような条件を満足する、膨大なメモリ容量を有する特別に用意された装置でしか行うことができないものであった。
【0010】
そこで、本発明は、ベクタ形式で与えられたヘアラインデータからヘアラインパターンを描画するに際して、ヘアラインパターンの両端部で鋭い反射が生じないようにすることを目的とする。
また、本発明は、少ないメモリ容量であっても、所望のサイズのヘアラインパターンを描画することができるようにすることを目的とする。
【0011】
【課題を解決するための手段】
上記の目的を達成するために、請求項1記載のラスタイメージプロセッサは、所定の曲線を描くための制御点の座標値列からなるベクタ形式で与えられたヘアラインデータに基づいて2値のビットマップ形式のヘアラインパターンを描画するラスタイメージプロセッサにおいて、出力画像を領域分割する領域分割装置と、ヘアラインデータに基づいて2値のビットマップ形式のヘアラインパターンを描画するラスタ描画装置とを少なくとも備え、領域分割装置は、予め設定された出力画像サイズとラスタ描画装置で使用するメモリサイズとを比較して、ラスタ描画装置が各分割領域の範囲内においてヘアラインパターンを設定された解像度で2値のビットマップ形式で描画できるサイズに出力画像を領域分割し、ラスタ描画装置は、領域分割装置で分割された領域毎に、ヘアラインデータで与えられる制御点の座標値列に基づいて2値のビットマップ形式のヘアラインパターンを描画することを特徴とする。
【0012】
請求項2記載のラスタイメージプロセッサは、請求項1記載のラスタイメージプロセッサにおいて、ラスタ描画装置は、2値のビットマップ形式のヘアラインパターンを描画するに際して、ヘアラインパターンに対して、予め与えられた関数に基づいて線幅を付すことを特徴とする。
【0013】
【発明の実施の形態】
以下、図面を参照しつつ実施の形態について説明する。
図1は本発明に係るラスタイメージプロセッサの一実施形態を示す図であり、図中、1はパラメータ入力装置、2はヘアラインデータ入力装置、3はバウンディングボックス演算装置、4は領域分割装置、5はラスタ描画装置、6は画像出力装置を示す。
【0014】
パラメータ入力装置1は所定のパラメータを入力するものである。ここでは、パラメータとしては、出力画像サイズ、解像度、ヘアラインの線幅を定めるための情報を入力するものとする。ここで、ヘアラインの線幅を定めるための情報としては種々の形態が考えられるが、ここでは、正規化されたy方向の位置q(0 ≦q≦1 )に対して線幅を定める関数H(q)を入力するものとする。その例を図2(a)に示す。図2(a)に示す関数H(q)は二次曲線の一部であるが、任意の関数を入力することが可能であることは当然である。そして、q= 0、及びq= 1では線幅は 0になされている。即ち、H(0)=H(1)= 0である。なぜなら、H(0)≠ 0、及びH(1)≠ 0とすると、上述したようにヘアラインパターンの両端部において鋭い反射が生じてしまうからである。なお、線幅の単位は画素数で与えればよい。
【0015】
このような線幅を定める関数H(q)を用いてヘアラインパターンに線幅を付ける処理は次のように行う。いま、線幅を付ける処理を行う対象となっているヘアラインパターンが図2(b)のMi で示すようであるとすると、図2に示すように、このヘアラインパターンMi のy方向の位置と関数H(q)の位置とを一対一に対応させる。そして、このヘアラインMi のpで示す位置が関数H(q)のqで示す位置に対応しており、この位置での関数値がH(q)であるとすると、例えば、当該ヘアラインパターンのpの位置の両側に当該関数値H(q)ずつ線幅を付けるようにするのである。これによって、各ヘアラインパターンの各位置に対して線幅を付すことができ、両端部では線幅が小さく、中央部分程線幅が広くなるヘアラインパターンを描画することができる。
【0016】
ヘアラインデータ入力装置2は、上述したベクタ形式のヘアラインのデータを入力する装置である。このヘアラインデータは、適宜な記憶媒体に記憶されていることを可とする。なお、一つ一つのヘアラインのデータには通し番号が付されている。
【0017】
バウンディングボックス演算装置3は、各ヘアラインのデータに対してバウンディングボックスを求める装置である。バウンディングボックスは、各ヘアラインについて、制御点の座標値列に基づいてスプライン曲線を描画したとき、そのスプライン曲線のx方向の最大値と最小値、及びy方向の最小値と最大値を演算することによって求める。即ち、スプライン曲線の外接矩形を求めるのである。例えば、いま、あるヘアラインが5個の制御点からなり、それらの制御点の座標値に基づいてスプライン曲線を描画したとき図3のSで示すようであったとすると、バウンディングボックス演算装置3は、図のBBで示すような外接矩形を求め、そのx方向の最大値と最小値、及びy方向の最小値と最大値を求めるのである。ただし、x方向については生成されるヘアラインの線幅を考慮し、関数H(q)の最大値をバウンディングボックスの最大値に加算し、バウンディングボックスの最小値から減算するものとする。
【0018】
領域分割装置4は、パラメータ入力装置1で入力された出力画像サイズと、ラスタ描画装置5で使用するメモリ容量とに応じて、出力画像の領域を適宜分割するものである。分割する方向は、図4(a)に示すようにy方向に分割してもよく、図4(b)に示すようにx方向に分割することもでき、図4(c)に示すようにx方向及びy方向に分割することもできる。なお、図4(a)に示すようにy方向に分割する場合にはバウンディングボックス演算装置3では、制御点の座標値列に基づいて描画したスプライン曲線のx方向の最小値と最大値を求める必要はなく、y方向の最小値と最大値とを求めればよい。また、図4(b)に示すようにx方向に分割する場合にはバウンディングボックス演算装置3では、制御点の座標値列に基づいて描画したスプライン曲線のy方向の最小値と最大値を求める必要はなく、x方向の最小値と最大値とを求めればよい。しかし、図4(c)に示すように分割した場合には、バウンディングボックス演算装置3では、制御点の座標値列に基づいて描画したスプライン曲線のx方向の最小値と最大値、及びy方向の最小値と最大値を求める必要がある。
【0019】
ラスタ描画装置5は、領域分割装置4で分割された領域毎に、ヘアラインデータで与えられる制御点の座標値列に基づいてスプライン曲線を描画し、更にそのスプライン曲線に、パラメータ入力装置1で入力された線幅を定める関数H(q)に基づいて線幅を付して、2値のビットマップ形式のヘアラインパターンを描画する装置である。
【0020】
画像出力装置6は、ラスタ描画装置5で描画された2値のビットマップ形式のヘアラインパターンを、分割領域毎に出力して合成するものであり、フィルム出力機、あるいはプリンタ等で構成される。
【0021】
次に、動作及び処理について、図5を参照して説明する。図5は全体の処理の流れを示すフローチャートである。
【0022】
最初に、パラメータ入力装置1により、出力画像サイズ、解像度、ヘアラインの線幅を定めるための関数を入力する(ステップS1)。これらのパラメータが入力されると、パラメータ入力装置1は、出力画像サイズについては領域分割装置4に渡し、解像度及びヘアラインの線幅を定める関数についてはラスタ描画装置5に渡す。
【0023】
領域分割装置4は出力画像サイズを受け取ると、その出力画像サイズ、及びラスタ描画装置5で使用するメモリサイズを比較して、出力画像サイズを分割する。この分割された一つ一つの領域のサイズは、ラスタ描画装置5が、それぞれの分割領域の範囲内において、ヘアラインパターンを、入力された解像度で2値のビットマップ形式で描画できるサイズとなされることは当然である。なお、ここでは図4(a)に示すようにy方向に分割されたとする。
【0024】
領域分割装置4は、出力画像サイズを分割すると、分割した領域数、各分割領域の座標値等の分割領域に関する情報をラスタ描画装置5に渡す。そして、ラスタ描画装置5は当該情報を取り込む(ステップS2)。
【0025】
次に、ヘアラインデータ入力装置2からヘアラインデータを取り込む(ステップS3)。例えば、ヘアラインデータが光磁気ディスク等の記憶媒体に記憶されている場合には、当該ヘアラインデータが記憶されている記憶媒体をセットして読み込めばよい。ここではヘアラインの総数はnであるとする。
【0026】
ヘアラインデータが入力されると、バウンディングボックス演算装置3は、各ヘアラインのデータについてバウンディングボックスを演算する。このバウンディングボックスの演算は上述した通りであるが、この場合には、領域分割はy方向になされているので、上述したように、バウンディングボックス演算装置3は、各ヘアラインのデータの制御点の座標値列に基づいて描画したスプライン曲線のy方向の最小値と最大値、即ち、各ヘアラインのデータの両端の制御点の座標値を求めればよい。
【0027】
そして、バウンディングボックス演算装置3は、各ヘアラインのデータに基づいてバウンディングボックスを演算すると、その結果を各ヘアラインのデータに付加してラスタ描画装置5に渡す。そしてラスタ描画装置5はそれを取り込む(ステップS4)。
【0028】
ラスタ描画装置5は、領域分割装置4からの分割領域に関する情報、バウンディングボックス演算装置3からのバウンディングボックスのデータが付されたヘアラインデータ、及びパラメータ入力装置1からの解像度、ヘアラインの線幅を定めるための関数H(q)を受けると、それぞれの分割領域毎にステップS5〜S11の処理を実行する。
【0029】
まず、1番目の分割領域について、i=1 として(ステップS5)、1 番目のヘアラインのデータを読み込む(ステップS6)。そして、この1 番目のヘアラインのデータのバウンディングボックスを参照して、当該1 番目のヘアラインのバウンディングボックスが当該1番目の分割領域の範囲内にあるか否かを判断する(ステップS7)。このステップS7の判断処理においては、当該ヘアラインのデータのバウンディングボックスの一部でも当該分割領域の範囲内にあればYESと判断する。
【0030】
そして、ステップS7での判断がNOの場合には分岐し、i=i+1として(ステップS9)、ステップS6〜S9の処理をステップS10の判断処理でYESと判断されるまで繰り返す。
【0031】
ステップ17での判断がYESの場合には、当該ヘアラインのデータに基づいてビットマップに展開してヘアラインパターンを描画し(ステップS8)、次に、i=i+1として(ステップS9)、ステップS6〜S9の処理をステップS10の判断処理でYESと判断されるまで繰り返す。即ち、全てのヘアラインのデータについてステップS6〜S10が繰り返されるのである。
【0032】
このステップS8のヘアラインパターンの描画の処理は次のようである。
図6(a)に示すように、いま描画の対象となっているヘアラインのデータのバウンディングボックスBBが、現在ヘアラインパターンを描画しようとしている分割領域の範囲内に全て含まれている場合には、ラスタ描画装置5は、当該ヘアラインのデータの制御点の座標値に基づいてスプライン曲線を描画し、更に上述したように、そのスプライン曲線の各位置に対して、線幅を定める関数H(q)に基づいて線幅を付して、ヘアラインパターンを描画する。
【0033】
しかし、図6(b)に示すように、いま描画の対象となっているヘアラインのデータのバウンディングボックスBBが、現在ヘアラインパターンを描画しようとしている分割領域の範囲からはみ出す場合には、ラスタ描画装置5は、一旦当該ヘアラインのデータの制御点の座標値列に基づいてスプライン曲線を生成し、更にそのスプライン曲線に対して関数H(q)に基づいて線幅を付けてヘアラインパターンを仮想的に生成し、そのヘアラインパターンのうちの当該分割領域の範囲内にある部分のみを描画する。これによって図6(b)に示す場合には当該分割領域には図中イで示す部分のみが描画されるが、図中ロで示す残りの部分は次の分割領域において描画されることになる。以上のようにして、ラスタ描画装置5はヘアラインパターンを描画する。
【0034】
そして、全てのヘアラインのデータについてステップS6〜S10の処理が終了すると、ラスタ描画装置5は、当該分割領域について描画した2値のビットマップ形式のヘアラインパターン、及びこれらのヘアラインパターンを描画した分割領域の位置の情報を画像出力装置6に渡す。これにより画像出力装置6は、ラスタ描画装置5から渡された2値のビットマップ形式のヘアラインパターンを、ラスタ描画装置5から渡された分割領域の位置に対応する領域に描画する(ステップS11)。そして、当該分割領域のヘアラインパターンの描画が終了すると、画像出力装置6は、次の分割領域についてのヘアラインパターンがラスタ描画装置5から出力されるのを待機する。例えば、いま画像出力装置6が図4(a)のR1 で示す分割領域のヘアラインパターンを描画したとすると、その描画を終了した箇所で動作を一旦停止し、次にラスタ描画装置5から、図のR2 で示す分割領域のヘアラインパターンが出力されるのを待機するのである。そして、後にラスタ描画装置5から図4(a)のR2 で示す分割領域のヘアラインパターンが渡されると、画像出力装置6は、分割領域R1 に隙間なく続けて分割領域R2 のヘアラインパターンを出力する。以下、同様である。
【0035】
以上のステップS5〜S11の処理を全ての分割領域について実行する。これによって、画像出力装置6からはステップS1において入力された出力画像サイズに、n個のヘアラインパターンが描画された画像が出力されることになる。
【0036】
以上の説明では、領域分割装置4では図4(a)に示すようにy方向に分割するものとしたが、図4(b)に示すようにx方向に分割した場合、あるいは図4(c)に示すようにx方向及びy方向に分割した場合にも同様である。
【0037】
以上のように、このラスタイメージプロセッサによれば、ヘアラインパターンの両端部において、従来のように鋭い反射を生じることを防止することができるばかりでなく、出力画像サイズを分割してヘアラインパターンを描画するので、ラスタ描画装置5で使用できるメモリ容量が少ない場合であっても、広大な2次元領域にヘアラインパターンを描画することができ、建材印刷において有用である。
【0038】
以上、本発明の一実施形態について説明したが、本発明は上記実施形態に限定されるものではなく、種々の変形が可能である。例えば、図5に示すフローチャートでは、ヘアラインのデータを一つずつ読み込んで、その読み込んだヘアラインのデータが現在ヘアラインパターンを描画しようとしている分割領域に含まれるか否かを判断するようにしているが、図4(a)に示すようにy方向に領域分割を行う場合には、例えば、バウンディングボックスをy方向の最小値でソートしておけば、現在ヘアラインパターンを描画しようとしている分割領域に含まれるヘアラインのデータの抽出を容易に行うことができる。そして、この場合には、それら抽出されたヘアラインのデータのバウンディングボックスの最大値が当該分割領域内にあるものについてはヘアラインパターンを描画した後に削除し、バウンディングボックスの最大値が当該分割領域からはみ出すものについては、当該分割領域の範囲内の部分を描画して、次の分割領域での描画のために当該ヘアラインのデータを残しておけばよい。
【図面の簡単な説明】
【図1】 本発明に係るラスタイメージプロセッサの一実施形態を示す図である。
【図2】 ベクタ形式のヘアラインのデータに基づいて描画したスプライン曲線に線幅を付けるための手法を説明するための図である。
【図3】 バウンディングボックス演算装置3におけるバウンディングボックスを求める演算を説明するための図である。
【図4】 領域分割装置4での領域分割を説明するための図である。
【図5】 本発明に係るラスタイメージプロセッサにおける全体の処理の流れを示すフローチャートである。
【図6】 図5のステップS8のヘアラインパターンの描画の処理を説明するための図である。
【図7】 ベクタ形式で与えられたヘアラインデータからヘアラインパターンを作成する手法を説明するための図である。
【図8】 本発明が解決しようとする課題を説明するための図である。
【符号の説明】
1…パラメータ入力装置、2…ヘアラインデータ入力装置、3…バウンディングボックス演算装置、4…領域分割装置、5…ラスタ描画装置、6…画像出力装置。
[0001]
[Industrial application fields]
The present invention provides a raster image for creating a binary bitmap hairline pattern for embossing a decorative sheet having a pattern such as a wood grain pattern to express a glossy pattern called “shine”. Regarding the processor.
[0002]
[Prior art and problems to be solved by the invention]
For decorative sheets used for surface decoration of building materials such as wallpaper and flooring, and furniture surface decoration, a number of hairline patterns are embossed directly on the decorative sheet to express a glossy pattern called shine. Or, embossing a hairline pattern on a transparent sheet to create an embossed sheet, and attaching the embossed sheet to a decorative sheet on which a pattern such as a wood grain pattern is printed is widely used.
[0003]
Various methods for creating such a hairline pattern are known, and the applicant has also proposed various methods. However, as a data format for drawing a hairline pattern, a method for drawing each hairline pattern is described. Data may be given in the form of a vector consisting of a coordinate value sequence of a plurality of control points for forming a spline curve.
[0004]
When the hairline pattern data is given in the vector format as described above, each hairline pattern is drawn with a spline curve formed based on the coordinate value sequence of control points given to each hairline pattern. Will be. For example, now, data for drawing a certain hairline pattern consists of five control points, and the coordinate values of these control points are (x 1 , y 1 ), (x 2 , y 2 ), If (x 3 , y 3 ), (x 4 , y 4 ), (x 5 , y 5 ), a spline curve is drawn based on the coordinate values of these control points as shown in FIG. It is. In FIG. 7, P 1 , P 2 , P 3 , P 4 , and P 5 indicate five given control points, and their coordinate values are (x 1 , y 1 ), (x 2 , y 2 ), (x 3 , y 3 ), (x 4 , y 4 ), (x 5 , y 5 ), and M represents a spline curve drawn based on these five control points. Show.
[0005]
By the way, a certain line width is required for the hairline pattern. Therefore, as described above, when drawing a spline curve based on the coordinate value sequence of a given control point, a desired line width is set, and drawing is performed based on the coordinate value of the control point as shown in FIG. The desired line width is given to the spline curve. In addition, the hairline pattern shown in FIG. 8 has shown the case where the line | wire width set to the spline curve M shown in FIG. 7 is attached.
[0006]
However, as shown in FIG. 8, when the line width of the hairline pattern is constant, an embossed plate is created with such a hairline pattern, and a decorative sheet or the like is embossed with the embossed plate. It has been confirmed that there is a problem that sharp reflection occurs at both ends of the hairline pattern shown in FIG. 1, which is undesirable as an embossed product.
[0007]
Furthermore, in order to create a binary hairline pattern in a two-dimensional bitmap format, a huge memory capacity is required to draw the hairline pattern, and a vast two-dimensional area due to the limitation of the memory capacity. There is also a problem that the hairline pattern cannot be drawn.
[0008]
That is, it is not uncommon for a hairline pattern for producing an embossed plate to have a size of about 1 m × 1 m, and a resolution of about 100 pixels per mm is required. And it is required to draw several hundred thousand to one million hairline patterns in such a two-dimensional region.
[0009]
Therefore, the drawing of the hairline pattern can be performed only by a specially prepared apparatus having a huge memory capacity that satisfies the above-described conditions.
[0010]
Therefore, an object of the present invention is to prevent sharp reflection from occurring at both ends of a hairline pattern when drawing a hairline pattern from hairline data given in vector format.
It is another object of the present invention to draw a hairline pattern of a desired size even with a small memory capacity.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, a raster image processor according to claim 1 is a binary bitmap based on hairline data provided in a vector format comprising a coordinate value sequence of control points for drawing a predetermined curve. Raster image processor for drawing a hairline pattern in a format, comprising at least a region dividing device for dividing an output image into regions and a raster drawing device for drawing a binary bitmap hairline pattern based on hairline data The apparatus compares a preset output image size with a memory size used by the raster drawing apparatus, and the raster drawing apparatus uses a binary bitmap format at a resolution in which a hairline pattern is set within each divided region. The output image is divided into areas that can be drawn with Divided for each area by location, characterized by drawing a bitmap hairline pattern binary based on the coordinate value row of control points given by hairline data.
[0012]
The raster image processor according to claim 2 is the raster image processor according to claim 1, wherein when the raster drawing apparatus draws a binary bitmap hairline pattern, a function given in advance to the hairline pattern is provided. The line width is given based on the above.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments will be described with reference to the drawings.
FIG. 1 is a diagram showing an embodiment of a raster image processor according to the present invention. In the figure, 1 is a parameter input device, 2 is a hairline data input device, 3 is a bounding box arithmetic device, 4 is an area dividing device, 5 Indicates a raster drawing device, and 6 indicates an image output device.
[0014]
The parameter input device 1 inputs predetermined parameters. Here, as parameters, information for determining the output image size, resolution, and hairline line width is input. Here, various forms are conceivable as information for determining the line width of the hairline. Here, a function H for determining the line width with respect to the normalized position q (0 ≦ q ≦ 1) in the y direction. (Q) shall be input. An example is shown in FIG. The function H (q) shown in FIG. 2A is a part of a quadratic curve, but it is naturally possible to input an arbitrary function. When q = 0 and q = 1, the line width is 0. That is, H (0) = H (1) = 0. This is because when H (0) ≠ 0 and H (1) ≠ 0, sharp reflection occurs at both ends of the hairline pattern as described above. Note that the unit of the line width may be given by the number of pixels.
[0015]
The process of adding a line width to the hairline pattern using the function H (q) that determines the line width is performed as follows. Now, assuming that the hairline pattern to be subjected to the process of adding a line width is indicated by M i in FIG. 2B, the position in the y direction of this hairline pattern M i as shown in FIG. And the position of the function H (q) are made to correspond one-to-one. When the position indicated by p of the hairline M i is corresponds to the position indicated by the q function H (q), the function value at this position is assumed to be H (q), for example, of the hairline pattern A line width is added to each side of the position of p by the function value H (q). As a result, a line width can be given to each position of each hairline pattern, and a hairline pattern in which the line width is small at both ends and the line width is wider at the center portion can be drawn.
[0016]
The hairline data input device 2 is a device for inputting the vector-style hairline data described above. This hairline data can be stored in an appropriate storage medium. A serial number is assigned to each hairline data.
[0017]
The bounding box calculation device 3 is a device that obtains a bounding box for each hairline data. The bounding box calculates, for each hairline, the maximum and minimum values in the x direction and the minimum and maximum values in the y direction of the spline curve when a spline curve is drawn based on the coordinate value sequence of control points. Ask for. That is, the circumscribed rectangle of the spline curve is obtained. For example, if a hairline is composed of five control points and a spline curve is drawn based on the coordinate values of those control points as shown in S of FIG. The circumscribed rectangle as shown by BB in the figure is obtained, and the maximum value and minimum value in the x direction and the minimum value and maximum value in the y direction are obtained. However, the maximum value of the function H (q) is added to the maximum value of the bounding box and subtracted from the minimum value of the bounding box in consideration of the line width of the generated hairline in the x direction.
[0018]
The region dividing device 4 appropriately divides the region of the output image according to the output image size input by the parameter input device 1 and the memory capacity used by the raster drawing device 5. The dividing direction may be divided in the y direction as shown in FIG. 4 (a), or may be divided in the x direction as shown in FIG. 4 (b), as shown in FIG. 4 (c). It is also possible to divide in the x direction and the y direction. As shown in FIG. 4A, when dividing in the y direction, the bounding box calculation device 3 obtains the minimum value and the maximum value in the x direction of the spline curve drawn based on the coordinate value sequence of the control points. There is no need to obtain the minimum and maximum values in the y direction. 4B, when dividing in the x direction, the bounding box calculation device 3 obtains the minimum value and the maximum value in the y direction of the spline curve drawn based on the coordinate value sequence of the control points. There is no need to obtain the minimum value and the maximum value in the x direction. However, when divided as shown in FIG. 4C, the bounding box computing device 3 uses the minimum and maximum values in the x direction and the y direction of the spline curve drawn based on the coordinate value sequence of the control points. It is necessary to find the minimum and maximum values of.
[0019]
The raster drawing device 5 draws a spline curve for each region divided by the region dividing device 4 based on the coordinate value sequence of control points given by the hairline data, and further inputs the spline curve with the parameter input device 1. This is a device that draws a binary bitmap hairline pattern by assigning a line width based on the function H (q) that determines the line width.
[0020]
The image output device 6 outputs and synthesizes a binary bitmap hairline pattern drawn by the raster drawing device 5 for each divided region, and is composed of a film output device, a printer, or the like.
[0021]
Next, the operation and processing will be described with reference to FIG. FIG. 5 is a flowchart showing the overall processing flow.
[0022]
First, a function for determining the output image size, resolution, and hairline line width is input by the parameter input device 1 (step S1). When these parameters are input, the parameter input device 1 passes the output image size to the region dividing device 4 and passes the functions for determining the resolution and the line width of the hairline to the raster drawing device 5.
[0023]
Upon receiving the output image size, the area dividing device 4 compares the output image size with the memory size used by the raster drawing device 5 and divides the output image size. The size of each divided region is set to a size that allows the raster drawing device 5 to draw a hairline pattern in the binary bitmap format at the input resolution within the range of each divided region. It is natural. Here, it is assumed that the image is divided in the y direction as shown in FIG.
[0024]
When the output image size is divided, the area dividing device 4 passes information on the divided areas such as the number of divided areas and the coordinate values of each divided area to the raster drawing apparatus 5. Then, the raster drawing device 5 takes in the information (step S2).
[0025]
Next, hairline data is taken in from the hairline data input device 2 (step S3). For example, when hairline data is stored in a storage medium such as a magneto-optical disk, the storage medium storing the hairline data may be set and read. Here, the total number of hairlines is n.
[0026]
When the hairline data is input, the bounding box calculation device 3 calculates the bounding box for each hairline data. The calculation of the bounding box is as described above. In this case, since the area division is performed in the y direction, the bounding box calculation device 3 uses the coordinates of the control points of the data of each hairline as described above. What is necessary is just to obtain | require the minimum value and maximum value of the y direction of the spline curve drawn based on the value sequence, ie, the coordinate value of the control point of the both ends of each hairline data.
[0027]
When the bounding box calculation device 3 calculates the bounding box based on the data of each hairline, the result is added to the data of each hairline and passed to the raster drawing device 5. Then, the raster drawing device 5 takes it in (step S4).
[0028]
The raster drawing device 5 determines information on the divided regions from the region dividing device 4, the hairline data to which the bounding box data from the bounding box arithmetic device 3 is attached, the resolution from the parameter input device 1, and the line width of the hairline. When the function H (q) is received, the processes in steps S5 to S11 are executed for each divided region.
[0029]
First, for the first divided region, i = 1 is set (step S5), and the data of the first hairline is read (step S6). Then, with reference to the bounding box of the data of the first hairline, it is determined whether or not the bounding box of the first hairline is within the range of the first divided region (step S7). In the determination process in step S7, if any part of the bounding box of the data of the hairline is within the range of the divided area, it is determined YES.
[0030]
If NO in step S7, the process branches, i = i + 1 (step S9), and steps S6 to S9 are repeated until YES is determined in step S10.
[0031]
If the determination in step 17 is YES, the hairline pattern is drawn on the bitmap based on the data of the hairline (step S8), then i = i + 1 is set (step S9), and steps S6 to S6 are performed. The process of S9 is repeated until YES is determined in the determination process of step S10. That is, steps S6 to S10 are repeated for all hairline data.
[0032]
The drawing process of the hairline pattern in step S8 is as follows.
As shown in FIG. 6A, when the bounding box BB of the hairline data that is currently drawn is all included in the range of the divided region where the hairline pattern is currently drawn, The raster drawing device 5 draws a spline curve based on the coordinate value of the control point of the data of the hairline, and as described above, the function H (q) that determines the line width for each position of the spline curve. A hairline pattern is drawn by adding a line width based on.
[0033]
However, as shown in FIG. 6B, when the bounding box BB of the data of the hairline that is currently drawn is out of the range of the divided region where the hairline pattern is currently drawn, the raster drawing device 5 temporarily generates a spline curve based on the coordinate value sequence of the control points of the data of the hairline, and further assigns a line width to the spline curve based on the function H (q) to virtually generate the hairline pattern. Generate and draw only the portion of the hairline pattern that falls within the range of the divided area. Thus, in the case shown in FIG. 6B, only the part indicated by a in the figure is drawn in the divided area, but the remaining part indicated by b in the figure is drawn in the next divided area. . As described above, the raster drawing device 5 draws the hairline pattern.
[0034]
When the processing of steps S6 to S10 is completed for all the hairline data, the raster drawing device 5 displays the binary bitmap hairline pattern drawn for the divided area, and the divided areas where these hairline patterns are drawn. The position information is passed to the image output device 6. As a result, the image output device 6 draws the binary bitmap hairline pattern passed from the raster drawing device 5 in an area corresponding to the position of the divided region passed from the raster drawing device 5 (step S11). . Then, when the drawing of the hairline pattern in the divided region is completed, the image output device 6 waits for the hairline pattern for the next divided region to be output from the raster drawing device 5. For example, if the image output device 6 has drawn the hairline pattern of the divided area indicated by R 1 in FIG. 4A, the operation is temporarily stopped at the position where the drawing is finished, and then the raster drawing device 5 it is to wait for the hairline pattern divided regions shown in the diagram R 2 are output. Then, when the hairline pattern of the divided region indicated by R 2 in FIG. 4A is passed from the raster drawing device 5 later, the image output device 6 continues to the divided region R 1 without a gap and the hairline pattern of the divided region R 2 . Is output. The same applies hereinafter.
[0035]
The above steps S5 to S11 are executed for all the divided areas. As a result, the image output device 6 outputs an image in which n hairline patterns are drawn in the output image size input in step S1.
[0036]
In the above description, the area dividing device 4 is divided in the y direction as shown in FIG. 4A, but when divided in the x direction as shown in FIG. 4B, or FIG. The same applies to the case of division in the x direction and the y direction as shown in FIG.
[0037]
As described above, according to this raster image processor, it is possible not only to prevent sharp reflections at both ends of the hairline pattern as in the past, but also to draw the hairline pattern by dividing the output image size. Therefore, even when the memory capacity that can be used by the raster drawing device 5 is small, a hairline pattern can be drawn in a vast two-dimensional area, which is useful in building material printing.
[0038]
As mentioned above, although one Embodiment of this invention was described, this invention is not limited to the said embodiment, A various deformation | transformation is possible. For example, in the flowchart shown in FIG. 5, hairline data is read one by one, and it is determined whether or not the read hairline data is included in the divided region where the hairline pattern is currently drawn. When the region is divided in the y direction as shown in FIG. 4A, for example, if the bounding box is sorted by the minimum value in the y direction, the current hairline pattern is included in the divided region to be drawn. The hairline data can be easily extracted. In this case, the maximum value of the bounding box of the extracted hairline data in the divided area is deleted after the hairline pattern is drawn, and the maximum value of the bounding box protrudes from the divided area. For the object, a portion within the range of the divided area may be drawn, and the data of the hairline may be left for drawing in the next divided area.
[Brief description of the drawings]
FIG. 1 is a diagram showing an embodiment of a raster image processor according to the present invention.
FIG. 2 is a diagram for explaining a method for adding a line width to a spline curve drawn based on vector-style hairline data;
FIG. 3 is a diagram for explaining computation for obtaining a bounding box in the bounding box computation device 3;
FIG. 4 is a diagram for explaining region division in the region dividing device 4;
FIG. 5 is a flowchart showing an overall processing flow in the raster image processor according to the present invention.
6 is a diagram for explaining a hairline pattern drawing process in step S8 of FIG. 5; FIG.
FIG. 7 is a diagram for explaining a method of creating a hairline pattern from hairline data given in a vector format.
FIG. 8 is a diagram for explaining a problem to be solved by the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Parameter input device, 2 ... Hairline data input device, 3 ... Bounding box arithmetic device, 4 ... Area dividing device, 5 ... Raster drawing device, 6 ... Image output device

Claims (2)

所定の曲線を描くための制御点の座標値列からなるベクタ形式で与えられたヘアラインデータに基づいて2値のビットマップ形式のヘアラインパターンを描画するラスタイメージプロセッサにおいて、
出力画像を領域分割する領域分割装置と、
ヘアラインデータに基づいて2値のビットマップ形式のヘアラインパターンを描画するラスタ描画装置と
を少なくとも備え、
領域分割装置は、予め設定された出力画像サイズとラスタ描画装置で使用するメモリサイズとを比較して、ラスタ描画装置が各分割領域の範囲内においてヘアラインパターンを設定された解像度で2値のビットマップ形式で描画できるサイズに出力画像を領域分割し、
ラスタ描画装置は、領域分割装置で分割された領域毎に、ヘアラインデータで与えられる制御点の座標値列に基づいて2値のビットマップ形式のヘアラインパターンを描画することを特徴とするラスタイメージプロセッサ。
In a raster image processor that draws a binary bitmap hairline pattern based on hairline data given in vector format consisting of a coordinate value sequence of control points for drawing a predetermined curve,
An area segmentation device for segmenting an output image;
A raster rendering device for rendering a binary bitmap hairline pattern based on hairline data;
Comprising at least
The area dividing device compares the preset output image size with the memory size used by the raster drawing device, and the raster drawing device uses binary bits at a resolution at which the hairline pattern is set within the range of each divided region. Divide the output image into areas that can be drawn in map format,
A raster image processor is characterized in that, for each region divided by the region dividing device, a binary bitmap hairline pattern is drawn based on a coordinate value sequence of control points given by hairline data. .
ラスタ描画装置は、2値のビットマップ形式のヘアラインパターンを描画するに際して、ヘアラインパターンに対して、予め与えられた関数に基づいて線幅を付すことを特徴とする請求項1記載のラスタイメージプロセッサ。 2. The raster image processor according to claim 1 , wherein when the raster drawing apparatus draws a binary bitmap hairline pattern, a line width is attached to the hairline pattern based on a predetermined function. .
JP22023798A 1998-08-04 1998-08-04 Raster image processor Expired - Fee Related JP4097101B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22023798A JP4097101B2 (en) 1998-08-04 1998-08-04 Raster image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22023798A JP4097101B2 (en) 1998-08-04 1998-08-04 Raster image processor

Publications (2)

Publication Number Publication Date
JP2000057358A JP2000057358A (en) 2000-02-25
JP4097101B2 true JP4097101B2 (en) 2008-06-11

Family

ID=16748049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22023798A Expired - Fee Related JP4097101B2 (en) 1998-08-04 1998-08-04 Raster image processor

Country Status (1)

Country Link
JP (1) JP4097101B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4656476B2 (en) * 2001-07-17 2011-03-23 大日本印刷株式会社 Method and apparatus for creating hairline pattern
JP4899771B2 (en) * 2006-10-12 2012-03-21 凸版印刷株式会社 Printed matter

Also Published As

Publication number Publication date
JP2000057358A (en) 2000-02-25

Similar Documents

Publication Publication Date Title
JP3049672B2 (en) Image processing method and apparatus
US7412360B2 (en) Method and apparatus for shape deformation and placement
CN102156688A (en) Character transforming effect processing method and device
US6522328B1 (en) Application of a graphical pattern to a path
JP4097101B2 (en) Raster image processor
US5454070A (en) Pixel to spline based region conversion method
JP4249340B2 (en) Data three-dimensional device and emboss shape simulation device
JP4688121B2 (en) Method and apparatus for creating hairline pattern
EP0454125B1 (en) Method of producing characters and figures using computer
CN104820963B (en) The digital simulation synthetic method of Yunnan alignment out of print based on indentation
Hiraoka et al. Generation of oil-film-like images by bilateral infra-envelope filter
JPH0285978A (en) Three-dimensional hidden surface processing method
JPH1125281A (en) Texture mapping method
JP4656476B2 (en) Method and apparatus for creating hairline pattern
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
JP4079229B2 (en) Conduit image processing method and apparatus
JP4230051B2 (en) Image generation method
JP2857260B2 (en) Judgment method of rectangular area
JP2666552B2 (en) Line width control method for outline characters
JPH02148273A (en) 2D representation method for 3D objects
JPH0752466B2 (en) Raster operation device and method
JP3889118B2 (en) Endless image reduction method and reduction apparatus
JP4052401B2 (en) Image processing method and apparatus
KANBARA et al. Interactive Rendering System for Line Drawings by Dot and Line Shading
JPS636874B2 (en)

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050729

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071226

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080212

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080306

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110321

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120321

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130321

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130321

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140321

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees