JP2004318356A - Image processing device, image processing method, and its program - Google Patents
Image processing device, image processing method, and its program Download PDFInfo
- Publication number
- JP2004318356A JP2004318356A JP2003109731A JP2003109731A JP2004318356A JP 2004318356 A JP2004318356 A JP 2004318356A JP 2003109731 A JP2003109731 A JP 2003109731A JP 2003109731 A JP2003109731 A JP 2003109731A JP 2004318356 A JP2004318356 A JP 2004318356A
- Authority
- JP
- Japan
- Prior art keywords
- contour
- pixel
- value
- outline
- image processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 17
- 230000002093 peripheral effect Effects 0.000 claims abstract description 28
- 238000000034 method Methods 0.000 claims description 76
- 238000000605 extraction Methods 0.000 abstract description 27
- 239000011159 matrix material Substances 0.000 abstract description 13
- 238000010586 diagram Methods 0.000 description 23
- 230000002708 enhancing effect Effects 0.000 description 6
- 239000000284 extract Substances 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Picture Signal Circuits (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
この発明は、画像処理装置に関し、特に、好適な輪郭強調処理を施された画像が得られるようにした画像処理装置、画像処理方法及びそのプログラムに関する。
【0002】
【従来技術】
【特許文献1】特開2000−242779号公報
【0003】
画像処理システムでは、画質の向上を図るために画像の輪郭を鮮鋭にする輪郭強調処理を施している。図9は、輪郭強調処理を行う従来の画像処理装置900 のブロック図である。従来の画像処理装置では、画像が入力されると、領域抽出部901 において、例えば図10に示すような着目画素▲5▼を中心とした3×3画素領域が抽出される。そして、輪郭抽出部902 において、抽出された画素領域と、図11に示すようなマトリクスとを用いて、2次元マトリクス演算が行われ、画像の輪郭が抽出される。
【0004】
この演算は、全ての画素に対して一様に行うため、画像に含まれるノイズをも輪郭として演算する。この輪郭として演算されたノイズを除去するために、コアリング処理部903 において、輪郭として抽出したデータに対して、設定値以下の値を持つデータはノイズとみなして、値を0に固定するノイズ除去処理を行っている。その後、輪郭強調部904 において、コアリング処理部903 から出力される輪郭データと着目画素の入力値を加算して輪郭強調処理を行っていた。
【0005】
具体的には、例えば、図12に示すような輪郭部の画像データが入力されると、輪郭抽出部902 により、図13の(A)に示すような輪郭データが抽出される。ここで、コアリング処理部903 における、上述の設定値が8と設定されているとすると、輪郭強調処理部904 を経て出力される、図12の画像データの輪郭強調処理結果は、図13の(B)に示すようになる。
【0006】
しかし、この方法では、図16に示すような平坦部に孤立ノイズが含まれる画像データは、輪郭抽出部902 において輪郭抽出処理されると、図17の(A)に示すようになる。孤立ノイズである図16の中心画素の輪郭としての値は、図17の(A)の中心画素に対応し、その値は前述した正しい輪郭に対して輪郭抽出処理を行った図13の(A)に示される輪郭の値よりも、はるかに大きな値である。そのため、コアリング処理部903 において、図17の(A)に示される中心画素のように輪郭として演算された孤立ノイズを、従来の手法で除去しようとして設定値を大きくすると、輪郭までも除去されてしまう。一方、画像の輪郭を残すと、図17の(A)に示されるような強調処理された孤立ノイズの周辺画素に発生するノイズは、コアリング処理部903 の設定値次第で除去可能であるが、強調処理された孤立ノイズの画素は除去できず、図17の(B)に示されるように画像に残ることになるため、画質向上を図る上で問題となっていた。
【0007】
この問題を解決するために、特開2000−242779号公報(特許文献1)で提案がなされている。この公報開示の手法は、輪郭強調処理を行う際に、輪郭判定処理と、孤立ノイズ判定処理を行うことにより、輪郭に対してのみ輪郭強調処理を行い、平坦部の孤立ノイズに対しては輪郭強調処理を行わないようにするものである。この公報開示の手法によれば、図12に示すような輪郭部の画像データが入力された場合、輪郭判定結果は図14の(A)に示すようになり、輪郭強調処理結果は図14の(B)に示すようになる。更に、図16に示すような平坦部に孤立ノイズが含まれる画像データが入力された場合、輪郭判定結果は図18の(A)に示すようになり、輪郭強調処理結果は図18の(B)に示すようになる。このように、上記公報開示の手法によれば、輪郭に対してのみ輪郭強調処理を行い、平坦部の孤立ノイズに対しては輪郭強調処理が行われない。
【0008】
【発明が解決しようとする課題】
しかしながら、上記公報開示の手法では、輪郭の判定を着目画素を用いて、着目画素値と、着目画素を含む着目画素領域内の画素値の平均値とを比較することにより行っているため、着目画素が輪郭であり、且つ、着目画素領域内に孤立ノイズが含まれる場合、着目画素の値が平均値を下回る場合や、着目画素値と平均値の差が閾値以下になる場合があり、上記公報開示の手法では着目画素が輪郭であるにもかかわらず、輪郭と判定されない場合がある。
【0009】
具体的には、例えば図22に示すような輪郭に孤立ノイズが存在する画像データが入力された場合、上記公報開示の手法によれば輪郭判定結果は図23の(A)に示すようになり、孤立ノイズの周辺の画素が輪郭と判定されず、孤立ノイズのみが輪郭と判定される場合がある。この輪郭判定結果に基づいて輪郭強調処理を行うと、結果は図23の(B)に示すように孤立ノイズ周辺の輪郭に対して輪郭強調処理が行われず、孤立ノイズのみに対して輪郭強調処理が行われてしまうという不都合がある。
【0010】
本発明は、従来提案の画像処理装置における上記の課題を解決するためになされたもので、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭に対してのみ輪郭強調処理を施し、更に、輪郭に孤立ノイズが存在した場合においても孤立ノイズ近傍の輪郭に対して輪郭強調処理を施し、好適な輪郭強調処理画像が得られるようにした画像処理装置、画像処理方法及びそのプログラムを提供することを目的とする。
【0011】
【課題を解決するための手段】
上記問題点を解決するため、請求項1に係る発明は、画像の輪郭強調処理を行う画像処理装置であって、着目画素を除く周辺画素の画素値の平均値と最大値、あるいは、平均値と最小値とを比較し、その比較結果を、着目画素が輪郭か否かを示す判定信号として出力する輪郭判定部と、前記判定信号に基づき、着目画素に輪郭強調処理を行なう輪郭強調部とを備えたことを特徴とするものであり、また請求項2に係る発明は、画像の輪郭強調処理を行う画像処理装置であって、着目画素を除く周辺画素の画素値を所定の順位で並べたときに中央となる順位に位置する中央値と周辺画素の最大値、あるいは、前記中央値と周辺画素の最小値とを比較し、その比較結果を、着目画素が輪郭か否かを示す判定信号として出力する輪郭判定部と、前記判定信号に基づき、着目画素に輪郭強調処理を行なう輪郭強調部とを備えたことを特徴とするものである。
【0012】
このように構成された画像処理装置においては、輪郭強調処理の対象となる画素が輪郭か否かを示す判定信号を出力し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理が行われ、また輪郭に孤立ノイズが存在した場合においても、孤立ノイズ近傍の輪郭に対しては輪郭強調処理を施すようにしているので、好適な画像が得られる画像処理装置を実現できる。
【0013】
請求項3に係る発明は、請求項1又は2に係る画像処理装置において、前記判定信号に基づき、着目画素に対してノイズ除去処理を行なうノイズ除去部を更に備えたことを特徴とするものであり、また請求項4に係る発明は、請求項3に係る画像処理装置において、前記ノイズ除去部は、前記判定信号により輪郭以外と判定された着目画素に対してノイズ除去処理を行なうことを特徴とするものである。
【0014】
このように構成された画像処理装置によれば、請求項1又は2に係る画像処理装置と同様に、輪郭強調処理の対象となる画素が輪郭か否かを示す判定信号を出力し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理が行われ、また輪郭に孤立ノイズが存在した場合においても、孤立ノイズ近傍の輪郭に対しては輪郭強調処理を施すようにしており、更に、輪郭以外と判定された画素に対してノイズ除去処理を施すようにしているので、より好適な画像を得ることができる。
【0015】
請求項5に係る発明は、請求項1又は2に係る画像処理装置において、着目画素が周辺画素との相関性が低い孤立ノイズか否かを判定し、その判定結果を孤立ノイズ判定信号として出力する孤立ノイズ判定部と、孤立ノイズ判定信号に基づき、着目画素に孤立ノイズを除去する処理を行なう孤立ノイズ除去部とを更に備えたことを特徴とするものであり、また請求項6に係る発明は、請求項5に係る画像処理装置において、前記孤立ノイズ判定部は、着目画素の画素値と前記平均値とを比較し、その比較結果を孤立ノイズ判定信号として出力することを特徴とするものであり、また請求項7に係る発明は、請求項5に係る画像処理装置において、前記孤立ノイズ判定部は、着目画素の画素値と前記中央値とを比較し、その比較結果を孤立ノイズ判定信号として出力することを特徴とするものであり、また請求項8に係る発明は、請求項5に係る画像処理装置において、前記孤立ノイズ判定部は、輪郭強調処理後の着目画素の画素値と前記平均値とを比較し、その比較結果を孤立ノイズ判定信号として出力することを特徴とするものであり、また請求項9に係る発明は、請求項5に係る画像処理装置において、前記孤立ノイズ判定部は、輪郭強調処理後の着目画素の画素値と前記中央値とを比較し、その比較結果を孤立ノイズ判定信号として出力することを特徴とするものである。
【0016】
このように構成された画像処理装置においては、請求項1又は2に係る画像処理装置と同様に、輪郭強調処理の対象となる画素が輪郭か否かを示す判定信号を出力し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理が行われ、また輪郭に孤立ノイズが存在した場合においても、孤立ノイズ近傍の輪郭に対しては輪郭強調処理を施すようにしており、更に、輪郭以外と判定された画素が孤立ノイズか否かを判定し、その判定信号に基づいて孤立ノイズ除去処理を行うことにより、孤立ノイズと判定された画素に対してノイズ除去処理を施すようにしているので、より好適な画像を得ることができる。
【0017】
請求項10に係る発明は、画像の輪郭強調処理を行う画像処理方法であって、着目画素を除く周辺画素の画素値の平均値と最大値、あるいは、平均値と最小値とを比較し、着目画素が輪郭か否かを判定する輪郭判定ステップと、前記輪郭判定結果に基づき、着目画素に輪郭強調処理を行なう輪郭強調処理ステップとを備えたことを特徴とするものであり、また請求項11に係る発明は、請求項10に係る画像処理方法において、前記輪郭判定ステップは、平均値の代わりに、着目画素を除く周辺画素の画素値を所定の順位で並べたときに中央となる順位に位置する中央値を用いることを特徴とするものである。
【0018】
このように構成された画像処理方法においては、輪郭強調処理の対象となる画素が輪郭か否かを示す判定信号を出力し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理が行われ、また輪郭に孤立ノイズが存在した場合においても、孤立ノイズ近傍の輪郭に対しては輪郭強調処理を施すようにしているので、好適な画像が得られる画像処理方法を実現できる。
【0019】
請求項12に係る発明は、コンピュータに対して、画像の輪郭強調処理を実行させるための画像処理プログラムであって、着目画素を除く周辺画素の画素値の平均値と最大値、あるいは、平均値と最小値とを比較し、着目画素が輪郭か否かを判定する手順と、前記輪郭判定結果に基づき、着目画素の輪郭強調処理を行う手順とをコンピュータに実行させるように画像処理プログラムを構成するものであり、また請求項13に係る発明は、請求項12に係る画像処理プログラムにおいて、輪郭判定手順は、平均値の代わりに、着目画素を除く周辺画素の画素値を所定の順位で並べたときに中央となる順位に位置する中央値を用いることを特徴とするものである。
【0020】
このように構成することにより、輪郭強調処理の対象となる画素が輪郭か否かを示す判定信号を出力し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理が行われ、また輪郭に孤立ノイズが存在した場合においても孤立ノイズ近傍の輪郭に対しては輪郭強調処理を施すようにしているので、画像処理を効率的に行える画像処理プログラムを実現することができる。
【0021】
【発明の実施の形態】
次に、図面を参照して本発明の実施の形態を説明する。
(第1の実施の形態)
図1は、本発明の第1の実施の形態に係る画像処理装置100 を示すブロック構成図である。この画像処理装置100 は、領域抽出部101 と、輪郭抽出部102 と、輪郭判定部103 と、コアリング処理部104 と、輪郭強調部105 とを備えている。領域抽出部101 は、入力される画像データから着目画素を含むm×n画素の画素領域を抽出する。輪郭抽出部102 は、領域抽出部101 によって抽出されたm×n画素の画素領域に対して、2次元マトリクスフィルタ演算を施し、その演算結果を輪郭値として出力する。
【0022】
輪郭判定部103 は、領域抽出部101 によって抽出されたm×n画素の画素領域から、着目画素の周辺画素の平均値と、最大値と、最小値を算出し、これらの値とあらかじめ設定した閾値1 に基づいて、着目画素が輪郭かどうかを判定し、輪郭判定信号を出力する。輪郭判定部103 における輪郭の判定は、輪郭である画素の周辺の少なくとも一つの画素もまた輪郭であるという性質と、輪郭である画素の値は周辺の画素の値とは大きく異なるという性質を利用して、輪郭となりうる特徴的な値を有する画素と、その周辺の画素とを、それぞれの画素値を比較することによって輪郭の判定を行う。また、例えば画素領域として、図10に示すような3×3の画素領域を設定すると、着目画素(▲5▼)の周辺8画素(▲1▼,▲2▼,▲3▼,▲4▼,▲6▼,▲7▼,▲8▼,▲9▼)のうちの少なくとも一つの画素に輪郭が含まれるならば、その画素と隣り合う着目画素(▲5▼)もまた輪郭であることになるため、着目画素(▲5▼)が輪郭であるかどうかの判定は、着目画素を除いた画素のみでも可能である。したがって、着目画素の周辺8画素の最大値及び平均値と、最小値及び平均値の比較をし、いずれかの差が設定した閾値以上ならば、少なくとも最大値又は最小値を有する画素は輪郭であるから、着目画素もまた輪郭であると判定する。
【0023】
これを条件式を用いて表現すると以下のようになる。
・(最大値−平均値)≧閾値1 、又は(平均値−最小値)≧閾値1 を満たすならば輪郭と判定
・上記条件を満たさなければ輪郭以外と判定
一方、着目画素が孤立ノイズである場合は、周辺8画素のそれぞれの画素値の差は小さく、孤立ノイズである着目画素の値のみ周辺8画素の画素値と差が大きい状態である。したがって、前述した輪郭判定方法で算出する着目画素の周辺8画素の平均値と、最大値又は最小値の差は小さいため、孤立ノイズである着目画素は輪郭と判定されない。このように、本発明の輪郭判定手法は着目画素の値に依存しないため、着目画素が孤立ノイズの場合に着目画素を輪郭と誤判定することはない。
【0024】
コアリング処理部104 は、輪郭抽出部103 において輪郭として抽出された画像データに対して、輪郭値があらかじめ設定した閾値0 以上ならば、コアリング処理部104 に入力される輪郭値を出力し、輪郭値が閾値0 以下ならば、0を輪郭値として出力する。輪郭強調部105 は、輪郭判定信号に基づいて、着目画素が輪郭ならば、着目画素の輪郭値と入力値を加算し、その結果を輪郭強調処理結果として出力するが、加算後の値が画素値の最大値又は最小値を超えるならば、出力する値を最大値又は最小値に固定する。一方、着目画素が輪郭以外ならば、着目画素の入力値のみを輪郭強調処理結果として出力する。
【0025】
なお、本発明の第1の実施の形態では、あらかじめ設定された閾値0 及び、閾値1 を用いるが、画像処理装置100 の内部又は外部に、画像データに応じて閾値0 及び閾値1 を演算する装置を備えてもよい。
【0026】
次に、第1の実施の形態による輪郭強調処理手法をより具体的に説明する。領域抽出部101 において、例えば、図12に示すような輪郭部の画像データが入力され、その網掛け部に示すような3×3の画素領域が抽出されると、輪郭抽出部102 では、図11に示すようなマトリクスを用いて、抽出された3×3の画素領域に対して2次元マトリクスフィルタ演算を施し、着目画素の輪郭値として26〔(−0.125 ×(100 ×5+30×3)+100 )=26.25 を四捨五入〕が出力される。また、輪郭判定部103 では、着目画素の周辺8画素の平均値は74〔(100 ×5+30×3)÷8=73.75 を四捨五入〕、最大値は100 ,最小値は30と算出される。ここでは、平均値を求める割算は、3ビットシフト演算による割算が可能である。
【0027】
いま、輪郭を判定するための閾値1 が40と設定されているとすると、74〔平均値〕−30〔最小値〕≧40〔閾値1 〕となり、着目画素は輪郭と判定される。コアリング処理部104 では、いま、ノイズ除去処理を行うための閾値0 が8と設定されているとすると、コアリング処理部104 に入力される輪郭値26を出力する。輪郭強調部105 では、いま、着目画素が輪郭と判定されているので、着目画素の輪郭値26及び入力値100 が加算され、その結果として輪郭強調値126 が出力される。このような処理を、図12に示すような輪郭部の画像データに対して行った輪郭判定結果は、図15の(A)に示すようになり、輪郭強調処理結果は図15の(B)に示すようになる。
【0028】
一方、領域抽出部101 において、図16に示すような平坦部に孤立ノイズが含まれるような画像データが入力され、図16の網掛け部のような、着目画素が孤立ノイズの画素領域が抽出されるとすると、輪郭抽出部102 では、図11に示すようなマトリクスを用いて、2次元マトリクスフィルタ演算を施され、着目画素の輪郭値として60〔=(−0.125×(100 ×8)+160 )〕が出力される。また、輪郭判定部103 において、着目画素の周辺8画素の平均値、最大値及び最小値は、いずれも100 と算出され、先程と同様に閾値1 が40と設定されているとすると、 100〔平均値〕− 100〔最小値〕<40〔閾値1 〕、及び 100〔最大値〕− 100〔平均値〕<40〔閾値1 〕となるため、孤立ノイズである着目画素は輪郭以外と判定される。コアリング処理部104 では、先程と同様に閾値0 が8と設定されているとすると、入力される輪郭値60を出力する。輪郭強調部105 では、いま、輪郭判定部103 において着目画素が輪郭以外と判定されているので、着目画素の輪郭値60は着目画素の入力値160 に加算されず、着目画素の入力値160 のみが輪郭強調値として出力される。このような処理を、図16に示すような平坦部に孤立ノイズが含まれるような画像データに対して行った輪郭判定結果は、図19の(A)に示すようになり、輪郭強調処理結果は図19の(B)に示すようになる。
【0029】
ところで、図19(A)に示される輪郭判定結果を見ると、孤立ノイズの周辺の画素が輪郭と誤判定されていることがわかる。しかし、輪郭と誤判定されている孤立ノイズ周辺の画素の輪郭値は、その輪郭抽出部103 において輪郭抽出演算に使用するマトリクスの特性上、輪郭の画素値よりも十分小さく、例えば、本実施の形態においては、図11に示すようなマトリクスフィルタを用いて演算しているため、孤立ノイズの値は着目画素の値の8分の1の重みしか持たない。したがって、コアリング処理部104 において、輪郭と誤判定された孤立ノイズ周辺の画素の演算結果は、本実施の形態による平坦部の孤立ノイズに対する輪郭強調処理結果である図19の(B)に示されるように、コアリング処理によってキャンセルすることが可能である。
【0030】
更に、領域抽出部101 において、図22に示すような輪郭部に孤立ノイズが含まれる画像データが入力され、図22の網掛け部のような着目画素が孤立ノイズの画素領域が抽出されるとすると、輪郭抽出部102 では、図11に示すようなマトリクスを用いて2次元マトリクスフィルタ演算を施され、着目画素の輪郭値として、19〔(−0.125 ×(160 +100 ×4+30×3)+100 )=18.75 を四捨五入〕が出力される。また、輪郭判定部103 において、着目画素の周辺8画素の平均値は81〔(160 +100 ×4+30×3)÷8=81.25 を四捨五入〕、最大値は160 ,最小値は30と算出され、先程と同様に閾値1 が40と設定されているとすると、160〔最大値〕−81〔平均値〕>40〔閾値1 〕、81〔平均値〕−30〔最小値〕>40〔閾値1 〕となるため、着目画素は輪郭と判定される。
【0031】
コアリング処理部104 では、先程と同様に閾値0 が8と設定されているとすると、入力される輪郭値19を出力する。輪郭強調部105 では、いま、輪郭判定部103 において着目画素が輪郭と判定されているので、着目画素の輪郭値19が着目画素の入力値100 に加算され、加算後の値である119 が輪郭強調処理結果として出力される。このような処理を、図22に示すような輪郭部に孤立ノイズが含まれる画像データに対して行った輪郭判定結果は、図24の(A)に示すようになり、輪郭強調処理結果は図24の(B)に示すようになる。
【0032】
上記のように、本発明の第1の実施の形態によれば、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理を施し、また、輪郭に孤立ノイズが存在した場合においても孤立ノイズ近傍の輪郭に対して輪郭強調処理を施すことができる。
【0033】
図2は、上述した本発明の第1の実施の形態のハードウェア処理に対応するフローチャートである。図2に示したフローチャートを基にプログラム化し、ソフトウェア処理とすることも、勿論、可能である。次に、図2に示したフローチャートを簡単に説明する。各ステップにおける処理の詳細は、上記の第1の実施の形態の画像処理装置の説明を参照されたい。まず、画像データを入力し(ステップS201 )、入力される画像データに対して、領域抽出処理ステップS202 において、着目画素を含むm×n画素の画素領域を抽出する。次に、輪郭判定処理ステップS203 に移り、輪郭判定処理を行う。図3は輪郭判定処理のフローチャートであり、ステップS301 において、領域抽出処理ステップS202 によって抽出されたm×n画素の画素領域から、着目画素の周辺画素の平均値Aveと、最大値Maxと、最小値Minを算出し、ステップS302 において、それらの値とあらかじめ設定した閾値1 (Th1 )に基づいて判定を行い、条件式が成立すると着目画素(▲5▼)が輪郭と判定し(ステップS303 )、条件式が成立しない場合は着目画素は輪郭でないと判定する(ステップS304 )。そして、メインフローのステップS204 へ戻る。
【0034】
ステップS204 では、着目画素(▲5▼)が輪郭か否かの判定を行い、着目画素(▲5▼)が輪郭ならば、輪郭強調処理をおこなうべく輪郭抽出処理ステップS205 へ移り、着目画素が輪郭でなければ、ステップS210 へ移り、輪郭強調処理は行わないで、着目画素の画素値を、そのまま輪郭強調処理結果とする。輪郭抽出処理ステップS205 では、抽出されたm×n画素の画素領域に対して2次元マトリクスフィルタ演算を施し、その演算結果を輪郭値とする。次に、ステップS206 において、輪郭値があらかじめ設定した閾値0 (Th0 )以下か否かを判定し、閾値0 以上ならば、ステップS208 を経てステップS209 へ移り、輪郭値が閾値0 以下ならばステップS207 へ移り、0を輪郭値とする。そして、ステップS209 において、輪郭値と着目画素(▲5▼)の画素値とを加算する処理を行い、ステップS211 において輪郭強調処理結果を出力する。最後にステップS212 において、画像が終端か否かを判定し、終端でなければ再びステップS203 へ移り、終端ならば処理を終了する。
【0035】
なお、本実施の形態では、あらかじめ設定された閾値0 及び閾値1 を用いているが、本画像処理フロー内又はフロー外に、画像データに応じて閾値0 及び閾値1 を算出する処理ステップを備えてもよい。
【0036】
(第2の実施の形態)
図4は、第2の実施の形態に係る画像処理装置400 を示すブロック構成図である。この画像処理装置400 は、領域抽出部401 と、輪郭抽出部402 と、輪郭判定部403 と、コアリング処理部404 と、ノイズ除去部405 と、輪郭強調部406 とを備えている。ここでは、第1の実施の形態の構成と異なるノイズ除去部405 についてのみ説明を行う。
【0037】
ノイズ除去部405 は、着目画素が輪郭以外と判定された場合に、着目画素の画素値をノイズとみなして、ノイズ除去処理を施す。より具体的には、図16の網掛け部を着目画素領域とすると、第1の実施の形態において示したように、輪郭判定部403 において、孤立ノイズである着目画素は輪郭以外であると判定される。輪郭判定部403 において着目画素が輪郭以外と判定されると、ノイズ除去部405において、着目画素の画素値をノイズとみなして、着目画素に対してノイズ除去処理を行う。このノイズ除去処理は、例えば、着目画素の画素値を着目画素の周辺8画素の平均値と入れ替える処理を行う。このような処理を、図16のような平坦部に孤立ノイズが含まれるような画像データに対して行った輪郭判定結果は、図20の(A)に示すようになり、輪郭強調処理結果は、図20の(B)に示すようになる。
【0038】
以上述べたように、本発明の第2の実施の形態によれば、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理を施し、また、輪郭に孤立ノイズが存在した場合においても、孤立ノイズ近傍の輪郭に対して輪郭強調処理を施し、更に、輪郭以外と判定された画素に対しては、ノイズ除去処理を施すことができる。
【0039】
図5は、上記本発明の第2の実施の形態のハードウェア処理に対応するフローチャートである。図5に示したフローチャートを元にプログラム化し、ソフトウェア処理とすることも、勿論、可能である。ここでは、図2に示した第1の実施の形態のフローチャートと異なる点についてのみ説明する。図5の輪郭判定処理ステップS503 において輪郭判定処理され、ステップS504 における着目画素(▲5▼)が輪郭であるか否かの判定において、着目画素が輪郭ではないと判定された場合に、ノイズ除去処理を行うべく、ステップS510 へ移り、着目画素の周辺の画素の平均値を輪郭強調処理結果として出力させ、これによりノイズは除去される。
【0040】
(第3の実施の形態)
図6は、第3の実施の形態に係る画像処理装置600 を示すブロック構成図である。この画像処理装置600 は、領域抽出部601 と、輪郭抽出部602 と、輪郭判定部603 と、コアリング処理部604 と、孤立ノイズ判定部605 と、孤立ノイズ除去部606 と、輪郭強調部607 とを備える。ここでは、第1の実施の形態の構成と異なる孤立ノイズ判定部605 ,及び孤立ノイズ除去部606 について説明する。
【0041】
孤立ノイズ判定部605 は、輪郭判定部603 において着目画素が輪郭以外と判定された場合に、着目画素の値と、着目画素の周辺画素の平均値とを比較して、その差が閾値2 を超える(|着目画素値−平均値|≧閾値2 )ならば、孤立ノイズと判定し、孤立ノイズ判定信号を出力する。本実施の形態では、あらかじめ設定された閾値2 を用いるが、画像処理装置600 の内部又は外部に画像データに応じて閾値2 を演算する装置を備えてもよい。
【0042】
孤立ノイズ除去部606 は、孤立ノイズ判定部605 において着目画素が孤立ノイズと判定された場合にのみ、着目画素に対してノイズ除去処理を施す。具体的には、いま、図16の網掛け部を着目画素領域とすると、第1の実施の形態において示したように、輪郭判定部603 において孤立ノイズである着目画素は輪郭以外と判定される。輪郭判定部603 において着目画素が輪郭以外と判定されると、孤立ノイズ判定部605 において、孤立ノイズ判定処理が行われる。いま、閾値2 を30とすると、 160〔着目画素値〕− 100〔平均値〕≧30〔閾値2 〕となり、着目画素は孤立ノイズと判定される。着目画素が孤立ノイズの場合は、孤立ノイズ除去部606 において、例えば着目画素160 を着目画素の周辺8画素の平均値100 と入れ替える孤立ノイズ処理を行う。そして、輪郭強調部607 では、いま、輪郭判定部603 において着目画素は輪郭以外と判定されているので、輪郭強調処理後の値として、孤立ノイズ除去部605 より出力される値100 が出力される。
【0043】
このような処理を、図16に示すような平坦部に孤立ノイズが含まれるような画像データに対して行った輪郭判定結果は、図21の(A)に示すようになり、孤立ノイズ判定結果は図21の(B)に示すようになり、輪郭強調処理結果は図21の(C)に示すようになる。この本実施の形態による輪郭強調処理結果である図21の(C)と、従来方法による輪郭強調処理結果である図17の(B)とを比較すると、本実施の形態によれば孤立ノイズに対して輪郭強調処理を行わず、更に、孤立ノイズを除去できることが確かめられる。
【0044】
以上述べたように、本発明の第3の実施の形態によれば、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理を施し、また、輪郭に孤立ノイズが存在した場合においても、孤立ノイズ近傍の輪郭に対して輪郭強調処理を施し、更に、輪郭以外と判定された画素が孤立ノイズか否かを判定し、その判定信号に基づいて孤立ノイズ除去処理を行うことにより、孤立ノイズと判定された画素に対してノイズ除去処理を施すことができる。
【0045】
図7は、上記本発明の第3の実施の形態のハードウェア処理に対応するフローチャートである。図7に示すフローチャートを基にプログラム化し、ソフトウェア処理とすることも、勿論、可能である。ここでは、図2に示した第1の実施の形態のフローチャートと異なる点についてのみ説明する。図7の輪郭判定処理ステップS703 において輪郭判定処理が行われ、ステップS704 における着目画素(▲5▼)が輪郭であるか否かの判定において、着目画素が輪郭ではないと判定された場合には、孤立ノイズ除去処理を行うべく、孤立ノイズ判定処理ステップS709 へ移る。
【0046】
図8に示す孤立ノイズ判定処理は、ステップS801 において、着目画素(▲5▼)の画素値と輪郭判定処理ステップS703 において既に算出されている着目画素の周辺の画素の平均値Aveとを比較して、その差がある閾値2 (Th2 )以上ならば孤立ノイズと判定し(ステップS802 )、閾値2 以下ならば孤立ノイズではないと判定し(ステップS803 )、メインフローのステップS710 へ移行する。そして、ステップS710 において、着目画素(▲5▼)が孤立ノイズと判定された場合は、ステップS712 へ進み、ノイズ除去処理として輪郭強調処理結果に着目画素の周辺の画素の平均値Aveを代入し、着目画素が孤立ノイズではないと判定されたならば、ステップS713 へ移り、孤立ノイズ除去処理は行わず、着目画素(▲5▼)の画素値を、そのまま輪郭強調処理結果として出力する。
【0047】
なお、第3の実施の形態のフローチャートでは、あらかじめ設定された閾値0 ,閾値1 及び閾値2 を用いているが、本画像処理フロー内又はフロー外に、画像データに応じて閾値0 ,閾値1 及び閾値2 を算出する処理ステップを備えてもよい。
【0048】
なお、本発明の各実施の形態の説明においては、図10に示すような3×3画素の画素領域を設定したが、3×3画素に限らず適当な大きさの画素領域を設定してもよい。また、着目画素の周辺画素の平均値の算出は、必ずしも画素領域内の全ての画素を用いる必要はない。また、この平均値は周辺画素の各画素に適当な重みをかけて算出してもよい。更に、この平均値は、着目画素の周辺画素の画素値を所定の順位に並べたときに中央となる中央値と置き換えることも可能である。一方、周辺画素の最大値及び最小値は、必ずしも着目画素に隣接する8画素の中から算出する必要はなく、設定した画素領域の大きさに応じて、任意の範囲から最大値及び最小値を算出してもよい。また、第2の実施の形態及び第3の実施の形態においては、孤立ノイズ除去処理として、着目画素の周辺画素の平均値と、孤立ノイズの値とを入れ替える処理を行ったが、この方法に限らず、一般的な平滑化フィルタ処理を行ってもよい。
【0049】
【発明の効果】
以上実施の形態に基づいて説明したように、本発明に係る請求項1及び請求項2に係る画像処理装置によれば、輪郭強調処理の対象となる画素が輪郭か否かを判定し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理を施し、また輪郭に孤立ノイズが存在した場合においても孤立ノイズ近傍の輪郭に対して輪郭強調処理を施し、好適な強調処理された画像を得ることが可能な画像処理装置を実現することができる。また請求項3及び請求項4に係る画像処理装置によれば、輪郭強調処理の対象となる画素が輪郭か否かを判定し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、画像の輪郭と判定された画素に対してのみ輪郭強調処理を施し、また輪郭に孤立ノイズが存在した場合においても孤立ノイズ近傍の輪郭に対して輪郭強調処理を施し、更に輪郭以外と判定された画素はノイズ除去処理を施すことにより、更に好適な強調処理された画像を得ることができる。
【0050】
また請求項5から請求項9に係る画像処理装置によれば、輪郭強調処理の対象となる画素が輪郭か否かを判定し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、画像の輪郭と判定された画素に対してのみ輪郭強調処理を施し、また輪郭に孤立ノイズが存在した場合においても孤立ノイズ近傍の輪郭に対して輪郭強調処理を施し、更に、輪郭以外と判定された画素が孤立ノイズか否かを判定し、その判定信号に基づいて孤立ノイズ除去処理を行うことにより、孤立ノイズと判定された画素に対してノイズ除去処理を施し、一層好適な強調処理された画像を得ることができる。
【0051】
また請求項10及び請求項11に係る画像処理方法によれば、輪郭強調処理の対象となる画素が輪郭か否かを判定し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理を施し、また輪郭に孤立ノイズが存在した場合においても孤立ノイズ近傍の輪郭に対して輪郭強調処理を施し、好適な画像を得ることが可能な画像処理方法を実現することができる。また請求項12及び請求項13に係る画像処理プログラムによれば、輪郭強調処理の対象となる画素が輪郭か否かを判定し、その判定信号に基づいて輪郭強調処理を行うことにより、画像の平坦部に存在する孤立ノイズを誤って輪郭として強調処理することなく、輪郭と判定された画素に対してのみ輪郭強調処理を施し、また、輪郭に孤立ノイズが存在した場合においても孤立ノイズ近傍の輪郭に対して輪郭強調処理を施し、好適な画像を得ることが可能な画像処理プログラムを実現できる。
【図面の簡単な説明】
【図1】本発明に係る画像処理装置の第1の実施の形態を示すブロック構成図である。
【図2】図1に示した第1の実施の形態の動作を説明するためのフローチャートである。
【図3】図2のフローチャートにおける輪郭判定処理ステップのサブルーチンステップを示すフローチャートである。
【図4】本発明の第2の実施の形態を示すブロック構成図である。
【図5】図4に示した第2の実施の形態の動作を説明するためのフローチャートである。
【図6】本発明の第3の実施の形態を示すブロック構成図である。
【図7】図6に示した第3の実施の形態の動作を説明するためのフローチャートである。
【図8】図7のフローチャートにおける孤立ノイズ判定処理ステップのサブルーチンステップを示すフローチャートである。
【図9】従来の輪郭処理を行う画像処理装置の構成例を示すブロック構成図である。
【図10】領域抽出部で抽出される画素領域抽出例を示す図である。
【図11】輪郭抽出部で用いる輪郭抽出フィルタ例を示す図である。
【図12】輪郭処理を行う画像処理装置への入力データ例を示す図である。
【図13】従来の輪郭処理方法による輪郭抽出結果、及び輪郭強調処理結果を示す図である。
【図14】従来の公報開示の手法による輪郭抽出結果、及び輪郭強調処理結果を示す図である。
【図15】本発明の第1〜第3の実施の形態に係る画像処理装置による輪郭判定結果及び輪郭強調結果を示す図である。
【図16】平坦部に孤立ノイズが存在する入力データ例を示す図である。
【図17】図16に示した平坦部に孤立ノイズが存在する入力データに対する、従来の輪郭処理方法による輪郭抽出結果、及び輪郭強調処理結果を示す図である。
【図18】図16に示した平坦部に孤立ノイズが存在する入力データに対する、従来の公報開示の手法による輪郭判定結果、及び輪郭強調処理結果を示す図である。
【図19】図16に示した平坦部に孤立ノイズが存在する入力データに対する、本発明の第1の実施の形態に係る画像処理装置による輪郭判定結果、及び輪郭強調処理結果を示す図である。
【図20】図16に示した平坦部に孤立ノイズが存在する入力データに対する、本発明の第2の実施の形態に係る画像処理装置による輪郭判定結果、及び輪郭強調処理結果を示す図である。
【図21】図16に示した平坦部に孤立ノイズが存在する入力データに対する、本発明の第3の実施の形態に係る画像処理装置による輪郭判定結果、孤立ノイズ判定結果、及び輪郭強調処理結果を示す図である。
【図22】輪郭部に孤立ノイズが存在する入力データ例を示す図である。
【図23】図22に示した輪郭部に孤立ノイズが存在する入力データに対する、従来の公報開示の手法による輪郭判定結果、及び輪郭強調処理結果を示す図である。
【図24】図22に示した輪郭部に孤立ノイズが存在する入力データに対する、本発明の第1〜第3の実施の形態に係る画像処理装置による輪郭判定結果、及び輪郭強調結果を示す図である。
【符号の説明】
100,400,600 画像処理装置
101,401,601 領域抽出部
102,402,602 輪郭抽出部
103,403,603 輪郭判定部
104,404,604 コアリング処理部
105,406,607 輪郭強調部
405 ノイズ除去部
605 孤立ノイズ判定部
606 孤立ノイズ除去部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus, an image processing method, and a program for obtaining an image on which suitable edge enhancement processing has been performed.
[0002]
[Prior art]
[Patent Document 1] JP-A-2000-242779
[0003]
The image processing system performs an outline emphasis process for sharpening the outline of an image in order to improve image quality. FIG. 9 is a block diagram of a conventional
[0004]
Since this calculation is performed uniformly for all pixels, the noise included in the image is also calculated as a contour. In order to remove the noise calculated as the contour, the
[0005]
Specifically, for example, when image data of a contour portion as shown in FIG. 12 is input, the
[0006]
However, in this method, the image data including the isolated noise in the flat part as shown in FIG. 16 is subjected to the contour extraction processing in the
[0007]
To solve this problem, a proposal has been made in Japanese Patent Application Laid-Open No. 2000-242779 (Patent Document 1). According to the method disclosed in this publication, when performing the edge enhancement process, the edge determination process and the isolated noise determination process are performed, so that the edge enhancement process is performed only on the outline, and the edge enhancement process is performed on the isolated noise in the flat portion. The emphasis processing is not performed. According to the method disclosed in this publication, when image data of a contour portion as shown in FIG. 12 is input, the result of the contour determination is as shown in FIG. 14A, and the result of the contour enhancement processing is as shown in FIG. As shown in FIG. Furthermore, when image data including isolated noise in a flat portion as shown in FIG. 16 is input, the contour determination result is as shown in FIG. 18A, and the contour emphasis processing result is as shown in FIG. ). As described above, according to the technique disclosed in the above publication, the outline enhancement processing is performed only on the outline, and the outline enhancement processing is not performed on the isolated noise in the flat portion.
[0008]
[Problems to be solved by the invention]
However, in the method disclosed in the above publication, the contour is determined by comparing the target pixel value with the average value of the pixel values in the target pixel region including the target pixel using the target pixel. When the pixel is a contour and the isolated pixel noise is included in the pixel region of interest, the value of the pixel of interest may be lower than the average value, or the difference between the pixel value of interest and the average value may be equal to or less than the threshold. In the method disclosed in the publication, there is a case where the target pixel is not determined to be a contour even though the target pixel is the contour.
[0009]
Specifically, for example, when image data in which an isolated noise exists in the contour as shown in FIG. 22 is input, according to the method disclosed in the above publication, the contour determination result is as shown in FIG. In some cases, pixels around isolated noise are not determined to be contours, and only isolated noise is determined to be contours. When the outline emphasis processing is performed based on the result of the outline determination, the result is that the outline emphasis processing is not performed on the outline around the isolated noise as shown in FIG. Is inconvenient.
[0010]
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem in the conventionally proposed image processing apparatus, and does not erroneously emphasize isolated noise existing in a flat portion of an image as a contour, but only contours the contour. Image processing apparatus and image processing method for performing an enhancement process, and further performing an outline enhancement process on an outline in the vicinity of the isolated noise even when an isolated noise is present in the outline, so that a suitable edge enhanced image can be obtained. And to provide the program.
[0011]
[Means for Solving the Problems]
In order to solve the above problem, the invention according to
[0012]
The image processing apparatus configured as described above outputs a determination signal indicating whether or not a pixel to be subjected to the outline enhancement processing is an outline, and performs the outline enhancement processing based on the determination signal, thereby flattening the image. The edge emphasis processing is performed only on the pixels determined to be contours without erroneously emphasizing the isolated noise present in the part as the contours. Since the outline is subjected to the outline emphasis processing, an image processing apparatus capable of obtaining a suitable image can be realized.
[0013]
According to a third aspect of the present invention, in the image processing apparatus according to the first or second aspect, the image processing apparatus further includes a noise removing unit that performs a noise removing process on a pixel of interest based on the determination signal. According to a fourth aspect of the present invention, in the image processing apparatus according to the third aspect, the noise removing unit performs a noise removing process on a pixel of interest determined to be other than an outline by the determination signal. It is assumed that.
[0014]
According to the image processing device configured as described above, similarly to the image processing device according to
[0015]
According to a fifth aspect of the present invention, in the image processing apparatus according to the first or second aspect, it is determined whether or not the pixel of interest is isolated noise having low correlation with peripheral pixels, and the determination result is output as an isolated noise determination signal. An isolated noise determining unit for performing a process of removing an isolated noise from a pixel of interest based on an isolated noise determination signal. The image processing apparatus according to
[0016]
In the image processing apparatus configured as described above, similarly to the image processing apparatus according to
[0017]
The invention according to claim 10 is an image processing method for performing edge enhancement processing of an image, comprising comparing an average value and a maximum value of pixel values of peripheral pixels excluding a target pixel, or comparing an average value with a minimum value, A contour determining step of determining whether or not the target pixel is a contour, and a contour emphasizing process of performing a contour emphasizing process on the target pixel based on the result of the contour judgment. In the image processing method according to the eleventh aspect, in the image processing method according to the tenth aspect, the contour determining step may include, in place of an average value, a center value when pixel values of peripheral pixels excluding a pixel of interest are arranged in a predetermined order. Is used.
[0018]
In the image processing method configured as described above, by outputting a determination signal indicating whether or not a pixel to be subjected to the outline enhancement processing is an outline, and performing the outline enhancement processing based on the determination signal, the image is flattened. The edge emphasis processing is performed only on the pixels determined to be contours without erroneously emphasizing the isolated noise present in the part as the contours. Since the outline is subjected to the outline emphasis processing, an image processing method capable of obtaining a suitable image can be realized.
[0019]
According to a twelfth aspect of the present invention, there is provided an image processing program for causing a computer to execute an outline enhancement process on an image, the image processing program comprising: And an image processing program configured to cause the computer to execute a procedure of comparing the target pixel with the minimum value to determine whether or not the target pixel is an outline, and a procedure of performing an outline enhancement process on the target pixel based on the outline determination result. According to a thirteenth aspect of the present invention, in the image processing program according to the twelfth aspect, the contour determining step arranges pixel values of peripheral pixels excluding the pixel of interest in a predetermined order instead of the average value. In this case, a median value located at the center when the value is used is used.
[0020]
With such a configuration, a determination signal indicating whether or not the pixel to be subjected to the contour enhancement processing is a contour is output, and the contour enhancement processing is performed based on the determination signal. Without emphasizing the isolated noise as a contour by mistake, the contour emphasizing process is performed only on the pixel determined to be the contour. Since the contour enhancement processing is performed, it is possible to realize an image processing program capable of performing image processing efficiently.
[0021]
BEST MODE FOR CARRYING OUT THE INVENTION
Next, an embodiment of the present invention will be described with reference to the drawings.
(First Embodiment)
FIG. 1 is a block diagram showing an
[0022]
The
[0023]
This is expressed as follows using a conditional expression.
-(Maximum value-average value) ≥ threshold 1 , Or (average value-minimum value) ≥ threshold 1 Judge as contour if
・ If the above conditions are not satisfied, it is judged that it is not a contour
On the other hand, when the target pixel is the isolated noise, the difference between the pixel values of the eight peripheral pixels is small, and only the value of the target pixel that is the isolated noise has a large difference from the pixel value of the peripheral eight pixels. Therefore, since the difference between the average value of the eight pixels around the target pixel calculated by the above-described outline determination method and the maximum value or the minimum value is small, the target pixel which is an isolated noise is not determined as the outline. As described above, since the contour determination method of the present invention does not depend on the value of the pixel of interest, when the pixel of interest is isolated noise, the pixel of interest is not erroneously determined to be a contour.
[0024]
The
[0025]
In the first embodiment of the present invention, a preset threshold value is used. 0 And threshold 1 Is used, but a threshold is set inside or outside the
[0026]
Next, the outline emphasis processing method according to the first embodiment will be described more specifically. For example, when image data of a contour portion as shown in FIG. 12 is input to the
[0027]
Now, the threshold for judging the contour 1 Is set to 40, 74 [average value] −30 [minimum value] ≧ 40 [threshold 1 ], And the pixel of interest is determined to be a contour. In the
[0028]
On the other hand, in the
[0029]
By the way, from the contour determination result shown in FIG. 19A, it can be seen that pixels around the isolated noise are erroneously determined to be contours. However, the contour value of the pixel around the isolated noise that is erroneously determined to be the contour is sufficiently smaller than the pixel value of the contour due to the characteristics of the matrix used for the contour extraction operation in the
[0030]
Further, when the image data including the isolated noise in the contour portion as shown in FIG. 22 is input to the
[0031]
In the
[0032]
As described above, according to the first embodiment of the present invention, contour enhancement is performed only on pixels determined to be contours without erroneously enhancing isolated noise existing in a flat portion of an image as a contour. Processing can be performed, and even when isolated noise is present in the contour, contour enhancement processing can be performed on the contour near the isolated noise.
[0033]
FIG. 2 is a flowchart corresponding to the above-described hardware processing of the first embodiment of the present invention. Of course, it is also possible to make a program based on the flowchart shown in FIG. 2 and make it a software process. Next, the flowchart shown in FIG. 2 will be briefly described. For details of the processing in each step, refer to the description of the image processing apparatus according to the first embodiment. First, image data is input (step S201), and an m × n pixel area including a target pixel is extracted from the input image data in an area extraction processing step S202. Next, the process proceeds to the contour determination processing step S203, where the contour determination processing is performed. FIG. 3 is a flowchart of the outline determination process. In step S301, the average value Ave, the maximum value Max, and the minimum value Ave of the peripheral pixels of the target pixel are extracted from the pixel area of m × n pixels extracted in the area extraction processing step S202. The value Min is calculated, and in step S302, these values and a preset threshold value are set. 1 (Th 1 ) Is determined, and if the conditional expression is satisfied, the pixel of interest (5) is determined to be an outline (step S303). If the conditional expression is not satisfied, it is determined that the pixel of interest is not an outline (step S304). Then, the process returns to step S204 of the main flow.
[0034]
In step S204, it is determined whether or not the pixel of interest (5) is a contour. If the pixel of interest (5) is a contour, the process proceeds to contour extraction processing step S205 to perform a contour emphasis process. If it is not a contour, the process proceeds to step S210, where the contour emphasis processing is not performed, and the pixel value of the target pixel is used as the result of the contour emphasis processing. In the contour extraction processing step S205, a two-dimensional matrix filter calculation is performed on the extracted pixel region of m × n pixels, and the calculation result is used as a contour value. Next, in step S206, the contour value is set to a predetermined threshold value. 0 (Th 0 ) Judge whether it is less than or equal to 0 If so, the process proceeds to step S209 via step S208, and 0 If it is below, the process moves to step S207, and 0 is set as the contour value. Then, in step S209, a process of adding the contour value and the pixel value of the pixel of interest (5) is performed, and in step S211 the result of the contour enhancement process is output. Finally, in step S212, it is determined whether or not the image is at the end. If the image is not at the end, the process returns to step S203. If the image is at the end, the process ends.
[0035]
In the present embodiment, a preset threshold value is used. 0 And threshold 1 Is used, but within or outside the main image processing flow, a threshold is set according to the image data. 0 And threshold 1 May be provided.
[0036]
(Second embodiment)
FIG. 4 is a block diagram showing an
[0037]
When the target pixel is determined to be other than the contour, the
[0038]
As described above, according to the second embodiment of the present invention, only the pixels determined to be contours are contoured without erroneously emphasizing isolated noise existing in flat portions of the image as contours. Enhancement processing is performed, and even when isolated noise is present in the outline, outline enhancement processing is performed on the outline near the isolated noise, and noise removal processing is performed on pixels determined to be other than the outline. Can be applied.
[0039]
FIG. 5 is a flowchart corresponding to the hardware processing according to the second embodiment of the present invention. Of course, it is also possible to make a program based on the flowchart shown in FIG. Here, only the differences from the flowchart of the first embodiment shown in FIG. 2 will be described. The contour determination processing is performed in step S503 of the contour determination processing in FIG. 5, and when it is determined in step S504 whether or not the pixel of interest (5) is a contour, if it is determined that the pixel of interest is not a contour, noise removal is performed. In order to perform the processing, the process proceeds to step S510, and the average value of the pixels around the pixel of interest is output as a result of the contour enhancement processing, thereby removing noise.
[0040]
(Third embodiment)
FIG. 6 is a block diagram showing an
[0041]
When the
[0042]
The isolated
[0043]
The contour determination result obtained by performing such processing on image data in which a flat portion includes isolated noise as shown in FIG. 16 is as shown in FIG. 21A, and the isolated noise determination result is obtained. Is as shown in FIG. 21 (B), and the result of the contour enhancement processing is as shown in FIG. 21 (C). A comparison between FIG. 21 (C), which is the result of the contour emphasis processing according to the present embodiment, and FIG. 17 (B), which is the result of the contour emphasis processing according to the conventional method, shows that according to the present embodiment, isolated noise is reduced. On the other hand, it is confirmed that the contour emphasis processing is not performed, and the isolated noise can be removed.
[0044]
As described above, according to the third embodiment of the present invention, the isolated noise existing in the flat part of the image is not erroneously emphasized as a contour, and only the pixels determined to be contours are contoured. Enhancement processing is performed, and even when isolated noise is present in the outline, outline enhancement processing is performed on the outline in the vicinity of the isolated noise, and it is determined whether or not the pixel determined to be other than the outline is isolated noise. By performing the isolated noise removal processing based on the determination signal, the noise removal processing can be performed on the pixels determined to be the isolated noise.
[0045]
FIG. 7 is a flowchart corresponding to the hardware processing according to the third embodiment of the present invention. Of course, it is also possible to make a program based on the flowchart shown in FIG. Here, only the differences from the flowchart of the first embodiment shown in FIG. 2 will be described. In step S703 of the contour determination processing in FIG. 7, the contour determination processing is performed. When it is determined in step S704 whether or not the pixel of interest (5) is a contour, it is determined that the pixel of interest is not a contour. Then, the process proceeds to the isolated noise determination processing step S709 to perform the isolated noise removal processing.
[0046]
In the isolated noise determination processing shown in FIG. 8, in step S801, the pixel value of the pixel of interest (5) is compared with the average value Ave of pixels around the pixel of interest already calculated in the contour determination processing step S703. And the threshold with the difference 2 (Th 2 ), The noise is determined as isolated noise (step S802), and the threshold 2 If it is below, it is determined that the noise is not an isolated noise (step S803), and the flow shifts to step S710 of the main flow. If it is determined in step S710 that the pixel of interest (5) is isolated noise, the flow advances to step S712 to substitute the average value Ave of pixels around the pixel of interest into the result of contour enhancement processing as noise removal processing. If it is determined that the target pixel is not the isolated noise, the process proceeds to step S713, in which the isolated noise removal process is not performed, and the pixel value of the target pixel (5) is output as a result of the outline emphasis process.
[0047]
In the flowchart of the third embodiment, a preset threshold value is used. 0 , Threshold 1 And threshold 2 Is used, but within or outside the main image processing flow, a threshold is set according to the image data. 0 , Threshold 1 And threshold 2 May be provided.
[0048]
In the description of each embodiment of the present invention, a pixel area of 3 × 3 pixels as shown in FIG. 10 is set. However, the pixel area is not limited to 3 × 3 pixels, and a pixel area of an appropriate size is set. Is also good. Further, it is not always necessary to use all the pixels in the pixel area for calculating the average value of the peripheral pixels of the target pixel. The average value may be calculated by applying an appropriate weight to each of the peripheral pixels. Furthermore, this average value can be replaced with a median value that becomes the center when the pixel values of the peripheral pixels of the target pixel are arranged in a predetermined order. On the other hand, the maximum value and the minimum value of the peripheral pixel do not necessarily need to be calculated from the eight pixels adjacent to the pixel of interest, and the maximum value and the minimum value can be calculated from an arbitrary range according to the size of the set pixel area. It may be calculated. In the second embodiment and the third embodiment, as the isolated noise removal processing, the processing of exchanging the average value of the peripheral pixels of the pixel of interest with the value of the isolated noise is performed. The invention is not limited to this, and a general smoothing filter process may be performed.
[0049]
【The invention's effect】
As described above based on the embodiments, according to the image processing apparatus according to
[0050]
According to the image processing device of the present invention, it is determined whether or not the pixel to be subjected to the outline enhancement processing is an outline, and the outline enhancement processing is performed based on the determination signal, thereby obtaining an image. The edge enhancement processing is performed only on the pixels determined to be the outline of the image without erroneously enhancing the isolated noise present in the flat part as the outline. Is subjected to the contour emphasis processing, and further, it is determined whether or not the pixel determined to be other than the contour is the isolated noise, and the isolated noise is removed based on the determination signal. The noise removal processing is performed on the pixels that have been subjected to the noise reduction, and a more suitable enhanced image can be obtained.
[0051]
According to the image processing method according to the tenth and eleventh aspects, it is determined whether or not a pixel to be subjected to contour enhancement processing is a contour, and the contour enhancement processing is performed based on the determination signal. Edge enhancement processing is performed only on pixels determined to be contours without erroneously enhancing isolated noise present in flat parts as contours. , An image processing method capable of obtaining a suitable image can be realized. According to the image processing program according to the twelfth and thirteenth aspects, it is determined whether or not a pixel to be subjected to the outline enhancement processing is an outline, and the outline enhancement processing is performed based on the determination signal. The edge enhancement processing is performed only on the pixels determined to be the outline without erroneously enhancing the isolated noise existing in the flat part as the outline. An image processing program capable of performing a contour emphasis process on a contour and obtaining a suitable image can be realized.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a first embodiment of an image processing apparatus according to the present invention.
FIG. 2 is a flowchart for explaining the operation of the first embodiment shown in FIG.
FIG. 3 is a flowchart showing a subroutine step of a contour determination processing step in the flowchart of FIG. 2;
FIG. 4 is a block diagram showing a second embodiment of the present invention.
FIG. 5 is a flowchart for explaining the operation of the second embodiment shown in FIG. 4;
FIG. 6 is a block diagram showing a third embodiment of the present invention.
FIG. 7 is a flowchart for explaining the operation of the third embodiment shown in FIG. 6;
FIG. 8 is a flowchart showing a subroutine step of an isolated noise determination processing step in the flowchart of FIG. 7;
FIG. 9 is a block diagram illustrating a configuration example of a conventional image processing apparatus that performs contour processing.
FIG. 10 is a diagram illustrating an example of pixel region extraction extracted by a region extraction unit.
FIG. 11 is a diagram illustrating an example of a contour extraction filter used in a contour extraction unit.
FIG. 12 is a diagram illustrating an example of input data to an image processing apparatus that performs contour processing.
FIG. 13 is a diagram showing a contour extraction result and a contour emphasis processing result by a conventional contour processing method.
FIG. 14 is a diagram showing a result of contour extraction and a result of contour emphasis processing according to the method disclosed in the conventional publication.
FIG. 15 is a diagram showing a contour determination result and a contour emphasis result by the image processing device according to the first to third embodiments of the present invention.
FIG. 16 is a diagram illustrating an example of input data in which an isolated noise exists in a flat portion.
17 is a diagram showing a result of contour extraction and a result of contour emphasis processing by a conventional contour processing method with respect to the input data shown in FIG. 16 in which an isolated noise exists in a flat portion.
FIG. 18 is a diagram illustrating a result of contour determination and a result of contour emphasis processing on the input data shown in FIG. 16 in which isolated noise is present in the flat portion by the method disclosed in the related art.
FIG. 19 is a diagram illustrating a result of a contour determination and a result of a contour emphasis process performed by the image processing apparatus according to the first embodiment of the present invention on input data in which an isolated noise exists in a flat portion illustrated in FIG. 16; .
FIG. 20 is a diagram illustrating a result of a contour determination and a result of a contour emphasis process performed by the image processing apparatus according to the second embodiment of the present invention on input data in which an isolated noise exists in a flat portion illustrated in FIG. 16; .
FIG. 21 is a diagram illustrating a contour determination result, an isolated noise determination result, and a contour emphasis processing result by the image processing apparatus according to the third embodiment of the present invention with respect to the input data illustrated in FIG. FIG.
FIG. 22 is a diagram illustrating an example of input data in which an isolated noise exists in a contour portion.
FIG. 23 is a diagram illustrating a result of a contour determination and a result of a contour emphasis process performed on input data in which an isolated noise is present in the contour portion illustrated in FIG.
FIG. 24 is a diagram showing a contour determination result and a contour emphasis result by the image processing apparatus according to the first to third embodiments of the present invention for input data in which an isolated noise exists in the contour portion shown in FIG. 22; It is.
[Explanation of symbols]
100, 400, 600 image processing device
101, 401, 601 area extraction unit
102, 402, 602 Contour extraction unit
103, 403, 603 Contour judgment unit
104, 404, 604 Coring processing unit
105, 406, 607 Edge enhancement unit
405 Noise removal unit
605 Isolated noise determination unit
606 Isolated noise remover
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003109731A JP2004318356A (en) | 2003-04-15 | 2003-04-15 | Image processing device, image processing method, and its program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003109731A JP2004318356A (en) | 2003-04-15 | 2003-04-15 | Image processing device, image processing method, and its program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004318356A true JP2004318356A (en) | 2004-11-11 |
Family
ID=33470776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003109731A Pending JP2004318356A (en) | 2003-04-15 | 2003-04-15 | Image processing device, image processing method, and its program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004318356A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7064868B2 (en) * | 1999-04-16 | 2006-06-20 | Sharp Kabushiki Kaisha | Image processor |
JP2007011989A (en) * | 2005-07-04 | 2007-01-18 | Sony Corp | Image processing apparatus, image processing method, and program |
WO2007049418A1 (en) * | 2005-10-26 | 2007-05-03 | Olympus Corporation | Image processing system and image processing program |
JP2007143120A (en) * | 2005-10-18 | 2007-06-07 | Ricoh Co Ltd | Noise eliminating device, noise eliminating method, noise eliminating program and recording medium |
JP2007194733A (en) * | 2006-01-17 | 2007-08-02 | Kyocera Corp | Image data processor and processing method |
JP2008061217A (en) * | 2006-07-31 | 2008-03-13 | Ricoh Co Ltd | Image processing apparatus, imaging apparatus, image processing method, and image processing program |
CN100397422C (en) * | 2005-05-17 | 2008-06-25 | 凌阳科技股份有限公司 | Method for detecting object edges in image block and determining quantization zooming parameter |
WO2008146817A1 (en) * | 2007-05-28 | 2008-12-04 | Olympus Corporation | Noise eliminating apparatus, program and method |
JP2009159032A (en) * | 2007-12-25 | 2009-07-16 | Fujifilm Corp | Image reducing apparatus and method |
KR101812341B1 (en) * | 2011-06-24 | 2017-12-26 | 엘지이노텍 주식회사 | A method for edge enhancement of image |
-
2003
- 2003-04-15 JP JP2003109731A patent/JP2004318356A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7064868B2 (en) * | 1999-04-16 | 2006-06-20 | Sharp Kabushiki Kaisha | Image processor |
CN100397422C (en) * | 2005-05-17 | 2008-06-25 | 凌阳科技股份有限公司 | Method for detecting object edges in image block and determining quantization zooming parameter |
JP2007011989A (en) * | 2005-07-04 | 2007-01-18 | Sony Corp | Image processing apparatus, image processing method, and program |
JP2007143120A (en) * | 2005-10-18 | 2007-06-07 | Ricoh Co Ltd | Noise eliminating device, noise eliminating method, noise eliminating program and recording medium |
WO2007049418A1 (en) * | 2005-10-26 | 2007-05-03 | Olympus Corporation | Image processing system and image processing program |
JPWO2007049418A1 (en) * | 2005-10-26 | 2009-04-30 | オリンパス株式会社 | Image processing system and image processing program |
US8035705B2 (en) | 2005-10-26 | 2011-10-11 | Olympus Corporation | Image processing system, image processing method, and image processing program product |
JP2007194733A (en) * | 2006-01-17 | 2007-08-02 | Kyocera Corp | Image data processor and processing method |
JP4611212B2 (en) * | 2006-01-17 | 2011-01-12 | 京セラ株式会社 | Image data processing method and image data processing apparatus |
JP2008061217A (en) * | 2006-07-31 | 2008-03-13 | Ricoh Co Ltd | Image processing apparatus, imaging apparatus, image processing method, and image processing program |
WO2008146817A1 (en) * | 2007-05-28 | 2008-12-04 | Olympus Corporation | Noise eliminating apparatus, program and method |
JP2009159032A (en) * | 2007-12-25 | 2009-07-16 | Fujifilm Corp | Image reducing apparatus and method |
KR101812341B1 (en) * | 2011-06-24 | 2017-12-26 | 엘지이노텍 주식회사 | A method for edge enhancement of image |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3385903B1 (en) | Method and apparatus for refining depth image | |
JP7030493B2 (en) | Image processing equipment, image processing methods and programs | |
EP3195094B1 (en) | Smoothing and rendering of digital ink | |
TWI496475B (en) | Video encoding/decoding method, video encoding/decoding apparatus, and programs thereof | |
EP3048579B1 (en) | Structure analysis method for recovering missing structures in an image after object removal | |
CN112150371B (en) | Image noise reduction method, device, equipment and storage medium | |
KR20010075115A (en) | A general image enhancement framework | |
KR20080063770A (en) | Extracting a moving object boundary | |
JP2004318356A (en) | Image processing device, image processing method, and its program | |
CN113099067B (en) | Reversible information hiding method and system based on pixel value sequencing prediction and diamond prediction | |
CN111696064B (en) | Image processing method, device, electronic equipment and computer readable medium | |
CN109214996A (en) | A kind of image processing method and device | |
JP2008022428A (en) | Decoding apparatus, decoding method and program | |
KR101371657B1 (en) | Method for clustering image And computer-readable recording medium | |
KR101070521B1 (en) | Method and apparatus of content adaptive detailing filtering for digital pictures | |
CN110378860A (en) | Method, apparatus, computer equipment and the storage medium of restored video | |
JP2000232384A (en) | Data processor and data processing method | |
CN111028182B (en) | Image sharpening method, device, electronic equipment and computer readable storage medium | |
CN110176021B (en) | Level set image segmentation method and system for saliency information combined with brightness correction | |
KR101617551B1 (en) | Image processing method and system for improving face detection | |
CN111105408B (en) | Building surface crack detection method and system based on image processing | |
CN109345478B (en) | Image smoothing processing method based on gradient minimization | |
Monajati | Underwater Image Enhancement Using FPGA-Based Gaussian Filters with Approximation Techniques | |
CN116721062B (en) | Global-optimization-based spine registration matrix determination method and device | |
KR20130084643A (en) | Image processing apparatus and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060227 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081215 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081224 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090220 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090317 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20090707 |