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
JP4518484B2 - Image generation program and image generation apparatus - Google Patents
[go: Go Back, main page]

JP4518484B2 - Image generation program and image generation apparatus - Google Patents

Image generation program and image generation apparatus Download PDF

Info

Publication number
JP4518484B2
JP4518484B2 JP2004301949A JP2004301949A JP4518484B2 JP 4518484 B2 JP4518484 B2 JP 4518484B2 JP 2004301949 A JP2004301949 A JP 2004301949A JP 2004301949 A JP2004301949 A JP 2004301949A JP 4518484 B2 JP4518484 B2 JP 4518484B2
Authority
JP
Japan
Prior art keywords
image
parameter
unit
value
generation
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
JP2004301949A
Other languages
Japanese (ja)
Other versions
JP2005141736A (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.)
Kawashima Selkon Textiles Co Ltd
Original Assignee
Kawashima Selkon Textiles Co Ltd
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 Kawashima Selkon Textiles Co Ltd filed Critical Kawashima Selkon Textiles Co Ltd
Priority to JP2004301949A priority Critical patent/JP4518484B2/en
Publication of JP2005141736A publication Critical patent/JP2005141736A/en
Application granted granted Critical
Publication of JP4518484B2 publication Critical patent/JP4518484B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)

Description

本発明は、コンピュータを利用した画像生成プログラムおよび画像生成装置、特に、コンピュータを利用して自然感のある画像を生成するためのプログラム、およびコンピュータを利用して自然感のある画像を生成する装置に関するものである。   The present invention relates to an image generation program and an image generation apparatus using a computer, in particular, a program for generating a natural image using a computer, and an apparatus for generating a natural image using a computer. It is about.

近年のコンピュータグラフィックス技術の発展により、コンピュータを利用して画像を描画したり、画像を自動生成することが広範囲になされている。
この場合、描画機能を備えた画像編集用ソフトウェアが用いられ、例えば、予めデジタルカメラやスキャナによって取り込まれた画像が編集され、必要に応じてフィルター機能が利用され、画像に対して「ぼかし」や「ノイズ」等の特殊な効果が付与され、生成される画像に自然な感じを与えることがなされている。しかしながら、フィルター機能は画像全体に影響を与え、全体的に単調な変化をもたらすにすぎず、自然感に溢れた画像を生成するには十分なものではなかった。また、より自然な感じを与える画像を生成するべく、かかる描画機能を備えた画像編集用ソフトウェアを用いて、マウスやタブレット等のコンピュータの入力装置を巧みに操作しながら、画像を直接生成することがなされている。しかし、この方法では、コンピュータの入力装置の操作に熟練を要し、画像を生成することは容易ではない(例えば、非特許文献1参照)。
With the recent development of computer graphics technology, it has been widely used to draw images or automatically generate images using a computer.
In this case, image editing software having a drawing function is used. For example, an image captured in advance by a digital camera or a scanner is edited, and a filter function is used as necessary. A special effect such as “noise” is added to give a natural feeling to the generated image. However, the filter function only affects the entire image and brings about a monotonous change as a whole, and is not sufficient for generating an image full of natural feeling. In addition, in order to generate an image that gives a more natural feeling, the image editing software having such a drawing function is used to directly generate an image while skillfully operating an input device of a computer such as a mouse or a tablet. Has been made. However, this method requires skill to operate the input device of the computer, and it is not easy to generate an image (see, for example, Non-Patent Document 1).

また、自然感に溢れた画像を自動的に効率良く生成することを意図して、フラクタルやカオス等の数学理論を応用した画像生成法がこれまでに知られている(例えば、非特許文献2、3参照)。そして、フラクタルを応用した方法では、マンデルブロー、ジュリア集合を用いる方法が、カオスを応用した方法では、エノン写像を用いる方法が良く知られている。
これらの方法では、漸化式と呼ばれる図形データ生成関数を用いて、係数(変数)と呼ばれる画像や図形を構成する要素を任意に変更することで、新たな画像を次々に生成することができるが、いずれも癖のある特定のカテゴリーに属する画像しか生成することができなかった。
In addition, image generation methods that apply mathematical theory such as fractal and chaos with the intention of automatically and efficiently generating an image full of natural feeling have been known (for example, Non-Patent Document 2). 3). A method using Mandelbrot and Julia sets is well known as a method applying fractals, and a method using enon mapping is well known as a method applying chaos.
In these methods, by using a graphic data generation function called a recurrence formula, new elements can be generated one after another by arbitrarily changing the elements constituting the image or graphic called coefficients (variables). However, all of them could only generate images belonging to a certain category with a wrinkle.

宮窪伸治、「はじめてのPhotoshop7.0 Windows(登録商標)版」、秀和システム発行、2002年Shinji Miyakubo, “First Photoshop 7.0 Windows (registered trademark) version”, published by Hidekazu System, 2002 渕上季代絵、「CによるフラクタルCG」、サイエンス社発行、1993年渕 Kamiyo, "Fractal CG by C", published by Science, 1993 川上博、上田哲史、「CによるカオスCG」、サイエンス社発行、1994年Hiroshi Kawakami, Satoshi Ueda, "Chaos CG by C", published by Science, 1994

したがって、本発明の課題は、コンピュータを利用して、自然感にあふれた画像を簡単に自動生成することができるようにすることにある。   Accordingly, an object of the present invention is to enable easy and automatic generation of an image full of natural feeling using a computer.

上記課題を解決するため、本発明は、少なくとも2つの予め決定された種類の図形を含む画像を生成するプログラムであって、コンピュータに
(a)生成すべき画像中に含まれる各図形の構成要素に関する第1パラメータの組、および前記各図形の前記画像の構成要素としての属性に関する第2パラメータの組を引数とし、前記各図形の画像生成用データを出力する図形データ生成関数を設定する手順と、
(a’)前記第1および第2パラメータの組の各パラメータの初期値を、生成すべき画像の基本属性パラメータの値とともに記憶する手順と、
(b)乱数を発生させる手順と、
(b’)発生させた前記乱数を確率密度関数の引数として、前記確率密度関数の値を計算する手順と、
(c)前記確率密度関数の値を用いて、前記第1および第2パラメータの組のうちの少なくとも1つのパラメータの値を変更する手順と、
(d)前記手順(c)で変更したパラメータの値を、前記第1および第2パラメータの組における残りのパラメータの値とともに前記図形データ生成関数に入力し、それから出力された前記各図形の画像生成用データを用いて画像全体の画像データを生成する手順と、
(e)前記手順(d)で生成した前記画像全体の画像データに基づき画像をディスプレイ表示しまたはプリントアウトする手順と、
(f)所望の画像が得られるまで、前記手順(b)〜(e)を繰り返す手順と、
(g)前記手順(f)が実行される間に、変更されるパラメータの種類および乱数発生関数に対する初期化変数並びに確率密度関数の種類を順次記憶する手順と、
(h)前記手順(a’)で記憶した前記各パラメータの初期値および前記画像の基本属性パラメータの値と、前記手順(g)で記憶した前記変更されるパラメータの種類および前記乱数発生関数の初期化変数並びに前記確率密度関数の種類とに基づき、前記図形データ生成関数および前記確率密度関数を用いて前記所望の画像の画像データを再び生成し、その画像をディスプレイ表示しまたはプリントアウトする手順と、を実行させることを特徴とする画像生成プログラムを構成したものである。
In order to solve the above problems, the present invention is a program for generating an image including at least two predetermined types of graphics, and (a) a component of each graphic included in the image to be generated by the computer A procedure for setting a graphic data generation function for outputting image generation data of each graphic, using as arguments the first parameter set related to the image and a second parameter set related to the attribute of each graphic as the component of the image; ,
(A ′) storing an initial value of each parameter of the set of the first and second parameters together with a value of a basic attribute parameter of an image to be generated;
(B) a procedure for generating random numbers;
(B ′) a procedure for calculating a value of the probability density function using the generated random number as an argument of the probability density function;
(C) using the value of the probability density function to change the value of at least one parameter of the first and second parameter sets;
(D) The value of the parameter changed in the procedure (c) is input to the graphic data generation function together with the remaining parameter values in the first and second parameter sets, and the image of each graphic output therefrom is output. A procedure for generating image data of the entire image using the generation data;
(E) a procedure for displaying or printing out an image based on the image data of the entire image generated in the procedure (d);
(F) repeating the steps (b) to (e) until a desired image is obtained;
(G) a procedure for sequentially storing the type of parameter to be changed, the initialization variable for the random number generation function, and the type of probability density function while the step (f) is performed;
(H) the initial value of each parameter and the basic attribute parameter value of the image stored in step (a ′), the type of the parameter to be changed and the random number generation function stored in step (g) A procedure for regenerating image data of the desired image using the graphic data generation function and the probability density function based on an initialization variable and the type of the probability density function, and displaying or printing out the image. And an image generation program characterized by executing the above.

本発明の好ましい実施例によれば、前記第1パラメータの組は、前記各図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つを含んでおり、前記第2パラメータの組は、画像中における図形の個数パラメータ、および前記各図形の画像中における位置パラメータのうちの少なくとも1つを含んでいる。
本発明の別の好ましい実施例によれば、前記手順(c)において、前記第1パラメータの組のうち、特定された図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つが変更されるようになっている。
According to a preferred embodiment of the present invention, the first parameter set includes at least one of a shape parameter, a color parameter, a size parameter, and a tilt parameter of each figure, and the second parameter The set includes at least one of a figure number parameter in the image and a position parameter in the image of each figure.
According to another preferred embodiment of the present invention, in the step (c), at least one of a shape parameter, a color parameter, a size parameter, and a slope parameter of the identified figure in the first parameter set. One is to be changed.

各図形の形状パラメータとしては、例えば、予め選択された図形同志の交換、図形の縦横比、図形の各頂点位置、図形を構成する線の長さ、太さおよび曲がりの程度が挙げられる。各図形の大きさパラメータとしては、例えば、図形の幅、高さおよびサイズ、線のみから構成される図形における線の太さおよび長さ、図形の拡大縮小率が挙げられる。
また、各図形の色パラメータが用いられる場合には、色は数値化されている必要がある。この色の数値化については各種数値化法があり、本発明においては特に限定されるものではないが、例えば、各種色に番号を付したカラーナンバー、各種色を色の3要素である色相、明度、彩度について段階表示したもの、分光化学データであるスペクトルまたはスペクトル反射率で数値化したもの、さらには、RGB等の3原色の等色関数化したもの、あるいは、XYZ、Lab等に等色関数化したもの等であってもよい。
The shape parameters of each figure include, for example, the exchange of preselected figures, the aspect ratio of the figure, the position of each vertex of the figure, the length, thickness, and the degree of bending of the lines constituting the figure. As the size parameter of each figure, for example, the width, height and size of the figure, the thickness and length of the line in the figure composed only of the line, and the enlargement / reduction ratio of the figure can be mentioned.
In addition, when the color parameter of each figure is used, the color needs to be digitized. There are various quantification methods for digitizing this color, and it is not particularly limited in the present invention. For example, a color number assigned with a number to each color, a hue that is a three element of each color, Step display for brightness and saturation, quantified by spectrum or spectral reflectance as spectrochemical data, further, color function of three primary colors such as RGB, or XYZ, Lab, etc. It may be a color function.

本発明のさらに別の好ましい実施例によれば、前記手順(c)において、前記第2パラメータの組のうち、画像中における図形の個数パラメータおよび特定された図形の画像中における位置パラメータのうちの少なくとも1つが変更されるようになっている。 According to still another preferred embodiment of the present invention, in the step (c), of the second parameter set, the number parameter of the figure in the image and the position parameter in the image of the identified figure At least one is changed.

上記課題を解決するため、本発明は、また、プログラムされたコンピュータにより、少なくとも2つの予め決定された種類の図形を含んだ自然感のある画像を生成する装置であって、生成すべき画像の基本属性パラメータの値、および前記生成すべき画像中に含まれる各図形の構成要素に関する第1パラメータの組、および前記画像中に含まれる各図形の前記画像の構成要素としての属性に関する第2パラメータの組の各パラメータの初期値の入力を受けるパラメータ初期値入力部と、前記パラメータ初期値入力部から入力された、前記画像の基本属性パラメータの値、および前記第1および第2パラメータの組の各パラメータの初期値を記録するパラメータ初期値記録部と、前記パラメータの値を変更すべき図形の選択の入力を受ける変更図形選択部と、変更すべき第1および第2パラメータの選択の入力を受ける変更パラメータ選択部と、乱数発生部と、前記乱数発生部から出力された乱数の値を修正するための確率密度関数の種類の入力を受ける確率密度関数選択部と、前記乱数発生部から出力された乱数を、前記確率密度関数選択部によって選択された確率密度関数の引数として、前記確率密度関数の値を計算し、出力する乱数修正部と、前記乱数修正部の出力値を用いて、前記変更図形選択部によって選択された図形に関して、前記変更パラメータ選択部によって選択された変更すべき第1および第2パラメータの値を変更するパラメータ値変更部と、前記第1および第2パラメータの組を引数とし、前記各図形の画像生成用データを出力する図形データ生成関数部と、前記パラメータ値変更部によって変更された前記第1および第2パラメータの値を、前記第1および第2パラメータの組における残りのパラメータの値とともに前記図形データ生成関数部に入力し、前記図形データ生成関数部から出力された前記各図形の画像生成用データ、および前記画像の基本属性パラメータの値に基づいて画像全体の画像データを生成する画像データ生成部と、前記画像データ生成部から出力された前記画像全体の画像データに基づいて前記生成すべき画像をディスプレイ表示またはプリントアウトする画像出力部と、前記画像出力部により所望の画像がディスプレイ表示されまたはプリントアウトされるまでの一連の画像生成過程において、パラメータの値が変更された図形の種類および変更されたパラメータの種類および乱数発生関数に対する初期化変数並びに確率密度関数の種類を順次記録する画像生成履歴データ記録部と、前記画像生成履歴データ記録部に記録されたデータおよび前記パラメータ初期値記録部に記録されたデータに基づき、前記乱数発生部、前記パラメータ値変更部および前記図形データ生成関数部を作動させて、前記所望の画像の画像データを再び生成し、前記画像出力部に出力する画像データ再生成部と、を備えていることを特徴とする画像生成装置を構成したものである。 In order to solve the above-mentioned problems, the present invention is also an apparatus for generating a natural image including at least two predetermined types of graphics by a programmed computer. The value of the basic attribute parameter, the first set of parameters relating to the constituent elements of each graphic included in the image to be generated, and the second parameter relating to the attributes of each graphic included in the image as the constituent elements of the image A parameter initial value input unit that receives input of initial values of each parameter of the set, a value of the basic attribute parameter of the image input from the parameter initial value input unit, and a set of the first and second parameters changes receiving each parameter and the parameter initial value recording unit for recording the initial value of the input selection of the graphic should be changed value of the parameter Probability density function for correcting a shape selecting unit, and changing the parameter selection unit for receiving an input of the selection of the first and second parameters to be changed, and a random number generator, the value of the random number output from the random number generator The probability density function selection unit that receives the input of the type of the random number, and the random number output from the random number generation unit is used as an argument of the probability density function selected by the probability density function selection unit to calculate the value of the probability density function The first and second parameters to be changed selected by the change parameter selection unit with respect to the graphic selected by the changed graphic selection unit using the output value of the random number correction unit to be output and the random number correction unit A parameter value changing unit that changes a value, a graphic data generation function unit that outputs the image generation data of each graphic with the set of the first and second parameters as an argument, The values of the first and second parameters changed by the parameter value changing unit are input to the graphic data generation function unit together with the values of the remaining parameters in the first and second parameter sets, and the graphic data generation An image data generation unit that generates image data of the entire image based on the image generation data of each graphic output from the function unit and the value of the basic attribute parameter of the image, and the image data generation unit An image output unit that displays or prints out the image to be generated based on image data of the entire image, and a series of image generation processes until a desired image is displayed on the display or printed out by the image output unit The type of figure whose parameter value was changed and the type of parameter changed And an image generation history data recording unit for sequentially recording types of initialization variables and probability density functions for random number generation functions, data recorded in the image generation history data recording unit, and data recorded in the parameter initial value recording unit The random number generator, the parameter value changer, and the graphic data generation function unit to generate the image data of the desired image again and output the image data to the image output unit; The image generating apparatus is characterized by comprising:

本発明の好ましい実施例によれば、前記第1パラメータの組は、前記各図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つを含んでおり、前記第2パラメータの組は、画像中における図形の個数パラメータ、および前記各図形の画像中における位置パラメータのうちの少なくとも1つを含んでいる。
本発明の別の好ましい実施例によれば、前記画像の基本属性パラメータは、生成すべき画像の縦横サイズ、前記画像中で使用される色の色数、前記画像中で使用される色の色テーブル、および前記画像の解像度からなっている。
According to a preferred embodiment of the present invention, the first parameter set includes at least one of a shape parameter, a color parameter, a size parameter, and a tilt parameter of each figure, and the second parameter The set includes at least one of a figure number parameter in the image and a position parameter in the image of each figure.
According to another preferred embodiment of the present invention, the basic attribute parameters of the image are the vertical and horizontal sizes of the image to be generated, the number of colors used in the image, and the color of the color used in the image. It consists of a table and the resolution of the image.

本発明によれば、コンピュータを用い、生成すべき画像中に含まれる各図形の構成要素に関する第1パラメータの組、および各図形の画像の構成要素としての属性に関する第2パラメータの組を図形データ生成関数に入力することで、各図形の画像生成用データを取得するようにし、第1および第2パラメータを、確率密度関数によって出現頻度を制御した乱数を用いて変更しつつ、所望の画像生成用データが得られるまで画像生成用データを繰り返し変更するようにしたので、自然感に溢れた画像を自動生成することができる。 According to the present invention, using a computer, the first parameter set relating to the component of each graphic included in the image to be generated and the second parameter set relating to the attribute as the component of the image of each graphic are represented by graphic data. By inputting to the generation function, data for image generation of each figure is acquired, and the first and second parameters are changed using random numbers whose appearance frequency is controlled by the probability density function, and desired image generation is performed. since use data has to be changed repeatedly image generation data to obtain, it is possible to automatically generate an image full of natural feeling.

それと同時に、画像生成用データの変更履歴情報を記録するようにしたので、好適なデザインを作成する上で価値の高いノウハウを容易かつ確実に蓄積することができる。そして、これらの情報を、例えば、クライアント/サーバーシステムのサーバーコンピュータに蓄積し、クライアントコンピュータ間で交換することで、価値あるデザイン作成のノウハウの有効利用を図ることができ、また、情報を受信する相手によってその交換方法を選択することにより、ノウハウの社外流出防止への対策を同時に実現できる。 At the same time, since the change history information of the image generation data is recorded , high-value know-how can be easily and reliably accumulated in creating a suitable design. Then, by storing such information in, for example, a server computer of a client / server system and exchanging between the client computers, it is possible to effectively utilize valuable design creation know-how and receive information. By selecting the exchange method according to the partner, it is possible to simultaneously implement measures to prevent the outflow of know-how.

以下、添付図面を参照して、本発明の好ましい実施例について説明する。図1は、本発明による画像生成プログラムのフロー図である。図1を参照して、本発明によるプログラムは、コンピュータに対し、まず最初に、生成すべき画像中に含まれる各図形の構成要素に関する第1パラメータの組、および各図形の画像の構成要素としての属性に関する第2パラメータの組を引数とし、各図形の画像生成用データを出力する図形データ生成関数を設定させる(図1の手順(a))。この場合、第1パラメータの組は、各図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つを含んでおり、第2パラメータの組は、画像中における図形の個数パラメータ、および各図形の画像中における位置パラメータのうちの少なくとも1つを含んでいる。
各図形の形状パラメータとしては、例えば、予め選択された図形同志の交換、図形の縦横比、図形の各頂点位置、図形を構成する線の長さ、太さおよび曲がりの程度が挙げられる。各図形の大きさパラメータとしては、例えば、図形の幅、高さおよびサイズ、線のみから構成される図形における線の太さおよび長さ、図形の拡大縮小率が挙げられる。
また、各図形の色パラメータが用いられる場合には、色は数値化されている必要がある。この色の数値化については各種数値化法があり、本発明においては特に限定されるものではないが、例えば、各種色に番号を付したカラーナンバー、各種色を色の3要素である色相、明度、彩度について段階表示したもの、分光化学データであるスペクトルまたはスペクトル反射率で数値化したもの、さらには、RGB等の3原色の等色関数化したもの、あるいは、XYZ、Lab等に等色関数化したもの等であってもよい。
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a flowchart of an image generation program according to the present invention. Referring to FIG. 1, a program according to the present invention is a program for a computer. First, as a set of first parameters relating to components of each graphic included in an image to be generated, and as components of an image of each graphic The graphic data generation function for outputting the image generation data of each graphic is set with the second parameter set relating to the attribute of the image as an argument (procedure (a) in FIG. 1). In this case, the first parameter set includes at least one of the shape parameter, the color parameter, the size parameter, and the inclination parameter of each figure, and the second parameter set is the figure number parameter in the image. , And at least one of position parameters in the image of each figure.
The shape parameters of each figure include, for example, the exchange of preselected figures, the aspect ratio of the figure, the position of each vertex of the figure, the length, thickness, and the degree of bending of the lines constituting the figure. As the size parameter of each figure, for example, the width, height and size of the figure, the thickness and length of the line in the figure composed only of the line, and the enlargement / reduction ratio of the figure can be mentioned.
In addition, when the color parameter of each figure is used, the color needs to be digitized. There are various quantification methods for digitizing this color, and it is not particularly limited in the present invention. For example, a color number assigned with a number to each color, a hue that is a three element of each color, Step display for brightness and saturation, quantified by spectrum or spectral reflectance as spectrochemical data, further, color function of three primary colors such as RGB, or XYZ, Lab, etc. It may be a color function.

プログラムは、次に、コンピュータに対し、乱数を発生させ(図1の手順(b))、発生させた乱数を用いて、第1および第2パラメータの組のうちの少なくとも1つのパラメータの値を変更させる(図1の手順(c))。この手順(c)において、第1パラメータの組のうち、特定された図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つが変更され、また、第2パラメータの組のうち、画像中における図形の個数パラメータおよび特定された図形の画像中における位置パラメータのうちの少なくとも1つが変更される。 Next, the program generates a random number for the computer (step (b) in FIG. 1), and uses the generated random number to set the value of at least one parameter in the first and second parameter sets. It is changed (procedure (c) in FIG. 1). In this procedure (c), at least one of the shape parameter, the color parameter, the size parameter, and the inclination parameter of the specified figure among the first parameter set is changed, and among the second parameter set, At least one of the number parameter of the figure in the image and the position parameter in the image of the specified figure is changed.

好ましい実施例によれば、プログラムは、コンピュータに対して、乱数を発生させた後(手順(b)の実行後)、発生させた乱数を確率密度関数の引数として、確率密度関数の値を計算させ(手順(b’))、乱数の代わりに確率密度関数の値を用いて、第1および第2パラメータの組のうちの少なくとも1つのパラメータの値を変更させる。 According to a preferred embodiment, the program generates a random number for the computer (after execution of step (b)), and then calculates the value of the probability density function using the generated random number as an argument of the probability density function. (Procedure (b ′)), and using the value of the probability density function instead of the random number, the value of at least one parameter of the first and second parameter sets is changed.

そして、プログラムは、コンピュータに対し、手順(c)で変更したパラメータの値を、第1および第2パラメータの組における残りのパラメータの値とともに図形データ生成関数に入力し、それから出力された各図形の画像生成用データを用いて画像全体の画像データを生成させ(図1の手順(d))、その後、手順(d)で生成した画像全体の画像データに基づき画像をディスプレイ表示しまたはプリントアウトさせる(図1の手順(e))。さらに、プログラムは、コンピュータに対し、所望の画像が得られるまで、手順(b)〜(e)を繰り返させる(図1の手順(f))。 Then, the program inputs the value of the parameter changed in the step (c) to the computer together with the remaining parameter values in the first and second parameter sets to the graphic data generation function and outputs each graphic output from the graphic data generation function. The image data for the entire image is generated using the image generation data (step (d) in FIG. 1), and then the image is displayed on the display or printed out based on the image data for the entire image generated in step (d). (Procedure (e) in FIG. 1). Further, the program causes the computer to repeat steps (b) to (e) until a desired image is obtained (step (f) in FIG. 1).

好ましい実施例によれば、プログラムは、コンピュータに対し、第1および第2パラメータの組の各パラメータの初期値を、生成すべき画像の基本属性パラメータの値とともに記憶させ(図2の手順(g))、手順(f)が実行される間に、変更されるパラメータの種類および乱数発生関数に対する初期化変数並びに確率密度関数の種類を順次記憶させる(図2の手順(h))。そして、プログラムは、必要に応じて、コンピュータに対し、手順(g)で記憶した各パラメータの初期値および画像の基本属性パラメータの値と、手順(h)で記憶した変更されるパラメータの種類および乱数発生関数の初期化変数並びに確率密度関数の種類とに基づき、図形データ生成関数および確率密度関数を用いて、前記所望の画像の画像データを再び生成し、その画像をディスプレイ表示しまたはプリントアウトさせる(図2の手順(i))。
このように、所望の画像が生成されるまでの手順を履歴情報として記録することによって、所望の画像が生成された時の最終の画像データをBMP形式やTIFF形式で記録する場合よりも格段に少ない記憶容量で、画像生成情報を保存管理することが可能となる。
According to a preferred embodiment, the program causes the computer to store the initial value of each parameter of the first and second parameter sets together with the value of the basic attribute parameter of the image to be generated (procedure (g in FIG. 2). )), While the procedure (f) is executed, the type of parameter to be changed, the initialization variable for the random number generation function, and the type of the probability density function are sequentially stored (procedure (h) in FIG. 2). Then, as necessary, the program instructs the computer to store the initial value of each parameter stored in step (g) and the value of the basic attribute parameter of the image, the type of parameter to be changed stored in step (h), and Based on the initialization variable of the random number generation function and the type of the probability density function, the graphic data generation function and the probability density function are used to generate the image data of the desired image again, and the image is displayed on the display or printed out. (Procedure (i) in FIG. 2).
In this way, by recording the procedure until the desired image is generated as history information, the final image data when the desired image is generated is markedly more than when recording in the BMP format or the TIFF format. Image generation information can be stored and managed with a small storage capacity.

別の好ましい実施例によれば、プログラムは、コンピュータに対し、手順(f)で所望の画像が得られたとき、そのときの図形データ生成関数に入力された第1および第2パラメータの組のすべてのパラメータの値、並びに画像の基本属性パラメータの値を記憶させる(図3の手順(j))。そして、プログラムは、必要に応じて、コンピュータに対し、手順(j)で記憶したパラメータの値に基づき、図形データ生成関数を用いて、前記所望の画像の画像データを再び生成し、その画像をディスプレイ表示しまたはプリントアウトさせる(図3の手順(k))。
こうして、所望の画像が生成された時点の画像生成情報を、最終のパラメータ値として記録することによって、最終の画像データをBMP形式やTIFF形式で記録する場合よりも格段に少ない記憶容量で、画像生成情報を保存管理することが可能となる。
According to another preferred embodiment, when the program obtains a desired image in step (f), the program sets the first and second parameter sets input to the graphic data generation function at that time. The values of all parameters and the values of basic attribute parameters of the image are stored (procedure (j) in FIG. 3). Then, if necessary, the program regenerates the image data of the desired image using the graphic data generation function based on the parameter value stored in step (j) to the computer. The display is displayed or printed out (procedure (k) in FIG. 3).
In this way, by recording the image generation information at the time when a desired image is generated as the final parameter value, the image can be stored with much less storage capacity than when the final image data is recorded in the BMP format or the TIFF format. Generation information can be stored and managed.

別の好ましい実施例によれば、プログラムは、コンピュータに対し、手順(f)で所望の画像が得られたとき、そのときの画像全体の画像データを記憶させる(図4の手順(l))。そして、プログラムは、必要に応じて、コンピュータに対し、手順(l)で記憶した画像データに基づき、前記所望の画像を再びディスプレイ表示しまたはプリントアウトさせる(図4の手順(m))。 According to another preferred embodiment, when a desired image is obtained in step (f), the program stores the image data of the entire image at that time (step (l) in FIG. 4). . Then, as necessary, the program causes the computer to display the desired image again or print it out based on the image data stored in step (l) (step (m) in FIG. 4).

以下に、本発明による画像生成プログラムをより具体的に説明する。図6は、本発明の画像生成プログラムにより生成される画像の1例であって、大小異なる多数の正円A1、A2、A3、・・・を含む画像(水玉模様の図柄)F1を示したものである。本発明において、「少なくとも2つの予め決定された種類の図形を含む画像」とは、図6に示されるように、正円、三角形、四角形および六角形等の2つ以上の図形が含まれている画像を意味し、それは2つ以上の図形によって構成される図柄と言うこともできる。また、「図形」とは、その画像に描出されている正円、三角形、四角形および六角形等の図形を意味し、それは、画像または図柄を構成する単位模様と言うこともできる。画像または図柄に含まれる2つ以上の図形は、その全てが同じ形状である必要はなく、正円や三角形、四角形および六角形等のように、それぞれ輪郭線によって囲まれた種類の異なる図形であってもよい。   Hereinafter, the image generation program according to the present invention will be described more specifically. FIG. 6 is an example of an image generated by the image generation program of the present invention, and shows an image (polka dot pattern) F1 including a large number of different perfect circles A1, A2, A3,. Is. In the present invention, "an image including at least two predetermined types of figures" includes two or more figures such as a perfect circle, a triangle, a quadrangle, and a hexagon as shown in FIG. It can be said that the image is composed of two or more figures. Further, the “graphic” means a figure such as a perfect circle, a triangle, a quadrangle, and a hexagon drawn in the image, and it can also be called a unit pattern constituting an image or a pattern. Two or more figures included in an image or design need not all have the same shape, but different kinds of figures surrounded by outlines, such as a perfect circle, triangle, quadrangle, and hexagon. There may be.

図7は、図6に示された画像を生成するプログラムのフロー図である。手順S1において、画像F1の幅wおよび高さhの画素数(画像の基本属性パラメータの値)が任意に設定され、その幅方向をX、高さ方向をYとする2次元座標系(X−Y座標系)として画像領域が定義される。
次に、手順S2において、画像F1に含まれる単位模様の正円A1、A2、A3、・・・の数num(第2パラメータ)と、そのX−Y座標系における正円A1、A2、A3、・・・の中心座標(第2パラメータ)の設定に先立って、互いに隣接する正円A1、A2、A3、・・・の間の距離の許容最小値を示す変数Vgpが任意に設定される。次に、画像F1に含まれる単位模様の正円A1、A2、A3、・・・の数numをカウントする回数カウンタ(cnt)がゼロに設定され、手順S3において、手順S1で設定された画像領域内で、正円A1の中心座標(xc、yc)を示す変数Vx−yが、手順S31において乱数発生関数から出力された乱数により取得される。その取得時における採否の判断条件(図7の「※」印)として、仮の中心座標(xc’、yc’)が、手順S31において、乱数発生関数から出力された乱数により設定され、その正円A1の位置から手順S2で設定された変数Vgpを半径とする画像領域内に、他の正円A2、A3、・・・が存在しないことが確認された後、その仮の中心座標(xc’、yc’)が正円A1の中心座標(xc、yc)として正式に採用される。
FIG. 7 is a flowchart of a program for generating the image shown in FIG. In step S1, the number of pixels of the image F1 having a width w and a height h (value of the basic attribute parameter of the image) is arbitrarily set, the width direction is X, and the height direction is Y. An image region is defined as (−Y coordinate system).
Next, in step S2, the number num (second parameter) of unit pattern perfect circles A1, A2, A3,... Included in the image F1, and the perfect circles A1, A2, A3 in the XY coordinate system. ,...,..., A variable Vgp indicating an allowable minimum value of the distance between the adjacent perfect circles A1, A2, A3,. . Next, the number counter (cnt) for counting the number num of unit pattern circles A1, A2, A3,... Included in the image F1 is set to zero, and the image set in step S1 is set in step S3. Within the region, a variable Vx-y indicating the center coordinates (xc, yc) of the perfect circle A1 is acquired by the random number output from the random number generation function in step S31. As acceptance / rejection judgment conditions (“*” in FIG. 7) at the time of acquisition, temporary center coordinates (xc ′, yc ′) are set by the random number output from the random number generation function in step S31. After confirming that there are no other perfect circles A2, A3,... In the image area whose radius is the variable Vgp set in step S2 from the position of the circle A1, the temporary center coordinates (xc ', Yc') is formally adopted as the center coordinates (xc, yc) of the perfect circle A1.

その後、手順S4において、正円A1の半径cr(第1パラメータ)を示す変数Vcrが、手順S31において、乱数発生関数から出力された乱数により取得される。次に、手順S5において、手順S3で得られた正円A1の中心座標(xc、yc)と、手順S4で得られた正円A1の半径crとの関係式
(xc−x)+(yc−y)=(cr)
を満たす位置座標(x、y)の画素のみが塗りつぶされることにより、輪郭のみを表す正円A1とすることもできる。こうして、1個の正円A1が生成され、その1個の正円A1が回数カウンタ(cnt)にカウントされる。
Thereafter, in step S4, a variable Vcr indicating the radius cr (first parameter) of the perfect circle A1 is acquired in step S31 by the random number output from the random number generation function. Next, in step S5, a relational expression (xc−x) 2 + () between the center coordinates (xc, yc) of the perfect circle A1 obtained in step S3 and the radius cr of the perfect circle A1 obtained in step S4. yc−y) 2 = (cr) 2
By filling only the pixel of the position coordinates (x, y) that satisfies the above, it is possible to obtain a perfect circle A1 representing only the contour. Thus, one perfect circle A1 is generated, and the one perfect circle A1 is counted in the number counter (cnt).

以下、手順S2で設定された正円A1、A2、A3、・・・の数numがカウントされるまで、手順S3〜S5が数回繰り返され、所定の数numの正円A1、A2、A3、・・・が配置された水玉模様の画像が生成される。このように、図7に示されたフロー図において、その画像に含まれる図形A1、A2、A3、・・・の図形データ生成関数は、上記のプログラムによって設定され、手順S3では「図形の画像中における位置パラメータ」である正円Aの中心座標の変数Vx−yの設定に乱数が適用され、また、手順S4では、「図形の大きさパラメータ」である正円Aの半径を示す変数Vcrの設定に乱数が適用される。 Thereafter, steps S3 to S5 are repeated several times until the number num of the perfect circles A1, A2, A3,... Set in step S2 is counted, and a predetermined number num of perfect circles A1, A2, A3 ,... Are generated. In this way, in the flowchart shown in FIG. 7, the graphic data generation functions of the graphics A1, A2, A3,... Included in the image are set by the above program. The random number is applied to the setting of the variable Vx-y of the center coordinate of the perfect circle A, which is the “position parameter in the middle”. In step S4, the variable Vcr indicating the radius of the perfect circle A, which is the “graphic size parameter”. A random number is applied to the setting of.

次に、図8および図9を参照して、亀甲模様(図形)の図柄(画像)の生成プログラムを説明する。図8は、本発明の画像生成プログラムによって生成される画像の1例である、正六角形により構成される画像(亀甲模様の図柄)F2を示したものであり、図9は、図8の画像F2を生成するプログラムのフロー図である。このプログラムでは、先ず、手順S11において、縦方向に配列される正六角形A1h、A2h、A3h、・・・の数nh(第2パラメータ)、横方向に配列される正六角形A1、A2、A3、・・・の数nw(第2パラメータ)、および正六角形Aの1辺の長さ(第1パラメータ)が設定される。 Next, with reference to FIG. 8 and FIG. 9, a program for generating a pattern (image) of a turtle shell pattern (graphic) will be described. FIG. 8 shows an image F2 composed of regular hexagons, which is an example of an image generated by the image generation program of the present invention. FIG. 9 shows the image of FIG. It is a flowchart of the program which produces | generates F2. In this program, first, in step S11, the number nh (second parameter) of regular hexagons A1h, A2h, A3h,... Arranged in the vertical direction, regular hexagons A1, A2, A3, arranged in the horizontal direction, ... Nw (second parameter) and the length of one side of the regular hexagon A (first parameter) are set.

次に、手順S12において、手順S11で設定された正六角形Aの数numと正六角形の1辺の長さVLにより、画像F2の幅wおよび高さhの画素数(画像の基本属性パラメータ)が任意に設定され、その幅方向をX、高さ方向をYとする2次元座標系(X−Y座標系)として画像領域が定義される。
次に、手順S13において、亀甲図形の基本図形である正六角形のX−Y座標系における各頂点の座標(xs、ys)(第1パラメータ)が計算され、設定された数numに対応する複数個の正六角形A1、A2、A3、・・・の各頂点座標(xs、ys)が配列型変数(SrcX、SrcY)として順次記憶される。次いで、同様に、X−Y座標系における各正六角形A1、A2、A3、・・・の中心位置の座標(xc、yc)(第2パラメータ)が計算され、それらの正六角形A1、A2、A3、・・・の各中心座標(xc、yc)が、配列型変数(CtrX、CtrY)として順次記憶される。
Next, in step S12, the number of pixels having the width w and the height h of the image F2 (basic attribute parameters of the image) based on the number num of regular hexagons A set in step S11 and the length VL of one side of the regular hexagon. Is arbitrarily set, and an image region is defined as a two-dimensional coordinate system (XY coordinate system) in which the width direction is X and the height direction is Y.
Next, in step S13, the coordinates (xs, ys) (first parameter) of each vertex in the regular hexagonal XY coordinate system, which is the basic figure of the turtle shell figure, are calculated, and a plurality corresponding to the set number num. The vertex coordinates (xs, ys) of the regular hexagons A1, A2, A3,... Are sequentially stored as array type variables (SrcX, SrcY). Next, similarly, coordinates (xc, yc) (second parameter) of the center positions of the regular hexagons A1, A2, A3,... In the XY coordinate system are calculated, and the regular hexagons A1, A2,. The central coordinates (xc, yc) of A3,... Are sequentially stored as array type variables (CtrX, CtrY).

次に、正六角形A1、A2、A3、・・・の数numをカウントする回数カウンタ(cnt)がゼロに設定された後、手順S14において、何れか一個の正六角形Aの頂点座標(xs、ys)が、手順S13で記憶された配列型変数(SrcX、SrcY)から順次呼び出される。
その後、その頂点を含む図形の中心座標(xc、yc)が、手順S13において取得された配列型変数(CtrX、CtrY)から順次呼び出される。 次に、手順S15において、手順S14で取得された正六角形Aの頂点に対し、一般的な図形の変形(回転、拡大縮小)および頂点の移動により、各頂点座標(xs、ys)が変位せしめられる。
Next, after the number counter (cnt) for counting the number num of the regular hexagons A1, A2, A3,... Is set to zero, in step S14, the vertex coordinates (xs, ys) is sequentially called from the array type variables (SrcX, SrcY) stored in step S13.
Thereafter, the center coordinates (xc, yc) of the graphic including the vertex are sequentially called from the array type variables (CtrX, CtrY) acquired in step S13. Next, in step S15, each vertex coordinate (xs, ys) is displaced by the general figure deformation (rotation, enlargement / reduction) and movement of the vertex with respect to the vertex of the regular hexagon A acquired in step S14. It is done.

そして、手順S16において、手順S14で取得された頂点座標(xs、ys)に、手順S15で取得された変位量dx、dyが加えられて、変位後の新しい頂点座標(xs+dx、ys+dy)が算出され、それが配列型変数(newX、newY)として順次記憶される。そのとき、1個の正六角形A1が回数カウンタ(cnt)にカウントされる。
次いで、手順S17において、手順S16で記憶された配列型変数(newX、newY)から、正六角形Aの頂点座標(xs+dx、ys+dy)が順次呼び出され、その頂点座標を含む正六角形Aの輪郭線が、手順S12で定義されたX−Y座標に描出される。
In step S16, the displacement coordinates dx, dy acquired in step S15 are added to the vertex coordinates (xs, ys) acquired in step S14, and new vertex coordinates (xs + dx, ys + dy) after displacement are calculated. It is sequentially stored as array type variables (newX, newY). At that time, one regular hexagon A1 is counted in the number counter (cnt).
Next, in step S17, the vertex coordinates (xs + dx, ys + dy) of the regular hexagon A are sequentially called from the array type variables (newX, newY) stored in step S16, and the contour of the regular hexagon A including the vertex coordinates is obtained. The image is drawn in the XY coordinates defined in step S12.

その後、手順S11で設定された正六角形Aの数numがカウントされるまで、手順S11〜S16が数回繰り返されるが、その過程において、正六角形Aの1辺の長さを示す変数VL、正六角形Aの新しい中心座標の配列型変数(newX、newY)が、手順S31において、乱数発生関数から出力された乱数によって取得されることによって、図8に示される画像(亀甲模様の図柄)F2が生成される。 Thereafter, steps S11 to S16 are repeated several times until the number num of regular hexagons A set in step S11 is counted. In this process, a variable VL indicating the length of one side of regular hexagon A, regular six An array type variable (newX, newY) of the new center coordinates of the square A is acquired by the random number output from the random number generation function in step S31, so that the image (pattern of tortoiseshell pattern) F2 shown in FIG. Generated.

図10は、図9に示されたフロー図の手順S15において、頂点座標の変位量を取得するプログラムのフロー図である。その手順S21において、正六角形Aの頂点座標(xs、ys)を変位させる条件が任意に設定される。この具体例では、(1)図形の回転、(2)図形の拡大縮小、(3)頂点の移動の各変位条件の「有/無」が選択され、それらの変位条件の組み合わせが任意に設定されるようになっている。 FIG. 10 is a flowchart of a program for obtaining the displacement amount of the vertex coordinates in step S15 of the flowchart shown in FIG. In the procedure S21, conditions for displacing the vertex coordinates (xs, ys) of the regular hexagon A are arbitrarily set. In this example, “Yes / No” is selected for each displacement condition of (1) rotation of figure, (2) enlargement / reduction of figure, and (3) movement of vertex, and the combination of these displacement conditions is arbitrarily set It has come to be.

変位条件として「図形の回転」が選択された場合、手順S22において、頂点を含む正六角形Aを回転させる回転角度を示す変数Vθが、手順S31において、乱数発生関数から出力された乱数により取得される。次に、手順S14で呼び出された頂点座標(xs、ys)と、その頂点を含む正六角形Aの中心座標(xc、yc)によって、正六角形Aの座標変位量(dxO、dyO)が、次の(1)式および(2)式に従って取得される。
なお、手順S21において、変位条件の「図形の回転」の選択が「無」とされた場合、正六角形Aの座標変位量(dxO、dyO)を取得するための処理は行われない。
When “rotation of figure” is selected as the displacement condition, in step S22, the variable Vθ indicating the rotation angle for rotating the regular hexagon A including the vertex is acquired in step S31 by the random number output from the random number generation function. The Next, the coordinate displacement amount (dxO, dyO) of the regular hexagon A is determined by the vertex coordinates (xs, ys) called in step S14 and the center coordinates (xc, yc) of the regular hexagon A including the vertexes. (1) and (2).
In step S21, when “displacement of graphic” as the displacement condition is set to “none”, the process for obtaining the coordinate displacement amount (dxO, dyO) of the regular hexagon A is not performed.

dxO=(xs−xc)×cos(Vθ)
−(ys−yc)×sin(Vθ)+(xc−xs) (1)
dyO=(xs−xc)×sin(Vθ)
+(ys−yc)×cos(Vθ)+(yc−ys) (2)
dxO = (xs−xc) × cos (Vθ)
− (Ys−yc) × sin (Vθ) + (xc−xs) (1)
dyO = (xs−xc) × sin (Vθ)
+ (Ys−yc) × cos (Vθ) + (yc−ys) (2)

変位条件として「図形の拡大縮小」が選択された場合、手順S23において、頂点を含む正六角形Aの拡大縮小させる拡縮倍率を示す変数Vεが、手順S31において、乱数発生関数から出力された乱数により取得される。
次に、手順S14において呼び出された頂点座標(xs、ys)と、その頂点を含む正六角形Aの中心座標(xc、yc)によって、正六角形Aの座標変位量(dx1、dy1)が、次の(3)式および(4)式に従って取得される。
なお、手順S21において、変位条件として「図形の拡大縮小」の選択が「無」とされた場合、正六角形Aの座標変位量(dx1、dy1)を取得するための処理は行われない。
When “graphic scaling” is selected as the displacement condition, in step S23, the variable Vε indicating the scaling factor for scaling the regular hexagon A including the vertex is determined by the random number output from the random number generation function in step S31. To be acquired.
Next, based on the vertex coordinates (xs, ys) called in step S14 and the center coordinates (xc, yc) of the regular hexagon A including the vertexes, the coordinate displacement amount (dx1, dy1) of the regular hexagon A is (3) and (4).
In step S21, when “selection of graphic enlargement / reduction” is set to “none” as the displacement condition, the process for obtaining the coordinate displacement amount (dx1, dy1) of the regular hexagon A is not performed.

dx1=(Vε−1)×(xs−xc) (3)
dy1=(Vε−1)×(ys−yc) (4)
dx1 = (Vε−1) × (xs−xc) (3)
dy1 = (Vε−1) × (ys−yc) (4)

変位条件として「頂点の移動」が選択された場合、手順S24において、頂点のX座標の変位量dx2を示す変数Vxと、頂点のY座標の変位量dy2を示す変数Vyが、手順S31において、乱数発生関数から出力された乱数により取得される。
なお、手順S21において、変位条件として「頂点の移動」の選択が「無」とされた場合、正六角形Aの頂点座標の変位量(dx2=Vx、dy2=Vy)を取得するための処理は行われない。
When “movement of the vertex” is selected as the displacement condition, in step S24, the variable Vx indicating the displacement amount dx2 of the X coordinate of the vertex and the variable Vy indicating the displacement amount dy2 of the Y coordinate of the vertex are determined in step S31. Acquired by the random number output from the random number generation function.
In step S21, when “displacement of vertex” is selected as “displacement” as the displacement condition, the processing for obtaining the displacement amount (dx2 = Vx, dy2 = Vy) of the vertex coordinates of the regular hexagon A is as follows. Not done.

こうして選択された変位条件の「有/無」に応じて、正六角形Aの頂点座標の変位量(dxO、dyO)と(dx1、dy1)と(dx2、dy2)が取得された、プログラムの最後の手順S25において、手順S22、手順S23および手順S24で取得された変位量の総和(Σdxn=dxO+dx1+dx2、Σdyn=dyO+dy1+dy2)が取得される。 The displacement amounts (dxO, dyO), (dx1, dy1), and (dx2, dy2) of the vertex coordinates of the regular hexagon A are obtained according to the presence / absence of the displacement condition thus selected. In step S25, the sum of the displacement amounts acquired in steps S22, S23, and S24 (Σdxn = dxO + dx1 + dx2, Σdyn = dyO + dy1 + dy2) is acquired.

上述の具体例において、図形Aの形状についての図形データ生成関数は、プログラムとして設定され、そのプログラム(図形データ生成関数)に入力される第1および第2パラメータ(変数V)の値に乱数xが適用される。この場合、乱数発生関数から出力される乱数xの出現頻度fは、乱数xの確率密度関数f(x)によって表され、確率密度関数f(x)を変更することによって、乱数xの出現頻度fを制御することができる。すなわち、プログラム(図形データ生成関数)に入力されるを変数Vの値を、乱数発生関数である一定の乱数表等から無作為に選択される乱数xによって設定するのではなく、その乱数発生関数から出力された乱数xを確率密度関数f(x)により変更することで、出現頻度fが人為的に制御された乱数によって設定する。確率密度関数f(x)の代表例は、乱数xの平均値μと分散σによって特定される正規分布関数であり、その正規分布関数f(x)は、次式によって表される。 In the above specific example, the graphic data generation function for the shape of the graphic A is set as a program, and the value of the first and second parameters (variable V) input to the program (graphic data generation function) is set to a random number x. Applies. In this case, the appearance frequency f of the random number x output from the random number generation function is represented by the probability density function f (x) of the random number x, and the appearance frequency of the random number x is changed by changing the probability density function f (x). f can be controlled. That is, the value of the variable V input to the program (graphic data generation function) is not set by a random number x selected at random from a certain random number table or the like that is a random number generation function. Is changed by the probability density function f (x), so that the appearance frequency f is set by an artificially controlled random number. A typical example of the probability density function f (x) is a normal distribution function specified by the average value μ and the variance σ 2 of the random number x, and the normal distribution function f (x) is expressed by the following equation.

Figure 0004518484
Figure 0004518484

図11は、図10に示されたフロー図の手順S23において、(5)式で定義される正規分布関数f(x)によって変数Vを特定した場合の画像
(図11(a))と、その正規分布関数f(x)における乱数xの出現頻度分布曲線f(x) (図11(b))を図示したものである。(5)式で定義される乱数xの確率密度関数f(x)を変更することによって乱数xの出現頻度fが制御されると、図11に示される画像F3に変化が生じる。図12は、その変化した画像F4
(図12(a))と、その変化した確率密度関数f(x)における乱数xの出現頻度分布曲線f(x) (図12(b))を図示したものである。
FIG. 11 shows an image when the variable V is specified by the normal distribution function f (x) defined by the equation (5) in step S23 of the flowchart shown in FIG.
FIG. 11A shows an appearance frequency distribution curve f 3 (x) (FIG. 11B) of a random number x in the normal distribution function f (x). When the appearance frequency f of the random number x is controlled by changing the probability density function f (x) of the random number x defined by the equation (5), a change occurs in the image F3 shown in FIG. FIG. 12 shows the changed image F4.
(FIG. 12A) and an appearance frequency distribution curve f 4 (x) (FIG. 12B) of the random number x in the changed probability density function f (x) are illustrated.

図6の具体例では、第1および第2パラメータとして、正円Aの座標を示す変数Vx−y、および正円Aの半径を示す変数Vcr、図8の具体例では、第1および第2パラメータとして、正六角形Aの1辺の長さを示す変数VL、
正六角形Aの中心座標の配列型変数(CtrX、CtrY)、および正六角形Aの頂点座標の配列型変数(SrcX、SrcY)に、乱数発生関数から出力された乱数が適用される。しかし、乱数は、それらの第1および第2パラメータに限らず、図形の色を示す変数(第1パラメータ)や、画像に含まれる図形A1、A2、A3、・・・の数numを示す変数(第2パラメータ)、画像に含まれる図形A1、A2、A3、・・・の間の距離の許容最小値を示す変数(第1パラメータ)にも適用することができ、さらに、その適用する乱数の確率密度関数を変更することで、乱数の出現頻度を制御することによって、自然感と変化に富む様々な画像を生成することができる。
In the specific example of FIG. 6, as the first and second parameters, a variable Vx-y indicating the coordinates of the perfect circle A and a variable Vcr indicating the radius of the perfect circle A, and in the specific example of FIG. As a parameter, a variable VL indicating the length of one side of the regular hexagon A,
The random numbers output from the random number generation function are applied to the array type variables (CtrX, CtrY) of the center coordinates of the regular hexagon A and the array type variables (SrcX, SrcY) of the vertex coordinates of the regular hexagon A. However, the random number is not limited to the first and second parameters, but is a variable indicating the color of the graphic (first parameter) or a variable indicating the number num of the graphics A1, A2, A3,. (Second parameter), which can also be applied to a variable (first parameter) indicating an allowable minimum value of the distance between figures A1, A2, A3,. By changing the probability density function, it is possible to generate various images rich in natural feeling and change by controlling the appearance frequency of random numbers.

図7のフロー図に従って図6に示された画像F1を生成するプロセスにおいて、正円Aの色を示す変数や、隣接する正円間の距離の許容最小値を示す変数、画像F1に含まれる正円Aの数numを示す変数に乱数を適用するときは、図13に示される画像F5が生成されることにもなる。
また、図7のフロー図に従って図6に示される画像F1を生成するプロセスにおいて、正円Aの画像F1の幅方向と高さ方向における正円Aの外径を示す変数に乱数を適用するときは、図14に示される画像F6が生成されることにもなる。
そして、また、図10のフロー図に従って変位量(Σdxn、Σdyn)に乱数を適用するときは、図8に示される画像F2は、図10や図11に示される画像F7や画像F8が生成されることにもなる。縦方向に配列される図形A1h、A2h、A3h、・・・の数nhを示す変数、および、横方向に配列される図形A1w、A2w、A3w、・・・の数nwを示す変数を任意に設定すると、画像F9によって装飾されるカーテン地、壁貼地、椅子張り地、カーペット、リノリューム等の内装材のように、その製造工程において生産性を考慮した場合に制約条件となる柄リピートによる柄の連続性についても対応できる。
図17に図示される画像F9は、図16に図示される画像F8をそれぞれ縦横に3回リピートさせたものである。
In the process of generating the image F1 shown in FIG. 6 according to the flowchart of FIG. 7, the variable indicating the color of the perfect circle A, the variable indicating the allowable minimum value of the distance between adjacent perfect circles, and the image F1 are included. When a random number is applied to the variable indicating the number num of the perfect circles A, the image F5 shown in FIG. 13 is also generated.
In addition, in the process of generating the image F1 shown in FIG. 6 according to the flowchart of FIG. Will also generate the image F6 shown in FIG.
When applying random numbers to the displacement amounts (Σdxn, Σdyn) according to the flowchart of FIG. 10, the image F2 shown in FIG. 8 generates the images F7 and F8 shown in FIG. 10 and FIG. It will also be. A variable indicating the number nh of figures A1h, A2h, A3h,... Arranged in the vertical direction and a variable indicating the number nw of figures A1w, A2w, A3w,. When set, patterns such as curtains, wall stickers, upholstered fabrics, carpets, linoleum, and other interior materials decorated with the image F9, which are limited by pattern repeats that become a constraint when considering productivity in the manufacturing process It is possible to deal with the continuity of
An image F9 illustrated in FIG. 17 is obtained by repeating the image F8 illustrated in FIG. 16 three times vertically and horizontally.

図5は、本発明による画像生成装置の概略構成を示すブロック図である。本発明の画像生成装置は、プログラムされたコンピュータにより、少なくとも2つの予め決定された種類の図形を含んだ自然感のある画像を生成するものである。図5を参照して、本発明によれば、生成すべき画像の基本属性パラメータの値、および生成すべき画像中に含まれる各図形の構成要素に関する第1パラメータの組、および画像中に含まれる各図形の画像の構成要素としての属性に関する第2パラメータの組の各パラメータの初期値の入力を受けるパラメータ初期値入力部1と、パラメータの値を変更すべき図形の選択の入力を受ける変更図形選択部3と、変更すべき第1および第2パラメータの選択の入力を受ける変更パラメータ選択部2が備えられる。   FIG. 5 is a block diagram showing a schematic configuration of an image generation apparatus according to the present invention. The image generating apparatus according to the present invention generates a natural image including at least two predetermined types of graphics by a programmed computer. Referring to FIG. 5, according to the present invention, the value of the basic attribute parameter of the image to be generated, the first set of parameters relating to the components of each graphic included in the image to be generated, and the image included in the image A parameter initial value input unit 1 for receiving an input of an initial value of each parameter of a second parameter set relating to an attribute as a component of an image of each figure to be changed, and a change for receiving an input of selection of a figure whose parameter value is to be changed A graphic selection unit 3 and a change parameter selection unit 2 that receives input of selection of first and second parameters to be changed are provided.

第1パラメータの組は、各図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つを含んでおり、第2パラメータの組は、画像中における図形の個数パラメータ、および前記各図形の画像中における位置パラメータのうちの少なくとも1つを含んでいる。
また、画像の基本属性パラメータは、生成すべき画像の縦横サイズ、画像中で使用される色の色数、画像中で使用される色の色テーブル、および画像の解像度からなっている。
The first parameter set includes at least one of a shape parameter, a color parameter, a size parameter, and a tilt parameter of each figure, and the second parameter set includes a figure number parameter in the image, and It includes at least one of position parameters in the image of each figure.
The basic attribute parameters of the image include the vertical and horizontal sizes of the image to be generated, the number of colors used in the image, the color table of colors used in the image, and the resolution of the image.

パラメータ初期値入力部1から入力された、画像の基本属性パラメータの値、および第1および第2パラメータの組の各パラメータの初期値は、パラメータ初期値記録部11に記録される。
また、乱数発生部4が備えられ、さらに、乱数発生部4から出力された乱数の値を修正するための確率密度関数の種類の入力を受ける確率密度関数選択部9と、乱数発生部4から出力された乱数を、確率密度関数選択部9によって選択された確率密度関数の引数として、確率密度関数の値を計算し、出力する乱数修正部10が備えられる。
The value of the basic attribute parameter of the image and the initial value of each parameter of the first and second parameter groups input from the parameter initial value input unit 1 are recorded in the parameter initial value recording unit 11.
In addition, a random number generation unit 4 is provided, and a probability density function selection unit 9 that receives an input of a type of probability density function for correcting the value of the random number output from the random number generation unit 4, A random number correction unit 10 that calculates and outputs the value of the probability density function using the output random number as an argument of the probability density function selected by the probability density function selection unit 9 is provided.

画像生成装置は、また、乱数修正部10から出力された値を用いて、変更図形選択部3によって選択された図形に関して、変更パラメータ選択部2によって選択された変更すべき第1および第2パラメータの値を変更するパラメータ値変更部5と、第1および第2パラメータの組を引数とし、各図形の画像生成用データを出力する図形データ生成関数部6を備えている。 The image generation apparatus also uses the value output from the random number correction unit 10 to change the first and second parameters to be changed selected by the change parameter selection unit 2 with respect to the graphic selected by the changed graphic selection unit 3. And a graphic data generation function unit 6 for outputting image generation data for each graphic with a set of first and second parameters as arguments.

さらには、パラメータ値変更部5によって変更された第1および第2パラメータの値を、第1および第2パラメータの組における残りのパラメータの値とともに図形データ生成関数部6に入力し、図形データ生成関数部6から出力された各図形の画像生成用データ、および画像の基本属性パラメータの値に基づいて画像全体の画像データを生成する画像データ生成部7と、画像データ生成部7から出力された画像全体の画像データに基づいて生成すべき画像をディスプレイ表示またはプリントアウトする画像出力部8が備えられる。 Further, the first and second parameter values changed by the parameter value changing unit 5 are input to the graphic data generation function unit 6 together with the remaining parameter values in the first and second parameter sets to generate graphic data. An image data generation unit 7 that generates image data of the entire image based on the image generation data of each graphic output from the function unit 6 and the value of the basic attribute parameter of the image, and an output from the image data generation unit 7 An image output unit 8 for displaying or printing out an image to be generated based on the image data of the entire image is provided.

また、画像生成装置は、画像出力部8により所望の画像がディスプレイ表示されまたはプリントアウトされるまでの一連の画像生成過程において、パラメータの値が変更された図形の種類および変更されたパラメータの種類および乱数発生関数に対する初期化変数並びに確率密度関数の種類を順次記録する画像生成履歴データ記録部13を備えている。画像生成装置は、さらに、画像生成履歴データ記録部13に記録されたデータおよびパラメータ初期値記録部11に記録されたデータに基づき、乱数発生部4、パラメータ値変更部5および図形データ生成関数部6を作動させて、所望の画像の画像データを再び生成し、画像出力部に出力する画像データ再生成部12を備えている。   In addition, the image generation apparatus displays the type of figure whose parameter value is changed and the type of changed parameter in a series of image generation processes until a desired image is displayed on the display or printed out by the image output unit 8. And an image generation history data recording unit 13 for sequentially recording initialization variables and probability density function types for the random number generation function. The image generation apparatus further includes a random number generation unit 4, a parameter value change unit 5, and a graphic data generation function unit based on the data recorded in the image generation history data recording unit 13 and the data recorded in the parameter initial value recording unit 11. 6 is activated to regenerate image data of a desired image and output it to the image output unit.

さらに、画像出力部8によって所望の画像がディスプレイ表示されまたはプリントアウトされたとき、そのとき図形データ生成関数部6に入力された第1および第2パラメータの組のすべてのパラメータの値、並びに画像の基本属性パラメータの値を記録する画像生成パラメータ値記録部14が備えられ、画像データ再生成部12は、画像生成パラメータ値記録部14に記録されたパラメータの値を図形データ生成関数部6に入力することにより、所望の画像の画像データを再び生成し、画像出力部8に出力する。   Further, when a desired image is displayed on the display or printed out by the image output unit 8, the values of all the parameters of the first and second parameter sets input to the graphic data generation function unit 6 at that time, and the image The image generation parameter value recording unit 14 for recording the values of the basic attribute parameters is provided, and the image data regeneration unit 12 stores the parameter values recorded in the image generation parameter value recording unit 14 in the graphic data generation function unit 6. By inputting, image data of a desired image is generated again and output to the image output unit 8.

さらに、画像出力部8で所望の画像がディスプレイ表示されまたはプリントアウトされたとき、そのときの画像全体の画像データを記録する画像データ記録部15がさらに備えられ、画像データ再生成部12は、画像データ記録部15に記録された画像全体の画像データを画像出力部8に出力する。 Furthermore, when a desired image is displayed on the display or printed out by the image output unit 8, the image output unit 8 further includes an image data recording unit 15 that records image data of the entire image, and the image data regeneration unit 12 includes: The image data of the entire image recorded in the image data recording unit 15 is output to the image output unit 8.

本発明による画像生成装置を、図18に示されるように、クライアント/サーバーシステムとして構成することもできる。図18において、サーバーコンピュータ20と、複数のクライアントコンピュータ21が通信ネットワーク22に接続され、例えば、LANが構成される。そして、サーバーコンピュータ20に、上述の画像生成履歴データ記録部13、画像生成パラメータ値記録部14および画像データ記録部15が備えられ、各クライアントコンピュータ21には、これらの構成要素13、14、15以外の本発明の構成要素が備えられる。こうして、各クライアントコンピュータ21上で生成された画像のデータがサーバーコンピュータに蓄積される。また、必要に応じて、サーバーコンピュータ20に蓄積されたデータがクライアントコンピュータ21に取り込まれ、画像の生成に利用される。   The image generation apparatus according to the present invention can be configured as a client / server system as shown in FIG. In FIG. 18, a server computer 20 and a plurality of client computers 21 are connected to a communication network 22 and, for example, a LAN is configured. The server computer 20 includes the above-described image generation history data recording unit 13, image generation parameter value recording unit 14, and image data recording unit 15, and each client computer 21 includes these components 13, 14, 15. Other components of the present invention are provided. In this way, the image data generated on each client computer 21 is stored in the server computer. If necessary, data stored in the server computer 20 is taken into the client computer 21 and used for image generation.

こうして、各クライアントコンピュータ21上で得られた、価値あるデザイン作成のノウハウをサーバーコンピュータに蓄積するとともに、クライアントコンピュータ間で交換することによって、それらの有効利用を図ることができる。また、この場合、情報を受信する相手によってその交換方法を選択することで、ノウハウの社外流出防止を実現することができる。 In this manner, valuable design creation know-how obtained on each client computer 21 is accumulated in the server computer and can be effectively used by exchanging it between the client computers. Further, in this case, the know-how can be prevented from being leaked outside the company by selecting the exchange method depending on the party receiving the information.

本発明による画像生成プログラムのフロー図である。It is a flowchart of the image generation program by this invention. 図1のプログラムに追加され得るサブルーチンのフロー図である。FIG. 2 is a flowchart of a subroutine that can be added to the program of FIG. 1. 図1のプラグラムに追加され得る別のサブルーチンのフロー図である。FIG. 6 is a flow diagram of another subroutine that may be added to the program of FIG. 図1のプログラムに追加され得る別のサブルーチンのフロー図である。FIG. 3 is a flow diagram of another subroutine that may be added to the program of FIG. 本発明による画像生成装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the image generation apparatus by this invention. 本発明による画像生成プログラムによって生成される画像の1例を示す図である。It is a figure which shows an example of the image produced | generated by the image production | generation program by this invention. 図6の画像を生成するプログラムのフロー図である。It is a flowchart of the program which produces | generates the image of FIG. 本発明による画像生成プログラムによって生成される画像の1例を示す図である。It is a figure which shows an example of the image produced | generated by the image production | generation program by this invention. 図8の画像を生成するプログラムのフロー図である。It is a flowchart of the program which produces | generates the image of FIG. 図9のフロー図の手順S15において、頂点座標の変位量を取得するプログラムのフロー図である。FIG. 10 is a flowchart of a program for acquiring a vertex coordinate displacement amount in step S15 of the flowchart of FIG. 9; 図10のフロー図において生成される画像の1例と、そのときの乱数出現頻度分布曲線を示す図である。It is a figure which shows an example of the image produced | generated in the flowchart of FIG. 10, and the random number appearance frequency distribution curve at that time. 図11の画像が変化した状態と、そのときの乱数出現頻度分布曲線を示す図である。It is a figure which shows the state which the image of FIG. 11 changed, and the random number appearance frequency distribution curve at that time. 図6の画像が変化した状態を示す図である。It is a figure which shows the state which the image of FIG. 6 changed. 図6の画像が変化した状態を示す図である。It is a figure which shows the state which the image of FIG. 6 changed. 図8の画像が変化した状態を示す図である。It is a figure which shows the state which the image of FIG. 8 changed. 図8の画像が変化した状態を示す図である。It is a figure which shows the state which the image of FIG. 8 changed. 図16の画像が変化した状態を示す図である。It is a figure which shows the state which the image of FIG. 16 changed. 本発明の画像生成装置をクライアント/サーバーシステムとして構成した実施例を示す図である。It is a figure which shows the Example which comprised the image generation apparatus of this invention as a client / server system.

符号の説明Explanation of symbols

1 パラメータ初期値記録部
2 変更パラメータ選択部
3 変更図形選択部
4 乱数発生部
5 パラメータ値変更部
6 図形データ生成関数部
7 画像データ生成部
8 画像出力部
9 確率密度関数選択部
10 乱数修正部
11 パラメータ初期値記録部
12 画像データ再生成部
13 画像生成履歴データ記録部
14 画像生成パラメータ値記録部
15 画像データ記録部
DESCRIPTION OF SYMBOLS 1 Parameter initial value recording part 2 Change parameter selection part 3 Change figure selection part 4 Random number generation part 5 Parameter value change part 6 Graphic data generation function part 7 Image data generation part 8 Image output part 9 Probability density function selection part 10 Random number correction part 11 Parameter initial value recording unit 12 Image data regenerating unit 13 Image generation history data recording unit 14 Image generation parameter value recording unit 15 Image data recording unit

Claims (7)

少なくとも2つの予め決定された種類の図形を含む画像を生成するプログラムであって、コンピュータに
(a)生成すべき画像中に含まれる各図形の構成要素に関する第1パラメータの組、および前記各図形の前記画像の構成要素としての属性に関する第2パラメータの組を引数とし、前記各図形の画像生成用データを出力する図形データ生成関数を設定する手順と、
(a’)前記第1および第2パラメータの組の各パラメータの初期値を、生成すべき画像の基本属性パラメータの値とともに記憶する手順と、
(b)乱数を発生させる手順と、
(b’)発生させた前記乱数を確率密度関数の引数として、前記確率密度関数の値を計算する手順と、
(c)前記確率密度関数の値を用いて、前記第1および第2パラメータの組のうちの少なくとも1つのパラメータの値を変更する手順と、
(d)前記手順(c)で変更したパラメータの値を、前記第1および第2パラメータの組における残りのパラメータの値とともに前記図形データ生成関数に入力し、それから出力された前記各図形の画像生成用データを用いて画像全体の画像データを生成する手順と、
(e)前記手順(d)で生成した前記画像全体の画像データに基づき画像をディスプレイ表示しまたはプリントアウトする手順と、
(f)所望の画像が得られるまで、前記手順(b)〜(e)を繰り返す手順と、
(g)前記手順(f)が実行される間に、変更されるパラメータの種類および乱数発生関数に対する初期化変数並びに確率密度関数の種類を順次記憶する手順と、
(h)前記手順(a’)で記憶した前記各パラメータの初期値および前記画像の基本属性パラメータの値と、前記手順(g)で記憶した前記変更されるパラメータの種類および前記乱数発生関数の初期化変数並びに前記確率密度関数の種類とに基づき、前記図形データ生成関数および前記確率密度関数を用いて前記所望の画像の画像データを再び生成し、その画像をディスプレイ表示しまたはプリントアウトする手順と、を実行させることを特徴とする画像生成プログラム。
A program for generating an image including at least two predetermined types of graphics, wherein (a) a first set of parameters relating to the components of each graphic included in the image to be generated, and each of the graphics A procedure for setting a graphic data generation function for outputting image generation data for each graphic, using as a parameter a second parameter set relating to the attribute of the image as a component,
(A ′) storing an initial value of each parameter of the set of the first and second parameters together with a value of a basic attribute parameter of an image to be generated;
(B) a procedure for generating random numbers;
(B ′) a procedure for calculating a value of the probability density function using the generated random number as an argument of the probability density function;
(C) using the value of the probability density function to change the value of at least one parameter of the first and second parameter sets;
(D) The value of the parameter changed in the procedure (c) is input to the graphic data generation function together with the remaining parameter values in the first and second parameter sets, and the image of each graphic output therefrom is output. A procedure for generating image data of the entire image using the generation data;
(E) a procedure for displaying or printing out an image based on the image data of the entire image generated in the procedure (d);
(F) repeating the steps (b) to (e) until a desired image is obtained;
(G) a procedure for sequentially storing the type of parameter to be changed, the initialization variable for the random number generation function, and the type of probability density function while the step (f) is performed;
(H) the initial value of each parameter and the basic attribute parameter value of the image stored in step (a ′), the type of the parameter to be changed and the random number generation function stored in step (g) A procedure for regenerating image data of the desired image using the graphic data generation function and the probability density function based on an initialization variable and the type of the probability density function, and displaying or printing out the image. And an image generation program.
前記第1パラメータの組は、前記各図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つを含んでおり、前記第2パラメータの組は、画像中における図形の個数パラメータ、および前記各図形の画像中における位置パラメータのうちの少なくとも1つを含んでいることを特徴とする請求項1に記載の画像生成プログラム。   The first set of parameters includes at least one of a shape parameter, a color parameter, a size parameter, and a tilt parameter of each figure, and the second parameter set is a number parameter of figures in an image. And at least one of position parameters in the image of each graphic. 前記手順(c)において、前記第1パラメータの組のうち、特定された図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つが変更されることを特徴とする請求項1または請求項2に記載の画像生成プログラム。   2. The procedure (c), wherein at least one of a shape parameter, a color parameter, a size parameter, and an inclination parameter of a specified figure is changed from the set of the first parameters. Or the image generation program of Claim 2. 前記手順(c)において、前記第2パラメータの組のうち、画像中における図形の個数パラメータおよび特定された図形の画像中における位置パラメータのうちの少なくとも1つが変更されることを特徴とする請求項1〜請求項3のいずれかに記載の画像生成プログラム。   The step (c) is characterized in that at least one of a number parameter of figures in the image and a position parameter in the image of the specified figure in the second parameter set is changed. The image generation program according to any one of claims 1 to 3. プログラムされたコンピュータにより、少なくとも2つの予め決定された種類の図形を含んだ自然感のある画像を生成する装置であって、An apparatus for generating a natural image including at least two predetermined types of figures by a programmed computer,
生成すべき画像の基本属性パラメータの値、および前記生成すべき画像中に含まれる各図形の構成要素に関する第1パラメータの組、および前記画像中に含まれる各図形の前記画像の構成要素としての属性に関する第2パラメータの組の各パラメータの初期値の入力を受けるパラメータ初期値入力部と、The value of the basic attribute parameter of the image to be generated, the first set of parameters relating to the components of each figure included in the image to be generated, and the components of the image of each figure included in the image as A parameter initial value input unit for receiving an input of an initial value of each parameter of the second parameter set relating to the attribute;
前記パラメータ初期値入力部から入力された、前記画像の基本属性パラメータの値、および前記第1および第2パラメータの組の各パラメータの初期値を記録するパラメータ初期値記録部と、A parameter initial value recording unit that records the value of the basic attribute parameter of the image input from the parameter initial value input unit, and the initial value of each parameter of the set of the first and second parameters;
前記パラメータの値を変更すべき図形の選択の入力を受ける変更図形選択部と、A change figure selection unit that receives input of selection of a figure whose value of the parameter is to be changed;
変更すべき第1および第2パラメータの選択の入力を受ける変更パラメータ選択部と、A change parameter selection unit that receives an input of selection of the first and second parameters to be changed;
乱数発生部と、A random number generator,
前記乱数発生部から出力された乱数の値を修正するための確率密度関数の種類の入力を受ける確率密度関数選択部と、A probability density function selector that receives an input of a type of probability density function for correcting the value of the random number output from the random number generator;
前記乱数発生部から出力された乱数を、前記確率密度関数選択部によって選択された確率密度関数の引数として、前記確率密度関数の値を計算し、出力する乱数修正部と、The random number output from the random number generator, using the probability density function selected by the probability density function selection unit as an argument, calculates the value of the probability density function, and outputs a random number correction unit;
前記乱数修正部の出力値を用いて、前記変更図形選択部によって選択された図形に関して、前記変更パラメータ選択部によって選択された変更すべき第1および第2パラメータの値を変更するパラメータ値変更部と、A parameter value changing unit that changes the values of the first and second parameters to be changed selected by the change parameter selecting unit with respect to the graphic selected by the changed graphic selecting unit using the output value of the random number correcting unit. When,
前記第1および第2パラメータの組を引数とし、前記各図形の画像生成用データを出力する図形データ生成関数部と、A graphic data generation function unit that outputs the image generation data of each graphic with the set of the first and second parameters as an argument;
前記パラメータ値変更部によって変更された前記第1および第2パラメータの値を、前記第1および第2パラメータの組における残りのパラメータの値とともに前記図形データ生成関数部に入力し、前記図形データ生成関数部から出力された前記各図形の画像生成用データ、および前記画像の基本属性パラメータの値に基づいて画像全体の画像データを生成する画像データ生成部と、The values of the first and second parameters changed by the parameter value changing unit are input to the graphic data generation function unit together with the values of the remaining parameters in the set of the first and second parameters, and the graphic data generation An image data generation unit that generates image data of the entire image based on the image generation data of each graphic output from the function unit and the value of the basic attribute parameter of the image;
前記画像データ生成部から出力された前記画像全体の画像データに基づいて前記生成すべき画像をディスプレイ表示またはプリントアウトする画像出力部と、An image output unit for displaying or printing out the image to be generated based on the image data of the entire image output from the image data generation unit;
前記画像出力部により所望の画像がディスプレイ表示されまたはプリントアウトされるまでの一連の画像生成過程において、パラメータの値が変更された図形の種類および変更されたパラメータの種類および乱数発生関数に対する初期化変数並びに確率密度関数の種類を順次記録する画像生成履歴データ記録部と、In a series of image generation processes until a desired image is displayed on the display or printed out by the image output unit, the type of the figure whose parameter value is changed, the type of the changed parameter, and the initialization for the random number generation function An image generation history data recording unit for sequentially recording the types of variables and probability density functions;
前記画像生成履歴データ記録部に記録されたデータおよび前記パラメータ初期値記録部に記録されたデータに基づき、前記乱数発生部、前記パラメータ値変更部および前記図形データ生成関数部を作動させて、前記所望の画像の画像データを再び生成し、前記画像出力部に出力する画像データ再生成部と、を備えていることを特徴とする画像生成装置。Based on the data recorded in the image generation history data recording unit and the data recorded in the parameter initial value recording unit, the random number generation unit, the parameter value change unit, and the graphic data generation function unit are operated, An image generation apparatus comprising: an image data regenerating unit that regenerates image data of a desired image and outputs the image data to the image output unit.
前記第1パラメータの組は、前記各図形の形状パラメータ、色パラメータ、大きさパラメータおよび傾きパラメータのうちの少なくとも1つを含んでおり、前記第2パラメータの組は、画像中における図形の個数パラメータ、および前記各図形の画像中における位置パラメータのうちの少なくとも1つを含んでいることを特徴とする請求項5に記載の画像生成装置。The first set of parameters includes at least one of a shape parameter, a color parameter, a size parameter, and an inclination parameter of each figure, and the second parameter set is a number parameter of figures in an image. The image generation apparatus according to claim 5, further comprising at least one of position parameters in the image of each graphic. 前記画像の基本属性パラメータは、生成すべき画像の縦横サイズ、前記画像中で使用される色の色数、前記画像中で使用される色の色テーブル、および前記画像の解像度からなっていることを特徴とする請求項5または請求項6に記載の画像生成装置。The basic attribute parameters of the image include the vertical and horizontal sizes of the image to be generated, the number of colors used in the image, the color table of colors used in the image, and the resolution of the image. The image generation apparatus according to claim 5, wherein:
JP2004301949A 2003-10-15 2004-10-15 Image generation program and image generation apparatus Expired - Fee Related JP4518484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004301949A JP4518484B2 (en) 2003-10-15 2004-10-15 Image generation program and image generation apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003355622 2003-10-15
JP2004301949A JP4518484B2 (en) 2003-10-15 2004-10-15 Image generation program and image generation apparatus

Publications (2)

Publication Number Publication Date
JP2005141736A JP2005141736A (en) 2005-06-02
JP4518484B2 true JP4518484B2 (en) 2010-08-04

Family

ID=34702888

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004301949A Expired - Fee Related JP4518484B2 (en) 2003-10-15 2004-10-15 Image generation program and image generation apparatus

Country Status (1)

Country Link
JP (1) JP4518484B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6029515B2 (en) * 2013-03-29 2016-11-24 株式会社島精機製作所 Pattern creating apparatus and pattern creating method
JP6872703B2 (en) * 2016-10-17 2021-05-19 パナソニックIpマネジメント株式会社 Program generation method, program generator and control program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09330394A (en) * 1996-06-10 1997-12-22 Nippon Telegr & Teleph Corp <Ntt> Pattern generation method and device
JPH11144037A (en) * 1997-11-12 1999-05-28 Dainippon Printing Co Ltd Image layout method, image layout system, and printed matter manufacturing method
JP2000339497A (en) * 1999-05-25 2000-12-08 Sony Computer Entertainment Inc Picture generation device, picture generation method, entertainment system and recording medium

Also Published As

Publication number Publication date
JP2005141736A (en) 2005-06-02

Similar Documents

Publication Publication Date Title
US10861232B2 (en) Generating a customized three-dimensional mesh from a scanned object
JP3798827B2 (en) Method and apparatus for generating texture images and special video effects
US20050007378A1 (en) Texturing method and apparatus
KR20040076804A (en) Color gradient paths
EP2391114A1 (en) Screen printing techniques
US11257290B2 (en) Decimating a three-dimensional mesh via successive self-parameterization
JP2007193508A (en) Image processor and image processing program
JP4518484B2 (en) Image generation program and image generation apparatus
JP4392082B2 (en) Engraving style halftone image generation method and apparatus
JP4174133B2 (en) Image generation method
US8982149B2 (en) Generating flower images and shapes with compositional pattern producing networks
CN118052902B (en) Data processing method, lithographic processing system and readable storage medium
JP6914524B2 (en) Part shape extraction system, part shape extraction method, computer program, and user interface device
JP2004261979A (en) Screen creation method and device, and creation program
KR102291576B1 (en) Method of generating digital image basd on bigdata and apparatus performing the same
JP2006350562A (en) Image processor and image processing program
JP4904013B2 (en) Image generation program and image generation apparatus
JP4464258B2 (en) Pattern creation processing device
JPH09265548A (en) METHOD AND DEVICE FOR GENERATING PATTERN REPRESENTING WISELY Wrinkle, AND PRINTED MATERIAL HAVING THIS PATTERN
JP2011216027A (en) Color drawing creation apparatus, color drawing creation method, and color drawing creation program
CN112915544A (en) Map making method, map making device, storage medium, and electronic device
Korchagin et al. Fractal graphics
JPS61208363A (en) Picture magnifying and reducing device
JPH08287225A (en) Image simulation equipment
KR20250034678A (en) Apparatus and method for calibrating light intensity

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050411

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070827

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20070827

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20091014

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100317

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100413

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100512

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100514

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130528

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4518484

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees