Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3476641B2 - Image processing method and image processing apparatus - Google Patents
[go: Go Back, main page]

JP3476641B2 - Image processing method and image processing apparatus - Google Patents

Image processing method and image processing apparatus

Info

Publication number
JP3476641B2
JP3476641B2 JP00898397A JP898397A JP3476641B2 JP 3476641 B2 JP3476641 B2 JP 3476641B2 JP 00898397 A JP00898397 A JP 00898397A JP 898397 A JP898397 A JP 898397A JP 3476641 B2 JP3476641 B2 JP 3476641B2
Authority
JP
Japan
Prior art keywords
pixel
feature amount
interest
pixels
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP00898397A
Other languages
Japanese (ja)
Other versions
JPH10208038A (en
Inventor
晴信 森
督士 天野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP00898397A priority Critical patent/JP3476641B2/en
Publication of JPH10208038A publication Critical patent/JPH10208038A/en
Application granted granted Critical
Publication of JP3476641B2 publication Critical patent/JP3476641B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、入力画像を平滑
化する画像処理装置に関し、特に平滑化処理を利用して
入力画像の画質を変換しユーザーのイメージに合った画
像を創造できる画像処理方法および画像処理装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for smoothing an input image, and more particularly to an image processing method capable of converting an image quality of an input image by using smoothing processing and creating an image suitable for a user's image. And an image processing apparatus.

【0002】[0002]

【従来の技術】パーソナルコンピュータ上のアプリケー
ションソフトウェアあるいはワードプロセッサ装置など
の機能として、写真などの画像をカラースキャナ等の入
力装置を用いて入力し、その画像に様々な画像処理を施
して画質を変換することにより、入力画像から個々のユ
ーザーが自分のイメージに合った画像を創造することの
できる機能が実現されている。
2. Description of the Related Art As a function of application software or a word processor on a personal computer, an image such as a photograph is input using an input device such as a color scanner, and the image is subjected to various image processing to convert the image quality. This realizes a function that allows each user to create an image that matches his or her own image from the input image.

【0003】それらの画像処理技術の1つとして、注目
画素の輝度を、ある範囲の近傍画素の輝度との平均値に
置き換える平滑化処理が用いられており、処理の結果と
して画像が少しぼやけたソフトなイメージの画像を得る
ことができる。
As one of those image processing techniques, a smoothing process is used in which the brightness of a pixel of interest is replaced with an average value of the brightness of neighboring pixels in a certain range. As a result of the process, the image is slightly blurred. You can get a soft image.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、画面全
体に同じ処理が施された場合、例えば輝度の高い部分と
低い部分が隣接している領域においては、輝度の高い部
分は隣接した輝度の低い部分との平均値をとることによ
り輝度が下落し、逆に輝度の低い部分は隣接した輝度の
高い部分との平均値をとることにより輝度が上昇し、結
果として輝度の差が小さくなり画像のメリハリが薄れて
しまうという問題があった。
However, when the same processing is performed on the entire screen, for example, in a region where a high-luminance portion and a low-luminance portion are adjacent to each other, the high-luminance portion is adjacent to the low-luminance portion. By taking the average value of and, the brightness decreases, and conversely, the low brightness part increases the brightness by taking the average value with the adjacent high brightness part. There was a problem that it faded.

【0005】例えば、特開平3−54679号公報の
「画像処理装置」では、注目画素を含む入力画像の濃度
とコントラストとによって、画素信号の平均値を求める
周辺画素を決定したり、重み付けの演算係数を設定した
りする手段を備えた装置が開示されている。上記装置で
は、例えば、画像データのシャドー部とハイライト部と
で平均を採る周辺画素の範囲を変化させるとともに、重
み付けの演算係数を変化させ、それぞれの領域に適した
平滑化処理が成されるようにしている。具体的には上記
の処理によって、低濃度高コントラスト側で周辺画素の
範囲を大きくして平均化することにより主にノイズを除
去し、高濃度低コントラスト側では周辺画素の範囲を小
さくして平均化する主にエッジの劣化を防止することが
記載されている。
For example, in the "image processing device" of Japanese Patent Application Laid-Open No. 3-54679, peripheral pixels for which an average value of pixel signals is to be determined and weighting calculation are performed based on the density and contrast of an input image including a target pixel. An apparatus is disclosed which comprises means for setting the coefficient. In the above apparatus, for example, the range of peripheral pixels to be averaged in the shadow portion and the highlight portion of the image data is changed, the weighting calculation coefficient is changed, and smoothing processing suitable for each area is performed. I am trying. Specifically, the above processing mainly removes noise by enlarging and averaging the range of peripheral pixels on the low density and high contrast side, and reduces the range of peripheral pixels on the high density and low contrast side and averages them. It is described that the deterioration of edges is mainly prevented.

【0006】しかし、上記の装置は、基本的にノイズの
低減を目的としており、また、処理方法については限定
されない旨が記載されているが、周辺画素の範囲を決定
づけるのが濃度とコントラストのみであるため、単なる
ノイズ低減以外の目的で、例えば、元のイメージを残し
つつ新たな印象を与えるような画像を作成することは困
難である。
[0006] However, although it is described that the above-mentioned device is basically intended to reduce noise and that the processing method is not limited, it is only the density and contrast that determine the range of peripheral pixels. Therefore, for purposes other than simple noise reduction, it is difficult to create an image that gives a new impression while leaving the original image.

【0007】本発明は、画像のメリハリを薄れさせるこ
となく様々な種類のソフトなイメージの画像を得ること
が可能な画像処理方法および画像処理装置を提供するも
のである。
The present invention provides an image processing method and an image processing apparatus capable of obtaining various kinds of soft image images without reducing the sharpness of the image.

【0008】[0008]

【課題を解決するための手段】請求項1の発明に係る画
像処理方法は、上記の課題を解決するために、入力画像
に対し、注目画素の画素データと該注目画素の周囲画素
の各画素データとに基づいて該注目画素の平滑化処理を
行う画像処理方法において、注目画素の画素データもし
くは注目画素および該注目画素の近傍画素の画素データ
から求められる複数種類の特徴量から任意の特徴量を選
択し、注目画素の前記選択した特徴量の大きさに応じ
て、上記周囲画素の範囲を変化させる場合に、少なくと
も上記特徴量の一つとして、注目画素の色と任意に設定
可能な色との色差を用いることを特徴としている。
In order to solve the above-mentioned problems, an image processing method according to the invention of claim 1 relates to an input image, pixel data of a pixel of interest and each pixel of pixels surrounding the pixel of interest. In an image processing method for smoothing the pixel of interest on the basis of data, an arbitrary feature amount from a plurality of types of feature amounts obtained from pixel data of the pixel of interest or pixel data of the pixel of interest and pixels in the vicinity of the pixel of interest. And when changing the range of the surrounding pixels according to the size of the selected feature amount of the target pixel , at least
Is also set as the color of the pixel of interest as one of the above feature values.
It is characterized by using the color difference from possible colors .

【0009】また、請求項2の発明に係る画像処理方法
は、上記の課題を解決するために、入力画像に対し、注
目画素の画素データと該注目画素の周囲画素の各画素デ
ータとに基づいて該注目画素の平滑化処理を行う画像処
理方法において、注目画素の画素データもしくは注目画
素および該注目画素の近傍画素の画素データから求めら
れる複数種類の特徴量から任意の特徴量を選択し、注目
画素の前記選択した特徴量の大きさに応じて、注目画素
の画素データと上記周囲画素の画素データとが平滑化処
理後の画素データに与える重み付けの割合を変化させる
場合に、少なくとも上記特徴量の一つとして、注目画素
の色と任意に設定可能な色との色差を用いることを特徴
としている。
In order to solve the above-mentioned problems, the image processing method according to the invention of claim 2 is based on the pixel data of the target pixel and each pixel data of the peripheral pixels of the target pixel for the input image. In the image processing method for smoothing the target pixel, an arbitrary feature amount is selected from a plurality of types of feature amounts obtained from pixel data of the target pixel or pixel data of the target pixel and pixels in the vicinity of the target pixel, The weighting ratio given to the pixel data after the smoothing process by the pixel data of the target pixel and the pixel data of the surrounding pixels is changed according to the size of the selected feature amount of the target pixel.
In this case, at least one of the above feature values
It is characterized by using a color difference between the color of the color and the color that can be set arbitrarily .

【0010】上記の方法では、注目画素および周囲画素
の画素データによって決まる注目画素の特徴量の大きさ
によって、該注目画素の平滑化を行う周囲画素の範囲や
周囲画素からの重み付けの分布を変化させている。この
特徴量の値は、例えば、画素の輝度から求める明度や、
明度の分散、エッジ強度、特定の色に対する色差などの
ように、平滑化処理を行おうとする注目画素自身の画素
データや該画素データと近傍画素の画素データとの相対
的な関係等によって定まり、画像の特徴に応じて異なっ
ている。
In the above method, the range of surrounding pixels for smoothing the target pixel and the weighting distribution from the surrounding pixels are changed depending on the size of the feature amount of the target pixel determined by the pixel data of the target pixel and the surrounding pixels. I am letting you. The value of this feature amount is, for example, the brightness calculated from the luminance of the pixel,
The variance of brightness, the edge strength, the color difference for a specific color, etc., is determined by the pixel data of the pixel of interest to be smoothed or the relative relationship between the pixel data and the pixel data of neighboring pixels, It depends on the characteristics of the image.

【0011】その結果、ある画像に対して、どの特徴を
強めるか弱めるかによって画像の質を変化させることが
できる。このとき、複数の特徴量から任意に選択できる
ため、入力画像に対して様々な平滑化処理を施した出力
画像を得ることができる。具体的な平滑化処理の内容は
異なるが、例えば、感覚的に軟らかいイメージの領域に
はより軟らかくなるように平滑化処理を深く掛かるよう
にしたり、あるいは逆に軟らかいイメージの領域にはあ
まり処理を掛からないようにするといった処理が可能と
なる。
As a result, the quality of an image can be changed depending on which feature is strengthened or weakened. At this time, since it is possible to arbitrarily select from a plurality of feature amounts, it is possible to obtain an output image obtained by performing various smoothing processing on the input image. Although the specific contents of the smoothing process are different, for example, the smoothing process may be deeply applied to the region of the image that is soft to the sense so that it becomes softer. It is possible to perform processing such as not to hang up.

【0012】また、請求項3の発明に係る画像処理装置
は、上記の課題を解決するために、入力画像に対し、注
目画素の画素データと該注目画素の周囲画素の各画素デ
ータとに基づいて該注目画素の平滑化処理を行う画像処
理装置において、注目画素の画素データもしくは注目画
素および該注目画素の近傍画素の画素データから注目画
素の特徴量を計算する特徴量算出手段と、平滑化処理に
用いる特徴量を選択する特徴量選択手段と、選択された
特徴量の値に応じて、上記周囲画素の範囲を変えるよう
に制御する平滑化処理手段とが設けられ、上記特徴量算
出手段は、少なくとも上記特徴量の一つとして、注目画
素の色と任意に設定可能な色との色差を算出することを
特徴としている。
In order to solve the above problems, the image processing apparatus according to the third aspect of the invention is based on the pixel data of the target pixel and each pixel data of the peripheral pixels of the target pixel for the input image. In an image processing device for performing the smoothing process on the target pixel, a feature amount calculating means for calculating the feature amount of the target pixel from the pixel data of the target pixel or the pixel data of the target pixel and pixels in the vicinity of the target pixel; a feature quantity selection means for selecting features for the process, according to the value of the selected feature quantity, and smoothing processing means for controlling to change the range of the peripheral pixels are provided, the feature quantity calculation
The output means is at least one of the feature quantities
It is characterized in that a color difference between a base color and a color that can be arbitrarily set is calculated .

【0013】また、請求項4の発明に係る画像処理装置
は、上記の課題を解決するために、入力画像に対し、注
目画素の画素データと該注目画素の周囲画素の各画素デ
ータとに基づいて該注目画素の平滑化処理を行う画像処
理装置において、注目画素の画素データもしくは注目画
素および該注目画素の近傍画素の画素データから注目画
素の特徴量を計算する特徴量算出手段と、平滑化処理に
用いる特徴量を選択する特徴量選択手段と、選択された
特徴量の値に応じて、注目画素の画素データと上記周囲
画素の画素データとが平滑化処理後の画素の画素データ
に与える重み付けを変化させる平滑化処理手段とが設け
られ、上記特徴量算出手段は、少なくとも上記特徴量の
一つとして、注目画素の色と任意に設定可能な色との色
差を算出することを特徴としている。
In order to solve the above-mentioned problems, the image processing apparatus according to the present invention is based on the pixel data of the target pixel and each pixel data of the peripheral pixels of the target pixel for the input image. In an image processing device for performing the smoothing process on the target pixel, a feature amount calculating means for calculating the feature amount of the target pixel from the pixel data of the target pixel or the pixel data of the target pixel and pixels in the vicinity of the target pixel; Feature amount selecting means for selecting a feature amount used for processing, and pixel data of the target pixel and the pixel data of the surrounding pixels are given to the pixel data of the pixel after the smoothing process according to the value of the selected feature amount. Smoothing processing means for changing the weighting is provided, and the feature amount calculating means is provided for at least the feature amount.
One is the color of the pixel of interest and the color that can be set arbitrarily.
The feature is that the difference is calculated .

【0014】上記構成により、特徴量算出手段によって
算出された注目画素に関する特徴量の値に応じて、平滑
化処理手段は注目画素に平滑化画素の範囲や平滑化画素
の画素データの重み付けを変化させている。すなわち、
上記特徴量の値に応じて平滑化の程度を変化させること
ができるので、画像のメリハリを薄れさせることなく、
ソフトなイメージの画像を得ることができる。しかも、
特徴量選択手段により複数の特徴量から選択できるた
め、特徴量の選択によって一つの入力画像から様々なイ
メージの平滑化処理が行える。
With the above configuration, the smoothing processing unit changes the range of the smoothed pixel or the weighting of the pixel data of the smoothed pixel to the target pixel according to the value of the feature amount regarding the target pixel calculated by the feature amount calculation unit. I am letting you. That is,
Since the degree of smoothing can be changed according to the value of the above feature amount, without reducing the sharpness of the image,
You can get a soft image. Moreover,
Since a plurality of feature amounts can be selected by the feature amount selecting means, various image smoothing processes can be performed from one input image by selecting the feature amount.

【0015】請求項3および4に係る画像処理装置で
は、上記特徴量算出手段は、少なくとも上記特徴量の一
つとして、注目画素の色と任意に設定可能な色との色差
を算出することを特徴としている。
In the image processing apparatus according to claims 3 and 4,
Is characterized in that the feature amount calculating means calculates a color difference between the color of the pixel of interest and a color that can be arbitrarily set , as at least one of the feature amounts.

【0016】上記の構成により、任意に設定可能な色を
基準として、平滑化処理を深く掛けるか浅く掛けるかを
選択することができる。例えば、設定した色との色差が
小さいほど周囲画素の範囲を小さくしたり、重み付けの
分布を注目画素に集中させたりすることにより、設定し
た色における平滑化処理の程度を抑制することが可能と
なる。逆の場合には、設定した色に近い程、平滑化処理
の程度が深くなる。
With the above configuration, it is possible to select whether to apply the smoothing processing deeply or lightly with reference to a color that can be arbitrarily set. For example, it is possible to suppress the degree of smoothing processing for the set color by reducing the range of surrounding pixels as the color difference from the set color is smaller or by concentrating the weighting distribution on the target pixel. Become. In the opposite case, the closer to the set color, the deeper the degree of smoothing processing.

【0017】[0017]

【発明の実施の形態】〔実施の形態1〕 本発明の実施の一形態について図1ないし図10に基づ
いて説明すれば、以下の通りである。
BEST MODE FOR CARRYING OUT THE INVENTION [First Embodiment] The following will describe one embodiment of the present invention with reference to FIGS. 1 to 10.

【0018】まず、本実施の形態における画像処理装置
の構成を説明する。
First, the configuration of the image processing apparatus according to this embodiment will be described.

【0019】図2に示すように、上記画像処理装置10
には、制御部1と、制御部1で用いるプログラムを格納
したプログラム用メモリ2とが設けられている。また、
入力された画像を格納する入力画像用メモリ3と平滑化
処理後の画像を格納する出力画像用メモリ4とを有して
おり、これらには、制御部1からコントロールバス6
と、画像データをやり取りするデータバス7とが接続さ
れている。また、上記コントロールバス6には、入力画
像に対してどのような画像処理を行わせるかをユーザが
支持するために選択入力キー5が設けられている。
As shown in FIG. 2, the image processing apparatus 10 described above.
A control unit 1 and a program memory 2 storing a program used by the control unit 1 are provided in the. Also,
It has an input image memory 3 for storing an input image and an output image memory 4 for storing an image after the smoothing process. These include a control unit 1 to a control bus 6
And a data bus 7 for exchanging image data. Further, the control bus 6 is provided with a selection input key 5 so that the user can support what kind of image processing is performed on the input image.

【0020】また、上記コントロールバス6とデータバ
ス7には、外部から上記入力画像用メモリ3に画像を入
力するための画像入力手段、例えばスキャナ8が接続さ
れている。なお、画像入力手段としてはスキャナ8に限
らず、例えば、図示しない記憶媒体に格納された画像デ
ータを読み出させるようにしてもよく、上記に限定され
るものではない。
Further, the control bus 6 and the data bus 7 are connected to image input means for inputting an image from the outside to the input image memory 3, for example, a scanner 8. The image input means is not limited to the scanner 8 and may be, for example, the image data stored in a storage medium (not shown), which is not limited to the above.

【0021】本実施の形態の画像処理装置10では、ユ
ーザが選択可能な複数の平滑化処理が用意されており、
これらの平滑化処理は、基本的に、平滑化処理を行おう
とする画素(注目画素)と周囲画素とからなる、例えば
図4〜図7等に示すような領域内の全画素の輝度の単純
平均として求まる。このような領域を領域Fとよぶこと
にすれば領域Fは、以下で詳述する特徴量Pと距離関数
に依存している。
The image processing apparatus 10 of the present embodiment is provided with a plurality of smoothing processes that the user can select.
Basically, these smoothing processes consist of a simple luminance of all pixels in a region composed of a pixel (pixel of interest) for which the smoothing process is to be performed and surrounding pixels, for example, as shown in FIGS. Calculated as an average. If such a region is called a region F, the region F depends on the feature amount P and the distance function described in detail below.

【0022】平滑化処理の種類を選択した段階で、距離
関数は予め用意されたなかから決まることになるが、特
徴量Pは注目画素毎に異なっているので、特徴量Pの変
化に応じて注目画素毎に領域Fが変化することになる。
すなわち、画素自身の持つ特徴に応じて平滑化処理の範
囲を変化させることになり、その結果、様々な効果を得
ることができる。
At the stage when the type of smoothing processing is selected, the distance function is determined from among those prepared in advance, but since the feature amount P is different for each pixel of interest, attention is paid in accordance with the change of the feature amount P. The area F changes for each pixel.
That is, the range of the smoothing process is changed according to the characteristics of the pixel itself, and as a result, various effects can be obtained.

【0023】なお、以下の説明に際し、入力画像の大き
さを(横の画素数)×(縦の画素数)=X×Yとし、注
目画素をiと表記する。
In the following description, the size of the input image is (horizontal pixel number) × (vertical pixel number) = X × Y, and the pixel of interest is represented by i.

【0024】また、図3に示すように、平滑化処理を行
う注目画素iに対して、8近傍画素をk1 〜k8 とす
る。また、図示しないが、上記した注目画素iの平滑化
に影響を及ぼす周囲画素をjn とする。
Further, as shown in FIG. 3, for the target pixel i to be smoothed, eight neighboring pixels are designated as k 1 to k 8 . Although not shown, the surrounding pixels that influence the smoothing of the pixel of interest i described above are j n .

【0025】また、本実施の形態で扱う画素はRGB表
色系によって構成されているため、入力画像用メモリ3
もしくは出力画像用メモリ4に格納される際には、入力
もしくは出力画像上の左上の画素から、各画素の赤、
緑、青の輝度R、G、Bの順で格納されていく。例え
ば、上記画像が24ビットカラーであれば、画素A(x,
y)における輝度RA 、GA 、BA は、それぞれ、メモリ
の(x+X×y)×3+1番目、(x+X×y)×3+2番目、(x+X×y)
×3+3番目のアドレスにそれぞれ1[byte](8[bit
])単位で格納されることになり、このときに必要な
画像メモリの容量はX×Y×3[byte]となる。
Further, since the pixels handled in this embodiment are constituted by the RGB color system, the input image memory 3
Alternatively, when the image is stored in the output image memory 4, from the upper left pixel on the input or output image, the red of each pixel,
The green and blue luminances R, G, and B are stored in this order. For example, if the image is 24-bit color, pixel A (x,
The luminances R A , G A , and B A in y) are (x + X × y) × 3 + 1st, (x + X × y) × 3 + 2nd, and (x + X × y) of the memory, respectively. )
1 [byte] (8 [bit
]) Units, and the image memory capacity required at this time is X × Y × 3 [byte].

