JPH0679337B2 - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JPH0679337B2 JPH0679337B2 JP62080487A JP8048787A JPH0679337B2 JP H0679337 B2 JPH0679337 B2 JP H0679337B2 JP 62080487 A JP62080487 A JP 62080487A JP 8048787 A JP8048787 A JP 8048787A JP H0679337 B2 JPH0679337 B2 JP H0679337B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- memory
- data
- pixel
- image memory
- 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
- Image Processing (AREA)
- Studio Circuits (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
- Image Analysis (AREA)
Description
【発明の詳細な説明】 本発明は画像を変換処理する画像処理方法に関する。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, there are known an electronic plate making technique in the printing industry and a professional laboratory technique applying computer photographic image processing in the photographic laboratory industry.
例えば画像原稿をレイアウトスキヤナ,レーザカラープ
リンタ等の高精度スキヤナにより光電走査して再生画像
を得る場合、その工程の中間に信号処理部を設けて入力
濃度信号に対して濃度表現修正(γ補正),階調設定,
色修正,切り抜き合成等の処理を行い以下の様な効果を
得ている。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 clipping composition.
カラーフイルムの退色復元。Restoration of fading color film.
ハイライト,シヤドウの階調を整え、色彩表現の誇
張。Adjust the gradation of highlights and shades to exaggerate the 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, a digital image such as a density signal or a luminance signal of the film original obtained by photoelectrically scanning the film original with a color scanner, a high-precision scanner or a color image pickup tube, a color image pickup plate (for example, CCD), etc. Processing the signal.
従来この種の特殊効果は、規則正しく配列されたモザイ
ク処理やγ曲線を非現実的なものに変化させるポスタリ
ゼーシヨン処理やソラリゼーシヨン処理等がある。Conventionally, this kind of special effect includes mosaic processing arranged regularly, posterization processing for changing the γ curve into an unrealistic one, solarization processing, and the like.
従来の規則正しく配列されたモザイク処理では次の様な
欠点があり、クリエイテイブイメージを表現するために
は、それを改良した処理方法が切望されている。The conventional regularly arranged mosaic processing has the following drawbacks, and an improved processing method is desired for expressing a creative image.
矩形のブロツクの配列が規則正しすぎる。The arrangement of rectangular blocks is too regular.
ブロツク内の画素がすべて同じ値であるため原画像が
細かい表現(高周波成分の多いところ)を必要としてい
るところの情報が欠落してしまう。Since all the pixels in the block have the same value, the information where the original image requires a fine expression (where there are many high frequency components) is lost.
又、例えばポートレート画像などでの画像の低周波の領
域では、背景部でも人物の部分でも同じ形状のモザイク
となってしまい、主題に対する印象がうすいものとなっ
てしまう欠点がある。Further, for example, in a low frequency region of an image such as a portrait image, the background and the person have a mosaic of the same shape, which makes the impression of the subject light.
更に従来の処理方法では、油絵などに見られるような絵
筆のタツチ(筆使い)が十分再現されず、画像のエツジ
方向性を検出してこれを生かしたような画像処理が望ま
れている。Furthermore, the conventional processing method does not sufficiently reproduce the touch (using a brush) of a paint brush as seen in oil paintings, etc., and there is a demand for image processing that detects the edge directionality of an image and makes the best use of this.
本発明は。上述従来例の欠点を除去し、従来の数少ない
特殊効果処理に対して、さらに新しい画像処理方法を提
供し、作成者のセンスに左右されることなくクリエイテ
イブイメージを表現し、イメージ領域の拡大、新しいデ
ザインを創造するのに大いに役立ち、そして例えば写真
画像をあつかう広告,デザイン業界に貢献するばかりで
なく、一般消費者に対しても従来の写真技術では難しく
又は不可能であった特殊写真技法を簡単に取り入れるこ
とが可能になり、写真業界,写真ラボ業界等の産業上の
発達に寄与することが可能になった画像処理方法の提供
を目的としている。The present invention is. By eliminating the drawbacks of the above-mentioned conventional example, we provide a new image processing method to the few conventional special effect processing, express a creative image without being influenced by the sense of the creator, expand the image area, new It is very useful for creating designs, and contributes to the advertising and design industries dealing with photographic images, for example, and makes it easy for general consumers to use special photographic techniques that are difficult or impossible with conventional photographic technology. The purpose of the present invention is to provide an image processing method that can be incorporated into the image processing method and can contribute to the industrial development of the photographic industry, the photo laboratory industry, and the like.
第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. The film characteristic curve differs depending on whether the film is a negative film, a positive film, or a reversal film.
This is because each color is different. After that, the image is input to the image processing unit 5, which should be 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, input to the modulator 8 via the DA converter 7, and output from the light source 9. The output laser 10 is caused to reproduce a desired image by modulating the generated laser light.
第2図は画像処理部5の一部をより詳細に示したブロツ
ク図である。CPU11はコントロールプロセツサーで、画
像処理部5のすべての実権を握っており、CPUメモリ12
のメモリにより画像処理を制御する。パラメータコント
ローラ13は演算器14,パラメーターメモリ15,パラメータ
設定用I/O16をコントロールし、処理に必要なパラメー
タの初期化,設定,比較等を行う。プロセツサー18とCP
U11の間はイメージコントローラ17によって接続されて
おり、CPU11の指令によってプロセツサー18は動作す
る。プロセツサー18は画像処理部5の中核となる部分で
あり、CPU11の命令に従いセレクトされた任意のイメー
ジメモリ20〜26、16ビツト用積算イメージメモリ27や画
像データ用I/O36の中から画像データを受けとり、演算
された結果をセレクトされた任意のイメージメモリ20〜
26、16ビツト用積算イメージメモリ27や画像データ用I/
O36へと送る。また演算により必要なアドレスにキヤリ
ーをたてるためにキヤリー専用メモリであるフラグマツ
プメモリ19にも出力可能である。イメージメモリ20〜2
6、16ビツト用積算イメージメモリ27はCPU BUS,VIDEO B
USのいずれにも接続されているのでCPU11から任意のイ
メージメモリ20〜26、16ビツト用積算イメージメモリ27
に読み書きすることも任意のメモリー間でリアルタイム
演算することも可能である。イメージメモリの出口にル
ツクアツプテーブル28〜34という高速RAMが接続されて
いる。このRAMは256×6ビツトの構造をもち、RAMのア
ドレスライン8本(0〜256番地を指定できる=0〜255
階調を指定できる)は各イメージメモリーの出力に直結
され、データライン8本はVIDEO BUSに接続されてい
る。またRAMの内容はCPU11より自由に読み書きできる。
画像データ用I/O36は画像用入出力インターフエイスで
あり、第1図の入力信号処理部4から画像データ入力
し、出力信号処理部6へと画像データ出力を行う。FIG. 2 is a block diagram showing a part of the image processing unit 5 in more detail. The CPU 11 is a control processor and has all the real rights of the image processing unit 5.
Image processing is controlled by the memory. 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. Processor 18 and CP
An image controller 17 connects between U11, and the processor 18 operates according to a command from the CPU 11. The processor 18 is a core part of the image processing unit 5, and outputs image data from any of the image memories 20 to 26 selected according to the instruction of the CPU 11 and the 16-bit integrated image memory 27 and the I / O 36 for image data. Any image memory 20 that receives and calculates the result of calculation is selected
Integrated image memory 27 for 26 and 16 bits and I / O for image data
Send to O36. 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-2
The cumulative image memory 27 for 6 and 16 bits is CPU BUS, VIDEO B
Since it is connected to any of the US, any image memory 20 to 26, 16 bit total image memory 27 from CPU 11
It is also possible to read and write to and to perform real-time arithmetic between arbitrary memories. A high-speed RAM called Lucupup table 28-34 is connected to the exit of the image memory. This RAM has a structure of 256 x 6 bits and has 8 RAM address lines (0 to 256 addresses can be specified = 0 to 255
The gradation can be specified) is directly connected to the output of each image memory, and 8 data lines are connected to the VIDEO BUS. The contents of RAM can be freely read and written by the CPU 11.
The image data I / O 36 is an image input / output interface, 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図はルツクアツプテーブル28〜34の状態を示すグラ
フであり、横軸に入力階調、縦軸に出力階調を示す。第
3図(a)では標準状態を示し、0番地には0、1番地
には1、…255番地には255という値が書き込まれている
のを示し、入力,出力の内容が同一となる。また第3図
(b)には0番地には255、1番地には254、…255番地
に0という値が書き込まれ、入力−出力は濃度データが
反転された画像となることを示している。FIG. 3 is a graph showing the states of the lookup tables 28 to 34, in which the horizontal axis shows the input gradation and the vertical axis shows the output gradation. FIG. 3 (a) shows a standard state in which a value 0 is written in address 0, a value 1 is written in address 1, ... 255 in address 255, and the contents of input and output are the same. . Further, FIG. 3 (b) shows that a value of 255 is written in the 0th address, a value of 254 is written in the 1st address, ..., A value of 0 is written in the 255th address, and the input-output is an image in which the density data is inverted. .
以下画像処理部5で行われるデジタル画像処理方法につ
いてフローチヤート第4図を中心に詳細に説明する。こ
こでデジタル画像の濃度データを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 RGB 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 data with the lowest density (the brightest data) Value 255
And
ステップ1の説明) CPU11の命令によりプロセツサ18は画像データ用I/O36を
介して入力信号処理部4より原画像のR成分画像データ
をイメージメモリ(1)20に格納する。続いて原画像の
G成分画像データ,B成分画像データをそれぞれイメージ
メモリ(2),(3),21,22に格納する。この時ルツク
アツプテーブル(1)〜(7),28〜34は第3図(a)
の標準状態である。Description of Step 1) In response to an instruction from the CPU 11, the processor 18 stores the R component image data of the original image in the image memory (1) 20 from the input signal processing unit 4 via the image data I / O 36. Then, the G component image data and the B component image data of the original image are stored in the image memories (2), (3), 21, 22 respectively. At this time, the rack up tables (1) to (7) and 28 to 34 are shown in FIG. 3 (a).
Is the standard condition.
ステツプ2の説明) 以下のステツプで画像エツジ部の方向性を決定する際に
参照する為の参照画像データを作成し、イメージメモリ
(4)23に格納する。本実施形ではイメージメモリ
(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)のデータをa8(m,n)と表
わすとa8(m,n)=3×aR(m,n)+6×aG(m,n)+aB
(m,n)となる。次に、そのイメージメモリ(8)のデ
ータを10で除算し、イメージメモリ(4)に格納する。Description of Step 2) Reference image data to be referred to when determining the directionality of the image edge portion is created in the following step and stored in the image memory (4) 23. In this embodiment, R component image data in the image memory (1) and G in the image memory (2) are used.
The component image data and the B component original image data in the image memory (3) are added together at a ratio of R: G: B = 3: 6: 1, and monochrome reference image data is created as image data with near visual sensitivity. However, it is also possible to use only the G component image data having the highest RGB ratio as the visual sensitivity as the reference image data. Processor 18
Function resets the 16-bit image memory (8). Next, the image memory (1) is added to the image memory (8) three times, and the data of the image memory (2) and the data of the image memory (3) are respectively added to the data 6 times.
Enjoy once, once. Image memory (1),
The data of (2) and (3) are ai (m, n) i = RGB.
And then, the data of the image memory (8) a 8 (m, n) to represent the a 8 (m, n) = 3 × a R (m, n) + 6 × a G (m, n) + a B
(M, n). Next, the data in the image memory (8) is divided by 10 and stored in the image memory (4).
すなわちイメージメモリ(4)のデータa4(m,n)はa4
(m,n)=(3×aR(m,n)+6×aG(m,n)+aB(m,
n))/10となる。That is, the data a 4 (m, n) in the image memory (4) is a 4
( M , n) = (3 × a R (m, n) + 6 × a G (m, n) + a B (m, n
n)) / 10.
ステツプ3の説明) イメージメモリ(1),(2),(3)に格納されてい
る画像データをイメージメモリ(6),(7),(8)
へコピーし、イメージメモリ(1),(2),(3)を
全て0とし、イメージメモリ(4)の画像データをイメ
ージメモリ(2)へコピーする。さらにフラグマツプメ
モリ19上の全ビツトを1にする。そして、このイメージ
メモリ(2)に対してパラメータ設定用I/O16に付属の
デジタイザ(不図示)を用いて、主被写体領域を囲む閉
曲線を書く。この閉曲線内を塗りつぶし処理し、この部
分を第1の領域(上記主被写体領域)と規定し、この領
域内に存在する画素位置(i,j)に対応するフラグマツ
プメモリ19上の(i,j)に0を書き込む。又フラグマツ
プメモリ19上で1となっている部分は第2領域(背景領
域)と規定する。この後、イメージメモリ(6),
(7),(8)のデータをイメージメモリ(1),
(2),(3)へ復帰させる。Explanation of Step 3) Image data stored in the image memories (1), (2) and (3) are converted into image memories (6), (7) and (8).
The image data of the image memory (1), (2), and (3) are all set to 0, and the image data of the image memory (4) is copied to the image memory (2). Further, all the bits on the flag map memory 19 are set to 1. Then, using the digitizer (not shown) attached to the parameter setting I / O 16 for this image memory (2), a closed curve surrounding the main subject area is written. The inside of this closed curve is painted out, this portion is defined as the first area (main subject area), and (i, j on the flag map memory 19 corresponding to the pixel position (i, j) existing in this area). Write 0 to j). Further, the portion having 1 on the flag map memory 19 is defined as the second area (background area). After this, the image memory (6),
The data of (7) and (8) are stored in the image memory (1),
Return to (2) and (3).
ステツプ4の説明) ステツプ4のより詳細なフローチヤートを第5図に示
す。まず、ステツプ4−1では参照画像データ(イメー
ジメモリ(4)上にある)を、イメージメモリ(5),
(6),(7)へコピーする。Description of Step 4) A more detailed flow chart of Step 4 is shown in FIG. First, in step 4-1, the reference image data (which is on the image memory (4)) is transferred to the image memory (5),
Copy to (6) and (7).
次にステツプ4−2ではこれらイメージメモリ(4),
(5),(6),(7)の画像aK(i,j)(K=4,5,6,
7)に対して順次第7図に示すOP1〜OP4の各3×3のウ
インドウサイズを有する方向検出オペレータを用いて公
知のコンボルーシヨン処理を行い、その絶対値をとり、
この処理結果を再び元のイメージメモリ(4),
(5),(6),(7)へ格納する。ここでOP1は右上
から左下への方向のエツジ検出用オペレータであり、PO
2は水平方向、OP3は左上から右下斜め方向、PO4は上下
方向の各エツジ検出オペレータである。Next, in step 4-2, these image memories (4),
Images of (5), (6), and (7) a K (i, j) (K = 4,5,6,
7) is sequentially subjected to a known convolution process using direction detection operators each having a window size of 3 × 3 of OP1 to OP4 shown in FIG.
This processing result is again used as the original image memory (4),
Store in (5), (6) and (7). Here, OP1 is an operator for edge detection in the direction from upper right to lower left, and
2 is a horizontal direction, OP3 is an upper edge to lower right diagonal direction, and PO4 is a vertical edge detection operator.
次にステツプ4−3を説明する。画素位置(i,j)ごと
にイメージメモリ(4),(5),(6),(7)の値
を比較し、その最大値を有するイメージメモリナンバを
さがす。例えばイメージメモリ(4)でのa4(i,j)が
他のaK(i,j)(K=5,6,7)よりも大きい時、この位置
を中心とする3×3の部分領域では右上から左下への斜
め45゜方向のエツジ成分が大きい事になり、イメージメ
モリ(4)の(i,j)の位置へ1を書き込み、その値a4
(i,j)をイメージメモリ(5)の(i,j)の位置へ書き
込む。Next, step 4-3 will be described. The values of the image memories (4), (5), (6) and (7) are compared for each pixel position (i, j), and the image memory number having the maximum value is searched for. For example, when a 4 (i, j) in the image memory (4) is larger than other a K (i, j) (K = 5,6,7), the 3 × 3 part centered on this position In the area, the edge component in the diagonal direction of 45 ° from the upper right to the lower left is large, and 1 is written to the position of (i, j) of the image memory (4), and its value a 4
Write (i, j) to the position (i, j) in the image memory (5).
同様にイメージメモリ(6)でのa6(i,j)が他のa
K(i,j)(K=4,5,7)よりも大きい時、この位置の中
心とする3×3の部分領域では左上から右下への斜め45
゜方向のエツジ成分が大きい事となり、イメージメモリ
(4)の(i,j)の位置へ3を書き込み、その値a6(i,
j)をイメージメモリ(5)の(i,j)の位置へ書き込
む。この処理を全ての(i,j)で行う事によりイメージ
メモリ(4)には1〜4の方向エツジが格納され、イメ
ージメモリ(5)にはエツジ成分の最も大きい方向の値
が格納される。Similarly, a 6 (i, j) in the image memory (6) is a
When it is larger than K (i, j) (K = 4,5,7), it is diagonally 45 from the upper left to the lower right in the 3 × 3 partial area which is the center of this position.
Since the edge component in the direction of ° is large, 3 is written to the position (i, j) of the image memory (4) and the value a 6 (i, j
Write j) to the location (i, j) of the image memory (5). By carrying out this processing for all (i, j), the direction edges 1 to 4 are stored in the image memory (4), and the value in the direction of the largest edge component is stored in the image memory (5). .
尚、ここでの処理は一般には(i,j)における最大値を
有するイメージメモリナンバをNとすると、N−3をイ
メージメモリ(4)の(i,j)に書き込み、その最大値
をイメージメモリ(5)の(i,j)へ書き込む事とな
る。Note that, in general, when the image memory number having the maximum value in (i, j) is N, N-3 is written in (i, j) of the image memory (4) and the maximum value is stored in the image. It will be written in (i, j) of the memory (5).
ステツプ5の説明) ここでは、これ以降の演算に必要なパラメータの設定を
行う。本実施形では、パラメータ設定用I/O16よりキー
ボード(不図示)によって基本画素ブロツクの大きさを
表わすパラメータおよび該画素ブロツクの形状を表わす
パラメータを入力する。以下の例では、基本画素ブロツ
クの大きさを表わすパラメータをその形の外接四角形の
一辺がそれぞれmo,noという形で与えられ、画素ブロツ
クの形状は第7図の方向性検出オペレータOP1〜OP4に対
応して4種与える。Explanation of Step 5) Here, the parameters necessary for the subsequent calculations are set. In the present embodiment, a parameter representing the size of the basic pixel block and a parameter representing the shape of the pixel block are input from a parameter setting I / O 16 using a keyboard (not shown). In the following example, the parameter indicating the size of the basic pixel block is given in the form of mo and no on one side of the circumscribed quadrangle of that shape, and the shape of the pixel block is determined by the direction detection operators OP1 to OP4 in FIG. Correspondingly give 4 kinds.
画素ブロツクサイズを7×7とするとPO1に対応した画
素ブロツクの形状は第8図に示すようになり、右上から
左下への方向性を示すブロツク形状となる。ここで1が
与えられている画素部がモザイクとして処理を行う画素
を示し、0の部分は処理を行わない画素を示す。If the pixel block size is 7 × 7, the shape of the pixel block corresponding to PO1 is as shown in FIG. 8, and the block shape shows the directionality from upper right to lower left. Here, the pixel portion to which 1 is given indicates a pixel to be processed as a mosaic, and the portion 0 is a pixel to be not processed.
ここでは、さらに意味のある方向性検出のための判定閾
値THをキーボードより与える。この閾値THは、前述イメ
ージメモリ(5)に格納された方向性最大値aK(i,j)
の処理に用いられる。又、この閾値以下の時に対応させ
る画素ブロツク形状を第8図と同様に入力する。この画
像ブロツク形状は方向性をあまり示さないような形状が
望ましく、その1例を第9図に示す。Here, a determination threshold TH for detecting a more meaningful directionality is given from the keyboard. This threshold TH is the maximum directivity value a K (i, j) stored in the image memory (5).
It is used for processing. Further, the pixel block shape corresponding to the case of being less than this threshold value is inputted in the same manner as in FIG. The image block shape is preferably a shape that does not show much directionality, and an example thereof is shown in FIG.
以上の各パラメータは、ステツプ3にて分割した参照画
像の領域ごとに設定する。The above parameters are set for each area of the reference image divided in step 3.
さらに、以下に発生させるモザイクの個数NSTOPを入力
する。これについてはモザイクの面積率Pを入力し、以
下の式より求めてもよい。Furthermore, input the number of mosaics NSTOP to be generated below. For this, the area ratio P of the mosaic may be input and calculated from the following formula.
但しNX,NYは入力画像のX,Y方向の画素数。 However, N X and N Y are the number of pixels in the X and Y directions of the input image.
ステツプ6の説明) ステツプ5で入力された閾値THを用いて、方向性最大値
が格納されているイメージメモリ(5)の各画素値がこ
れより大きいか否かを調べる。もし、(i,j)における
イメージメモリ(5)の値が閾値THより小さい場合に
は、イメージメモリ(4)の(i,j)位置に0の値を書
込む。つまり、この位置では特に意味のある方向性が検
出できなかったため、ステツプ5で入力された第9図に
示す画素ブロツク形状を用いて無条件に変換処理する事
になる。Description of Step 6) Using the threshold value TH input in Step 5, it is checked whether or not each pixel value of the image memory (5) in which the maximum directional value is stored is larger than this. If the value of the image memory (5) at (i, j) is smaller than the threshold value T H , the value of 0 is written to the position (i, j) of the image memory (4). In other words, since no significant directionality can be detected at this position, the pixel block shape shown in FIG. 9 input in step 5 is used to perform unconditional conversion processing.
本実施例においては、参照画像が2領域に分割されてい
るので、フラグマツプメモリ19を用いて(i,j)におけ
るフラグマツプが0つまり主被写体領域の時は閾値とし
てTH1を用い、(i,j)におけるフラグマツプが1つまり
背景領域の時は閾値としてTH2を用いる。これにより、
主被写体領域と背景領域において方向性を考慮したモザ
イク処理の割合を変化させる事ができる。In the present embodiment, since the reference image is divided into two regions, the flag map memory 19 is used, and when the flag map at (i, j) is 0, that is, the main subject region, TH1 is used as the threshold value, and (i, j When the flag map in j) is 1, that is, in the background area, TH2 is used as the threshold value. This allows
It is possible to change the ratio of the mosaic processing considering the directionality in the main subject area and the background area.
ステツプ7の説明) ステツプ7のより詳細なフローチヤートを第6図に示
す。Explanation of Step 7) A more detailed flow chart of Step 7 is shown in FIG.
ステツプ7−1の説明) ランダムに発生させた座標位置を記憶させておく為のラ
ンダム位置メモリ,イメージメモリ(5)を用意し、全
ての値を0にする。Explanation of Step 7-1) A random position memory and an image memory (5) for storing randomly generated coordinate positions are prepared, and all values are set to 0.
ステツプ7−2の説明) ランダム座標の個数を数えるカウンターcountを1にす
る。Explanation of Step 7-2) The counter count for counting the number of random coordinates is set to 1.
ステツプ7−3の説明) ランダム数を発生させて、座標位置を求めるステツプで
ある。Explanation of Step 7-3) This is a step for obtaining a coordinate position by generating a random number.
ステツプ7−4の説明) 発生させたランダム座標位置iR,TRに対応するランダム
位置メモリを1にセツトする。Explanation of Step 7-4) The random position memory corresponding to the generated random coordinate positions i R , T R is set to 1.
ステツプ7−5の説明 ランダム座標の個数を数えるカウンターcountを1だけ
カウントアツプする。Explanation of step 7-5 Count up the counter count, which counts the number of random coordinates, by one.
ステツプ7−6の説明) ランダム座標の個数を数えるカウンターcountの値が必
要な個数NSTOPに達するまで、ステツプ7−3からステ
ツプ7−5までを繰返しNSTOPに達した場合は次のステ
ツプに進む。Description of Step 7-6) Steps 7-3 to 7-5 are repeated until the value of the counter count for counting the number of random coordinates reaches the required number NSTOP, and when NSTOP is reached, the process proceeds to the next step.
ステツプ8の説明) 方向データIdirectionを0にする。これによって以下の
処理で前述ステツプ6にて閾値TH以上であった部分に関
して処理が行われることになる。Explanation of step 8) Direction data Idirection is set to 0. As a result, in the following processing, the processing is performed on the portion that is equal to or greater than the threshold value TH in step 6 described above.
ステツプ9の説明) これ以降、画素の値をシフトさせながら合成していくこ
とになるので、この為のシフト用メモリーイメージメモ
リ(6),(7),(8)の全ての値を0にする。Explanation of step 9) From this point onward, since the values of the pixels are combined while being shifted, all the values of the shift memory image memories (6), (7) and (8) for this purpose are set to 0. To do.
ステツプ10の説明) ランダム位置メモリーイメージメモリ(5)に1が立っ
ている(すなわちランダム座標位置である)座標で、か
つ方向画像データーイメージメモリ(4)がIdirection
(現在は0)と等しくなっている座標位置を選び出す。
これによって方向性を有しない、つまり方向性最大値が
THより小さいランダム座標(i,j)値が選ばれたことに
なる。そして、この選ばれた座標位置(i,j)に対し
て、各入力画像データaK(i,j)(K=1,2,3)の値を各
シフト用メモリーaK(i,j)(K=6,7,8)に移す。Explanation of Step 10) Random position memory The image memory (5) has a position of 1 (that is, a random coordinate position), and the direction image data image memory (4) is Idirection.
Select the coordinate position that is equal to (currently 0).
As a result, there is no directivity, that is, the maximum directivity is
A random coordinate (i, j) value smaller than TH is selected. Then, for this selected coordinate position (i, j), the value of each input image data a K (i, j) (K = 1,2,3) is assigned to each shift memory a K (i, j). ) (K = 6,7,8).
ステツプ11の説明) 方向データがIdirection(現在は0)に対応する入力さ
れたモザイク画素パターンを先のステツプ5において作
られたフアイルの中から読み出す。第9図に7×7の方
向のモザイク画素パターンの例を示す。この例で、1と
なっている点がモザイクとして処理を行う画素、0とな
っている点が処理を行わず元の色が残る画素を示してい
る。Description of Step 11) The input mosaic pixel pattern whose direction data corresponds to Idirection (currently 0) is read out from the file created in the previous Step 5. FIG. 9 shows an example of a mosaic pixel pattern in the 7 × 7 direction. In this example, the points of 1 indicate pixels to be processed as a mosaic, and the points of 0 indicate pixels to which the original color remains without being processed.
ステツプ12の説明) モザイク画像パターンの処理を行う画素位置1画素ずつ
にシフト用メモリを動かし、各画素位置でシフト用メモ
リに収納されている色情報を、その位置に対応する入力
画像メモリに代入する。第9図の7×7のモザイク画像
パターンを例に、第10図を用いてもう少し詳細に説明す
る。最初にシフト用メモリが保持している色情報は、モ
ザイク画像パターンの中心位置(0の画素位置)の色情
報である。次に、このシフト用メモリをモザイク画像パ
ターンの第1の画素位置(1の画素位置)になる様に上
へ3画素動かす。この位置で、シフト用メモリに収納さ
れている色を、入力画像データーメモリーイメージメモ
リ(1),(2),(3)に移す。これによって、中心
位置(0の画素)の色が1の画素位置にも配置されたこ
とになる。次にこのシフト用メモリを2つの画素位置ま
で、すなわち左へ1画素下へ1画素分動かす。そして、
この位置でシフト用メモリに収納されている色を入力画
像データーメモリに移す。これによって、2の位置にも
中心位置(0の画素)の色が移されたことになる。これ
を第10図の22まで繰返すと、モザイク画像パターンで指
定された全ての画素に中心画素の色が配置されたことに
なる。Explanation of step 12) The shift memory is moved pixel by pixel at each pixel position for processing the mosaic image pattern, and the color information stored in the shift memory at each pixel position is assigned to the input image memory corresponding to that position. To do. The 7 × 7 mosaic image pattern shown in FIG. 9 will be taken as an example and described in more detail with reference to FIG. The color information initially stored in the shift memory is the color information at the center position (pixel position of 0) of the mosaic image pattern. Next, the shift memory is moved upward by 3 pixels so as to be at the first pixel position (pixel position of 1) of the mosaic image pattern. At this position, the color stored in the shift memory is transferred to the input image data memory image memory (1), (2), (3). As a result, the color at the center position (0 pixel) is also arranged at the 1 pixel position. Next, the shift memory is moved to two pixel positions, that is, one pixel to the left and one pixel below. And
At this position, the color stored in the shift memory is transferred to the input image data memory. As a result, the color at the center position (0 pixel) is also transferred to the 2 position. If this is repeated up to 22 in FIG. 10, it means that the color of the central pixel is arranged in all the pixels designated by the mosaic image pattern.
ステツプ13の説明) 方向データIdirectionに1を加える。これによってIdir
ectionは1となる。Explanation of step 13) 1 is added to the direction data Idirection. This makes Idir
ection becomes 1.
ステツプ14の説明) ステツプ9にもどって、方向データーが1の場合、すな
わちエツジ成分が右上から左下斜め方向であり、第8図
に相当するモザイク形状の処理を行う。Description of Step 14) Returning to Step 9, when the direction data is 1, that is, the edge component is in the diagonal direction from the upper right to the lower left, the mosaic shape processing corresponding to FIG. 8 is performed.
以上の処理を方向データーが4を越すまで繰返して、こ
の処理が完了する。The above processing is repeated until the direction data exceeds 4, and this processing is completed.
先の第1実施例では、エツジ検出オペレータとして簡単
な4種類のコンボルーシヨンオペレータを考えたが、エ
ツジ検出オペレータはこれに限られるものではなく、例
えば第11図に示す様なオペレータも考えられる。これら
は入力画像の(i,j)を中心とする3×3の領域内の各
画素値との相関をとり、最大相関を示すオペレータを見
つける事により(i,j)画像位置近傍のエツジ方向性を
検出できる。In the first embodiment described above, four types of simple convolution operators were considered as the edge detection operator, but the edge detection operator is not limited to this and, for example, an operator as shown in FIG. 11 is also conceivable. . These are correlated with each pixel value in the 3 × 3 area centered on (i, j) of the input image, and the operator showing the maximum correlation is found to find the edge direction near the (i, j) image position. Sex can be detected.
この場合にはモザイクの形状としても、これら各オペレ
ータに対応する数だけ入力しておく事が望ましい。In this case, it is desirable to input the number corresponding to each of these operators even for the shape of the mosaic.
さらに、先の第1実施例において、主被写体領域を示す
第1領域におけるモザイク形状の大きさを小さく、背景
領域を示す第2領域におけるモザイク形状を大きくして
おけば、主被写体領域が背景領域に比べてより細かな構
造で再現される事になり、好ましい。Furthermore, in the first embodiment described above, if the size of the mosaic shape in the first area indicating the main subject area is small and the mosaic shape in the second area indicating the background area is large, the main subject area becomes the background area. This is preferable because it will be reproduced with a finer structure compared to.
さらに、主被写体領域での最大方向性検出値が閾値以下
の場合に対応させるモザイク形状パターンと、背景領域
でのそれとを異ならせておく異により、やはり主被写体
領域と背景領域とがモザイクの方向性からも判別できる
事になり主題をはっきりさせる効果がある。Furthermore, due to the difference between the mosaic shape pattern corresponding to the case where the maximum directionality detection value in the main subject area is less than or equal to the threshold and the one in the background area, the main subject area and the background area still have a mosaic direction. It can also be distinguished from sex, which has the effect of clarifying the subject.
また、最大方向検出値が閾値以下である場合に対応させ
る画素形状パターンを第9図の様に特別に用意しない
で、OP1〜OP4に対応する画素形状パターンの中から1つ
をランダムに選択し、それを用いても良い。Also, without specially preparing a pixel shape pattern corresponding to the case where the maximum direction detection value is equal to or less than the threshold value as in FIG. 9, one is randomly selected from the pixel shape patterns corresponding to OP1 to OP4. , You may use it.
この場合にはステツプ6で最大検出方向が閾値以下の場
合に、イメージメモリ(i,j)に0の代わりに上記選択
した画素形状パターンを示す数字を書き込み、ステツプ
8でのIdirectionを1にセツトすれば良い。In this case, if the maximum detection direction is less than or equal to the threshold value in step 6, the number indicating the selected pixel shape pattern is written in the image memory (i, j) instead of 0, and the I direction in step 8 is set to 1. Just do it.
尚、前述の実施例では領域を2つに分割する場合につい
て説明したが、これはそれ以上の複数に分け、それぞれ
の領域で処理を異ならしても良い。In the above embodiment, the case where the area is divided into two has been described, but this may be divided into a plurality of areas and the processing may be different in each area.
以上の様に本実施例に依れば、従来の規則正し矩形のモ
ザイク処理に比べ離散度が高く、入力画像の有するエツ
ジ方向性を生かしたモザイク処理画像が可能となり、さ
らに主題部を強調したモザイク処理が可能となり、より
絵画的画像を実現できる。As described above, according to the present embodiment, the degree of discreteness is high as compared with the conventional regular rectangular mosaic processing, and a mosaic processed image that makes use of the edge directionality of the input image is possible. Processing becomes possible and more pictorial images can be realized.
又、従来の銀塩システムで行われていた「暗室処理」や
印刷システムの電子製版では無かった新しい画像を提供
できるとともに作画の自由度を増す。In addition, it can provide new images that were not available in the "dark room processing" that was performed by conventional silver halide systems and electronic plate making of printing systems, and also increased the degree of freedom in drawing.
又、処理に必要なパラメータの代表値をあらかじめセツ
トしておけば、画像処理のプロセスを無人化できるので
専門家を必要とせず、ラボ的な普及が望める。尚、本実
施例では画像処理部に画像専用処理装置を用いたが、ミ
ニコン等の汎用コンピユーターを用いても同じ効果が得
られることは言うまでもない。Further, if the representative values of the parameters necessary for the processing are set in advance, the image processing process can be unmanned, so no specialist is required, and it is expected to be popularized in a laboratory. Although the image processing unit is used as the image processing unit in the present embodiment, it is needless to say that the same effect can be obtained by using a general-purpose computer such as a minicomputer.
また本実施形では、フイルムより画像入力したが、スチ
ールビデオカメラ,ビデオカメラ等から被写体から直接
画像データを取りこんでも又磁気フロツピーデイスク,
磁気テープ,光デイスク,バブルメモリー等の記録媒体
を介して画像データを入力しても同様の効果は得られ
る。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,
The same effect can be obtained by inputting image data via a recording medium such as a magnetic tape, an optical disk, or a bubble memory.
以上の如く本発明に依れば、従来の規則正しいモザイク
処理に比べクリエイテイブイメージを表現できると共
に、原画像情報の特徴を生かしたモザイク処理が可能と
なる。As described above, according to the present invention, a creative image can be expressed as compared with the conventional regular mosaic processing, and the mosaic processing that makes the best use of the characteristics of the original image information can be performed.
第1図はカラースキヤナに本発明を用いた時の濃度信号
の流れの1例を示すブロツク図、 第2図は第1図の画像処理部の1部をより詳しく示すブ
ロツク図、 第3図(a),(b)は第4図の説明で使用したルツク
アツプテーブルの状態を示す図、 第4図(a),(b)は実施例のフローチヤート図、 第5図は第4図の1部詳細を示すフローチヤート図、 第6図は第4図の1部詳細を示すフローチヤート図、 第7図はエツジ方向検出用オペレータの一例図、 第8図,第9図はモザイク形状の一例図、 第10図は画素シフトによるモザイク処理を説明する図、 第11図は第2のエツジ方向検出オペレータを示す図であ
る。 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. 4A and 4B are diagrams showing the state of the look-up table used in the description of FIG. 4, FIGS. 4A and 4B are flow charts of the embodiment, and FIG. 5 is that of FIG. FIG. 6 is a flow chart showing details of a part, FIG. 6 is a flow chart showing details of a part of FIG. 4, FIG. 7 is an example of an operator for detecting an edge direction, and FIGS. 8 and 9 are mosaic shapes. An example diagram, FIG. 10 is a diagram for explaining a mosaic process by pixel shift, and FIG. 11 is a diagram showing a second edge direction detection operator. 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 to 27 …… Image memory 28 to 35 …… Lookup table 36 …… Image data I / O
Claims (2)
け、前記区分域内の代表値により変換処理する画像処理
において、画像のエツジ方向を検出し、前記エツジ方向
の検出結果に応じて前記区分域内での変換処理を変化さ
せる事を特徴とする画像処理方法。1. An image processing method in which an original image is divided into a plurality of divided areas and conversion processing is performed using a representative value in the divided areas, an edge direction of the image is detected, and the edge direction of the image is detected. An image processing method characterized by changing conversion processing within a division area.
像を複数の領域に分割し、それぞれの領域に応じて前記
区分域の形状を変化させる事を特徴とする画像処理方
法。2. The image processing method according to claim 1, wherein the original image is divided into a plurality of areas, and the shape of the divided area is changed according to each area.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62080487A JPH0679337B2 (en) | 1987-04-01 | 1987-04-01 | Image processing method |
| US07/174,979 US5164825A (en) | 1987-03-30 | 1988-03-29 | Image processing method and apparatus for mosaic or similar processing therefor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62080487A JPH0679337B2 (en) | 1987-04-01 | 1987-04-01 | Image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63245778A JPS63245778A (en) | 1988-10-12 |
| JPH0679337B2 true JPH0679337B2 (en) | 1994-10-05 |
Family
ID=13719648
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62080487A Expired - Fee Related JPH0679337B2 (en) | 1987-03-30 | 1987-04-01 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0679337B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5413177Y2 (en) * | 1975-06-24 | 1979-06-06 | ||
| JPS5621931U (en) * | 1979-07-30 | 1981-02-26 |
-
1987
- 1987-04-01 JP JP62080487A patent/JPH0679337B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63245778A (en) | 1988-10-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5164825A (en) | Image processing method and apparatus for mosaic or similar processing therefor | |
| US4953227A (en) | Image mosaic-processing method and apparatus | |
| US5343220A (en) | Force monitor of an electronic paint brush apparatus | |
| JPH10187966A (en) | Image filtering method and apparatus | |
| JP2001313844A (en) | Method and device for executing local color correction | |
| CN110866965A (en) | Mapping drawing method and device for three-dimensional model | |
| US6577320B1 (en) | Method and apparatus for processing multiple types of pixel component representations including processes of premultiplication, postmultiplication, and colorkeying/chromakeying | |
| GB2233856A (en) | Electronic image processing | |
| JPH0679337B2 (en) | Image processing method | |
| US6211885B1 (en) | Apparatus for outputting an image in which data of points on texture pattern are mapped to data of dots on display plane | |
| JP2502284B2 (en) | Image processing method | |
| JPH0679336B2 (en) | Image processing method | |
| JP2941829B2 (en) | Image processing method | |
| JPS62198975A (en) | Image processing method | |
| JP2844573B2 (en) | Image processing method | |
| JP2740517B2 (en) | Image processing device | |
| JPS62179060A (en) | Image processing method | |
| JPH01161580A (en) | Picture processor | |
| JP2740516B2 (en) | Image processing device | |
| JPH0695339B2 (en) | Image processing method | |
| JPS6232578A (en) | Image processing method | |
| JP2685458B2 (en) | Image processing method | |
| JPH0620038A (en) | Image processor | |
| JP2779162B2 (en) | Image processing method | |
| JP2714027B2 (en) | Color image processing apparatus and color image processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |