JPH0679336B2 - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JPH0679336B2 JPH0679336B2 JP2051986A JP2051986A JPH0679336B2 JP H0679336 B2 JPH0679336 B2 JP H0679336B2 JP 2051986 A JP2051986 A JP 2051986A JP 2051986 A JP2051986 A JP 2051986A JP H0679336 B2 JPH0679336 B2 JP H0679336B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- memory
- data
- image memory
- value
- 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つとして、印刷業界で
の電子製版技術、写真ラボ業界でのコンピュータ写真画
像処理を応用したプロラボ技術が知られている。<Prior Art> Conventionally, as one of the image processing methods of this type, an electronic plate making technology in the printing industry and a professional lab technology applying computer photographic image processing in the photo lab industry are known.
例えば画像原稿上をレイアウトスキヤナ、レーザカラー
プリンタ等の高精度スキヤナにより光電走査に再生画像
を得る場合その工程の中間に信号処理部を設けて入力濃
度信号に対して濃度表現修正(γ補正)、階調設定、色
修正、切り抜き合成等の処理を行ない以下の様な効果を
得ている。For example, when a reproduced image is obtained by photoelectric scanning on the image original by 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. The following effects are obtained by performing processing such as gradation setting, color correction, and clipping synthesis.
カラーフイルムの退色復元 ハイライト、シヤドウの階調を整え、色彩表現の誇
張 機器故障、撮影ミス、現像ミス等の救済 クリエイテイブイメージを表現し、イメージ領域の
拡大、新しいデザインを創造する。Fading restoration of color film Adjusting highlights and shade gradations, exaggeration of color expression Relief of equipment failure, shooting mistake, development mistake, etc. Expressing creative images, expanding the image area and creating new designs.
この様な特殊処理を実行する場合、フイルム原稿をカラ
ースキヤナの高精度スキヤナ又はカラー最像管、カラー
撮像板(たとえばCCD)等により光電走査して得たフイ
ルム原稿の濃度信号又は輝度信号等のデジタル画像信号
を処理している。When such special processing is executed, the digital signal such as the density signal or the luminance signal of the film original obtained by photoelectrically scanning the film original with a high-precision scanner of a color scanner or a color image tube or a color image pickup plate (for example, CCD) is used. Processing image signals.
従来この種の特殊効果は、規則正しく配列されたモザイ
ク処理やγ曲線を非現実的なものに変化させるポスタリ
ゼーション処理やソラリゼーション処理等がある。とこ
ろがこれだけの処理ではクリエイテイブイメージを表現
し、イメージ領域の拡大、新しいデザインを創造するた
めには数少ないという問題点がある。また別の方法とし
てたとえばDPB 7000(クウオンテル社)、アートロン2
000(アートロニクス社)レスポンス300(サイテツクス
社)等の切り抜き合成やペイント機能があるが、この場
合は作成者がタブレツトデジタイザー等の座標指示装置
を用いてオリジナル画像と描き加えていくというもので
かなりの時間を必要とするばかりでなく、作成者のセン
スが再成画像に反映してしまうという欠点がある。Conventionally, this kind of special effect includes mosaic processing arranged regularly, and posterization processing and solarization processing for changing the γ curve into an unrealistic one. However, there is a problem in that it is rare to express a creative image, expand the image area, and create a new design with such processing. Alternatively, for example, DPB 7000 (Quantel), Artron 2
000 (Artronix) Response 300 (Citex), etc. have cutout composition and paint functions, but in this case the creator uses a coordinate pointing device such as a tablet digitizer to draw and add the original image. Not only does it take a considerable amount of time, but it also has the drawback that the sense of the creator is reflected in the reconstructed image.
以下にx方向5、y方向5の大きさの合計25画素を一つ
の区分としてモザイク処理を行なうものを例にとつて説
明する。デジタル画像の(m,n)番目の画素情報をa
(m,n)と表現する。ここで画素情報a(m,n)はフイル
ム原稿の濃度信号又は輝度信号をA/D変換したデジタル
カウント値を示す。そして原画像の画素情報をa(m,
n)とし処理後の再成画像の画素情報をa′(m,n)とす
るとモザイク処理では次の様な関係式になる。An example will be described below in which mosaic processing is performed with a total of 25 pixels having a size in the x direction 5 and a size in the y direction 5 as one section. The (m, n) th pixel information of the digital image is a
Expressed as (m, n). Here, the pixel information a (m, n) indicates a digital count value obtained by A / D converting the density signal or the luminance signal of the film original. Then, the pixel information of the original image is a (m,
n) and the pixel information of the reconstructed image after processing is a '(m, n), the following relational expression is obtained in the mosaic processing.
a′(5m−i,5n−j)=a(5m−3,5n−3) 但しi=0,1,2,3,4 j=0,1,2,3,4,m,nは自然数上関係
式では5×5の画素ブロツクの中心の値が代表値となり
ブロツク内の他の画素にもその値が代入されているがそ
の代表値は5×5の画素ブロツクであればどの値でもよ
く又平均値でも良い。a ′ (5m−i, 5n−j) = a (5m−3,5n−3) where i = 0,1,2,3,4 j = 0,1,2,3,4, m, n is In the relational expression in terms of natural numbers, the central value of the 5 × 5 pixel block is the representative value, and that value is also assigned to the other pixels in the block. However, the representative value is any value if it is the 5 × 5 pixel block. However, the average value may be used.
この様に従来の規則正しく配列されたモザイク処理では
次の様な欠点があり、クリエイテイブイメージを表現す
るためにはそれを改良した処理方法が切望されている。As described above, the conventional regularly arranged mosaic processing has the following drawbacks, and an improved processing method for expressing the creative image is desired.
矩形のブロツクの配列が規則正しすぎる ブロツク内の画素がすべて同じ値であるため原画像
が細かい表現(高周波成分の多いところ)を必要として
いるところの情報が欠落してしまう。The arrangement of rectangular blocks is too regular. Since all pixels in the block have the same value, the information where the original image requires a fine representation (where there are many high frequency components) is lost.
<目的> 本発明は上述従来例の欠点を除去し、従来の数少ない特
殊効果処理に新しい画像処理方法に提供し、作成者のセ
ンスに左右されることなくクリエイテイブイメージを表
現し、イメージ領域の拡大、新しいデザインを創造する
のに大いに役立ち、そして例えば写真画像をあつかう広
告、デザイン業界に貢献するばかりでなく一般消費者に
対しても従来の写真技術では難しく又は不可能であつた
特殊写真技法を簡単に取り入れることが可能になり写真
業界、写真ラボ業界等の産業上の発達に寄与することが
可能になつた画像処理方法の提供を目的としている。<Purpose> The present invention eliminates the above-mentioned drawbacks of the prior art, provides a new image processing method to the few special effect processing in the related art, expresses a creative image without being influenced by the sense of the creator, and expands the image area. , Which is very useful in creating new designs, and contributes to the design industry, for example, advertising that deals with photographic images, and special photography techniques that are difficult or impossible for the general consumer to do with conventional photography. It is an object of the present invention to provide an image processing method that can be easily incorporated and can contribute to industrial development such as the photographic industry and the photo lab industry.
特に本発明においては、入力画像データに応じてモザイ
ク形状を変える画像処理方法の提供を目的としている。Particularly, the present invention aims to provide an image processing method for changing a mosaic shape according to input image data.
以下本発明の1実施例について図面を用いて詳細に説明
する。第1図は、カラースキヤナに本発明を用いた時の
濃度信号の流れの1例を示すブロツクダイヤグラムであ
る。入力ドラム1に装填されフイルム原稿を光電走査し
て得られた入力信号は、対数変換回路2にて濃度信号に
変換された後、AD変換器3を経て入力信号処理部4に入
力されて、フイルムの種類に応じてそれぞれの濃度値を
変換し、フイルムの露光量に対して一定の関係をなす様
に変換する。というのはフイルム特性曲線がネガフイル
ム、ポジフイルム、リバーサルフイルムによつて異なり
又カラー画像の場合は特にネガフイルムではR,G,Bの各
色によつて異なるためである。この後にこのシステムの
心臓部というべき画像処理部5に入力され、デジタル画
像処理が施される。この後画像処理部5から出力された
濃度信号は、出力信号処理部6でレーザー光量の制御信
号に変換する処理を行ないDA変換器7を経て変調器8に
入力された光源9から出力されたレーザ光の変調を行な
い、出力ドラム10に所望の画像を再生させる。An embodiment of the present invention will be described in detail below with reference to the drawings. 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. The input signal obtained by photoelectrically scanning the film original loaded in 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. Each density value is converted according to the type of film, and 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 the negative film, the positive film, and the reversal film, and in the case of a color image, especially in the negative film, the R, G, and B colors differ. After that, the image is input to the image processing unit 5, which is the heart of the system, and digital image 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 output from the light source 9 input to the modulator 8 via the DA converter 7. The laser light is modulated to cause the output drum 10 to reproduce a desired image.
第2図は画像処理部5の一部をより詳細に示したブロツ
ク図である。FIG. 2 is a block diagram showing a part of the image processing unit 5 in more detail.
CPU11はコントロールブロセツサで、画像処理部5のす
べての実権を握つており、CPUメモリ12のメモリにより
画像処理を制御する。パラメータコントローラ13は演算
器14、パラメーターメモリ15、パラメーター設定用I/O1
6をコントローし、処理に必要なパラメータの初期化、
設定、比較等を行なう。プロセツサー18とCPU11の間は
イメージコントローラ17によつて接続されておりCPU11
の指令によつてプロセツサー18は動作する。プロセツサ
ー18は画像処理部5の中核となる部分であり、CPU11の
命令に従いセレクトされた任意のイメージメモリ20〜2
6.16ビツト用積算イメージメモリ27や画像データ用IO/3
6の中から画像データを受けとり、演算された結果をセ
レクトされた任意のイメージメモリ20〜26.16ビツト用
積算イメージメモリ27や画像データ用IO/36へと送る。
また演算により必要なアドレスにキヤリーをたてるため
にキヤリー専用メモリであるフラグマツプメモリ19にも
出力可能である。イメージメモリ20〜2616ビツト用積算
イメージメモリ27はCPU BUS,VIDEO BUSのいずれにも接
続されているのでCPU11から任意のイメージメモリ20〜2
6.16ビツト用積算イメージメモリ27に読み書きすること
も任意のメモリー間でリアルタイム演算することも可能
である。イメージメモリの出口にルツクアツプテーブル
28〜34という高速RAMが接続されている。このRAMは256
×8ビツトの構造をもち、RAMのアドレスライン8本
(0〜255番他を指定できる=0〜255階調を指定でき
る)は各イメージメモリーの出力に直結され、データラ
イン8本はVIDEO BUSに接続されている。またRAMの内容
はCPU11より自由に読み書きできる。画像データ用I/O35
は画像用入出力インターフエイスであり第1図の入力信
号処理部4から画像データ入力し、出力信号処理部6へ
と画像データ出力を行なう。The CPU 11 is a control processor, which has all the real rights of the image processing unit 5, and controls the image processing by the memory of the CPU memory 12. The parameter controller 13 is an arithmetic unit 14, parameter memory 15, parameter setting I / O1
Control 6 and initialize the parameters required for processing,
Set, compare, etc. The processor 18 and the CPU 11 are connected by the image controller 17 and the CPU 11
The processor 18 operates according to the command of. The processor 18 is a core part of the image processing section 5, and is an arbitrary image memory 20-2 selected according to a command of the CPU 11.
6.16 Integrated image memory 27 for bits and IO / 3 for image data
Image data is received from 6 and the calculated result is sent to any selected image memory 20 to 26.16 bit cumulative image memory 27 or image data IO / 36.
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. Image memory 20 to 2616 Bit accumulation image memory 27 is connected to both CPU BUS and VIDEO BUS, so any image memory 20 to 2 from CPU 11
6.16 It is possible to read from and write to the bit accumulation image memory 27 and to perform real-time calculation between arbitrary memories. Lucupup table at the exit of the image memory
High-speed RAM of 28-34 is connected. This RAM is 256
It has a structure of × 8 bits, 8 RAM address lines (0 to 255 can be specified = 0 to 255 gradations can be specified) are directly connected to the output of each image memory, and 8 data lines are VIDEO BUS. It is connected to the. The contents of RAM can be freely read and written by the CPU 11. Image data I / O35
Is an input / output interface for image, which inputs image data from the input signal processing unit 4 of FIG. 1 and outputs image data to the output signal processing unit 6.
第3図は画像処理部5で行なわれるデジタル画像処理方
法についてのフローチャートを示し、第4図はルツクア
ツプテーブル24〜26の状態を示すグラフであり横軸に入
力階調、縦軸に出力階調を示す。第4図(a)では標準
状態を示し0番地には0、1番地には1、・・・・・25
5番地には255という値が書き込まれているのを示し、入
力、出力の内容が同一となる。また第4図(b)には0
番地には255、1番地には254,・・・・・255番地に0と
いう値が書き込まれ、入力−出力は濃度データが反転さ
れた画像となることを示している。FIG. 3 is a flow chart of a digital image processing method performed by the image processing unit 5, and FIG. 4 is a graph showing the states of the lookup tables 24 to 26, in which the horizontal axis is the input gradation and the vertical axis is the output floor. Shows the key. Fig. 4 (a) shows the standard condition, 0 at address 0, 1 at address 1, 25
The value of 255 is written in the address 5, and the contents of input and output are the same. Also, in FIG. 4 (b), 0
The value 255 is written in the address, the value 254 is written in the address ......, and the value 0 is written in the address 255, indicating that the input-output is an image in which the density data is inverted.
以下画像処理部5で行なわれるデジタル画像処理方法に
ついてフローチヤート第3図を中心に詳細に説明する。
ここでデジタル画像の濃度データをai(m,n)という形
で説明上表わす。但しiはR,G,Bでありそれぞれ原画像
のR成分画像データ、G成分画像データ、B成分画像デ
ータとを示す。また1画素は各成分それぞれ8ビツト構
成すなわち256階調表現可能なデータとなつており最も
濃度の大きいデータ(最も暗いデータ)の値をφとし最
も濃度の小さいデータ(最も明るいデータ)の値を255
とする。The digital image processing method performed by the image processing unit 5 will be described below in detail with reference to the flow chart of FIG.
Here, the density data of the digital image is shown in the form of ai (m, n) for the sake of explanation. However, i is R, G, and B, and indicates R component image data, G component image data, and B component image data of the original image, respectively. Each pixel is composed of 8 bits for each component, that is, data capable of expressing 256 gradations. The value of the data with the highest density (darkest data) is φ, and the value of the data with the lowest density (the brightest data) is 255
And
ステツプ1 S1の説明 CPU11の命令によりプロセツサ18は画像データ用I/O 28
を介して入力信号処理部4より現画像のR成分画像デー
タをイメージメモリ(1)20に格納する。続いて原画像
のG成分画像データ、B成分画像データをそれぞれイメ
ージメモリ(2)(3)21,22に格納する。この時ルツ
クアツプテーブル(1)〜(7)28〜34は第4図(a)
の標準状態である。Step 1 Explanation of S1 Processor 18 makes image data I / O 28 by the instruction of CPU 11.
The R component image data of the current image is stored in the image memory (1) 20 from the input signal processing unit 4 via. Subsequently, the G component image data and the B component image data of the original image are stored in the image memories (2) (3) 21 and 22, respectively. At this time, the rack up tables (1) to (7) 28 to 34 are shown in FIG. 4 (a).
Is the standard condition.
ステツプ2 S2の説明 プロセツサ18の働きによりイメージメモリ(1)20の画
像データをイメージメモリ(4)23に代入する。この時
ルツクアツプテーブル(1)28の内容は第4図(a)で
示す様に標準状態であるのでイメージメモリ(1)20の
内容がイメージメモリ(4)23にそのままコピーされ
る。同様にしてイメージメモリ(2)21、イメージメモ
リ(3)22の画像データをそれぞれイメージメモリ
(5)24、イメージメモリ(6)25にコピーする。Description of Step 2 S2 The image data of the image memory (1) 20 is substituted into the image memory (4) 23 by the function of the processor 18. At this time, since the contents of the look-up table (1) 28 are in the standard state as shown in FIG. 4 (a), the contents of the image memory (1) 20 are directly copied to the image memory (4) 23. Similarly, the image data of the image memory (2) 21 and the image memory (3) 22 are copied to the image memory (5) 24 and the image memory (6) 25, respectively.
ステツプ3 S3の説明 ここでは演算に必要なパラメータの設定を行なう。本実
施例ではパラメータ設定用I/O 16よりキーボード(不
図示)によつて基本画素ブロツクの大きさを表わすパラ
メータおよび該画素ブロツクの形を表わすパラメータを
入力する。以下の例では基本画素ブロツクの大きさを表
わすパラメータをその形の外接四角形の一辺がそれぞれ
m0,n0という形で与えられ、画素ブロツクの形はランダ
ムな形状を選択したことにする。本説明では、形が不規
則であるが、例えば円、三角形、四角形等の固定の形に
しても良い。またこの場合基本画素ブロツクの大きさを
表わすパラメータは外接四角形の一辺という形ではく円
の場合は直径、多角形の場合は外接円直径として与えて
もよい。そしてこれらのパラメータは上述の様にパラメ
ータ設定用I/O16により作成者が自ら入力する形式をと
つているがあらかじめその情報をパラメータメモリに格
納しておけば作業者のパラメータデータ入力の操作なし
に自動化できるのは言うまでもない。Step 3 Description of S3 Here, the parameters necessary for the calculation are set. In this embodiment, a parameter indicating the size of the basic pixel block and a parameter indicating the shape of the pixel block are input from a parameter setting I / O 16 using a keyboard (not shown). In the example below, each side of the circumscribed quadrangle of that shape is used as a parameter that represents the size of the basic pixel block.
It is given in the form of m 0 , n 0, and the shape of the pixel block is a random shape. In this description, the shape is irregular, but it may be a fixed shape such as a circle, a triangle, or a quadrangle. Further, in this case, the parameter representing the size of the basic pixel block may be given as a diameter in the case of one side of a circumscribed quadrangle and a circumscribed circle diameter in the case of a polygon. As described above, these parameters are in the form that the creator himself inputs by the parameter setting I / O16. However, if the information is stored in the parameter memory in advance, the operator does not have to input the parameter data. It goes without saying that it can be automated.
ここで設定された基本画素ブロツクの大きさm0,n0と画
像データの大きさM×Nにより、以下の演算に必要なパ
ラメータである画素ブロツク総個数P1をP1=(M/mO)×
(N/nO)×2の演算式によつて求めた。Based on the sizes m 0 , n 0 of the basic pixel blocks and the size M × N of the image data set here, the total number P1 of pixel blocks, which is a parameter necessary for the following calculation, is P1 = (M / m O ). ×
It was calculated by the formula of (N / n O ) × 2.
次に以下の演算の制御に用いる制御用パラメータIP1の
初期化を行なう。具体的にはIP1=1とし以下の処理でI
P1=1の時はイメージメモリ(1)20を対象に行ない、
IP1=2,IP1=3ではそれぞれイメージメリ(2),
(3),21,22を対象に処理する。Next, the control parameter IP1 used for controlling the following calculation is initialized. Specifically, IP1 = 1 and I
When P1 = 1, target the image memory (1) 20,
When IP1 = 2 and IP1 = 3, the image resolution (2),
(3), 21 and 22 are processed.
ステツプ4 S4の説明 以下のステツプで画素ブロツクの大きさを決定する際に
参照する為の画像データを作成し、イメージメモリ
(7)に格納する。本実施形ではイメージメモリ(1)
のR成分画像データとイメージメモリ(2)のG成分画
像データ、イメージメモリ(3)のB成分原画像データ
よりそれぞれをR:G:B=3:6:1の割合でたし合わせ視感度
に近い画像データとして参照画像データを作成して説明
を行なうが視感度としてR,G,Bの割合いのもつとも高い
G成分画像データだけを参照画像データとして用いて行
なうことも可能である。プロセツサー18の働きにより16
ビツト用イメージメモリ(8)をリセツトする。次にイ
メージメモリ(1)をイメージメモリ(8)に3回たし
あわせ、そのデータにイメージメモリ(2)、イメージ
メモリ(3)のデータをそれぞれ6回、1回たしあわせ
る。すなわちイメージメモリ(1),(2),(3)の
データをそれぞれai(m,n)i=R,G,Bとしイメージメモ
リ(8)のデータをWa(m,n)と表わすとWa(m,n)=3
×aR(m,n)+6×aG(m,n)+aB(m,n)となる。次に
そのイメージメモリ(8)のデータを10で徐算しイメー
ジメモリ(7)に格納する。Step 4 S4 Description In the following steps, image data to be referred to when determining the size of the pixel block is created and stored in the image memory (7). In this embodiment, the image memory (1)
R component image data of, the G component image data of the image memory (2), and the B component original image data of the image memory (3) are added together at a ratio of R: G: B = 3: 6: 1. The reference image data will be described as the image data close to the above, but it is also possible to use only the G component image data having a high luminosity ratio of R, G, and B as the reference image data. 16 due to the function of processor 18
The bit image memory (8) is reset. Next, the image memory (1) is added to the image memory (8) three times, and the data is added to the image memory (2) and the image memory (3) six times and once, respectively. That is, if the data in the image memories (1), (2), and (3) are ai (m, n) i = R, G, B, and the data in the image memory (8) is represented as Wa (m, n), Wa is (M, n) = 3
× aR (m, n) + 6 × aG (m, n) + aB (m, n). Next, the data in the image memory (8) is divided by 10 and stored in the image memory (7).
すなわちイメージメモリ(7)のデータaT(m,n)はaT
(m,n)=(3×aR(m,n)+6×aG(m,n)+aB(m,n)
/10となる。That is, the data aT (m, n) in the image memory (7) is aT
(M, n) = (3 × aR (m, n) + 6 × aG (m, n) + aB (m, n)
It becomes / 10.
ステップ5 B5の説明 IP1はこれから処理を行なうイメージメモリの指定をす
る制御用パラメータでありIPI=1の時は結果出力をイ
メージメモリ(1)20と1演算に必要な参照イメージを
イメージメモリ(4)23とする。また、IPI=2の時
は、それぞれイメージメモリ(2)21と(5)24であり
IPI=3の時は、イメージメモリ(3)22と(5)25で
ある。そしてIPI=4になると本画像処理部での演算を
終了し次のシーケンスに移る。Step 5 Explanation of B5 IP1 is a control parameter for designating the image memory to be processed. When IPI = 1, the result output is the image memory (1) 20 and the reference image necessary for one operation is the image memory (4 ) 23. Also, when IPI = 2, it is image memory (2) 21 and (5) 24 respectively.
When IPI = 3, the image memories are (3) 22 and (5) 25. Then, when IPI = 4, the calculation in the main image processing unit is ended and the process proceeds to the next sequence.
ステツプ6 S6の説明 以下の演算で用いる制御用パラメータの初期設定であ
り、IP2=1とする。この制御用パラメータはステツプ1
1でカウントアツプされステツプ12でステツプで算出し
た画素プロツクの演算の繰り返し回数P1と比較し制御す
る。Explanation of step 6 S6 IP2 = 1, which is the initial setting of control parameters used in the following calculations. This control parameter is step 1
It is counted up in 1 and compared in step 12 with the number of times P1 of calculation of the pixel block which is calculated in step, and is controlled.
ステツプ7 B7の説明 以下で行なわれる処理に用いる乱数系列の設定を行な
う。この時点で乱数系列の設定を行なうことによりイメ
ージメモリ(1)〜(3)20〜22を対象に行なう処理で
の乱数の発生が同じ値になり、ブロツク処理部の指定位
置を3イメージメモリとも同じようにする。Description of Step 7 B7 A random number sequence used in the following processing is set. By setting the random number sequence at this point, the generation of random numbers in the process performed on the image memories (1) to (3) 20 to 22 becomes the same value, and the designated position of the block processing unit is set to 3 image memories. Do the same.
ステツプ8 S8の説明 乱数発生によつて画素ブロツクを発生する為の基本位置
を算出する。ここでは、x方向に対してIからMの間を
発生させ、y方向に対しては1からNの間を発生させ
る。ここで該基本位置をそれぞれms,nsとして表わして
おく。Step 8 S8 Description A basic position for generating a pixel block is calculated by random number generation. Here, between I and M is generated in the x direction, and between 1 and N is generated in the y direction. Here, the basic positions are represented as ms and ns, respectively.
ステツプ9 S9の説明 ステツプ8によつて発生するms,nsした値によつてイメ
ージメモリ(7)の4点、 に囲まれるところのデータ値aT(i,j)の最大値と最小
値の差dを求める。この差dによつてdの値の大きい時
は、実際に書き込む画素ブロツクの大きさmb,nbを小さ
くし、dの値が小さい時は、実際に書き込む画素ブロツ
クの大きさmb,nbを大きくする。本実施形では、実際に
書き込む画素ブロツクmb,nbを次式の様に最大値と最小
値の差dに対し直線的に変化させたものであるが非線型
又は数種類の場合いわけによつて行なつてもよいのは言
うまでもない。Step 9 Explanation of S9 The four points of the image memory (7) are determined according to the value of ms, ns generated by step 8, A difference d between the maximum value and the minimum value of the data value a T (i, j) surrounded by is calculated. Due to this difference d, when the value of d is large, the size mb, nb of the pixel block to be actually written is reduced, and when the value of d is small, the size mb, nb of the pixel block to be actually written is increased. To do. In this embodiment, the pixel block mb, nb to be actually written is linearly changed with respect to the difference d between the maximum value and the minimum value as shown in the following equation. It goes without saying that you can do it.
mb=mo−mo×d/255 nb=no−no×d/255(但し整数化する) ステツプ10 S10の説明 ステツプ9によつて求められた画素ブロツクの大きさm
b,nbによつてイメージメモリ(4)上の4点 で囲まれる画素ブロツク内の任意の位置を第5図の様に
イメージメモリ(1)の(ms,ns)の値で書き込む。こ
れは制御用パラメータIP2=1の場合であり、IP2=2,3
の時はそれぞれイメージメモリ(2)からイメージメモ
リ(5)へ、イメージメモリ(3)からイメージメモリ
(6)へ選択した値を書き込んでいく。mb = mo-mo * d / 255 nb = no-no * d / 255 (however, it is converted to an integer) Step 10 Explanation of S10 The size m of the pixel block obtained by Step 9
4 points on the image memory (4) by b and nb An arbitrary position in the pixel block surrounded by is written with the value (ms, ns) of the image memory (1) as shown in FIG. This is the case when the control parameter IP2 = 1, and IP2 = 2,3
At that time, the selected value is written from the image memory (2) to the image memory (5) and from the image memory (3) to the image memory (6).
ステツプ11,12 S11,S12の説明 ステツプ11で制御用パラメータIP2のカウントアツプを
行ないステツプ12で該パラメータによつて分枝し、IP2
がP2より大きい時は次のステツプであるステツプ13に進
み、P2に等しいか又は小さい時はステツプ8から繰り返
す。すなわちステツプ8〜ステツプ12まではP2回繰り返
しP2個の画素ブロツクをイメージメモリ(4),
(5),(6)にそれぞれ書き込む。Steps 11, 12 S11, S12 description Step 11 counts up the control parameter IP2, and step 12 branches according to the parameter to obtain IP2.
Is greater than P2, the next step, Step 13, is performed, and when P2 is equal to or less than P2, Step 8 is repeated. That is, steps 8 to 12 are repeated P2 times, and P2 pixel blocks are stored in the image memory (4),
Write in (5) and (6) respectively.
ステツプ13 S13の説明 制御用パラメータIP1のカウントアツプを行ない、ステ
ツプ5に移る。Step 13 Description of S13 Count up of the control parameter IP1 is performed, and then the process proceeds to step 5.
以上の様なデジタル画像処理を行ない、その結果はイメ
ージメモリ(4)23イメージメモリ(5)24、イメージ
メモリ(6)25にそれぞれR,G,B成分画像データが格納
されていることになる。The digital image processing as described above is performed, and the result is that the R, G, and B component image data are stored in the image memory (4) 23, the image memory (5) 24, and the image memory (6) 25, respectively. .
前説明ではステツプ9での画像ブロツクの大きさ決定の
際にmo×noの画素ブロツク内の最大値と最小値によつて
実際に書き込む画素ブロツクの大きさmb×nbを決定して
いたが、次の様な方法によつても可能である。In the previous description, when determining the size of the image block in step 9, the size mb × nb of the pixel block to be actually written is determined by the maximum value and the minimum value in the pixel block of mo × no. The following method is also possible.
画素ブロツクmo×noの範囲内の隣接する画素素の総和に
よつて判断することも可能である。It is also possible to make a judgment based on the sum of adjacent pixel elements within the pixel block mo × no.
すなわちイメージメモリ(7)の画像データをラブラシ
アンや他の微分オペレータをし画像にした、その画像に
対し、画素ブロツクmo×noの範囲内の値の総和Sをと
り、総和Sの値の大きいものに対してmb,nbを小さくと
り、総和Sの値の小さいものに対しmb,nbを大きくする
ことによつても本発明の同等の効果が得られる。That is, the image data of the image memory (7) is Labrian or other differential operator to form an image, and the sum S of the values in the range of the pixel block mo × no is taken for the image and the value of the sum S is large. However, the same effect of the present invention can be obtained by making mb, nb small and making mb, nb large with respect to the one having a small sum S.
以上の様に本実施例に依れば、従来の規則正しい矩形の
モザイク処理に比べ、離散度が高く、異なつたクリエイ
テイブイメージを表現できる。As described above, according to the present embodiment, it is possible to express different creative images with a higher degree of discreteness as compared with the conventional regular rectangular mosaic processing.
又、画素ブロツク(モザイク)の大きさがすべて同じ値
にならず、コントラストの大きいところは小さく、逆に
コントラストの小さいところは大きくなるので原画像情
報の特徴を生かしたモザイク処理が可能になる。例えば
写真の被写体以外の非合焦域は大きなモザイクで構成す
ることができる。Further, the sizes of pixel blocks (mosaics) do not all have the same value, where the areas with high contrast are small, and the areas with low contrast are large, so mosaic processing that makes the most of the characteristics of the original image information is possible. For example, the out-of-focus area other than the subject of the photograph can be configured with a large mosaic.
又、従来の銀塩システムで行なわれていた「暗室処理」
や印刷システムの電子製版では無かつた新しい画像を提
供できるとともに作画の自由度を増す。In addition, "dark room treatment" that was performed by the conventional silver salt system
In addition to providing new images that were not possible with electronic plate making of or printing systems, the degree of freedom in drawing is increased.
又、画像処理のプロセスを無人化できるので専問家を必
要とせず、ラボ的な普及が望める。Further, since the image processing process can be unmanned, a specialist is not required, and it can be expected to spread in a laboratory.
尚本実施例では画像処理部に画像専用処理装置を用いた
がミニコン等の汎用コンピューターを用いても同じ効果
が得られることは言うまでもない。In this embodiment, the image processing unit is used as the image processing unit, but it goes without saying that the same effect can be obtained by using a general-purpose computer such as a minicomputer.
また本実施形では、フイルムより画像入力したがスチー
ルビデオカメラ、ビデオカメラ等から被写体から直接画
像データを取りこんでも又磁気フロツピーデイスク、磁
気テープ、光デイスク、バブルメモリー等の記録媒体を
介して画像データを入力しても同様の効果は得られる。In this embodiment, the image is input from the film, but even if the image data is directly captured from the subject from a still video camera, a video camera, etc., the image is recorded via a recording medium such as a magnetic floppy disk, a magnetic tape, an optical disk or a bubble memory. The same effect can be obtained by inputting data.
<効果> 以上の如く、本発明に依れば、従来の規則正しいモザイ
ク処理に比べ、クリエイテイブイメージを表現できると
共に、原画像情報の特徴を生かしたモザイク処理が可能
となる。特に原画のコントラストに応じて区分の形状を
変化させることによる効果は極めて大である。<Effect> As described above, according to the present invention, it is possible to express a creative image and perform mosaic processing that makes the best use of the characteristics of original image information, as compared with the conventional regular mosaic processing. In particular, the effect of changing the shape of the section according to the contrast of the original image is extremely large.
第1図はカラースキヤナに本発明を用いた時の濃度信号
の流れの1例を示すブロツク図、第2図は第1図の画像
処理部の1部をより詳しく示すブロツク図、第3図は実
施例のフローチヤート図、第4図(a),(b)は第3
図の説明で使用したルツクアツプテーブルの状態を示す
図、第5図(a),(b)はパラメータの設定の例を示
した図である。 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〜27……イメージメモリ 28〜35……ルツクアツプテーブル 36……画像データ用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 flow chart of the embodiment is shown in FIGS. 4 (a) and 4 (b) as the third chart.
FIG. 5 is a diagram showing the state of the lookup table used in the description of the drawings, and FIGS. 5A and 5B are diagrams showing examples of parameter setting. 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-27 …… Image memory 28-35 …… Lookup table 36 …… I / O for image data
フロントページの続き (72)発明者 松村 進 神奈川県川崎市高津区下野毛770番地 キ ヤノン株式会社玉川事業所内 (72)発明者 大村 宏志 神奈川県川崎市高津区下野毛770番地 キ ヤノン株式会社玉川事業所内(72) Inventor Susumu Matsumura Susumu Shimoge, Takatsu-ku, Kawasaki-shi, Kanagawa 770, Tamagawa Works, Canon Inc. (72) Hiroshi Omura 770 Shimonoge, Takatsu-ku, Kawasaki, Kanagawa Prefecture
Claims (2)
複数の区分に分け、各区分内の画素データを該代表値に
より変換処理する画像処理において、原画像の画像デー
タに応じて前記区分の形状を変化させることを特徴とす
る画像処理方法。1. In image processing for dividing image data of an original image into a plurality of sections composed of a plurality of pixels, and converting pixel data in each section by the representative value, the section is divided according to the image data of the original image. An image processing method, characterized in that the shape of the image is changed.
像コントラストに応じて前記区分の形状を変化させるこ
とを特徴とする画像処理方法。2. An image processing method according to claim 1, wherein the shape of the section is changed according to the image contrast of the original image.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2051986A JPH0679336B2 (en) | 1986-01-31 | 1986-01-31 | Image processing method |
| US07/007,785 US4953227A (en) | 1986-01-31 | 1987-01-28 | Image mosaic-processing method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2051986A JPH0679336B2 (en) | 1986-01-31 | 1986-01-31 | Image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62179059A JPS62179059A (en) | 1987-08-06 |
| JPH0679336B2 true JPH0679336B2 (en) | 1994-10-05 |
Family
ID=12029406
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2051986A Expired - Fee Related JPH0679336B2 (en) | 1986-01-31 | 1986-01-31 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0679336B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5038223A (en) * | 1988-02-29 | 1991-08-06 | Canon Kabushiki Kaisha | Image processing method and apparatus for imparting a pictorial or painter-like effect |
-
1986
- 1986-01-31 JP JP2051986A patent/JPH0679336B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62179059A (en) | 1987-08-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4953227A (en) | Image mosaic-processing method and apparatus | |
| Watkins | Modern image processing: warping, morphing, and classical techniques | |
| EP0827112B1 (en) | Adjustment layers for composited image manipulation | |
| US5170443A (en) | Image processor for processing source pixel intensity values | |
| JP2005526302A (en) | Method and apparatus for changing the focus of a scene | |
| US20050134801A1 (en) | Method and system for preserving the creative intent within a motion picture production chain | |
| JPS6255137B2 (en) | ||
| JP4291395B2 (en) | Apparatus and method for generating pixel values of pixels in an image using a strictly deterministic method for generating sample points | |
| JPS5839345B2 (en) | Arithmetic mask device | |
| JPH1153508A (en) | Electronic graphics system for processing image data and method for processing image data | |
| JP2012043268A (en) | Image processing apparatus, and method for controlling image processing apparatus | |
| CN112085855B (en) | Interactive image editing method, device, storage medium and computer equipment | |
| JPH0679336B2 (en) | Image processing method | |
| JPS6282472A (en) | Picture processing system | |
| JPS62179060A (en) | Image processing method | |
| JP2020087104A (en) | Computer program, image processing method, and image processing apparatus | |
| JPH0638629B2 (en) | Image processing method | |
| JPS6232578A (en) | Image processing method | |
| JPH0679337B2 (en) | Image processing method | |
| JPS62198975A (en) | Image processing method | |
| JP2502284B2 (en) | Image processing method | |
| JPS62179061A (en) | Image processing method | |
| JPH0695339B2 (en) | Image processing method | |
| JP2844573B2 (en) | Image processing method | |
| JP2740517B2 (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |