JP2007220056A - Image processor - Google Patents

Image processor Download PDF

Info

Publication number
JP2007220056A
JP2007220056A JP2006071757A JP2006071757A JP2007220056A JP 2007220056 A JP2007220056 A JP 2007220056A JP 2006071757 A JP2006071757 A JP 2006071757A JP 2006071757 A JP2006071757 A JP 2006071757A JP 2007220056 A JP2007220056 A JP 2007220056A
Authority
JP
Japan
Prior art keywords
region
area
pixel
determined
undetermined
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
Application number
JP2006071757A
Other languages
Japanese (ja)
Inventor
Shinya Watanabe
真也 渡▲辺▼
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2006071757A priority Critical patent/JP2007220056A/en
Publication of JP2007220056A publication Critical patent/JP2007220056A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve a problem of a requirement of enormous labor in production of illustration and the like based on line drawing, which requires high precision in discriminative painting work. <P>SOLUTION: Simple discriminative painting not requiring precision is carried out by a producer of the illustration and the like, and detailed discriminative painting requiring precision is carried out by this invention. In this way, labor required for manual discriminative painting can be reduced greatly. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

発明の詳細な説明Detailed Description of the Invention

本発明は、線画を基本とするイラスト等の制作の塗り分けの方法及び装置に関する。The present invention relates to a method and apparatus for separately painting an illustration or the like based on a line drawing.

近年、イラスト等の制作にコンピュータを利用することが多くなっている。イラスト等の制作において塗り分けを行う場合、塗りわけにも使用できる従来の機能としてブラシ、塗りつぶし、パス等がある。ブラシは絵筆で塗る感覚でピクセルを塗ることができる機能である。塗りつぶしは指定したピクセルに隣接している同じ色あるいはそれに近い色のピクセルを対象の領域とし、領域に含まれるピクセルを塗りつぶす機能である。パスはベジェ曲線やスプライン曲線を用いて領域を囲み、領域に含まれるピクセルを塗りつぶす機能である。In recent years, computers are often used for producing illustrations and the like. When performing painting separately in the production of illustrations, etc., there are conventional functions that can also be used for painting, such as brushes, painting, and passes. Brush is a function that allows you to paint pixels as if painting with a paintbrush. Filling is a function that fills the pixels included in the region with pixels of the same color adjacent to the designated pixel or a pixel close to it as the target region. A path is a function that surrounds an area using a Bezier curve or a spline curve and fills pixels included in the area.

従来の塗りつぶし機能では、中間色を塗り分ける方法として、しきい値を用いるか、あるいは抽出できた領域について単純に1ピクセル広げる手法を用いるために、塗り分けられるべき未確定領域が残り、手作業で精度が要求される細部を塗り分ける必要があった。この手作業にかかる労力を減らすことを課題とする。In the conventional fill function, a threshold is used as a method of separately painting the intermediate color, or a method of simply expanding one pixel for the extracted region, so that an undetermined region to be separated remains, which is manually performed. It was necessary to paint the details that required accuracy. The task is to reduce the labor involved in this manual work.

上記課題を解決するために、請求項1の画像処理装置は、線画を基本とするイラスト等の制作で、塗り分けられるべきデジタルイメージを塗り分ける場合において、デジタルイメージについての値を持つ最小の単位をピクセルとし、前記ピクセルの集合を領域とし、これから塗り分けられるべき前記領域を未確定領域とし、既に塗り分けられていて各々に識別するべきであり隣接しても混合および統合されない前記領域を確定領域勢力とし、前記確定領域勢力を各々に識別するための番号を勢力番号とし、前記ピクセルを濃淡で分割した区域を濃淡区域とし、前記濃淡区域のうち濃淡の最も薄い区域を対象区域とし、前記確定領域勢力のうちの少なくとも1つに隣接している前記未確定領域に含まれる前記ピクセルで且つ前記対象区域に含まれる前記ピクセルについて、前記確定領域勢力に含めるために前記ピクセルに隣接している前記確定領域勢力のうちの1つから前記勢力番号を格納する領域拡大手段と、前記領域拡大手段を前記勢力番号を格納する操作が行われなくなるまで繰り返す未確定領域除外手段と、前期未確定領域除外手段を前記対象区域を広げながら繰り返す手段を具備する。In order to solve the above-described problem, the image processing apparatus according to claim 1 is the smallest unit having a value for a digital image when a digital image to be separately painted is produced in production of an illustration or the like based on a line drawing. And the set of pixels as a region, the region to be painted from now on as an undetermined region, and a region that has already been painted and should be identified and not mixed and integrated even if adjacent A region power, a number for identifying the determined region power is a power number, a region obtained by dividing the pixel by light and shade is a light and dark region, and the lightest and lightest region of the light and dark region is a target region, The pixel included in the undefined region adjacent to at least one of the defined region forces and included in the target area A region enlarging means for storing the power number from one of the determined region powers adjacent to the pixel for inclusion in the determined region power; and An undetermined region exclusion unit that repeats until the storing operation is not performed, and a unit that repeats the previous undetermined region exclusion unit while expanding the target area.

また、請求項2の画像処理装置は、請求項1において前記デジタルイメージがレイヤーを有している場合、前記ピクセルをいずれかの前記確定領域勢力または前記未確定領域に分ける判定と、前記ピクセルが前記対象区域に含まれるかを判定するに際して、それぞれ別の前記レイヤーから前記ピクセルの値を取得する手段を具備するAccording to a second aspect of the present invention, there is provided the image processing device according to the first aspect, in which, when the digital image has a layer, the pixel is divided into any one of the determined area force or the undefined area, Means for obtaining the value of the pixel from each of the different layers when determining whether or not it is included in the target area;

請求項3の画像処理装置は、請求項1、2において前記濃淡区域のうち濃淡の最も濃い区域を前記対象区域とする手段を具備するAn image processing apparatus according to a third aspect comprises means according to any one of the first and second aspects, wherein the darkest shaded area of the shaded areas is the target area.

本発明によれば、イラスト等の制作者が意図した塗り分けを、イラスト等の制作者が示した単純な塗り分けを元に、高い精度で行うことができるので、手作業にかかっていた時間と労力を大幅に減らすことができる。精度の要求される細部の塗り分けが高い精度で行われるので、実用性が極めて大きい。According to the present invention, since the painting intended by the creator of the illustrations can be performed with high accuracy based on the simple painting shown by the creator of the illustrations, the time required for manual work And labor can be greatly reduced. Since the painting of details requiring high accuracy is performed with high accuracy, the practicality is extremely large.

本発明はイラスト等の制作に用いるものであるので、画像処理ソフトウェアの一機能として実施することが最良である。Since the present invention is used for producing illustrations and the like, it is best to implement it as a function of image processing software.

以下、本発明の一実施例を詳細に説明する。Hereinafter, an embodiment of the present invention will be described in detail.

第1図は、本発明の一実施例のフロー図である。本発明の一実施例ではピクセルの色の表現を赤と緑と青によるRGBとし、それぞれ8ビットの量子化を行い0〜255の256段階の階調を持つものとする。FIG. 1 is a flow diagram of one embodiment of the present invention. In one embodiment of the present invention, the pixel color is expressed by RGB of red, green, and blue, each of which is 8-bit quantized and has 256 gradation levels from 0 to 255.

既に塗り分けられた領域を確定領域とし、これから塗り分けられるべき領域を未確定領域とするために、本発明の一実施例ではピクセルの彩度によって判定し、そのしきい値を0と0以外とする。彩度のしきい値を0と0以外にした場合、RGBについて、RとGとBが等しければ彩度は0であるので未確定領域であり、RとGとBのうちのいずれかが等しくなければ彩度は0以外なので確定領域と判定できる。In order to make a region that has already been painted as a definite region and a region that should be painted out as an undetermined region, in one embodiment of the present invention, determination is made based on pixel saturation, and the threshold value is other than 0 and 0 And When the saturation threshold value is other than 0 and 0, if R, G, and B are the same for RGB, the saturation is 0, so that it is an undefined region, and any of R, G, and B is selected. If they are not equal, the saturation is not 0, so that it can be determined as a definite region.

次に、未確定領域と判定されたピクセルが対象区域に含まれているかを、本発明の一実施例ではピクセルの輝度によって判定し、そのしきい値を8とし、最も薄い濃淡区域を248〜255とする。輝度のしきい値を8とした場合、色成分RGBについて、未確定領域のRとGとBが等しいので、未確定領域のRが248〜255の範囲であれば対象区域に含まれていると判定できる。Next, according to an embodiment of the present invention, whether or not a pixel determined to be an undetermined region is included in the target area is determined by the luminance of the pixel, the threshold value is set to 8, and the lightest shaded area is set to 248 to 248. 255. When the luminance threshold value is 8, since R, G, and B of the undetermined region are equal for the color component RGB, if the R of the undetermined region is in the range of 248 to 255, it is included in the target area. Can be determined.

次に、対象区域に含まれているピクセルが確定領域の少なくとも1つと隣接しているかを、本発明の一実施例では上下左右の4ピクセルが確定領域であるかを前記彩度による判定によって判定する。上下左右の4ピクセルのうち1つでも確定領域があれば、確定領域に隣接していると判定できる。Next, it is determined whether or not the pixels included in the target area are adjacent to at least one of the fixed regions, and in one embodiment of the present invention, whether the upper, lower, left, and right four pixels are the determined regions is determined by the determination based on the saturation. To do. If at least one of the upper, lower, left, and right pixels has a definite region, it can be determined that it is adjacent to the definite region.

この3つの条件をすべて満たしていれば確定領域に含めることが出来る。本発明の一実施例では、この判定をすべてのピクセルに対して行い、確定領域に含めるために上下左右の4ピクセルのうち最初に見つかった確定領域の勢力番号をピクセルに格納する。この判定をすべてのピクセルに同時に行うためにバッファリングを行って1回ごとにコミットする。ここまでの操作をいずれのピクセルにも確定領域に含める判定が発生しなくなるまで繰り返して行う。If all these three conditions are satisfied, it can be included in the definite region. In one embodiment of the present invention, this determination is performed for all pixels, and the power number of the determined area that is first found among the four pixels in the upper, lower, left, and right directions is stored in the pixel for inclusion in the determined area. In order to make this determination for all the pixels at the same time, the buffering is performed and committed every time. The operations up to here are repeated until there is no determination that any pixel is included in the determined region.

次に、対象区域を広げる。前記しきい値に従って輝度の範囲を8広げて未確定領域のRが240〜255の範囲であれば、対象区域に含まれていると判定して同様の操作を行い、輝度の範囲が0〜255のときにピクセルを確定領域に含める判定が発生しなくなるまで繰り返して行う。Next, the target area is expanded. If the luminance range is expanded by 8 according to the threshold value and R of the undetermined region is in the range of 240 to 255, it is determined that the region is included in the target area, and the same operation is performed. In the case of 255, the process is repeated until the determination that the pixel is included in the definite region does not occur.

第2図は、本発明の一実施例での画像の変化を示す図である。このように本発明によれば、未確定領域のすべてをイラスト等の制作者が意図した線画に従って高い精度で塗り分けることが可能であり、その効果は大きい。FIG. 2 is a diagram showing image changes in one embodiment of the present invention. As described above, according to the present invention, it is possible to paint all of the undetermined areas with high accuracy according to the line drawing intended by the creator such as an illustration, and the effect is great.

尚、本発明は色成分がRGB以外であっても可能であり、量子化が8ビット以外であっても可能であり、確定領域と未確定領域の判定を彩度ではないものを利用することも可能であり、確定領域と未確定領域の判定のしきい値を0以外にすることも可能であり、対象区域に含まれているかの判定に輝度ではないものを利用することも可能であり、対象区域のしきい値を8以外にすることも可能であり。最も薄い濃淡区域を248〜255以外にすることも可能である。これらの応用はすべて本発明の範囲に含まれる。In the present invention, the color component can be other than RGB, the quantization can be other than 8 bits, and the determination of the definite region and the undetermined region can be made using non-saturation. It is also possible to set the threshold value for determining the definite region and the undetermined region to other than 0, and it is also possible to use non-luminance for determining whether the region is included in the target area. It is also possible to set the threshold value of the target area to other than 8. The thinnest shaded area can be other than 248-255. All these applications are within the scope of the present invention.

線画を基本とするイラスト等の制作や、線画を基本とするアニメーション制作等の塗り分けに効果を発揮する。This is effective for painting illustrations based on line drawings and animations based on line drawings.

本発明の一実施例のフロー図。The flowchart of one Example of this invention. 本発明の一実施例での画像の変化を示す図。The figure which shows the change of the image in one Example of this invention.

符号の説明Explanation of symbols

Claims (3)

デジタルイメージについての値を持つ最小の単位をピクセルとし、前記ピクセルの集合を領域とし、これから塗り分けられるべき前記領域を未確定領域とし、既に塗り分けられていて各々に識別するべきであり隣接しても混合および統合されない前記領域を確定領域勢力とし、前記確定領域勢力を各々に識別するための番号を勢力番号とし、前記ピクセルを濃淡で分割した区域を濃淡区域とし、前記濃淡区域のうち濃淡の最も薄い区域を対象区域とし、前記確定領域勢力のうちの少なくとも1つに隣接している前記未確定領域に含まれる前記ピクセルで且つ前記対象区域に含まれる前記ピクセルについて、前記確定領域勢力に含めるために前記ピクセルに隣接している前記確定領域勢力のうちの1つから前記勢力番号を格納する領域拡大手段と、前記領域拡大手段を前記勢力番号を格納する操作が行われなくなるまで繰り返す未確定領域除外手段と、前期未確定領域除外手段を前記対象区域を広げながら繰り返す手段を具備することを特徴とする画像処理装置。The smallest unit having a value for a digital image is a pixel, the set of pixels is an area, the area to be painted from now on is an undetermined area, and already painted and should be identified and adjacent to each other. The region that is not mixed and integrated is a definite region force, a number for identifying the definite region force is a force number, a region obtained by dividing the pixel by light and shade is a light and dark region, and light and dark of the light and dark region And the pixel included in the undetermined region adjacent to at least one of the determined region forces and the pixel included in the target region is defined as the determined region force. Area expansion means for storing the power number from one of the determined area powers adjacent to the pixel for inclusion And an undetermined region exclusion unit that repeats the region expansion unit until the operation for storing the power number is not performed, and a unit that repeats the previous undetermined region exclusion unit while expanding the target area. Processing equipment. 請求項1において前記デジタルイメージがレイヤーを有している場合、前記ピクセルをいずれかの前記確定領域勢力または前記未確定領域に分ける判定と、前記ピクセルが前記対象区域に含まれるかを判定するに際して、それぞれ別の前記レイヤーから前記ピクセルの値を取得する手段を具備することを特徴とする画像処理装置。The determination according to claim 1, wherein when the digital image has a layer, the determination of dividing the pixel into any of the determined area power or the undefined area and determining whether the pixel is included in the target area. An image processing apparatus comprising means for acquiring the value of the pixel from each of the different layers. 請求項1、2において前記濃淡区域のうち濃淡の最も濃い区域を前記対象区域とする手段を具備することをを特徴とする画像処理装置。The image processing apparatus according to claim 1, further comprising means for setting the darkest shaded area among the shaded areas as the target area.
JP2006071757A 2006-02-16 2006-02-16 Image processor Pending JP2007220056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006071757A JP2007220056A (en) 2006-02-16 2006-02-16 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006071757A JP2007220056A (en) 2006-02-16 2006-02-16 Image processor

Publications (1)

Publication Number Publication Date
JP2007220056A true JP2007220056A (en) 2007-08-30

Family

ID=38497254

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006071757A Pending JP2007220056A (en) 2006-02-16 2006-02-16 Image processor

Country Status (1)

Country Link
JP (1) JP2007220056A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8593477B2 (en) 2008-03-03 2013-11-26 Dainippon Screen Mfg. Co., Ltd. Line drawing processing apparatus and computer-readable recording medium
US9317859B2 (en) 2010-12-28 2016-04-19 Naver Corporation System and method for recommending keyword based on indirect selection

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0351963A (en) * 1989-07-19 1991-03-06 Toshiba Corp Image forming device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0351963A (en) * 1989-07-19 1991-03-06 Toshiba Corp Image forming device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8593477B2 (en) 2008-03-03 2013-11-26 Dainippon Screen Mfg. Co., Ltd. Line drawing processing apparatus and computer-readable recording medium
US9317859B2 (en) 2010-12-28 2016-04-19 Naver Corporation System and method for recommending keyword based on indirect selection

Similar Documents

Publication Publication Date Title
US9639945B2 (en) Depth-based application of image effects
JP5037311B2 (en) Color reproduction system and method
JP2008277899A (en) White balance adjustment device, imaging device, and white balance adjusting program
CN107590791B (en) Image enhancement method and image processing apparatus
US8406566B1 (en) Methods and apparatus for soft edge masking
US20070103483A1 (en) Adaptive alpha blending
JP6548517B2 (en) Image processing apparatus and image processing method
CN1224276C (en) Colour saturation control method for RGB colour system
KR101885088B1 (en) Apparatus and method for processing color image using depth image
JP2015057698A (en) Color video processing system and method, and corresponding computer program
TWI545963B (en) Gamut mapping method and the related device thereof
CN109637437B (en) Image display control method, device, medium and display screen control system
JP2017044841A5 (en)
CN105763768A (en) Image processing method, device and system
US8861850B2 (en) Digital image color correction
JP2007220056A (en) Image processor
US8462171B2 (en) Saturation contrast image enhancement
US11223744B2 (en) Local color range selection
US8000553B2 (en) Acquiring a series of gradient stops from a bitmap source
Gonzalez et al. Morphological color images processing using distance-based and lexicographic order operators
KR101279576B1 (en) Method for generating panorama image within digital image processing apparatus
KR101149355B1 (en) Image conversion apparatus and image conversion method
CA2674104A1 (en) Method and graphical user interface for modifying depth maps
US20090268253A1 (en) Image processing apparatus
CN101409765B (en) Image-processing method and apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090210

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090210

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110603

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110726