JP2021114083A - Image generation device and image generation method - Google Patents
Image generation device and image generation method Download PDFInfo
- Publication number
- JP2021114083A JP2021114083A JP2020005948A JP2020005948A JP2021114083A JP 2021114083 A JP2021114083 A JP 2021114083A JP 2020005948 A JP2020005948 A JP 2020005948A JP 2020005948 A JP2020005948 A JP 2020005948A JP 2021114083 A JP2021114083 A JP 2021114083A
- Authority
- JP
- Japan
- Prior art keywords
- image
- adjustment
- contour line
- unit
- adjustment method
- 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.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
本発明は、画像生成装置および画像生成方法に関する。 The present invention relates to an image generator and an image generation method.
プリンタ等の印刷装置において、画像データからぬり絵画像を作成し、印刷する技術が考えられており、このような技術は特許文献1に記載されている。
In a printing device such as a printer, a technique of creating a colored picture image from image data and printing the image is considered, and such a technique is described in
特許文献1に記載された技術においては、線の濃さ等の調整をその画像一律に行う。そのため、部分に応じて線の濃淡を表現するというぬり絵画像特有の調整を行うことができず、ぬり絵画像に対して最適な調整を行うことができないおそれがある。
In the technique described in
本発明の目的は、ぬり絵画像に対して最適な調整を容易に行うことができる画像生成装置および画像生成方法を提供することである。 An object of the present invention is to provide an image generation device and an image generation method capable of easily performing optimum adjustment for a coloring image.
本発明の画像生成装置は、
画像データを取得する画像データ取得部と、
前記画像データ取得部が取得した画像データの輪郭線を抽出した輪郭線画像を作成する輪郭線作成部と、
前記輪郭線作成部が作成した輪郭線画像を所定の分割領域に分割し、前記分割領域ごとの線密度を算出する線密度算出部と、
前記線密度算出部が算出した前記分割領域ごとの線密度に基づいて、前記輪郭線画像に対する調整方法を決定する調整法決定部と、
前記調整法決定部が決定した調整方法を用いて前記輪郭線画像を調整する調整実行部とを有する。
The image generator of the present invention
The image data acquisition unit that acquires image data and
A contour line creation unit that creates a contour line image by extracting the contour lines of the image data acquired by the image data acquisition unit, and a contour line creation unit.
A line density calculation unit that divides the contour line image created by the contour line creation unit into predetermined division regions and calculates the linear density for each division region.
An adjustment method determination unit that determines an adjustment method for the contour line image based on the linear density for each divided region calculated by the linear density calculation unit.
It has an adjustment execution unit that adjusts the contour line image by using the adjustment method determined by the adjustment method determination unit.
本発明によれば、ぬり絵画像に対して最適な調整を容易に行うことができる。 According to the present invention, optimum adjustment can be easily performed on a coloring image.
以下、本発明の実施の形態について図面を用いて詳細に説明する。なお、この実施の形態に記載されている構成要素は、本発明を構成する要素の例として挙げるものであり、この発明の範囲をそれらのみに限定するものではない。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The components described in this embodiment are given as examples of the components constituting the present invention, and the scope of the present invention is not limited to them.
(実施例1)
図1は、本発明の画像生成装置の実施例1における構成図である。図1に示す画像生成装置100は、画像データ取得部101と、表示部102と、画像制御部103と、画像印刷部104と、MPU105と、ROM106と、RAM107とを有する。また、これらの構成要素が内部バス108を介して接続されている。
画像データ取得部101は、ぬり絵画像の元となる画像データを外部の装置から取得する外部インタフェイス(I/F)部である。例えば、画像データ取得部101は、メモリカードやスキャナから画像データを取得する。
表示部102は、調整するぬり絵画像のプレビュー画面を表示するディスプレイである。また、表示部102は、ぬり絵画像をユーザ調整するための操作画面である操作インタフェイスを表示する。なお、ぬり絵画像とは、元の画像データに含まれる対象物の輪郭等を抽出して表現した、ぬり絵(色入れ)を行うためのモノクロの画像である。元の画像データからぬり絵画像を作成する具体的な方法については後述する。
画像制御部103は、ぬり絵画像を作成する際に実行される。画像制御部103では、ぬり絵画像の元の画像を画像データ取得部101から取得し、取得した画像の分割領域毎の線密度を算出し、取得した画像に応じたユーザ調整を行うための操作インタフェイスを設定しユーザ調整を行う。画像制御部103は図1に示すように、線密度算出部1031と、輪郭線画像作成部1032と、調整方法決定部1033と、調整実行部1034とを有する。これらの構成要素の動作の詳細は後述する。
画像印刷部104は、画像制御部103がユーザ調整を行い作成したぬり絵画像を印刷する。画像印刷部104は、画像生成装置100が外部からユーザが印刷指示を行うための所定の操作を受け付けた場合、画像制御部103が作成したぬり絵画像の印刷を実行する。
MPU105は、プログラムを用いて画像生成装置100の制御を行うプロセッサである。
ROM106は、MPU105で動作するプログラムや恒久的データを保存するためのメモリである。
RAM107は、電源をオフした場合に揮発してしまうようなデータを保持する書き換え可能な作業用メモリである。
(Example 1)
FIG. 1 is a configuration diagram of the image generator of the present invention according to the first embodiment. The
The image data acquisition unit 101 is an external interface (I / F) unit that acquires image data that is the source of a coloring image from an external device. For example, the image data acquisition unit 101 acquires image data from a memory card or a scanner.
The
The
The
The MPU 105 is a processor that controls the
The
The
以下に、図1に示した画像制御部103の処理の詳細を説明する。図2は、画像データ取得部101が取得した、ぬり絵画像の元となる画像データの例を示す図である。図2(a)は、単純な輪郭線のみで表されるイラスト画像の画像データの例を示す図である。図2(b)は、山や雲のような自然物や建物のような人工物を含み、輪郭線だけでなく山の葉の線や建物の細かなディテールを表す線を含む自然画の画像データの例を示す図である。なお、図2には着色が施されていないが、実際の画像データはカラー写真や絵画等であって、着色が施されているものである。なお、元となる画像データには、着色が施されていないモノクロの画像データも含まれる。
画像データが図2(a)に示すようなイラスト画像である場合、単純な輪郭線でのみ構成されることが多い。そのため、ぬり絵画像の線の濃淡等をユーザ調整する際は画像データ一律(以下、画面一律と称する)で実施する。一方、画像データが図2(b)に示すような自然画である場合、単純な輪郭線だけでなく、自然物や人工物のディテールを表す細かな線が多く存在するが、このような細かな線はぬり絵画像には不要な線である。そのため、図2(b)に示すような自然画に対して、図2(a)に示すようなイラスト画像と同様にユーザ調整を画面一律で実施した場合、輪郭線を濃くすると不要な線も濃くなる。また、不要な線を薄くすると輪郭線も薄くなる。そのため、ぬり絵画像に対してユーザ調整する際にトレードオフが生じる場合がある。
The details of the processing of the
When the image data is an illustration image as shown in FIG. 2A, it is often composed only of simple contour lines. Therefore, when the user adjusts the shading of the lines of the coloring image, the image data is uniformly (hereinafter referred to as the screen uniform). On the other hand, when the image data is a natural image as shown in FIG. 2B, there are many fine lines representing the details of natural objects and artificial objects in addition to simple contour lines. Lines are unnecessary lines for coloring images. Therefore, when the user adjustment is performed uniformly on the screen as in the illustration image shown in FIG. 2 (a) for the natural image as shown in FIG. 2 (b), if the contour line is darkened, unnecessary lines may be generated. It gets darker. Moreover, when unnecessary lines are thinned, the contour lines are also thinned. Therefore, a trade-off may occur when the user adjusts the coloring image.
そこで、本実施例では、ぬり絵画像の元の画像が図2(b)に示すような輪郭線とぬり絵に不要な線とが混在する場合、画面一律で調整を行う操作インタフェイスと、ぬり絵に不要な線を個別に調整を行う操作インタフェイスとを設ける。その結果、ユーザ調整時のトレードオフを軽減する。 Therefore, in this embodiment, when the original image of the coloring image has contour lines as shown in FIG. 2B and lines unnecessary for the coloring image, an operation interface for uniformly adjusting the screen and an operation interface are used. An operation interface is provided to individually adjust unnecessary lines in the coloring book. As a result, the trade-off at the time of user adjustment is reduced.
図3は、図1に示した画像制御部103が行う処理の一例を説明するためのフローチャートである。まず、ステップS201にて、画像制御部103は、画像データ取得部101が取得した画像データを読み込む。この画像データは、作成するぬり絵画像の元となる画像を示すデータである。また、本実施例において、読み込む画像データはRGBデータとする。続いて、ステップS202にて、輪郭線作成部である輪郭線画像作成部1032が、ステップS201で読み込んだ画像データから輪郭線画像であるぬり絵画像を作成する。つまり、輪郭線画像作成部1032は、ステップS201で読み込んだ画像データの輪郭線を抽出した輪郭線画像を作成する。本実施例では、輪郭線画像作成部1032は、ステップS201で読み込んだ画像データにフィルタ処理を施して作成したエッジ画像をぬり絵画像とする。具体的には、輪郭線画像作成部1032は、読み込んだぬり絵画像の元となる画像データのRGBデータをYCbCrデータへ変換し、輝度値Yで色差成分0のモノクロ画像へ変換する。そして、輪郭線画像作成部1032は、変換後のモノクロ画像から画素毎の輝度値Yに対してフィルタ処理を行い、エッジ抽出した画像をぬり絵画像として作成する。この時のフィルタの種類としては、3×3ピクセルや5×5ピクセルのラプラシアンフィルタが用いられる。また、ぬり絵画像の作成方法は上記方法に限らず、注目画素近辺の画素との輝度値の差からエッジ抽出する等の方法でも良い。
すると、ステップS203にて、線密度算出部1031が、輪郭線画像作成部1032が作成したぬり絵画像を複数の領域に分割し、分割領域毎の線密度を算出する。本実施例では、線密度算出部1031は、ステップS202で輪郭線画像作成部1032が作成したぬり絵画像において画素値が大きな画素を画像中の線と判断する。そのため、ステップS203では、線密度算出部1031は、分割領域毎に所定の閾値以上の値である画素は線であると判定して領域毎に積算し、積算した値を分割領域の総画素数で除算した値を線密度として算出する。また、線密度の算出方法は、上述した方法に限らず、エッジ画像の平均値やエッジヒストグラムの画素数と重みをつけて積算して算出する方法等でも良い。
FIG. 3 is a flowchart for explaining an example of the processing performed by the
Then, in step S203, the linear
図4は、図1に示した線密度算出部1031が画像データを分割した分割領域の一例を示す図である。線密度算出部1031は、ステップS202で輪郭線画像作成部1032が作成したぬり絵画像を図4に示すように横10×縦10=100個の単位領域d[0][0]〜d[9][9]に分割する。そして、線密度算出部1031は、単位領域毎に線密度lRate[0][0]〜lRate[9][9]を算出する。線密度lRateは、0〜100の範囲の値であり、0の場合は線が存在しないことを表し、値が大きい(線密度が高い)ほど多くの線が存在することを表す。以下、分割されたそれぞれの単位領域を分割領域と称する。
FIG. 4 is a diagram showing an example of a division region in which the linear
図5は、図1に示した線密度算出部1031が図2に示した画像データを分割した分割領域の一例を示す図である。線密度算出部1031が、図2(a)に示すようなイラスト画像を分割領域に分割すると、図5(a)に示すようになる。図5(a)において、線が存在しない分割領域d[9][0]の線密度lRate[0][0]は、例えば0のように非常に低い値になる。また、オブジェクトの輪郭線が存在する分割領域d[1][3]の線密度lRate[1][3]は0よりも大きな値になる。線密度算出部1031が、図2(b)に示すような自然画を分割領域に分割すると、図5(b)に示すようになる。図5(b)において、山の葉のようなぬり絵に不要な線のみの分割領域d[1][9]の線密度lRate[1][9]は非常に高い値になる。また、山の輪郭線と葉の不要な線を含む分割領域d[0][5]の線密度lRate[0][5]や、建物の多くの輪郭線を含む分割領域d[5][8]の線密度lRate[5][8]は中程度の値になる。
FIG. 5 is a diagram showing an example of a divided region in which the linear
続いて、ステップS204にて、調整法決定部である調整方法決定部1033が、ステップS203で線密度算出部1031が算出した分割領域毎の線密度lRateに基づいて、ぬり絵画像のユーザ調整を実施する際の操作インタフェイスを設定する。ステップS204では、画像データが図2(a)に示すようなイラスト画像の場合、調整方法決定部1033は、画像データ(画面)一律で線の調整を行うための操作インタフェイスを表示部102に表示させる。画像データが図2(b)に示すような自然画の場合、調整方法決定部1033は、線が多い箇所を個別に調整するための操作インタフェイスも表示部102に表示させ、ぬり絵に不要な箇所に対して個別に調整できるようにする。
Subsequently, in step S204, the adjustment
具体的には、全ての分割領域dの線密度lRateが閾値th1以下の場合、線が多い箇所がないということなので、不要な線を含む箇所が存在しないと判定できる。そのため、調整方法決定部1033は、その画像データは図2(a)に示すようなイラスト画像であると判定し、画面一律で線の調整を行うための操作インタフェイスを設定する。
図6は、図1に示した調整方法決定部1033が設定する操作インタフェイスの表示の一例を示す図である。図6(a)は、画面一律の調整を行うための操作インタフェイスの一例を示す図である。図6(a)において、調整バー601を右方向へ移動させた場合、ぬり絵画像の線が濃くなり、左方向へ移動させた場合は、ぬり絵画像の線が薄くなる。調整方法決定部1033は、操作インタフェイスを表示部102に表示させる。このとき、表示部102がタッチパネル機能を具備していれば、ユーザの表示部102へのタッチ操作に基づいて、調整バー601が右方向または左方向へ移動する。また、例えば、マウスやキーボード等の他の入力手段が画像生成装置100に接続または具備されている場合、その入力手段がユーザから受け付けた入力に基づいて、調整バー601が右方向または左方向へ移動する。このような外部からの入力操作を受け付ける要素を入力部とする。
Specifically, when the linear density lRate of all the division regions d is the threshold value th1 or less, it can be determined that there are no locations containing unnecessary lines because there are no locations with many lines. Therefore, the adjustment
FIG. 6 is a diagram showing an example of a display of the operation interface set by the adjustment
一方、処理中のぬり絵画像中に、線密度lRateが閾値th1よりも高い分割領域dが存在する場合、不要な線を含む箇所が存在する画像と判定できる。そのため、調整方法決定部1033は、その画像データは図2(b)に示すような自然画である判定し、個別に線の調整を行うための操作インタフェイスを設定する。
図6(b)は、個別に線の調整を行うための操作インタフェイスの表示の一例を示す図である。図6(b)に示した調整バー602は、図6(a)に示した調整バー601と同様に画面一律でぬり絵画像の線の濃さを調整するためのものである。また、図6(b)に示した調整バー603を左右方向へ移動させることで、ぬり絵画像に不要な線の箇所に対して線の濃さを調整する。例えば、調整バー602を左右方向へ移動させて画面(画像データ)全体に対する一律の調整を行った後、個別の調整を実施するための調整バー603を左右方向へ移動させて、ぬり絵画像に不要な箇所に対する調整を行う。調整バー602,603の移動は、調整バー601の移動と同様の操作で行われる。
On the other hand, when the divided region d having a linear density lRate higher than the threshold value th1 exists in the coloring image being processed, it can be determined that the image includes a portion including an unnecessary line. Therefore, the adjustment
FIG. 6B is a diagram showing an example of a display of an operation interface for individually adjusting lines. The
また、本ステップにおいて、ぬり絵画像の元となる画像データが、図2(a)に示すようなイラスト画像であるか、図2(b)に示すような自然画であるかを判定する方法は、上述した線密度を用いた方法に限らない。例えば、ステップS202で輪郭線画像作成部1032が作成したぬり絵画像中の輪郭線が、直線や円のような単純な線が多い場合は、その画像データはイラスト画像であると判定する方法等であっても良い。
Further, in this step, a method of determining whether the image data that is the source of the coloring image is an illustration image as shown in FIG. 2A or a natural image as shown in FIG. 2B. Is not limited to the method using the linear density described above. For example, if the contour line in the coloring image created by the contour line
続いて、ステップS205にて、調整方法決定部1033および調整実行部1034は、ステップS204で調整方法決定部1033が設定した操作インタフェイスに基づいて、ステップS202で輪郭線画像作成部1032が作成したぬり絵画像の調整を実施する。本実施例では、ぬり絵画像の元となる画像データがイラスト画像である場合、画面一律で線の調整を行うため、調整方法決定部1033は操作インタフェイスを用いたユーザ調整をそのまま反映する。一方、ぬり絵画像の元となる画像データが自然画である場合は、線が多い箇所において個別に調整を行うため、調整方法決定部1033は操作インタフェイスを用いたユーザ調整を画素毎にどの程度反映するかを算出する必要がある。そのため、ステップS205では、調整方法決定部1033は、個別に線の調整を行う場合は画像データ中の各分割領域、画素毎にユーザ調整をどの程度反映するかを算出し、その結果に応じてユーザ調整した画像を作成する。具体的には、調整方法決定部1033は、線密度lRateに基づいて、分割領域d毎にユーザ調整を反映する度合いである領域調整反映度aRateを算出する。そして、調整方法決定部1033は、領域反映度である領域調整反映度aRateに基づいて、画素毎にユーザ調整を反映する度合いである画素調整反映度pRateを算出し、ぬり絵画像の画素毎にユーザ調整を反映した画像を作成する。
Subsequently, in step S205, the adjustment
図7は、図3に示したフローチャートを用いて説明したステップS205の処理の詳細を説明するためのフローチャートである。図7では、ステップS204で調整方法決定部1033が設定した操作インタフェイスが画面一律の調整を行う操作インタフェイスか、ぬり絵画像に不要な線を個別に調整を行う操作インタフェイスかに応じて、ぬり絵画像の作成の処理が異なる。図7において、ステップS204で調整方法決定部1033が画面一律の調整を行う操作インタフェイスを設定した場合、調整方法決定部1033は、操作インタフェイスを用いたユーザ調整をそのまま反映する。一方、ステップS204で調整方法決定部1033がぬり絵画像に不要な線を個別に調整を行う操作インタフェイスを設定した場合は、調整方法決定部1033は、ぬり絵画像の画素毎に画素反映度である画素調整反映度pRateを算出する。そして、調整方法決定部1033は、画素調整反映度pRateに応じてぬり絵画像の画素毎にユーザ調整を反映する。
詳細を説明する。まず、ステップS701で、調整方法決定部1033は、画面一律で線の調整を行う操作インタフェイスを設定したかどうかを判定する。調整方法決定部1033が画面一律で線の調整を行う操作インタフェイスを設定した場合、ステップS702にて、調整実行部1034は、画面一律で線の調整を行う操作インタフェイスを用いて、ぬり絵画像に対してユーザ調整を実施して、画像を作成する。この時、画像制御部103(例えば、調整実行部1034)は、プレビュー画面と操作インタフェイスとを表示部102に表示させる。
図8は、図1に示した調整実行部1034が表示部102に表示させたプレビュー画面の一例を示す図である。図8に示すように、表示部102は、ぬり絵画像に対してユーザ調整を実施したプレビュー画面と、図6(a)に示したような画面一律で線の調整を行うための操作インタフェイスとを表示する。また、表示部102は、ユーザ調整を実施したプレビュー画面と操作インタフェイスとを、例えば、一定周期等の所定のタイミングで切り替えて表示する。さらに、表示部102は、プレビュー画面と操作インタフェイスとの表示を切り替えるボタンを表示してボタンが選択(押下やタッチ等)される度に切り替えて表示したりしても良い。
FIG. 7 is a flowchart for explaining the details of the process of step S205 described with reference to the flowchart shown in FIG. In FIG. 7, depending on whether the operation interface set by the adjustment
The details will be described. First, in step S701, the adjustment
FIG. 8 is a diagram showing an example of a preview screen displayed on the
一方、調整方法決定部1033が画面一律で線の調整を行う操作インタフェイスを設定しなかった場合、ステップS703にて、調整方法決定部1033は、輪郭線毎に個別に調整を行うため、分割領域毎にユーザ調整を反映させる度合いを算出する。なお、このケースは、調整方法決定部1033が個別に輪郭線の調整を行う操作インタフェイスを設定した場合に相当する。調整方法決定部1033は、線密度算出部1031が算出した線密度lRate[0][0]〜[9][9]に基づいて、分割領域d[0][0]〜[9][9]に対してユーザの個別調整を反映する度合いである領域調整反映度aRate[0][0]〜[9][9]を算出する。本実施例では、ぬり絵画像に不要な線を個別にユーザ調整を行うため、ぬり絵画像に対して、画素毎にどの程度ユーザ調整を反映するかを算出する必要がある。そのため、本ステップで、調整方法決定部1033は、線密度lRateに基づいて、分割領域d毎にユーザ調整を反映する度合いを算出する。領域調整反映度aRateは、0〜100の範囲の値であり、値の大きさに応じて調整方法決定部1033はユーザの個別調整を反映する。例えば、領域調整反映度aRateが0である場合、調整方法決定部1033はユーザの個別調整を反映せず調整しても領域は反映しない。また、領域調整反映度aRateが100である場合、調整方法決定部1033はユーザの個別調整をそのまま反映する。また、領域調整反映度aRateが50である場合、調整方法決定部1033はユーザの個別調整を50%反映する設定方法を決定する。本実施例では、線密度lRateが高い場合、調整方法決定部1033は、ぬり絵画像に不要な線が多く含まれていると判定し、領域調整反映度aRateを高い値に設定し、個別の調整を反映する設定方法を決定する。そのため、領域調整反映度aRateが例えば100のような大きな値である場合、線の濃さが最も薄くなるようユーザ調整されると、調整実行部1034は、あらかじめ設定されている最も薄い濃さになるよう線を調整する。ここで、線の濃さを設定する数値として、小さな数値ほど濃さが薄く、大きな数値ほど濃さが濃いもので定義されている場合、最も薄い濃さは、最も小さな数値を設定することで実現でき、最も濃い濃さは、最も大きな値と設定することで実現できる。
On the other hand, when the adjustment
線密度lRateが低い場合、調整方法決定部1033は、ぬり絵画像に不要な線があまり含まれていないと判定し、個別の調整をあまり反映しない設定方法を決定する。そのため、領域調整反映度aRateは例えば0のような小さな値である場合、線の濃さが最も薄くなるようユーザ調整されても、調整方法決定部1033はユーザの調整を反映しない設定を決定する。線密度lRateの値が中程度である分割領域については、調整方法決定部1033は、周辺の(隣接する)分割領域の線密度lRateも用いて領域調整反映度aRateを算出する。線密度lRateの値が中程度である分割領域は、多くの輪郭線が含まれる場合と、輪郭線と不要な線とが混在する場合との2通りが考えられる。分割領域dに多くの輪郭線が含まれる場合、ぬり絵画像には必要な線であるため、調整方法決定部1033は、個別調整をしないよう領域調整反映度aRateには0のような小さな値を設定する。一方、分割領域dに輪郭線と不要な線とが混在する場合、必要な線と不要な線とが混在しているため、調整実行部1034が個別調整を行うと必要な線まで調整され、個別調整を行わないとぬり絵画像に不要な線が残ってしまう。そのため、本実施例では、調整実行部1034がユーザ調整を中程度反映することで、どちらの場合であっても不具合が生じないようにする。そのため、領域調整反映度aRateが50のような値となる場合、調整方法決定部1033がユーザ調整を50%反映する設定を決定するものであっても良い。この時、線の濃さが最も薄くなるようユーザ調整を行った場合は、調整実行部1034は、あらかじめ設定している最も薄くなる濃さに対して、50%の濃さになるよう線の濃さを調整する。
本ステップでは、判定対象の分割領域dの線密度lRateが中程度である場合、判定対象の分割領域dの周辺に線密度lRateが高い分割領域dが存在していると想定する。この場合、調整方法決定部1033は、判定対象の分割領域dに輪郭線と不要な線とが混在していると判定する。これは、ぬり絵画像に不要な線を含むオブジェクトは複数の分割領域dに渡って存在すると考えられ、判定対象の分割領域dの周辺に線密度lRateが高い分割領域dがあれば、不要な線を含むオブジェクトに属する分割領域dと判定できるためである。
When the linear density lRate is low, the adjustment
In this step, when the linear density lRate of the division region d to be determined is medium, it is assumed that a division region d having a high linear density lRate exists around the division region d to be determined. In this case, the adjustment
また、判定対象の分割領域dの線密度lRateが中程度で、判定対象の分割領域dの周辺に線密度lRateが高い分割領域dが存在していない場合、調整方法決定部1033は、判定対象の分割領域dに多くの輪郭線のみが含まれていると判定する。これは、判定対象の分割領域dの周辺には線密度lRateが高い分割領域dが存在していないため、判定対象の分割領域dにはぬり絵画像に不要な線を含むオブジェクトは含まれないと判定できるためである。領域調整反映度aRateを算出する本ステップの詳細は後述する。
Further, when the linear density lRate of the division region d of the determination target is medium and the division region d having a high linear density lRate does not exist around the division region d of the determination target, the adjustment
続いて、ステップS704にて、調整方法決定部1033は、分割領域毎の領域調整反映度aRate[0][0]〜[9][9]に基づいて、画素毎に反映する度合いである画素調整反映度pRateを算出する。領域調整反映度aRateは、単位領域d毎に算出された値である。そのため、互いに隣接する分割領域であっても領域調整反映度aRateの値に大きな差があると、分割領域の境界でユーザ調整を反映する度合いが急激に変化し、輝度段差が生じる場合がある。例えば、山の葉のようにぬり絵に不要な線を含むオブジェクトが複数の分割領域dに渡って存在する場合、ある分割領域ではユーザ調整を100%反映し、その分割領域に隣接する分割領域ではユーザ調整を50%反映するとする。この場合、線の濃さを調整すると同じオブジェクト内であっても位置によってユーザ調整の反映度が異なるため、分割領域の境界で異なる線の濃さになり輝度段差が生じてしまう。そのため、本実施例では、分割領域dの領域調整反映度aRateを画素単位で補間して滑らかに変化するようにし、輝度段差を生じさせないようにする。
Subsequently, in step S704, the adjustment
図9は、分割領域Aに属する画素Pにおける画素調整反映度pRateを算出する処理を説明するための図である。画素Pは分割領域A内の右下領域に存在する画素である。そのため、画素調整反映度pRateは、画素Pが属する分割領域A、分割領域Aの右側に隣接する分割領域B、分割領域Aの下側に隣接する分割領域C、分割領域Aの右下側に隣接する分割領域Dのそれぞれの領域反映度aRateに基づいて算出される。なお、この算出には(式1)が使用される。
pRate=y×(x×aRateA+(1−x)×aRateB)
+(1−y)×(x×aRateC+(1−x)×aRateD) (式1)
(式1)において、aRateA,aRateB,aRateCおよびaRateDは分割領域A,B,CおよびDの領域調整反映度、xは横方向の合成率、yは縦方向の合成率を示す。また、合成率x,yは0.5から1の範囲の数値であり、対象画素が属する分割領域の中心からの距離に応じて決まる。例えば、画素Pが分割領域Aの中心に存在する場合、x=1、y=1とすることで、(式1)よりpRate=aRateAとなり、分割領域Aの領域調整反映度aRateAがそのまま適用される。また、合成率x、yはテーブルや数式から得られるものとする。本実施例では、(式1)を用いて画素の位置に応じて補間して算出した画素調整反映度pRateに基づいてユーザ調整を実施するため、輝度段差を発生させずに調整ができる。
FIG. 9 is a diagram for explaining a process of calculating the pixel adjustment reflection degree pRate in the pixel P belonging to the divided region A. The pixel P is a pixel existing in the lower right region in the divided region A. Therefore, the pixel adjustment reflection degree pRate is set in the division area A to which the pixel P belongs, the division area B adjacent to the right side of the division area A, the division area C adjacent to the lower side of the division area A, and the lower right side of the division area A. It is calculated based on each area reflection degree aRate of the adjacent division area D. In addition, (Equation 1) is used for this calculation.
pRate = y × (x × aRateA + (1-x) × aRateB)
+ (1-y) x (x x aRateC + (1-x) x aRateD) (Equation 1)
In (Equation 1), aRateA, aRateB, aRateC and aRateD indicate the region adjustment reflection degree of the divided regions A, B, C and D, x indicates the composition ratio in the horizontal direction, and y indicates the composition ratio in the vertical direction. The composition ratios x and y are numerical values in the range of 0.5 to 1, and are determined according to the distance from the center of the division region to which the target pixel belongs. For example, when the pixel P exists in the center of the division area A, by setting x = 1 and y = 1, pRate = aRateA from (Equation 1), and the area adjustment reflection degree aRateA of the division area A is applied as it is. NS. Further, it is assumed that the synthesis rates x and y can be obtained from a table or a mathematical formula. In this embodiment, since the user adjustment is performed based on the pixel adjustment reflection degree pRate calculated by interpolating according to the pixel position using (Equation 1), the adjustment can be performed without generating a luminance step.
続いて、ステップS705にて、調整実行部1034は、調整方法決定部1033が決定した調整方法を用いて、ぬり絵画像に対してユーザ調整を行う。この調整方法には、上述した線密度lRate、領域調整反映度aRateおよび画素調整反映度pRateを用いた処理が含まれる。調整実行部1034は、ぬり絵画像に不要な線を個別に線の調整を行う操作インタフェイスを用いてユーザ調整を行った画像を作成する。この時、画像制御部103は、プレビュー画面と個別に線の調整を行う操作インタフェイスとを表示部102に表示させる。
Subsequently, in step S705, the
図10は、表示部が表示するプレビュー画面と操作インタフェイスとの一例を示す図である。図10に示すように、ぬり絵画像に対してユーザ調整を実施したプレビュー画面と、図6(b)に示したような個別に線の調整を行う操作インタフェイスとが表示部102に表示される。また、図6(b)に示した操作インタフェイスを用いてぬり絵画像の線の濃さを調整する方法は、上述したように調整バー602を用いて画面一律で線の濃さを調整し、調整バー603を用いてぬり絵画像に不要な箇所を個別に調整する方法に限らない。例えば、調整バー602を用いた調整の際、画面一律の調整を行うのではなく、調整バー603を用いて個別に調整する箇所以外を、調整バー602を用いて調整する方法でも良い。調整バー602を用いて画面一律で線の濃さを調整する場合、全画面一律で調整を行う場合の操作インタフェイスの図6(a)に示した調整バー601と共通の調整を行うため、操作に共通性を持たせることができる。また、ぬり絵画像が自然画であって、ぬり絵画像に不要な線を含む箇所が存在していても、ユーザが個別に調整する必要がなく画面一律の調整のみで問題ないと判断する場合、調整バー602を用いた調整のみで対応できる。一方、調整バー602を用いて輪郭線個別に調整する箇所以外を調整する場合、ぬり絵画像に必要な線と不要な線とを互いに独立に調整できるため、容易にユーザ調整が可能になる。さらには、上述した2つの調整方法を切り替えても良い。例えば、ユーザが外部から2つの調整方法のどちらかを選択することが可能な構成であっても良いし、ぬり絵画像中の不要な線を含む箇所の面積に応じて切り替えたりしても良い。このように、ぬり絵画像に応じたユーザ調整を実現できる。
FIG. 10 is a diagram showing an example of a preview screen displayed by the display unit and an operation interface. As shown in FIG. 10, the preview screen in which the user adjustment is performed on the coloring image and the operation interface in which the line is individually adjusted as shown in FIG. 6B are displayed on the
図11は、図7に示したフローチャートを用いて説明したステップS703の処理の詳細を説明するためのフローチャートである。図11を用いて説明する処理は、ぬり絵画像の元となる画像の各単位領域dの線密度lRateに基づいて、領域調整反映度aRateを算出する処理である。本実施例では、ぬり絵画像に不要な線を個別にユーザ調整を行う場合、調整方法決定部1033が、ぬり絵画像の画素毎にユーザ調整を反映する度合いを求める。そのため、調整方法決定部1033が、線密度lRateに応じて単位領域d毎にユーザ調整を反映する度合いである領域調整反映度aRateを算出する。
FIG. 11 is a flowchart for explaining the details of the process of step S703 described with reference to the flowchart shown in FIG. The process described with reference to FIG. 11 is a process of calculating the area adjustment reflection degree aRate based on the linear density lRate of each unit area d of the image that is the source of the coloring image. In this embodiment, when the user adjusts the unnecessary lines individually in the coloring image, the adjustment
ステップS1101にて、調整方法決定部1033は、画像データの全ての分割領域dに対して領域調整反映度aRateを算出したかどうかを判定する。全ての分割領域dに対して領域調整反映度aRateの算出が完了している場合は処理を終了する。一方、全ての分割領域dに対して領域調整反映度aRateの算出が完了していない場合、ステップS1102にて、領域調整反映度aRateの算出が完了していない任意の分割領域dの線密度lRateとあらかじめ設定された閾値th2とを比較する。線密度lRateが閾値th2以上である場合、調整方法決定部1033は、線密度lRateが高いため、当該分割領域dがぬり絵画像に不要な線のみが存在する分割領域dであると判定する。そして、ステップS1103にて、調整方法決定部1033は、個別調整を反映するように領域調整反映度aRateを100として算出して設定する。調整方法決定部1033は、ステップS1103の処理を行った後、ステップS1101の処理を行う。ここで、判定中の分割領域dはぬり絵画像に不要な線のみを含むと判定されるため、個別の調整が反映されるようにする。例えば、図5(b)に示した分割領域d[1][9]はぬり絵画像に不要な山の葉の輪郭線を多く含むため、線密度lRate[1][9]は高い値になる。そのため、調整方法決定部1033は、領域調整反映度aRate[1][9]は100として算出し、個別のユーザ調整を100%反映するように設定する。
In step S1101, the adjustment
一方、線密度lRateが閾値th2未満である場合、調整方法決定部1033は、調整方法決定部1033は、判定中の分割領域dの線密度lRateとあらかじめ設定された閾値th3とを比較する。閾値th3は、閾値th2よりも小さな値である。線密度lRateが閾値th3以下である場合、調整方法決定部1033は、当該分割領域dがぬり絵画像に不要な線が存在せず輪郭線のみが存在する分割領域dであると判定する。そして、ステップS1105にて、調整方法決定部1033は、個別調整を反映しないように領域調整反映度aRateを0として算出して設定する。調整方法決定部1033は、ステップS1105の処理を行った後、ステップS1101の処理を行う。ここで、判定中の単位領域dはぬり絵画像に必要な線のみを含むと判定されるため、個別の調整が反映されないようにする。例えば、図5(b)に示した分割領域d[6][7]はぬり絵画像に必要な線である建物の輪郭線のみを含むため、線密度lRate[6][7]は低い値になる。そのため、調整方法決定部1033は、領域調整反映度aRate[6][7]は0として算出し、個別のユーザ調整を反映しないように設定する。
On the other hand, when the linear density lRate is less than the threshold value th2, the adjustment
一方、線密度lRateが閾値th3を超える値である場合、調整方法決定部1033は、ステップS1106にて、判定中の分割領域dに隣接する全ての分割領域dの線密度lRateがあらかじめ設定された閾値th4以下であるかどうかを判定する。これは、判定中の分割領域dの線密度lRateが中程度である場合、周辺の分割領域dの線密度lRateに基づいて、多くの輪郭線を含む場合であるか輪郭線と不要な線とを含む場合であるかを判定するものである。当該分割領域dに隣接する全ての分割領域dの線密度lRateが閾値th4以下である場合、ステップS1107にて、調整方法決定部1033は、判定中の分割領域dは多くの輪郭線のみを含むと判定する。そのため、調整方法決定部1033は、個別の調整が反映されないように判定中の分割領域dの領域調整反映度aRateを0として算出して設定する。例えば、図5(b)に示した分割領域d[5][8]は、ぬり絵画像に必要な線である建物の窓の輪郭線を多く含むため、線密度lRate[5][8]は中程度の値になる。また、分割領域d[5][8]の周辺には線密度lRateが高い分割領域dが存在しないため、領域調整反映度aRate[5][8]は0として個別のユーザ調整を反映しないように設定する。調整方法決定部1033は、ステップS1107の処理を行った後、ステップS1101の処理を行う。
On the other hand, when the linear density lRate is a value exceeding the threshold value th3, the adjustment
一方、判定中の単位領域dに隣接する分割領域dのうち、線密度lRateが閾値th4を超える分割領域dが存在する場合は、ステップS1108にて、調整方法決定部1033は、判定中の分割領域dの領域調整反映度aRateを50として算出して設定する。これは、判定中の分割領域dは輪郭線と不要な線とを含むと判定するため、どちらの線に対しても不具合が生じないようにするためである。例えば、図5(b)に示した分割領域d[0][5]はぬり絵画像に必要な線である山の輪郭線と、ぬり絵画像に不要な山の葉の輪郭線とを含むため、線密度lRate[0][5]は中程度の値になる。また、分割領域d[0][5]の周辺には線密度lRateが高い分割領域d[1][6]が存在するため、調整方法決定部1033は、領域調整反映度aRate[0][5]は50として個別のユーザ調整を中程度反映するように設定する。また、ステップS1108の処理では、領域調整反映度aRateを固定の値50としているが、隣接する分割領域の線密度lRateの平均値などに応じた値でも良い。また、本実施例では画像データを横10×縦10で分割しており、輪郭線と不要な線との両方を含む分割領域dが多く存在する場合がある。しかし、分割数を多くすることで、輪郭線と不要な線とを含む分割領域dを少なくすることができ、より高精度に判定することが可能になる。調整方法決定部1033は、ステップS1108の処理を行った後、ステップS1101の処理を行う。
On the other hand, if there is a division area d adjacent to the unit area d under determination and whose linear density lRate exceeds the threshold value th4, in step S1108, the adjustment
以上、述べたようにステップS205では、ぬり絵画像の元となる画像に応じたユーザ調整用の操作インタフェイスに基づいて、ステップS202で作成したぬり絵画像のユーザ調整を行って調整ぬり絵画像を作成する。 As described above, in step S205, the user adjustment of the coloring picture image created in step S202 is performed based on the operation interface for user adjustment according to the image that is the source of the coloring picture image. To create.
上記の実施例に従うと、ぬり絵画像に対してユーザ調整を行う際、分割領域の線密度とその周辺の分割領域の線密度とから不要な線を含む箇所に対して、個別にユーザ調整を行う操作インタフェイスを設定することができる。そのため、従来ではぬり絵画像に対して、輪郭線と不要な線とを含む場合に最適なユーザ調整を行うことが難しかったが、本実施例では輪郭線と不要な線とのそれぞれにユーザ調整を行うことができるため、ぬり絵画像に対して最適なユーザ調整が可能になる。なお、本実施例では、ぬり絵画像に対して線の濃さの調整を実施する例を示したが、調整する内容は線の濃さに限らず、線の多さや線の太さ、線の色の調整などでもよく、複数の項目を同時に調整してもよい。 According to the above embodiment, when the user adjustment is performed on the coloring image, the user adjustment is individually performed for the portion including the unnecessary line from the linear density of the divided area and the linear density of the divided area around the divided area. You can set the operation interface to be performed. Therefore, in the past, it was difficult to perform optimal user adjustment when a contour line and an unnecessary line were included in the coloring image, but in this embodiment, the user adjustment is performed for each of the contour line and the unnecessary line. Therefore, the optimum user adjustment for the coloring image becomes possible. In this embodiment, an example of adjusting the line density for the coloring image is shown, but the content to be adjusted is not limited to the line density, but the number of lines, the thickness of the line, and the line. The color of the image may be adjusted, or a plurality of items may be adjusted at the same time.
(実施例2)
実施例1では、ぬり絵画像に不要な線に対してユーザ調整を個別に行う操作インタフェイスを設ける例を示した。本実施例では、ぬり絵画像に不要な線を含むオブジェクト(対象物)毎にユーザ調整を行う操作インタフェイスを設ける例を示す。本実施例では、ぬり絵画像に不要な線を含むオブジェクト毎に個別のユーザ調整を行うことができる操作インタフェイスを設けることで、実施例1よりもさらに細かくユーザ調整を行うことが可能になる。特に、ぬり絵画像に不要な線を含むオブジェクトが異なる種類の場合に、それぞれのオブジェクトに対して最適なユーザ調整が可能になる。
(Example 2)
In the first embodiment, an example is shown in which an operation interface for individually adjusting the user for unnecessary lines is provided in the coloring image. In this embodiment, an example is shown in which an operation interface for performing user adjustment is provided for each object (object) including an unnecessary line in the coloring image. In this embodiment, by providing an operation interface capable of making individual user adjustments for each object including unnecessary lines in the coloring image, it is possible to perform user adjustments more finely than in the first embodiment. .. In particular, when there are different types of objects containing unnecessary lines in the coloring image, optimum user adjustment for each object becomes possible.
本実施例の全体構成は図1に示した実施例1の構成と同様であり、画像制御部103の処理の内容が異なる。以下、実施例1と同様の処理を行う構成要素においては、処理の説明を省略する。
画像制御部103は、実施例1と同様にぬり絵画像を作成する際に実行される。図12は、本実施例における画像制御部103の処理を説明するためのフローチャートである。画像制御部103は、実施例1と同様に、ぬり絵画像の元の画像を画像データ取得部101から取得し、取得した画像の分割領域毎の線密度を算出し、取得した画像に応じたユーザ調整を行うための操作インタフェイスを設定しユーザ調整を行う。ここで、本実施例は取得した画像に応じたユーザ調整を行う操作インタフェイスを設定し、ユーザ調整を行う処理が実施例1とは異なる。実施例1では、ぬり絵画像に不要な線に対して調整を行う操作インタフェイスを設定するため、図2(b)に示した画像がぬり絵画像を作成する元の画像の場合、個別調整を行うと、この画像に含まれる左側の山と右側の山とに対して同じユーザ調整が反映される。図2(b)に示すように別のオブジェクトであっても、それらが互いに似ているオブジェクトである場合は、同じ個別調整を行っても特に問題は生じない。しかしながら、ぬり絵画像に不要な線を含むオブジェクトが複数存在し、それらが互いに別の種類のオブジェクトであった場合に、オブジェクト毎に個別の調整が可能であると利便性が高くなる。そのため、画像制御部103は、不要な線を含むオブジェクト毎に個別に調整可能な操作インタフェイスを設定し、オブジェクト毎にユーザ調整を行う。
The overall configuration of this embodiment is the same as that of the first embodiment shown in FIG. 1, and the processing content of the
The
ステップS1201〜S1203の処理は、実施例1におけるステップS201〜S203の処理とそれぞれ同じである。
ステップS1204にて、調整方法決定部1033は、ステップS1203にて算出した分割領域毎の線密度lRateに応じて、ぬり絵画像のユーザ調整を実施する際の操作インタフェイスを設定する。ここで、ステップS1201にて読み込んだ画像が図2(a)に示したようなイラスト画像である場合、調整方法決定部1033は、実施例1と同様に画面一律で線の調整を行う操作インタフェイスを設定する。一方、ステップS1201にて読み込んだ画像が図2(b)に示したような画像である場合について説明する。調整方法決定部1033は、実施例1と同様に画面一律で線の調整を行う操作インタフェイスと、ぬり絵画像に不要な線を含むオブジェクト毎に個別に調整する操作インタフェイスとを設定する。そして、調整方法決定部1033は、調整方法決定部1033と調整実行部1034とが不要な線を含むオブジェクト毎にユーザ調整を行う。具体的には、線密度lRateが高い分割領域dが互いに隣接して存在している場合、調整方法決定部1033は、ぬり絵画像に不要な線を含むオブジェクトが複数の分割領域dに渡って存在していると判定する。
The processing of steps S1201 to S1203 is the same as the processing of steps S201 to S203 in the first embodiment.
In step S1204, the adjustment
図13は、ぬり絵画像についてオブジェクトを特定した場合の処理を説明するための図である。図13(a)は、図2(b)に示した画像がぬり絵画像の元画像である場合の画像に含まれる左側の山を含む分割領域dを太線で囲んだ図である。図13(a)に示した太線で囲まれた16個の分割領域dは、ぬり絵画像に不要な線である山の葉を含むため、線密度lRateの値は大きくなる。本実施例では、図13(a)に示した太線で囲まれた16個の分割領域dから構成されるグループをグループ1とする。同様に、図13(b)は、図2(b)に示した画像がぬり絵画像の元画像である場合の画像に含まれる右側の山を含む分割領域dを太線で囲んだ図である。図13(b)に示した太線で囲まれた9個の分割領域dは、ぬり絵画像に不要な線である山の葉を含むため、線密度lRateの値は大きくなる。本実施例では、図13(b)に示した太線で囲まれた9個の分割領域dから構成されるグループをグループ2とする。
FIG. 13 is a diagram for explaining a process when an object is specified for the coloring image. FIG. 13A is a diagram in which the divided region d including the mountain on the left side included in the image when the image shown in FIG. 2B is the original image of the coloring image is surrounded by a thick line. Since the 16 divided regions d surrounded by the thick line shown in FIG. 13A include mountain leaves, which are unnecessary lines in the coloring image, the value of the linear density lRate becomes large. In this embodiment, the group composed of 16 divided regions d surrounded by the thick line shown in FIG. 13 (a) is referred to as
ステップS1204の処理では、調整方法決定部1033は、ぬり絵画像の元画像に対して線密度lRateが高い複数の分割領域dが互いに隣接して存在しているグループの数を算出する。そして、調整方法決定部1033は、算出したグループの数分だけ個別に調整できる操作インタフェイスを設定する。
In the process of step S1204, the adjustment
図14は、ステップS1204で表示部102に表示される操作インタフェイスの一例を示す図である。図14に示した調整バー1401は、図6(a)に示した調整バー601と同様に画面一律でぬり絵画像の線の濃さを調整するための調整バーである。図14に示した調整バー1402は、図2(b)に示した画像に含まれる左側の山を含む箇所に対して線の濃さを調整するための調整バーである。図14に示した調整バー1403は、図2(b)に示した画像に含まれる右側の山を含む箇所に対して線の濃さを調整するための調整バーである。ここで、表示部102がタッチパネル機能を具備していれば、ユーザのタッチ操作に基づいて、調整バー1401,1402,1403が右方向または左方向へ移動する。また、例えば、マウスやキーボード等の他の入力手段が画像生成装置100に接続または具備されている場合、その入力手段がユーザから受け付けた入力に基づいて、調整バー1401,1402,1403が右方向または左方向へ移動する。
FIG. 14 is a diagram showing an example of an operation interface displayed on the
図15は、ステップS1204で表示部102に表示される操作インタフェイスの他の例を示す図である。図15に示すように、操作インタフェイスの他の例として、切り替えボタン1501を設け、切り替えボタン1501が選択(押下やタッチ等)される度に、調整バー1502が調整する対象を切り替える操作インタフェイスでも良い。図15に示した操作インタフェイスでは、初期状態では調整バー1502は画面一律で線の調整を行うための調整バーである。切り替えボタン1501が1回選択(押下やタッチ等)されると、調整バー1502は図2(b)に示した画像に含まれる左側の山の箇所の線の調整を行う。そして、切り替えボタン1501が2回選択(押下やタッチ等)されると、調整バー1502は図2(b)に示した画像に含まれる右側の山の箇所の線の調整を行うため調整バーとなる。なお、個別調整を行う調整バーを表示する順番は、例えば個別の調整を行う箇所の面積の大きさに応じた順番等、優先度を算出して調整バーを表示する順番としても良い。
FIG. 15 is a diagram showing another example of the operation interface displayed on the
ステップS1205にて、調整方法決定部1033および調整実行部1034は、ステップS1204で設定された操作インタフェイスを用いて、ステップS1202で作成されたぬり絵画像の調整を実施する。本実施例では、ぬり絵画像に不要な線を含むオブジェクト毎に線の調整を行うため、ステップS1204で分類したグループ毎に実施例1のステップS105の処理を行う。図2(b)に示した画像がぬり絵画像の元画像である場合について説明する。調整方法決定部1033は、ステップS1204にてグループ1に分類された図13(a)に示した太線で囲まれた16個の分割領域dで、領域反映度aRateおよび画素調整反映度pRateを算出する。そして、調整方法決定部1033は、ステップS1205にて、ぬり絵画像の調整を実施する。また、調整方法決定部1033は、ステップS1204でグループ2に分類された図13(b)に示した太線で囲まれた9個の分割領域dで、領域反映度aRateおよび画素調整反映度pRateを算出し、ステップS1205にて、ぬり絵画像の調整を実施する。そして、ステップS1206にて、画像印刷部104が、ユーザ調整を行い作成したぬり絵画像を印刷する。
In step S1205, the adjustment
以上述べたように本実施例によれば、ぬり絵画像に対してユーザ調整を行う際、ぬり絵画像に不要な線を含むオブジェクトが複数種類存在する場合に、オブジェクト毎にそれぞれ個別の調整が可能になり、より細かいユーザ調整を実施できる。 As described above, according to the present embodiment, when the user adjustment is performed on the coloring image, when there are a plurality of types of objects including unnecessary lines in the coloring image, individual adjustments are made for each object. It becomes possible and finer user adjustment can be performed.
(実施例3)
実施例1、2では、調整中のぬり絵画像のプレビュー画面と操作インタフェイスとを1つの表示部に表示する例を示した。本実施例では、調整中のぬり絵画像のプレビュー画面と操作インタフェイスとをそれぞれ別の表示部に表示する例を示す。
(Example 3)
In Examples 1 and 2, an example in which the preview screen of the coloring picture image being adjusted and the operation interface are displayed on one display unit is shown. In this embodiment, an example is shown in which the preview screen of the coloring picture image being adjusted and the operation interface are displayed on separate display units.
実施例1、2のように調整中のぬり絵画像のプレビュー画面と操作インタフェイスとを1つの表示部に表示すると、プレビュー画面と操作インタフェイスとの表示が小さくなり、その内容が見えにくくユーザ調整が難しい場合がある。本実施例では、調整中のぬり絵画像のプレビュー画面と操作インタフェイスとをそれぞれ別の表示部に表示することで、それぞれの画面を広い表示部に表示することができ、外部からのユーザ調整が実施しやすくなる。 When the preview screen and the operation interface of the coloring picture image being adjusted are displayed on one display unit as in Examples 1 and 2, the display of the preview screen and the operation interface becomes small, and the contents are difficult to see and the user. Adjustment can be difficult. In this embodiment, by displaying the preview screen of the coloring picture image being adjusted and the operation interface on separate display units, each screen can be displayed on a wide display unit, and user adjustment from the outside can be performed. Will be easier to implement.
本実施例の全体構成は図1に示した実施例1の構成と同様であり、画像制御部103の処理の内容が異なる。表示部102は、2つの表示ディスプレイを備える。以下、実施例1と同様の処理を行う構成要素においては、処理の説明を省略する。
画像制御部103は、実施例1と同様にぬり絵画像を作成する際に実行される。画像制御部103は、実施例1と同様に、ぬり絵画像の元の画像を画像データ取得部101から取得し、取得した画像の分割領域毎の線密度を算出し、取得した画像に応じたユーザ調整を行うための操作インタフェイスを設定しユーザ調整を行う。実施例1、2では、調整中のぬり絵画像のプレビュー画面と操作インタフェイスとを1つのディスプレイから構成される表示部102に表示している。本実施例では、表示部102が複数のディスプレイから構成され、調整中のぬり絵画像のプレビュー画面と操作インタフェイスとをそれぞれ別の表示ディスプレイに表示する。表示部102は、画像制御部103で調整中のぬり絵画像のプレビュー画面と操作インタフェイスとをそれぞれ別の表示ディスプレイに表示する。また、表示部102の表示ディスプレイの1つが、画像生成装置100とは別の装置に搭載されていても良い。
The overall configuration of this embodiment is the same as that of the first embodiment shown in FIG. 1, and the processing content of the
The
以上述べたように本実施例によれば、ぬり絵画像に対してユーザ調整を行う際、調整中のぬり絵画像のプレビュー画面と操作インタフェイスとをそれぞれ別のディスプレイに表示することが可能になる。そのため、それぞれの画面を広い表示部に表示することができ、外部からのユーザ調整が実施しやすくなり、また、ぬり絵画像の調整時の視認性を高めることができる。 As described above, according to the present embodiment, when the user adjusts the coloring image, the preview screen of the coloring image being adjusted and the operation interface can be displayed on different displays. Become. Therefore, each screen can be displayed on a wide display unit, user adjustment from the outside can be easily performed, and visibility at the time of adjusting the coloring image can be improved.
100 画像生成装置
101 画像データ取得部
102 表示部
104 画像印刷部
1031 線密度算出部
1032 輪郭線画像作成部
1033 調整方法決定部
1034 調整実行部
100 Image generator 101 Image
Claims (14)
前記画像データ取得部が取得した画像データの輪郭線を抽出した輪郭線画像を作成する輪郭線作成部と、
前記輪郭線作成部が作成した輪郭線画像を所定の分割領域に分割し、前記分割領域ごとの線密度を算出する線密度算出部と、
前記線密度算出部が算出した前記分割領域ごとの線密度に基づいて、前記輪郭線画像に対する調整方法を決定する調整法決定部と、
前記調整法決定部が決定した調整方法を用いて前記輪郭線画像を調整する調整実行部とを有する画像生成装置。 The image data acquisition unit that acquires image data and
A contour line creation unit that creates a contour line image by extracting the contour lines of the image data acquired by the image data acquisition unit, and a contour line creation unit.
A line density calculation unit that divides the contour line image created by the contour line creation unit into predetermined division regions and calculates the linear density for each division region.
An adjustment method determination unit that determines an adjustment method for the contour line image based on the linear density for each divided region calculated by the linear density calculation unit.
An image generation device including an adjustment execution unit that adjusts the contour line image by using the adjustment method determined by the adjustment method determination unit.
前記調整法決定部は、前記線密度が所定の閾値以上である分割領域の輪郭線画像に対して、前記輪郭線個別に調整可能な調整方法を決定する画像生成装置。 In the image generator according to claim 1,
The adjustment method determining unit is an image generation device that determines an adjustment method that can individually adjust the contour line with respect to the contour line image of the divided region whose linear density is equal to or higher than a predetermined threshold value.
前記調整法決定部は、前記分割領域の線密度と該分割領域に隣接する分割領域の線密度とに基づいて、該分割領域の前記輪郭線画像を調整するための領域反映度を決定する画像生成装置。 In the image generator according to claim 2,
The adjustment method determining unit determines the region reflection degree for adjusting the contour line image of the divided region based on the linear density of the divided region and the linear density of the divided region adjacent to the divided region. Generator.
前記調整法決定部は、前記領域反映度と前記分割領域の中心からの距離とに応じて、該分割領域に含まれる前記輪郭線画像を画素ごとに調整するための画素反映度を決定する画像生成装置。 In the image generator according to claim 3,
The adjustment method determining unit determines the pixel reflection degree for adjusting the contour line image included in the divided region for each pixel according to the region reflection degree and the distance from the center of the divided region. Generator.
前記調整法決定部は、前記線密度が所定の閾値以上である、互いに隣接した複数の分割領域の輪郭線画像に対して、該分割領域に含まれる対象物ごとに個別に調整可能な調整方法を決定する画像生成装置。 In the image generator according to any one of claims 2 to 4.
The adjustment method determining unit is an adjustment method capable of individually adjusting each of the objects included in the divided regions with respect to the contour line images of a plurality of divided regions adjacent to each other having the linear density equal to or higher than a predetermined threshold value. An image generator that determines.
前記調整法決定部は、前記線密度が所定の閾値以上である分割領域が前記画像データに存在しない場合、前記輪郭線画像に対して該画像データ一律に調整可能な調整方法を決定する画像生成装置。 In the image generator according to any one of claims 1 to 5,
When the image data does not have a divided region whose line density is equal to or higher than a predetermined threshold value, the adjustment method determining unit determines an image generation method that can uniformly adjust the image data with respect to the contour line image. Device.
外部から操作を受け付ける入力部を有し、
前記調整法決定部は、前記入力部が受け付けた入力に基づいて、前記輪郭線画像の調整方法を決定する画像生成装置。 In the image generator according to any one of claims 1 to 6,
It has an input unit that accepts operations from the outside.
The adjustment method determining unit is an image generation device that determines an adjusting method of the contour line image based on the input received by the input unit.
前記調整法決定部は、前記入力部が受け付けた入力に基づいて、前記輪郭線画像の濃さを決定する画像生成装置。 In the image generator according to claim 7,
The adjustment method determining unit is an image generation device that determines the density of the contour line image based on the input received by the input unit.
前記調整実行部が調整した前記輪郭線画像を印刷する画像印刷部を有する画像生成装置。 In the image generator according to any one of claims 1 to 8.
An image generation device having an image printing unit that prints the contour line image adjusted by the adjustment executing unit.
前記調整実行部が調整した前記輪郭線画像を表示する表示部を有する画像生成装置。 In the image generator according to any one of claims 1 to 9.
An image generation device having a display unit that displays the contour line image adjusted by the adjustment execution unit.
前記取得した画像データの輪郭線を抽出した輪郭線画像を作成する処理と、
前記作成した輪郭線画像を所定の分割領域に分割する処理と、
前記分割領域ごとの線密度を算出する処理と、
前記算出した前記分割領域ごとの線密度に基づいて、前記輪郭線画像に対する調整方法を決定する処理と、
前記決定した調整方法を用いて前記輪郭線画像を調整する処理とを行う画像生成方法。 The process of acquiring image data to the device and
The process of creating a contour line image by extracting the contour line of the acquired image data, and
The process of dividing the created contour line image into a predetermined division area, and
The process of calculating the linear density for each divided region and
A process of determining an adjustment method for the contour line image based on the calculated linear density for each divided region, and a process of determining the adjustment method for the contour line image.
An image generation method that performs a process of adjusting the contour line image using the determined adjustment method.
前記線密度が所定の閾値以上である分割領域の輪郭線画像に対して、前記輪郭線個別に調整可能な調整方法を決定する画像生成方法。 In the image generation method according to claim 11,
An image generation method for determining an adjustment method that can individually adjust the contour line for a contour line image of a divided region in which the line density is equal to or higher than a predetermined threshold value.
前記分割領域の線密度と該分割領域に隣接する分割領域の線密度とに基づいて、該分割領域の前記輪郭線画像を調整するための領域反映度を決定する画像生成方法。 In the image generation method according to claim 12,
An image generation method for determining a region reflection degree for adjusting the contour line image of the divided region based on the linear density of the divided region and the linear density of the divided region adjacent to the divided region.
前記領域反映度と前記分割領域の中心からの距離とに応じて、該分割領域に含まれる前記輪郭線画像を画素ごとに調整するための画素反映度を決定する画像生成方法。 In the image generation method according to claim 13,
An image generation method for determining the pixel reflection degree for adjusting the contour line image included in the divided region for each pixel according to the region reflection degree and the distance from the center of the divided region.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020005948A JP2021114083A (en) | 2020-01-17 | 2020-01-17 | Image generation device and image generation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020005948A JP2021114083A (en) | 2020-01-17 | 2020-01-17 | Image generation device and image generation method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2021114083A true JP2021114083A (en) | 2021-08-05 |
Family
ID=77077025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020005948A Pending JP2021114083A (en) | 2020-01-17 | 2020-01-17 | Image generation device and image generation method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2021114083A (en) |
-
2020
- 2020-01-17 JP JP2020005948A patent/JP2021114083A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2693303C2 (en) | Method and device for changing background colour of tool panel according to dominant colour of image | |
DE102011078662B4 (en) | Acquiring and generating images with a high dynamic range | |
US7945114B2 (en) | Image transform method for obtaining expanded image data, image processing apparatus and image display device therefore | |
KR101942987B1 (en) | Method, system for removing background of a video, and a computer-readable storage device | |
EP3155593B1 (en) | Method and device for color processing of digital images | |
EP1965348A1 (en) | Gray-scale correcting method, gray-scale correcting device, gray-scale correcting program, and image device | |
US9626751B2 (en) | Method and system for analog/digital image simplification and stylization | |
US8547386B2 (en) | Image processing device and non-transitory computer-readable storage medium | |
JP2012521708A (en) | Method and apparatus for correcting an image using a saliency map based on color frequency | |
JP2008501170A (en) | Method and system for viewing and enhancing images | |
KR20000052475A (en) | Image processing method and apparatus, image processing system, and storage medium | |
US10592766B2 (en) | Image processing apparatus and medium storing program executable by image processing apparatus | |
CN113039576A (en) | Image enhancement system and method | |
JP6904842B2 (en) | Image processing device, image processing method | |
CN106031145B (en) | Image processing apparatus and image processing method | |
CN105338214A (en) | Image processing method and image processing device | |
CN1330166C (en) | Image processing device, image display device, image processing method, and image display method | |
JP2009118419A (en) | Image processing apparatus, image processing method and image processing program | |
JP2021114083A (en) | Image generation device and image generation method | |
KR100791374B1 (en) | Method and apparatus for image adaptive color adjustment of pixel in color gamut | |
KR102448551B1 (en) | Method and apparatus processing images by using algorithm configured by node based graph | |
KR101958263B1 (en) | The control method for VR contents and UI templates | |
CN115880461A (en) | Augmented reality image generation method, device, equipment and storage medium | |
JP5067224B2 (en) | Object detection apparatus, object detection method, object detection program, and printing apparatus | |
US11217205B2 (en) | Method and apparatus for rendering contents for vision accessibility |