【0026】次に特徴量Pと距離関数について説明す
る。
Next, the feature amount P and the distance function will be described.

【0027】特徴量Pは、図3に示した注目画素i自身
もしくは注目画素iと8近傍画素k1 〜k8 等との特
徴、具体的には輝度から算出されるものであり、例え
ば、明度Yi 、明度の分散Di 、エッジ強度Ei 、色差
i などを用いる。
The feature amount P is calculated from the features of the pixel of interest i itself or the pixel of interest i shown in FIG. 3 and the eight neighboring pixels k 1 to k 8 , specifically, the brightness. The lightness Y i , the lightness distribution D i , the edge strength E i , the color difference C i, and the like are used.

【0028】明度Yi は、注目画素iの輝度Ri
i 、Bi から、次式で求まる値である。
The brightness Y i is the brightness R i of the pixel of interest i ,
It is a value obtained from the following equation from G i and B i .

【0029】 Yi =0.30×Ri +0.59×Gi +0.11×Bi …(1) 式(1)で得られた明度Yi の値に応じて、領域Fを広く
したり狭くしたりすることにより、次のような効果が得
られる。例えば、明度Yi が大きい場合に領域Fを狭く
し、明度Yi が小さい場合に領域Fを広くするように変
化させるようにすると、明るい注目画素iに対しては平
滑化が浅く、暗い注目画素iに対しては平滑化が深くな
されることになる。この結果、平滑化処理と同時に、画
像中の明るい領域から暗い領域へと徐々に明るさが伝搬
していくような効果を与えることができる。もちろん、
明度Yi の変化に対する領域Fの変化を上記と逆方向に
すれば、逆の効果を得ることができる。
Y i = 0.30 × R i + 0.59 × G i + 0.11 × B i (1) The region F is widened according to the value of the lightness Y i obtained by the equation (1). By narrowing or narrowing, the following effects can be obtained. For example, if the area F is narrowed when the lightness Y i is large, and the area F is widened when the lightness Y i is small, the smoothing is shallow and dark for the bright pixel of interest i. The smoothing is deepened for the pixel i. As a result, at the same time as the smoothing process, it is possible to provide an effect that the brightness gradually propagates from a bright area to a dark area in the image. of course,
If the change of the region F with respect to the change of the lightness Y i is set in the opposite direction to the above, the opposite effect can be obtained.

【0030】また、明度の分散Di は、注目画素iの明
度Yi と近傍画素kn の明度Yn との分散を求めるもの
で、図3で示した注目画素iと8近傍画素k1 〜k8
において、明度の分散Di を求める場合、次式の通りで
ある。
Further, the dispersion D i of lightness, and requests distribution of the brightness Y n lightness Y i and the neighboring pixel k n of the pixel of interest i, the pixel of interest i and eight neighboring pixels k 1 shown in FIG. 3 in to k 8 Prefecture, when obtaining the variance D i lightness, is as follows.

【0031】[0031]

【数1】 [Equation 1]

【0032】ただし、上記YM は、明度の平均値であ
り、次式で与えられる。
However, Y M is an average value of lightness and is given by the following equation.

【0033】[0033]

【数2】 [Equation 2]

【0034】上記明度の分散Di の程度に応じて、例え
ば、明度の分散Di が大きい場合に領域Fを狭くし、明
度の分散Di が小さい場合に領域Fを広くするように変
化させてやる等すればよい。
[0034] Depending on the degree of dispersion D i of the brightness, for example, to narrow the region F when the dispersion D i of brightness is large, varied to broaden the region F when the dispersion D i of lightness is small You can do it.

【0035】入力画像において、同一の画像上に明度の
分散Di の大きい領域と小さい領域とが混在している場
合に、同じ処理を施しても、明度の分散Di の小さい領
域に比べて、明度の分散Di の大きい領域に対する平滑
化の影響が大きくなるので、相対的に明度の分散Di
大きい領域のほうがぼやけた感じが強くなる。
In the input image, when a region having a large variance D i of lightness and a region having a small variance D i of lightness coexist on the same image, even if the same processing is performed, it is compared with a region having a small variance D i of lightness. Since the influence of the smoothing on the area having the large brightness distribution D i is large, the area where the brightness distribution D i is relatively large is more blurred.

【0036】そこで、上記のように、明度の分散Di
大きい領域では、周囲画素jn からの影響が小さくなる
ように周囲画素jn の範囲を小さくすると、平滑化処理
によって生じ易い分散Di の大きい領域における画像の
ぼけを抑制し、感覚的に一様な平滑化処理がなされたよ
うなイメージで平滑化処理後の画像を形成することがで
きる。
[0036] Therefore, as described above, a large area of the dispersion D i of brightness, reducing the range of the peripheral pixels j n such that influence from surrounding pixels j n decreases, easily dispersed D caused by the smoothing process It is possible to suppress blurring of an image in a region where i is large, and to form an image after the smoothing process with an image as if the smoothing process was performed perceptually uniform.

【0037】また、エッジ強度Ei は、注目画素iの明
度Yi と8近傍画素k1 〜k8 の明度Y1 〜k8 とから
求めるものであり、次式で求めることができる。
Further, the edge intensity E i are those obtained from the brightness Y 1 to k 8 Tokyo brightness Y i and 8 neighboring pixels k 1 to k 8 of the pixel of interest i, can be calculated by the following equation.

【0038】[0038]

【数3】 [Equation 3]

【0039】上記エッジ強度Ei の程度に応じて、例え
ば、エッジ強度Ei が大きい場合に領域Fを狭くし、エ
ッジ強度Ei が小さい場合に領域Fを広くするように変
化させてやる等すればよい。この場合、エッジ強度の高
い領域のぼけを押さえる効果が得られる。すなわちエッ
ジ強度の高い領域では平滑化の度合いが小さくなるの
で、エッジを残したまま、画像全体に平滑化処理を行う
ことができる。
[0039] Depending on the degree of the edge intensities E i, for example, such as narrowing the space F if the edge intensity E i is large, I'll be varied so as to widen the region F when the edge intensity E i is less do it. In this case, it is possible to obtain the effect of suppressing the blur in the region having a high edge strength. That is, since the degree of smoothing becomes small in a region having high edge strength, it is possible to perform smoothing processing on the entire image while leaving the edges.

【0040】また、色差Ci は注目画素iの各輝度
i 、Gi 、Bi と、予め指定しておいた特定の色Cの
各輝度RC 、GC 、BC との差からもとめるものであ
り、次式で求まる。
The color difference C i is calculated from the difference between the brightnesses R i , G i , B i of the pixel of interest i and the brightnesses R C , G C , B C of the specific color C designated in advance. This is a matter of sought, and can be calculated by

【0041】[0041]

【数4】 [Equation 4]

【0042】上記色差Ci の程度に応じて、例えば、色
差Ci が小さい場合に領域Fを狭くし、色差Ci が大き
い場合に領域Fを広くするように変化させてやる等すれ
ばよい。この場合、特定の色もしくは特定の色に近い画
素ほど、平滑化の度合いが小さく、ぼけを抑制すること
ができる。例えば、特定の色として肌色を設定し、人物
が含まれている画像を処理すると、上記肌色に近い色で
は周囲画素からの影響が小さくなるので、人物の顔等が
ぼけることを抑制できる。この特定の色は目的や画像に
応じて適宜設定すればよい。
[0042] Depending on the degree of the color difference C i, for example, to narrow the region F in the case where the color difference C i is small, may be such'll be varied to broaden the region F in the case where the color difference C i is greater . In this case, a pixel having a specific color or a color closer to the specific color has a smaller degree of smoothing, and blurring can be suppressed. For example, when a skin color is set as a specific color and an image containing a person is processed, the influence of surrounding pixels is reduced in the color close to the skin color, so that it is possible to suppress blurring of the person's face or the like. This specific color may be set appropriately according to the purpose and the image.

【0043】一方、領域Fは、選択された平滑化処理の
種類に応じた距離関数と、前記特徴量P(明度Yi 、明
度の分散Di 、エッジ強度Ei 、色差Ci )等から求ま
る距離のしきい値Th とにより決まる。
On the other hand, the area F is calculated from the distance function according to the type of the selected smoothing process, the feature amount P (lightness Y i , lightness distribution D i , edge strength E i , color difference C i ) and the like. determined by a threshold T h of the determined distance.

【0044】距離関数は、任意の画素と、注目画素と任
意の画素との距離との関係を示すもので、例えば、ユ
ークリッド距離、市街区距離、チェス盤距離等が一
般的に知られている。なお、以下、注目画素iの座標を
(xi ,yi )、周囲画素jn の座標を(xjn,yjn
とする。
The distance function indicates the relationship between an arbitrary pixel and the distance between the pixel of interest and the arbitrary pixel. For example, Euclidean distance, city block distance, chessboard distance, etc. are generally known. . In the following description, the coordinates of the pixel of interest i are (x i , y i ) and the coordinates of the surrounding pixels j n are (x jn , y jn ).
And

【0045】例えば、上記ユークリッド距離の場合な
ら、注目画素iの座標に対して、次式を満たす周囲画素
n と該注目画素iとにより領域Fが構成されることに
なる。
For example, in the case of the above Euclidean distance, the area F is constituted by the surrounding pixel j n satisfying the following expression and the target pixel i with respect to the coordinates of the target pixel i.

【0046】[0046]

【数5】 [Equation 5]

【0047】上記において、Th =3のときの領域Fを
図4に示す。
In the above, the region F when T h = 3 is shown in FIG.

【0048】また、上記市街区距離の場合なら、注目
画素iの座標に対して、次式を満たす周囲画素jn と該
注目画素iとにより領域Fが構成されることになる。
In the case of the above city block distance, the area F is constituted by the peripheral pixel j n satisfying the following expression and the target pixel i with respect to the coordinates of the target pixel i.

【0049】 |xi −xj |+|yi −yj |≦Th …(7) 上記において、Th =3のときの領域Fを図5に示す。| X i −x j | + | y i −y j | ≦ T h (7) In the above description, the region F when T h = 3 is shown in FIG.

【0050】また、上記チェス盤距離の場合なら、注
目画素iの座標に対して、次式を満たす周囲画素jn
該注目画素iとにより領域Fが構成されることになる。
In the case of the above chessboard distance, the area F is composed of the peripheral pixel j n satisfying the following expression and the target pixel i with respect to the coordinates of the target pixel i.

【0051】 |xi −xj |≦Th 、|yi −yj |≦Th …(8) 上記において、Th =3のときの領域Fを図6に示す。| X i −x j | ≦ T h , | y i −y j | ≦ T h (8) In the above, region F when T h = 3 is shown in FIG.

【0052】また、上記等のような一般的に知ら
れた距離関数以外に、例えば、次式を満たすような距離
関数を設定してもよい。
In addition to the generally known distance function as described above, for example, a distance function satisfying the following equation may be set.

【0053】[0053]

【数6】 [Equation 6]

【0054】もしくは、 xj =xi +k、yj =yi ±k(−Th ≦k≦Th ) …(10) 距離関数として上記式(9)を選択した場合の領域F(T
h =3)は図7に示す通りである。また、上記式(10)を
選択した場合の領域F(Th =3)は図8に示す通りと
なる。
Alternatively, x j = x i + k, y j = y i ± k (-T h ≤k ≤T h ) ... (10) Area F (T when the above equation (9) is selected as the distance function.
h = 3) is as shown in FIG. Further, the region F (T h = 3) when the above formula (10) is selected is as shown in FIG.

【0055】なお、図4〜図8中の注目画素iおよび周
囲画素jn の内部の数字は、それぞれ該当する距離関数
が示す注目画素iと周囲画素jn との距離を示してい
る。
The numbers inside the target pixel i and the surrounding pixels j n in FIGS. 4 to 8 indicate the distances between the target pixel i and the surrounding pixels j n indicated by the corresponding distance functions.

【0056】また、距離のしきい値Th は、例えば、特
徴量Pにより、次式等で求めればよい。
[0056] The distance the threshold T h of, for example, by the feature P, may be calculated by the following equation or the like.

【0057】 Th =To/P …(11) あるいは、 Th =P/Td …(12) ただし、上記は、前記した特徴量Pと領域Fとの関係に
おいて要求される距離のしきい値Th を求めるための例
に過ぎず、上記式に限定されるものではない。
T h = To / P (11) or T h = P / Td (12) However, the above is the threshold value of the distance required in the relationship between the feature amount P and the region F. This is merely an example for obtaining T h , and is not limited to the above formula.

【0058】また、上記において、To、Tdは、一連
の平滑化処理において、特徴量の種類に依存する固定値
であるが、この値を任意に設定可能とすることにより、
特徴量の値による平滑化処理の深さを調整することも可
能となる。
Further, in the above, To and Td are fixed values depending on the type of feature quantity in a series of smoothing processing, but by making these values arbitrarily settable,
It is also possible to adjust the depth of the smoothing process based on the value of the feature amount.

【0059】上記構成および図1および図9、図10に
示すフローチャートに基づいて、本実施の形態に係る画
像処理装置10による平滑化処理について説明する。な
お、以下で説明する画像処理装置10は、特徴量Pの種
類として上記した明度Yi 、明度の分散Di 、エッジ強
度Ei 、色差Ci を有し、また、距離関数としてはユー
クリッド距離、市街区距離、チェス盤距離を有している
ものとする。
Smoothing processing by the image processing apparatus 10 according to the present embodiment will be described based on the above-described configuration and the flowcharts shown in FIGS. 1, 9, and 10. The image processing apparatus 10 described below has the above-mentioned brightness Y i , brightness distribution D i , edge intensity E i , and color difference C i as the types of the feature amount P, and the Euclidean distance as a distance function. , City block distance, chessboard distance.

【0060】図1に示すように、本実施の形態における
画像処理がスタートすると、まずスキャナ8等から入力
される画像データが入力画像用メモリ3に格納される
(S1)。次に、どのような平滑化処理を行うかを、選
択入力キー5により選択する(S2)。ここで、選択し
た平滑化処理の種類によって、特徴量Pの種類と距離関
数が決まる。
As shown in FIG. 1, when the image processing in this embodiment is started, first, the image data input from the scanner 8 or the like is stored in the input image memory 3 (S1). Next, what kind of smoothing processing is to be performed is selected by the selection input key 5 (S2). Here, the type of the feature amount P and the distance function are determined depending on the type of the smoothing process selected.

【0061】そして、S3では上記で決まった特徴量P
に応じて処理を分岐させる。例えば、特徴量Pが明度Y
i であればS4に進み、特徴量Pが明度の分散Di であ
ればS5に進み、特徴量Pがエッジ強度Ei であればS
6に進み、特徴量Pが色差Ci であればS7に進み、そ
れぞれ平滑化処理を行う。上記S4〜S7のいずれかの
処理が完了した段階で、出力用画像メモリ4にはそれぞ
れの平滑化処理が終了した画像が格納されていることに
なる。
Then, in S3, the characteristic amount P determined above is determined.
The process is branched according to. For example, the feature amount P is the brightness Y.
If it is i , the process proceeds to S4. If the feature amount P is the variance D i of brightness, the process proceeds to S5. If the feature amount P is the edge strength E i , S is performed.
If the feature amount P is the color difference C i , the process proceeds to S7, where the smoothing process is performed. At the stage where any one of the processes of S4 to S7 is completed, the output image memory 4 stores the images for which the respective smoothing processes have been completed.

【0062】上記S4〜S7における平滑化処理につい
て説明する。
The smoothing process in S4 to S7 will be described.

【0063】S4における明度Yi に基づく平滑化処理
が開始されると、図9に示す平滑化処理のサブプログラ
ムが起動する。そして、まずS10およびS11で座標
(x,y)=(0,0)にして、この座標のときの画素
を注目画素iとして、輝度Ri 、Gi 、Bi を取り出す
(S12)。
When the smoothing process based on the lightness Y i in S4 is started, the smoothing process subprogram shown in FIG. 9 is started. Then, first, the coordinates (x, y) = (0, 0) are set in S10 and S11, and the brightness R i , G i , B i is taken out with the pixel at this coordinate as the target pixel i (S12).

【0064】次に、取り出した輝度Ri 、Gi 、Bi
前記式(1)に代入して明度Yi を求める(S13)。求
めた明度Yi を特徴量Pとして、例えば式(11)に代入し
て、距離のしきい値Th を求める(S14)。
Next, the extracted brightnesses R i , G i and B i are substituted into the equation (1) to obtain the lightness Y i (S13). The calculated brightness Y i is used as the feature amount P, for example, in equation (11) to obtain the distance threshold T h (S14).

【0065】次のS15では、図10に示すように、図
1のS2で決まった距離関数と、上記S14で求められ
た距離のしきい値Th とによって、周囲画素jn が求ま
る。すなわち、S21において、距離関数に応じた処理
に分岐され、例えば、距離関数がユークリッド距離であ
れば、S22に進み、前記式(6)によって注目画素iと
のユークリッド距離が距離のしきい値Th 以下となる画
素が周囲画素jn として求められることになる。また距
離関数が市街区距離の場合はS23に進み、式(7)に対
して距離のしきい値Th を満たす画素が周囲画素jn
して求められ、またチェス盤距離等の場合にはS24に
進み、式(8)に対して距離のしきい値Th を満たす画素
が周囲画素jn として求められることになる。
[0065] In the next S15, as shown in FIG. 10, the distance function determined in S2 of FIG. 1, by the threshold T h of distances determined above S14, determined is surrounding pixels j n. That is, in S21, the process is branched to a process according to the distance function. For example, if the distance function is the Euclidean distance, the process proceeds to S22, and the Euclidean distance to the pixel of interest i is calculated by the equation (6) as a distance threshold T. Pixels having a value of h or less are obtained as the surrounding pixels j n . If the distance function is the city block distance, the process proceeds to S23, and the pixel satisfying the distance threshold T h in the equation (7) is obtained as the surrounding pixel j n , and in the case of the chessboard distance or the like, S24. Then, the pixels satisfying the distance threshold T h in the equation (8) are obtained as the surrounding pixels j n .

【0066】注目画素iの輝度Ri 、Gi 、Bi と、求
まった全周囲画素jn の輝度Rjn、Gjn、Bjnとをそれ
ぞれの色毎に平均を求め、出力画像用メモリ4に格納す
る(S16)。
The luminance R i , G i , B i of the pixel of interest i and the luminance R jn , G jn , B jn of all the surrounding pixels j n obtained are averaged for each color, and the output image memory 4 (S16).

【0067】次に、xに1を足して(S17)、y=0
におけるX方向の画素全てに対して平滑化処理が完了し
ていなければ(S18)、再びS12に戻り、S12〜
S17までの処理を繰り返す。これによりy=0におけ
るX方向の全画素(X個)の平滑化処理が行えることに
なる。
Next, 1 is added to x (S17), and y = 0
If the smoothing process has not been completed for all the pixels in the X direction in (S18), the process returns to S12 again, and from S12 to
The processing up to S17 is repeated. As a result, smoothing processing can be performed for all pixels (X pieces) in the X direction at y = 0.

【0068】また、S18で、y=0におけるX方向の
全画素の平滑化処理を終えると、yに1を足して(S1
9)、S20に進み、Y方向にY個の画素の処理の平滑
化処理を終えるまで、S11〜S19の処理を繰り返
す。
When the smoothing process of all pixels in the X direction at y = 0 is completed in S18, 1 is added to y (S1
9), the process proceeds to S20, and the processes of S11 to S19 are repeated until the smoothing process of the Y pixels in the Y direction is completed.

【0069】上記S4における処理が全て終了すると、
入力画像メモリ3に格納されている全ての画像データ
が、選択した平滑化処理が成された状態で出力用画像メ
モリ4に格納されていることになる。この画像データに
ついては、プリンタで出力したり、ディスプレイに表示
したり、あるいは保存する等、その他、目的に応じた処
理を行えばよい。
When all the processing in S4 is completed,
This means that all the image data stored in the input image memory 3 are stored in the output image memory 4 in the state in which the selected smoothing process has been performed. This image data may be output by a printer, displayed on a display, stored, and the like, and may be subjected to other processing depending on the purpose.

【0070】また、図1のS3において、明度の分散D
i 、エッジ強度Ei 、色差Ci が選択された場合には、
図9におけるS14において、それぞれ、明度の分散D
i 、エッジ強度Ei 、色差Ci を求めるようにするとと
もに、S15において式(11)(12)などを用いてそれぞれ
の特徴量Pに応じた距離のしきい値Th を求めさせるよ
うにすればよい。
Further, in S3 of FIG. 1, the lightness dispersion D
When i , edge strength E i , and color difference C i are selected,
In S14 of FIG. 9, the variance D of lightness is obtained.
i, the edge strength E i, as well as to obtain the color difference C i, so causing seek distance threshold T h corresponding to each feature amount P by using a formula (11) (12) step S15 do it.

【0071】上記のように、距離のしきい値Th の値と
領域Fを設定するための条件(距離関数)を各種組み合
わせることにより、色々な平滑化処理の種類が得られ
る。また、特徴量Pの値に応じて距離のしきい値Th
連続的に変化させれば単なる平滑化に留まらない新たな
効果を生み出せるが、平滑化の対象となる周囲画素が広
がっても、距離のしきい値Th は計算により求まるた
め、単純な平均によって平滑化の値を容易に求めること
ができる。
As described above, various kinds of smoothing processing can be obtained by variously combining the value of the distance threshold T h and the condition (distance function) for setting the area F. Although Umidaseru a new effect that goes beyond the mere smoothed if caused to continuously change the threshold T h distance depending on the value of the characteristic amount P, even spread around the pixel to be smoothed , The distance threshold T h can be obtained by calculation, so that the smoothing value can be easily obtained by a simple average.

【0072】なお、本実施の形態で用いる明度Yi 、明
度の分散Di 、エッジ強度Ei 、色差Ci 以外の特徴量
Pや、上記で挙げた距離関数以外の距離関数を設定する
ことにより、平滑化処理と同時に、より多彩な効果を生
み出すことができる画像処理が行えるようになる。
It should be noted that the lightness Y i , the lightness distribution D i , the edge intensity E i , the feature amount P other than the color difference C i used in the present embodiment, and the distance function other than the above-mentioned distance function are set. As a result, it becomes possible to perform image processing capable of producing a wider variety of effects simultaneously with the smoothing processing.

【0073】〔実施の形態2〕 本発明の実施の他の形態について図2、図3、図11お
よび図12に基づいて説明すれば、以下の通りである。
なお、説明の便宜上、前記の実施の形態1の図面に示し
た構成と同一の機能を有する構成には、同一の符号を付
記し、その説明を省略する。
[Second Embodiment] The following will describe another embodiment of the present invention in reference to FIG. 2, FIG. 3, FIG. 11 and FIG.
For the sake of convenience of description, configurations having the same functions as those shown in the drawings of the first embodiment will be designated by the same reference numerals, and the description thereof will be omitted.

【0074】本実施の形態の画像処理装置も、図2に示
す実施の形態1の画像処理装置と同じ構成を有している
が、プログラム用メモリ2に格納されているプログラム
の内容が異なっており、本実施の形態では、ユーザが選
択可能な複数の平滑化処理が用意されており、これらの
平滑化処理は、固定された領域内において、注目画素と
周囲画素との間の距離に応じて、注目画素もしくは周囲
画素が平滑化処理後の画素に与える重みを変化させるこ
とにより求まる。
The image processing apparatus of the present embodiment also has the same configuration as the image processing apparatus of the first embodiment shown in FIG. 2, but the contents of the program stored in the program memory 2 are different. Therefore, in the present embodiment, a plurality of smoothing processes that can be selected by the user are prepared, and these smoothing processes are performed depending on the distance between the pixel of interest and the surrounding pixels in the fixed area. Then, it is obtained by changing the weight given to the pixel after the smoothing processing by the target pixel or the surrounding pixels.

【0075】上記構成および図11および図12に示す
フローチャートに基づいて、本実施の形態に係る画像処
理装置10による平滑化処理について説明する。
Smoothing processing by the image processing apparatus 10 according to the present embodiment will be described with reference to the above-described configuration and the flowcharts shown in FIGS. 11 and 12.

【0076】図11に示すように、本実施の形態におけ
る画像処理がスタートすると、まずスキャナ8等から入
力される画像データが入力画像用メモリ3に格納される
(S31)。次に、どのような平滑化処理を行うかを、
選択入力キー5により選択する(S32)。
As shown in FIG. 11, when the image processing in this embodiment is started, first, the image data input from the scanner 8 or the like is stored in the input image memory 3 (S31). Next, specify what kind of smoothing process
Selection is made by the selection input key 5 (S32).

【0077】そして、S33では上記で決まった特徴量
Pに応じて処理を分岐させる。例えば、特徴量Pが明度
i であればS34に進み、特徴量Pが明度の分散Di
であればS35に進み、特徴量Pがエッジ強度Ei であ
ればS36に進み、特徴量Pが色差Ci であればS37
に進み、それぞれ平滑化処理を行う。上記S34〜S3
7のいずれかの処理がなされた段階では、出力用画像メ
モリ4には、それぞれの平滑化処理が終了した画像が格
納されていることになる。
Then, in S33, the processing is branched according to the characteristic amount P determined above. For example, if the feature amount P is the lightness Y i , the process proceeds to S34, and the feature amount P is the lightness distribution D i.
If so, the process proceeds to S35, and if the feature amount P is the edge strength E i , the process proceeds to S36, and if the feature amount P is the color difference C i , S37.
Then, the smoothing process is performed for each. Above S34-S3
When any of the processes of 7 is performed, the output image memory 4 stores the images for which the respective smoothing processes have been completed.

【0078】上記S34〜S37における平滑化処理を
S34の場合を例に説明する。
The smoothing processing in S34 to S37 will be described by taking the case of S34 as an example.

【0079】S34では、図12に示す平滑化処理のサ
ブプログラムが起動する。
In S34, the smoothing process subprogram shown in FIG. 12 is started.

【0080】まず、S41およびS42で座標(x,
y)=(0,0)にして、この座標のときの画素を注目
画素iとして、輝度Ri 、Gi 、Bi を取り出す(S4
3)。
First, in S41 and S42, the coordinates (x,
y) = (0,0), the pixel at this coordinate is set as the pixel of interest i, and the luminances R i , G i , and B i are extracted (S4).
3).

【0081】次に、取り出した輝度Ri 、Gi 、Bi
ら明度Yi を求める(S44)。求めた明度Yi を特徴
量Pとして、重み付けパラメータVsを求める(S4
5)。
Next, the brightness Y i is obtained from the extracted brightnesses R i , G i and B i (S44). The weighting parameter Vs is calculated using the calculated lightness Y i as the characteristic amount P (S4).
5).

【0082】求めた重み付けパラメータVsを用いて、
注目画素iおよび周囲画素jn の輝度の重み付け平均を
求め、出力画像用メモリ4に格納する(S46)。
Using the obtained weighting parameter Vs,
A weighted average of the luminances of the target pixel i and the surrounding pixels j n is calculated and stored in the output image memory 4 (S46).

【0083】次に、xに1を足して(S47)、y=0
におけるX方向の画素全てに対して平滑化処理が完了し
ていなければ(S48)、再びS43に戻り、S43〜
S47までの処理を繰り返す。これによりy=0におけ
るX方向の全画素(X個)の平滑化処理が行えることに
なる。
Next, 1 is added to x (S47), and y = 0
If the smoothing process has not been completed for all pixels in the X direction in (S48), the process returns to S43 again, and from S43 to
The processing up to S47 is repeated. As a result, smoothing processing can be performed for all pixels (X pieces) in the X direction at y = 0.

【0084】また、S48で、y=0におけるX方向の
全画素の平滑化処理を終えると、yに1を足して(S4
9)、S50に進み、Y方向にY個の画素の処理の平滑
化処理を終えるまで、S42〜S49の処理を繰り返
す。
When the smoothing process for all pixels in the X direction at y = 0 is completed in S48, 1 is added to y (S4
9) The process proceeds to S50, and the processes of S42 to S49 are repeated until the smoothing process of the Y pixels in the Y direction is completed.

【0085】上記S34における処理が全て終了する
と、入力画像メモリ3に格納されている全ての画像デー
タが、選択した平滑化処理が成された状態で出力用画像
メモリ4に格納されていることになる。
When all the processes in S34 are completed, all the image data stored in the input image memory 3 is stored in the output image memory 4 in the state where the selected smoothing process is performed. Become.

【0086】上記処理においては、注目画素iと周囲画
素jn との距離Tjnに応じて、輝度Rj 、Gj 、Bj
注目画素iに与える重み付けを変化させている。
In the above process, the weighting given to the target pixel i of the brightnesses R j , G j , and B j is changed according to the distance T jn between the target pixel i and the surrounding pixels j n .

【0087】この平滑化処理の重み付け計算で使用する
重み付けパラメータVsは、注目画素iおよび周囲画素
n から得られる画素の特徴量Pに対し、例えば、次式
を用いて求めるとよい。
The weighting parameter Vs used in the weighting calculation of the smoothing process may be obtained by using, for example, the following equation for the feature amount P of the pixel obtained from the target pixel i and the surrounding pixels j n .

【0088】 Vs=To/P …(13) Vs=P/Td …(14) (To、Tdはいずれも特徴量の種類に応じた固定値) 式(10)の場合は特徴量Pの値が大きいほどVsが小さく
なり、逆に式(11)の場合は特徴量Pの値が大きいほどV
sが大きくなる。上記特徴量Pとしては、前記実施の形
態1で挙げた画素毎の明度Yi 、明度の分散Di 、エッ
ジ強度Ei 、あらかじめ定めた色との色差Ci 等があ
る。
Vs = To / P (13) Vs = P / Td (14) (To and Td are both fixed values according to the type of feature quantity) In the case of the expression (10), the value of the feature quantity P Is larger, Vs is smaller, and conversely, in the case of the formula (11), Vs is larger as the value of the feature amount P is larger.
s becomes large. The characteristic amount P includes the lightness Y i for each pixel, the lightness distribution D i , the edge strength E i , the color difference C i with a predetermined color, and the like described in the first embodiment.

【0089】そして、重み付け演算の具体的な計算方法
は、注目画素iに対して、周囲画素jn との距離Tj
遠くなるほど該周囲画素jn の輝度Rjn、Gjn、Bjn
影響が小さくなるように、輝度の平均値RM 、GM 、B
M を求めている。
Then, as a specific calculation method of the weighting calculation, the luminance R jn , G jn , and B jn of the peripheral pixel j n becomes larger as the distance T j from the target pixel i to the peripheral pixel j n increases. The average values of brightness R M , G M , and B are set so as to reduce the influence.
Seeking M.

【0090】例えば、輝度の平均値RM は、次式で得ら
れる。
For example, the average value R M of brightness is obtained by the following equation.

【0091】[0091]

【数7】 [Equation 7]

【0092】ただし、However,

【0093】[0093]

【数8】 [Equation 8]

【0094】である。上記の式を用いて、同様に輝度G
M 、BM も求めることができる。
It is Similarly, using the above equation, the brightness G
M and B M can also be obtained.

【0095】なお、上記では、距離関数としてチェス盤
距離を採用しており、以下で使用されるTh は、チェス
盤距離におけるTj の最大値を意味している。またこの
しきい値Th の値は同一の処理に対しては常に固定であ
るものとする。
In the above, the chess board distance is adopted as the distance function, and T h used below means the maximum value of T j in the chess board distance. Further, the value of the threshold value T h is always fixed for the same processing.

【0096】上記式においては、パラメータVsが大き
いほど、平滑化処理後の注目画素iに与える平滑化処理
前の注目画素iの成分の比率が高くなり、平滑化の度合
が減少する。計算結果の平均値RM 、GM 、BM が、平
滑化処理後の画素の輝度として出力画像用メモリ4に格
納される。
In the above equation, the larger the parameter Vs, the higher the ratio of the component of the pixel of interest i before the smoothing process to the pixel of interest i after the smoothing process, and the degree of smoothing decreases. The average values R M , G M , and B M of the calculation results are stored in the output image memory 4 as the brightness of the pixel after the smoothing process.

【0097】本実施の形態の場合には、特徴量Pによっ
て、周囲画素jn の範囲を変化させるのではなく、上記
式(15)(16)から分かるように、周囲画素jn と注目画素
iとの距離に応じた重み付けの度合いを変化させるよう
にしており、注目画素iの特徴量Pが大きいときには、
例えば式(14)に基づいてパラメータVsが大きくなるよ
うにすることにより、周囲画素jn からの影響を小さく
することができる。このとき、逆に特徴量Pが小さけれ
ば、パラメータVsが小さくなり、周囲画素jn からの
影響が大きくなる。これにより、厳密には異なるが、上
記式(13)によって、実施の形態1において式(2)を用い
たときの効果と類似の効果を得ることができ、また、上
記式(14)によって、実施の形態1において式(1)を用い
たときと類似の効果を得ることができる。
In the case of the present embodiment, the range of the surrounding pixels j n is not changed by the feature amount P, but as can be seen from the above equations (15) and (16), the surrounding pixels j n and the pixel of interest are The degree of weighting according to the distance from i is changed, and when the feature amount P of the target pixel i is large,
For example, by increasing the parameter Vs based on the equation (14), the influence from the surrounding pixels j n can be reduced. At this time, conversely, if the feature amount P is small, the parameter Vs becomes small and the influence from the surrounding pixels j n becomes large. Thereby, although strictly different, the above formula (13) can obtain an effect similar to the effect when the formula (2) is used in the first embodiment, and according to the above formula (14), It is possible to obtain an effect similar to that obtained by using the formula (1) in the first embodiment.

【0098】上記各実施の形態のように、注目画素iや
注目画素iの周囲画素jn の例えば輝度によって決まる
特徴量Pを用いて、注目画素iの平滑化処理を行う範囲
や重み付けを変化させることにより、特定の領域におけ
る平滑化の処理に軽重、あるいは、周囲画素の影響の及
ぶ領域の大小を意図的に変化させることが可能となる。
これにより、ユーザのイメージにより近い平滑化処理あ
るいは、新たなイメージを与える平滑化処理を実現する
ことができる。
As in each of the above-described embodiments, the range and weighting for performing the smoothing process on the target pixel i are changed by using the feature amount P determined by, for example, the brightness of the target pixel i and the surrounding pixels j n of the target pixel i. By doing so, it becomes possible to intentionally change the size of the area affected by the surrounding pixels, or the size of the area affected by the surrounding pixels.
Accordingly, it is possible to realize smoothing processing closer to the user's image or smoothing processing for giving a new image.

【0099】上記実施の形態1および2に記載の画像処
理装置にて、特徴量算出手段は、少なくとも上記特徴量
の一つとして、注目画素と近傍画素とにおける輝度に基
づいて注目画素および近傍画素の明度の分散を算出して
もよい。
The image processing described in the first and second embodiments.
In the processing device, the feature amount calculation means is at least the above feature amount.
As one of the
Then calculate the variance of the brightness of the pixel of interest and neighboring pixels.
Good.

【0100】例えば、ノイズを含んでいる場合には部分
的に明度の分散が大きくなるが、このノイズを除去する
場合に、入力画像において元々明度の分散が大きい領域
では画質の低下が大きくなる。そこで、上記の構成によ
り、明度の分散に応じて周囲画素の範囲や、重み付けの
分布を変化させてやれば、入力画像における明度の分散
が大きい領域を含む場合であっても、画像の質の変化を
防止した平滑化処理を実行したり、逆に、画像の質の違
いを強調させたりすることもできる。
For example, when noise is included, the partial
Although the variance of the brightness becomes large, this noise is removed.
In the case of
Then, the deterioration of the image quality becomes large. Therefore, with the above configuration
Range of surrounding pixels and weighting according to the variance of brightness.
If you change the distribution, the brightness distribution in the input image
Image quality changes, even when the
Prevented smoothing processing is performed, or conversely, image quality
It can also be emphasized.

【0101】それゆえ、ユーザが明度の分散のイメージ
を残したい、あるいは逆に除去したいような場合に応じ
て、全体的な明度の分散のイメージを変化させることが
できる。
Therefore, the user has an image of the dispersion of lightness.
Depending on when you want to leave
And change the image of the overall brightness distribution.
it can.

【0102】また、上記実施の形態1および2に記載の
画像処理装置にて、上記特徴量算出手段は、少なくとも
上記特徴量の一つとして、注目画素と近傍画素とにおけ
る輝度に基づいて求めた注目画素と近傍画素とを含む領
域のエッジ強度を算出してもよい。
Further , as described in the first and second embodiments.
In the image processing device, the feature amount calculation means is at least
As one of the above-mentioned feature quantities,
Area including the pixel of interest and neighboring pixels determined based on the brightness
The edge strength of the area may be calculated.

【0103】上記の構成により、エッジ強度が大きい領
域に対して、周囲画素の範囲を小さくしたり、重み付け
の分布を注目画素に集中させたりすることにより、エッ
ジを保持したままでの平滑化処理が可能となる。また、
もとの画像のイメージを残しつつエッジのみをぼけさせ
ることも可能となる。
With the above structure, the edge strength is high.
The area of surrounding pixels is reduced or weighted with respect to the area.
By concentrating the distribution of
It is possible to perform smoothing processing while holding the error. Also,
Blurring only the edges while preserving the original image
It also becomes possible.

【0104】それゆえ、エッジの有無を対象として、元
の画像のイメージを保ちつつ、エッジを曖昧にしたり残
したりといった処理ができる。
Therefore, with the presence or absence of edges as the target,
The edges of the image while preserving the image
You can perform processing such as doing.

【0105】[0105]

【発明の効果】請求項1の発明に係る画像処理方法は、
以上のように、注目画素の画素データもしくは注目画素
および該注目画素の近傍画素の画素データから求められ
る複数種類の特徴量から任意の特徴量を選択し、注目画
素の前記選択した特徴量の大きさに応じて、上記周囲画
素の範囲を変化させる場合に、少なくとも上記特徴量の
一つとして、注目画素の色と任意に設定可能な色との色
差を用いる構成である。
The image processing method according to the invention of claim 1 is
As described above, an arbitrary feature amount is selected from a plurality of types of feature amounts obtained from the pixel data of the target pixel or the pixel data of the target pixel and the pixels in the vicinity of the target pixel, and the size of the selected feature amount of the target pixel is selected. If the range of the surrounding pixels is changed according to the
One is the color of the pixel of interest and the color that can be set arbitrarily.
This is a configuration that uses the difference .

