JPH01314389A - Image processor - Google Patents

Image processor

Info

Publication number
JPH01314389A
JPH01314389A JP63145615A JP14561588A JPH01314389A JP H01314389 A JPH01314389 A JP H01314389A JP 63145615 A JP63145615 A JP 63145615A JP 14561588 A JP14561588 A JP 14561588A JP H01314389 A JPH01314389 A JP H01314389A
Authority
JP
Japan
Prior art keywords
data
hue
image
gradations
color
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.)
Granted
Application number
JP63145615A
Other languages
Japanese (ja)
Other versions
JP2740517B2 (en
Inventor
Toshihiro Kojima
敏裕 小島
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP63145615A priority Critical patent/JP2740517B2/en
Publication of JPH01314389A publication Critical patent/JPH01314389A/en
Application granted granted Critical
Publication of JP2740517B2 publication Critical patent/JP2740517B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain an illustration processing image of a natural image by decreasing the number of gradations of hue, lightness and saturation data which have been brought to color conversion, bringing them to reverse conversion to R, G and B data, and putting a black line into a turning point of colors of the hue, lightness and saturation data whose number of gradations has been decreased or the R, G and B data which have been brought to reverse conversion. CONSTITUTION:A color converting means 5 brings R, G and B data of a natural image to color conversion to hue, lightness and saturation data, and a gradation number decreasing means 8 decreases the number of gradations of the hue, lightness and saturation data which have been brought to color conversion. A reverse converting means 6 brings the hue, lightness and saturation data whose number of gradation has been decreased to reverse conversion to the R, G and B data. A black picture drawing means 9 puts a black line into a turning point of colors of the hue, lightness and saturation data whose number of gradations has been decreased or the R, G and B data which have been brought to reverse conversion. In such a way, from a natural image, anybody can form easily an illustration image by a simple operation.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理装置に関し、特に自然画像からイラス
ト化処理画像を形成する画像処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing apparatus, and particularly to an image processing apparatus that forms an illustrated processed image from a natural image.

[従来の技術] 従来、自然画像のイラスト化は人手により行われていた
0例えば、写真画像を紙上に投影し、その輪郭及び階調
が変化する位置を線図でトレースし、該線図上で路間−
色かつ同一階調の部分を絵の具でベタ塗りし又はパント
ンと呼ばれる色紙を貼り込む等により原画とは趣きの異
なるイラスト画像を作っていた。しかし、 ■ 略無限の色を限られた色数で表現し直すにはかなり
のセンスと経験を要する。
[Prior Art] Traditionally, illustrations of natural images have been done manually. For example, a photographic image is projected onto paper, and the positions where its outline and gradation change are traced using a line diagram. And Roma-
An illustration image with a different feel from the original was created by filling in parts of the same color and gradation with paint or pasting colored paper called Pantone. However, ■ Representing an almost infinite number of colors with a limited number of colors requires considerable sense and experience.

■ トレース作業、色塗り、色紙貼り作業は細かい手作
業であり高度な熟練と長時間を要する。
■ Tracing, coloring, and pasting on colored paper are detailed manual tasks that require a high level of skill and long hours.

■ イラスト画像を作成すると後の修正が困難であり、
ゆえに作業には細心の注意を要する。
■ Once an illustration image is created, it is difficult to modify it later.
Therefore, the work requires extreme caution.

等の欠点を有する。It has the following disadvantages.

一方、コンピュータ画像変換技術としては印刷業界にお
ける電子製版技術、写真ラボ業界におけるコンピュータ
写真画像処理を応用したプロラボ技術が知られている0
例えば、原稿画像をドラムスキャナ等の高精度スキャナ
で読み取り、この読取濃度信号に対して濃度表現修正(
γ補正)、階調設定、色修正、切抜合成等の処理を行い
、結果の信号でレーザープリンタやフィルムレコーダ等
の画像出力機を動作させて再生画像を得ている。
On the other hand, as computer image conversion technology, electronic plate making technology in the printing industry and professional laboratory technology that applies computer photo image processing in the photo lab industry are known.
For example, a document image is read with a high-precision scanner such as a drum scanner, and density expression correction (
γ correction), gradation settings, color correction, cropping and compositing, etc., and the resulting signals operate an image output device such as a laser printer or film recorder to obtain a reproduced image.

この種の装置では以下の事が行える。This type of device can do the following:

■ カラーフィルムの退色復元 ■ ハイライト、シャドウの階調を整え、色彩表現の誇
張 ■ 機器故障、投影ミス、現像ミス等の救済■ 画面内
の不必要物(電線、ゴミ、キズなと)の消去、補正 ■ クリエイティブイメージを表現し、イメージ領域を
拡大し、新しいデザインを創造する。
■ Restoration of fading color film ■ Adjusting the gradation of highlights and shadows to exaggerate color expression ■ Relief from equipment failures, projection errors, development errors, etc. ■ Removal of unnecessary objects (wires, dust, scratches, etc.) in the screen Erasure, correction ■ Express your creative image, expand the image area, and create new designs.

このような特殊効果は規則正しく配列されたモザイク処
理、1曲線を非現実的なものにするソラリゼーション処
理、又は1曲線を非連続にするボスタリゼーション処理
等で得られる。
Such special effects can be obtained by a regularly arranged mosaic process, a solarization process that makes one curve unrealistic, a bossarization process that makes one curve discontinuous, or the like.

ところで、このボスタリゼーション処理はイラストレー
ション処理に比較的近いと思われる。
By the way, this bossarization processing seems to be relatively close to illustration processing.

イラストレーションの特徴として色数が限定される事が
有るが、その意味では、階調数を減するボスタリゼーシ
ョン処理は条件を満足している。
A characteristic of illustrations is that the number of colors is limited, and in that sense, the bossarization process that reduces the number of gradations satisfies this condition.

コンピュータでカラー画像を扱うときは赤色(R)、緑
色(G)、青色(B)三原色のRlG、Bデータで1画
素を表現しており、ボスタリゼーション処理ではR,G
、Bデータの夫々を例えば256階調から5階調に減ら
す処理を行っている。これにより、原画では1600万
色以上ある色数が125(5’)色に減少する。
When handling color images on a computer, one pixel is represented by RlG, B data of the three primary colors red (R), green (G), and blue (B), and in bossarization processing, R, G
, B data is reduced from, for example, 256 gradations to 5 gradations. As a result, the number of colors, which is more than 16 million colors in the original picture, is reduced to 125 (5') colors.

第11図(A)は原画像データの一例としてオレンジ色
が左から右に少しずつ明るくなる場合のR,Gデータ(
B省略)の様子を示す図である。従来はこのR,Gデー
タを第11図(B)のような入出力関係によりボスタリ
ゼーション処理していた。第11図(C)は処理結果の
出力R9Gデータを示している。これを見ると、左端〜
A点では黄色、A点〜B点ではオレンジ色、B点〜C点
では赤味の強いオレンジ色、C点〜D点ではオレンジ色
、D点を過ぎると再び赤に近づくという如く色白体が変
化してしまう、従って、従来のボスタリゼーション処理
はイラスト化処理に向かない。
Figure 11 (A) shows R, G data (
FIG. Conventionally, this R and G data was subjected to bossarization processing using the input/output relationship as shown in FIG. 11(B). FIG. 11(C) shows output R9G data as a result of processing. If you look at this, the left side~
The color of a white body is yellow at point A, orange between points A and B, reddish orange between points B and C, orange between points C and D, and approaching red again after point D. Therefore, conventional bossarization processing is not suitable for illustration processing.

[発明が解決しようとする問題点コ 本発明は上述した従来技術の欠点を除去するものであり
、その目的とする所は、特別な技能を要せずに自然画像
のイラスト化処理画像が得られる画像処理装置を提供す
ることにある。
[Problems to be Solved by the Invention] The present invention eliminates the above-mentioned drawbacks of the prior art, and its purpose is to obtain illustration processed images of natural images without requiring special skills. An object of the present invention is to provide an image processing device that can perform

[課題を解決するための手段] 本発明の画像処理装置は上記の目的を達成するために、
自然画像のR,G、Bデータを色相、明度及び彩度デー
タに色変換する色変換手段と、前記色変換した色相、明
度及び彩度データの階調数を減じる階調数減少手段と、
前記階°調°数を減じた色相、明度及び彩度データをR
,G、Bデータに逆変換する逆変換手段と、前記階調数
を減じた色相、明度及び彩度データ又は逆変換後のRo
G、Bデータの色の変わり目に黒線な入れる黒描画手段
を備えることをその概要とする。
[Means for Solving the Problems] In order to achieve the above object, the image processing device of the present invention has the following features:
a color conversion means for color converting R, G, and B data of a natural image into hue, brightness, and saturation data; and a gradation number reduction means for reducing the number of gradations of the color-converted hue, brightness, and chroma data;
The hue, brightness and saturation data with the number of gradations reduced are R
, G, B data, and hue, brightness, and saturation data with the number of gradations reduced or Ro after the inverse conversion.
The outline of the system is to include a black drawing means for drawing a black line at the transition point between the colors of G and B data.

[作用] かかる構成において、色変換手段は自然画像のR,G、
Bデータを色相、明度及び彩度データに色変換する0階
調数減少手段は前記色変換した色相、明度及び彩度デー
タの階調数を減じる。
[Operation] In this configuration, the color conversion means converts R, G,
The 0 gradation number reduction means for color converting the B data into hue, brightness, and saturation data reduces the number of gradations of the color-converted hue, brightness, and saturation data.

逆変換手段は前記階調数を減じた色相、明度及び彩度デ
ータをR,G、Bデータに逆変換する。
The inverse conversion means inversely converts the hue, brightness, and saturation data with the reduced number of gradations into R, G, and B data.

黒描画手段は前記階調数を減じた色相、明度及び彩度デ
ータ又は逆変換後のR,G、Bデータの色の変わり目に
黒線な入れる。
The black drawing means inserts a black line at the color transition of the hue, brightness, and saturation data with the number of gradations reduced or the R, G, and B data after inverse conversion.

[実施例の説明] 以下、添付図面に従って本発明による実施例を詳細に説
明する。
[Description of Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は実施例の画像処理装置のブロック構成図である
0図において、1はコントロールプロセッサユニット(
CPU)であり、装置の主制御を行う、2はCPUメモ
リであり、CPU 1が実行する例えば第2図の制御プ
ログラムとその他制御のための各種パラメータが格納さ
れている。3はコマンドI10であり、不図示のキーボ
ード等からの画像処理コマンドを入力する。4はノイズ
除去装置であり、画像データからノイズデータな除去す
る。5は色変換演算装置であり、例えばHSL双六角錘
カラーモデルに従い原画のR,G、Bデータを色相H1
明度L1彩度SのH,L、Sデータに変換する。6は色
変換演算装置であり、同じ<)(SL双双六角力カラー
モデル従いH,L。
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment. In FIG. 0, 1 is a control processor unit (
2 is a CPU memory, which stores the control program, for example, shown in FIG. 2, executed by the CPU 1, and various other parameters for control. 3 is a command I10, and an image processing command is inputted from a keyboard (not shown) or the like. 4 is a noise removal device, which removes noise data from image data. 5 is a color conversion arithmetic unit, which converts the R, G, and B data of the original image into hue H1 according to the HSL bihexagonal pyramid color model, for example.
Convert to H, L, and S data with brightness L1 and saturation S. 6 is a color conversion calculation device, which is the same <) (H, L according to the SL bihexagonal force color model).

SデータをR,G、Bデータに逆変換する。7は階調変
換装置であり、実施例では彩度を高める(色調が鮮やか
になる)ように彩度Sデータの階調特性を変換する。8
は階調減少装置であり、本実施例では各H,L、Sデー
タを適当な階調数に減少させる。9は黒点抽出装置であ
り、各注目画素についてその周囲の画素と異なる色を持
つか否かを検出し、黒線描画を可能にする。10〜12
はイメージメモリであり、R,G、BまたはHlL、S
の各段階における画像データを格納する。
Convert S data back to R, G, B data. Reference numeral 7 denotes a gradation conversion device, which in the embodiment converts the gradation characteristics of the chroma S data so as to increase the chroma (make the color tone more vivid). 8
is a gradation reduction device, which in this embodiment reduces each H, L, and S data to an appropriate number of gradations. Reference numeral 9 denotes a black point extraction device, which detects whether each pixel of interest has a different color from its surrounding pixels, and enables black line drawing. 10-12
is an image memory, R, G, B or HIL, S
Stores image data at each stage.

例えば各8ビツト(256階調)を有し、メモリ10〜
12を合せると1画素当り24ビツトになる。13はビ
デオコントローラであり、イメージメモリ10〜12の
内容を読み出して外部にビデオ信号として出力する。外
部には不図示のビデオモニタ、ビデオプリンタ等を接続
可能である。
For example, each has 8 bits (256 gradations), and memory 10 to
If you add up 12 bits, you get 24 bits per pixel. A video controller 13 reads out the contents of the image memories 10 to 12 and outputs them to the outside as a video signal. A video monitor, video printer, etc. (not shown) can be connected to the outside.

14は画像データI10であり、不図示の画像入刃装置
からイメージメモリ10〜12に画像データを入力し又
は不図示の画像出力装置に画像データを出力する。
Reference numeral 14 denotes image data I10, and the image data is input from an image inserting device (not shown) to the image memories 10 to 12 or outputted to an image output device (not shown).

第2図は実施例のイラスト化処理手順のフローチャート
である。コマンドl103を介して画像処理指令が与え
られるとこの処理に入力する。
FIG. 2 is a flowchart of the illustration processing procedure of the embodiment. When an image processing command is given via command l103, it is input to this processing.

ステップSlではノイズ除去装置4によりイメージメモ
リ10〜12の原画のR,G、Bデータに対してノイズ
除去処理を行なう、ノイズ除去は例えば第7図のような
コンボリューションフィルタを使用してブロック画素(
3X3)の平均値を求め、その注目画素(例えば中心画
素)の画素データとする。
In step Sl, the noise removal device 4 performs noise removal processing on the R, G, and B data of the original image in the image memories 10 to 12.The noise removal is performed using a convolution filter as shown in FIG. (
3×3) is determined and used as the pixel data of the pixel of interest (for example, the center pixel).

ステップS2ではイメージメモリ10−12より1画素
分のR,G、Bデータ(各8ビツト)を読み出す。
In step S2, one pixel's worth of R, G, and B data (8 bits each) is read out from the image memory 10-12.

ステップS3では色変換演算装置5によりRlG、Bデ
ータを色相H11度L、彩度SのHlL、Sデータに変
換する。
In step S3, the color conversion calculation device 5 converts the RlG, B data into HlL, S data of hue H11 degrees L and saturation S.

第3図は実施例のR,G、B−H,L、S色変換処理手
順のフローチャートである0図において、ステップS3
1ではR,G、Bデータ中の最大のものをMAXとする
。ステップS32ではR,G、Bデータ中の最小のもの
をMINとする。ステップS33では明度データLを、
MAX+M I N L=                (1)とする。
FIG. 3 is a flowchart of the R, G, B-H, L, S color conversion processing procedure of the embodiment.
1, the maximum value among the R, G, and B data is set as MAX. In step S32, the smallest value among the R, G, and B data is set as MIN. In step S33, the brightness data L is
MAX+M I N L = (1).

ステップS34ではMAX=MINか否かを判別する。In step S34, it is determined whether MAX=MIN.

MAX=MINなら色相Hは存在しない(無彩色である
)からステップS35に進み、彩度S=0にする。また
色相Hは不定であるが、H=Oと定義する。またステッ
プS34の判別でMAX=MI Nでないときはステッ
プS36でMAX=Rか否かを判別する。MAX=Rな
ら赤色成分Rを多く含むのでステップS37で色相Hを
、 とする、(2)式において、色相データを8ビツト(2
56階調)で考えると、定数85は256/3、定数4
3は256/6を意味し、赤色成分Rを多く含む色相デ
ータが85を中心とする±43の範囲内に符号化される
ことを意味する。これを一般的な色相環の360度とし
てとらえると赤色成分を多く含む色相データが120度
を中心にして符号化されることを意味する。
If MAX=MIN, the hue H does not exist (it is an achromatic color), so the process advances to step S35, and the saturation S is set to 0. Further, although the hue H is undefined, it is defined as H=O. If MAX=MIN is not determined in step S34, it is determined in step S36 whether MAX=R. If MAX=R, it contains a large amount of red component R, so in step S37 the hue H is set as
56 gradations), constant 85 is 256/3, constant 4
3 means 256/6, meaning that hue data containing a large amount of red component R is encoded within a range of ±43 with 85 as the center. If this is considered as 360 degrees of a general hue circle, it means that hue data containing a large amount of red component is encoded around 120 degrees.

ステップS36の判別でMAX=Rでないときはステッ
プS38でMAX=Gか否かを判別する。
If MAX=R is not determined in step S36, it is determined in step S38 whether MAX=G.

MAX=GならステップS3Aで色相Hを、とする、定
数170は緑色成分Gを多く含む色相データが170.
角度にして240度、を中心に符号化されることを意味
する。またステップ338の判別でMAX=Gでもない
ときはステップS39で色相Hな、 とする、定数はOであり、青色成分Bを多く含む色相デ
ータがO11度にして0度、を中心にして符号化される
ことを意味する。ステップS3BではステップS33で
求めたしデータを127と比較し、L≦127ならステ
ップS3Cで彩度Sを、 とする。またL≦127でないならステップS3Dで彩
度Sを、 511−MAX−M I N とする。
If MAX=G, the hue H is set in step S3A.The constant 170 means that the hue data containing a large amount of green component G is 170.
This means that the angle is encoded around 240 degrees. Also, if MAX=G is not determined in step 338, the hue is determined to be H in step S39. means to be made into In step S3B, the data obtained in step S33 is compared with 127, and if L≦127, the saturation S is set as follows in step S3C. If L≦127, then in step S3D, the saturation S is set to 511-MAX-M I N .

第2図のステップS4に戻り、得られたH9L、Sデー
タのうち、Sデータは階調変換装置7に送られて階調特
性を変換される。ここでは、Sデータは色調が鮮やか(
彩度Sが高い)になるように変換される。変換式はSデ
ータを8ビツトとすると、例えば、 と変換する。
Returning to step S4 in FIG. 2, of the obtained H9L and S data, the S data is sent to the gradation conversion device 7, where its gradation characteristics are converted. Here, the S data has vivid colors (
The color saturation S is high). Assuming that the S data is 8 bits, the conversion formula is, for example, as follows.

ステップS5では得られたH、L、Sデータを階調減少
装置8に送り、階調減少処理を行う。
In step S5, the obtained H, L, and S data are sent to the gradation reduction device 8 to perform gradation reduction processing.

第9図は実施例の階調減少処理を説明する概念図である
0図において、横軸は入力O〜255 (256階調)
であり、縦軸0〜255中の適当な数階鋼に階調減少処
理される0例えば色相Hは122階調、明度りは4階調
に、彩度Sは3階調に減少される。色相Hの階調数が多
いのはイラスト化に際し−通りの基本色をカバーする為
である0色相が12段階あれば基本三原色とその補色及
びそれらの中間色が含まれる。また明度りが4段階あれ
ば、例えば暗いオレンジ、少し暗いオレンジ、少し明る
いオレンジ、明るいオレンジという色を表現できる。ま
た彩度Sが3段階あるので、くすんだオレンジ、普通の
オレンジ、鮮やかなオレンジという色を表現できる。こ
の場合に色数としては合計144色になる。
FIG. 9 is a conceptual diagram explaining the gradation reduction process of the embodiment. In FIG.
For example, the hue H is reduced to 122 gradations, the brightness is reduced to 4 gradations, and the saturation S is reduced to 3 gradations. . The reason why the number of gradations of hue H is large is to cover a wide range of basic colors during illustration.If there are 12 levels of 0 hues, the three basic primary colors, their complementary colors, and their intermediate colors are included. Furthermore, if there are four levels of brightness, for example, colors such as dark orange, slightly darker orange, slightly brighter orange, and brighter orange can be expressed. Also, since there are three levels of saturation S, you can express colors such as dull orange, normal orange, and bright orange. In this case, the total number of colors is 144.

ステップS6では色変換演算装置6でH,S。In step S6, the color conversion calculation device 6 outputs H and S.

L→R,G、B変換処理を行う。Perform L→R, G, B conversion processing.

第4図は実施例のH,S、L−R,G、B色変換処理手
順のフローチャートである。図において、ステップS6
1ではL>127か否かを判別し、L>127ならステ
ップS63でパラメータM2を、 M2=L+S−L*S        (8)とする、
これは(6)式の逆変換に相当し、パラメータM2は逆
変換で求めたMAXに相当する。
FIG. 4 is a flowchart of the H, S, LR, G, and B color conversion processing procedures of the embodiment. In the figure, step S6
1, it is determined whether L>127 or not, and if L>127, the parameter M2 is set as M2=L+SL*S (8) in step S63.
This corresponds to the inverse transformation of equation (6), and the parameter M2 corresponds to MAX determined by the inverse transformation.

またL>127でなければステップS62でパラメータ
M2を、 M2=L (1+s)         (9)とする
、これは(5)式の逆変換に相当する。
Moreover, if L>127, the parameter M2 is set to M2=L (1+s) (9) in step S62, which corresponds to the inverse transformation of equation (5).

ステップS64ではパラメータM1を、M1=2*L−
M2       (10)とする、これは(1)式の
逆変換に相当し、パラメータM1は逆変換で求めたME
Nに相当する。ステップS65ではMl (MIN)、
M2(MAX)、H(7)値を用いてRをF(Ml。
In step S64, the parameter M1 is set as M1=2*L−
M2 (10), which corresponds to the inverse transformation of equation (1), and the parameter M1 is the ME obtained by the inverse transformation.
Corresponds to N. In step S65, Ml (MIN),
M2(MAX), R using H(7) value F(Ml.

M2.H)で求め、GをF (Ml、M2.H+170
)で求め、BをF (Ml、M2.H+85)で求める
M2. H), and G is F (Ml, M2.H+170
) and find B as F (Ml, M2.H+85).

第5図は第4図のステップS65における関数F (X
、Y、Z)の演算処理手順のフローチャートである。
FIG. 5 shows the function F (X
, Y, Z).

図において、ステップS66では第3のパラメータZ 
(hueH)の値を43と比較し、Z<43ならステッ
プS69で、 F  (X、Y、Z) とする、尚、Xは(10)式(7)Ml、Yは(8)式
又は(9)式のM2に相当する。またz〈43でなけれ
ばステップS67でZを128と比較する。Z<128
ならステップS6Gに進み、F (X、Y、Z)=Y 
     (12)とする、またZ<128でなければ
ステップ868でZを170と比較する。Z<170な
らステップS6Bに進み、 F (X、Y、Z) とする、またZ<170でなければステップS6Aに進
み、 F (X、Y、Z)=X       (14)とする
In the figure, in step S66, the third parameter Z
The value of (hueH) is compared with 43, and if Z<43, in step S69, F (X, Y, Z) is set. This corresponds to M2 in equation (9). If z<43, Z is compared with 128 in step S67. Z<128
If so, proceed to step S6G and set F (X, Y, Z)=Y
(12), and if Z<128, Z is compared with 170 in step 868. If Z<170, proceed to step S6B and set F (X, Y, Z); if Z<170, proceed to step S6A, and set F (X, Y, Z)=X (14).

第2図に戻り、こうして逆変換されたR、G。Returning to Figure 2, R and G are thus inversely transformed.

BデータはステップS7でCPU1によりイメージメモ
リ10〜12に書き込まれる。
The B data is written into the image memories 10 to 12 by the CPU 1 in step S7.

ステップS8では以上の演算操作を全画素に対して行わ
せる。やがて全画素終了すると黒線付加処理に移る。こ
れは画像中の色の変わり目の境界画素を黒くすることに
より実現する。
In step S8, the above calculation operations are performed on all pixels. Eventually, when all pixels are completed, the process moves to black line addition processing. This is achieved by blackening the boundary pixels between colors in the image.

ステップS9ではCPUIがイメージメモリ10〜12
から注目画素とその隣接画素を読み出して黒線抽出装置
9に送る。
In step S9, the CPUI selects image memories 10 to 12.
The pixel of interest and its adjacent pixels are read out from the pixel of interest and sent to the black line extraction device 9.

第6図は注目画素Xと隣接画素A−Dの関係を示す図で
ある0例えば注目画素XのR,G、BデータをDR(X
)、Do  (X)、Da  (X) と表わすことに
する。注目画素Xを黒点と判断する条件は、隣接画素と
色が異なることであるから、例えば、 DR(X) ≠DR(A) D Fl  (X ) # D II  (B )Do
  (X)#Da  (A) Da  (X)≠D(1(B) DB  (x)≠D、(A) D B  (X ) ≠D B  (B )の何れか一
つ以上を満足する時に注目画素Xを黒点化すべき画素と
判断する。尚、この段階では色数が減少しているので隣
接画素との間の異動は容易に判別できる。
FIG. 6 is a diagram showing the relationship between the pixel of interest X and adjacent pixels A-D.
), Do (X), and Da (X). The condition for determining the pixel of interest
(X) #Da (A) Da (X)≠D (1(B) DB (x)≠D, when one or more of (A) DB (X) ≠ DB (B) is satisfied The pixel of interest X is determined to be a pixel to be converted into a black dot.At this stage, the number of colors has decreased, so changes between adjacent pixels can be easily determined.

第2図に戻り、ステップSllでは注目画素が黒点にす
べき画素か否かを判断し、黒点画素ならステップS12
でイメージメモリ10〜12の当該画素のR,G、Bの
値に黒データ(0)を書き込む、また黒点画素でないな
らステップS12をスキップしてステップS13に進み
、全画素の検査終了までステップ89〜S13の処理を
繰り返す。
Returning to FIG. 2, in step Sll it is determined whether the pixel of interest is a pixel that should be a black point, and if it is a black point pixel, step S12
Then black data (0) is written to the R, G, and B values of the relevant pixel in the image memories 10 to 12. If it is not a black point pixel, skip step S12 and proceed to step S13, and continue to step 89 until the inspection of all pixels is completed. - Repeat the process of S13.

尚、第6図の説明において、注目画素Xに対してこれと
比較する画素を右の画素Aと下の画素Bのみを選んだ理
由は、画像処理の順序が第8図に示すように画像の左上
から矢印方向に行なわれる為、黒点化処理は未処理の部
分と比較する必要があるためである。もしも左の画素C
1上の画素りと比較すると、例えば黒点化前にX、C,
Dは同じ色であったとしても、仮りに画素Cが黒点とな
ってしまっていたならば画素Xと画素Cは色が異なるこ
とになり、画素Xも黒点となり、結局画像全部が真っ黒
になってしまうからである。
In the explanation of FIG. 6, the reason why only pixel A on the right and pixel B below were selected as the pixels to be compared with the pixel of interest X is that the order of image processing is as shown in FIG. This is because the black dot processing is performed in the direction of the arrow from the upper left of the image, so it is necessary to compare the black dot processing with the unprocessed portion. If the left pixel C
Comparing with the pixels above 1, for example, X, C,
Even if D is the same color, if pixel C becomes a black dot, pixel X and pixel C will have different colors, and pixel X will also become a black dot, resulting in the entire image being completely black. This is because

また上述実施例では階調変換装置7と階調減少装置8を
独立に設けたが、例えば第10図の様な特性の変換を階
調減少装置8において行えば両変換を一挙に行える。
Further, in the above embodiment, the tone conversion device 7 and the tone reduction device 8 are provided independently, but if the conversion of the characteristics as shown in FIG. 10 is performed in the tone reduction device 8, for example, both conversions can be performed at once.

また上述実施例ではR,G、BデータからHlL、Sデ
ータに変換したが、他の方法として例えばH,V、S座
標系等の色相、明度、彩度を表現する色座標系でも実現
できる。
In addition, in the above embodiment, R, G, B data is converted to HlL, S data, but it can also be realized using a color coordinate system that expresses hue, brightness, and saturation, such as an H, V, and S coordinate system. .

また上述実施例では各ブロックの処理を専用装置で行な
ったが、汎用コンピュータにより全ての処理をプログラ
ミング化しても良い。
Further, in the above embodiment, each block was processed by a dedicated device, but all the processing may be programmed by a general-purpose computer.

また上述実施例ではH,L、SデータからRlG、Bデ
ータへの逆変換後に黒線挿入処理を行なったが、H,L
、Sデータの段階で黒線挿入処理を行なっても良い。
Further, in the above embodiment, black line insertion processing was performed after inverse conversion from H, L, S data to RlG, B data, but H, L
, black line insertion processing may be performed at the stage of S data.

[発明の効果] 以上述べた如く本発明によれば、自然画像から簡単な操
作で誰でも容易にイラスト画像を形成できる。
[Effects of the Invention] As described above, according to the present invention, anyone can easily create an illustration image from a natural image by simple operations.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は実施例の画像処理装置のブロック構成図、 第2図は実施例のイラスト化処理手順のフローチャート
、 第3図は実施例のR,G、B−H,L、S色変換処理手
順のフローチャート、 第4図及び第5図は実施例のH,S、L−R。 G、B色変換処理手順のフローチャート、第6図は注目
画素Xと隣接画素A−Dの関係を示す図、 第7図はコンボリューションフィルタの一例を示す図、 第8図は実施例の画像処理方向を示す図、第9図は実施
例の階調減少処理を説明する概念図、 第10図は実施例の階調特性変換処理と階調減少処理を
一挙に行う場合の階調変換特性を示す図、 第11図(A)〜(C)は従来のボスタリゼーション処
理を説明する図である。 図中、1・・・CPU、2・・・CPUメモリ、3・・
・−コマンドI10.4・・・ノイズ除去装置、5.6
・・・色変換演算装置、7・・・階調変換装置、8・・
・階調減少装置、9・・・黒点抽出装置、10〜12・
・・イメージメモリ、13・・・ビデオコントローラ、
14・・・画像データI10である。 第4図 第6図 第7図 第8図 第9図 第1Q図
Fig. 1 is a block diagram of the image processing device of the embodiment, Fig. 2 is a flowchart of the illustration processing procedure of the embodiment, and Fig. 3 is the R, G, B-H, L, S color conversion processing of the embodiment. Flow chart of the procedure, FIGS. 4 and 5 are H, S, and LR of the embodiment. A flowchart of the G and B color conversion processing procedure, Figure 6 is a diagram showing the relationship between the pixel of interest X and adjacent pixels A-D, Figure 7 is a diagram showing an example of a convolution filter, and Figure 8 is an image of the example. A diagram showing the processing direction, FIG. 9 is a conceptual diagram explaining the gradation reduction process of the embodiment, and FIG. 10 is a gradation conversion characteristic when the gradation characteristic conversion process and the gradation reduction process of the embodiment are performed at once. 11A to 11C are diagrams illustrating conventional bossarization processing. In the figure, 1... CPU, 2... CPU memory, 3...
・-Command I10.4...Noise removal device, 5.6
... Color conversion calculation device, 7... Gradation conversion device, 8...
・Gradation reduction device, 9...Sunspot extraction device, 10-12・
...Image memory, 13...Video controller,
14...Image data I10. Figure 4 Figure 6 Figure 7 Figure 8 Figure 9 Figure 1Q

Claims (1)

【特許請求の範囲】 自然画像からイラスト化処理画像を形成する画像処理装
置において、 自然画像のR、G、Bデータを色相、明度及び彩度デー
タに色変換する色変換手段と、 前記色変換した色相、明度及び彩度データの階調数を減
じる階調数減少手段と、 前記階調数を減じた色相、明度及び彩度データをR、G
、Bデータに逆変換する逆変換手段と、 前記階調数を減じた色相、明度及び彩度データ又は逆変
換後のR、G、Bデータの色の変わり目に黒線を入れる
黒描画手段を備えることを特徴とする画像処理装置。
[Scope of Claims] An image processing device that forms an illustrated processed image from a natural image, comprising: a color conversion unit that converts R, G, and B data of the natural image into hue, brightness, and saturation data; and the color conversion unit. gradation number reducing means for reducing the number of gradations of the hue, brightness and saturation data; and R, G
, an inverse conversion means for inversely converting into B data, and a black drawing means for inserting black lines at color transitions of the hue, brightness, and saturation data with the number of gradations reduced or the R, G, and B data after inverse conversion. An image processing device comprising:
JP63145615A 1988-06-15 1988-06-15 Image processing device Expired - Fee Related JP2740517B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63145615A JP2740517B2 (en) 1988-06-15 1988-06-15 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63145615A JP2740517B2 (en) 1988-06-15 1988-06-15 Image processing device

Publications (2)

Publication Number Publication Date
JPH01314389A true JPH01314389A (en) 1989-12-19
JP2740517B2 JP2740517B2 (en) 1998-04-15

Family

ID=15389128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63145615A Expired - Fee Related JP2740517B2 (en) 1988-06-15 1988-06-15 Image processing device

Country Status (1)

Country Link
JP (1) JP2740517B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1014688A2 (en) 1998-12-14 2000-06-28 Canon Kabushiki Kaisha Image processing method and apparatus, image processing system, and storage medium
US8818094B2 (en) 2011-09-21 2014-08-26 Olympus Corporation Image processing apparatus, image processing method and recording device recording image processing program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6073678A (en) * 1983-09-30 1985-04-25 株式会社東芝 Image display unit
JPS62100884A (en) * 1985-10-29 1987-05-11 Canon Inc Picture processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6073678A (en) * 1983-09-30 1985-04-25 株式会社東芝 Image display unit
JPS62100884A (en) * 1985-10-29 1987-05-11 Canon Inc Picture processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1014688A2 (en) 1998-12-14 2000-06-28 Canon Kabushiki Kaisha Image processing method and apparatus, image processing system, and storage medium
US7038810B1 (en) 1998-12-14 2006-05-02 Canon Kabushiki Kaisha Image processing method and apparatus, image processing system, and storage medium
US8818094B2 (en) 2011-09-21 2014-08-26 Olympus Corporation Image processing apparatus, image processing method and recording device recording image processing program

Also Published As

Publication number Publication date
JP2740517B2 (en) 1998-04-15

Similar Documents

Publication Publication Date Title
US7215813B2 (en) Method and apparatus for color correction
US5937089A (en) Color conversion method and apparatus
EP1237379B1 (en) Image processing for digital cinema
JP2001144989A (en) Image processor, image processing method, recording medium and computer program
JP2003092690A (en) Image data processing method, apparatus, storage medium and program
JP2002016818A (en) Color correction method and device, and recording medium
US5200832A (en) Color image recording device with color edit and conversion processing
US5949556A (en) Image processing suitable for changing the number of colors in an image
JPH0832827A (en) Gradation correction divice for digital image
JPH0230563A (en) Color image processing device and image processing
JPH01314389A (en) Image processor
JP2740516B2 (en) Image processing device
JP2844573B2 (en) Image processing method
JP2005269443A (en) Method and apparatus for image processing, program and recording medium
JP4396107B2 (en) Video display system
JP4189459B2 (en) Computer-readable recording medium having color matching method and color matching program recorded thereon
JPH0391087A (en) Image processor
JPH0223776A (en) Color correcting device and data calculating device for color correction
JPH02228653A (en) Cutting device
JP2001313839A (en) Image-processing method and unit, and recording medium
JPH0313062A (en) Picture processing unit
JPH0721829B2 (en) Image processing method
JPS639272A (en) Digital color picture editing device
JPH02228660A (en) Cutting device
JPH0265466A (en) Picture processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees