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

JPH0682392B2 - Image processing method - Google Patents

Image processing method

Info

Publication number
JPH0682392B2
JPH0682392B2 JP7821587A JP7821587A JPH0682392B2 JP H0682392 B2 JPH0682392 B2 JP H0682392B2 JP 7821587 A JP7821587 A JP 7821587A JP 7821587 A JP7821587 A JP 7821587A JP H0682392 B2 JPH0682392 B2 JP H0682392B2
Authority
JP
Japan
Prior art keywords
image
processing
data
color
explanation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP7821587A
Other languages
Japanese (ja)
Other versions
JPS63244179A (en
Inventor
剛 小林
裕行 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP7821587A priority Critical patent/JPH0682392B2/en
Priority to US07/174,979 priority patent/US5164825A/en
Publication of JPS63244179A publication Critical patent/JPS63244179A/en
Publication of JPH0682392B2 publication Critical patent/JPH0682392B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Studio Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Description

【発明の詳細な説明】 <発明の属する分野> 本発明は、オリジナル画像を入力し、入力画像を絵画的
画像に変換する画像処理方法に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method for inputting an original image and converting the input image into a pictorial image.

<従来技術> 従来、この種の画像処理方法の1つとして、印刷業界で
の電子製版技術、写真ラボ業界でのコンピユータ写真画
像処理を応用したプロラボ技術が知られている。
<Prior Art> Conventionally, as one of the image processing methods of this type, an electronic plate making technology in the printing industry and a professional lab technology applying computer photographic image processing in the photo lab industry are known.

例えば画像原稿上をレイアウトスキヤナ、レーザーカラ
ープリンタ等の高精度スキヤナにより光電走査に再生画
像を得る場合その工程の中間に信号処理部を設けて入力
濃度信号に対して濃度表現修正(γ補正)、階調設定、
色修正、切り抜き合成等の処理を行い以下の様な効果を
得ている。
For example, when a reproduced image is obtained by photoelectric scanning with a high-precision scanner such as a layout scanner or a laser color printer on the image original, a signal processing unit is provided in the middle of the process to correct the density expression (γ correction) for the input density signal. , Gradation setting,
The following effects are obtained by performing processing such as color correction and clipping synthesis.

カラーフイルムの退色復元。 Restoration of fading color film.

ハイライト、シヤドウの階調を整え、色彩表現の誇
張。
Adjust the gradation of highlights and shades to exaggerate the color expression.

機器故障、撮影ミス、現像ミス等の救済。 Relief of equipment failure, shooting error, development error, etc.

クリエイテイブイメージを表現し、イメージ領域の
拡大、新しいデザインを創造する。
Expressing creative images, expanding the image area, and creating new designs.

この様な特殊処理を実行する場合、フイルム原稿をカラ
ースキヤナの高精度スキヤナ又はカラー撮像管、カラー
撮像板(たとえばCCD)等により光電走査して得たフイ
ルム原稿の濃度信号又は輝度信号等のデジタル画像信号
を処理している。
When performing such special processing, a digital image such as a density signal or a luminance signal of the film original obtained by photoelectrically scanning the film original with a high-precision scanner of a color scanner or a color image pickup tube, a color image pickup plate (for example, CCD), etc. Processing the signal.

入力画像データから、絵画的画像を得るためには、R,G,
Bデータを入力し、その入力階調数よりも、階調数の少
ないデータに変換することが必要である。これは、絵の
具の数が限られているためである。
To obtain a pictorial image from the input image data, R, G,
It is necessary to input B data and convert it to data having a smaller number of gradations than the input gradation number. This is because the number of paints is limited.

しかしながら、その階調数の変換によって、R,G,Bそれ
ぞれのデータの値が等しくなってしまうと、それにより
画像が無彩色として出力されてしまう恐れがあった。
However, if the R, G, and B data values become equal due to the conversion of the number of gradations, the image may be output as an achromatic color.

一般に、絵画では無彩色部分は殆ど存在しないため、R,
G,Bデータが等しくなることで、無彩色部分が発生する
と絵画風の色再現ができないという欠点があった。
Generally, since there are almost no achromatic parts in paintings, R,
Since the G and B data are the same, there is a drawback that painting-like color reproduction cannot be performed if an achromatic portion occurs.

<目的> 本発明は上述した従来技術の欠点に鑑みなされたもので
あり、入力画像を絵画的画像に変換する際、データの階
調数変換によりR,G,Bデータが等しくなり、無彩色部分
が発生する場合は、BデータをR,Gデータよりも大きく
することで、絵画風の色再現が可能となる画像処理方法
の提供を目的とする。
<Purpose> The present invention has been made in view of the above-described drawbacks of the prior art. When converting an input image into a pictorial image, the R, G, B data become equal due to the gradation number conversion of the data, and an achromatic color is obtained. It is an object of the present invention to provide an image processing method that makes it possible to reproduce a painterly color by making B data larger than R and G data when a part occurs.

<実施例> 具体的に、本実施例で提案しようとしている処理方法
は、自然画像をフランスのスーラーに代表される新印象
派主義の画家が描く点描タツチの絵画風に変換させる画
像処理である。新印象派の点描絵画の特徴とは、絵具を
パレツト上で混ぜ合わせないで原色のままキヤンバスに
ドツトを描き、混色が必要な時はそれらの色を並べ、ま
た暗い色が必要な時は補色の色を並べることにより、少
し離れて見た時に、人間の網膜上で色が混ざって見えた
り、暗い色に見えたりさせるものである。
<Example> Specifically, the processing method to be proposed in this example is image processing for converting a natural image into a painting style of a pointillistic touch drawn by a neo-impressionist painter typified by Seurer in France. The characteristic of the new impressionist pointillism painting is that you do not mix the paints on the pallet and draw the dots on the canvas with the primary colors.When you need a color mixture, line up those colors, and when you need a dark color, you can add a complementary color. By arranging the colors, the colors appear mixed or dark on the human retina when viewed at a distance.

本実施例は以上の様な高度な絵画手法を画像処理で簡単
に行うものであり、これによって絵画を描く能力のない
人でも容易に新印象派の絵画が得られる様にするもので
ある。
In the present embodiment, the above-described advanced painting technique is easily performed by image processing, and thus a person who does not have the ability to draw a painting can easily obtain a neo-impressionist painting.

以下、図面を用いて本発明の一実施例を詳細に説明す
る。
An embodiment of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例である画像処理方法に用いら
れる装置の構成図を示したものである。
FIG. 1 is a block diagram of an apparatus used in an image processing method according to an embodiment of the present invention.

1はTVカメラとか、ドラムスキヤナー等の画像入力装置
であり、写真フイルムやプリント等の自然画像をセツト
すれば、ここでサンプリング、A/D変換されてデジタル
画像が作られる。このデジタル画像は、中央処理装置2
を介して、画像メモリ3に送られる。この画像メモリ3
にはオリジナル画像や処理画像や処理途中で必要なワー
ク用の画像が収納される。4は画像処理コマンドを入力
する為のキーボードとかデイジタイザー等のコマンド入
力装置で、キーボードの場合は希望する処理コマンドを
キーをたたいて入力し、デイジタイザーの場合はデイジ
タイザー上面に描かれたメニユーの中から希望するコマ
ンドの上にスタイラスペンをもってきて押したり、後述
モニタTV5上にメニユーが表示されている場合は、スタ
イラスペンの位置に合わせてモニタTV5上に表示されて
いるカーソルを希望するメニユーの上に動かして、その
位置でスタイラスペンを押せば良い。5はモニターTV
で、画像メモリ3の画像(オリジナル画像、処理画像、
ワーク画像)や、コマンド入力装置4から入力された画
像処理メニユーを必要に応じて表示することができる。
中央処理装置2は各種装置を制御すると共に、指示され
た処理コマンドに対してオリジナル画像データから色情
報を読み出し、処理画像を作成する。この結果、作成さ
れた処理画像はプリンター、フイルムレコーダー等の出
力装置6に送られて処理結果を出力する。
Reference numeral 1 is an image input device such as a TV camera or a drum scanner, and if a natural image such as a photographic film or a print is set, it is sampled and A / D converted to form a digital image. This digital image is processed by the central processing unit 2
Is sent to the image memory 3 via. This image memory 3
The original image, the processed image, and the image for the work necessary during the processing are stored in the. 4 is a command input device such as a keyboard or a digitizer for inputting image processing commands. In the case of a keyboard, a desired processing command is tapped to input a key, and in the case of a digitizer, it is drawn on the upper surface of the digitizer. Hold the stylus pen on the desired command from the menu and press it, or if the menu is displayed on the monitor TV5 described later, select the cursor displayed on the monitor TV5 according to the position of the stylus pen. Move it over the menu and press the stylus pen at that position. 5 is a monitor TV
Image of the image memory 3 (original image, processed image,
A work image) or an image processing menu input from the command input device 4 can be displayed as necessary.
The central processing unit 2 controls various devices and reads color information from the original image data in response to an instructed processing command to create a processed image. As a result, the processed image created is sent to the output device 6 such as a printer or a film recorder to output the processing result.

ところで画家が絵を描く場合、三原色を全部混ぜるよう
なことが起こると、濁った暗灰色になってしまうため
に、特に印象派の画家たちはパレツトに数種類の絵具し
か用意せず、それを直接もしくは白を混ぜ合わせたり、
飽和色にしてキヤンバス上に絵筆を運ぶ。
By the way, when painters paint a picture, if all three primary colors are mixed, it will become a muddy dark gray color, so Impressionist painters prepare only a few kinds of paint on the palette and use it directly or Mix white,
Carry a paintbrush on the canvas with a saturated color.

そしてキヤンバス上に小さな原色の点を併置して、ある
距離から眺めたときに、網膜の上で「混合色」として知
覚されるという手法をとった。また暗い部分の描写に関
しても、暗い色の絵具で描くのではなく、上述の原色ま
たは飽和色に近い色と、その補色の色を併置することに
より、暗部であることを表現するという手法をとった。
Then, a small primary color point was juxtaposed on the canvas, and when viewed from a certain distance, it was perceived as "mixed color" on the retina. Regarding the depiction of dark areas, instead of drawing with dark paint, a method of expressing that it is a dark area by arranging a color close to the above-mentioned primary color or saturated color and a complementary color thereof is used. It was

このことから明らかなように、キヤンバス上の筆のタツ
チ1つ1つは比較的原色に近い色をしているため、従来
のコンピユーター画像処理における絵画処理では、絵画
風的な色再現が実現されていない。さらに絵画の筆のタ
ツチは一様ではなく、画像のエツジラインに沿った方向
性を持つ筆のタツチによって描かれている場合が多い。
As is clear from this, each brush touch on the canvas has a color that is relatively close to the primary color, and thus painting-like color reproduction is realized in the painting processing in the conventional computer image processing. Not not. Furthermore, the brush strokes of paintings are not uniform, and are often drawn by brush strokes that have directionality along the edge lines of the image.

したがって本実施例では (1)原画の方向性を抽出し、方向性画像データを作成
する“方向性抽出処理” (2)絵画風的な色再現を行う“絵画風色再現処理” (3)(1)の方向性画像データを用い、筆のタツチに
方向性を持たせる“方向性付ランダムモザイク処理” (4)暗部を補色で再現する“暗部補色モザイク処理” から成り、(1),(2),(3),(4)の順で処理
を行うことにより、前記従来の欠点を補った絵画処理を
実現した。
Therefore, in the present embodiment, (1) "direction extraction processing" for extracting the directionality of the original image and creating directionality image data (2) "painting-like color reproduction processing" for performing painterly color reproduction (3) Using the directional image data of (1), "directional random mosaic processing" that imparts directionality to the touch of the brush (4) consists of "dark complementary color mosaic processing" that reproduces dark areas with complementary colors, (1), By performing the processing in the order of (2), (3), and (4), the painting processing that compensates for the above-mentioned conventional defects is realized.

以下、順を追って処理実施例を記す。Hereinafter, processing examples will be described step by step.

(1)方向性抽出処理 一般に絵画の筆のタツチは一様ではなく、画像のエツジ
ラインに沿った方向性を持つ筆タツチによって描かれて
いる場合が多い。したがって、方向性を持たせた筆タツ
チ処理を行うためには、まずオリジナル画像の絵がらの
方向性を抽出しなければならない。よって本実施例にお
いては、まずオリジナル画像に対して差分処理を行い、
エツジの方向性を抽出し、方向画像データを前もって作
成しておき、モザイク処理する際にこの方向画像データ
を用い、方向性のあるモザイクパターンを発生させるこ
とにより筆タツチを表現したモザイク画像を実現した。
(1) Directionality Extraction Process Generally, the brush strokes of a painting are not uniform, and are often drawn by brush strokes having a directionality along the edge line of an image. Therefore, in order to carry out the brush touch processing with directionality, it is necessary to first extract the directionality of the original image. Therefore, in this embodiment, first, the difference processing is performed on the original image,
The directionality of edges is extracted, direction image data is created in advance, and this direction image data is used when performing mosaic processing to generate a mosaic pattern with directionality to realize a mosaic image expressing brush strokes. did.

方向性抽出処理について第2−3図を基にその概略を説
明する。
The outline of the directionality extraction process will be described with reference to FIGS.

step1の説明)入力されるオリジナル画像はカラー画像
であるが、方向性を抽出するためには必ずしもカラー画
像である必要はない。したがって、入力のカラー画像を
白黒画像に変換する。
Explanation of step 1) The input original image is a color image, but it is not necessarily a color image in order to extract the directionality. Therefore, the input color image is converted into a monochrome image.

step2の説明)step1で作成された白黒画像にウインドウ
サイズm×nの差分処理を行い、方向画像データを作成
する。
Explanation of step 2) The black-and-white image created in step 1 is subjected to a difference process with a window size m × n to create direction image data.

次にstep1の白黒画像作成処理と、step2の方向画像デー
タ作成処理を詳細に説明する。
Next, the black-and-white image creating process of step 1 and the direction image data creating process of step 2 will be described in detail.

−白黒画像作成処理− 第2−4図を基に白黒画像作成処理について説明する。-Black and White Image Creating Process- The black and white image creating process will be described with reference to FIGS.

step11の説明)オリジナル画像データをメモリ−X(x
a,ya,za)にストアする。ここでZa=1=R,Za=2=G,Z
a=3=Bで、それぞれ赤成分画像,緑成分画像,青成
分画像を示す。
Explanation of step 11) Original image data is stored in memory -X (x
a, ya, za). Here, Za = 1 = R, Za = 2 = G, Z
a = 3 = B, respectively indicating a red component image, a green component image, and a blue component image.

step12の説明)出力される白黒画像データ用メモリXw
(xa,ya)のラインカウンタYを初期化するため1をセ
ツトする。
Explanation of step 12) Black-and-white image data memory Xw to be output
Set 1 to initialize the line counter Y of (xa, ya).

step13の説明)上記白黒画像データ用メモリのカラムカ
ウンタxを初期化するため1をセツトする。
Explanation of step 13) 1 is set to initialize the column counter x of the black and white image data memory.

step14の説明)メモリX(xa,ya,za)からオリジナル画
像データの赤,緑,青成分を入力し、次式に示すように
平均化を行い白黒画像データを算出する。
Explanation of step 14) The red, green and blue components of the original image data are input from the memory X (xa, ya, za) and averaged as shown in the following equation to calculate black and white image data.

W={X(x,y,1)+X(x,y,2)+X(x,y,3)}13 step15の説明)step14により算出された白黒画像データ
wを白黒画像メモリXw(xa,ya)に入力する。
W = {X (x, y, 1) + X (x, y, 2) + X (x, y, 3)} 13 Explanation of step 15) The black-and-white image data w calculated in step 14 is converted into the black-and-white image memory Xw (xa, ya).

step16,17の説明)カラムカウンタxをカウントアツプ
し、オリジナル画像のカラムサイズxaより大きくなるま
でstep14,15,16をくり返す。
Description of steps 16 and 17) The column counter x is counted up, and steps 14, 15, and 16 are repeated until the column size becomes larger than the column size xa of the original image.

step18,19の説明)ラインカウンタyをカウントアツプ
し、オリジナル画像のラインサイズyaより大きくなるま
でstep13,14,15,16,17,18をくり返す。これによって白
黒画像データが作成される。
Description of steps 18 and 19) The line counter y is counted up, and steps 13, 14, 15, 16, 17, and 18 are repeated until the line size becomes larger than the line size ya of the original image. As a result, monochrome image data is created.

−方向データ画像作成処理− 方向データ画像作成処理の概念について第2−1図、第
2−2図を基に説明する。
—Direction Data Image Creation Process— The concept of the direction data image creation process will be described with reference to FIGS. 2-1 and 2-2.

前記白黒画像作成処理によって出力された白黒画像Xw
(xa,ya)に対してa×bのウインドウを走査し、ウイ
ンドウ内(例えば5×5)の差分処理を行い方向を検知
する。ウインドウ内の差分処理と、その時に検知される
方向性を第2−1図に示す。この差分処理によって右45
゜方向(0方向の差分が最大)、横方向(1方向の差分
が最大)、左45゜方向(2方向の差分が最大)、縦方向
(3方向の差分が最大)の4方向の検知が可能である。
例として第2−2図のような絵がらの方向性検知の様子
を示す。
Black and white image Xw output by the black and white image creation process
The axb window is scanned with respect to (xa, ya), the difference processing within the window (for example, 5x5) is performed, and the direction is detected. Figure 2-1 shows the difference processing in the window and the directionality detected at that time. Right 45
Detection in 4 directions: ° direction (maximum difference in 0 direction), horizontal direction (maximum difference in 1 direction), left 45 ° direction (maximum difference in 2 directions), vertical direction (maximum difference in 3 directions). Is possible.
As an example, a state of detecting the directionality of a picture as shown in Fig. 2-2 is shown.

第2−2図に示される5×5のウインドウ内の差分処理
を行うと0の方向の差分値が最も大きいため、ウインド
ウの中心画素の方向性は右45゜と検出され、方向データ
として0を出力する。
When the difference processing in the 5 × 5 window shown in FIG. 2-2 is performed, the difference value in the direction of 0 is the largest, so the directionality of the center pixel of the window is detected as 45 ° to the right, and 0 is used as the direction data. Is output.

次に方向データ画像作成処理の処理内容を第2−5図を
基に説明する。
Next, the processing contents of the direction data image creation processing will be described based on FIG. 2-5.

step21の説明)白黒画像作成処理によって出力される白
黒画像データ用メモリXw(xa,ya)のラインカウンタy
を初期化するために をセツトする。
Explanation of step21) Line counter y of the black and white image data memory Xw (xa, ya) output by the black and white image creation processing
To initialize To set.

step22の説明)上記メモリのカラムカウンタxを初期化
するため をセツトする。
Explanation of step22) To initialize the column counter x of the above memory To set.

step23の説明)ウインドウサイズa×b内の4方向の差
分を次式の演算により算出する。
Explanation of step 23) Differences in four directions within the window size a × b are calculated by the following formula.

step24の説明)step23で求めたからまでの差分値の
絶対値の最大値IDmaxを求める。
Explanation of step 24) The maximum value IDmax of the absolute values of the difference values obtained from step 23 to is obtained.

step25の説明)方向データを方向データ画像用メモリXD
(x,y)に出力するが、1)差分値の絶対値の最大値が
の場合は方向データ画像用メモリXDに0を出力し、
2)最大値がの場合は1、3)最大値がの場合は
2、4)最大値がの場合は3を出力する。
Explanation of step25) Direction data is the direction data image memory XD
Output to (x, y), but 1) If the maximum absolute value of the difference value is, output 0 to the direction data image memory XD,
2) 1 is output when the maximum value is, 3) 2 is output when the maximum value is, and 4) 3 is output when the maximum value is.

step26,27の説明)カラムカウンターxをカウントアツ
プし、カウンタが より大きくなるまでstep23,24,25,26をくり返す。カウ
ンタのストツプの値が なのはa×bのウインドウで画像を走査するためであ
る。
Explanation of steps 26 and 27) Count up the column counter x and the counter will Repeat steps 23, 24, 25 and 26 until it becomes larger. The value of the counter stop is This is because the image is scanned in the axb window.

step28,29の説明)カラムカウンタyをカウントアツプ
し、カウンタが より大きくなるまでstep22,23,24,25,26,27,28をくり返
す。これにより、オリジナル画像の各画素位置での方向
性が決定する。
Explanation of steps 28 and 29) Count up the column counter y, and the counter Repeat steps 22,23,24,25,26,27,28 until it becomes larger. Thereby, the directivity at each pixel position of the original image is determined.

(2)絵画風色再現処理 キヤンバス上の筆のタツチ1つ1つは比較的原色に近い
色をしていることは前にも述べたが、絵画的な色再現を
実現するために本実施例では使用するR,G,Bデータを限
定し、さらに、限定されたR,G,Bデータを用いてオリジ
ナル画像データをなるべく正確に表現するようにした。
(2) Painting-like color reproduction processing As mentioned before, each brush touch on the canvas has a color that is relatively close to the primary color, but this was implemented to achieve painterly color reproduction. In the example, the R, G, B data used is limited, and the limited R, G, B data is used to represent the original image data as accurately as possible.

絵画風色再現処理について第3−1図,3−2図,3−3図
を基に説明する。第3−1図はこの処理の概略フローチ
ヤートである。
The painting-style color reproduction processing will be described with reference to FIGS. 3-1 to 3-2 and 3-3. Figure 3-1 is a schematic flow chart of this process.

step31の説明)オリジナル画像データをメモリX(xa,y
a,za)に入力する。ここで、Z1=R,Z2=G,Z3=Bで、順
に赤成分画像,緑成分画像,青成分画像を示す。
Explanation of step31) Original image data is stored in memory X (xa, y
a, za). Here, Z 1 = R, Z 2 = G, Z 3 = B, and the red component image, the green component image, and the blue component image are shown in order.

step32の説明)使用する色数を決定する。Explanation of step32) Determine the number of colors to use.

ここでオペレータはキーボード等の外部入力装置によっ
て色数iを入力する。例えばiが3と入力されればR,G,
Bはそれぞれ3色ずつとなり、R,G,Bの組み合わせは27通
りである。ただし、あまり色数iを大きくすると、徐々
にオリジナルの色再現に近ずくからiは3〜4が適当で
ある。そして、選ばれたiの値に応じて、あらかじめ用
意されたフアイルからR(l),R(i),G(l),G
(i),B(l),B(i)の値が読み出され、3×i色の
色が決定する。なお、ここで用意されたフアイル内の色
の値は、新印象派の色の使い方の特長を生かす為に原色
もしくは飽和色に近い色になる様に選んでおく。
Here, the operator inputs the number of colors i using an external input device such as a keyboard. For example, if i is input as 3, R, G,
Each B has 3 colors, and there are 27 combinations of R, G, and B. However, if the number of colors i is increased too much, the color reproduction gradually approaches the original color, so i is preferably 3 to 4. Then, according to the selected value of i, R (l), R (i), G (l), G
The values of (i), B (l), and B (i) are read out, and the 3 × i color is determined. In addition, the color values in the file prepared here are selected so as to be a color close to the primary color or the saturated color in order to take advantage of the features of the usage of the neo-impressionist color.

step33の説明)オペレータによりキーボード等の外部入
力装置によって色分解画像出力画素ブロツクサイズm,n
を入力する。例えばm=3,n=3と入力すれば、オリジ
ナル画像の1画素がstep36の色分解処理により3×3の
画素ブロツクとして出力される。
Explanation of step 33) Color separation image output pixel block size m, n by an operator using an external input device such as a keyboard
Enter. For example, if m = 3 and n = 3 are input, one pixel of the original image is output as a 3 × 3 pixel block by the color separation processing of step 36.

step34の説明)メモリX(xa,ya,za)のラインカウンタ
yに1を代入する。
Explanation of step 34) 1 is substituted into the line counter y of the memory X (xa, ya, za).

step35の説明)メモリX(xa,ya,za)のカラムカウンタ
xに1を代入する。
Explanation of step 35) 1 is substituted into the column counter x of the memory X (xa, ya, za).

step36の説明)step12によって限定された色数によって
オリジナル画像データを表現するための処理で、詳細は
後述する。
Explanation of step 36) This is a process for expressing the original image data by the number of colors limited in step 12, and the details will be described later.

step37の説明)step36によって出力される画素ブロツク
データをそのまま出力すると、画素ブロツク単位が目立
ってしまうために、画素ブロツク単位内のならびをラン
ダムにすることにより、画素ブロツク単位ごとの目立ち
を軽減するための処理で、詳細は後述する。
(Explanation of step37) If the pixel block data output in step36 is output as it is, the pixel block unit becomes conspicuous. Therefore, by making the arrangement within the pixel block unit random, the conspicuousness for each pixel block unit is reduced. The details of this process will be described later.

step38の説明)カラムカウンタxをカウントアツプす
る。
Description of step 38) Count up the column counter x.

step39の説明)カラムカウンタがxaより大きくなるまで
step6,7,8をくり返す。
Explanation of step39) Until the column counter becomes larger than xa
Repeat steps 6, 7, and 8.

step40の説明)ラインカウンタyをカウントアツプす
る。
Explanation of step 40) The line counter y is counted up.

step41の説明)ラインカウンタyがyaより大きくなるま
でstep6,7,8,9,10をくり返す。
Explanation of step 41) Steps 6, 7, 8, 9, and 10 are repeated until the line counter y becomes larger than ya.

次に色分解処理の原理について説明する。Next, the principle of color separation processing will be described.

色分解処理とは限定された色数で、なるべくオリジナル
画像のデータを正しく再現しようとするもので、オリジ
ナル画像の1画素を限定された色数を複数画素使用する
ことにより表現しようとするものである。例えば、オリ
ジナル画像1画素を色分解処理時に2×2画素で出力し
た場合について説明する。
The color separation process is a process to reproduce the data of the original image as accurately as possible with a limited number of colors, and to represent one pixel of the original image by using a limited number of pixels. is there. For example, a case where one pixel of the original image is output with 2 × 2 pixels at the time of color separation processing will be described.

オリジナル画像データのR,G,BデータをそれぞれX=
(x,y,1)=70,X=(x,y,2)=140,X=(x,y,3)=180
(以下(70,140,180)の様に記す)とし、色数i=3
(50,100,200)とする。
R = G of original image data
(X, y, 1) = 70, X = (x, y, 2) = 140, X = (x, y, 3) = 180
(The following is written as (70,140,180)), and the number of colors i = 3
(50,100,200).

表1は、このX=(70,140,180)の1画素のデータを色
数i=3で2×2画素で処理した場合を示している。
Table 1 shows a case where the data of one pixel of X = (70,140,180) is processed by 2 × 2 pixels with the color number i = 3.

表1における演算内容は出力データの1画素目はオリジ
ナル画像データ(70,140,180)に最も近い色数データは
(50,100,200)であるから、この値に決定する。ここ
で、オリジナル画像データとのエラー量はRは+20,Gは
−40,Bは+20である。よって次の出力を求める時、この
誤差量を考慮する。つまりRは20不足したわけだからオ
リジナル画像データのRの70に20を加えておき、この値
に最も近い色数データを抽出する。G,Bについても同様
な処理を行う。そして、この演算を2×2画素分くり返
す。
In the calculation contents in Table 1, the first pixel of the output data is the color number data closest to the original image data (70,140,180) is (50,100,200), so this value is determined. Here, the error amount with the original image data is +20 for R, -40 for G, and +20 for B. Therefore, when obtaining the next output, this error amount is taken into consideration. That is, since R is 20 short, 20 is added to 70 of R of the original image data, and the color number data closest to this value is extracted. Similar processing is performed for G and B. Then, this calculation is repeated for 2 × 2 pixels.

このようにして出力されたデータを色分解画像データと
呼ぶことにするが、オリジナル画像1画素が2×2画素
に出力されるため、出力画像サイズも2倍×2倍にな
る。もしオリジナル画像1画素を色分解処理時に1画素
で出力すると、オリジナル画像データに対する出力画像
データの出力エラーはそれぞれ表2に示すように である。しかし色分解処理時に2×2画素として処理し
た場合、オリジナル画像データも1画素を2×2画素に
拡大して考えればその出力エラーは で、前者に比べはるかに小さくなっている。つまり、色
分解処理時のオリジナル画像に対する出力画像を大きく
とることによって、限定された色数でもオリジナル画像
を比較的少ないエラーで表現できるわけである。
The data thus output will be referred to as color-separated image data, but since one pixel of the original image is output to 2 × 2 pixels, the output image size is also doubled × 2 times. If one pixel of the original image is output by one pixel during color separation processing, the output error of the output image data with respect to the original image data is as shown in Table 2. Is. However, if 2 × 2 pixels are processed during color separation processing, the output error of the original image data will also be increased if one pixel is expanded to 2 × 2 pixels. So it is much smaller than the former. That is, by making the output image larger than the original image at the time of color separation processing, the original image can be expressed with a relatively small number of errors even with a limited number of colors.

次に第3−2図のフローチヤートを用いて前述色分解処
理を説明する。
Next, the color separation process will be described with reference to the flow chart of FIG. 3-2.

step61の説明)オリジナル画像データ累積値カウンタRs
um,Gsum,Bsum、出力データ累積値カウンタRout,Gout,Bo
utをクリアする。
Explanation of step61) Original image data cumulative value counter Rs
um, Gsum, Bsum, output data cumulative value counter Rout, Gout, Bo
Clear ut.

step62の説明)出力画素ブロツクラインsyに1を代入す
る。
Explanation of step 62) 1 is assigned to the output pixel block line sy.

step63の説明)出力画素ブロツクカラムカウンタsxに1
を代入する。
Explanation of step63) 1 for output pixel block column counter sx
Is substituted.

step64の説明)最初のループはstep67へジヤンプする。Explanation of step64) The first loop jumps to step67.

step65,66の説明)オリジナル画像データ及び出力デー
タの累積値を求める。
Explanation of steps 65 and 66) Obtain the cumulative value of the original image data and the output data.

step67の説明)前ピクセル(画素)分までのオリジナル
画像データと、出力データとの誤差量を計算し、この誤
差量とオリジナル画像データを加算し、出力データを決
定するための目標値とする。
Explanation of step 67) The error amount between the original image data up to the previous pixel (pixel) and the output data is calculated, and this error amount and the original image data are added to obtain the target value for determining the output data.

step68の説明)前記目標値に最も近い色数データをR,G,
Bの順に求め、出力データとする。
Explanation of step68) The color number data closest to the target value is R, G,
Obtain in the order of B and use as output data.

step69の説明)step68で出力されたデータのR,G,B各デ
ータが等しい場合は、無彩色として出力されてしまう。
しかし一般に絵画の色の使い方をみると、無彩色部はほ
とんど存在せず、特に点描画はその最たるものであり、
絵画における無彩色部は濃い青えのぐを用いて表現する
のが一般的である。よって、より絵画風に近ずけるため
にstep68の出力データが無彩色と判断された場合、青成
分を少し強めることにより無彩色表現を行う。
(Explanation of step69) If the R, G, and B data of the data output in step68 are the same, they are output as achromatic colors.
However, in general, when you look at how to use colors in paintings, there are almost no achromatic parts, and especially dot painting is the most
It is common to express achromatic parts in paintings using dark blue enugu. Therefore, when the output data of step 68 is judged to be achromatic in order to make it more like a painting, achromatic expression is performed by slightly strengthening the blue component.

step610の説明)以上の手法により出力された色分解画
像データを色分解画像サブメモリmX(sx,sy,z)へ出力
する。
Explanation of step 610) The color separated image data output by the above method is output to the color separated image sub-memory mX (sx, sy, z).

step611,612の説明)出力画素ブロツクカラムカウンタ
をカウントアツプし、カウンタがmより大きくなるまで
step64,65,66,67,68,69,610,611をくり返す。
Description of steps 611 and 612) Count up the output pixel block column counter until the counter becomes larger than m.
Repeat steps 64,65,66,67,68,69,610,611.

step613,614の説明)出力画素ブロツクラインをカウン
トアツプし、カウンタがnより大きくなるまでstep64,6
5,66,67,68,69,610,611,612,613をくり返す。
Explanation of steps 613 and 614) Count up the output pixel block line, and repeat steps 64 and 6 until the counter becomes larger than n.
Repeat 5,66,67,68,69,610,611,612,613.

次に第3−1図step37のランダム座標変換処理について
第3−3図を用いて説明する。
Next, the random coordinate conversion process of step 37 in FIG. 3-1 will be described with reference to FIG. 3-3.

絵画風色再現処理は出力をm×nの画素単位で出力する
ために、そのまま出力すると画素ブロツク単位が目立っ
てしまうために、画素ブロツク単位ごとにブロツク単位
内のならびをランダムにする必要がある。
In the painting-like color reproduction processing, since the output is output in m × n pixel units, if it is output as it is, the pixel block units become conspicuous. Therefore, it is necessary to randomize the arrangement within the block units for each pixel block unit. .

step71,72の説明)出力画素ブロツクラインカウンタ、
カラムカウンタsy,sxに1を代入する。
Explanation of steps 71 and 72) Output pixel block line counter,
Substitute 1 for the column counters sy and sx.

step73の説明)乱数を発生させて、色分解画像サブメモ
リのランダム座標(IX,IY)を求める。この場合IX,IYが
出力画素ブロツクサイズm×nの範囲内に入るように次
式により制御を行う。
Explanation of step73) Random numbers are generated to obtain random coordinates (IX, IY) in the color separation image sub-memory. In this case, control is performed by the following equation so that IX and IY fall within the range of the output pixel block size m × n.

Xadress=INT(RAN(1)・m・n)+1 IX=MOD(Xadress,m)+1 IY=INT(Xadress/n)+1 step74の説明)色分解画像サブメモリのランダム座標を
求める際に、同じランダム座標が算出されることがある
ため、同値のランダム座標が算出された場合は異なるラ
ンダム座標が出力されるまで乱数を発生させる。
Xadress = INT (RAN (1) ・ m ・ n) +1 IX = MOD (Xadress, m) +1 IY = INT (Xadress / n) +1 explanation of step74) Same when calculating random coordinates of color separation image sub-memory Since random coordinates may be calculated, when random coordinates having the same value are calculated, random numbers are generated until different random coordinates are output.

step75の説明)出力画素ブロツクサイズm,nが1より大
きい場合にはオリジナル画像の1画素がm×n画素に出
力されるため、オリジナル画像データのメモリXのアド
レスと出力画像のメモリXoutは1対1に対応しない。よ
って、ここでは出力画像メモリXoutのアドレスを次式の
演算により求め、step73,74で算出されたランダム座標
(IX,IY)の色分解画像サブメモリの値を入力する。
Explanation of step75) When the output pixel block size m, n is larger than 1, one pixel of the original image is output to m × n pixels, so the address of the original image data memory X and the output image memory Xout are 1 Does not correspond to one-to-one. Therefore, here, the address of the output image memory Xout is obtained by the calculation of the following equation, and the value of the color separation image sub-memory of the random coordinates (IX, IY) calculated in steps 73 and 74 is input.

JX=m(x−1)+sx JY=n(y−1)+sy ただし JXは出力画像メモリ カラム アドレス JYは出力画像メモリ ライン アドレス step76,77の説明)出力画像ブロックカラムカウンタを
カウントアツプし、カラムカウンタが出力画素ブロック
のカラムサイズmより大きくなるまでstep73,74,75,76
をくり返す。
JX = m (x-1) + sx JY = n (y-1) + sy where JX is the output image memory column address JY is the output image memory line address Explanation of step76,77) Output image block Column counter is counted up and the column Until the counter becomes larger than the column size m of the output pixel block step73,74,75,76
Repeat.

step78,79の説明)出力画像ブロツクラインカウンタを
カウントアツプし、ラインカウンタが出力画素ブロツク
のラインサイズnより大きくなるまでstep72,73,74,75,
76,77,78をくり返す。
(Explanation of steps 78, 79) The output image block line counter is counted up, and steps 72, 73, 74, 75, until the line counter becomes larger than the line size n of the output pixel block.
Repeat 76, 77, 78.

(3)方向性付ランダムモザイク処理 方向性付ランダムモザイク処理について第4−1図,第
4−2図,第4−3図を基に説明する。
(3) Directional Random Mosaic Processing Directional random mosaic processing will be described with reference to FIGS. 4-1, 4-2, and 4-3.

step81の説明)前記絵画風色再現処理によって作成され
た色分解画像データをメモリXout(JX,JY,JZ)にストア
する。ただしJZ=1は赤成分画像データ、JZ=2は緑成
分画像データ、JZ=3は青成分画像データを示す。尚、
メモリXout(JX,JY,JZ)にはオリジナル画像データX
(xa,ya,za)を処理したデータが格納されており、例え
ば1画素3×3で処理した場合、XoutにはXの9倍のデ
ータが格納されている。
Explanation of step 81) The color separated image data created by the painting-style color reproduction processing is stored in the memory Xout (JX, JY, JZ). However, JZ = 1 indicates red component image data, JZ = 2 indicates green component image data, and JZ = 3 indicates blue component image data. still,
Original image data X in memory Xout (JX, JY, JZ)
Data obtained by processing (xa, ya, za) is stored. For example, when processing is performed with 1 pixel 3 × 3, Xout stores 9 times the data of X.

step82の説明)方向性抽出処理によって作成された方向
画像データをメモリXD(xa,ya)にストアする。
Description of step 82) The direction image data created by the directionality extraction processing is stored in the memory X D (xa, ya).

step83の説明)ここで演算に必要なパラメータの設定を
行なう。あらかじめパラメータメモリに格納しておいた
モザイクパターンの種別番号及びその画素ブロツクサイ
ズm′,n′を入力する。第4−2図に例としてモザイク
パターンが比較的楕円な形をした画素ブロツクサイズ
m′,n′が5×5の各方向の画素ブロツクを示す。尚、
第4−2図では5×5のブロツクサイズ内9画素が1と
なっているモザイクパターンを示しているがこの限りで
はない。さらに画面内に占めるモザイクの面積率を入力
する。例えばオペレータがこの面積率を80%にしたけれ
ばキーボード等のキー入力によって80と入力すれば次式
よりモザイクの画素ブロツク発生回数を決定する。
Explanation of step 83) Here, the parameters necessary for the calculation are set. A mosaic pattern type number and its pixel block sizes m ', n'stored in the parameter memory in advance are input. As an example, FIG. 4-2 shows pixel blocks in each direction in which the pixel block sizes m ′ and n ′ are 5 × 5 in which the mosaic pattern has a relatively elliptical shape. still,
FIG. 4-2 shows a mosaic pattern in which 9 pixels in the block size of 5 × 5 are 1, but the number is not limited to this. Further, enter the area ratio of the mosaic occupied on the screen. For example, if the operator wants to set this area ratio to 80%, he or she inputs 80 by key input on a keyboard or the like, and the number of times of occurrence of mosaic pixel block is determined by the following equation.

NSTOP=(JX/m′)×(JY/n′)×p/100 但しJX,JY:色分解画像サイズ m′,n′:モザイク画像ブロツクサイズ p:キー入力面積率(%) NSTOP:モザイク画素ブロツク発生数 step84の説明)モザイク画素ブロツク発生カウンタに1
を代入する。
NSTOP = (JX / m ′) × (JY / n ′) × p / 100 where JX, JY: color separation image size m ′, n ′: mosaic image block size p: key input area ratio (%) NSTOP: mosaic Number of pixel block occurrences step84) 1 for mosaic pixel block occurrence counter
Is substituted.

step85の説明)乱数を発生させて、モザイクを重ねる際
の中心値(xR,yR)を求める。この場合、xR,yRの値が画
像の領域内に入るように乱数の範囲を設定する。本実施
例ではxR≦JX,yR≦JYとなる。
Explanation of step85) Generate a random number and find the center value (x R , y R ) when the mosaics are superimposed. In this case, the range of random numbers is set so that the values of x R and y R fall within the area of the image. In this embodiment, x R ≤JX and y R ≤JY.

step86の説明)step85で算出されたモザイクを重ねる際
の中心値(xr,yr)に対応する方向画像データのメモリ
アドレスを計算する。絵画風色再現処理の際オリジネル
画像の1ピクセルがm×nのブロツク単位ごとに出力さ
れる。もちろんm=1,n=1の場合はオリジナル画像と
色分解画像は1対1に対応するから、方向画像データと
も1対1に対応する。しかしm>1,n>1の場合は色分
解画像は拡大されて出力されるために方向画像データと
1対1に対応しないために次式により中心値(xR,yR
に対応する方向画像データメモリアドレスix,iyを計算
する。
Explanation of step86) The memory address of the directional image data corresponding to the center value (xr, yr) at the time of overlapping the mosaics calculated in step85 is calculated. In the painting-like color reproduction processing, one pixel of the original image is output for each m × n block unit. Of course, when m = 1 and n = 1, the original image and the color-separated image have a one-to-one correspondence, and therefore the direction image data also have a one-to-one correspondence. However, when m> 1 and n> 1, the color separation image is enlarged and output, so there is no one-to-one correspondence with the direction image data. Therefore, the center value (x R , y R ) is calculated by the following equation.
The directional image data memory address ix, iy corresponding to is calculated.

ix=xR/m,iy=yR/n step87の説明)step86にて求めたアドレスix,iyの方向
画像データXD(ix,iy)をモザイクの中心値(xR,yR)の
方向データとする。
ix = x R / m, iy = y R / n Explanation of step87) Direction image data X D (ix, iy) of address ix, iy obtained in step 86 is set to the center value (x R , y R ) of the mosaic. Use as direction data.

step88の説明)方向データに対応するモザイク画素パタ
ーンをパラメータメモリから得る。第4−2図に方向デ
ータとモザイク画素パターンを示す。
Explanation of step 88) The mosaic pixel pattern corresponding to the direction data is obtained from the parameter memory. Figure 4-2 shows the direction data and mosaic pixel pattern.

step89の説明)モザイク画素パターンと色分解画像デー
タから出力モザイク画素データを求め色分解画像データ
メモリへ出力する。これを第4−3図を基に説明する。
Explanation of step 89) Output mosaic pixel data is obtained from the mosaic pixel pattern and the color separated image data and is output to the color separated image data memory. This will be described with reference to FIG. 4-3.

第4−3図は方向データが0の場合を示すもので、方向
データ0に対応するモザイク画像パターンは(b)に示
すような右45゜に傾く5×5のモザイク画素パターンで
ある。ここで画素パターン中の1のところは、演算を行
ない座標(xR,yR)の色分解画像データを代入しデータ
を書きかえ、0のところは元のイメージのままの値とす
る。
FIG. 4-3 shows the case where the direction data is 0, and the mosaic image pattern corresponding to the direction data 0 is a 5 × 5 mosaic pixel pattern inclined to the right 45 ° as shown in FIG. Here, at 1 in the pixel pattern, color separation image data of coordinates (x R , y R ) is substituted by performing calculation, and the data is rewritten, and at 0, the original image value is maintained.

step810の説明)モザイク画素ブロツク発生カウンタを
カウントアツプする。
Explanation of step 810) Count up the mosaic pixel block generation counter.

step811の説明)モザイク画素発生回数分、処理を行な
ったならば方向性付ランダムモザイク処理を終了する。
Description of step 811) If the processing has been performed for the number of times of occurrence of mosaic pixels, the directional random mosaic processing is ended.

(4)暗部補色モザイク処理 次に、暗部の補色モザイク処理について第4−4図、第
4−5図のフロートヤートを用いて説明する。
(4) Dark Part Complementary Color Mosaic Process Next, the dark part complementary color mosaic process will be described with reference to the float charts of FIGS. 4-4 and 4-5.

このフローチヤートにおいて前述の方向付ランダムモザ
イク処理の第4−1図のフローチヤートと同一処理内容
のステツプに関しては、同一のstep番号を付け、異なる
処理内容の部分のみ説明する。
In this flow chart, steps having the same processing contents as those of the flow chart of FIG. 4-1 of the above-described direction-oriented random mosaic processing are given the same step numbers and only different processing contents will be described.

step82′の説明)暗部の判定に、明度情報が必要な為、
第2−4図に示した白黒画像データを白黒画像メモリXW
(xa,ya)に入力する。
(Explanation of step 82 ′) Because brightness information is required to judge dark areas,
Monochrome black and white image data shown in 2-4 FIG image memory X W
Enter in (xa, ya).

step83′の説明)このstepではパラメータの設定を行な
う。ここで必要な第1のパラメータは、暗部であるか否
かを判定する為のスレシホールドレベルDPであり、これ
をキーボード等のコマンド入力装置から入力する。ここ
で入力する値は、明度を直接入力しても良いし、画像全
体の暗部と判定すべき割合を入力し、画像のヒストグラ
ムから、演算して判定すべき明度を求める方法でも良
い。次にもう1つここで必要なパラメータは、暗部モザ
イクの発生個数NSTOP′であり、この入力も、キーボー
ド等のコマンド入力装置から、個数を直接入力する方法
でも良いし、第4−1図のフローのステツプ3で求めた
モザイク画素発生回数NSTOPに対する割合(例えば30%
とか50%)を入力する方法でも良い。
(Explanation of step 83 ') In this step, parameters are set. The first parameter required here is a threshold level DP for determining whether or not it is a dark part, and this is input from a command input device such as a keyboard. As the value to be input here, the lightness may be directly input, or a method of calculating the lightness to be determined from the histogram of the image by inputting the ratio to be determined as the dark part of the entire image may be used. Next, another parameter required here is the number of dark mosaics NSTOP ', which can also be input directly from a command input device such as a keyboard, or as shown in FIG. Ratio to the number of mosaic pixel occurrences NSTOP obtained in step 3 of the flow (eg 30%
Or 50%) can be entered.

step86′の説明)step85で作成したランダムな座標の明
度XW(ix,iy)が、暗部スレシホールドレベルDPより明
るいか暗いかを、つまりDPより小さいか大きいかを判定
し、明るい場合は、暗い部分が選ばれるまで、ランダム
の発生を繰返す。
(Explanation of step86 ′) It is determined whether the brightness X W (ix, iy) of the random coordinates created in step 85 is brighter or darker than the dark part threshold level DP, that is, smaller or larger than DP. , Random generation is repeated until a dark area is selected.

step88′の説明)補色でモザイク処理を行なう為に、座
標値(xR,yR)の現在の色分解画像データの色の補色を
求める。補色を求める処理フローは、第4−5図に示し
たものであり、まずR,G,Bの色をH・L・S(色相・明
度・彩度)に1度変換し(step813)、次に色相を180゜
反転させ(step814)、この反転されたH・L・Sを再
度R,G,Bに変換する(step815)ことによって求める。な
お、R,G,BからH・L・Sに変換する処理、及びH・L
・SからR,G,Bに変換する方法は公知のマトリツクス演
算により求める事ができる。なお、ここでは、方向付ラ
ンダムモザイク処理後の色分解画像データの色の補色を
求めたが、第3−2図で作成したオリジナルの色分解画
像データを用いて補色を求めてもかまわない。
(Description of step 88 ') In order to perform mosaic processing with complementary colors, the complementary color of the color of the current color-separated image data having the coordinate value (x R , y R ) is obtained. The processing flow for obtaining complementary colors is shown in FIG. 4-5. First, R, G, B colors are once converted into H, L, S (hue / brightness / saturation) (step 813), Next, the hue is inverted by 180 ° (step 814), and the inverted H, L, and S are converted again into R, G, and B (step 815) to obtain the value. In addition, the process of converting from R, G, B to H / L / S, and H / L
The method of converting from S to R, G, B can be obtained by a known matrix calculation. Although the complementary color of the color-separated image data after the direction random mosaic processing is obtained here, the complementary color may be obtained using the original color-separated image data created in FIG. 3-2.

step89′の説明)ステツプ88′で求めた補色を用いて、
方向付ランダムモザイク処理を行なう。用いる色が補色
である点を除けば、第4−1図のstep89と同一処理内容
である。
(Explanation of step 89 ') Using the complementary color obtained in step 88',
Random mosaic processing with direction is performed. Except that the color used is a complementary color, the processing contents are the same as step 89 in FIG. 4-1.

step811′の説明)ステツプ85〜810のフローをフローを
NSTOP′回繰返す。
(Explanation of step 811 ') Follow steps 85 to 810
Repeat NSTOP ′ times.

この処理によって、方向付ランダムモザイク処理が行な
われた上に、暗部のみに、その補色のドツトが打たれる
ことになり、これによって、新印象派の思想に忠実な点
描タツチの絵画が完成する。
By this process, the random mosaic process with direction is performed, and the dots of the complementary color are imprinted only on the dark part, thereby completing the painting of the stippled Tachi that is faithful to the idea of the neo-impressionist.

以上の説明は、逐次処理を行なうタイプの画像処理装置
を用いて変換処理を行なった場合の処理フローである
が、次に、並列処理の能力を持つ画像処理装置を用いた
場合の処理手順について説明する。
The above description is the processing flow when the conversion processing is performed using the image processing apparatus of the type that performs sequential processing. Next, regarding the processing procedure when the image processing apparatus having the parallel processing capability is used explain.

最初に、方向性抽出処理を並列処理の能力を持つ画像処
理装置で行なった場合の処理手順を第5−1図,第5−
2図のフローチヤートを基に説明する。
First, the processing procedure when the directionality extraction processing is performed by the image processing apparatus having the capability of parallel processing is shown in FIG.
A description will be given based on the flow chart of FIG.

step91の説明)オリジナル画像データをメモリX(xa,y
a,za)にストアする。
Explanation of step 91) Original image data is stored in memory X (xa, y
a, za).

ここでZa=1=R,Za=2=G,Za=3=Bで、それぞれ赤
成分画像,緑成分画像,青成分画像を示す。
Here, Za = 1 = R, Za = 2 = G, Za = 3 = B, which respectively represent a red component image, a green component image, and a blue component image.

step92の説明)全ての画素の値を1/3倍する。Explanation of step92) The value of all pixels is multiplied by 1/3.

step93の説明)R,G,Bの値を足す。これによって白黒の
画像データが作り出される。これを、白黒画像メモリXW
(xa,ya)に入れる。これによって画像の白黒化が完了
したことになる。この白黒画像を基に次のステツプ94〜
904において、縦方向、横方向、右45゜方向・左45゜方
向の4つの方向の抽出を行なう。
Explanation of step93) Add R, G, and B values. This produces black and white image data. This is the black and white image memory X W
Put it in (xa, ya). This completes the black-and-white conversion of the image. Based on this black and white image, the next step 94-
At 904, four directions of vertical direction, horizontal direction, right 45 ° direction, left 45 ° direction are extracted.

step94の説明)方向を示すカウンタDに0を代入する。Explanation of step 94) 0 is substituted into the counter D indicating the direction.

step95の説明)第5−3図に示された様に(第5−3図
は、7×7のウインドウで差分計算を行なう場合の図で
ある)P1(D)(この場合P1(0)すなわち、ウインド
ウの左上画素)の位置が、中心画素0の位置に来るま
で、白黒画像メモリXW(xa,ya)をシフトする。第5−
3図の7×7のウインドウサイズの場合は、右へ3画
素、下へ3画素分シフトすれば良いことになる。そし
て、シフトした白黒画像メモリXW(xa,ya)の値を、差
分計算メモリX(D)(xa,ya)(この場合X(D)(x
a,ya))に代入する。
(Explanation of step95) As shown in FIG. 5-3 (FIG. 5-3 is a diagram when the difference calculation is performed in a 7 × 7 window) P 1 (D) (in this case, P 1 ( 0) That is, the monochrome image memory X W (xa, ya) is shifted until the position of the upper left pixel of the window) reaches the position of the central pixel 0. No. 5-
In the case of the window size of 7 × 7 in FIG. 3, it is sufficient to shift the pixel by 3 pixels to the right and 3 pixels downward. Then, the value of the shifted black-and-white image memory X W (xa, ya) is set to the difference calculation memory X (D) (xa, ya) (in this case, X (D) (x
a, ya)).

step96の説明)今度は、P2(D)(この場合P2(D)す
なわちウインドウの右下画素)の位置が、中心画素0の
位置に来るまで、白黒画像メモリXW(xa,ya)をシフト
する。この場合、step95で、P1(0)が中心画素位置0
に来ているので、P2(0)が中心画素位置0に来る為に
は左に6画素上に6画素シフトすれば良いことになる。
そして、シフトした白黒画像メモリXW(xa,ya)の差分
計算メモリX(D)(xa,ya)(現在はX(O)(xa,y
a)の値の差の絶対値をとり、これを再び差分計算メモ
リX(D)(xa,ya)に代入する。
Explanation of step96) This time, until the position of P 2 (D) (in this case P 2 (D), that is, the lower right pixel of the window) reaches the position of the center pixel 0, the monochrome image memory X W (xa, ya) Shift. In this case, at step 95, P 1 (0) is the central pixel position 0.
Therefore, in order for P 2 (0) to reach the central pixel position 0, it is sufficient to shift 6 pixels to the left by 6 pixels.
Then, shifted monochrome image memory X W (xa, ya) difference calculation memory X in (D) (xa, ya) ( currently X (O) (xa, y
The absolute value of the difference between the values in a) is taken, and this is again substituted into the difference calculation memory X (D) (xa, ya).

step97,98)に次にDに1と足し(すなわちD=1)再
びstep95にもどって今度は縦方向(P1(1)からP
2(1)に向かう方向)に対して差分計算を行ない、こ
の結果を差分計算メモリX(1)(xa,ya)に収納す
る。同様に方向2、方向3の場合も差分計算を行なう。
Then, add 1 to D in step97,98) (that is, D = 1) and go back to step95 again, this time in the vertical direction (from P 1 (1) to P
2 ) A difference calculation is performed for (direction toward (1)), and this result is stored in the difference calculation memory X (1) (xa, ya). Similarly, in the case of the directions 2 and 3, the difference calculation is performed.

step99の説明)以上の演算で得られた差分計算メモリX
(0)(xa,ya)〜X(3)(xa,ya)の値の最大値を求
め、これをXmax(xa,ya)に収納する。
Explanation of step99) Difference calculation memory X obtained by the above calculation
The maximum value of the values (0) (xa, ya) to X (3) (xa, ya) is calculated and stored in Xmax (xa, ya).

step901〜904の説明)ステツプ99で求めたXmax(xa,y
a)とX(D)(xa,ya)(D=0,1,2,3)を比べ、各画
素に於てXmax(xa,ya)と一致しているX(D)(xa,y
a)のDの値を方向画像データーメモリXD(xa,ya)に代
入する。具体的に説明すると、Xmax(xa,ya)とX
(D)(xa,ya)の画素の値が一致している画素に対し
ては方向画像データーメモリXD(xa,ya)に0の値を代
入し、X(1)(xa,ya)の画素の値が一致している画
素に対しては1を代入し、これをD=3まで繰返す。
Explanation of steps 901 to 904) Xmax (xa, y
a) and X (D) (xa, ya) (D = 0,1,2,3) are compared, and X (D) (xa, y) that matches Xmax (xa, ya) at each pixel
The value of D in a) is substituted into the direction image data memory X D (xa, ya). Specifically, Xmax (xa, ya) and X
(D) For a pixel having the same pixel value of (xa, ya), a value of 0 is assigned to the direction image data memory X D (xa, ya), and X (1) (xa, ya) 1 is substituted for the pixel whose pixel value is the same, and this is repeated until D = 3.

これによって、方向画像データーが完成する。この様に
並列処理を用いて処理を行なうと、全画素の処理が1度
に行なえるので、きわめて高速の処理が可能になる。
This completes the orientation image data. When processing is performed using parallel processing in this way, processing of all pixels can be performed at once, and extremely high-speed processing is possible.

次に絵画風色再現処理について並列処理を行なった場合
に関して説明する。第6−1図は、この処理のフローチ
ヤートである。
Next, a case where parallel processing is performed for the painting-style color reproduction processing will be described. FIG. 6-1 is a flow chart of this process.

step101の説明)使用する色数iを決定する。ここでオ
ペレータによりキーボード等の外部入力装置によって色
数iが入力される。例えば、iが3と入力されれば、R
・G・Bの組み合わせは27通りである。
Description of step 101) The number of colors i to be used is determined. Here, the operator inputs the number of colors i by an external input device such as a keyboard. For example, if i is input as 3, R
・ There are 27 combinations of G and B.

step102の説明)ステツプ101で作られた色数に合わせた
ルツクアツプテーブルを作る。ルツクアツプテーブルと
は、実際のメモリの値を希望する値に変換させる為の変
換テーブルである。具体的にRに関するルツクアツプテ
ーブルは次の様になる。
Explanation of step 102) Make a lookup table that matches the number of colors created in step 101. The look-up table is a conversion table for converting an actual memory value into a desired value. Specifically, the lookup table for R is as follows.

これによって第6−2図の様に見えていた色は、第6−
3図の様に色数が制限されて見えることになる。(但し
第6−3図はi=3の場合) step103の説明)オペレータによりキーボード等の外部
入力装置によって、色分解画像出力画素ブロツクm,nを
入力する。例えばm=3,n=3と入力すればオリジナル
画像の1画素が以下の色分解処理により3×3の画素ブ
ロツクとして出力される。
As a result, the color that looks like Fig. 6-2 is
As shown in Fig. 3, the number of colors will be limited. (However, in FIG. 6-3, when i = 3) Explanation of step 103) The operator inputs the color-separated image output pixel block m, n by an external input device such as a keyboard. For example, if m = 3 and n = 3 are input, one pixel of the original image is output as a 3 × 3 pixel block by the following color separation processing.

step104の説明)オリジナル画像データをメモリ(x0,
y0,z0)にストアする。但し、並列処理の場合、異なる
メモリサイズ間での演算は不可能であるので、オリジナ
ル画像データをあらかじめm×n倍に拡大して(横にm
個、縦にn個ずつ同一の値を入れていくことにより)お
き、後の処理が容易に行なえる様にしておく。
Explanation of step104) Original image data is stored in memory (x 0 ,
Store at y 0 , z 0 ). However, in the case of parallel processing, it is impossible to perform calculations between different memory sizes, so the original image data should be expanded in m × n times in advance (m in the horizontal direction).
(By inserting the same value for each of n and n vertically) so that the subsequent processing can be easily performed.

step107の説明)メモリX(x0,y0,z0)の値をstep102で
定めたルツクアツプテーブルを通してメモリの値を書き
直し、再びメモリX(x0,y0,z0)に代入する。これによ
りメモリの値は、最初指定された色数の色に変換された
ことになる。
Explanation of step 107) The value of the memory X (x 0 , y 0 , z 0 ) is rewritten through the look-up table defined in step 102 and is again substituted into the memory X (x 0 , y 0 , z 0 ). As a result, the value in the memory is converted into the color having the designated number of colors at first.

step108,109の説明)step107の結果、R,G,Bの値が全く
同一になってしまった場合は、Bの値にBias分だけ加え
る。これは、本発明第1の実施例の第3−2図のstep69
と同一内容の処理である。
Description of steps 108 and 109) If the values of R, G, and B are exactly the same as the result of step 107, Bias is added to the value of B. This is step 69 in FIG. 3-2 of the first embodiment of the present invention.
This is the same processing as.

step110の説明)step107,step109で色が定められたが、
この定められた色と、実際の色との誤差分を次回の処理
で補正する為に、メモリX(x0,y0,z0)とワーク用メモ
リXW(x0,y0,z0)の差分をメモリX(x0,y0,z0)に加え
ておく。
Explanation of step110) Although the color was decided in step107 and step109,
In order to correct the difference between the determined color and the actual color in the next process, the memory X (x 0 , y 0 , z 0 ) and the work memory X W (x 0 , y 0 , z 0 ) is added to the memory X (x 0 , y 0 , z 0 ).

step111の説明)この選ばれた色を、ランダムに配置し
ていく為に、m×nのウインドウ内に1個ずつランダム
な座標を発生させ、これをランダムメモリXR(x0,y0
に入れる。この際前回までの処理で選択された座標値と
ダブった場合は、再度ランダム座標と発生させて、座標
値がダブらない様にする。これは第3−3図のstep73,7
4に類似した処理内容である。
Explanation of step111) In order to randomly arrange the selected colors, random coordinates are generated one by one in an m × n window, and this is used as a random memory X R (x 0 , y 0 ).
Put in. At this time, if the coordinate values selected in the previous processing are duplicated, random coordinates are generated again so that the coordinate values are not duplicated. This is step73,7 in Figure 3-3.
The processing content is similar to 4.

step112の説明)step111で選ばれたランダム座標値に対
するワーク用メモリXW(x0,y0,z0)の値を出力画像間メ
モリXout(x0,y0,z0)に入れる。
Explanation of step 112) The value of the work memory X W (x 0 , y 0 , z 0 ) for the random coordinate value selected in step 111 is put into the output inter-image memory Xout (x 0 , y 0 , z 0 ).

step105,106,113,114,115,116の説明)以上の処理をm
×n回繰返す。
Description of steps 105, 106, 113, 114, 115, 116) m
× Repeat n times.

以上の処理によってオリジナル画像がm×n倍されて、
なおかつ、選ばれた色に変換されたことになる。この様
に並列処理の行なえる装置を用いた場合は、ルツクアツ
プテーブルを用いた変換等が、全画素同時に行なえるの
で、処理のスピードがきわめて高速となる。
By the above processing, the original image is multiplied by m × n,
Moreover, it means that the color has been converted to the selected color. When a device capable of performing parallel processing is used in this manner, conversion using a lookup table can be performed simultaneously for all pixels, resulting in extremely high processing speed.

次に、並列処理の能力を持った画像処理装置を用いて、
方向性付ランダムモザイク処理を行なう場合の処理手順
を第7−1図,第7−2図のフローチヤートを基に説明
する。なお、この処理に於て、前述第1の実施例と同一
処理を行なう部分に関しては同一のstep番号を付け、そ
の処理内容の説明は省略する。
Next, using an image processing device with the capability of parallel processing,
A processing procedure in the case of performing the directional random mosaic processing will be described based on the flow charts of FIGS. 7-1 and 7-2. In this process, the same step number is assigned to the part that performs the same process as in the first embodiment, and the description of the process content is omitted.

step82′の説明)方向性抽出処理によって作成された方
向画像データをメモリXD′(x0,y0)にストアする。但
し、並列処理の場合、前述第一の実施例の場合と異な
り、異なるメモリサイズ間での演算は不可能であるの
で、方向画像データもm×n倍に拡大して(横にm個、
縦にn個ずつ同一の値を入れていくことにより)、色分
解画像データと同一のメモリサイズにしておく。stepの
130番台は、並列処理の特長を生かす為に、前もってラ
ンダムの座標を全て発生させるフローである。
'The direction image data created by the description) direction extraction processing memory X D' STEP 82 stores the (x 0, y 0). However, in the case of parallel processing, unlike the case of the first embodiment described above, since calculation between different memory sizes is not possible, the directional image data is also enlarged m × n times (m pieces horizontally,
The same memory size as the color-separated image data is set by inserting the same value for each n pieces vertically. step's
The 130 series is a flow in which all random coordinates are generated in advance in order to take advantage of parallel processing.

step131の説明)ランダムに発生させた座標位置を記憶
しておく為のランダム位置メモリXR(x0,y0)を用意
し、全ての値を0にする。なおこのランダム位置メモリ
XR(x0,y0)は、ランダム座標のON,OFFさえ判別できれ
ばよいので、1ビツトあれば十分である。
Explanation of step 131) A random position memory X R (x 0 , y 0 ) for storing randomly generated coordinate positions is prepared, and all values are set to 0. This random position memory
One bit is sufficient for X R (x 0 , y 0 ), as long as it can determine whether the random coordinates are ON or OFF.

step132の説明)ランダム座標の個数を数えるカウンタ
ーcountを1にする。
Explanation of step132) The counter count that counts the number of random coordinates is set to 1.

step133の説明)ランダム座標を発生させて、座標位置
を求めるstepであり、前述第一の実施例のstep85と同一
である。
Description of step 133) This is a step of generating random coordinates and obtaining a coordinate position, which is the same as step 85 of the first embodiment.

step134の説明)発生させたランダム座標xR,yRに対応す
るランダム位置メモリを1にする。
Explanation of step 134) The random position memory corresponding to the generated random coordinates x R , y R is set to 1.

step135の説明)ランダム座標の個数を数えるカウンタc
ountをカウントアツプする。
Description of step135) Counter c that counts the number of random coordinates
Count up the ount.

step136の説明)ランダム座標の個数を数えるカウンタc
ountの値が必要なランダム座標の個数をNSTOPに達する
まで、step33からstep35までを繰返し、NSTOPに達した
場合は、次のstepに進む。
Description of step136) Counter c that counts the number of random coordinates
Repeat step 33 to step 35 until the number of random coordinates required for ount reaches NSTOP, and if NSTOP is reached, proceed to the next step.

stepの140番台は、130番台で作成されたランダム座標に
対して、方向データ毎に処理を行なっていくフローであ
る。
The 140 series of steps is a flow of processing for each direction data with respect to the random coordinates created in the 130 series.

step141の説明)方向データIdirectionを0にする。こ
れによって、以下の処理で右下45゜方向に関して処理が
行なわれることになる。
Explanation of step 141) Direction data Idirection is set to 0. As a result, the following processing is performed in the lower right 45 ° direction.

step142の説明)並列処理の場合画素の値をシフトさせ
ながら合成していくことになるのでこの為のシフト用メ
モリXS(x0,y0,z0)を用意して、その全ての値を0にす
る。
Explanation of step142) In the case of parallel processing, pixel values will be synthesized while shifting, so a shift memory X S (x 0 , y 0 , z 0 ) for this purpose is prepared, and all the values To 0.

step143の説明)ランダム位置メモリXR(x0,y0)に1が
立っている(すなわち、ランダム座標値である)座標
で、かつ方向画像データXW′(x0,y0)がIdirection
(現在は0)になっている座標値を選び出す。これによ
って、45゜方向に処理するランダム座標値が選ばれたこ
とになる。そしてこの選ばれた座標値に対して、色分解
画像データX(x0,y0,z0)の色の値をシフト用メモリXS
(x0,y0,z0)に移す。
Explanation of step 143) Coordinates in which 1 is set in the random position memory X R (x 0 , y 0 ) (that is, random coordinate values) and the direction image data X W ′ (x 0 , y 0 ) is Idirection.
Select the coordinate value that is (currently 0). As a result, the random coordinate value to be processed in the 45 ° direction is selected. Then, the color value of the color-separated image data X (x 0 , y 0 , z 0 ) is converted into the shift memory X S with respect to the selected coordinate value.
Move to (x 0 , y 0 , z 0 ).

step144の説明)方向データーがIdirection(現在は
0)であるモザイク画素パターンをあらかじめ作られた
フアイルの中から読み出す。第7−3図に7×7の右下
方向のモザイク画素パターンの例を示す。この例で、1
となっている点がモザイクとして処理を行なう画素0と
なっている点が処理を行なわず、元の色が残る画素を示
している。
(Explanation of step 144) A mosaic pixel pattern whose direction data is Idirection (currently 0) is read out from a file created in advance. FIG. 7-3 shows an example of a 7 × 7 mosaic pixel pattern in the lower right direction. In this example, 1
The point marked with is the pixel 0 to be processed as a mosaic, and the point marked with 0 is not processed and the original color remains.

step145の説明)モザイク画像パターンの処理を行なう
画素位置1画素ずつにシフト用メモリを動かし、各画素
位置で、シフト用メモリに収納されている色情報と、そ
の位置に対応する色分解画像メモリに入れる。第7−3
図の7×7のモザイク画像パターンを例に第7−4図も
う少し詳細に説明する。最初にシフト用メモリが保持し
ている色情報は、モザイク画像パターンの中心位置(0
の画素位置)の色情報である。次に、このシフト用メモ
リをモザイク画像パターンの第1の画素位置(1の画素
位置)になる様に右へ1画素上へ3画素動かす。この位
置で、シフト用メモリに収納された色を、色分解画像デ
ーターメモリに移す。これによって、中心位置(0の画
素)の色が、1の画素位置にも配置されたことになる。
次に、このシフト用メモリを2の画素位置まで、すなわ
ち右へ1画素分動かす。そして、この位置でシフト用メ
モリに収納された色を色分解画像データーメモリに移
す。これによって2の位置に6中心位置(0の画素)の
色が移されたことになる。このstepを28まで繰返すと、
モザイク画像パターンで指定された全ての画素に、中心
画素の色が配置されていたことになる。
Explanation of step 145) The shift memory is moved pixel by pixel for processing the mosaic image pattern. At each pixel position, the color information stored in the shift memory and the color separation image memory corresponding to that position are stored. Put in. 7th-3
The mosaic image pattern of 7 × 7 shown in FIG. 7 will be taken as an example to explain in more detail in FIG. 7-4. First, the color information held in the shift memory is the center position (0
Of the pixel position). Next, the shift memory is moved rightward by 1 pixel by 3 pixels so as to be at the first pixel position (1 pixel position) of the mosaic image pattern. At this position, the color stored in the shift memory is transferred to the color separated image data memory. As a result, the color at the center position (0 pixel) is also arranged at the 1 pixel position.
Next, the shift memory is moved to the pixel position of 2, that is, to the right by one pixel. Then, the color stored in the shift memory at this position is transferred to the color separated image data memory. As a result, the color at the 6th central position (0 pixel) is transferred to the 2nd position. If you repeat this step up to 28,
This means that the color of the central pixel is arranged in all the pixels specified by the mosaic image pattern.

step147の説明)方向データIdirectionに1を加える。
これによってIdirectionは1となる。
Explanation of step 147) Add 1 to the direction data Idirection.
This sets Idirection to 1.

step147の説明)step142にもどって、方向データーが1
の場合(すなわち横方向)の処理を行なう。
Explanation of step147) Return to step142 and the direction data is 1
In the case of (that is, in the horizontal direction), the processing is performed.

以上の処理を、方向データが3を越すまで繰返して、こ
の処理が完了する。この様に、並列処理の可能な装置を
用いれば方向データが同一のモザイク処理を1度に行な
える様になるので、ランダム座標1画素ごとのモザイク
処理を行なうのに比べて非常に短時間で処理を行なうこ
とができる。
The above processing is repeated until the direction data exceeds 3, and this processing is completed. In this way, if a device capable of parallel processing is used, mosaic processing with the same direction data can be performed at one time, which is much shorter than the mosaic processing for each random coordinate pixel. Processing can be performed.

次に、暗部補色モザイク処理の手順を第7−5図,第7
−6図のフローチヤートを基に説明する。このフロー
も、前述第1の実施例の場合と同様に、処理内容が方向
付ランダムモザイク処理と類似しているので、第7−1
図,第7−2図の方向付ランダムモザイク処理のフロー
と異なる部分のみを説明する。
Next, the procedure of the dark part complementary color mosaic processing is described in FIG. 7-5 and FIG.
A description will be given based on the flowchart of FIG. Also in this flow, as in the case of the above-described first embodiment, the processing content is similar to the direction-oriented random mosaic processing, and therefore, the 7-1
Only the part different from the flow of the directed random mosaic processing of FIGS. 7 and 2 will be described.

step82″の説明)暗部の判定に、明度情報が必要な為、
第5−1図step93で作成した白黒画像データを白黒画像
メモリXW(x0,y0)に入力する。
Explanation of step82 ″) Lightness information is required to judge dark areas,
The monochrome image data created in step 93 of FIG. 5-1 is input to the monochrome image memory X W (x 0 , y 0 ).

但し、並列処理の場合、前述第一の実施例の場合と異な
り、異なるメモリサイズ間での演算は不可能であるの
で、白黒画像データもm×n倍に拡大して(横にm個、
縦にn個ずつ同一の値を入れていくことにより)色分解
画像データと同一のメモリサイズにしておく。
However, in the case of parallel processing, unlike the case of the first embodiment described above, calculation between different memory sizes is not possible, so black and white image data is also enlarged m × n times (m pieces horizontally,
The same memory size as the color-separated image data is set by inserting the same value for each n pixels vertically.

step83′の説明)パラメータの設定を行なう。ここで必
要な第10パラメータは、暗部であるか否かを判定する為
のスレシホールドレベルDPであり、これをキーボード等
のコマンド入力装置から入力する。ここで入力する値
は、明度を直接入力しても良いし、画像全体の暗部と判
定すべき割合を入力し、画像のヒストグラムから演算し
て、判定すべき明度を求める方法でも良い、次にもう1
つここで必要なパラメータは、暗部モザイクの発生個数
NSTOP′である。この数も、キーボード等のコマンド入
力装置から入力するのであるが、本実施例では、前述の
第1の実施例の場合と異なり、後述のstep137に於て画
面全体に対する暗部の割合に応じて、ドツトの数が調整
されるので、それを考慮した値にする必要がある。
Explanation of step 83 ') Set parameters. The tenth parameter required here is a threshold level DP for determining whether or not it is a dark part, and this is input from a command input device such as a keyboard. As the value to be input here, the brightness may be directly input, or a method of inputting a ratio to be determined as the dark part of the entire image and calculating from the histogram of the image to obtain the brightness to be determined, Another one
The parameter required here is the number of dark mosaics
NSTOP '. This number is also input from a command input device such as a keyboard, but in the present embodiment, unlike the case of the first embodiment described above, in step 137, which will be described later, according to the ratio of dark areas to the entire screen, The number of dots is adjusted, so it is necessary to consider the value.

step136′の説明)ランダムの座標値をNSTOP′個発生す
るまでstep133〜135をくり返す。
Explanation of step 136 ′) Steps 133 to 135 are repeated until NSTOP ′ random coordinate values are generated.

step137の説明)NSTOP′個のランダム座標がXR(x0,
y0)に格納されているが、このNSTOP′個のランダム座
標の位置がXW(x0,y0)に於てDPより明るい部分であっ
たなら、この座標を取消す様にする。これによって以降
の処理で明度がDPより低い部分に関してのみ、補色モザ
イク処理が行なわれることになる。
Explanation of step137) NSTOP ′ random coordinates are X R (x 0 ,
Although stored in y 0 ), if the position of these NSTOP ′ random coordinates is a part brighter than DP in X W (x 0 , y 0 ), the coordinates are canceled. As a result, the complementary color mosaic process is performed only on the portion whose brightness is lower than DP in the subsequent process.

step143′の説明)シフト用メモリXS(x0,y0,z0)に入
れられた値を補色に変換して再びシフト用メモリX
S(x0,y0,z0)に入れる。補色への変換処理は並列処理
を用いても第4−5図で説明したフローを用いてもよ
い。これによって、補色の色がたくわえられたシフト用
メモリXS(x0,y0,z0)がstep145に於てモザイク形状に
合わせて動かされ、補色が色分解画像データーメモリX
(x0,y0,z0)上に描かれることになる。
(Explanation of step 143 ′) Shift memory X S (x 0 , y 0 , z 0 ) is converted into a complementary color and the shift memory X is converted again.
Put it in S (x 0 , y 0 , z 0 ). The conversion processing to the complementary color may use parallel processing or the flow described in FIG. 4-5. As a result, the shift memory X S (x 0 , y 0 , z 0 ) storing the complementary color is moved in accordance with the mosaic shape in step 145, and the complementary color is stored in the color separation image data memory X.
It will be drawn on (x 0 , y 0 , z 0 ).

この様に、並列処理を用いて処理を行なうと、ランダム
に発生させた座標位置でも、一度に処理することができ
るので、短時間で処理を完了させることができる。
As described above, when the processing is performed using the parallel processing, even coordinate positions randomly generated can be processed at once, so that the processing can be completed in a short time.

このように本実施例を用いる事により以下の効果があ
る。
As described above, the following effects are obtained by using this embodiment.

モザイクに方向性を付加したことにより、従来の単
一な方向性のモザイクに比べ、絵がらの方向性を表現可
能となる。
By adding directionality to the mosaic, it is possible to express the directionality of the pictures compared to the conventional single directionality mosaic.

より絵画風な色再現が可能となる。 A more painting-like color reproduction is possible.

明度の低い暗部では暗い点描を行なうのではなく、
補色の色を併置する事により従来の画像処理に比べ、は
るかにリアルな絵画処理が可能となり、絵画を描く能力
のない人でも容易に新印象派風の絵画が得られるように
なる。
Rather than dark stippling in dark areas with low lightness,
By arranging the complementary colors in parallel, much more realistic painting processing becomes possible compared to conventional image processing, and even people who do not have the ability to draw paintings can easily obtain neo-impressionist paintings.

従来の銀塩システムで行なわれていた「暗室処理」
や、印刷システムの電子製版では無かったあたらしい画
像を提供できるとともに作画の自由度を増すことができ
る。
"Dark room treatment" that was performed by the conventional silver salt system
Moreover, it is possible to provide a new image, which was not possible with the electronic plate making of the printing system, and increase the degree of freedom in drawing.

画像処理のプロセスを無人化できるので、ラボ的な
普及が望める。
Since the image processing process can be unmanned, it can be expected to spread in a laboratory.

尚、本実施形では、フイルムより画像入力したがスチー
ルビデオカメラ,ビデオカメラ等から被写体から直接画
像データを取りこんでも又磁気フロツピーデイスク,磁
気テープ,光デイスク,バブルメモリ等の記録媒体を介
して画像データを入力しても同様の効果は得られる。
In the present embodiment, the image is input from the film, but even if the image data is directly taken in from the subject from the still video camera, the video camera, etc. The same effect can be obtained by inputting image data.

<効 果> 以上説明した如く、本発明によれば、入力画像を絵画的
画像に変換する際、データの階調数変換によりR,G,Bデ
ータが等しくなり、無彩色部分が発生する場合は、Bデ
ータをR,Gデータよりも大きくするので、これにより絵
画風の色再現が可能となる。
<Effect> As described above, according to the present invention, when the input image is converted into a pictorial image, the R, G, B data become equal due to the gradation number conversion of the data, and an achromatic portion occurs. Makes the B data larger than the R and G data, which enables painterly color reproduction.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の一実施例を示すブロツク図、 第2−1図,第2−2図は方向性抽出処理原理図、 第2−3図は方向性抽出処理概略フローチヤート図、 第2−4図は白黒画像作成処理フローチヤート図、 第2−5図は方向データ画像作成処理フローチヤート
図、 第3−1図は絵画風色再現処理概略フローチヤート図、 第3−2図は色分解処理フローチヤート図、 第3−3図はランダム座標変換フローチヤート図、 第4−1図は方向性付ランダムモザイク処理フローチヤ
ート図、 第4−2図は各方向性の画素ブロツク図、 第4−3図はモザイク演算処理原理図、 第4−4図は暗部補色モザイク処理のフローチヤート
図、 第4−5図は補色変換のフローチヤート図、 第5−1図,第5−2図は方向性抽出処理を並列処理能
力を持つ画像処理装置で行なった場合のフローチヤート
図、 第5−3図は7×7のウインドウ差分計算例図、 第6−1図は絵画風色再現処理を並列処理能力を持つ画
像処理装置で行なった場合のフローチヤート図、 第6−2図,第6−3図は色数を制限するためのルツク
アツプテーブルの内容を示した図、 第7−1図,第7−2図は方向性付ランダムモザイク処
理を並列処理能力を持つ画像処理装置で行なった場合の
フローチヤート図、 第7−3図は7×7のモザイク画像パターン例を示した
図、 第7−4図はモザイク画像出力例を示した図、 第7−5図,第7−6図は暗部補色モザイク処理を並列
処理能力を持つ画像処理装置で行なった場合のフローチ
ヤート図である。 図中、1は画像入力装置、2は中央処理装置、 3はメモリ、4はキーボード、デジタイザ、 5はモニタTV、6はプリンタである。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIGS. 2-1 and 2-2 are principle diagrams of directionality extraction processing, and FIGS. 2-3 are schematic flow chart diagrams of directionality extraction processing. Figure 2-4 is a flow chart for black and white image creation processing, Figure 2-5 is a flow chart for direction data image creation processing, Figure 3-1 is a schematic flow chart for painting style color reproduction processing, and Figure 3-2 is Color separation processing flow chart, Figure 3-3 is random coordinate transformation flow chart, Figure 4-1 is random mosaic processing flow chart with directionality, Figure 4-2 is pixel block diagram of each directionality, Fig. 4-3 is a principle diagram of mosaic operation processing, Fig. 4-4 is a flow chart of dark complementary color mosaic processing, Fig. 4-5 is a flow chart of complementary color conversion, Fig. 5-1 and Fig. 5-2. The figure shows the image processing with parallel processing capability for directionality extraction processing. FIG. 5-3 shows a 7 × 7 window difference calculation example, and FIG. 6-1 shows a painting-style color reproduction process performed by an image processing device having parallel processing capability. Fig. 6-2, Fig. 6-3 show the contents of the look-up table for limiting the number of colors, Fig. 7-1, Fig. 7-2 show the direction Flowchart diagram when random mosaic processing is performed by an image processing apparatus having parallel processing capability, FIG. 7-3 is a diagram showing a 7 × 7 mosaic image pattern example, and FIG. 7-4 is a mosaic image output example. FIG. 7-5, FIG. 7-5, and FIG. 7-6 are flow charts when the dark part complementary color mosaic processing is performed by an image processing apparatus having a parallel processing capability. In the figure, 1 is an image input device, 2 is a central processing unit, 3 is a memory, 4 is a keyboard and digitizer, 5 is a monitor TV, and 6 is a printer.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】オリジナル画像を1画素あたりRデータ,G
データ,Bデータそれぞれ複数階調数のデータとして入力
し、入力した1画素のRデータ,Gデータ,Bデータを入力
データの階調数よりも階調数が少なく、かつ複数画素の
Rデータ,Gデータ,Bデータに変換する画像処理方法にお
いて、 前記変換により得られたRデータ,Gデータ,Bデータの値
が等しく無彩色データに変換されている場合、変換デー
タのBデータをRデータ,Gデータよりも大きい値に補正
することを特徴とする画像処理方法。
1. An original image has R data and G per pixel.
Data and B data are input as data of a plurality of gradation levels, and the input R data, G data, and B data of one pixel have a smaller number of gradations than the input data, and R data of a plurality of pixels. In the image processing method of converting into G data and B data, when the values of R data, G data and B data obtained by the conversion are converted into achromatic data equally, the B data of the conversion data is converted into R data, An image processing method characterized by correcting to a value larger than G data.
JP7821587A 1987-03-30 1987-03-30 Image processing method Expired - Fee Related JPH0682392B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP7821587A JPH0682392B2 (en) 1987-03-30 1987-03-30 Image processing method
US07/174,979 US5164825A (en) 1987-03-30 1988-03-29 Image processing method and apparatus for mosaic or similar processing therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7821587A JPH0682392B2 (en) 1987-03-30 1987-03-30 Image processing method

Publications (2)

Publication Number Publication Date
JPS63244179A JPS63244179A (en) 1988-10-11
JPH0682392B2 true JPH0682392B2 (en) 1994-10-19

Family

ID=13655825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7821587A Expired - Fee Related JPH0682392B2 (en) 1987-03-30 1987-03-30 Image processing method

Country Status (1)

Country Link
JP (1) JPH0682392B2 (en)

Also Published As

Publication number Publication date
JPS63244179A (en) 1988-10-11

Similar Documents

Publication Publication Date Title
US5164825A (en) Image processing method and apparatus for mosaic or similar processing therefor
JP3095818B2 (en) Method and apparatus for mapping a color image to a black and white image
EP0369702B1 (en) Image processing apparatus and method
JPH0244437B2 (en)
JPH04246690A (en) Method of displaying image having high quality by normal resolution
US6292167B1 (en) Electronic graphic system
US5572607A (en) Method and circuit arrangement for electronic retouching of images
JP2922520B2 (en) Image processing method
JPH0682392B2 (en) Image processing method
JPH0721829B2 (en) Image processing method
JPH11134491A (en) Image processor and its method
JP2002118737A (en) Image converter and image conversion method
JP2003051947A (en) Image processing apparatus and image processing method
JPH03166669A (en) Electronic graphic system for use in modifying original black and white separate data defining image
JPH0630272A (en) Device and method for processing image
JPH0690722B2 (en) Image processing method
JPH05244444A (en) Irregular color correction method in color picture
JPS63244180A (en) Image processing method
JPS63244176A (en) Image processing method
JP3117989B2 (en) Color image processing equipment
JP2844573B2 (en) Image processing method
JP2843912B2 (en) Image processing method
JP2740517B2 (en) Image processing device
JPH04282779A (en) Method for converting color of image data
JP2685458B2 (en) Image processing method

Legal Events

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