JPH0661104B2 - Smoothing method for image data - Google Patents
Smoothing method for image dataInfo
- Publication number
- JPH0661104B2 JPH0661104B2 JP61070596A JP7059686A JPH0661104B2 JP H0661104 B2 JPH0661104 B2 JP H0661104B2 JP 61070596 A JP61070596 A JP 61070596A JP 7059686 A JP7059686 A JP 7059686A JP H0661104 B2 JPH0661104 B2 JP H0661104B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- data
- original image
- converted
- 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.)
- Expired - Fee Related
Links
- 238000009499 grossing Methods 0.000 title claims description 39
- 238000000034 method Methods 0.000 title claims description 31
- 230000015654 memory Effects 0.000 description 32
- 238000006243 chemical reaction Methods 0.000 description 26
- 238000013144 data compression Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【発明の詳細な説明】 (発明の分野) 本発明はデータの平滑化方法に関するものである。Description: FIELD OF THE INVENTION The present invention relates to a data smoothing method.
(発明の技術的背景および先行技術) 画像に含まれる雑音を取り除くための手法として従来よ
り、画像データの平滑化処理(スムージング)が種々公
知となっている。また近時、画像データの伝送、記録時
の効率化のためのデータ圧縮(高能率符号化)について
の研究が進み、このデータ圧縮においては上記平滑化処
理が、データ圧縮効率を上げるための前処理として利用
されるようになっている。すなわち画像データにこの平
滑化処理を施すことにより、例えば前値予測符号化にあ
っては、差分値が小さくなってその符号数が短くて済む
ようになり、また直交変換符号化にあっては変換データ
が低周波成分側に集中するので、与える符号長が短くて
済む領域が広がってデータ圧縮率が上げやすくなるので
ある。(Technical background and prior art of the invention) Various smoothing processes (smoothing) of image data have been conventionally known as a method for removing noise included in an image. Recently, research on data compression (high-efficiency coding) for improving the efficiency of image data transmission and recording has progressed. In this data compression, the smoothing process is performed before the data compression efficiency is increased. It is used as a process. That is, by performing the smoothing process on the image data, for example, in the predictive predictive coding, the difference value becomes small and the number of codes becomes short, and in the orthogonal transform coding, Since the converted data is concentrated on the low frequency component side, the area where the code length to be given can be short is widened and the data compression rate is easily increased.
上記の画像データの平滑化方法で通常良く用いられるも
のとして、平均値スムージングや中央値スムージングが
挙げられる。平均値スムージングは、2次元画像の各画
素の画像データをそれぞれ、該画素を含む複数の隣接画
素(マスクサイズ内画素)のデータの平均値に置き換え
るものである。また中央値スムーシングは、上記のよう
な置換えにおいて、平均値の代わりに各データの中央値
を用いるようにしたものである。Mean value smoothing and median smoothing are commonly used in the above-described image data smoothing method. The average value smoothing replaces the image data of each pixel of the two-dimensional image with the average value of the data of a plurality of adjacent pixels (pixels within the mask size) including the pixel. Further, the median smoothing is such that, in the above replacement, the median of each data is used instead of the average.
これら平均値スムージングや中央値スムージングによれ
ば、画像データが効果的に平滑化されうるが、該平滑化
は画像データの変化が大きい部分は勿論変化が小さい部
分にも同様になされるので、画像中のディテール部分が
失われてしまうことも往々にしてある。According to these average value smoothing and median smoothing, the image data can be effectively smoothed. However, since the smoothing is performed not only in a portion where the change in the image data is large but also in a portion where the change is small, Often, the details inside are lost.
(発明の目的) そこで本発明は、画像信号の変化が大きい部分に関して
は顕著な平滑化効果が得られ、その一方上記変化が小さ
い部分に関しては平滑化のかかり過ぎを防止して、画像
中のディテール成分を残すことができる画像データの平
滑化方法を提供することを目的とするものである。(Object of the Invention) Therefore, according to the present invention, a significant smoothing effect can be obtained for a portion where the change of the image signal is large, and on the other hand, for the portion where the change is small, excessive smoothing can be prevented, and It is an object of the present invention to provide a smoothing method for image data that can leave a detail component.
(発明の構成) 本発明の画像データの平滑化方法は、2次元画像におけ
る画素Pに関する原画像データをxとし、該画素Pの縦
方向隣接画素Pa 、Pc (すなわち一方が上側隣接画素
で他方が下側隣接画素)、横方向隣接画素Pb 、Pd
(すなわち一方が左側隣接画素で他方が右側隣接画素)
それぞれの画像データをa、b、c、dとし、α、βを
正の定数として、 上記画像データaとbが所定値Q以上離れていない場
合、原画像データxを、該xと(a+α)と(a−α)
と(b+β)と(b−β)の中央値であるx′に変換す
る一方、上記画像データaとbとが所定値Q以上離れて
いる場合、原画像データxを該aとbの値に基づいて平
滑化してx′に変換する処理を、各原画像データに対し
て一定の順序で次々と行なうとともに(ただしa、bは
隣接画素Pa 、Pb の各原画像データに対して該処理を
行なって得られた変換データである)、 以上述べた処理と同様の処理を上記順序と逆の順序で、
つまり前記画像データa、bの代わりに画像データc、
dを用いて行ない(これらc、dは隣接画素Pc 、Pd
の各画像データに対して該処理を行なって得られた変換
データである)、 同一画素に関する上記変換データx′と変換データx″
との平均値をそれぞれ求めて、それらを各画素の平滑化
データとすることを特徴とするものである。(Structure of the Invention) According to the image data smoothing method of the present invention, the original image data relating to the pixel P in the two-dimensional image is defined as x, and the vertically adjacent pixels Pa and Pc of the pixel P (that is, one is the upper adjacent pixel and the other is the other adjacent pixel). Is a lower adjacent pixel), and laterally adjacent pixels Pb, Pd
(That is, one is the left adjacent pixel and the other is the right adjacent pixel)
When the respective image data are a, b, c and d, and α and β are positive constants, and the image data a and b are not separated by a predetermined value Q or more, the original image data x is replaced with the x (a + α). ) And (a-α)
And (b + β) and (b−β), which are the median values, are converted to x ′, and when the image data a and b are separated by a predetermined value Q or more, the original image data x is converted to the values of a and b. Is performed on each original image data one after another in a fixed order (where a and b are the same for each original image data of the adjacent pixels Pa and Pb). Converted data obtained by performing the above), the same processing as the above-mentioned processing in the reverse order to the above order,
That is, instead of the image data a and b, the image data c,
d (these c and d are adjacent pixels Pc and Pd).
The converted data obtained by performing the processing on each image data of
It is characterized in that the average values of and are obtained respectively and used as the smoothed data of each pixel.
なお上記の平滑化処理としては、例えばx′=(a+
b)/2およびx″=(c+d)/2とする平均値スム
ージング等が利用可能である。As the above smoothing processing, for example, x ′ = (a +
b) / 2 and x ″ = (c + d) / 2 can be used as the average value smoothing.
(実施態様) 以下、図面に示す実施態様に基づいて本発明を詳細に説
明する。(Embodiment) Hereinafter, the present invention will be described in detail based on an embodiment shown in the drawings.
第1図は、本発明の一実施態様方法によって画像データ
の平滑化を行なう装置の一例を示すものである。第1図
に示される装置は例えばコンピュータシステム等からな
り、光ディスク、磁気ディスク等の画像ファイル10に記
憶されている原画像データxは1画素行分(M画素)ず
つラインバッファメモリ11に入力、記憶される。この1
画素行分の画像データは後述の処理を受けた後、順次ラ
インバッファメモリ12に転送され、この転送と同期して
次々と後続の原画像データxが1画素行分ずつラインバ
ッファメモリ11に入力される。すなわち例えば、第2図
に示す画素Pa を含む上から第(n−1)番目の画素行
の画像データ(後述する変換データである)がラインバ
ッファメモリ12に記憶されているとき、上から第n番目
の画素行の画像データ(画素Pb 、P、Pd のデータを
含むものである)がラインバッファメモリ11に記憶され
ている。ここで第2図の画素Pa 、Pb ,Pc およびP
d はそれぞれ、画素Pに対する上方向、左方向、下方向
および右方向の隣接画素である。FIG. 1 shows an example of an apparatus for smoothing image data by a method according to an embodiment of the present invention. The apparatus shown in FIG. 1 is composed of, for example, a computer system, and the original image data x stored in the image file 10 of an optical disk, a magnetic disk or the like is input to the line buffer memory 11 for each one pixel row (M pixels). Remembered. This one
The image data for the pixel rows is sequentially transferred to the line buffer memory 12 after being subjected to the processing described later, and the succeeding original image data x is sequentially input to the line buffer memory 11 one pixel row at a time in synchronization with this transfer. To be done. That is, for example, when the image data of the (n-1) th pixel row from the top (which is the conversion data described later) including the pixel Pa shown in FIG. 2 is stored in the line buffer memory 12, The image data of the nth pixel row (including the data of the pixels Pb, P, Pd) is stored in the line buffer memory 11. Here, the pixels Pa, Pb, Pc and P of FIG.
d is an adjacent pixel to the pixel P in the upward direction, the leftward direction, the downward direction, and the rightward direction.
また上記原画像データxは、ラインバッファメモリ21に
も入力、記憶される。この場合は、まず第2図の最下位
の画素行から原画像データxがラインバッファメモリ21
に入力され、後述の処理を受けてから順次ラインバッフ
ァメモリ22に転送される。すなわち上から第n番目の画
素行の画像データがラインバッファメモリ21に記憶され
ているとき、ラインバッファメモリ22には上から第(n
+1)番目の画素行の画像データ(後述する変換データ
である)が記憶されている。The original image data x is also input and stored in the line buffer memory 21. In this case, first, the original image data x from the lowest pixel row in FIG.
Are sequentially input to the line buffer memory 22 after being processed. That is, when the image data of the n-th pixel row from the top is stored in the line buffer memory 21, the line buffer memory 22 stores the (n
Image data (conversion data described later) of the (+1) th pixel row is stored.
以下、第2図の第n番目の画素行の画素P、すなわち画
素Pa 、Pb 、Pc 、Pd によって四方から囲まれる画
素のデータを平滑化する場合を例にとって、本発明方法
を詳しく説明する。画素Pが第2図において左から第m
番目の画素列に含まれるものとし、この画素Pに関する
原画像データをxmとする。ラインバッファメモリ11か
らはこの原画像データxmと、左方向隣接画素Pb に関
する画像データxm-1′が読み出され、演算部13に送ら
れる。なお上記画像データxm-1′は画素Pb に関する
データであるが原画像データではなく、後に説明するよ
うな変換を受けた変換データである。この画像データx
m-1′を以下bと示す。またラインバッファメモリ12か
らは、上記画素Pの上方向隣接画素Pa に関するデータ
xm′(これも原画像データではなく後述する変換を受
けた変換データである)が読み出され、演算部13に送ら
れる。なおこのラインバッファメモリ12から読み出され
るデータxm′を以下aと示す。Hereinafter, the method of the present invention will be described in detail by taking as an example the case of smoothing the data of the pixel P of the nth pixel row in FIG. 2, that is, the pixel surrounded by the pixels Pa, Pb, Pc, and Pd from all sides. Pixel P is mth from the left in FIG.
It is assumed to be included in the th pixel row, and the original image data regarding this pixel P is x m . The original image data x m and the image data x m-1 ′ regarding the left adjacent pixel Pb are read from the line buffer memory 11 and sent to the calculation unit 13. Although the image data x m-1 ′ is data relating to the pixel Pb, it is not original image data but converted data which has undergone conversion as will be described later. This image data x
Hereinafter, m-1 'is referred to as b. Further, the data x m ′ (which is not the original image data but also the converted data which has been subjected to the conversion described later) regarding the upper adjacent pixel Pa of the pixel P is read out from the line buffer memory 12, and the arithmetic unit 13 is read. Sent. The data x m ′ read from the line buffer memory 12 is indicated as a below.
上記演算部13には、それぞれ定数発生部14、15から発生
された正の定数α、βを示す信号が送られ、この演算部
13は上記画像データaとbとの差の絶対値|a−b|が
所定値Q=(α+β)以上有るか否かを判別する。そし
て第3A図あるいは第3B図に示すように、 |a−b|≧(α+β)の場合、 演算部13は該aとbとの値の平均値(a+b)/2を演
算し、この値を原画像データxmの変換データ(平滑化
データ)xm′として出力する。Signals indicating the positive constants α and β generated from the constant generators 14 and 15, respectively, are sent to the arithmetic unit 13, and the arithmetic units
13 determines whether or not the absolute value | ab | of the difference between the image data a and b is greater than or equal to a predetermined value Q = (α + β). Then, as shown in FIG. 3A or FIG. 3B, when | a−b | ≧ (α + β), the calculation unit 13 calculates the average value (a + b) / 2 of the values of a and b, and this value Is output as converted data (smoothed data) x m ′ of the original image data x m .
一方第4A図あるいは第4B図に市すように、 |a−b|<(α+β)の場合、 演算部13は(a+α)、(a−α)、(b+β)、(b
−β)および原画像データxmの中央値を判別し、この
中央値を原画像データxmの変換データxm′として出
力する。この中央値は、例えばb≦aのときは (a−α)≦xm≦(b+β)ならばxm (b+β)<xmならばb+β xm<(a−α)ならばa−αであり、 一方a<bのときは (b−β)≦xm≦(a+α)ならばxm (a+α)<xmならばa+α xm<(b−β)ならばb−βである。On the other hand, as shown in FIG. 4A or FIG. 4B, in the case of | a−b | <(α + β), the operation unit 13 calculates (a + α), (a−α), (b + β), (b
Determine the median-beta) and the original image data x m, and outputs the median value as the transformed data x m of the original image data x m '. This median is, for example, when b ≦ a, (a−α) ≦ x m ≦ (b + β), x m (b + β) <x m , b + β x m <(a−α), a−α On the other hand, when a <b, if (b−β) ≦ x m ≦ (a + α), then x m (a + α) <x m, then if a + α x m <(b−β), then b−β. .
以上述べたような中央値あるいは平滑化データである変
換データxm′はラインバッファメモリ11に送られ、原
画像データxmと置き換えて書き込まれる。以上のよう
にして原画像データxmをxm′に変換する処理が終了
すると、ラインバッファメモリ11において相隣接する2
つの画像データを読み出すアドレスが1つ繰り上げら
れ、ラインバッファメモリ12においても1つの画像デー
タを読み出すアドレスが1つ繰り上げられた上で、前述
と同様に各メモリ11、12から画像データが読み出され
る。すなわちラインバッファメモリ11からは原画像デー
タxm+1と、前述の変換データxm′とが読み出され
る。またラインバッファメモリ12からは、変換データx
m+1′すなわち第2図において第(n−1)行第(m+
1)列の画素に関する変換データが読み出される。これ
らの原画像データxm+1と変換データxm′およびxm+1
は演算部13に送られ、原画像データxm+1は、原画像デ
ータxmに対してなされた前記変換処理と同様の処理を
受ける。なお以上の説明から明らかなように、前述の原
画像データxmを変換処理する際に該原画像データxm
とともにラインバッファメモリ11から読み出された画像
データxm-1は、原画像データxm-1(第2図の画素Pb
に関する原画像データ)に上記変換処理を施して得られ
た変換データである。The converted data x m ′, which is the median value or the smoothed data as described above, is sent to the line buffer memory 11 and written in place of the original image data x m . When the processing of converting the original image data x m into x m ′ is completed as described above, the two adjacent two in the line buffer memory 11
One address for reading one image data is advanced, and one address for reading one image data is also advanced for the line buffer memory 12, and then the image data is read from each of the memories 11 and 12 as described above. That is, the original image data x m + 1 and the above-mentioned converted data x m ′ are read from the line buffer memory 11. In addition, the conversion data x from the line buffer memory 12
m + 1 ', that is, in FIG. 2, line (n-1), line (m +
1) The conversion data regarding the pixels in the column is read out. These original image data x m + 1 and converted data x m ′ and x m + 1
Is sent to the calculation unit 13, and the original image data x m + 1 is subjected to the same processing as the conversion processing performed on the original image data x m . Incidentally As apparent from the above description, the original image data x m in the conversion process of the original image data x m described above
The image data x m-1 read out from the line buffer memory 11 together with the original image data x m-1 (pixel Pb in FIG.
(Original image data regarding) is conversion data obtained by performing the above conversion processing.
以上説明したようにして、第n番目の画素行のすべての
原画像データに対する変換処理が終了すると、ラインバ
ッファメモリ11に記憶されている全変換データはライン
バッファメモリ12に転送され、ラインバッファメモリ12
に記憶されていた全変換データはフレームメモリ16に転
送、記憶される。次いで第2図の第(n+1)番目の画
素行の各原画像データに対して、第n番目の画素行の各
原画像データに対するのと同様の変換処理を施し、以下
同様に最後の画素行まで同様の変換処理を行なう。以上
の説明から明らかなように、前述の第n番目の画素行の
原画像データxmを変換処理する際にラインバッファメ
モリ12から読み出された画像データxm′は、原画像デ
ータxm(第2図の画素Pa に関する原画像データ)に
上記変換処理を施して得られた変換データである。なお
第1番目の画素行および第1番目の画素列の原画像デー
タに対しては、上述のような変換処理を施すことはでき
ないので、原画像データそのままの値を変換データとす
る。また第2番目の画素行およびおよび第2番目の画素
列の原画像データにも、上述と全く同じ変換処理を施す
ことはできないので、適宜第1行の原画像データ、第1
列の原画像データを用いて類似の変換処理を行う。As described above, when the conversion process for all the original image data of the nth pixel row is completed, all the converted data stored in the line buffer memory 11 is transferred to the line buffer memory 12, 12
All the converted data stored in the memory are transferred to and stored in the frame memory 16. Then, the same conversion processing as that for each original image data of the nth pixel row is performed on each original image data of the (n + 1) th pixel row in FIG. The same conversion process is performed up to. As is apparent from the above description, the image data x m ′ read out from the line buffer memory 12 when converting the original image data x m of the n-th pixel row is the original image data x m. It is the converted data obtained by performing the above conversion process on (the original image data relating to the pixel Pa in FIG. 2). Note that the original image data of the first pixel row and the first pixel column cannot be subjected to the conversion processing as described above, so the original image data value is used as the converted data. Further, since the same conversion processing as described above cannot be applied to the original image data of the second pixel row and the second pixel column, the original image data of the first row,
Similar conversion processing is performed using the original image data of the column.
先に述べた通り画像ファイル10から読み出された原画像
データxは、ラインバッファメモリ21にも入力され、ラ
インバッファメモリ21、22および前記演算部13と同様の
演算部23とにより、前述の変換処理と同様の変換処理を
受ける。ただしこの場合原画像データxは、第2図の最
下位の画素行のデータから順次ラインバッファメモリ21
に送られ、また各行の原画像データxは第2図中右側の
画素から順次左側に向かって変換処理を受ける。すなわ
ち例えば画素Pに関する原画像データは、画素Pc に関
する変換データcと、画素Pd に関する変換データdと
に基づいて前述の変換処理を受ける。より具体的に説明
すれば、 |c−d|≧(α+β)の場合、 原画像データxmは(c+d)/2なる平滑化データに
変換され、 |c−d|<(α+β)の場合、 原画像データxmは、(c+α)、(c−α)、(d+
β)、(d−β)および該xmの中央値に変換されて、
変換データxm″とされる。以上のようにして得られた
全変換データはフレームメモリ26に転送、記憶される。
なお上記変換データxm″を求める場合と、前述の変換
データxm′を求める場合とで定数αの値は等しくされ
るが、僅かに異なっていても実質的に同じであればよい
(定数βについても同様)。As described above, the original image data x read out from the image file 10 is also input to the line buffer memory 21, and the line buffer memories 21 and 22 and the arithmetic unit 23 similar to the arithmetic unit 13 described above It receives the same conversion process as the conversion process. However, in this case, the original image data x is sequentially stored in the line buffer memory 21 from the data of the lowest pixel row in FIG.
The original image data x of each row is sequentially subjected to conversion processing from the pixel on the right side in FIG. 2 toward the left side. That is, for example, the original image data regarding the pixel P is subjected to the above-described conversion processing based on the conversion data c regarding the pixel Pc and the conversion data d regarding the pixel Pd. More specifically, in the case of | c−d | ≧ (α + β), the original image data x m is converted into smoothed data of (c + d) / 2, and in the case of | c−d | <(α + β) , The original image data x m is (c + α), (c−α), (d +
β), (d−β) and the median of the x m ,
Converted data x m ″. All converted data obtained as described above are transferred and stored in the frame memory 26.
The value of the constant α is made equal in the case of obtaining the above-mentioned converted data x m ″ and the case of obtaining the above-mentioned converted data x m ′, but it may be slightly different as long as it is substantially the same (constant). The same applies for β).
フレームメモリ16に記憶された変換データx′およびフ
レームメモリ26に記憶された変換データx″は平均値演
算部18によって順次読み出され、同一の画素毎に両変換
データの平均値x0=(x′+x″)/2が求められ
る。この平均値x0は、原画像データxの平滑化データ
として出力され、例えばCRT、光走査記憶装置等の画
像再生装置に送られて画像再生に供せられたり、光ディ
スク、磁気ディスク等の記録媒体を用いる記録装置に送
られてこれらの媒体に記録されたり、あるいは前述した
画像データ圧縮にかけられたりする。The conversion data x ′ stored in the frame memory 16 and the conversion data x ″ stored in the frame memory 26 are sequentially read by the average value calculator 18, and the average value x 0 = (of both conversion data for each same pixel). x '+ x ") / 2 is required. This average value x 0 is output as smoothed data of the original image data x and sent to an image reproducing device such as a CRT or an optical scanning storage device for image reproduction or recording on an optical disk, a magnetic disk or the like. It is sent to a recording device using a medium and recorded on these media, or subjected to the above-mentioned image data compression.
なお以上説明した実施態様においては、 |a−b|、|c−d|≧(α+β)のとき、それぞれ
原画像データxを(a+b)/2=x′、(c+d)/
2=x″なる値に変換して平滑化を行なっているが、こ
の平滑化は比較的平滑化の効果が高いその他の平滑化方
法によって行なってもよい。また以上説明の実施態様に
おいては、上記平滑化処理と、前述の中央値に変換する
処理のいずれを行なうかを決めるための所定値Qとし
て、上記のように(α+β)の値を用いているが、この
所定値はその他の適当な値が用いられてもよい。また上
記αとβの値は、互いに同じ値とされてもよいし、ある
いは異なる値とされてもよい。In the embodiment described above, when | a−b | and | c−d | ≧ (α + β), the original image data x is (a + b) / 2 = x ′, (c + d) /
Although the value is converted into a value of 2 = x ″ and smoothing is performed, this smoothing may be performed by another smoothing method having a relatively high smoothing effect. Further, in the embodiment described above, Although the value of (α + β) is used as the predetermined value Q for determining whether to perform the smoothing process or the process of converting to the median value described above, this predetermined value may be any other appropriate value. The values of α and β may be the same or different from each other.
(発明の効果) 以上詳細に説明した通り本発明の画像データの平滑化方
法によれば、原画像データの変化が大きい領域において
のみ効果の高い平滑化処理を行ない、原画像データの変
化が小さい領域においては平滑化の効果が小さく抑えら
れるようになっているから、画像中、目立ちやすい雑音
が確実に低減され、その一方画像中のディテール成分は
残されるようになる。そして本発明方法によれば、原画
像データの変化が大きい領域においてもまた変化が小さ
い領域においても、平滑化処理は既に平滑化処理がなさ
れた2次元方向隣接画素の変換データに基づいて行なわ
れるので、平滑化後の変換データの変化特性が原画像デ
ータの変化特性と著しく異なってしまうようなことがな
く、例えばエッジ成分がボケてしまうようなことも防止
できる。(Effect of the Invention) As described in detail above, according to the image data smoothing method of the present invention, highly effective smoothing processing is performed only in an area where the change in the original image data is large, and the change in the original image data is small. Since the smoothing effect is suppressed to be small in the region, noise that is easily noticeable in the image is surely reduced, while the detail component in the image remains. According to the method of the present invention, the smoothing process is performed on the basis of the converted data of the two-dimensional direction adjacent pixels which have already been smoothed, in the region where the change in the original image data is large and the region where the change is small. Therefore, the change characteristic of the converted data after smoothing does not significantly differ from the change characteristic of the original image data, and it is possible to prevent blurring of the edge component, for example.
第1図は本発明方法を実施する装置の一例を示す概略
図、 第2図は本発明方法により平滑化がなされる画素と隣接
画素との関係を示す説明図、 第3A、3B、4A図および4B図はそれぞれ、本発明
に係る隣接画素の変換画像データ値の分布例を示すグラ
フである。 10……画像ファイル 11、12、21、22……ラインバッファメモリ 13、23……演算部、14、15……定数発生部 16、26……フレームメモリ、18……平均値演算部 x……原画像データ x′、x″……変換画像データ x0……平滑化データ a、b、c、d……変換データ P、Pa 、Pb 、Pc 、Pd ……画素FIG. 1 is a schematic view showing an example of an apparatus for carrying out the method of the present invention, FIG. 2 is an explanatory view showing a relationship between a pixel smoothed by the method of the present invention and an adjacent pixel, FIGS. 3A, 3B and 4A. 4B and 4B are graphs showing an example of distribution of converted image data values of adjacent pixels according to the present invention. 10 …… Image file 11, 12, 21, 22 …… Line buffer memory 13, 23 …… Calculation section, 14, 15 …… Constant generation section 16, 26 …… Frame memory, 18 …… Average value calculation section x… ... Original image data x ', x "... converted image data x 0 ... smoothed data a, b, c, d ... converted data P, Pa, Pb, Pc, Pd ... pixels
Claims (3)
データをxとし、該画素Pの縦方向隣接画素Pa 、Pc
、横方向隣接画素Pb 、Pd それぞれの画像データを
a、b、c、dとし、α、βを正の定数として、 前記画像データaとbとが所定値Q以上離れていない場
合、前記原画像データxを該xと(a+α)と(a−
α)と(b+β)と(b−β)の中央値であるx′に変
換する一方、前記画像データaとbが所定値Q以上離れ
ている場合、前記原画像データxを該aとbの値に基づ
いて平滑化してx′に変換する処理を、各原画像データ
に対して一定の順序で次々と行なうとともに(ただし
a、bは前記隣接画素Pa 、Pb の各原画像データに対
して該処理を行なって得られた変換データ)、 前記画像データcとdとが所定値Q以上離れていない場
合、前記原画像データxを該xと(c+α)と、(c−
α)と(d+β)と(d−β)の中央値であるx″に変
換する一方、前記画像データcとdが所定値Q以上離れ
ている場合、前記原画像データxを該cとdの値に基づ
いて平滑化してx″に変換する処理を、各原画像データ
に対して前記順序と逆の順序で次々と行ない(ただし
c、dは前記隣接画素Pc 、Pd の各原画像データに対
して該処理を行なって得られた変換データ)、 同一画素に関する前記変換データx′と変換データx″
との平均値をそれぞれ求めて、それらを各画素の平滑化
データとすることを特徴とする画像データの平滑化方
法。1. Original image data relating to a pixel P in a two-dimensional image is defined as x, and pixels P a and P c adjacent to the pixel P in the vertical direction are defined.
, Ab, c, d are the image data of the adjacent pixels Pb, Pd in the horizontal direction, and α and β are positive constants. If the image data a and b are not separated by a predetermined value Q or more, The image data x is defined as x, (a + α) and (a−
α), (b + β), and (b−β), which are the median values, are converted to x ′, and when the image data a and b are separated by a predetermined value Q or more, the original image data x are converted to a and b. The process of smoothing based on the value of x and converting into x'is performed for each original image data one after another in a fixed order (where a and b are for each original image data of the adjacent pixels Pa and Pb). If the image data c and d are not separated from each other by a predetermined value Q or more, the original image data x is converted to x and (c + α), (c-
α), (d + β) and (d−β) are converted to x ″ which is the median value, and when the image data c and d are separated by a predetermined value Q or more, the original image data x is converted to c and d. The process of smoothing based on the value of x and converting into x ″ is sequentially performed on each original image data in the reverse order to the above (where c and d are the original image data of the adjacent pixels Pc and Pd, respectively). Converted data obtained by performing the above processing), the converted data x ′ and the converted data x ″ for the same pixel
An image data smoothing method, characterized in that the average values of and are obtained and used as the smoothed data of each pixel.
びx″=(c+d)/2とする平均値スムージングであ
ることを特徴とする特許請求の範囲第1項記載の画像デ
ータの平滑化方法。2. The image data according to claim 1, wherein the smoothing is average value smoothing with x '= (a + b) / 2 and x "= (c + d) / 2. Smoothing method.
特徴とする特許請求の範囲第1項または第2項記載の画
像データの平滑化方法。3. The image data smoothing method according to claim 1, wherein the predetermined value Q is Q = α + β.
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61070596A JPH0661104B2 (en) | 1986-03-28 | 1986-03-28 | Smoothing method for image data |
| EP87103861A EP0238045B1 (en) | 1986-03-17 | 1987-03-17 | Method of smoothing image signals |
| DE3751841T DE3751841T2 (en) | 1986-03-17 | 1987-03-17 | Process for smoothing image signals |
| US07/026,702 US4827533A (en) | 1986-03-17 | 1987-03-17 | Method of smoothing image signals |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61070596A JPH0661104B2 (en) | 1986-03-28 | 1986-03-28 | Smoothing method for image data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62226383A JPS62226383A (en) | 1987-10-05 |
| JPH0661104B2 true JPH0661104B2 (en) | 1994-08-10 |
Family
ID=13436101
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61070596A Expired - Fee Related JPH0661104B2 (en) | 1986-03-17 | 1986-03-28 | Smoothing method for image data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0661104B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63155372A (en) * | 1986-12-19 | 1988-06-28 | Fujitsu Ltd | Filtering circuit |
-
1986
- 1986-03-28 JP JP61070596A patent/JPH0661104B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62226383A (en) | 1987-10-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS62295583A (en) | Image reconstitution method from image data subjected to compression processing | |
| JP2811175B2 (en) | Orthogonal transform coding method for image data | |
| KR100271994B1 (en) | Method and apparatus for fast two-dimensional cosine transform filtering | |
| JPH069061B2 (en) | Smoothing method for image data | |
| JPH08214309A (en) | Image signal decoding device | |
| US5555321A (en) | Image data binary coding method and apparatus | |
| JPH0661104B2 (en) | Smoothing method for image data | |
| JP4097108B2 (en) | Wavelet transform device and encoding / decoding device | |
| US5311307A (en) | Image processing method | |
| JPH06292184A (en) | Encoding method | |
| JP2001285643A (en) | Image conversion apparatus and method | |
| JPS62196990A (en) | Orthogonal transform coding method for picture data | |
| JPH0714210B2 (en) | Orthogonal transform coding method for image data | |
| JPH02154571A (en) | Still picture decoding system and its device | |
| JPH11136674A (en) | Image encoding method and storage medium | |
| JPH02299370A (en) | Data coding | |
| JP2687417B2 (en) | Automatic linear density switching system for facsimile machines | |
| JP2527352B2 (en) | Image data compression device by vector quantization | |
| JPH04336896A (en) | Moving picture storage device | |
| JPH0551226B2 (en) | ||
| JPH0622297A (en) | Motion compensation coder | |
| JP2637836B2 (en) | Video signal compression and playback system | |
| JPH0722393B2 (en) | Orthogonal transform coding method for image data | |
| JP3146645B2 (en) | Image data processing device | |
| JPS62164376A (en) | Picture data restoration device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |