JPH0695339B2 - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JPH0695339B2 JPH0695339B2 JP2051886A JP2051886A JPH0695339B2 JP H0695339 B2 JPH0695339 B2 JP H0695339B2 JP 2051886 A JP2051886 A JP 2051886A JP 2051886 A JP2051886 A JP 2051886A JP H0695339 B2 JPH0695339 B2 JP H0695339B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- memory
- data
- texture
- density
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Studio Circuits (AREA)
Description
【発明の詳細な説明】 〔技術分野〕 本発明は画像を変換処理する画像処理方法に関するもの
である。Description: TECHNICAL FIELD The present invention relates to an image processing method for converting an image.
従来、この種の画像処理方法の1つとして印刷業界での
電子製版技術、写真ラボ業界でのコンピユータ写真画像
処理を応用したプロラボ技術が知られている。Conventionally, as one of the image processing methods of this kind, an electronic plate making technique in the printing industry and a professional laboratory technique applying computer photographic image processing in the photographic laboratory industry are known.
例えば画像原稿上をレイアウトスキヤナ、レーザカラー
プリンタ等の高精度スキヤナにより光電走査して再生画
像を得る場合その工程の中間に信号処理部を設けて入力
濃度信号に対して濃度表現修正(γ補正)、階調設定、
色修正、切り抜き合成等の処理を行ない以下の様な効果
を得ている。For example, when a reproduced image is obtained by photoelectrically scanning an image original with a high-precision scanner such as a layout scanner or a laser color printer, a signal processing unit is provided in the middle of the process to correct the density expression (γ correction) for the input density signal. ), Gradation setting,
The following effects are obtained by performing processing such as color correction and cutout composition.
カラーフイルムの退色復元 ハイナイト、シヤドウの階調を整え、色彩表現の誇
張 機器故障、撮影ミス、現像ミス等の救済 クリエイテイブイメージを表現し、イメージ領域の
拡大、新しいデザインを創造する。Color film fading restoration Adjusting the gradation of high night and shade, color expression exaggeration Relief of device failure, shooting mistake, development mistake, etc. Expressing creative images, expanding the image area and creating new designs.
このような特殊処理を実行する場合、フイルタ原稿をカ
ラースキヤナ、レーザカラープリンタ等の高精度スキヤ
ナ又はカラー撮像管、カラー撮像板(たとえばCCD)等
により光電走査して得たフィルム原稿の濃度信号又は輝
度信号から成るデジタル画像を変換している。特にここ
では、原画像にいろいろな質感の模様を出すテクスチヤ
ースクリーン処理について説明する。When such special processing is performed, the density signal or brightness of the film original obtained by photoelectrically scanning the filter original with a color scanner, a high-precision scanner such as a laser color printer or a color image pickup tube, a color image pickup plate (for example, CCD), etc. It is converting a digital image consisting of signals. In particular, here, the texture screen processing for producing various texture patterns on the original image will be described.
テクスチヤースクリーン処理のテクスチヤースクリーン
とは写真業界の用語であり、プリントする時、印画紙の
画像にいろいろな質感の模様を出すのに使われるスクリ
ーンのことである。画像に質感を求めるときのほか粒子
のあれを隠したい時にも用いる。これには、絹目など模
様がすでに入つている印画紙を用いて、その模様によつ
て粒子のあれを目立たなくする方法もあるが、プリント
をするときにテクスチヤースクリーンを用いた法がより
効果的である。ところがこのテクチヤースクリーンを用
いた写真処理は一般に暗室作業として行なわれるため装
置および技術的に難しい面が多く、一部のマニア、プロ
の間でしか行なわれていなかつた。テクスチヤースクリ
ーン処理とは、このテクスチヤースクリーンを用いた場
合と同じ効果を前述デジタル画像処理技術を用いて行な
うことである。Textured screen The term textured screen is a term used in the photographic industry and refers to a screen used to create various textured patterns on an image on photographic paper when printed. It is also used when you want to hide the particles as well as when you want to find the texture in the image. For this, there is also a method of using photographic paper that already has a pattern such as silk grain to make the particles less noticeable by the pattern, but the method using a texture screen when printing is more preferable. It is effective. However, since the photographic processing using this texture screen is generally performed as a darkroom operation, there are many technically difficult aspects of the apparatus and it has only been performed by some enthusiasts and professionals. The texture screen processing is to carry out the same effect as that using this texture screen by using the digital image processing technique.
従来、デジタル画像処理を用いたこの種の特殊効果処理
には、印刷業界で用いられている電子製版システム(レ
イアウトスキヤナー)がある。ところがこの装置で、上
記のテクスチヤースクリーン処理を行なうには以下の様
な合成処理を行なつていた。Conventionally, this type of special effect processing using digital image processing includes an electronic plate making system (layout scanner) used in the printing industry. However, in order to perform the above texture screen processing with this apparatus, the following synthesis processing was performed.
フイルムより基になるフイルム画像をR,G,B各色毎に高
精度スキヤナーによつて読み取り、A/D変換後それぞれ
8ビツトのフイルム濃度データとしてメモリーにそれぞ
れ格納する。またテクスチヤーとなるテクスチヤー画像
も同様にして高精度スキヤナーにより読み取り、データ
を格納する。テクスチヤー画像データの場合はカラー画
像としてではなく白黒画像として格納しておいても良
い。ここでメモリーに格納されている元画像、テクスチ
ヤー画像のフイルム濃度データをそれぞれai(m,n)、
b(m,n)と表わす。但しiはR,G,B各色のデータを示
し、(m,n)は画像データの番地でありテクスチヤー画
像は白黒画像とした。The base film image from the film is read for each R, G, B color by a high-precision scanner, and after A / D conversion is stored in the memory as 8-bit film density data. Similarly, the texture image which becomes the texture is read by the high-precision scanner and the data is stored. In the case of texture image data, it may be stored as a monochrome image instead of a color image. Here, the film density data of the original image and the texture image stored in the memory are respectively ai (m, n),
Expressed as b (m, n). However, i represents the data of each color of R, G, B, (m, n) is the address of the image data, and the texture image is a monochrome image.
そして次に という演算処理によつて合成画像を求める。この様な処
理を行なうと原画像成分は となり、コントラストの少ない全体的にフラットな感じ
の画像になつてしまう。またα,βの値の決定は、テク
スチヤー画像の濃淡の差の状態によつて制定値を変えな
ければならない。これは作成者の経験や勘にたよるとこ
ろが多く試行錯誤を繰り返して行なうため、時間を費す
るばかりでなく特定の作成者に限られ、誰もが簡単にで
きなかつた。一方、フイルム画像などの大量の2次元デ
ータを扱うデジタル画像処理で高速演算を行なうために
は、たとえばNEXUS 6400(柏木研究所)、Tospix II
(東芝)等の画像専用処理装置(Image Processor)を
用いる場合が多い。この様な画像専用処理装置は汎用コ
ンピユーターとは異なり浮動小数点演算手段がなく、1
画面を8ビツト単位の画像メモリとして扱うため を演算するには2画面分の画像メモリを連絡して1画面
16ビツト構成にして行なわなければならず、結果出力用
の画像メモリ1画面を加えると最低3画像分の画像メモ
リを必要とする。And then The synthetic image is obtained by the arithmetic processing. When such processing is performed, the original image component is As a result, an image with a low contrast and a flat feeling is produced. Further, in determining the values of α and β, the established values must be changed according to the state of the difference in shade of the texture image. This often depends on the experience and intuition of the creator, and because trial and error are repeated, not only is it time-consuming, but it is limited to a specific creator, and no one can do it easily. On the other hand, in order to perform high-speed calculations in digital image processing that handles a large amount of two-dimensional data such as film images, for example, NEXUS 6400 (Kashiwagi Laboratory), Tospix II
(Toshiba) often uses a dedicated image processing device (Image Processor). Unlike a general-purpose computer, such an image-only processing device does not have a floating-point arithmetic means.
To handle the screen as an 8-bit image memory In order to calculate
This must be done in a 16-bit configuration, and if one screen of image memory for result output is added, an image memory for at least 3 images is required.
以上の様に従来の合成を用いた処理では再生画像がフラ
ツトなトーンになつてしまう。又、原画像とテクスチヤ
ー用画像の比(α,β)を作成者の経験や勘にたより試
行錯誤を繰り返すため時間を費するばかりでなく特定の
作成者に使用が限られ、一般消費者には難しい。更に画
像専用処理装置を用いる場合、処理用画像メモリとして
2画面分画像メモリを必要とした。As described above, in the processing using the conventional synthesis, the reproduced image becomes a flat tone. In addition, it takes time to repeat trial and error based on the creator's experience and intuition based on the ratio (α, β) of the original image and the texture image, and the usage is limited to a specific creator, so that it can be used by general consumers. Is difficult Further, when the image-only processing device is used, the image memory for two screens is required as the image memory for processing.
本発明は上述の如き従来技術の欠点を除去し、自動的に
合成画像処理を行なうことを可能にし、更に立体感を有
する合成画を得ることができる画像処理方法の提供を目
的としている。SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing method which eliminates the above-mentioned drawbacks of the prior art, enables automatic composite image processing, and can obtain a composite image having a stereoscopic effect.
以下本発明の1実施例について図面を用いて詳細に説明
する。An embodiment of the present invention will be described in detail below with reference to the drawings.
第1図は、カラースキヤナに本発明を用いた時の濃度信
号の流れの1例を示すブロックダイヤグラムである。入
力ドラム1に装填されたフイルム原稿を光電走査して得
られた入力信号は、対数変換回路2にて濃度信号に変換
された後、AD変換器3を経て入力信号処理部4に入力さ
れて、フイルムの種類に応じてそれぞれその濃度値を変
換し、フイルムの露光量に対して一定の関係をなす様に
変換する。というのは、フイルム特性曲線がネガフイル
ム,ポジフイルム,リバーサルフイルムによつて異な
り、又、カラー画像の場合は特にネガフイルムではR,G,
Bの各色によつて異なるためである。この後にこのシス
テムの心臓部というべき画像処理部5に入力され、テク
スチヤースクリーン処理が施される。この後画像処理部
5から出力された濃度信号は、出力信号処理部6でレー
ザー光量の制御信号に変換する処理を行ない、DA変換器
7を経て変換器8に入力され光源9から出力されたレー
ザー光の変調を行ない、出力ドラム10に所望の画像を再
生させる。FIG. 1 is a block diagram showing an example of the flow of a density signal when the present invention is applied to a color scanner. An input signal obtained by photoelectrically scanning a film original loaded on the input drum 1 is converted into a density signal by the logarithmic conversion circuit 2 and then input to the input signal processing unit 4 via the AD converter 3. , The density value of each film is converted according to the type of the film, and the density value is converted so as to have a fixed relationship with the exposure amount of the film. This is because the film characteristic curve differs depending on whether the film is a negative film, a positive film or a reversal film, and in the case of a color image, R, G,
This is because each color of B is different. After that, the image is input to the image processing unit 5, which should be the heart of the system, and texture screen processing is performed. After that, the density signal output from the image processing unit 5 is processed by the output signal processing unit 6 to be converted into a laser light amount control signal, and is input to the converter 8 via the DA converter 7 and output from the light source 9. The laser light is modulated to cause the output drum 10 to reproduce a desired image.
第2図は画像処理部5の一部より詳細に示したブロツク
図である。CPU11はコントロールプロセツサで、画像処
理部5のすてての実権を握つており、CPUメモリ12に格
納されている制御プログラムに基づいて画像処理を制御
する。パラメータコントローラ13は演算器14、パラメー
ターメモリ15、パラメーター設定用I/O16をコントロー
ルし、処理に必要なパラメータの初期化、設定、比較等
を行なう。プロセツサー18とCPU11はCPU BUSを介してイ
メージコントローラ17によつて接続されており、CPU11
の指令によつてプロセツサー18は動作する。プロセツサ
ー18は画像処理部5の中核となる部分であり、CPU11の
命令に従いセレクトされた任意のイメージメモリ20〜26
や画像データ用I/O34の中から画像データや受けとり、
演算された結果をセレクトされた任意のイメージメモリ
20〜26や画像データ用I/O34へと送る。また演算により
必要なアドレスにキヤリーをたてるためにキヤリー専用
メモリであるフラグマツプメモリ19にも出力可能であ
る。イメージメモリ20〜26はCPU BUS.VIDEO BUSのいず
れにも接続されているのでCPU11から任意のイメージメ
モリ20〜26に読み書きすることも任意のメモリー間でリ
アルタイム演算することも可能である。イメージメモリ
の出口にルツクアツプテーブル27〜33という高速RAMが
接続されている。このRAMは256×8ビツトの構造をも
ち、RAMのアドレスライン8本(0〜25番地を指定でき
る=0〜255階調を指定できる)は各イメージメモリー
の出力に直結され、データライン8本はVIDEO BUSに接
続されている。またRAMの内容はCPU11により自由に読み
書きできる。画像データ用I/O34は画像用入出力インタ
ーフエイスであり第1図の入力信号処理部4から画像デ
ータを入力し、出力信号処理部6へと画像データ出力を
行なう。FIG. 2 is a block diagram showing in more detail a part of the image processing section 5. The CPU 11 is a control processor, which holds all the real rights of the image processing unit 5, and controls the image processing based on a control program stored in the CPU memory 12. The parameter controller 13 controls the arithmetic unit 14, the parameter memory 15, and the parameter setting I / O 16 to perform initialization, setting, comparison, etc. of parameters necessary for processing. The processor 18 and the CPU 11 are connected by the image controller 17 via the CPU BUS.
The processor 18 operates according to the command of. The processor 18 is a core part of the image processing unit 5, and is any image memory 20 to 26 selected according to the instruction of the CPU 11.
And image data from I / O34 for image data
Arbitrary image memory with the calculated result selected
Send to 20-26 or I / O34 for image data. In addition, the data can be output to the flag map memory 19, which is a memory dedicated to the carrier, in order to carry the carrier to a necessary address by calculation. Since the image memories 20 to 26 are connected to any of the CPU BUS.VIDEO BUS, it is possible to read / write from the CPU 11 to the arbitrary image memories 20 to 26 and perform real-time calculation between the arbitrary memories. A high-speed RAM called Lucupup table 27-33 is connected to the exit of the image memory. This RAM has a structure of 256 x 8 bits, and 8 address lines of RAM (address 0 to 25 can be specified = 0 to 255 gradations) are directly connected to the output of each image memory, and 8 data lines. Is connected to the VIDEO BUS. The contents of RAM can be freely read and written by the CPU 11. The image data I / O 34 is an image input / output interface, which inputs image data from the input signal processing unit 4 in FIG. 1 and outputs image data to the output signal processing unit 6.
第3図は画像処理部5で行なわれるテクスチヤースクリ
ーン処理方法についてのフローチヤートを示し、第4図
はルツクアツプテーブル24〜27の状態を示すグラフであ
り横軸に入力階調、縦軸に出力階調を示す。第4図
(a)では標準状態を示し、0番地には0、1番地には
1、・・・・・255番地には255という値が書き込まれて
いるのを示し入力・出力の内容が同一となる。また不図
示ではあるが0番地には255,1番地には254、・・・・・
255番地に0という値が書き込まれていると入力−出力
は濃度データが反転された画像となることを表わす。FIG. 3 shows a flow chart of the texture screen processing method performed in the image processing section 5, and FIG. 4 is a graph showing the states of the lookup tables 24 to 27, in which the horizontal axis is the input gradation and the vertical axis is the vertical axis. Indicates the output gradation. FIG. 4 (a) shows a standard state, in which 0 is written in address 0, 1 is written in address 1, 255 is written in address 255 ... Will be the same. Also, although not shown, 255 is at 0, 254 is at 1, ...
When a value of 0 is written in address 255, the input-output indicates that the density data is an inverted image.
以下画像処理部5で行なわれるテクスチヤースクリーン
処理方法についてフローチヤート第3図を中心に詳細に
説明する。ここでデジタル画像の濃度データをai(m,
n)という形で説明上表わす。但し、iはR,G,B,Tであり
それぞれ原画像のR成分画像データ、G成分画像デー
タ、B成分画像データとテクスチヤー画像データを示
す。また1画素は各成分それぞれ8ビツト構成すなわち
256階調表現可能なデータとなつており最も濃度の大き
いデータ(最も暗いデータ)の値を0とし最も濃度の小
さいデータ(最も明るいデータ)の値を255とする。The texture screen processing method performed by the image processing section 5 will be described in detail below with reference to FIG. 3 of the flow chart. Here, the density data of the digital image is ai (m,
n) will be used for explanation purposes. However, i is R, G, B, and T, and indicates R component image data, G component image data, B component image data, and texture image data of the original image, respectively. In addition, one pixel consists of 8 bits for each component.
The data having the highest density (darkest data), which can represent 256 gradations, has a value of 0, and the data having the lowest density (the lightest data) has a value of 255.
以下第3図のフローチヤートに沿つて説明する。The flow chart of FIG. 3 will be described below.
ステツプ1 S1の説明 CPU11の命令によりプロセツサ18は画像データ用I/O34を
介して入力信号処理部4より原画像のR成分画像データ
をイメージメモリ(1)に格納する。続いて原画像のG
成分画像データ、B成分画像データと白黒画像として取
り込んだテクスチヤー用画像データをそれぞれイメージ
メモリ(2),(3),(4)21〜23に格納する。この
時ルツクアツプテーブル(1)〜(4)27〜30は第4図
(a)の標準状態である。即ち、データはそのままイメ
ージメモリに格納される。Description of Step 1 S1 The processor 18 stores the R component image data of the original image in the image memory (1) from the input signal processing unit 4 via the image data I / O 34 according to the instruction of the CPU 11. Then G of the original image
The component image data, the B component image data, and the texture image data captured as a monochrome image are stored in the image memories (2), (3), (4) 21 to 23, respectively. At this time, the rack up tables (1) to (4) 27 to 30 are in the standard state of FIG. 4 (a). That is, the data is stored as it is in the image memory.
ステツプ2 S2の説明 プロセツサ18の面積計算カウンターを用いてイメージメ
モリ(4)の下限閾値Dminを求める。下限閾値Dminは画
像データ値0からDminまでの画素数の累積が総画素数の
5%近傍の画素数S0に等しい値である。例えば512×512
画素のデータであれば0からその値までの画素数が512
×512×0.05=13107近傍となる。Explanation of Step 2 S2 The lower limit threshold Dmin of the image memory (4) is obtained using the area calculation counter of the processor 18. The lower limit threshold Dmin is a value in which the cumulative number of pixels from the image data value 0 to Dmin is equal to the number of pixels S 0 in the vicinity of 5% of the total number of pixels. For example 512 x 512
If it is pixel data, the number of pixels from 0 to that value is 512
X512 x 0.05 = around 13107.
CPU11の働きによりパラメータコントローラ13、演算器1
4により画像の総画素数の5%である値S0を計算しパラ
メータメモリ15に格納し、Dminの値も0にしておく。ま
たフラグマツプメモリ19をイメージコントローラ17、プ
ロセツサ18によりリセツトしすべて0の値にしておく。
次にプロセツサ18によつてフラグマツプメモリ19にイメ
ージメモリ(4)23の濃度データDmin(この時は0)の
画素に1を与える演算を行なう。そしてフラグマツプメ
モリ19にフラツグ(1が立つているところ)の数を面積
計算カウンターにより求め、その結果Sxをパラメーター
コントローラを介して演算器14に送る。そこで結果Sxと
設定値S0とを比較しSx≧S0の場合はこのステツプを終了
し、Sv<Soの場合はDminに1を加えてプロセツサ18によ
りフラグマツプメモリ19にイメージメモリ(4)23の濃
度データDmin(この時は1)の画素に1を与える演算を
行ない、面積カウンターによりSxを求めなおす。そして
再び演算器14に送りSxとSoを比較する。この様な演算を
繰り返してイメージメモリ(4)23の濃度データ0から
Dminの画素数が総画素数の5%を超えるところのDmin値
を求める。Parameter controller 13 and calculator 1 by CPU11
The value S 0 , which is 5% of the total number of pixels of the image, is calculated by 4 and stored in the parameter memory 15, and the value of Dmin is also set to 0. Further, the flag map memory 19 is reset by the image controller 17 and the processor 18 and all values are set to 0.
Next, the processor 18 performs an operation to give 1 to the pixel of the density data Dmin (0 in this case) of the image memory (4) 23 in the flag map memory 19. Then, the number of flags (where 1 stands) is found in the flag map memory 19 by the area calculation counter, and the result Sx is sent to the calculator 14 via the parameter controller. Then, the result Sx is compared with the set value S 0, and if Sx ≧ S 0 , this step is ended, and if Sv <So, 1 is added to Dmin and the processor 18 adds the image memory to the flag map memory 19 (4). The pixel of 23 density data Dmin (1 at this time) is calculated by giving 1 and Sx is calculated again by the area counter. Then, it is sent again to the arithmetic unit 14 to compare Sx and So. By repeating such calculation, from the density data 0 of the image memory (4) 23
A Dmin value is calculated when the number of Dmin pixels exceeds 5% of the total number of pixels.
ステツプ3 S3の説明 イメージメモリ(4)23に格納されているテクスチヤー
用画像データにaT(m,n)−Dminなる演算を行ない、レ
ベル補正し再びその結果をaT′(m,n)としてイメージ
(4)23に格納しておく。Step 3 S3 Description The texture image data stored in the image memory (4) 23 is calculated as a T (m, n) -Dmin, the level is corrected, and the result is again a T '(m, n). As image (4) 23.
ステツプ4 S4の説明 ステツプ2と同様にしてイメージメモリ(4)の上限閾
値Dmaxを求める。上限閾値Dmaxは、画像データ値0から
Dmaxまでの画素数の累積が総画素数の95%近傍の画素数
S1に等しい値である。例えば512×512画素のデータでさ
れば0からその値までの画素数が512×512×0.95=2490
37近傍となる。CPU11の働きによりパラメーターコント
ローラ13、演算器14により画像の総画素数の95%である
値S1を計算し、パラメーターメモリ15に格納しDmaxの値
を0にしておく。またフラグマツプメモリ19をリセツト
しプロセツサ18によつてフラグマツプメモリ19にイメー
ジメモリ(4)23の濃度データDmax(この時は0)の画
素にフラツグを与える。そして面積計算カウンターによ
りフラツグの数を求めその結果Sxを演算器14に送る。そ
こで結果Sxと設定値S1とを比較してSx≧S1の場合はこの
ステツプを終了し、Sx<S1の時はDmaxに1を加えてフラ
グマツプメモリ19にイメージメモリ(4)23の濃度デー
タDmax(この時は1になつている)の画素にフラツグを
与える演算を行ないフラツグ数Sxを求めなおす。そして
再び演算器14に送りSxとSlを比較する。順次この演算を
繰り返してイメージメモリ(4)23の濃度データ0から
Dmaxの画素数が総画素数の95%を超えるところのDmax値
を求める。Step 4 S4 Description Similar to step 2, the upper limit threshold Dmax of the image memory (4) is obtained. The upper threshold Dmax is from the image data value 0
The cumulative number of pixels up to Dmax is 95% of the total number of pixels
It is a value equal to S 1 . For example, if the data is 512 x 512 pixels, the number of pixels from 0 to that value is 512 x 512 x 0.95 = 2490
It is close to 37. By the function of the CPU 11, the parameter controller 13 and the arithmetic unit 14 calculate a value S 1 which is 95% of the total number of pixels of the image and store it in the parameter memory 15 to set the value of Dmax to 0. Further, the flag map memory 19 is reset and the processor 18 gives a flag to the pixel of the density data Dmax (0 in this case) of the image memory (4) 23 in the flag map memory 19. Then, the area calculation counter determines the number of flags and sends the result Sx to the calculator 14. Therefore, the result Sx is compared with the set value S 1, and if Sx ≧ S 1 , this step is terminated, and if Sx <S 1 , 1 is added to Dmax and the flag map memory 19 is stored in the image memory (4) 23. The calculation is performed to give a flag to the pixel of the density data Dmax (which is 1 at this time), and the flag number Sx is calculated again. Then, it is sent again to the arithmetic unit 14 to compare Sx and Sl. By repeating this calculation in sequence, from the density data 0 of the image memory (4) 23
The Dmax value is calculated when the number of pixels of Dmax exceeds 95% of the total number of pixels.
ステツプ5 S5の説明 S4で求めた上限閾値Dmaxと予め設定されている設定閾値
Dsetによりイメージメモリ(4)23のテクスチヤー画像
データの全画素を濃度データ値DmaxがDsetとなる様にリ
ニア変換すなわち の圧縮演算を行ないその結果をaT″(m,n)としてイメ
ージメモリ(4)23に格納する。この時演算式結果が25
5を超えるものは255としておく。具体的にはルツクアツ
プテーブル(4)30を用いて行ない、標準状態第4図
(a)から第4図(b)の実線で示す様にルツクアツプ
テーブル(4)30をCPU11の命令によつて書きなおす。
次にプロセツサ18の働きによりイメージメモリ(4)23
の画像データを上記のルツクアツプテーブル(4)30を
通してルツクアツプテーブル変換を行ない、イメージメ
モリ(4)23に格納しなおす。演算後ルツクアツプテー
ブル(4)30を第4図(a)の標準状態にもどしてお
く。上説明で用いた設定閾値Dsetは入力階調の約4分の
1程度がのぞましいが作成者の好みによつてパラメータ
設定用I/O16を介して会話形式で変更可能としても良
い。Step 5 Explanation of S5 Upper threshold Dmax obtained in S4 and preset threshold
All pixels of the texture image data of the image memory (4) 23 are linearly converted by Dset so that the density data value Dmax becomes Dset. And stores the result in the image memory (4) 23 as a T ″ (m, n).
Anything over 5 is set to 255. Specifically, it is performed using the look-up table (4) 30, and the look-up table (4) 30 is instructed by the CPU 11 as shown by the solid line in the standard state FIGS. 4 (a) to 4 (b). Rewrite.
Next, the function of the processor 18 causes the image memory (4) 23
Image data is converted into a look-up table through the look-up table (4) 30 and stored again in the image memory (4) 23. After the calculation, the look-up table (4) 30 is returned to the standard state of FIG. 4 (a). The setting threshold Dset used in the above description is desired to be about one-fourth of the input gradation, but it may be changeable in a conversational format via the parameter setting I / O 16 according to the creator's preference.
またステツプS2〜ステツプS5の過程で作成されるテクス
チヤー用データを最初の段階でメモリ用(外部メモリ又
は内部メモリ)に持つておいても可能であることは言う
までもない。Needless to say, the texture data created in the process of steps S2 to S5 may be stored in the memory (external memory or internal memory) at the initial stage.
ステツプ6 S6の説明 プロセツサ18の働きによりイメージメモリ(1),
(2),(3)(20〜22)の画像データをそれぞれ以下
に示す方法により画素の座標変換を行ないイメージメモ
リ(5),(6),(7)(24〜26)に格納する。Description of Step 6 S6 Image memory (1),
The image data of (2), (3) (20 to 22) are subjected to pixel coordinate conversion by the following method and stored in the image memories (5), (6), (7) (24 to 26).
イメージメモリ(5)の画素データa′R(m,n)にイ
メージメモリ(1)の画素データaR(m1,n1)を書き込
む。この時のmとm1,nとn1の関係をイメージメモリ
(4)23のテクスチヤー用画像データa″T(m2,n2)
より求める。たとえば ar(m1,n1)→aR′(m,n)に変換する際 の関係を有するようにプロセツサ18によつて座標変換を
行なう。ここでKは座標変換の強弱をあたえる定数であ
りパラメーターメモリ15に格納されている。またKはあ
らかじめ定められた値でなく、パラメータ設定用I/O16
を介して会話的に設定することが可能でばかりでなく、
m,nの値によつて変化させるすなわちK=function(m,
n)とすることもできるのは言うまでもない。またm,nの
値は512×512の画像データの場合、それぞれ2〜511の
値をとり、m1,n1がより小さな値の時は1、512より大き
な値の時は512とする。以上の説明は、イメージメモリ
(5)についてであるがイメージメモリ(6),(7)
についても同様である。The pixel data a R (m 1 , n 1 ) of the image memory ( 1 ) is written in the pixel data a ′ R (m, n) of the image memory (5). The relationship between m and m 1 and n and n 1 at this time is represented by texture image data a ″ T (m 2 , n 2 ) of the image memory (4) 23.
Ask more. For example, when converting from ar (m 1 , n 1 ) to a R ′ (m, n) The coordinate conversion is performed by the processor 18 so as to have the relationship of. Here, K is a constant that gives the strength of the coordinate conversion and is stored in the parameter memory 15. Also, K is not a preset value, but I / O16 for parameter setting.
Not only is it possible to set conversationally via
It is changed according to the value of m, n, that is, K = function (m,
It goes without saying that it can be n). In the case of 512 × 512 image data, the values of m and n take values of 2 to 511, respectively, and when m 1 and n 1 are smaller, they are set to 1 , and when they are larger than 512, they are set to 512. The above description is about the image memory (5), but the image memories (6) and (7)
Is also the same.
ステツプ7 S7の説明 イメージメモリ(5)〜(7)(24〜26)の画像データ
を画像データ値255が となる様にリニア変換すなわち 但しi=R,G,Bの演算を行ないその結果をa″i(m,n)
としそれぞれイメージメモリ(5)〜(7)(24〜26)
に格納する。具体的にはルツクアツプテーブル(5)〜
(7)31〜33を用いて行ないそれぞれ標準状態第4図
(a)から第4図(c)の実線で示す様にCPU11の命令
によつて書きなおす。次にプロセツサ18の働きによつて
それぞれのイメージメモリ(5)〜(7)24〜26の画像
データを上記書きなおされたルツクアツプテーブル
(5)〜(7)31〜33を通してイメージメモリ(5)〜
(7)24〜26に格納しなおす。この様なルツクアツプ変
換後ルツクアツプテーブル(5)〜(7)31〜33を第4
図(a)の標準状態にもどしておく。Step 7 Explanation of S7 Image data of image memory (5) to (7) (24 to 26) Linear conversion However, i = R, G, B is calculated and the result is a ″ i (m, n)
Image memory (5) to (7) (24 to 26)
To store. Specifically, Lucupup table (5) ~
(7) Using 31 to 33, the standard state is rewritten by the instruction of the CPU 11 as shown by the solid lines in FIGS. 4 (a) to 4 (c). Next, by the function of the processor 18, the image data of each of the image memories (5) to (7) 24 to 26 is passed through the rewritten backup table (5) to (7) 31 to 33 and the image memory (5 ) ~
(7) Restore in 24-26. After such lookup conversion, the lookup tables (5) to (7) 31 to 33 are converted to the fourth order.
Return to the standard state of FIG.
ステツプ8 S8の説明 プロセツサー18の働きによりイメージメモリ(5)〜
(7)24〜26の画像データとイメージメモリ(4)の画
像データーの加算演算を行なう。すなわちa″i(m,
n)+a″T(m,n)(但しi=R,G,B)を行ないその結
果をai(m,n)としそれぞれのイメージメモリ
(5)〜(7)24〜26に格納する。Description of Step 8 S8 Image memory (5) ~
(7) Addition operation of the image data of 24-26 and the image data of the image memory (4) is performed. That is, a ″ i (m,
n) + a ″ T (m, n) (where i = R, G, B) is performed and the result is stored as ai (m, n) in the respective image memories (5) to (7) 24-26.
ステツプ9 S9の説明 イメージメモリ(5)〜(7)24〜26の画像データそれ
ぞれに (但しφ以下はすべてφとする)となる様なリニア変換
を行ない、その結果をそれぞれイメージメモリ(5)〜
(7)24〜26に格納する。具体的にはステツプ6と同様
にルツクアツプテーブル(5)〜(7)31〜33を第4図
(D)の実線で示す様に変換して行なう。Step 9 Explanation of S9 Image memory (5) to (7) 24 to 26 image data respectively (However, φ is all if φ or less), and the results are respectively stored in image memory (5) ~
(7) Store in 24 to 26. Specifically, as in step 6, the lookup table (5)-(7) 31-33 is converted as shown by the solid line in FIG. 4 (D).
変換処理後、ルツクアツプテーブル(5)〜(7)31〜
33を第4図(a)の状態にもどしておく。After the conversion process, the lookup table (5)-(7) 31-
Return 33 to the state shown in FIG. 4 (a).
以上によつて本発明によるテクスチヤースクリーン処理
が完成しその結果はイメージメモリー(5)〜(7)24
〜26に格納されており画像データ入力用のI/O28を介し
て出力信号処理部に転送される。As a result, the texture screen processing according to the present invention is completed, and the result is the image memory (5) to (7) 24.
Stored in Nos. 26 to 26 and transferred to the output signal processing unit via the I / O 28 for inputting image data.
以上の実施形ではステツプ6、ステツプ7、ステツプ
8、ステツプ9の順に説明したが座標変換の行程(ステ
ツプ6)がステツプ7〜9のどの行程にも入出メモリの
指定を変えることにより可能になる。また上実施形では
各画像プレーンごとにステツプ6〜ステツプ9の行程と
説明したが、各画素ごとにステツプ6〜ステツプ9の行
程を繰り返しても同じ結果が得られることは言うまでも
ない。In the above embodiment, step 6, step 7, step 8 and step 9 are explained in this order, but the process of coordinate conversion (step 6) can be performed by changing the designation of the input / output memory in any of the processes of steps 7-9. . In the above embodiment, the steps 6 to 9 are explained for each image plane, but it goes without saying that the same result can be obtained even if the steps 6 to 9 are repeated for each pixel.
以上の様にテクスチヤー画像(第1の画像)の濃度変化
の傾きを利用して、入力画像(第2の画像)を座標変換
して合成することによりテクスチヤー画像の濃度変化に
応じた立体感のある画像が得られる。As described above, the inclination of the density change of the texture image (first image) is used to coordinate-convert and synthesize the input image (second image) to obtain a stereoscopic effect according to the density change of the texture image. An image is obtained.
又、入力画像データを圧縮した状態で加算しているので
メモリの一画素に対するビツト数に余裕を設ける必要が
なく、メモリの節約が可能である。Further, since the input image data is added in a compressed state, it is not necessary to provide a margin for the number of bits for one pixel of the memory, and the memory can be saved.
更に合成処理を自動化することが可能となり、経験者だ
けでなく一般使用者が操作できる。Further, it becomes possible to automate the synthesizing process, which can be operated by not only experienced users but general users.
元の入力画像、テクスチヤ画像、ステツプS6の処理を除
いて入力画像とテクスチヤ画像を合成した画像、及び本
実施例により得た合成画像を夫々参考写真1,2,3,4とし
て示す。Reference images 1, 2, 3 and 4 show the original input image, the texture image, the image obtained by combining the input image and the texture image except for the processing of step S6, and the combined image obtained in the present embodiment.
尚、実施例では画像処理部に画像専用処理装置を用いた
がミニコン等の汎用コンピユーターを用いても同じ効果
が得られることは言うまでもない。Although the image processing unit is used as the image processing unit in the embodiment, it is needless to say that the same effect can be obtained by using a general-purpose computer such as a minicomputer.
また本実施形では、フイルムより画像入力したがスチル
ビデオカメラ、ビデオカメラ等から被写体から直接画像
データを取りこんでも、又、磁気フロツピーデイスク、
磁気テープ、光デイスク、バブルメモリー等の記録媒体
を介して画像データ入力しても同様の効果が得られる。
又、テクスチヤースクリーン画像との合成を示したが、
原画像同志の合成の場合にも勿論本発明を適用できる。Further, in the present embodiment, the image is input from the film, but even if the image data is directly fetched from the subject from a still video camera, a video camera, etc., the magnetic floppy disk,
Similar effects can be obtained by inputting image data through a recording medium such as a magnetic tape, an optical disk, a bubble memory or the like.
In addition, I showed the composition with the texture screen image,
The present invention can of course be applied to the case of compositing original images.
以上説明したように、本発明によれば、第1の画像と第
2の画像の画素データを加算することにより第3の画像
を生成する画像処理方法において、第3の画像となる各
座標に対応する第1の画像の座標の近傍の画素値に基づ
いて第3の画像となる各座標に対応する第2の画像の座
標を求め、その求められた第2の画像の座標における画
素データを第3の画像となる座標に書き込み、その書き
込まれた座標の画素データに第1の画像の各座標の画素
データを加算して第3の画像となる座標に書き込むの
で、第2の画像に対して第1の画像に応じた立体感を持
たせた第3の画像を得ることができる。As described above, according to the present invention, in the image processing method for generating the third image by adding the pixel data of the first image and the pixel data of the second image, the coordinates of the coordinates of the third image are changed. Based on the pixel values in the vicinity of the corresponding coordinates of the first image, the coordinates of the second image corresponding to the coordinates of the third image are obtained, and the pixel data at the obtained coordinates of the second image are calculated. Since the pixel data of each coordinate of the first image is added to the pixel data of the written coordinate and the pixel data of the written coordinate is added to the coordinate of the third image, the pixel data of the third image is written. As a result, a third image having a three-dimensional effect corresponding to the first image can be obtained.
第1図はカラースキヤナに本発明を用いた時の濃度信号
の流れの1例を示すブロツク図、第2図は第1図の画像
処理部の1部をより詳しく示すブロツク図、第3図は実
施例のフローチヤートを示す図、第4図(a),
(b),(c),(d)は第3図のフローチヤートで実
施するのに使用したルツクアツプテーブルの状態を表わ
す図である。 1……入力ドラム 2……対数変換回路 3……AD変換器 4……入力信号処理部 5……画像処理部 6……出力信号処理部 7……DA変換器 8……変調器 9……レーザー光源 10……出力ドラム 11……コントロールプロセツサ 12……CPUメモリ 13……パラメーターコントローラー 14……演算器 15……パラメーターメモリ 16……パラメーター設定用I/O 17……イメージコントローラ 18……プロセツサ 19……フラグマツプメモリ 20〜26……イメージメモリ 27〜33……ルツクアツプテーブル 34……画像データ用I/OFIG. 1 is a block diagram showing an example of the flow of a density signal when the present invention is applied to a color scanner, FIG. 2 is a block diagram showing in more detail a part of the image processing section of FIG. 1, and FIG. The figure which shows the flow chart of an Example, FIG. 4 (a),
(B), (c), (d) is a figure showing the state of the look-up table used for implementing in the flow chart of FIG. 1 ... Input drum 2 ... Logarithmic conversion circuit 3 ... AD converter 4 ... Input signal processing unit 5 ... Image processing unit 6 ... Output signal processing unit 7 ... DA converter 8 ... Modulator 9 ... … Laser light source 10 …… Output drum 11 …… Control processor 12 …… CPU memory 13 …… Parameter controller 14 …… Calculator 15 …… Parameter memory 16 …… Parameter setting I / O 17 …… Image controller 18… … Processor 19 …… Flag map memory 20-26 …… Image memory 27-33 …… Ruckup table 34 …… I / O for image data
───────────────────────────────────────────────────── フロントページの続き (72)発明者 松村 進 神奈川県川崎市高津区下野毛770番地 キ ヤノン株式会社玉川事業所内 (72)発明者 大村 宏志 神奈川県川崎市高津区下野毛770番地 キ ヤノン株式会社玉川事業所内 (56)参考文献 Computer Graphics, Vol.18,No.3,1984,P.245− 252,J.P.Lewis “Textu re Synthesis for Di gital Painting" ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Susumu Matsumura 770 Shimonoge, Takatsu-ku, Kawasaki-shi, Kanagawa Canon Inc. Tamagawa Plant (72) Inventor Hiroshi Omura 770 Shimonoge, Takatsu-ku, Kawasaki-shi, Kanagawa Canon Inc. Tamagawa Works (56) References Computer Graphics, Vol. 18, No. 3, 1984, p. 245-252, J. P. Lewis "Texture re Synthesis for Digital Painting"
Claims (1)
算することにより第3の画像を生成する画像処理方法に
おいて、 前記第3の画像となる各座標に対応する前記第1の画像
の座標の近傍の画素値に基づいて前記第3の画像となる
各座標に対応する前記第2の画像の座標を求め、 その求められた前記第2の画像の座標における画素デー
タを前記第3の画像となる座標に書き込み、 その書き込まれた座標の画素データに前記第1の画像の
各座標の画素データを加算して前記第3の画像となる座
標に書き込む、 ことを特徴とする画像処理方法。1. An image processing method for generating a third image by adding pixel data of the first image and the pixel data of the second image, wherein the first image corresponding to each coordinate which becomes the third image. Based on pixel values near the coordinates of the image, the coordinates of the second image corresponding to the coordinates of the third image are obtained, and the pixel data at the obtained coordinates of the second image are calculated as the first pixel data. An image characterized by being written in the coordinates that become the image of No. 3, and adding the pixel data of each coordinate of the first image to the pixel data of the written coordinates and writing in the coordinates that become the third image. Processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2051886A JPH0695339B2 (en) | 1986-01-31 | 1986-01-31 | Image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2051886A JPH0695339B2 (en) | 1986-01-31 | 1986-01-31 | Image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62179058A JPS62179058A (en) | 1987-08-06 |
| JPH0695339B2 true JPH0695339B2 (en) | 1994-11-24 |
Family
ID=12029379
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2051886A Expired - Fee Related JPH0695339B2 (en) | 1986-01-31 | 1986-01-31 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0695339B2 (en) |
-
1986
- 1986-01-31 JP JP2051886A patent/JPH0695339B2/en not_active Expired - Fee Related
Non-Patent Citations (1)
| Title |
|---|
| ComputerGraphics,Vol.18,No.3,1984,P.245−252,J.P.Lewis"TextureSynthesisforDigitalPainting" |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62179058A (en) | 1987-08-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5164825A (en) | Image processing method and apparatus for mosaic or similar processing therefor | |
| CA1331229C (en) | Method and apparatus for generating animated images | |
| US4602286A (en) | Video processing for composite images | |
| US3784736A (en) | Method and apparatus for converting monochrome pictures to multi-color pictures electronically | |
| US5398123A (en) | Image processing method and apparatus capable of automatic color masking | |
| JPH11242737A (en) | Image processing method and apparatus, and information recording medium | |
| JPH1153508A (en) | Electronic graphics system for processing image data and method for processing image data | |
| JPH1155686A (en) | Image processing apparatus and method, key signal generating apparatus and method, image synthesizing apparatus, and recording medium | |
| JPH0695339B2 (en) | Image processing method | |
| JP2502284B2 (en) | Image processing method | |
| JP2740517B2 (en) | Image processing device | |
| JP2740516B2 (en) | Image processing device | |
| JP2844573B2 (en) | Image processing method | |
| JPS62198975A (en) | Image processing method | |
| JPS6232578A (en) | Image processing method | |
| JP2714027B2 (en) | Color image processing apparatus and color image processing method | |
| JPH0679337B2 (en) | Image processing method | |
| JP2898569B2 (en) | Video accelerator board for computer game development | |
| JPS62179060A (en) | Image processing method | |
| JPH0679336B2 (en) | Image processing method | |
| JP2685458B2 (en) | Image processing method | |
| JPS62198977A (en) | Image processing method | |
| JP2899168B2 (en) | Image data operation method and image data operation device | |
| JPS62179061A (en) | Image processing method | |
| JP2601059B2 (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |