JPS63113771A - Image processor - Google Patents

Image processor

Info

Publication number
JPS63113771A
JPS63113771A JP61258605A JP25860586A JPS63113771A JP S63113771 A JPS63113771 A JP S63113771A JP 61258605 A JP61258605 A JP 61258605A JP 25860586 A JP25860586 A JP 25860586A JP S63113771 A JPS63113771 A JP S63113771A
Authority
JP
Japan
Prior art keywords
image
processing
coordinate
data
area
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
JP61258605A
Other languages
Japanese (ja)
Other versions
JPH0816927B2 (en
Inventor
Hiroyuki Kimura
木村 裕行
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 JP61258605A priority Critical patent/JPH0816927B2/en
Priority to US07/113,997 priority patent/US4956872A/en
Publication of JPS63113771A publication Critical patent/JPS63113771A/en
Publication of JPH0816927B2 publication Critical patent/JPH0816927B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To carry out the conversion of picture data at high speed by previously providing a coordinate conversion file prepared by using random digits. CONSTITUTION:A generation means generates a specified pattern in a first picture with the picture element of a first picture data specified at random as almost central one. Next, a storage means stores conversion information which converts the coordinate of the picture element in the specified pattern into the coordinate value of the almost central picture element. Based in the conversion information the color information of the picture element of the first picture data is made to actuate as the color information of the picture element of a seconds picture data having the coordinate corresponding to the picture element of the first picture data so as to generate the second picture data. By providing the previously prepared coordinate conversion file, the conversion of the picture data can be carried out at high speed.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明はオリジナル画像上のランダムな位置に所定の形
状をパターンを発生させて、もとの画像を変換する画像
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing apparatus that converts an original image by generating a pattern of a predetermined shape at random positions on the original image.

[従来の技術] デジタル画像処理に関しては、各分野に於て種々の機器
、種々の方法が開発されており、写真等の自然画像もデ
ジタル画像データとして入力することにより、例えば濃
度変換、階調変換、モザイク処理、切抜き合成等の処理
を行って、クリエイティブな画像を作り出すことが可能
になってしする。この様な方法として、1つは画面全体
に画一的に濃度変換、階調変換、モザイク処理等の処理
を行うものであり、操作者は何の指示もν1らなり1代
りに、画面全体が同一のパターンの繰返しとなリ、メリ
ハリがなく、面白味のない画像になってしまう欠点があ
った。
[Prior Art] Regarding digital image processing, various devices and methods have been developed in various fields, and by inputting natural images such as photographs as digital image data, for example, density conversion, gradation, etc. It is now possible to create creative images by performing processing such as conversion, mosaic processing, and cropping and compositing. One such method is to perform processing such as density conversion, gradation conversion, mosaic processing, etc. uniformly on the entire screen, and the operator does not have to give any instructions like ν1 or 1. This has the disadvantage that the same pattern is repeated, resulting in a lack of sharpness and an uninteresting image.

また他の方法としては、ディジタイザ等の画像入力手段
や乱数発生手段を用いて画面内の箇所を指示し、この部
分だけに例えば濃度変換、色変換、切抜き合成等のIA
埋を行うものがある。これは画面内に処理を加えた部分
と処理を加えない部分が作られるので、画像にメリハリ
ができ、処理した上から再度処理することにより、種々
のパターンが作り出される為、きわめてクリエイティブ
な画像が作り出せる。
Another method is to specify a location on the screen using an image input means such as a digitizer or a random number generation means, and apply IA such as density conversion, color conversion, cutout compositing, etc. only to this area.
There is something to be buried. This creates areas on the screen that have been processed and areas that have not been processed, creating a sharp contrast to the image, and by reprocessing after processing, various patterns can be created, resulting in extremely creative images. I can create it.

[発明が解決しようとする問題点] しかし、これらの方法は乱数を発生させたり、操作者の
指示によって実行されるため時間がよけいにかかつてし
まうという問題点があった。さらに、乱数によりランダ
ムに指示する場合、離散的な位置に形状を作っていくた
め、1度描いた形状の上に別の形状が重ねて描かれる場
合が発生し、同じ画素に2度以上処理を加えることとな
り、余計な時間がかかつてしまうという欠点があった。
[Problems to be Solved by the Invention] However, since these methods generate random numbers or are executed according to instructions from an operator, they have the problem that they take much more time. Furthermore, when instructing randomly using random numbers, shapes are created at discrete positions, so another shape may be drawn on top of the shape drawn once, and the same pixel may be processed more than once. This has the drawback of requiring extra time.

本発明は上述従来例に鑑みなされたもので、処理画像の
座標値とオリジナル画像の座標値とを対応づけて記憶す
る座標変換手段により、高速に画像データの変換を実施
できる画像処理装置を提供することを目的とする。
The present invention has been made in view of the above-mentioned conventional example, and provides an image processing device capable of converting image data at high speed using a coordinate conversion means that stores coordinate values of a processed image and coordinate values of an original image in correspondence with each other. The purpose is to

[問題点を解決するための手段] 上記目的を達成するために本発明の画像処理装置は以下
の様な構成からなる。即ち、 第1の画像データの画素をランダムに指定する指定手段
と、前記第1の画像データ上に前記画素をほぼ中心とす
る所定パターンを発生する発生手段と、前記所定パター
ン内の画素の座標をほぼ中心の画素の座標値に変換する
変換情報を記憶する記憶手段と、前記第1の画像データ
の画素の色情報を、前記変換情報を基に前記画素に対応
する座標値を有する第2の画像データの画素の色情報と
する手段とを備える。
[Means for Solving the Problems] In order to achieve the above object, the image processing apparatus of the present invention has the following configuration. That is, a specifying means for randomly specifying pixels of the first image data, a generating means for generating a predetermined pattern approximately centered on the pixel on the first image data, and coordinates of pixels within the predetermined pattern. storage means for storing conversion information for converting the color information of the pixel of the first image data into the coordinate value of the pixel approximately at the center; and a second storage means having the coordinate value corresponding to the pixel based on the conversion information and means for converting the image data into pixel color information.

[作用] 以上の構成において、  ランダムに指定された第1の
画像データの画素をほぼ中心として、発生手段により第
1の画像上に所定パターンを発生する。次に、所定のパ
ターン内の画素の座標をほぼ中心の画素の座標値に変換
する変換情報を記憶手段に記憶する。第1の画像データ
の画素の色情報を、変換情報を基に第1の画像データの
画素に対応する座標値を有する第2の画像データの画素
の色情報として、第2の画像データを作成する様に動作
する。
[Operation] In the above configuration, the generating means generates a predetermined pattern on the first image approximately at the randomly specified pixel of the first image data. Next, conversion information for converting the coordinates of pixels within the predetermined pattern into coordinate values of approximately the central pixel is stored in the storage means. Create second image data by using color information of pixels of the first image data as color information of pixels of second image data having coordinate values corresponding to pixels of the first image data based on conversion information It works like this.

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

[画像処理装置の構成の説明 (第1図)]第1図は本
実施例の画像処理装置の構成図である。
[Description of the configuration of the image processing device (FIG. 1)] FIG. 1 is a configuration diagram of the image processing device of this embodiment.

図中、1はTVカメラやドラムスキャナ等の画像入力部
で、写真フィルムやプリント画像等の原稿画像を光電的
に読取り、A/D変換を行ってデジタル信号に変換して
CPt12に入力する。2は装置全体の制御を行うCP
Uで、第2図以降のフローチャートで示す制御プログラ
ムやデータを格納するR OM、ワークエリアとしての
RA M等を備えている。3は画像メモリで、画像入力
部1よりのオリジナル画像データを格納する画像メモリ
31と、後述する各種画像処理を行った処理画像データ
を格納する画像メモリ32とを備えている。
In the figure, reference numeral 1 denotes an image input unit such as a TV camera or a drum scanner, which photoelectrically reads an original image such as a photographic film or a print image, performs A/D conversion to convert it into a digital signal, and inputs the digital signal to the CPt 12. 2 is a CP that controls the entire device
U is equipped with a ROM for storing control programs and data shown in the flowcharts from FIG. 2 onwards, and a RAM as a work area. Reference numeral 3 denotes an image memory, which includes an image memory 31 that stores original image data from the image input section 1, and an image memory 32 that stores processed image data that has been subjected to various types of image processing that will be described later.

4は後述する各種画像処理コマンドを人力する、例えば
キーボードやデジタイザ等のコマンド入力部である。キ
ーボードの場合は各種処理に対応するコマンドキーを押
下することにより、デジタイザの場合はデジタイザ盤面
上のメニュー、あるいはCRT画面上に表示されたメニ
ューをカーソル等によって指示することによりコマンド
指示が行われる。5は各種画像処理コマンドに対応する
座標変換ファイルを格納するデータファイルである。
Reference numeral 4 denotes a command input unit, such as a keyboard or digitizer, for manually inputting various image processing commands to be described later. In the case of a keyboard, commands are given by pressing command keys corresponding to various processes, and in the case of a digitizer, commands are given by pointing to a menu on the digitizer board or a menu displayed on a CRT screen using a cursor or the like. 5 is a data file that stores coordinate transformation files corresponding to various image processing commands.

6は画像メモリ3の画像データあるいはコマンド人力用
のメニュー表示等を行うCRTである。
Reference numeral 6 denotes a CRT for displaying image data in the image memory 3 or a menu for manual commands.

CPU2はコマンド入力部4よりの処理コマンドに対応
して、座標変換ファイルをデータファイル5より読出し
、画像メモリ31のオリジナル画像データに必要な処理
を行って画像メモリ32に格納する。この様にして作成
された画像データはプリンタあるいはフイルムコーダ等
の出力部7により印刷される。
In response to a processing command from the command input section 4, the CPU 2 reads out a coordinate transformation file from the data file 5, performs necessary processing on the original image data in the image memory 31, and stores the resultant data in the image memory 32. The image data created in this manner is printed by an output unit 7 such as a printer or a film coder.

[モザイク処理の説明 (第2図〜第4図)]第2図は
画像にモザイク処理を施した1例を示す図である。
[Description of mosaic processing (FIGS. 2 to 4)] FIG. 2 is a diagram showing an example of mosaic processing applied to an image.

20は横方向にx0個、縦方向にy。個の画素で構成さ
れた、不図示のオリジナル画像をモザイク22によって
等分割にモザイク処理した画像で、左上端の座標が(1
,1)、右下端の座標が(Xo 、 ”Jo )で示さ
れている。21は画像20にランダムに配置されるモザ
イクで、その大きさは横幅が(2m+1)、縦幅は(2
n+1)である。但し、ここでm、nは正の数である。
20 is x0 in the horizontal direction and y in the vertical direction. This is an image obtained by mosaic-processing an original image (not shown) consisting of pixels into equal parts using the mosaic 22, and the coordinates of the upper left corner are (1
, 1), the coordinates of the lower right edge are indicated by (Xo, "Jo"). 21 is a mosaic randomly placed on the image 20, and its size is (2m + 1) in width and (2m in height).
n+1). However, m and n are positive numbers here.