【0106】それゆえ、特徴量の大きさに応じて、すな
わち特徴の変化に応じて平滑化画素の範囲を変化させ、
入力画像のイメージを残しつつ特徴量に応じて新たな印
象を与える画像を作成できる。例えば、特徴量が大きく
なるほど、平滑化画素の範囲を広くするあるいは狭くす
るといった処理を行わせることにより、平滑化処理後の
画素に与える注目画素自身の画素データの割合が大きく
なったり小さくなったりする。つまり、注目画素の持つ
特徴を意図的に強めたりあるいは弱めたりするといった
効果を得ることができる。また、上記特徴量は複数のな
かから選択可能であるので、1つの入力画像に対して様
々な印象の複数の平滑化処理画像を得ることができると
いう効果を奏する。
Therefore, the range of the smoothed pixels is changed according to the size of the feature amount, that is, according to the change of the feature,
It is possible to create an image that gives a new impression according to the feature amount while leaving the image of the input image. For example, as the feature amount increases, the range of the smoothed pixel is widened or narrowed to increase or decrease the ratio of the pixel data of the pixel of interest given to the pixel after the smoothing process. To do. That is, it is possible to obtain the effect of intentionally strengthening or weakening the characteristics of the target pixel. In addition, since the feature amount can be selected from among a plurality of features, it is possible to obtain a plurality of smoothed images having various impressions with respect to one input image.

【0107】また、請求項2の発明に係る画像処理方法
は、以上のように、注目画素の画素データもしくは注目
画素および該注目画素の近傍画素の画素データから求め
られる複数種類の特徴量から任意の特徴量を選択し、注
目画素の前記選択した特徴量の大きさに応じて、注目画
素の画素データと上記周囲画素の画素データとが平滑化
処理後の画素データに与える重み付けの割合を変化させ
場合に、少なくとも上記特徴量の一つとして、注目画
素の色と任意に設定可能な色との色差を用いる構成であ
る。
As described above, the image processing method according to the second aspect of the present invention arbitrarily selects from a plurality of types of feature amounts obtained from the pixel data of the target pixel or the pixel data of the target pixel and its neighboring pixels. Of the target pixel and the pixel data of the target pixel and the pixel data of the surrounding pixels are changed in weighting ratio given to the pixel data after the smoothing process according to the size of the selected target pixel. In this case, at least one of the above feature values
This is a configuration that uses a color difference between a base color and a color that can be set arbitrarily .

【0108】それゆえ、特徴量の大きさに応じて、すな
わち特徴の変化に応じて周囲画素の画素データが与える
重み付けの割合を変化させ、入力画像のイメージを残し
つつ特徴量に応じて新たな印象を与える画像を作成でき
る。例えば、特徴量が大きくなるほど、周囲画素の重み
付けの割合を低くするあるいは高くするといった処理を
行わせることにより、平滑化処理後の画素に与える注目
画素自身の画素データの割合が大きくなったり小さくな
ったりする。この結果、請求項1と良く似た効果、つま
り注目画素の持つ特徴を意図的に強めたりあるいは弱め
たりするといった効果を得ることができる。また、上記
構成においても、特徴量は複数のなかから選択可能であ
るので、1つの入力画像に対して様々な印象の複数の平
滑化処理画像を得ることができるという効果を奏する。
Therefore, the weighting ratio given by the pixel data of the surrounding pixels is changed according to the size of the feature amount, that is, according to the change of the feature amount, and a new image is left according to the feature amount while leaving the image of the input image. Create impressive images. For example, as the feature amount increases, the weighting ratio of the surrounding pixels is decreased or increased, thereby increasing or decreasing the ratio of the pixel data of the pixel of interest given to the smoothed pixel. Or As a result, an effect similar to that of claim 1 can be obtained, that is, an effect of intentionally strengthening or weakening the characteristics of the target pixel can be obtained. Further, also in the above configuration, since the feature amount can be selected from a plurality of features, it is possible to obtain a plurality of smoothed images having various impressions with respect to one input image.

【0109】また、請求項3の発明に係る画像処理装置
は、以上のように、注目画素の画素データもしくは注目
画素および該注目画素の近傍画素の画素データから注目
画素の特徴量を計算する特徴量算出手段と、平滑化処理
に用いる特徴量を選択する特徴量選択手段と、選択され
た特徴量の値に応じて、該注目画素の周囲画素の範囲を
変えるように制御する平滑化処理手段とが設けられ、上
記特徴量算出手段は、少なくとも上記特徴量の一つとし
て、注目画素の色と任意に設定可能な色との色差を算出
する構成である。
As described above, the image processing apparatus according to the third aspect of the present invention calculates the feature amount of the pixel of interest from the pixel data of the pixel of interest or the pixel data of the pixel of interest and the pixels adjacent to the pixel of interest. Amount calculating means, feature amount selecting means for selecting a feature amount used for smoothing processing, and smoothing processing means for controlling so as to change the range of pixels around the pixel of interest according to the value of the selected feature amount. door is provided, above
The feature amount calculation means is at least one of the above feature amounts.
Calculates the color difference between the color of the pixel of interest and the color that can be set arbitrarily
This is the configuration.

【0110】それゆえ、特徴量という画素が元々有する
データによって、平滑化処理の範囲を変えることによ
り、入力画像のイメージを損なうことなく、新たな印象
を与える平滑化処理を行うことができるという効果を奏
する。特徴量は、ユーザが強めたいあるいは弱めたいイ
メージに応じて選択が可能である。
Therefore, it is possible to perform a smoothing process that gives a new impression, without damaging the image of the input image, by changing the range of the smoothing process according to the data originally possessed by the pixel called the feature amount. Play. The feature amount can be selected according to the image that the user wants to strengthen or weaken.

【0111】また、請求項4の発明に係る画像処理装置
は、以上のように、注目画素の画素データもしくは注目
画素および該注目画素の近傍画素の画素データから注目
画素の特徴量を計算する特徴量算出手段と、平滑化処理
に用いる特徴量を選択する特徴量選択手段と、選択され
た特徴量の値に応じて、注目画素の画素データと該注目
画素の周囲画素の画素データとが平滑化処理後の画素の
画素データに与える重み付けを変化させる平滑化処理手
段とが設けられ、上記特徴量算出手段は、少なくとも上
記特徴量の一つとして、注目画素の色と任意に設定可能
な色との色差を算出する構成である。
As described above, the image processing apparatus according to the invention of claim 4 calculates the feature amount of the pixel of interest from the pixel data of the pixel of interest or the pixel data of the pixel of interest and the pixels adjacent to the pixel of interest. Quantity calculation means, feature quantity selection means for selecting a feature quantity used for smoothing processing, and pixel data of a target pixel and pixel data of surrounding pixels of the target pixel are smoothed according to the value of the selected feature quantity. Smoothing processing means for changing the weighting given to the pixel data of the pixel after the smoothing processing is provided, and the feature amount calculating means is at least
As one of the feature values, it can be set arbitrarily with the color of the pixel of interest
This is a configuration for calculating a color difference from another color .

【0112】それゆえ、請求項3の発明と同様に、入力
画像のイメージを損なうことなく、新たな印象を与える
平滑化処理を行うことができるという効果を奏する。
Therefore, similar to the third aspect of the invention, there is an effect that the smoothing process that gives a new impression can be performed without damaging the image of the input image.

【0113】請求項3および4の発明に係る画像処理装
置の上記特徴量算出手段は、少なくとも上記特徴量の一
つとして、注目画素の色と任意に設定可能な色との色差
を算出する構成である。
The feature amount calculating means of the image processing apparatus according to the third and fourth aspects of the present invention is configured to calculate a color difference between the color of the pixel of interest and a color that can be set arbitrarily as at least one of the feature amounts. Is.

【0114】それゆえ、目的とする領域の色に併せて、
色を定めることにより、画像全体のイメージを保ちつ
つ、色に依存する特定の領域に対して平滑化処理の程度
を変化させることが可能となるという効果を奏する。
Therefore, in accordance with the color of the target area,
By defining the color, it is possible to change the degree of smoothing processing for a specific area depending on the color while maintaining the image of the entire image.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施の一形態に係る画像処理の流れを
示すフローチャートである。
FIG. 1 is a flowchart showing a flow of image processing according to an embodiment of the present invention.

【図2】本発明に係る画像処理装置の構成を示す機能ブ
ロック図である。
FIG. 2 is a functional block diagram showing a configuration of an image processing apparatus according to the present invention.

【図3】注目画素に対する8近傍画素と、8近傍画素の
明度との対応を示す説明図である。
FIG. 3 is an explanatory diagram showing a correspondence between 8 neighboring pixels and a brightness of the 8 neighboring pixels for a target pixel.

【図4】注目画素からのユークリッド距離Th が3以下
となる周囲画素とその領域を示す図である。
FIG. 4 is a diagram showing surrounding pixels and their regions in which the Euclidean distance T h from the target pixel is 3 or less.

【図5】注目画素からの市街区距離Th が3以下となる
周囲画素とその領域を示す図である。
FIG. 5 is a diagram showing surrounding pixels and a region in which the city block distance T h from the pixel of interest is 3 or less.

【図6】注目画素からのチェス盤距離Th が3以下とな
る周囲画素とその領域を示す示す図である。
FIG. 6 is a diagram showing surrounding pixels and a region in which the chessboard distance T h from the target pixel is 3 or less.

【図7】ある条件において、注目画素と周囲画素との距
離Th が3以下となる周囲画素とその領域の一例を示す
図である。
In [7] there condition is a diagram showing an example of a peripheral pixel distance T h between the target pixel and the surrounding pixels is 3 or less and its region.

【図8】ある条件において、注目画素と周囲画素との距
離Th が3以下となる周囲画素とその領域の他の例を示
す図である。
[8] In certain conditions, it is a diagram showing another example of a peripheral pixel distance T h between the target pixel and the surrounding pixels is 3 or less and its region.

【図9】図1におけるS4の平滑化処理の詳細を示すフ
ローチャートである。
9 is a flowchart showing details of the smoothing process of S4 in FIG.

【図10】図9におけるS16の周囲画素を求める処理
の詳細を示すフローチャートである。
FIG. 10 is a flowchart showing details of a process of obtaining surrounding pixels in S16 of FIG.

【図11】本発明の他の実施の形態に係る画像処理の流
れを示すフローチャートである。
FIG. 11 is a flowchart showing a flow of image processing according to another embodiment of the present invention.

【図12】図11におけるS34の平滑化処理の詳細を
示すフローチャートである。
FIG. 12 is a flowchart showing details of the smoothing process of S34 in FIG.

【符号の説明】[Explanation of symbols]

1 制御部(特徴量算出手段・平滑化処理手段) 2 プログラム用メモリ(特徴量算出手段・平滑化処
理手段) 5 選択入力キー(特徴量選択手段) Ri 、Gi 、Bi 輝度(画素データ) i 注目画素 jn 周囲画素 k 近傍画素 Yi 明度 Di 明度の分散 Ei エッジ強度 Ci 色差
1 control unit (feature amount calculating means / smoothing processing means) 2 program memory (feature amount calculating means / smoothing processing means) 5 selection input key (feature amount selecting means) R i , G i , B i luminance (pixels Data) i target pixel j n surrounding pixel k neighboring pixel Y i lightness D i lightness distribution E i edge strength C i color difference

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−348842(JP,A) 特開 昭63−253481(JP,A) 遠藤悦郎,Adobe Photos hop AtoZ,日本,株式会社ビ ー・エヌ・エヌ,1993年 2月,初版, p.232−239 (58)調査した分野(Int.Cl.7,DB名) G06T 5/00 - 5/50 H04N 1/40 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-6-348842 (JP, A) JP-A-63-253481 (JP, A) Endo Etsuro, Adobe Photoshops Hop AtoZ, Japan, BNN Co., Ltd.・ N, February 1993, first edition, p. 232-239 (58) Fields surveyed (Int.Cl. 7 , DB name) G06T 5/00-5/50 H04N 1/40

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力画像に対し、注目画素の画素データと
該注目画素の周囲画素の各画素データとに基づいて該注
目画素の平滑化処理を行う画像処理方法において、 注目画素の画素データもしくは注目画素および該注目画
素の近傍画素の画素データから求められる複数種類の特
徴量から任意の特徴量を選択し、注目画素の前記選択し
た特徴量の大きさに応じて、上記周囲画素の範囲を変化
させる場合に、少なくとも上記特徴量の一つとして、注
目画素の色と任意に設定可能な色との色差を用いること
を特徴とする画像処理方法。
1. An image processing method for performing a smoothing process on a target pixel based on pixel data of the target pixel and each pixel data of pixels surrounding the target pixel in an input image, the pixel data of the target pixel or An arbitrary feature amount is selected from a plurality of types of feature amounts obtained from pixel data of the pixel of interest and pixels in the vicinity of the pixel of interest, and the range of the surrounding pixels is selected according to the size of the selected feature amount of the pixel of interest. When changing , note that at least one of the above features is
An image processing method using a color difference between a color of an eye pixel and a color that can be set arbitrarily .
【請求項2】入力画像に対し、注目画素の画素データと
該注目画素の周囲画素の各画素データとに基づいて該注
目画素の平滑化処理を行う画像処理方法において、 注目画素の画素データもしくは注目画素および該注目画
素の近傍画素の画素データから求められる複数種類の特
徴量から任意の特徴量を選択し、注目画素の前記選択し
た特徴量の大きさに応じて、注目画素の画素データと上
記周囲画素の画素データとが平滑化処理後の画素データ
に与える重み付けの割合を変化させる場合に、少なくと
も上記特徴量の一つとして、注目画素の色と任意に設定
可能な色との色差を用いることを特徴とする画像処理方
法。
2. An image processing method for smoothing a pixel of interest based on pixel data of the pixel of interest and pixel data of pixels surrounding the pixel of interest in an input image. An arbitrary feature amount is selected from a plurality of types of feature amounts obtained from pixel data of the pixel of interest and pixels in the vicinity of the pixel of interest, and pixel data of the pixel of interest is selected according to the size of the selected feature amount of the pixel of interest. When changing the weighting ratio given to the pixel data after the smoothing process with the pixel data of the surrounding pixels , at least
Is also set as the color of the pixel of interest as one of the above feature values.
An image processing method using a color difference from possible colors .
【請求項3】入力画像に対し、注目画素の画素データと
該注目画素の周囲画素の各画素データとに基づいて該注
目画素の平滑化処理を行う画像処理装置において、 注目画素の画素データもしくは注目画素および該注目画
素の近傍画素の画素データから注目画素の特徴量を計算
する特徴量算出手段と、 平滑化処理に用いる特徴量を選択する特徴量選択手段
と、 選択された特徴量の値に応じて、上記周囲画素の範囲を
変えるように制御する平滑化処理手段とが設けられ 上記特徴量算出手段は、少なくとも上記特徴量の一つと
して、注目画素の色と 任意に設定可能な色との色差を算
出する ことを特徴とする画像処理装置。
3. An image processing device for performing smoothing processing on a target pixel based on pixel data of the target pixel and pixel data of pixels surrounding the target pixel for an input image. Feature amount calculating means for calculating the feature amount of the target pixel from the pixel data of the target pixel and the pixels in the vicinity of the target pixel, feature amount selecting means for selecting the feature amount used for smoothing processing, and the value of the selected feature amount According to the above, smoothing processing means for controlling so as to change the range of the surrounding pixels is provided, and the feature amount calculating means is at least one of the feature amounts.
The color difference between the pixel of interest and the color that can be set arbitrarily.
Image processing device characterized by being output.
【請求項4】入力画像に対し、注目画素の画素データと
該注目画素の周囲画素の各画素データとに基づいて該注
目画素の平滑化処理を行う画像処理装置において、 注目画素の画素データもしくは注目画素および該注目画
素の近傍画素の画素データから注目画素の特徴量を計算
する特徴量算出手段と、 平滑化処理に用いる特徴量を選択する特徴量選択手段
と、 選択された特徴量の値に応じて、注目画素の画素データ
と上記周囲画素の画素データとが平滑化処理後の画素の
画素データに与える重み付けを変化させる平滑化処理手
段とが設けられ 上記特徴量算出手段は、少なくとも上記特徴量の一つと
して、注目画素の色と任意に設定可能な色との色差を算
出する ことを特徴とする画像処理装置。
4. An image processing device for performing smoothing processing on a target pixel based on pixel data of the target pixel and pixel data of pixels surrounding the target pixel for an input image. Feature amount calculating means for calculating the feature amount of the target pixel from the pixel data of the target pixel and the pixels in the vicinity of the target pixel, feature amount selecting means for selecting the feature amount used for smoothing processing, and the value of the selected feature amount depending on the pixel data and the pixel data of the surrounding pixels are provided with smoothing processing means for changing the weighting given to the pixel data of the pixels after smoothing processing, the feature amount calculating unit of the pixel of interest, at least One of the above features
The color difference between the pixel of interest and the color that can be set arbitrarily.
Image processing device characterized by being output.
JP00898397A 1997-01-21 1997-01-21 Image processing method and image processing apparatus Expired - Fee Related JP3476641B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00898397A JP3476641B2 (en) 1997-01-21 1997-01-21 Image processing method and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00898397A JP3476641B2 (en) 1997-01-21 1997-01-21 Image processing method and image processing apparatus

Publications (2)

Publication Number Publication Date
JPH10208038A JPH10208038A (en) 1998-08-07
JP3476641B2 true JP3476641B2 (en) 2003-12-10

Family

ID=11707937

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00898397A Expired - Fee Related JP3476641B2 (en) 1997-01-21 1997-01-21 Image processing method and image processing apparatus

Country Status (1)

Country Link
JP (1) JP3476641B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3809818B2 (en) * 2000-07-06 2006-08-16 セイコーエプソン株式会社 Image processing method, recording medium, and image processing apparatus
JP4165220B2 (en) * 2000-07-06 2008-10-15 セイコーエプソン株式会社 Image processing method, program, and image processing apparatus
JP2003061105A (en) 2001-06-07 2003-02-28 Seiko Epson Corp Image processing method, image processing program, image processing apparatus, and digital still camera using the same
JP4169522B2 (en) 2002-03-22 2008-10-22 株式会社リコー Image processing apparatus, image processing program, and storage medium for storing the program
JP4461789B2 (en) * 2003-03-20 2010-05-12 オムロン株式会社 Image processing device
CN100458848C (en) * 2003-03-20 2009-02-04 欧姆龙株式会社 image processing device
JP2006087030A (en) * 2004-09-17 2006-03-30 Olympus Corp Noise reduction device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
遠藤悦郎,Adobe Photoshop AtoZ,日本,株式会社ビー・エヌ・エヌ,1993年 2月,初版,p.232−239

Also Published As

Publication number Publication date
JPH10208038A (en) 1998-08-07

Similar Documents

Publication Publication Date Title
JP4902837B2 (en) How to convert to monochrome image
US8290252B2 (en) Image-based backgrounds for images
US7639893B2 (en) Histogram adjustment for high dynamic range image mapping
US6057935A (en) Producing an enhanced raster image
US8681880B2 (en) Adaptive dithering during image processing
US20070268534A1 (en) Histogram adjustment for high dynamic range image mapping
JP4262151B2 (en) Image processing method, image processing apparatus, computer program, and storage medium
US7593590B2 (en) Image status estimating method, image correcting method, image correction apparatus, and storage medium
JP4064023B2 (en) Digital image halftone processing method and apparatus, and recording medium on which digital image halftone processing program is recorded
JP3689607B2 (en) Image processing method, apparatus, and storage medium
JP3128090B2 (en) How to modify the original image
JP3476641B2 (en) Image processing method and image processing apparatus
JPH07288768A (en) Video signal processing method and video signal processing device
JP4243362B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
JP4019204B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
CN116504190A (en) Image processing method, device and related equipment for electronic ink screen
JP4105378B2 (en) Image conversion apparatus and image conversion method
JP2009010636A (en) Adaption histogram equalization method, and adaption histogram equalization apparatus
JP4164215B2 (en) Image processing method, apparatus, and recording medium
JP4507338B2 (en) Image correction apparatus and recording medium on which image correction program is recorded
JP3921737B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
JP2000285232A5 (en)
JP4114319B2 (en) Image correction apparatus, image correction method, and computer-readable recording medium storing image correction program
JP2000285232A (en) Medium recording image sharpening program, image sharpening device, and image sharpening method
JP2005235238A (en) Image processing method, apparatus, and storage medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080926

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080926

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090926

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090926

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100926

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees