JPH0258180A - Picture processing method - Google Patents

Picture processing method

Info

Publication number
JPH0258180A
JPH0258180A JP21013188A JP21013188A JPH0258180A JP H0258180 A JPH0258180 A JP H0258180A JP 21013188 A JP21013188 A JP 21013188A JP 21013188 A JP21013188 A JP 21013188A JP H0258180 A JPH0258180 A JP H0258180A
Authority
JP
Japan
Prior art keywords
processing
mask
area
image
pixel
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.)
Pending
Application number
JP21013188A
Other languages
Japanese (ja)
Inventor
Kaoru Eguchi
江口 かおる
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP21013188A priority Critical patent/JPH0258180A/en
Publication of JPH0258180A publication Critical patent/JPH0258180A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To freely and easily set an area reflecting the spade filter processing result by masking the processing result with a mask whose shape is freely set by an operator. CONSTITUTION:The mean value of each picture element and picture elements around it in a processing object area is found and the picture element value of the picture element is substituted with the mean value, thereby performing the space filter processing. The mask setting step where the mask having a desired shape is set by operator's instruction and the mask processing step where the space filter processing result is masked by the set mask are provided. Thus, the shape of the area reflecting the processing result is freely and easily designated and set.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第4図) 発明が解決しようとする課題 課題を解決するための手段(第1図) 作用 実施例 (a)一実施例の説明(第2図、第3図)(b)他の実
施例の説明 発明の効果 〔概要〕 原画像を空間フィルタ処理する画像処理方法に関し、 処理結果反映領域の形状を自由に容易に設定することを
目的とし、 処理対象領域の個々の画素に対し、その周囲の画素との
平均値をとり、該画素の画素値を該平均値に置き代える
空間フィルタ処理を行う画像処理方法において、オペレ
ータの指示により、所望の形状のマスクを設定するマス
ク設定ステップと、該設定されたマスクにより該空間フ
ィルタ処理の結果をマスクするマスク処理ステップとを
設けた。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figure 4) Means for solving the problem to be solved by the invention (Figure 1) Working example (a) 1 Description of embodiments (Figs. 2 and 3) (b) Description of other embodiments Effects of the invention [Summary] Regarding an image processing method in which an original image is subjected to spatial filter processing, the shape of the processing result reflection area can be freely and easily changed. In an image processing method that performs spatial filtering for each pixel in a processing target area, taking the average value of the surrounding pixels and replacing the pixel value of the pixel with the average value. , a mask setting step for setting a mask of a desired shape in response to an operator's instruction, and a mask processing step for masking the result of the spatial filter processing using the set mask.

れている。It is.

〔産業上の利用分野〕[Industrial application field]

本発明は、原画像を空間フィルタ処理する画像処理方法
に関する。
The present invention relates to an image processing method that performs spatial filter processing on an original image.

グラフィック処理の進展に伴い、種々の画像処理が求め
られている。
With the advancement of graphic processing, various types of image processing are required.

例えば、画像のエアブラシ処理というものは、スプレー
で絵を画いたように、画像の輪郭部をぼやかせたり、に
じませたりする処理であり、一般に空間フィルタ処理が
用いられる。
For example, airbrush processing of an image is a process that blurs or blurs the outline of the image, as if it were painted with a spray paint, and spatial filter processing is generally used.

空間フィルタ処理は、処理要求がなされた座標が処理可
能領域であれば、その座標を中心に、処理対象領域とな
るnXnの個々の画素値を、そのまわりのmXmで平均
値をとり、平均値で処理対象領域の画像を処理サイズn
Xnの矩形分置き代えるものである。
In spatial filter processing, if the coordinates for which a processing request is made are in a processable area, the individual pixel values of nXn, which is the processing target area, are averaged in mXm around the coordinates, and the average value is calculated. Process the image of the processing target area with the processing size n
This is to replace Xn by a rectangle.

このような空間フィルタ処理によって画像の輪郭部を繰
作することができるが、処理結果を矩形でなく、他の任
意の形状で反映することが求めら〔従来の技術〕 第4図は従来技術の説明図である。
Although it is possible to manipulate the contours of an image through such spatial filter processing, it is required to reflect the processing results in any other arbitrary shape rather than a rectangle. [Prior art] Figure 4 shows a conventional technology. FIG.

第4図(A)に示すように、入力手段としてタブレット
(座標人力装置)■がホストコンピュタ2に接続され、
ホストコンピュータ2に画像制御装置3と画像表示装置
5が接続された画像処理システムにおいては、画像表示
装置5内のメモリ5aに1iii面分の画像情報が格納
されており、表示されている。
As shown in FIG. 4(A), a tablet (coordinate human power device) ■ is connected to the host computer 2 as an input means,
In an image processing system in which an image control device 3 and an image display device 5 are connected to a host computer 2, image information for 1iii pages is stored in a memory 5a in the image display device 5 and displayed.

オペレータは、画像表示装置5の画面上の画像を見なが
ら、タブレット1からエアブラシ処理情報(処理中心座
標、処理対象領域、空間フィルタの領域)を、ホストコ
ンピュータ2に人カスる。
The operator inputs airbrush processing information (processing center coordinates, processing target area, spatial filter area) to the host computer 2 from the tablet 1 while viewing the image on the screen of the image display device 5 .

ホストコンピュータ2は、これにより画像制御装置3に
制御を渡し、画像制御装置3では、予め画面に対して設
定されたマスク情報に基づいて、処理対象画像が処理可
能領域か処理不可能領域かを判定する。
The host computer 2 thereby passes control to the image control device 3, and the image control device 3 determines whether the image to be processed is a processable area or an unprocessable area based on mask information set for the screen in advance. judge.

人力された画素が処理可能領域内であるなら、演算処理
部4は、処理対象領域nXnの画素と、この画素をそれ
ぞれ中心とする空間フィルタの領域m (=3)Xm 
(=3)の画素を、メモリ5aから読込む。
If the manually input pixel is within the processable area, the arithmetic processing unit 4 processes the pixel in the processing target area nXn and the area m (=3)Xm of the spatial filter centered on this pixel.
(=3) pixels are read from the memory 5a.

演算処理部4では、処理対象領域の個々の画素を中心と
する3×3の画素値aijのうち、処理可能領域内のも
のに対してのみ、下記の空間フィルタ処理を行う。
The arithmetic processing unit 4 performs the following spatial filtering process only on the 3×3 pixel values aij centered on each pixel in the processing target area, which are within the processable area.

即ち、第4図(B)、(C)のように、3×3の画素の
平均値をとり、中心画素の画素値として置き代える。
That is, as shown in FIGS. 4(B) and 4(C), the average value of 3×3 pixels is taken and replaced as the pixel value of the center pixel.

これを全ての処理可能領域内の画素について行い、画像
表示装置5で表示すれば、処理要求がなされた画素の周
縁がぼかされた(エアブラシ処理のきいた)画像が得ら
れる。
If this is done for all pixels in the processable area and displayed on the image display device 5, an image in which the periphery of the pixel for which a processing request has been made is blurred (airbrush processed) is obtained.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このような従来の空間フィルタによる画像処理において
は、処理対象領域は処理結果反映領域と同一サイズであ
った。
In such conventional image processing using a spatial filter, the processing target area has the same size as the processing result reflection area.

即ち、処理対象領域は矩形で指定されるものであり、こ
の処理対象領域と処理結果反映領域とが同一であるため
に、処理結果反映領域も、矩形以外の形をとることがで
きない。
That is, the processing target area is specified as a rectangle, and since the processing target area and the processing result reflection area are the same, the processing result reflection area cannot take any shape other than a rectangle.

ところで、画像処理の目的に応じて、処理対象領域の全
ての処理結果を得たい場合ばかりでなく、処理対象領域
の特定の領域の処理結果を得たい場合がある。
Incidentally, depending on the purpose of image processing, there are cases in which it is desired to obtain not only processing results for all of the processing target area, but also processing results for a specific area in the processing target area.

例えば、グラフィック処理では、矩形の処理対象領域を
指定し、その内の特定の像、形状等の空間フィルタ処理
結果を得られれば、極めて多彩な画像処理が可能となる
For example, in graphic processing, if a rectangular processing target area is specified and spatial filter processing results of a specific image, shape, etc. within the area can be obtained, an extremely wide variety of image processing becomes possible.

従来は、処理結果反映領域が自由な形状に出来ないとい
う問題があった。
Conventionally, there has been a problem that the processing result reflection area cannot be formed into a free shape.

従って、本発明は、処理結果反映領域の形状を自由に容
易に設定することのできる画像処理方法を提供すること
を目的とする。
Therefore, an object of the present invention is to provide an image processing method that allows the shape of a processing result reflection area to be freely and easily set.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理図である。 FIG. 1 is a diagram showing the principle of the present invention.

本発明は、第1図に示すように、処理対象領域の個々の
画素に対し、その周囲の画素との平均値をとり、該画素
の画素値を該平均値に置き代える空間フィルタ処理を行
う画像処理方法において、オペレータの指示により、所
望の形状のマスクを設定するマスク設定ステップと、該
設定されたマスクにより該空間フィルタ処理の結果をマ
スクするマスク処理ステップとを設けたものである。
As shown in FIG. 1, the present invention performs spatial filter processing for each pixel in a processing target area by taking the average value of its surrounding pixels and replacing the pixel value of the pixel with the average value. The image processing method includes a mask setting step of setting a mask of a desired shape according to an operator's instruction, and a mask processing step of masking the result of the spatial filtering process using the set mask.

〔作用〕[Effect]

本発明では、処理サイズと同じ大きさのマスクを用意し
、オペレータが自由にマスクの形状を設定できるように
し、この設定したマスクと空間フィルタ処理結果をマス
クすることにより、処理結果反映領域の形状を自由に且
つ容易に指定して設定できるようにしたものである。
In the present invention, a mask of the same size as the processing size is prepared, the operator can freely set the shape of the mask, and by masking the set mask and the spatial filter processing results, the shape of the processing result reflection area is can be freely and easily specified and set.

〔実施例〕〔Example〕

(a)  一実施例の説明 第2図は本発明の詳細な説明図である。 (a) Description of one embodiment FIG. 2 is a detailed explanatory diagram of the present invention.

第2図(A)において、第1図及び第4図で示したもの
と同一のものは同一の記号で示してあり、4aはマイク
ロプロセッサ(MPU)であり、画像制御装置3の全体
の制御を行うとともに、画像表示装置5との間でデータ
のやりとりを行うものである。
In FIG. 2(A), the same components as those shown in FIGS. 1 and 4 are indicated by the same symbols, and 4a is a microprocessor (MPU) that controls the entire image control device 3. It also exchanges data with the image display device 5.

尚、演算処理部4は、デジタルシグナルプロセッサ(D
SP)で構成され、空間フィルタ処理とマスク処理を実
行する。
Note that the arithmetic processing unit 4 is a digital signal processor (D
SP) and performs spatial filter processing and mask processing.

第3図は本発明の一実施例処理フロー図である。FIG. 3 is a processing flow diagram of one embodiment of the present invention.

■ この実施例では、先ずタブレット1よりマスク作成
コマンドを発行し、マスク作成を行う。
(2) In this embodiment, first, a mask creation command is issued from the tablet 1 to create a mask.

卯ら、タブレット1からマスク作成コマンド、マスク領
域をホストコンピュータ2に入力すると、ホストコンピ
ュータ2はMPU4 aに指示し、画面表示装置5の画
面にマスク領域を表示する。
When a mask creation command and a mask area are input from the tablet 1 to the host computer 2, the host computer 2 instructs the MPU 4a to display the mask area on the screen of the screen display device 5.

オペレータは、画面を見ながら、マスク領域の各画素に
“1” (書込み可)、“0パ (書込み不可)を、タ
ブレット1より入力し埋め込み、マスクを完成する。
While looking at the screen, the operator inputs and embeds "1" (writable) and "0 (writable)" into each pixel of the mask area using the tablet 1, thereby completing the mask.

このマスクは、演算制御装置3内の図示しないメモリに
格納される。
This mask is stored in a memory (not shown) within the arithmetic and control unit 3.

第2図(C)は、この作成したマスクの一例を示し、Y
の字の形状の領域が書込み可と設定したものである。
FIG. 2(C) shows an example of this created mask, and Y
The area shaped like a square is set to be writable.

更に、タブレット1より処理要求画素座標、処理対象領
域nXn及び平均値対象画素処理サイズmXm (3x
3)を人力する。
Furthermore, from the tablet 1, processing requested pixel coordinates, processing target area nXn, and average target pixel processing size mXm (3x
3) is done manually.

これにより、ホストコンピュータ2より画像制御装置3
に制御が渡される。
This allows the image control device 3 to be accessed from the host computer 2.
control is passed to

画像制御装置3では、MPU4aの制御の元に、演算処
理部(以下DSPという)4に、画像表示装置5のメモ
リ5aから、指定された画素を中心とし、処理対象領域
nXnの画素と、この画素をそれぞれ中心とする3×3
の範囲の画素を読み込む。
In the image control device 3, under the control of the MPU 4a, the arithmetic processing unit (hereinafter referred to as DSP) 4 reads from the memory 5a of the image display device 5 the pixels in the processing target area n 3x3 with each pixel at the center
Read pixels in the range.

■ DSP4では、前述の式によって、3×3の中心と
なる画素の画素値りを演算する。
(2) The DSP 4 calculates the pixel value of the center pixel of 3×3 using the above-mentioned formula.

■ 次に、DSP4は、図示しないメモリに格納したマ
スクの対応画素の内容を読み出し、内容(指定値)が“
1°゛なら、演算結果をメモリのワクエリアにライトす
る。
■ Next, the DSP 4 reads the contents of the corresponding pixels of the mask stored in the memory (not shown), and the contents (specified value) are “
If it is 1°, write the calculation result to the memory work area.

更に、処理対象領域、マスク領域、平均対象領域のそれ
ぞれのアドレスを、ラスタースキャン方向に更新する。
Furthermore, the respective addresses of the processing target area, mask area, and averaging target area are updated in the raster scan direction.

■ 次に、DSP4は、処理対象領域のアドレスから処
理対象領域の全演算は終了したかを判定し、終了してい
なければ、ステップ■に戻る。
(2) Next, the DSP 4 determines from the address of the processing target area whether all calculations in the processing target area have been completed, and if not, returning to step (2).

■ このようにして、処理対象領域の全演算が終了する
と、処理対象領域は、第2図(B)の如くなる。
(2) When all calculations on the processing target area are completed in this way, the processing target area becomes as shown in FIG. 2(B).

第2図(b)では、■は処理要求座標に対応する画素で
あり、逆三角形「」は処理対象領域n×nであり、二重
丸「◎Jは平均を求める時の1つの中心であり、バラ「
×」は「◎」を中心に平均を求める場合に対象となる領
域mXmであり、丸印「○」は処理対象領域を処理する
にあたり参照する領域である。
In Fig. 2(b), ■ is a pixel corresponding to the processing request coordinates, an inverted triangle "" is the processing target area n x n, and a double circle "◎J" is one center when calculating the average. Yes, rose
×” is the target region mXm when calculating the average centering on “◎”, and the circle mark “○” is the region to be referred to when processing the processing target region.

点「・」は■からの処理依頼に関連しない領域であり、
黒丸「・」は処理反映領域(マスク結果)である。
The dot "・" is an area that is not related to the processing request from ■,
The black circle "." is the processing reflection area (mask result).

従って、メモリのワークエリアは、nXnの領域に対し
、第2図(B)のマスクでマスクされた処理結果が書込
まれていることになる。
Therefore, in the work area of the memory, the processing results masked by the mask shown in FIG. 2(B) are written in an area of nXn.

この演算終了後、DSP4からMPU4aに制御が渡さ
れる。
After this calculation is completed, control is passed from the DSP 4 to the MPU 4a.

MPU4aは、このメモリのワークエリアのnXnの内
容を画像表示装置5のメモリ5aに渡すことによって、
画面に表示され、処理要求がなされた画素の周縁が、指
定された形状にぼかしのきいた(エアブラシ処理のきい
た)画像が得られる。
By passing the contents of nXn in the work area of this memory to the memory 5a of the image display device 5, the MPU 4a
An image is obtained in which the periphery of the pixel displayed on the screen and for which a processing request has been made is blurred (airbrushed) into the specified shape.

又、このマスクは、タブレフト1であるポインティング
デバイスの指示した座標を中心に働くので、ポインティ
ングデバイスに追従し、続く処理要求に対しても有効と
なる。
Furthermore, since this mask operates around the coordinates specified by the pointing device, which is the tablet left 1, it follows the pointing device and is effective for subsequent processing requests.

このようにして、空間フィルタに形状マスクを持たせ、
空間フィルタ処理の結果を形状マスクでマスク処理する
ことにより、オペレータの望む、自由な形状で空間フィ
ルタ処理が行え、より広い汎用性のある画像処理が可能
となる。
In this way, the spatial filter has a shape mask,
By masking the results of spatial filtering using a shape mask, spatial filtering can be performed in any shape desired by the operator, making it possible to perform image processing with wider versatility.

(b)  他の実施例の説明 上述の実施例では、空間フィルタを3×3で構成したが
、他の大きさのものであってもよく、マスクの形状もY
字に限らず、丸等種々のものを適用できる。
(b) Description of other embodiments In the embodiments described above, the spatial filter was constructed of 3×3, but it may be of other sizes, and the shape of the mask may also be Y.
Not limited to letters, various shapes such as circles can be applied.

以上本発明を実施例により説明したが、本発明は本発明
の主旨に従い種々の変形が可能であり、本発明からこれ
らを排除するものではない。
Although the present invention has been described above using examples, the present invention can be modified in various ways according to the gist of the present invention, and these are not excluded from the present invention.

〔発明の効果〕〔Effect of the invention〕

以上説明した様に、本発明によれば、形状マスクを用意
し、オペレータが自由にマスクの形状を設定できるよう
にし、このマスクで空間フィルタ処理結果をマスクする
ので、処理結果反映領域を自由に且つ容易に設定できる
という効果を奏し、画像処理の多彩化に寄与することが
大きい。
As explained above, according to the present invention, a shape mask is prepared, the operator can freely set the shape of the mask, and the spatial filter processing results are masked with this mask, so the processing result reflection area can be freely set. Moreover, it has the effect of being easy to set, and greatly contributes to the diversification of image processing.

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

第1図は本発明の原理図、 第2図は本発明の詳細な説明図、 第3図は本発明の一実施例処理フロー図、第4図は従来
技術の説明図である。 図中、■−タブレント、 2−ホストコンピュータ、 3−画像制御装置、 4−画像表示装置。
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a detailed explanatory diagram of the present invention, FIG. 3 is a processing flow diagram of an embodiment of the present invention, and FIG. 4 is an explanatory diagram of the prior art. In the figure, ■-tablet, 2-host computer, 3-image control device, 4-image display device.

Claims (1)

【特許請求の範囲】[Claims] (1)処理対象領域の個々の画素に対し、その周囲の画
素との平均値をとり、該画素の画素値を該平均値に置き
代える空間フィルタ処理を行う画像処理方法において、 オペレータの指示により、所望の形状のマスクを設定す
るマスク設定ステップと、 該設定されたマスクにより該空間フィルタ処理の結果を
マスクするマスク処理ステップとを設けたことを 特徴とする画像処理方法。
(1) In an image processing method that performs spatial filter processing in which each pixel in a processing target area is averaged with its surrounding pixels, and the pixel value of the pixel is replaced with the average value, according to an operator's instructions, An image processing method comprising: a mask setting step of setting a mask having a desired shape; and a mask processing step of masking the result of the spatial filtering process using the set mask.
JP21013188A 1988-08-24 1988-08-24 Picture processing method Pending JPH0258180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21013188A JPH0258180A (en) 1988-08-24 1988-08-24 Picture processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21013188A JPH0258180A (en) 1988-08-24 1988-08-24 Picture processing method

Publications (1)

Publication Number Publication Date
JPH0258180A true JPH0258180A (en) 1990-02-27

Family

ID=16584302

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21013188A Pending JPH0258180A (en) 1988-08-24 1988-08-24 Picture processing method

Country Status (1)

Country Link
JP (1) JPH0258180A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5177598A (en) * 1990-06-30 1993-01-05 Samsung Electronics Co., Ltd. Multipage display apparatus of teletext receiving system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5177598A (en) * 1990-06-30 1993-01-05 Samsung Electronics Co., Ltd. Multipage display apparatus of teletext receiving system

Similar Documents

Publication Publication Date Title
CA2050652C (en) Dual programmable block texturing and complex clipping in a graphics rendering processor
JPH0258180A (en) Picture processing method
JP4760550B2 (en) Image conversion apparatus and image conversion program
JP3133093B2 (en) Electronic image correction method and apparatus
JPS6339947B2 (en)
CA2155177C (en) General pattern blit source type
JPH0256678B2 (en)
JPH06186948A (en) Image display method
JPH05257632A (en) Multiwindow display processing system
JPH0394389A (en) Method for displaying three-dimensional graphic rotation and graphic processor
JPS63141182A (en) Deciding system for graphic passing through specified area
JPH03202970A (en) Graphic processing method
JP2988936B2 (en) 3D graphics processing unit
JPS6368985A (en) Face painting system
JPS62182977A (en) Soft focus system for image data
JPH05205070A (en) Graphic plotting method
JPS63140383A (en) Continuous segment drawing method
JPH0683918A (en) Device for dividing and displaying image
JPH01232482A (en) Airbrush processing system
JPH04342084A (en) Method and device for plotting curve
JPS63241625A (en) Line drawing input device
JPS63206878A (en) Image processor
JPH05250455A (en) Graphic containment deciding system in graphic display device
JPH02232784A (en) Clipping method and graphic system and work station
JPH0664596B2 (en) Image processing device