第3図はデータファイル5に格納されるモザイク処理用
の座標変換ファイルを作成するフローチャートである。
FIG. 3 is a flowchart for creating a coordinate transformation file for mosaic processing stored in the data file 5.

まずステップS1で、オリジナル画像の各画素に対して
変換したX座標、Y座標を格納するための配列x (x
o + yo ) + y (xo + yo )をC
PU2のRAMに用意する。
First, in step S1, an array x (x
o + yo) + y (xo + yo) as C
Prepare it in the RAM of PU2.

次にステップS2で、配列の各要素X (x。Next, in step S2, each element X (x.

y)、Y (x、y)にオリジナル画像の座標値(x、
y)に対応する座標値を代入する。これにより配列要素
X (x、y)=x、Y (x、y)=yとなる。但し
、1≦X≦×0.1≦y≦y0である。これは、乱数に
よってモザイクを発生させても、最後まで座標変換が一
度も行われない画素が発生する可能性があるために、全
ての要素の座標値を予め設定しておくものである。
y), Y (x, y) is the coordinate value (x, y) of the original image.
Assign the coordinate values corresponding to y). This results in array elements X (x, y)=x, Y (x, y)=y. However, 1≦X≦×0.1≦y≦y0. This is because even if a mosaic is generated using random numbers, there is a possibility that there will be pixels for which coordinate transformation is never performed until the end, so the coordinate values of all elements are set in advance.

次にステップS3に進み、モザイク21の個数を計数す
るカウンタJを“1”にする。ステップS4では乱数を
発生させて、オリジナル画面の座標内におけるモザイク
21の中心座標(xr。
Next, the process proceeds to step S3, where a counter J for counting the number of mosaics 21 is set to "1". In step S4, random numbers are generated to determine the center coordinates (xr) of the mosaic 21 within the coordinates of the original screen.

yr)を発生する。但し、1≦xr≦xo、l≦yr≦
y0である。次にステップs5で中心座標(x、 、y
r )を中心とするモザイク領域の全ての要素の座標(
x、y)に、中心座標(xr。
yr) is generated. However, 1≦xr≦xo, l≦yr≦
It is y0. Next, in step s5, the center coordinates (x, , y
The coordinates (
x, y), center coordinates (xr.

yr)をセットする。このモザイク領域には、モザイク
21のサイズを基に、x、−m+i〜xr十m ’= 
3’r−n+1〜yr+n−1の範囲の座標値を有する
要素が該当する。
yr). In this mosaic area, based on the size of the mosaic 21, x, -m+i~xr0m'=
Elements having coordinate values in the range of 3'r-n+1 to yr+n-1 are applicable.

次にステップS6に進み、モザイク21の黒枠領域とな
る要素のX座標、Y座標に“o ”を代入する。この黒
枠領域はそれぞれ(Xr−m、yr−n〜3’r +n
) l  (xr + m、yr −n〜y1+n)、
  (x、−m〜Xr  ”m、yr−n)。
Next, the process advances to step S6, and "o" is substituted into the X and Y coordinates of the element that will become the black frame area of the mosaic 21. These black frame areas are (Xr-m, yr-n~3'r +n
) l (xr + m, yr −n~y1+n),
(x, -m~Xr''m, yr-n).

(Xr −m〜Xr +m、 yr+n)で示される4
角形の直線領域である。なお、この黒枠領域は、画像全
体に締まりを与えるために加えられているもので、この
領域を示す値は必ずしも“0”である必要はなく、画面
の領域から外れた範囲の値であれば何でも良く、X、Y
座標の少なくとも一方だけを、画面の領域から外れた範
囲の値に変更して黒枠領域を示す様にしても良いことは
もちろんである。
4 represented by (Xr −m ~ Xr +m, yr+n)
It is a rectangular linear area. Note that this black frame area is added to give a tighter look to the entire image, and the value indicating this area does not necessarily have to be "0"; it can be any value that is outside the screen area. Anything is fine, X, Y
Of course, at least one of the coordinates may be changed to a value outside the screen area to indicate the black frame area.

ステップS7ではモザイク21を計数するカウンタJを
+1し、ステップs8ではモザイク21の個数であるN
回分繰り返したかを調べる。モザイク21の個数がN個
にならなければステップS4に戻り、前述の動作を繰り
返し実行するが、モザイク21の個数がN個になるとス
テップS9に進み、各要素のX座標、Y座標の値をデー
タファイル5に格納して処理を終了する。
In step S7, the counter J for counting mosaics 21 is incremented by 1, and in step s8, N is the number of mosaics 21.
Check whether it has been repeated several times. If the number of mosaics 21 does not reach N, the process returns to step S4, and the above-mentioned operation is repeated. However, when the number of mosaics 21 reaches N, the process proceeds to step S9, and the values of the X and Y coordinates of each element are calculated. The data is stored in the data file 5 and the process ends.

第4図は本実施例のモザイク処理のフローチャートであ
る。
FIG. 4 is a flowchart of mosaic processing in this embodiment.

まずステップSIOで画像入力部1よりオリジナル画像
デジタルデータを人力し、ステップS11でオリジナル
画像データを画像メモリ31に格納する。次にステップ
S12で画面全体に横2m+1.[2n+1の大きさを
有する黒枠付きのモザイク処理を行い、これを画像メモ
リ32に格納する。これは第2図に示した様にオリジナ
ル画像をモザイク22でマス目状に分割し、各モザイク
22の中を同一色にし、そして各モザイク22間の境界
部の画素を黒色に変えるものである。この後、ステップ
S14〜522でランダムのモザイク21を発生させる
First, in step SIO, original image digital data is input manually from the image input unit 1, and in step S11, the original image data is stored in the image memory 31. Next, in step S12, the entire screen is 2m+1. [Perform a mosaic process with a black frame having a size of 2n+1 and store it in the image memory 32. As shown in Fig. 2, the original image is divided into squares using mosaics 22, the inside of each mosaic 22 is made the same color, and the pixels at the boundaries between each mosaic 22 are changed to black. . After this, a random mosaic 21 is generated in steps S14 to S522.

ステップS13でX、Y方向の座標カウンタを共に“1
″とし、ステップ514で、第3図のフローチャートを
基に作成したデータファイル5より座標変換値を読出す
。ステップS15では配列X (x、y)、Y (x、
y)の少なくともいずれかが“0′かどうか、即ちモザ
イクの境界領域かをみる。境界領域のとぎはステップS
16に進み、画像メモリ32の対応する座標に黒色を入
れる。境界領域でない時はステップS17に進み、デー
タファイル5中の座標変換値が、もとの座標値に等しい
、即ち、X (x、y)=xかっY(x、y)=yかど
うかをみる。もとの座標値に等しい、即ち座標変換がな
されていない時は何もせずにステップS19に進むが、
それ以外のときはステップS18に進み、画像メモリ3
1の対応するオリジナル画像の座標(x、y)の色を画
像メモリ32の座標(x、y)に入れる。
In step S13, both the coordinate counters in the X and Y directions are set to "1".
'', and in step 514, the coordinate transformation values are read from the data file 5 created based on the flowchart in FIG. 3. In step S15, the arrays X (x, y), Y (x,
Check whether at least one of y) is "0", that is, it is a boundary area of the mosaic.The boundary area is trimmed in step S.
The process proceeds to step 16, and black is entered into the corresponding coordinates of the image memory 32. If it is not a boundary area, the process proceeds to step S17, and it is determined whether the coordinate transformation values in the data file 5 are equal to the original coordinate values, that is, whether X (x, y) = x or Y (x, y) = y. View. If it is equal to the original coordinate value, that is, if no coordinate transformation has been performed, the process proceeds to step S19 without doing anything.
Otherwise, the process advances to step S18, and the image memory 3
The color at the coordinates (x, y) of the corresponding original image of No. 1 is stored in the coordinates (x, y) of the image memory 32.

ステップS19.20でX方向の1ライン分の画素がチ
ェックされたかをみる。1ライン分の画素のチェックが
終了すると、ステップS21に進みY方向に1ライン進
み、次のラインのチェックを行う。1画面分の処理が終
了すると、画像メモリ32に処理済の画像データが格納
され、ステップ324で画像メモリ32の画像データを
出力部7に出力して処理が完了する。
In step S19.20, it is checked whether pixels for one line in the X direction have been checked. When the checking of pixels for one line is completed, the process advances to step S21, advances by one line in the Y direction, and checks the next line. When the processing for one screen is completed, the processed image data is stored in the image memory 32, and in step 324, the image data in the image memory 32 is output to the output section 7, and the processing is completed.

この様に、あらかじめデータファイル5に座標変換ファ
イルを用意しておけば、画素を頴次に処理していくこと
ができ、その都度乱数を用いてランダムに座標値を発生
させ、その座標値に該当する画素の周辺を処理するステ
ップを繰返すのに比べて、処理の高速化を計ることがで
きる。
In this way, if you prepare a coordinate transformation file in the data file 5 in advance, you can process pixels sequentially, randomly generate coordinate values using random numbers each time, and change the coordinate values to Compared to repeating the steps of processing the surroundings of the relevant pixel, processing speed can be increased.

[油絵、I!ll処理の説明 (第5図〜第8図)コ第
5図は他の実施例を示すオリジナル画像上のランダムな
位置に、筆のタッチを示すブロック50を配置する例を
示す図である。
[Oil painting, I! Explanation of Processing (FIGS. 5 to 8) FIG. 5 is a diagram showing another embodiment in which blocks 50 indicating brush strokes are placed at random positions on the original image.

51は横方向x0個、縦方向310個の画素で構成され
るオリジナル画像で、画像の左上端の座標が(1,1)
、右下端の座標が(Xo 、 ’io )で示されてい
る。50は第6図にその形状を示す、横7画素、縦5画
素で構成された筆のタッチを示すブロックで、オリジナ
ル画像のランダムな位置にN個配置され、自然画像をあ
たかも油絵で描いた様に処理するものである。
51 is an original image consisting of x0 pixels in the horizontal direction and 310 pixels in the vertical direction, and the coordinates of the upper left corner of the image are (1, 1)
, the coordinates of the lower right end are indicated by (Xo, 'io). 50 is a block indicating the touch of a brush composed of 7 pixels horizontally and 5 pixels vertically, the shape of which is shown in Figure 6. N blocks are placed at random positions in the original image, and the natural image is painted as if it were an oil painting. It is processed in various ways.

第7図はデータファイル5に格納する油絵風処理用の座
標変換ファイル作成処理のフローチャートである。
FIG. 7 is a flowchart of the process of creating a coordinate transformation file for oil painting style processing to be stored in the data file 5.

第3図のフローチャートと同様にして、ステップ330
〜S32で配列−x (xo 、  yo )、 y(
Xo + Vo )を用意し、配列の全ての要素にオリ
ジナル画像51の座標値(1〜xo、1〜yo)をセッ
トする。ステップS33では乱数を発生させて、オリジ
ナル画像51の座標内におけるブロック50の中心52
の座標(xr 、 yr )を得る。ステップS34で
はブロック50に相当する画素の座標を全て(Xr、3
’1)とする。即ちXr−3≦X≦X、+3.y、 −
2≦y≦yr+2の範囲内にある画素のうち、ブロック
50内に存在する画素のX、Y座標を(xr 、 yr
 )とするものである。
Similar to the flowchart of FIG. 3, step 330
~ In S32, array −x (xo, yo), y(
Xo + Vo) is prepared, and the coordinate values (1 to xo, 1 to yo) of the original image 51 are set in all elements of the array. In step S33, a random number is generated and the center 52 of the block 50 within the coordinates of the original image 51 is
Obtain the coordinates (xr, yr) of In step S34, all coordinates of pixels corresponding to block 50 (Xr, 3
'1). That is, Xr-3≦X≦X, +3. y, -
Among the pixels within the range of 2≦y≦yr+2, the X and Y coordinates of the pixels existing in the block 50 are expressed as (xr, yr
).

第3図のフローチャートと大きく異なる点は、油絵風の
処理の場合は、黒枠で囲む部分(境界領域)が存在しな
いので、第3図のステップS6に相当する処理が第7図
の処理では省略されている。
The major difference from the flowchart in Figure 3 is that in the case of oil painting style processing, there is no part surrounded by a black frame (boundary area), so the process corresponding to step S6 in Figure 3 is omitted in the process in Figure 7. has been done.

N個のブロック50が画像上に形成されるとステップS
37にみ、X座標、Y座標の値をそのままデータファイ
ル5に収納するのではなく、X座標、Y座標とその画素
の座標値x、yとの差、X−x、Y−yの値を収納する
。これは、X座標、Y座標の値をそのままデータファイ
ル5に収納すると、X座標の値は1〜xo、Y座標の値
は1〜y0の値となり、各要素に対してxo + yo
を満たすデータ領域を用意しなければならず、非常に多
くのメモリを要する。
Once N blocks 50 are formed on the image, step S
37, instead of storing the values of the X and Y coordinates as they are in the data file 5, the difference between the X and Y coordinates and the coordinate values x and y of that pixel, the values of X-x and Y-y. to store. This means that if the X and Y coordinate values are stored as they are in the data file 5, the X coordinate value will be 1 to xo, the Y coordinate value will be 1 to y0, and for each element xo + yo
It is necessary to prepare a data area that satisfies this requirement, which requires an extremely large amount of memory.

しかし本実施例の如くデータ領域の座標値の差をとって
収納すれば、座標変換が行われても、その座標値はせい
ぜい筆のタッチの形状の大きさ以内となるため、X−x
が−3〜+3.y−yが−2〜+2の範囲内に収まるこ
とになる。これによりデータ領域が小さくなり、メモリ
を大幅に節約できるという効果がある。
However, if the difference in the coordinate values of the data area is calculated and stored as in this embodiment, even if coordinate transformation is performed, the coordinate value will be within the size of the shape of the touch of the brush at most, so X-x
is -3 to +3. y−y falls within the range of −2 to +2. This has the effect of reducing the data area and significantly saving memory.

第8図は他の実施例の座標変換ファイルを用いた油絵風
処理のフローチャートで、第4図のフローチャートと基
本的に同じであるが、第4図のと比較して犬ぎく異なる
点は、座標変換ファイルの座標値は差分値として人って
いる点、及び黒枠領域がない点、更に油絵風処理ではオ
リジナル画像の上に筆タッチを加えていくため、画像メ
モリ32に前もってオリジナル画像を処理して格納する
必要はない点にある。
FIG. 8 is a flowchart of oil painting style processing using a coordinate conversion file of another embodiment, which is basically the same as the flowchart in FIG. The coordinate values of the coordinate conversion file are the difference values for the points where there are people and the points where there is no black frame area.Furthermore, in oil painting style processing, brush strokes are added on the original image, so the original image is processed in advance in the image memory 32. There is no need to store it.

ステップ540〜S42は第4図のステップ510〜3
13に等しいので説明を略し、ステップS43より説明
を行う。ステップS43ではデータファイル5よりX、
Y座標の差、△X、△Yを読込み、ステップS44で画
像メモリ31のオリジナル画像の座標(X+△X、y+
△Y)の色を画像メモリ32の座標(x、y)に格納す
る。このようにして、1≦X≦x0,1≦y≦y0の1
画面分の全画素が画像メモリ32に構成されるとステッ
プS50に進み、画像メモリ32の処理済画像を出力部
7に出力して処理を終了する。
Steps 540 to S42 are steps 510 to 3 in FIG.
Since it is equal to 13, the explanation will be omitted and will be explained from step S43. In step S43, from data file 5,
The difference in Y coordinates, △X, △Y is read, and in step S44, the coordinates (X+△X, y+) of the original image in the image memory 31 are read.
The color ΔY) is stored in the coordinates (x, y) of the image memory 32. In this way, 1≦X≦x0, 1≦y≦y0
When all the pixels for the screen are configured in the image memory 32, the process proceeds to step S50, where the processed image in the image memory 32 is output to the output unit 7, and the process ends.

この様に、データファイル5にX座標、X座標の差分値
を収納しておけば、データファイル5として必要なメモ
リの容量を大幅に節約できるという効果がある。なお、
この処理で、黒枠付きの処理を行いたい場合は、筆のタ
ッチの形状として必要な値から外れた値(第6図の場合
例えばX座標に−3を代入する)をデータファイルに収
納しておき、処理時にその値に応じて黒色に変換する処
理を行うと良い。
In this way, by storing the X coordinate and the difference value of the X coordinate in the data file 5, there is an effect that the memory capacity required for the data file 5 can be saved significantly. In addition,
If you want to process with a black frame in this process, store a value outside the required value for the shape of the brush stroke (for example, in the case of Figure 6, substitute -3 for the X coordinate) in the data file. It is a good idea to convert the color to black according to the value at the time of processing.

〔処理画像領域よりも座標変換ファイルのデータ領域を
大きくした例の説明 (第9図〜第11図)] 第9図は処理画像領域91とデータ領域92の関係を示
す図で、91は処理画像領域を示し、前述の実施例と同
様に横XO+縦y。個の画素で構成されていて、左上端
の座標(X!l 、 ys )を基準として、データ領
域92内を処理画像領域91がはみ出ない範囲でg動可
能となっている。データ領域92は処理画像領域91よ
り大きい領域1≦X≦x、、、1≦y≦yd (但しX
d >x、。
[Explanation of an example in which the data area of the coordinate transformation file is larger than the processing image area (Figs. 9 to 11)] Fig. 9 is a diagram showing the relationship between the processing image area 91 and the data area 92, and 91 is a diagram showing the relationship between the processing image area 91 and the data area 92. The image area is shown as horizontal XO+vertical y as in the previous embodiment. The processing image area 91 can be moved in g within the data area 92 with reference to the coordinates (X!l, ys) of the upper left corner within the range where the processing image area 91 does not protrude. The data area 92 is a larger area than the processing image area 91, where 1≦X≦x, , 1≦y≦yd (however, X
d>x,.

y d> y o )を有する座標変換ファイルのデー
タ領域である。
y d > y o ) is a data area of a coordinate transformation file.

第10図はデータファイル5にデータ領域92の範囲の
座標変換ファイルを作成する、更に他の実施例のフロー
チャートである。本フローチャートは第7図のフローチ
ャートと配列X、Yのディメンジョンが異なるのみで、
全く同一であるからその説明を省略する。
FIG. 10 is a flowchart of yet another embodiment for creating a coordinate conversion file for the range of the data area 92 in the data file 5. This flowchart differs from the flowchart in Figure 7 only in the dimensions of the arrays X and Y.
Since they are exactly the same, their explanation will be omitted.

第11図は処理画像領域より・も大きいデータ領域を有
する座標変換ファイルをデータファイル5に格納してい
る場合の、更に他の実施例の油絵風処理のフローチャー
トである。
FIG. 11 is a flowchart of oil painting style processing according to yet another embodiment when a coordinate transformation file having a data area larger than the processing image area is stored in the data file 5.

ステップS70.S71で画像人力部1よりオリジナル
画像が画像メモリ31に格納される。ステップS72で
は乱数を発生させて、座標変換ファイルのスタート座標
(Xs 、 ys )を求める。
Step S70. In S71, the original image is stored in the image memory 31 by the image processing unit 1. In step S72, random numbers are generated to determine the start coordinates (Xs, ys) of the coordinate transformation file.

但し、ここで1≦X、≦xd−xo、1≦y3≦”Id
−’Joの範囲にあることはもちろんである。
However, here 1≦X, ≦xd−xo, 1≦y3≦”Id
-' Of course, it is within the range of Jo.

ステップS73ではx、y方向のカウンタを共に1″と
し、ステップS74でデータファイル中の座標変換ファ
イルより差分△X (X+X5−1、 y+’jM−1
)、△Y (x+xs−1,y+ys−1)を読み出す
。従ってまず最初にオリジナル画像の座標(Xs r 
ys )に対応する差分データが読出され、ステップS
75.S76でそれぞれX+Δx、y+△Yが処理画像
領域91内にあるかをみる。領域91内にない時はそれ
ぞれステップS76.37Bで差分データを°0”にす
るが、領域91内にある時はステップS79に進む。
In step S73, both the counters in the x and y directions are set to 1'', and in step S74, the difference △X (X+X5-1, y+'jM-1) is calculated from the coordinate transformation file in the data file.
), ΔY (x+xs-1, y+ys-1) are read out. Therefore, first of all, the coordinates of the original image (Xs r
ys) is read out, and step S
75. In S76, it is checked whether X+Δx and y+ΔY are within the processing image area 91, respectively. If it is not within the region 91, the difference data is set to 0" in steps S76 and 37B, but if it is within the region 91, the process advances to step S79.

ステップS79ではオリジナル画像の座標(x+△x、
y+△Y)の色を、処理画像の座標(x、y)に格納す
る。この様にして画像メモリ32に処理済画像を格納し
ていき、オリジナル画像の全ての画素に対して処理が完
了すると、ステップS85で出力部7に出力して処理を
終了する。
In step S79, the coordinates of the original image (x+△x,
y+ΔY) is stored at the coordinates (x, y) of the processed image. In this manner, the processed image is stored in the image memory 32, and when the processing is completed for all pixels of the original image, it is output to the output unit 7 in step S85, and the processing is terminated.

この様にデータファイル5の座漂変換ファイルを処理画
像領域よりも大きく作っておき、画像領域の位置をラン
ダムに変えながら処理を行うことによって、同一の座標
変換ファイルを用いて処理を行っても、その度に違う結
果が得られることになり、種々の処理結果のバリエーシ
ョンを作り出すことができる。なお、この方法を用いて
処理を行う場合、X+Δx、y+△Yの値が処理画像領
域を出てしまう場合があるので、この場合はステップS
76とステップS78とで、それぞれ△Xと△Yを“0
”にしてから処理を行っている。
In this way, by making the stranded transformation file of data file 5 larger than the processing image area and performing processing while randomly changing the position of the image area, even if processing is performed using the same coordinate transformation file. , a different result will be obtained each time, and various variations of processing results can be created. Note that when processing using this method, the values of X+Δx and y+ΔY may go out of the processing image area, so in this case, step
76 and step S78, respectively set △X and △Y to “0”.
” and then process it.

以上説明した如く本実施例によれば、座標変換ファイル
を予め作成して用意しておくことにより、毎回毎回乱数
を発生させて形状を配置していくのに比べ、高速に処理
できるという効果がある。
As explained above, according to this embodiment, by creating and preparing a coordinate transformation file in advance, processing can be performed at high speed compared to generating random numbers and arranging shapes each time. be.

また他の実施例によれば、座標変換ファイル情報として
座標値の差分なメモリに格納することにより、メモリの
容量を大幅に減少できるという効果がある。
Further, according to another embodiment, by storing the differential coordinate values in the memory as coordinate transformation file information, it is possible to significantly reduce the memory capacity.

また更に他の実施例によれば、座標変換ファイルのデー
タ領域を処理画像領域より大きく作成しておき、データ
領域よりランダムに処理画像領域を選択することにより
、同一の変換ファイルを用いても、異なる画像に変換で
きるという効果がある。
According to still another embodiment, the data area of the coordinate transformation file is created larger than the processing image area, and the processing image area is randomly selected from the data area, so that even if the same transformation file is used, This has the effect of being able to convert to a different image.

[発明の効果コ 以上述べた如く本発明によれば、乱数を用いて作成した
座標変換ファイルを予め用意しておくことにより、高速
に画像データの変換が実施できるという効果がある。
[Effects of the Invention] As described above, according to the present invention, by preparing in advance a coordinate transformation file created using random numbers, image data can be transformed at high speed.

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

第1図は本実施例の画像処理装置の構成図、第2図はモ
ザイク処理を示す概念図、 第3図はモザイク処理用の座標変換ファイル作成のフロ
ーチャート、 第4図はモザイク処理のフローチャート、第5図は油絵
風処理を示す概念図、 第6図は筆のタッチの形状を示す図、 第7図は油絵風処理用の座標変換ファイル作成のフロー
チャート、 第8図は油絵風処理のフローチャート、第9図は座標変
換ファイルを処理画像領域よりも大きくした場合の概念
図、 第10図は第9図の場合の座標変換ファイル作成のフロ
ーチャート、 第11図は油絵風処理を第9図の場合で処理するフロー
チャートである。 図中、1・・・画像入力部、2・・・CPU、3・・・
画像メモリ、4・・・コマンド入力部、5・・・データ
ファイル、6・・・CRT17・・・出力部、51・・
・オリジナル画像、21・・・ランダムモザイク、22
・・・モザイク、31.32・・・画像メモリ、50・
・・ブロック、52・・・中心画素、91・・・処理画
像領域、92・・・データ領域である。
Fig. 1 is a configuration diagram of the image processing device of this embodiment, Fig. 2 is a conceptual diagram showing mosaic processing, Fig. 3 is a flowchart of creating a coordinate transformation file for mosaic processing, Fig. 4 is a flowchart of mosaic processing, Figure 5 is a conceptual diagram showing oil painting style processing, Figure 6 is a diagram showing the shape of a brush touch, Figure 7 is a flowchart for creating a coordinate conversion file for oil painting style processing, and Figure 8 is a flowchart of oil painting style processing. , Figure 9 is a conceptual diagram when the coordinate transformation file is made larger than the processing image area, Figure 10 is a flowchart for creating a coordinate transformation file in the case of Figure 9, and Figure 11 is an oil painting style processing of Figure 9. 3 is a flowchart for processing in cases. In the figure, 1... image input section, 2... CPU, 3...
Image memory, 4... Command input section, 5... Data file, 6... CRT17... Output section, 51...
・Original image, 21...Random mosaic, 22
...Mosaic, 31.32...Image memory, 50.
...Block, 52...Center pixel, 91...Processing image area, 92...Data area.

Claims (1)

【特許請求の範囲】[Claims] 第1の画像データの画素をランダムに指定する指定手段
と、前記第1の画像データ上に前記画素をほぼ中心とす
る所定パターンを発生する発生手段と、前記所定パター
ン内の画素の座標をほぼ中心の画素の座標値に変換する
変換情報を記憶する記憶手段と、前記第1の画像データ
の画素の色情報を、前記変換情報を基に前記画素に対応
する座標値を有する第2の画像データの画素の色情報と
する手段とを備えたことを特徴とする画像処理装置。
specifying means for randomly specifying pixels of the first image data; generating means for generating a predetermined pattern approximately centered on the pixel on the first image data; storage means for storing conversion information for converting into coordinate values of a central pixel; and a second image having coordinate values corresponding to the pixels based on the conversion information, color information of the pixels of the first image data. An image processing apparatus comprising: means for converting data into pixel color information.
JP61258605A 1986-10-31 1986-10-31 Image processing device Expired - Lifetime JPH0816927B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP61258605A JPH0816927B2 (en) 1986-10-31 1986-10-31 Image processing device
US07/113,997 US4956872A (en) 1986-10-31 1987-10-29 Image processing apparatus capable of random mosaic and/or oil-painting-like processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61258605A JPH0816927B2 (en) 1986-10-31 1986-10-31 Image processing device

Publications (2)

Publication Number Publication Date
JPS63113771A true JPS63113771A (en) 1988-05-18
JPH0816927B2 JPH0816927B2 (en) 1996-02-21

Family

ID=17322595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61258605A Expired - Lifetime JPH0816927B2 (en) 1986-10-31 1986-10-31 Image processing device

Country Status (1)

Country Link
JP (1) JPH0816927B2 (en)

Also Published As

Publication number Publication date
JPH0816927B2 (en) 1996-02-21

Similar Documents

Publication Publication Date Title
US4956872A (en) Image processing apparatus capable of random mosaic and/or oil-painting-like processing
KR960013365B1 (en) Specifying 3d points in 2d graphic displays
EP0477904A2 (en) Method of and apparatus for generating reduced image
JPH0727725Y2 (en) Image editing equipment
JPH04125644A (en) Picture processor
JPH0561954A (en) Image processor
JPS63113771A (en) Image processor
JPS60198687A (en) Picture quality changing device
JPS63113773A (en) Image processor
JPS63113772A (en) Image processor
JP2714100B2 (en) How to make a video
JPH01126718A (en) Image input control device
JP2701056B2 (en) Secondary representation method for three-dimensional objects
JPH07200801A (en) Deformed image producing device
US5748779A (en) Method and apparatus for inputting handwritten alphanumeric characters and for displaying the input characters
JP2690507B2 (en) Image data processing device
JPS63146168A (en) Picture editing method
JP3075111B2 (en) Image cropping device and layout scanner
JPH052224B2 (en)
US6400369B1 (en) Information processing method and apparatus for generating texture-data for computer graphics
JPH0639163A (en) Embroidery data preparing device
JPS61150077A (en) Picture processor
JP2721344B2 (en) Image processing method
JPH0661089B2 (en) Two-dimensional representation method of three-dimensional object
JPS60258680A (en) Image processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term