JP5164880B2 - Image processing apparatus, image processing method, and image display apparatus - Google Patents

Image processing apparatus, image processing method, and image display apparatus Download PDF

Info

Publication number
JP5164880B2
JP5164880B2 JP2009038770A JP2009038770A JP5164880B2 JP 5164880 B2 JP5164880 B2 JP 5164880B2 JP 2009038770 A JP2009038770 A JP 2009038770A JP 2009038770 A JP2009038770 A JP 2009038770A JP 5164880 B2 JP5164880 B2 JP 5164880B2
Authority
JP
Japan
Prior art keywords
gradation
value
pixel
noise
change amount
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.)
Active
Application number
JP2009038770A
Other languages
Japanese (ja)
Other versions
JP2010199645A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009038770A priority Critical patent/JP5164880B2/en
Publication of JP2010199645A publication Critical patent/JP2010199645A/en
Application granted granted Critical
Publication of JP5164880B2 publication Critical patent/JP5164880B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

本発明は、入力画像信号の各画素のデータの階調数を拡張して階調数が拡張されたデータから構成される出力画像信号を生成する画像処理装置及び画像処理方法、並びに、この画像処理装置又は画像処理方法を適用した画像表示装置に関するものである。   The present invention relates to an image processing apparatus and an image processing method for generating an output image signal composed of data in which the number of gradations is expanded by extending the number of gradations of data of each pixel of an input image signal, and the image The present invention relates to an image display device to which a processing device or an image processing method is applied.

液晶、プラズマ、EL(エレクトロルミネッセンス)、DMD(デジタルミラーデバイス)などのように、光の反射若しくは透過、又は発光によって離散的に配置されたマトリクス状の画素を変調して画像を表示するデバイスが、薄型テレビ、プロジェクションテレビ、プロジェクター、及びコンピュータ用のモニターなどの様々な画像表示装置(ディスプレイ)に用いられている。近年、ハイビジョン放送やコンピュータの処理速度の向上により、ディスプレイの高精細化が進むとともに、デバイスの改善によりディスプレイの高輝度化も急速に進んでいる。一方、ディスプレイの高輝度化に伴い表示可能な階調数(ビット数)が拡張されているので、ユーザーは、デジタル化された画像信号を表示した際の画素間における微妙な階調差を識別できるようになり、量子化ノイズが目立つようになっている。   Devices such as liquid crystal, plasma, EL (electroluminescence), DMD (digital mirror device), etc., display images by modulating matrix pixels arranged discretely by reflection or transmission of light or light emission. It is used in various image display devices (displays) such as flat-screen televisions, projection televisions, projectors, and computer monitors. In recent years, high-definition broadcasting and computer processing speed have been improved, and the display has been improved in definition, and display has been rapidly increased in brightness due to device improvements. On the other hand, the number of gradations (bits) that can be displayed is expanded as the display brightness increases, so users can identify subtle gradation differences between pixels when displaying digitized image signals. Quantization noise has become prominent.

アナログ画像信号を受信する場合には、アナログ−デジタル変換器による変換後のデジタル信号のビット数を増やす(例えば、従来8ビットであったビット数を、10ビットに増やす)などして、量子化ノイズを削減することが可能である。しかし、高精細画像を表示できるディスプレイにおいて、アナログ−デジタル変換器の高速化と量子化数の増加を図るには、著しいコストアップを伴う。   When receiving an analog image signal, the number of bits of the digital signal after conversion by the analog-to-digital converter is increased (for example, the number of bits that was conventionally 8 bits is increased to 10 bits), and quantization is performed. It is possible to reduce noise. However, in a display capable of displaying a high-definition image, increasing the speed of the analog-digital converter and increasing the number of quantizations involve a significant cost increase.

また、デジタル画像信号を受信する場合(例えば、デジタルテレビジョン放送の場合)には、デジタル伝送における送信側と受信側の取り決めによって決められた量子化数による画像信号が送受信される(一般に、8ビットの量子化を行うことで、8ビット階調の画像信号が生成される)ので、取り決めを変更しない限り、量子化数を変更することはできない。同様に、DVDやネットワーク上のデジタルコンテンツも量子化数が予め決められているので、新しい規格を設けない限り、コンテンツそのものの量子化数を増やすことはできない。   When a digital image signal is received (for example, in the case of digital television broadcasting), an image signal having a quantization number determined by an agreement between a transmission side and a reception side in digital transmission is transmitted / received (generally, 8 By performing bit quantization, an 8-bit gradation image signal is generated), and the quantization number cannot be changed unless the agreement is changed. Similarly, since the number of quantizations is also determined in advance for digital contents on DVDs and networks, the number of quantizations of the contents themselves cannot be increased unless a new standard is provided.

さらに、テレビなどの画像信号処理においては、インパクトのある映像を表示するために、受信した画像信号のダイナミックレンジを拡張する処理や、階調−輝度変換特性を変更してコントラストの高い映像に変換する処理が行われている。このような階調補正処理を行うと、コントラストの高い映像の表示が可能になる一方で、階調補正による階調飛び(階調ジャンプ)が起こり、量子化ノイズが増えてしまう。   Furthermore, in image signal processing such as television, in order to display high-impact video, processing to expand the dynamic range of the received image signal and conversion to high-contrast video by changing the tone-brightness conversion characteristics Processing to be performed. When such gradation correction processing is performed, a high-contrast video can be displayed, while gradation skip (gradation jump) occurs due to gradation correction, and quantization noise increases.

このような場合に、デジタル画像処理により画像信号の量子化ノイズを削減する方法として、画像信号に下位ビットを付加することによって画像信号の階調数を増やす階調変換技術(多階調化技術)がある。この階調変換技術として、画像信号の特定の階調の変化がある信号を検出し、検出された必要な画素に対し階調数の拡張処理を行うものなどが提案されている。   In such a case, as a method of reducing the quantization noise of the image signal by digital image processing, a gradation conversion technique (multi-gradation technique) that increases the number of gradations of the image signal by adding lower bits to the image signal. ) As this gradation conversion technique, a technique has been proposed in which a signal having a specific gradation change in an image signal is detected and the number of gradations is expanded for the detected necessary pixels.

例えば、特開2003−304400号公報(特許文献1)は、画像メモリを用いて、画像メモリからの画像信号内で等しい輝度レベルにて隣接する画素の集合である同一輝度領域を検出するとともに、隣接する同一輝度領域間における輝度レベルの差が予め設定された値と一致するか否かを判定する偽輪郭検出器と、偽輪郭検出器の判定結果に基づき、隣接する同一輝度領域間の境界付近における画素の輝度レベルを中間調に変換する画素値変換器とを備えた画像処理装置を開示している。   For example, Japanese Patent Laid-Open No. 2003-304400 (Patent Document 1) uses an image memory to detect the same luminance region that is a set of adjacent pixels at the same luminance level in an image signal from the image memory, A boundary between adjacent identical luminance regions based on the determination result of the false contour detector that determines whether the difference in luminance level between adjacent identical luminance regions matches a preset value or not An image processing apparatus including a pixel value converter that converts a luminance level of a pixel in the vicinity to a halftone is disclosed.

また、特許第3710131号公報(特許文献2)は、検出手段が、ラインメモリからの入力画像信号の低周波部分(第一の画素値が複数連続し、さらに第一の画素値から所定レベル画素値が変化した第二の画素値が複数連続する部分)を検出し、信号拡張手段が、この低周波部分の所定範囲の第一又は/及び第二の画素値のビット列に所定のビット数を付与して、画素値が順次変化するように拡張補正する画像処理装置を開示している。   Further, in Japanese Patent No. 3710131 (Patent Document 2), the detection means has a low-frequency portion of the input image signal from the line memory (a plurality of first pixel values are continuous, and a predetermined level pixel from the first pixel value). The second pixel value having a changed value is detected in a plurality of consecutive portions), and the signal extension means adds a predetermined number of bits to the bit string of the first or / and second pixel value in the predetermined range of the low frequency portion. An image processing apparatus is disclosed that performs the extended correction so that the pixel values sequentially change.

さらに、特開2007−158847号公報(特許文献3)は、映像信号を順次シフトレジスタに入力して、レジスタに保持されている画素信号を用いて、信号レベル差が予め設定した信号レベル差内であるか否かの判別を行い、信号レベル差が、例えば、1ビットであるとき、信号レベル差を生じる直前の画素の信号レベルと等しい連続する画素を判別し、判別された連続する画素に対して、画素間の信号レベルの変化量を平均化させて設定し、設定された変化量に基づいてビット割当てを行い映像信号を生成する階調変換装置を提案している。   Further, Japanese Patent Laid-Open No. 2007-158847 (Patent Document 3) sequentially inputs video signals to a shift register, and uses a pixel signal held in the register so that the signal level difference is within a preset signal level difference. When the signal level difference is, for example, 1 bit, a continuous pixel equal to the signal level of the pixel immediately before the signal level difference is determined is determined. On the other hand, there has been proposed a gradation conversion device that sets the amount of change in signal level between pixels by averaging, and generates a video signal by assigning bits based on the set amount of change.

さらにまた、特開2007−181189号公報(特許文献4)は、緩やかなグラデーションの画像領域において階調の変化を検出する場合に、画像内に含まれるノイズ成分の影響を受けにくくする装置及び方法を提案している。特許文献4には、入力された画像信号の画素列を順次走査して線形補間適用領域を検出する際に、所定の範囲内(例えば、最小階調差)の階調変化を検出した場合、その階調変化を検出した位置の次の位置の階調差が、階調変化を検出した位置の前の位置の階調差と同じ場合は、その階調変化はノイズ等によるものであると判定して、階調変化が検出された画素の階調差を当該画素の前後の位置の画素の階調値とみなすことが開示されている。   Furthermore, Japanese Patent Application Laid-Open No. 2007-181189 (Patent Document 4) discloses an apparatus and method for making it less susceptible to noise components included in an image when detecting a change in gradation in a moderate gradation image area. Has proposed. In Patent Literature 4, when detecting a linear interpolation application region by sequentially scanning a pixel row of an input image signal, a change in gradation within a predetermined range (for example, a minimum gradation difference) is detected. If the tone difference at the position next to the position where the tone change is detected is the same as the tone difference at the position before the position where the tone change is detected, the tone change is due to noise or the like. It is disclosed that the gradation difference of the pixel in which the gradation change is detected is determined as the gradation value of the pixel at the position before and after the pixel.

特開2003−304400号公報(要約、図1)JP 2003-304400 A (summary, FIG. 1) 特許第3710131号(図2〜4)Japanese Patent No. 3710131 (FIGS. 2-4) 特開2007−158847号公報(要約、図2、12)JP 2007-158847 A (summary, FIGS. 2 and 12) 特開2007−181189号公報(要約、図3、6,7、9)JP 2007-181189 A (Summary, FIGS. 3, 6, 7 and 9)

上述したようにテレビジョン放送やDVDやネットワーク上のデジタルコンテンツなどにおける画像信号では、予め決められた量子化数(ビット数)の信号が画像処理装置に入力されるので、画像信号のビット数がディスプレイで表示可能なビット数よりも少ない場合や階調補正処理などの画像処理によって階調ジャンプが発生する場合に、本来は画像の輪郭(エッジ)が存在しない非常に緩やかに階調が変化する画像領域に、本来は存在しない縞模様が擬似輪郭(「偽輪郭」とも言う。)として知覚される。このため、上記特許文献1〜4の装置においては、同じ階調レベルが連続する領域の検出と、階調差が一定値以内となる階調レベルの変化の検出とを、画像メモリ(例えば、検出したい連続領域の画素幅分の階調レベルを記憶できる)を用いて順次行い、検出結果に基づいて特定された領域の階調変化に対し、擬似輪郭を抑制し、階調変化を滑らかにするよう、階調変化位置の間を線形補間して、画像信号のビット数を増大する階調数の拡張処理を行っていた。このように、従来は画像メモリを用いて階調変化のレベルの検出を行っていたので、画像処理装置における回路規模が増大し、装置が高価なものになるという問題点があった。また、テレビ等の時間的に連続して画像が送られてくる画像信号に対しては、実時間で処理を行うことが要求されるが、画像メモリを用いて行う上記画像処理を実時間で行うことは困難であるという問題点があった。   As described above, in an image signal in a television broadcast, a DVD, digital content on a network, or the like, a signal having a predetermined quantization number (bit number) is input to the image processing apparatus. When the number of bits that can be displayed on the display is smaller or when a tone jump occurs due to image processing such as tone correction processing, the tone changes very slowly because there is no image outline (edge). A stripe pattern that does not originally exist in the image area is perceived as a pseudo contour (also referred to as “pseudo contour”). For this reason, in the devices of Patent Documents 1 to 4, detection of a region where the same gradation level continues and detection of a change in gradation level where the gradation difference is within a certain value are performed in an image memory (for example, Can store the gradation level for the pixel width of the continuous area you want to detect), suppress the pseudo contour for the gradation change of the area specified based on the detection result, and smooth the gradation change Thus, the number of gradations is expanded by linearly interpolating between the gradation change positions to increase the number of bits of the image signal. As described above, since the level of gradation change is conventionally detected using the image memory, there is a problem that the circuit scale of the image processing apparatus increases and the apparatus becomes expensive. In addition, it is required to perform processing in real time for image signals in which images are sent continuously in time, such as a television, but the above image processing performed using an image memory is performed in real time. There was a problem that it was difficult to do.

また、上記特許文献1〜4の装置においては、例えば、コンピュータグラフィックスなどで作成されたランプ(Ramp)画像やデジタルの画像信号のまま入力された画像などのように、ノイズ・誤差等のノイズ成分が少なく階調が単調に変化(増加又は減少)する画像に対して、同じ階調値の画素が連続する領域の検出や、階調差が一定値以内となる階調の変化を適切に検出できる。しかし、上記特許文献1〜4の装置においては、画像のディテールによる変化やディザノイズのような、ノイズ成分による微少な階調変化が含まれる画像信号の場合や、アナログの画像信号をデジタルの画像へ変換した画像信号の場合などに、ノイズ成分による階調変化が、同じ階調値の画素が連続する平坦領域の検出や、階調差が一定値以内となる小さな階調変化の検出に悪影響を及ぼし、誤検出が発生するという問題点があった。また、上記特許文献1〜4の装置においては、特定された領域の階調の変化に対し、階調変化位置の画素間の階調値を線形補間して、階調数の拡張処理を行う。このため、ノイズ成分は抑制されるが、ノイズ成分となる画素に対しても補間処理が行われ、階調の変化が滑らかになるよう変換されるので、階調変換後の画像のディテールや、鮮鋭度(輪郭情報)が保たれなくなり、画像のぼやけが発生し、量子化ノイズ又は擬似輪郭を良好に低減することができず、画質が劣化するという問題点があった。   In addition, in the devices disclosed in Patent Documents 1 to 4, noise such as noise and error, such as a lamp (Ramp) image created by computer graphics or an image input as a digital image signal, for example. Appropriate detection of areas where pixels with the same gradation value continue, and changes in gradation where the gradation difference is within a certain value, for images with few components and gradation changes monotonously (increase or decrease) It can be detected. However, in the apparatuses disclosed in Patent Documents 1 to 4, in the case of an image signal including a minute gradation change due to a noise component, such as a change due to image detail or dither noise, or an analog image signal to a digital image. In the case of converted image signals, etc., the gradation change due to the noise component adversely affects the detection of flat areas where pixels with the same gradation value are continuous, or the detection of small gradation changes where the gradation difference is within a certain value. There is a problem that false detection occurs. In addition, in the devices disclosed in Patent Documents 1 to 4, the gradation number expansion process is performed by linearly interpolating the gradation value between the pixels at the gradation change position with respect to the gradation change in the specified region. . For this reason, although noise components are suppressed, interpolation processing is also performed on the pixels that are noise components, and conversion is performed so that the change in gradation is smooth. Sharpness (contour information) is not maintained, image blurring occurs, quantization noise or pseudo contour cannot be reduced well, and image quality deteriorates.

さらに、上記特許文献4に記載の装置においては、所定の範囲内の階調変化を検出した場合、その階調変化を検出した位置の次の位置の階調差が、階調変化を検出した位置の前の位置の階調差と同じ場合は、その階調変化はノイズ成分によるものであると判定して、階調変化が検出された画素の階調差を当該画素の前後の位置の画素の階調値とみなす処理を加える構成として、ノイズ成分を抑制する補間処理を行い、階調数の拡張処理を行っている。しかし、ノイズ成分による階調変化は、階調変化位置の前後で必ずしも同一の階調値となるものではなく、その階調変化の大きさ(階調差)が一定値以上となる場合もあるので、ノイズ成分を適切に検出できない場合があるという問題点がある。   Furthermore, in the apparatus described in Patent Document 4, when a gradation change within a predetermined range is detected, the gradation difference at the position next to the position where the gradation change is detected detects the gradation change. If it is the same as the gradation difference at the position before the position, it is determined that the gradation change is due to the noise component, and the gradation difference of the pixel where the gradation change is detected is determined as the position before and after the pixel. As a configuration in which processing that is regarded as a gradation value of a pixel is added, interpolation processing that suppresses noise components is performed, and gradation number expansion processing is performed. However, the gradation change due to the noise component does not necessarily have the same gradation value before and after the gradation change position, and the magnitude of the gradation change (gradation difference) may be a certain value or more. Therefore, there is a problem that noise components may not be detected properly.

そこで、本発明は、上記従来技術の課題を解決するためになされたものであり、その目的は、入力画像信号にノイズ成分が含まれる場合であっても、回路規模を大幅に増やさずに、実時間の信号処理により、非常に緩やかに階調値が変化する区間における画像を、ノイズ成分による画像品質の低下を抑制しながら、階調の変化が滑らかな高品位な画像として表示させる出力画像信号を生成することができる画像処理装置及び画像処理方法を提供することにある。   Therefore, the present invention has been made to solve the above-described problems of the prior art, and the purpose thereof is to greatly increase the circuit scale even when a noise component is included in the input image signal. An output image that displays an image in a section where gradation values change very slowly by real-time signal processing as a high-quality image with smooth gradation changes while suppressing image quality degradation due to noise components An object is to provide an image processing apparatus and an image processing method capable of generating a signal.

また、本発明の他の目的は、入力画像信号にノイズ成分が含まれる場合であっても、回路規模を大幅に増やさずに、実時間の信号処理により、非常に緩やかに階調値が変化する区間における画像を、ノイズ成分による画像品質の低下を抑制しながら、階調の変化が滑らかな高品位な画像として表示することができる画像表示装置を提供することにある。   Another object of the present invention is that even if the input image signal includes a noise component, the gradation value changes very slowly by real-time signal processing without significantly increasing the circuit scale. It is an object of the present invention to provide an image display apparatus capable of displaying an image in a section to be displayed as a high-quality image with smooth gradation change while suppressing deterioration in image quality due to noise components.

本発明の画像処理装置は、時間方向及び空間方向に離散したデータで構成される入力画像信号が入力され、上記入力画像信号の階調数を拡張し且つ階調値を補正する変換処理によって生成された変換後データで構成される出力画像信号を出力する機能を持つ画像処理装置であって、上記入力画像信号から、互いに隣接配置された画素の階調値の差分である階調変化量を求める階調変化量検出手段と、上記階調変化量に基づいて、各画素を、上記階調変化量の値が0である階調平坦領域に属する画素、上記入力画像信号に含まれるノイズ成分によって上記階調変化量の値が0でないノイズ領域に属する画素、並びに、上記階調平坦領域及び上記ノイズ領域以外の領域である非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、該判定の結果を示す領域信号を生成する画素領域判定手段と、上記領域信号を受け取り、非ノイズ階調変化位置の画素である基準画素から次の非ノイズ階調変化位置の画素までの間にある階調平坦領域及びノイズ領域からなる平坦・ノイズ領域の幅である平坦・ノイズ領域幅の予測値を示す平坦・ノイズ領域幅データ予測値を生成する手段であって、上記基準画素の直前の平坦・ノイズ領域幅と上記基準画素の直前に検出された直前基準画素において生成された直前平坦・ノイズ領域幅データ予測値とに基づいて、上記基準画素の直後の平坦・ノイズ領域の幅を予測した上記平坦・ノイズ領域幅データ予測値を生成する平坦・ノイズ領域幅判定手段と、上記階調変化量と上記平坦・ノイズ領域幅データ予測値とに基づいて、上記基準画素の直後の平坦・ノイズ領域における上記変換後データの階調値の傾きを設定する際に用いる傾きデータ値を求める傾き検出手段と、上記階調変化量と上記傾きデータ値とを用いて、上記領域信号が示す判定の結果に応じた上記入力画像信号の階調値の補正値を求め、該補正値に対応する補正ビットデータを生成する補正ビット生成手段と、上記階調値に対し上記補正ビットデータに応じた値を減算又は加算して、上記変換後データで構成される上記出力画像信号を生成する画素値演算手段とを備えたものである。   The image processing apparatus according to the present invention receives an input image signal composed of discrete data in the time direction and the space direction, and generates the input image signal by conversion processing that expands the number of gradations and corrects the gradation value. An image processing apparatus having a function of outputting an output image signal composed of the converted data, wherein a gradation change amount that is a difference between gradation values of pixels arranged adjacent to each other is calculated from the input image signal. Based on the gradation change amount detection means to be obtained and the gradation change amount, each pixel is divided into a pixel belonging to a gradation flat region in which the value of the gradation change amount is 0, and a noise component included in the input image signal To determine whether the pixel belongs to a noise area where the value of the gradation change amount is not 0, or a pixel in a non-noise gradation change position that is an area other than the gradation flat area and the noise area. , The judgment A pixel area determination unit that generates an area signal indicating the result, and a gradation between the reference pixel that is the pixel at the non-noise gradation change position and the pixel at the next non-noise gradation change position that receives the area signal. A flat / noise area width data predicted value indicating a predicted value of a flat / noise area width that is a width of a flat / noise area composed of a flat area and a noise area, the flat / noise immediately before the reference pixel The flatness predicting the width of the flat / noise region immediately after the reference pixel based on the region width and the previous flat / noise region width data prediction value generated at the immediately preceding reference pixel detected immediately before the reference pixel. The flatness immediately after the reference pixel is calculated based on the flatness / noise area width determination means for generating the predicted noise area width data value, and the gradation change amount and the predicted flatness / noise area width data value. The area signal indicates the inclination detection means for obtaining the inclination data value used when setting the inclination of the gradation value of the converted data in the noise area, and the gradation change amount and the inclination data value. A correction bit generation unit that obtains a correction value of the gradation value of the input image signal according to the determination result and generates correction bit data corresponding to the correction value, and according to the correction bit data for the gradation value Pixel value calculation means for generating the output image signal composed of the converted data by subtracting or adding the obtained values.

また、本発明の他の画像処理装置は、時間方向及び空間方向に離散したデータで構成される入力画像信号が入力され、上記入力画像信号の階調数を拡張し且つ階調値を補正する変換処理によって生成された変換後データで構成される出力画像信号を出力する機能を持つ画像処理装置であって、上記入力画像信号から、互いに隣接配置された画素の階調値の差分である階調変化量を求める階調変化量検出手段と、上記階調変化量に基づいて、各画素を、上記階調変化量の値が0である階調平坦領域に属する画素、上記入力画像信号に含まれるノイズ成分によって上記階調変化量の値が0でないノイズ領域に属する画素、並びに、上記階調平坦領域及び上記ノイズ領域以外の領域である非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、該判定の結果を示す領域信号を生成する画素領域判定手段と、上記領域信号を受け取り、非ノイズ階調変化位置の画素である基準画素から次の非ノイズ階調変化位置の画素までの間にある階調平坦領域及びノイズ領域からなる平坦・ノイズ領域の幅である平坦・ノイズ領域幅を示す平坦・ノイズ領域幅を測定し、平坦・ノイズ領域幅測定値を出力する平坦・ノイズ領域幅判定手段と、上記階調変化量と上記平坦・ノイズ領域幅測定値とに基づいて、上記基準画素の直後の平坦・ノイズ領域における上記変換後データの階調値の傾きを設定する際に用いる傾きデータ値を求める傾き検出手段と、上記階調変化量と上記傾きデータ値とを用いて、上記領域信号が示す判定の結果に応じた上記入力画像信号の階調値の補正値を求め、該補正値に対応する補正ビットデータを生成する補正ビット生成手段と、上記階調値に対し上記補正ビットデータに応じた値を減算又は加算して、上記変換後データで構成される上記出力画像信号を生成する画素値演算手段とを備えたものである。   In another image processing apparatus of the present invention, an input image signal composed of discrete data in the time direction and the spatial direction is input, the number of gradations of the input image signal is expanded, and the gradation value is corrected. An image processing apparatus having a function of outputting an output image signal composed of post-conversion data generated by a conversion process, wherein the level is a difference between gradation values of pixels arranged adjacent to each other from the input image signal. Tone change amount detecting means for obtaining a tone change amount, and based on the tone change amount, each pixel is converted into a pixel belonging to a tone flat region where the tone change amount is 0, and the input image signal. The pixel is classified into one of a pixel belonging to a noise area where the value of the gradation change amount is not 0 by a noise component included, and a pixel at a non-noise gradation change position that is an area other than the flat gradation area and the noise area. Make a decision to A pixel region determination unit that generates a region signal indicating the result of the determination; and a region between the reference pixel that is the pixel at the non-noise gradation change position and the pixel at the next non-noise gradation change position that receives the region signal. The flat / noise area width is measured by measuring the flat / noise area width indicating the flat / noise area width, which is the width of the flat / noise area consisting of the gray level flat area and the noise area in FIG. Used when setting the gradient of the gradation value of the converted data in the flat / noise area immediately after the reference pixel based on the determination means, the gradation change amount, and the measured flat / noise area width. Using the inclination detection means for obtaining the inclination data value, the gradation change amount and the inclination data value, a correction value of the gradation value of the input image signal corresponding to the determination result indicated by the area signal is obtained, To the correction value Correction bit generation means for generating corresponding correction bit data, and a value corresponding to the correction bit data is subtracted or added to the gradation value to generate the output image signal composed of the converted data. And a pixel value calculation means.

さらに、本発明の画像表示装置は、画像信号を表示する表示手段を備えて、上記画像処理装置により階調数を拡張した画像信号に基づく画像信号を、上記表示手段に表示させるものである。   Furthermore, the image display apparatus of the present invention includes display means for displaying an image signal, and causes the display means to display an image signal based on the image signal whose number of gradations is expanded by the image processing apparatus.

本発明の画像処理装置及び画像処理方法によれば、入力画像信号にノイズ成分が含まれる場合においても、入力画像信号に対して、非常に緩やかに階調値が変化する区間において画像信号の階調数を拡張し且つ階調値を適切に補正する階調変換処理を施して、出力画像信号を生成しているので、回路規模を大幅に増やさず、実時間の信号処理により、非常に緩やかに階調値が変化する区間における画像を、画像のディテールが失われたり、鮮鋭度が損なわれたりすることなく、階調の変化が滑らかな高品位な画像として表示させることができる出力画像信号を生成することができるという効果がある。   According to the image processing apparatus and the image processing method of the present invention, even when a noise component is included in the input image signal, the level of the image signal is changed in the interval in which the gradation value changes very slowly with respect to the input image signal. Since the output image signal is generated by performing gradation conversion processing that expands the logarithm and corrects the gradation value appropriately, the circuit scale is not increased significantly, and real-time signal processing makes it very gentle. Output image signal that can display an image in a section where the gradation value changes as a high-quality image with smooth gradation changes without losing image details or loss of sharpness. There is an effect that can be generated.

また、本発明の画像表示装置によれば、入力画像信号にノイズ成分が含まれる場合においても、入力画像信号に対して、非常に緩やかに階調値が変化する区間において画像信号の階調数を拡張し且つ階調値を適切に補正する階調変換処理を施して、出力画像信号を生成し、この出力画像信号に基づく画像を表示するので、非常に緩やかに階調値が変化する区間における画像を、画像のディテールが失われたり、鮮鋭度が損なわれたりすることなく、階調の変化が滑らかな高品位な画像として表示することができるという効果がある。   Further, according to the image display device of the present invention, even when a noise component is included in the input image signal, the number of gradations of the image signal in the interval in which the gradation value changes very gently with respect to the input image signal. Since the output image signal is generated by performing the gradation conversion processing that appropriately corrects the gradation value, and the image based on the output image signal is displayed, the interval in which the gradation value changes very slowly Thus, the image can be displayed as a high-quality image with a smooth gradation change without losing image detail or loss of sharpness.

本発明の実施の形態1による画像処理装置(すなわち、実施の形態1による画像処理方法を実施することができる装置)の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the image processing apparatus by the Embodiment 1 of this invention (namely, apparatus which can implement the image processing method by Embodiment 1). (a)〜(c)は、実施の形態1による画像処理装置における信号波形(入力画像信号の階調値が徐々に上昇し、ノイズ成分を含まない場合)の一例を示す図であり、(a)は、8ビットの入力画像信号の最下位ビット付近の階調値を示し、(b)は、入力画像信号の階調変化量及び階調変化位置を示し、(c)は、階調数が拡張され且つ階調値が補正された12ビットの出力画像信号の最下位ビット付近の階調値を示す。(A)-(c) is a figure which shows an example of the signal waveform (when the gradation value of an input image signal raises gradually, and a noise component is not included) in the image processing apparatus by Embodiment 1, ( a) shows the gradation value near the least significant bit of the 8-bit input image signal, (b) shows the gradation change amount and gradation change position of the input image signal, and (c) shows the gradation value. The gradation value near the least significant bit of the 12-bit output image signal whose number is expanded and the gradation value is corrected is shown. (a)〜(c)は、実施の形態1による画像処理装置における信号波形(入力画像信号の階調値が徐々に上昇し、ノイズ成分を含む場合)の一例を示す図であり、(a)は、8ビットの入力画像信号の最下位ビット付近の階調値を示し、(b)は、入力画像信号の階調変化量及び階調変化位置を示し、(c)は、階調数が拡張され且つ階調値が補正された12ビットの出力画像信号の最下位ビット付近の階調値を示す。(A)-(c) is a figure which shows an example of the signal waveform (When the gradation value of an input image signal raises gradually, and a noise component is included) in the image processing apparatus by Embodiment 1, (a ) Indicates the gradation value near the least significant bit of the 8-bit input image signal, (b) indicates the gradation change amount and gradation change position of the input image signal, and (c) indicates the number of gradations. Indicates a gradation value in the vicinity of the least significant bit of the 12-bit output image signal with the gradation value corrected and the gradation value corrected. (a)及び(b)は、実施の形態1においてノイズ成分と判定される画素の一例を示す図であり、(a)は、直前及び直後の画素よりも階調値が1階調増加している1個の画素(1個の‘1階調変化画素’)からなるノイズ成分を示し、(b)は、直前及び直後の画素よりも階調値が1階調減少している1個の画素(1個の‘1階調変化画素’)からなるノイズ成分を示す。(A) And (b) is a figure which shows an example of the pixel determined to be a noise component in Embodiment 1, (a) has a gradation value increased 1 gradation from the pixel immediately before and immediately after. The noise component consisting of one pixel (one “one gradation changing pixel”) is shown, and (b) is one element whose gradation value is reduced by one gradation from the immediately preceding and immediately following pixels. The noise component consisting of this pixel (one 'one gradation changing pixel') is shown. 図1に示される画素領域判定手段の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the pixel area determination means shown by FIG. (a)〜(g)は、図1及び図5に示される画素領域判定手段の動作の一例を説明するための図である。(A)-(g) is a figure for demonstrating an example of operation | movement of the pixel area determination means shown by FIG.1 and FIG.5. 図1に示される平坦・ノイズ領域幅判定手段の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the flat and noise area | region width determination means shown by FIG. 図1に示されるエッジ変化検出手段の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the edge change detection means shown by FIG. 図1及び図8に示されるエッジ変化検出手段の動作の一例を示す図である。It is a figure which shows an example of operation | movement of the edge change detection means shown by FIG.1 and FIG.8. (a)及び(b)は、図1及び図8に示されるエッジ変化検出手段により検出される階調変化の例を示す図である。(A) And (b) is a figure which shows the example of the gradation change detected by the edge change detection means shown by FIG.1 and FIG.8. 図1に示される傾き検出手段の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the inclination detection means shown by FIG. (a)及び(b)は、図1及び図9に示される傾き検出手段によって算出される傾きデータ値を説明するための概念図である。(A) And (b) is a conceptual diagram for demonstrating the inclination data value calculated by the inclination detection means shown by FIG.1 and FIG.9. 図1に示される補正ビット生成手段の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the correction | amendment bit production | generation means shown by FIG. 図1に示される画素値演算手段の動作を説明するための図である。It is a figure for demonstrating operation | movement of the pixel value calculating means shown by FIG. 実施の形態1による画像処理装置の動作(その1)を示すフローチャートである。5 is a flowchart illustrating an operation (part 1) of the image processing apparatus according to the first embodiment. 実施の形態1による画像処理装置の動作(その2)を示すフローチャートである。6 is a flowchart illustrating an operation (part 2) of the image processing apparatus according to the first embodiment. 図1に示される画素領域判定手段の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the pixel area determination means shown by FIG. (a)〜(k)は、実施の形態1による画像処理装置の動作の一例(階調値が非常に緩やかに上昇し、ノイズ成分を含む場合)を説明するための図である。(A)-(k) is a figure for demonstrating an example (when a gradation value rises very gently and a noise component is included) of the operation | movement of the image processing apparatus by Embodiment 1. FIG. (a)〜(k)は、実施の形態1による画像処理装置の動作の他の例(階調値が非常に緩やかに低下し、ノイズ成分を含む場合)を説明するための図である。(A)-(k) is a figure for demonstrating the other example (when a gradation value falls very gently and a noise component is included) of the operation | movement of the image processing apparatus by Embodiment 1. FIG. 図1に示される画素値演算手段の動作の他の例を説明するための図である。It is a figure for demonstrating the other example of operation | movement of the pixel value calculating means shown by FIG. 本発明の実施の形態2による画像処理装置(すなわち、実施の形態2による画像処理方法を実施することができる装置)の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the image processing apparatus by the Embodiment 2 of this invention (namely, apparatus which can implement the image processing method by Embodiment 2). 図21に示される画素領域判定手段の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the pixel area determination means shown by FIG. (a)及び(b)は、実施の形態2においてノイズ成分と判定される画素の一例を示す図であり、(a)は、直前及び直後の画素よりも階調値が1階調増加している連続する2個の画素(連続2個の‘1階調変化画素’)からなるノイズ成分を示し、(b)は、直前及び直後の画素よりも階調値が1階調減少している連続する2個の画素(連続2個の‘1階調変化画素’)からなるノイズ成分を示す。(A) And (b) is a figure which shows an example of the pixel determined to be a noise component in Embodiment 2, (a) has a gradation value increased 1 gradation from the pixel immediately before and immediately after. Shows a noise component composed of two consecutive pixels (two consecutive “1 gradation changing pixels”), and (b) shows that the gradation value is reduced by one gradation compared to the immediately preceding and immediately following pixels. A noise component composed of two consecutive pixels (two consecutive “1 gradation changing pixels”) is shown. 本発明の実施の形態3による画像処理装置(すなわち、実施の形態3による画像処理方法を実施することができる装置)の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the image processing apparatus (namely, apparatus which can implement the image processing method by Embodiment 3) by Embodiment 3 of this invention. 図24に示される画素領域判定手段の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the pixel area determination means shown by FIG. (a)〜(e)は、図24に示される画素領域判定手段の動作の一例を説明するための図である。(A)-(e) is a figure for demonstrating an example of operation | movement of the pixel area determination means shown by FIG. 図24に示される画素領域判定手段の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the pixel area determination means shown by FIG. 図24に示される画素領域判定手段の構成の他の例を概略的に示すブロック図である。FIG. 25 is a block diagram schematically illustrating another example of the configuration of the pixel region determination unit illustrated in FIG. 24. 本発明の実施の形態4による画像処理装置(すなわち、実施の形態4による画像処理方法を実施することができる装置)の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the image processing apparatus (namely, apparatus which can implement the image processing method by Embodiment 4) by Embodiment 4 of this invention. (a)及び(b)は、図29に示される傾き検出手段によって算出される傾きデータ値を説明するための概念図である。(A) And (b) is a conceptual diagram for demonstrating the inclination data value calculated by the inclination detection means shown by FIG. 図29に示される補正ビット生成手段の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the correction | amendment bit production | generation means shown by FIG. 図29に示される補正ビット生成手段の構成の他の例を概略的に示すブロック図である。FIG. 30 is a block diagram schematically illustrating another example of the configuration of the correction bit generation unit illustrated in FIG. 29. 実施の形態4による画像処理装置の動作(その1)を示すフローチャートである。14 is a flowchart illustrating an operation (No. 1) of the image processing apparatus according to the fourth embodiment. 実施の形態4による画像処理装置の動作(その2)を示すフローチャートである。14 is a flowchart illustrating an operation (part 2) of the image processing apparatus according to the fourth embodiment. (a)〜(k)は、実施の形態4による画像処理装置の動作の一例(階調値が非常に緩やかに上昇し、ノイズ成分を含む場合)を説明するための図である。(A)-(k) is a figure for demonstrating an example (when a gradation value rises very gently and a noise component is included) of the operation | movement of the image processing apparatus by Embodiment 4. FIG. (a)〜(k)は、実施の形態4による画像処理装置の動作の他の例(階調値が非常に緩やかに低下し、ノイズ成分を含む場合)を説明するための図である。(A)-(k) is a figure for demonstrating the other example (when a gradation value falls very gently and a noise component is included) of the operation | movement of the image processing apparatus by Embodiment 4. FIG. 実施の形態4による画像処理装置の動作の他の例(図34に代わる例)を示すフローチャートである。35 is a flowchart showing another example of the operation of the image processing apparatus according to the fourth embodiment (an example instead of FIG. 34). 本発明の実施の形態5による画像処理装置(すなわち、実施の形態5による画像処理方法を実施できる装置)の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the image processing apparatus (namely, apparatus which can implement the image processing method by Embodiment 5) by Embodiment 5 of this invention. 本発明の実施の形態6による画像表示装置の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the image display apparatus by Embodiment 6 of this invention. 本発明の実施の形態7による画像表示装置の構成の一例を概略的に示すブロック図である。It is a block diagram which shows roughly an example of a structure of the image display apparatus by Embodiment 7 of this invention.

《1》実施の形態1.
《1−1》概要.
図1は、本発明の実施の形態1による画像処理装置(すなわち、実施の形態1による画像処理方法を実施することができる装置)の構成を概略的に示すブロック図である。実施の形態1の画像処理装置は、mビット(mは自然数)のデジタルの入力画像信号Daをnビット(nは自然数)のデジタルの出力画像信号Dbに変換するビット数(階調数)拡張(n>m)の階調変換処理を行うことができる階調変換手段1を備えている。階調変換手段1による階調変換処理は、例えば、mビットの入力画像信号Daに、入力画像信号Daよりも下位のビットデータである補正ビットデータCdを付加することによってビット数を拡張且つ階調値を補正して、nビットの出力画像信号Dbを生成する処理である。
<< 1 >> Embodiment 1
<< 1-1 >> Overview.
FIG. 1 is a block diagram schematically showing a configuration of an image processing apparatus according to Embodiment 1 of the present invention (that is, an apparatus capable of performing the image processing method according to Embodiment 1). The image processing apparatus according to the first embodiment expands the number of bits (the number of gradations) for converting an m-bit (m is a natural number) digital input image signal Da into an n-bit (n is a natural number) digital output image signal Db. A gradation conversion unit 1 capable of performing gradation conversion processing (n> m) is provided. The gradation conversion processing by the gradation converting means 1 is performed by, for example, expanding the number of bits and adding the correction bit data Cd, which is bit data lower than the input image signal Da, to the m-bit input image signal Da. This is a process of correcting the tone value and generating an n-bit output image signal Db.

図1に示される階調変換手段1は、入力画像信号Daの空間方向の画素間の階調値の差分を階調が変化した際の階調変化量dfとして求め、求められた階調変化量dfに基づいて、各画素を、階調変化量dfが値0になる「階調平坦領域」(Ar=0)に属する画素、入力画像信号Daに含まれるノイズ成分によって階調変化量dfが値0ではない値になる「ノイズ領域」(「ノイズ階調変化領域」とも言う。)に属する画素、並びに、階調平坦領域及びノイズ領域のいずれでもない「非ノイズ階調変化位置」(「非ノイズ階調変化領域」とも言う。)の画素のいずれかに分類する判定を行い、該判定の結果を示す領域信号Arを出力する。すなわち、階調変換手段1は、画素領域を、階調平坦領域、ノイズ領域、非ノイズ階調変化位置の3つの領域に分割するための判定を行い、該判定の結果を示す領域信号Arを出力する。実施の形態1においては、階調平坦領域(df=0)の画素についての領域信号Arは値‘0’(Ar=0)であり、ノイズ領域の画素についての領域信号Arは値‘1’(Ar=1)であり、非ノイズ階調変化位置の画素についての領域信号Arは値‘2’(Ar=2)である。ただし、領域信号Arの値は、各画素が3つの領域のいずれに属する画素であるかを示す値であれば、他の値を採用してもよい。また、本発明は、階調平坦領域とノイズ領域とを1つ共通領域(後述する「平坦・ノイズ領域」)として扱う場合をも含んでいるので、領域信号Arとして、共通領域と非ノイズ階調変化位置との2つの領域を示す値を採用することも可能である。   The gradation converting means 1 shown in FIG. 1 obtains the difference in gradation value between pixels in the spatial direction of the input image signal Da as the gradation change amount df when the gradation changes, and the obtained gradation change. Based on the amount df, each pixel is divided into a pixel belonging to a “gradation flat region” (Ar = 0) where the gradation change amount df is 0, and a gradation change amount df depending on a noise component included in the input image signal Da. Pixels belonging to a “noise area” (also referred to as “noise gradation change area”) where the value becomes a value other than 0, and a “non-noise gradation change position” that is neither a flat gradation area nor a noise area ( It is determined that the pixel is classified into any one of “non-noise gradation changing region”), and an area signal Ar indicating the result of the determination is output. That is, the gradation converting means 1 performs a determination for dividing the pixel area into three areas, a flat gradation area, a noise area, and a non-noise gradation change position, and an area signal Ar indicating the determination result is obtained. Output. In the first embodiment, the region signal Ar for the pixel in the flat gradation region (df = 0) has the value “0” (Ar = 0), and the region signal Ar for the pixel in the noise region has the value “1”. (Ar = 1), and the region signal Ar for the pixel at the non-noise gradation change position has a value “2” (Ar = 2). However, as the value of the area signal Ar, other values may be adopted as long as each pixel indicates a pixel belonging to which of the three areas. Further, the present invention includes a case where the gray level flat area and the noise area are treated as one common area (a “flat / noise area” described later), and therefore the common area and the non-noise level are used as the area signal Ar. It is also possible to adopt a value indicating two areas of the tone change position.

また、階調変換手段1は、領域信号Arに基づいて、非ノイズ階調変化位置(Ar=2)の画素である基準画素から次に現れる非ノイズ階調変化位置(Ar=2)の画素までの間にある階調平坦領域及びノイズ領域(階調平坦領域及びノイズ領域(Ar=0,1)を「平坦・ノイズ領域」と言う。)の幅である「平坦・ノイズ領域幅」の予測値を示す「平坦・ノイズ領域幅データ予測値」を生成する。この基準画素の直後の平坦・ノイズ領域の幅を予測した平坦・ノイズ領域幅データ予測値dstは、基準画素の直前の平坦・ノイズ領域幅と基準画素の直前に検出された直前基準画素において生成された直前平坦・ノイズ領域幅データ予測値とに基づいて計算(例えば、後述する図18(f)の「(0+7)/2」の計算、「(4+7)/2」の計算など)される。   Further, the gradation converting means 1 is a pixel at the non-noise gradation change position (Ar = 2) that appears next from the reference pixel that is a pixel at the non-noise gradation change position (Ar = 2) based on the area signal Ar. The gradation flat area and noise area (the gradation flat area and noise area (Ar = 0, 1) are referred to as “flat / noise area”), A “flat / noise area width data predicted value” indicating the predicted value is generated. The flat / noise area width data prediction value dst obtained by predicting the width of the flat / noise area immediately after the reference pixel is generated in the flat / noise area width immediately before the reference pixel and the immediately preceding reference pixel detected immediately before the reference pixel. Is calculated based on the predicted value immediately before the flat / noise area width data (for example, calculation of “(0 + 7) / 2”, calculation of “(4 + 7) / 2” in FIG. 18F described later), and the like). .

さらに、階調変換手段1は、階調変化量dfを振幅制限して得られた振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstとに基づいて、非ノイズ階調変化位置(Ar=2)の基準画素の直後の平坦・ノイズ領域における変換後データの階調値の傾きを設定する際に用いる傾きデータ値Kslを求め、階調変化量dfに基づいて画像のエッジ(輪郭)による出力画像信号の階調値の傾きを制限する補正制限係数rcを設定し、振幅制限階調変化量Xlmと傾きデータ値Kslと補正制限係数rcとを用いて、入力画像信号Daの階調値La(x)の補正値を求め、該補正値に対応する補正ビットデータCdを生成し、入力画像信号Daの階調値La(x)の画素のデータに対し補正ビットデータCdに応じた値を減算又は加算して、変換後データで構成される出力画像信号Dbを生成する。   Further, the tone converting means 1 determines the non-noise tone change position based on the amplitude limit tone change amount Xlm obtained by limiting the amplitude of the tone change amount df and the flat / noise area width data predicted value dst. An inclination data value Ksl used when setting the inclination of the gradation value of the converted data in the flat / noise area immediately after the reference pixel of (Ar = 2) is obtained, and the edge of the image (based on the gradation change amount df) is obtained. A correction limiting coefficient rc for limiting the gradient of the gradation value of the output image signal due to the contour) is set, and by using the amplitude limited gradation change amount Xlm, the gradient data value Ksl, and the correction limiting coefficient rc, the input image signal Da A correction value of the gradation value La (x) is obtained, correction bit data Cd corresponding to the correction value is generated, and correction bit data Cd is generated for pixel data of the gradation value La (x) of the input image signal Da. Subtract or add the corresponding value Te, and it generates an output image signal Db composed of converted data.

実施の形態1の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれている場合であっても、ノイズ領域(Ar=1)を非ノイズ階調変化位置(Ar=2)と区別して検出し、入力画像信号Daの階調値が非常に緩やかに変化する区間における平坦・ノイズ領域幅(ノイズ成分がない場合には「階調平坦領域幅」ともいう。)をノイズ成分に影響されずに正確に検出することができる。このため、平坦・ノイズ領域幅データ予測値dstを用いて算出される傾きデータ値Kslをノイズ成分により影響されずに適切に求めることができ、この傾きデータ値Kslを用いて算出される補正ビットデータCdを適切に求めることができ、補正ビットデータCdを用いて行われる画像信号の階調変換処理を適切に行うことができる。その結果、入力画像信号Daの非常に緩やかに階調値が変化する区間における画像を、画像のディテールが失われたり、鮮鋭度が損なわれたりすることなく、階調の変化が滑らかな高品位な画像として表示させることができる出力画像信号Dbを生成することができる。また、実施の形態1における階調変換手段1の処理には、平坦・ノイズ領域幅に相当する容量の画像メモリを用いる必要がないので、上記階調変換処理を、回路規模を大幅に増やさず、実時間の信号処理により実現することができる。   According to the image processing apparatus or the image processing method of the first embodiment, even if the input image signal Da includes a noise component, the noise region (Ar = 1) is detected as the non-noise gradation change position (Ar = 2), and a flat / noise area width in a section where the gradation value of the input image signal Da changes very slowly (also referred to as “gradation flat area width” when there is no noise component). Can be accurately detected without being affected by the noise component. Therefore, the slope data value Ksl calculated using the flat / noise region width data predicted value dst can be appropriately obtained without being affected by the noise component, and the correction bit calculated using the slope data value Ksl. The data Cd can be obtained appropriately, and the gradation conversion processing of the image signal performed using the correction bit data Cd can be appropriately performed. As a result, an image in a section in which the gradation value changes very slowly in the input image signal Da is high quality with smooth gradation change without losing image details and loss of sharpness. An output image signal Db that can be displayed as a simple image can be generated. In addition, since the processing of the gradation converting means 1 in the first embodiment does not require the use of an image memory having a capacity corresponding to the flat / noise area width, the gradation converting process does not significantly increase the circuit scale. Can be realized by real-time signal processing.

《1−2》構成.
《1−2−1》画像処理装置.
図1に示されるように、実施の形態1の画像処理装置は、時間方向及び空間方向に離散したデータで構成される入力画像信号Daが入力され、この入力画像信号Daの階調数を拡張し且つ階調値(階調レベル)を補正する変換処理によって生成された変換後データで構成される出力画像信号Dbを出力する階調変換手段1を有している。階調変換手段1は、階調変化量検出手段10と、画素領域判定手段20と、平坦・ノイズ領域幅判定手段30と、傾き検出手段40と、エッジ変化検出手段60と、補正ビット生成手段50と、遅延補償手段91と、画素値演算手段92とを有している。
<< 1-2 >> Configuration.
<< 1-2-1 >> Image processing apparatus.
As shown in FIG. 1, the image processing apparatus according to the first embodiment receives an input image signal Da composed of discrete data in the time direction and the spatial direction, and expands the number of gradations of the input image signal Da. In addition, a gradation conversion unit 1 is provided that outputs an output image signal Db composed of post-conversion data generated by a conversion process for correcting gradation values (gradation levels). The gradation converting means 1 includes a gradation change amount detecting means 10, a pixel area determining means 20, a flat / noise area width determining means 30, an inclination detecting means 40, an edge change detecting means 60, and a correction bit generating means. 50, delay compensation means 91, and pixel value calculation means 92.

階調変化量検出手段10は、入力画像信号Daから、互いに隣接配置(例えば、水平方向又は垂直方向に隣接配置)された画素の階調値の差分である階調変化量dfを算出して出力する階調変化量算出手段11と、階調変化量dfの値を所定の範囲内に制限した振幅制限階調変化量Xlmを生成して出力する階調変化量制限手段12とを備えている。   The gradation change amount detection means 10 calculates, from the input image signal Da, a gradation change amount df that is a difference between gradation values of pixels adjacently arranged (for example, adjacently arranged in the horizontal direction or the vertical direction). A gradation change amount calculating means 11 for outputting, and a gradation change amount limiting means 12 for generating and outputting an amplitude limited gradation change amount Xlm in which the value of the gradation change amount df is restricted within a predetermined range are provided. Yes.

画素領域判定手段20は、階調変化量検出手段10からの階調変化量dfから、各画素を、df=0である「階調平坦領域に属する画素」、ノイズ成分によってdf≠0となる「ノイズ領域に属する画素」、ノイズ成分によらずにdf≠0となる「非ノイズ階調変化位置の画素」のいずれかに分類する判定を行い、判定結果を示す領域信号Arを出力する。このよう各画素を3つの領域に分類(区別)する判定を行うことにより、水平方向(又は垂直方向)に並ぶ画素によって構成される画素領域は、「階調平坦領域」(Ar=0)、「ノイズ領域」(Ar=1)、「非ノイズ階調変化位置」(Ar=2)の3つの領域に区別(分割)される。   The pixel area determination unit 20 sets each pixel from the gradation change amount df from the gradation change amount detection unit 10 to “pixel belonging to a flat gradation region” where df = 0, and df ≠ 0 due to a noise component. The determination is made to classify the pixel into either “a pixel belonging to the noise region” or “a pixel at the non-noise gradation change position” where df ≠ 0 regardless of the noise component, and an area signal Ar indicating the determination result is output. By performing the determination to classify (discriminate) each pixel into three regions in this way, a pixel region constituted by pixels arranged in the horizontal direction (or vertical direction) is a “gradation flat region” (Ar = 0), It is distinguished (divided) into three areas of “noise area” (Ar = 1) and “non-noise gradation change position” (Ar = 2).

平坦・ノイズ領域幅判定手段30は、画素領域判定手段20からの領域信号Arから、非ノイズ階調変化位置(Ar=2)の画素が検出されるごとに、この検出された非ノイズ階調変化位置の画素を基準画素とし、この基準画素の直後の平坦・ノイズ領域の平坦・ノイズ領域幅(すなわち、非ノイズ階調変化位置の基準画素と次に現れる非ノイズ階調変化位置の画素との間にある平坦・ノイズ領域幅の予測値)である平坦・ノイズ領域幅データ予測値dstを生成する手段である。平坦・ノイズ領域幅判定手段30は、基準画素の直前の平坦・ノイズ領域の平坦・ノイズ領域幅と基準画素の直前に検出された直前基準画素において生成された直前平坦・ノイズ領域幅データ予測値とに基づいて、基準画素の直後の平坦・ノイズ領域の平坦・ノイズ領域幅を予測した平坦・ノイズ領域幅データ予測値dstを生成する。   The flat / noise area width determining unit 30 detects the detected non-noise gradation every time a pixel at the non-noise gradation changing position (Ar = 2) is detected from the area signal Ar from the pixel area determining unit 20. The pixel at the change position is set as a reference pixel, and the flatness / noise area width of the flat / noise area immediately after this reference pixel (that is, the reference pixel at the non-noise gradation change position and the pixel at the non-noise gradation change position appearing next) Is a flat / noise region width data predicted value dst). The flat / noise area width determination means 30 calculates the flatness / noise area width of the flat / noise area immediately before the reference pixel and the previous flat / noise area width data predicted value generated in the immediately preceding reference pixel detected immediately before the reference pixel. Based on the above, a flat / noise area width data prediction value dst in which the flat / noise area width immediately after the reference pixel is predicted is generated.

傾き検出手段40は、階調変化量検出手段10からの振幅制限階調変化量Xlmと平坦・ノイズ領域幅判定手段30からの平坦・ノイズ領域幅データ予測値dstとに基づいて、非ノイズ階調変化位置の基準画素の直後の平坦・ノイズ領域における変換後データの階調値の傾きを設定する際に用いる傾きデータ値Kslを求める手段である。   The inclination detection means 40 is based on the amplitude-limited gradation change amount Xlm from the gradation change amount detection means 10 and the flat / noise area width data predicted value dst from the flat / noise area width determination means 30. This is means for obtaining an inclination data value Ksl used when setting the inclination of the gradation value of the converted data in the flat / noise area immediately after the reference pixel at the tone change position.

エッジ変化検出手段60は、階調変化量検出手段10からの階調変化量dfに基づいて階調変化位置における階調変化が画像のエッジによる階調変化であるか否かを判定し、該判定結果に応じて出力画像信号Dbの階調値の傾きを制限する補正制限係数rcを設定する手段である。   The edge change detection means 60 determines whether or not the gradation change at the gradation change position is a gradation change caused by an edge of the image based on the gradation change amount df from the gradation change amount detection means 10. This is means for setting a correction limiting coefficient rc for limiting the gradient of the gradation value of the output image signal Db according to the determination result.

補正ビット生成手段50は、階調変化量検出手段10からの振幅制限階調変化量Xlmと、傾き検出手段40からの傾きデータ値Kslと、エッジ変化検出手段60からの補正制限係数rcとから、入力画像信号Daの階調値の補正値を求め、該補正値に対応する補正ビットデータCdを生成する手段である。   The correction bit generation means 50 is based on the amplitude limit gradation change amount Xlm from the gradation change amount detection means 10, the inclination data value Ksl from the inclination detection means 40, and the correction restriction coefficient rc from the edge change detection means 60. A means for obtaining a correction value of the gradation value of the input image signal Da and generating correction bit data Cd corresponding to the correction value.

遅延補償手段91は、入力画像信号Daを遅延させて画像信号Ddとして画素値演算手段92に出力する手段である。画素値演算手段92は、入力画像信号Da(Dd)の階調値に対し補正ビットデータCdに応じた値を減算又は加算して、変換後データで構成される出力画像信号Dbを生成する手段である。   The delay compensation unit 91 is a unit that delays the input image signal Da and outputs it to the pixel value calculation unit 92 as an image signal Dd. The pixel value calculation unit 92 subtracts or adds a value corresponding to the correction bit data Cd to the gradation value of the input image signal Da (Dd) to generate an output image signal Db composed of the converted data. It is.

階調変換手段1は、mビットの入力画像信号Da(Dd)に下位ビットとして補正ビットデータCdを付加することによって、mビットの入力画像信号Da(Dd)をnビットの出力画像信号Dbにビット数を拡張して順次出力する。また、階調変換手段1は、補正制限係数rcを用いることによって、階調変化位置における階調変化量dfが大きいとき(階調値の変化が画像のエッジ(輪郭)による変化であると判定したとき)には、補正ビットデータCdを0にし(又は0に近づけ)、階調変化位置における階調変化量dfが小さいときには、補正ビットデータCdを傾きデータ値Kslに基づく値としている。   The gradation converting means 1 adds the correction bit data Cd as the lower bits to the m-bit input image signal Da (Dd), thereby converting the m-bit input image signal Da (Dd) into the n-bit output image signal Db. The number of bits is expanded and output sequentially. Further, the gradation conversion means 1 uses the correction limiting coefficient rc to determine that the gradation change amount df at the gradation change position is large (the change in the gradation value is a change due to the edge (outline) of the image. The correction bit data Cd is set to 0 (or close to 0), and when the gradation change amount df at the gradation change position is small, the correction bit data Cd is set to a value based on the inclination data value Ksl.

実施の形態1における画像処理装置及び画像処理方法は、画像が表示された画面の一定方向(例えば、水平方向)に非常に緩やかに階調値が変化する画像領域に対し、回路規模を大幅に増やすことなく、ノイズ領域(Ar=1)における階調変化(df≠0)を、非ノイズ階調変化位置(Ar=2)における階調変化(df≠0)と区別して検出して、階調変化をより適切に検出する。このため、検出結果に基づいて画像信号の階調を十分な階調数へ拡張し、また、画像のディテールが失われたり、鮮鋭度が損なわれたりすることなく、階調が滑らかに変化する画像を表示させることができる出力画像信号Dbを生成することができる。   The image processing apparatus and the image processing method according to the first embodiment greatly increases the circuit scale for an image region in which a gradation value changes very gently in a certain direction (for example, the horizontal direction) of a screen on which an image is displayed. Without increasing, the gradation change (df ≠ 0) in the noise region (Ar = 1) is detected separately from the gradation change (df ≠ 0) in the non-noise gradation change position (Ar = 2), and Detect tonal changes more appropriately. For this reason, the gradation of the image signal is expanded to a sufficient number of gradations based on the detection result, and the gradation changes smoothly without losing image details or loss of sharpness. An output image signal Db that can display an image can be generated.

また、実施の形態1の画像処理装置及び画像処理方法においては、階調変化位置における階調値の変化が画像のエッジ(輪郭)による変化であると判定された場合には、補正制限係数rcによって、補正ビットデータCdを0にする(又は0に近づける)ことによって、入力画像信号Daの値に忠実な出力画像信号Dbを生成することができる。このため、実施の形態1の画像処理装置によって階調変換された出力画像信号Dbが入力された表示手段(図1には示さず)は、入力画像信号Daの値に忠実に表示すべき画像の輪郭などにおいては、入力画像信号Daの値に忠実に画像を表示でき、且つ、入力画像信号Daの階調値が非常に緩やかに変化する区間(階調平坦領域であるが、ノイズ領域をも含む。)においては、擬似輪郭を低減した高品位な画像の表示を実現することができる。   In the image processing apparatus and the image processing method according to the first embodiment, when it is determined that the change in the gradation value at the gradation change position is a change due to the edge (contour) of the image, the correction limiting coefficient rc Thus, the output image signal Db faithful to the value of the input image signal Da can be generated by setting the correction bit data Cd to 0 (or approaching 0). For this reason, the display means (not shown in FIG. 1) to which the output image signal Db whose gradation has been converted by the image processing apparatus of the first embodiment is to be displayed faithfully to the value of the input image signal Da. In the contour, the image can be displayed faithfully to the value of the input image signal Da, and the gradation value of the input image signal Da changes very slowly (the gradation gradation region is the noise region. In addition, the display of a high-quality image with reduced pseudo contour can be realized.

なお、本出願において、「…手段」として示される構成は、電気回路(ハードウェア)によって実現されるもの、又は、ソフトウェアによって実現されるもののいずれであってもよい。   In the present application, the configuration indicated as “... Means” may be realized by an electric circuit (hardware) or realized by software.

図1においては、アナログ又はデジタルの画像信号がmビットのデジタル画像信号の形式に変換されて、階調変換手段1に、入力画像信号Daとして入力される。階調変換手段1は、例えば、Qビットの補正ビットデータCdを生成し、Qビットの補正ビットデータCdをmビットの入力画像信号Daの最下位側に付加して階調数を拡張し、nビットの出力画像信号Dbを生成する。入力画像信号Daのビット数mは、例えば、8ビットであり、階調補正値のビット数Qは、例えば、4ビットであり、出力画像信号Dbのビット数nは、例えば、12ビットである。また、実施の形態1においては、入力画像信号Daの階調値の変化を検出する一定方向が、画面の水平方向(画面表示水平走査方向)である場合を説明する。また、実施の形態1においては、階調変換手段1は、階調変化量dfが8ビットの入力画像信号Daの最下位1ビット分の差、すなわち、画素間の階調値の差分が+1又は−1の変化である区間を、非常に緩やかに階調値が変化する区間として、階調変換処理を行い、非常に緩やかに階調値が変化する区間を階調が滑らかに変化する画像として表示できるようにする。   In FIG. 1, an analog or digital image signal is converted into an m-bit digital image signal format and input to the gradation conversion means 1 as an input image signal Da. For example, the gradation converting means 1 generates Q-bit correction bit data Cd, adds the Q-bit correction bit data Cd to the least significant side of the m-bit input image signal Da, and extends the number of gradations. An n-bit output image signal Db is generated. The bit number m of the input image signal Da is, for example, 8 bits, the bit number Q of the gradation correction value is, for example, 4 bits, and the bit number n of the output image signal Db is, for example, 12 bits. . Further, in the first embodiment, a case will be described in which the fixed direction for detecting the change in the gradation value of the input image signal Da is the horizontal direction of the screen (screen display horizontal scanning direction). Further, in the first embodiment, the gradation converting means 1 has a difference of the least significant 1 bit of the input image signal Da having the gradation change amount df of 8 bits, that is, a difference of gradation values between pixels is +1. Alternatively, an interval in which the gradation value changes very slowly as a section where the gradation value changes −1, and gradation conversion processing is performed, and an image in which the gradation changes smoothly in a section where the gradation value changes very slowly. Can be displayed as

なお、画像信号は、輝度と色度で表す形式、又は、赤(R)、緑(G)、青(B)などの原色信号で表わす形式があるが、階調変換手段1は、画像信号がいずれの形式の信号であっても画像信号処理を行うことができる。また、以下においては、階調変換手段1がいずれか1つの形式の画像信号を処理する場合を説明する。また、以下においては、入力画像信号Daの水平方向に対し画像処理を行い、8ビットの入力画像信号Daの階調数を拡張及び補正する階調変換補正処理を行い、12ビットの出力画像信号Dbとして出力する場合を説明する。   The image signal has a format represented by luminance and chromaticity or a format represented by primary color signals such as red (R), green (G), and blue (B). The image signal processing can be performed for any type of signal. In the following, a case where the gradation converting unit 1 processes any one type of image signal will be described. In the following, image processing is performed in the horizontal direction of the input image signal Da, gradation conversion correction processing for expanding and correcting the number of gradations of the 8-bit input image signal Da, and 12-bit output image signal is performed. A case of outputting as Db will be described.

図2(a)〜(c)は、実施の形態1による画像処理装置における信号波形(入力画像信号Daの階調値が非常に緩やかに上昇し、ノイズ成分を含まない場合)を示す図であり、図2(a)は、8ビットの入力画像信号Daの最下位ビット付近の階調値La(x)(階調値1〜6の範囲)を示し、図2(b)は、入力画像信号Daの階調変化量df及び階調変化位置(非ノイズ階調変化位置のみ)を示し、図2(c)は、階調数が拡張された12ビットの出力画像信号Dbの最下位ビット付近の階調値Lb(x)(階調値16〜96の範囲)を示す。なお、図2(a)〜(c)の横軸は、画面の水平方向に並ぶ画素の位置xを示す。また、図2(a)の縦軸は、各画素位置における8ビットの入力画像信号Daの階調値La(x)を示し、図2(b)の縦軸は、階調変化量dfを示し、図2(c)の縦軸は、各画素位置における12ビットの出力画像信号Dbの階調値Lb(x)を示す。図2(a)には、入力画像信号Daの階調値La(x)が、水平方向の画素位置x=8〜40の間で8画素ごとに、階調値の最下位1ビット分の1階調ずつ緩やかに増加している場合が示されている。図2(b)には、階調変換手段1において求められる入力画像信号Daの階調変化量df、階調値の変化がない階調平坦領域幅(「平坦・ノイズ領域幅」でもある。)と画素位置との関係が示されている。図2(c)には、階調変換手段1から出力される12ビットの出力画像信号Dbの階調値Lb(x)の変化が示されている。階調差が大きく、例えば、2階調より大きい場合には、隣接画素間の境界において、信号の階調レベルは滑らかに変化していないと言うことができる。このため、階調差が大きい(例えば、2階調以上)の場合には、この階調の境界に輪郭が見えても問題はない。一方、階調差が1階調である場合は、隣接画素間の境界において信号の階調レベルは滑らかに変化しているものの、上記の境界に量子化ノイズ又は擬似輪郭が発生する場合がある。このような、階調差が1階調で緩やかに(低周波で)階調値が変化する画像信号の画素においては、階調値がより滑らかに変化するように(例えば、図2(c)に示されるように)、画像信号Daの階調数を増やす階調変換を行う。   FIGS. 2A to 2C are diagrams showing signal waveforms (when the gradation value of the input image signal Da rises very slowly and does not include noise components) in the image processing apparatus according to the first embodiment. 2A shows the gradation value La (x) (range of gradation values 1 to 6) in the vicinity of the least significant bit of the 8-bit input image signal Da, and FIG. The gradation change amount df and the gradation change position (only the non-noise gradation change position) of the image signal Da are shown, and FIG. 2C shows the lowest order of the 12-bit output image signal Db in which the number of gradations is expanded. A gradation value Lb (x) in the vicinity of a bit (range of gradation values 16 to 96) is shown. 2A to 2C indicate the positions x of pixels arranged in the horizontal direction of the screen. Also, the vertical axis in FIG. 2A indicates the gradation value La (x) of the 8-bit input image signal Da at each pixel position, and the vertical axis in FIG. 2B indicates the gradation change amount df. In FIG. 2C, the vertical axis indicates the gradation value Lb (x) of the 12-bit output image signal Db at each pixel position. In FIG. 2A, the gradation value La (x) of the input image signal Da corresponds to the least significant 1 bit of the gradation value every 8 pixels between the horizontal pixel positions x = 8-40. A case where the gradation gradually increases by one gradation is shown. FIG. 2B shows the gradation change amount df of the input image signal Da obtained by the gradation conversion means 1 and the gradation flat region width (“flat / noise region width”) in which the gradation value does not change. ) And the pixel position. FIG. 2C shows a change in the gradation value Lb (x) of the 12-bit output image signal Db output from the gradation converting means 1. When the gradation difference is large, for example, larger than 2 gradations, it can be said that the gradation level of the signal does not change smoothly at the boundary between adjacent pixels. For this reason, when the gradation difference is large (for example, two gradations or more), there is no problem even if an outline can be seen at the boundary of the gradation. On the other hand, when the gradation difference is 1 gradation, although the gradation level of the signal changes smoothly at the boundary between adjacent pixels, quantization noise or pseudo contour may occur at the boundary. . In such a pixel of an image signal in which the gradation value changes gradually (at a low frequency) with one gradation, the gradation value changes more smoothly (for example, FIG. )), Gradation conversion for increasing the number of gradations of the image signal Da is performed.

図3(a)〜(c)は、実施の形態1による画像処理装置における信号波形(入力画像信号Daの階調値が非常に緩やかに上昇し、ノイズ・誤差等のノイズ成分を含む場合)を示す図であり、図3(a)は、8ビットの入力画像信号Daの最下位ビット付近の階調値La(x)(階調値1〜6の範囲)を示し、図3(b)は、入力画像信号Daの階調変化量df及び階調変化位置(この図においては、ノイズ領域及び非ノイズ階調変化位置)を示し、図3(c)は、階調数が拡張された12ビットの出力画像信号Dbの最下位ビット付近の階調値Lb(x)(階調値16〜96の範囲)を示す。なお、図3(a)〜(c)の横軸は、画面の水平方向に並ぶ画素の位置xを示す。また、図3(a)の縦軸は、各画素位置における8ビットの入力画像信号Daの階調値La(x)を示し、図3(b)の縦軸は、階調変化量dfを示し、図3(c)の縦軸は、各画素位置における12ビットの出力画像信号Dbの階調値Lb(x)を示す。   FIGS. 3A to 3C are signal waveforms in the image processing apparatus according to the first embodiment (when the gradation value of the input image signal Da increases very slowly and includes noise components such as noise and error). FIG. 3A shows the gradation value La (x) (range of gradation values 1 to 6) near the least significant bit of the 8-bit input image signal Da, and FIG. ) Shows the gradation change amount df and the gradation change position (in this figure, the noise region and the non-noise gradation change position) of the input image signal Da, and FIG. Further, the gradation value Lb (x) (range of gradation values 16 to 96) near the least significant bit of the 12-bit output image signal Db is shown. Note that the horizontal axis of FIGS. 3A to 3C indicates the position x of the pixels arranged in the horizontal direction of the screen. Also, the vertical axis in FIG. 3A indicates the gradation value La (x) of the 8-bit input image signal Da at each pixel position, and the vertical axis in FIG. 3B indicates the gradation change amount df. In FIG. 3C, the vertical axis indicates the gradation value Lb (x) of the 12-bit output image signal Db at each pixel position.

図3(a)には、入力画像信号Daの階調値La(x)が、水平方向の画素位置x=8〜40の間で8画素ごとに、階調値の最下位1ビット分の1階調ずつ緩やかに増加しているが、ノイズ成分を含む場合が示されている。図3(a)は、図2(a)に示した1階調ずつ緩やかに増加している入力画像信号に対し、ノイズ成分が追加された例を示している。図3(a)の例においては、画素位置x=19(=x)の画素において階調値が1階調だけ増加している。また、図3(a)の例においては、画素位置x=35(=x)の画素において階調値の変化があり、その前後の画素位置x=34(=x−1)の画素及び画素位置x=36(=x+1)の画素において、1階調の範囲内の階調値の増加又は減少となる高周波の変化がある。 In FIG. 3A, the gradation value La (x) of the input image signal Da corresponds to the least significant 1 bit of the gradation value every 8 pixels between the horizontal pixel positions x = 8-40. Although it gradually increases by one gradation, a case where a noise component is included is shown. FIG. 3A shows an example in which a noise component is added to the input image signal that gradually increases by one gradation shown in FIG. In the example of FIG. 3A, the gradation value is increased by one gradation in the pixel at the pixel position x = 19 (= x 1 ). In the example of FIG. 3A, the gradation value changes in the pixel at the pixel position x = 35 (= x 2 ), and the pixel at the pixel position x = 34 (= x 2 −1) before and after the pixel value. In the pixel at the pixel position x = 36 (= x 2 +1), there is a high-frequency change that increases or decreases the gradation value within the range of one gradation.

図3(b)には、階調変換手段1において求められる入力画像信号Daの階調変化量df、階調値の変化がない階調平坦領域(df=0)と、ノイズ領域(x=x−1,x,x−1,x,x+1)と、非ノイズ階調変化位置(画素位置x=8,16,24,32,40)とが示されている。図3(b)においては、水平方向の画素位置x=8〜40の間で8画素ごとに1階調の差で階調値が変化している画素(画素位置x=8,16,24,32,40)における階調変化量は、1階調(df=+1)として得られる。また、図3(b)においては、画素位置x及びその後における画素位置x+1、並びに、画素位置x及びその前後における画素位置x−1,x+1においても、階調変化量dfが0ではない値として得られる。この階調変化量dfの値のみにより、階調値の変化を検出するのであれば、高周波の変化がある階調変化に対しても、検出すべき階調変化の画素位置とみなされることになり、(例えば、ノイズ領域の画素を非ノイズ階調変化位置の画素と誤って検出する)誤検出の原因となる。 In FIG. 3B, the gradation change amount df of the input image signal Da obtained by the gradation conversion means 1, a gradation flat region (df = 0) where there is no change in gradation value, and a noise region (x = x 1 −1, x 1 , x 2 −1, x 2 , x 2 +1) and non-noise gradation change positions (pixel positions x = 8, 16, 24, 32, 40) are shown. In FIG. 3 (b), pixels whose pixel values change with a difference of one gradation every eight pixels between horizontal pixel positions x = 8 to 40 (pixel positions x = 8, 16, 24). , 32, 40) is obtained as one gradation (df = + 1). In FIG. 3B, the gradation change amount is also obtained at the pixel position x 1 and the subsequent pixel position x 1 +1, and at the pixel position x 2 and the pixel positions x 2 −1 and x 2 +1 before and after the pixel position x 2. df is obtained as a non-zero value. If the change in the gradation value is detected only by the value of the gradation change amount df, the pixel position of the gradation change that should be detected is considered even for the gradation change that has a high frequency change. (For example, a pixel in a noise region is erroneously detected as a pixel in a non-noise gradation change position), which causes false detection.

一般に、人間の目は、高周波成分よりも低周波成分に対する方が感度が高く、量子化ノイズ又は擬似輪郭が発生して認識される場合は、変化の階調差は1階調付近で、ある程度の幅で単調に階調値が増加又は減少する緩やかな(低周波の)階調変化である。一方、ノイズ(誤差)成分は数画素の範囲の領域で階調値の増加、減少が起こる高周波の変化であり、その振幅は画像信号のレベルに比べてある程度小さいと考えられる。よって、図3(b)の画素位置x及びxのそれぞれの前後における画素における階調値の変化は、数画素の範囲の領域で増加、減少となる高周波の変化であり、その変化の階調差は比較的小さい振幅となっており、これらの変化は、ノイズ・誤差等のノイズ成分によるものと言える。画像信号の緩やかな階調変化を表示画像において一層滑らかに表示するためには、ノイズ成分による階調変化を除き、緩やかに階調値が変化する画像領域の平坦・ノイズ領域幅を適切に求め、階調値の傾きを適切に求めて、緩やかに(低周波で)階調値が変化する画像信号の画素の階調値がより滑らかに変化するようにする必要がある。 In general, the human eye is more sensitive to low frequency components than high frequency components, and when quantization noise or pseudo contours are generated and recognized, the gradation difference of change is close to one gradation, to some extent. Is a gradual (low frequency) gradation change in which the gradation value monotonously increases or decreases within a range of. On the other hand, the noise (error) component is a high-frequency change in which the gradation value increases or decreases in a range of several pixels, and its amplitude is considered to be somewhat smaller than the level of the image signal. Thus, variation in gray values of the pixels before and after each of the pixel positions x 1 and x 2 in FIG. 3 (b), the increase in area in the range of a few pixels, the change in the reduction frequency, of the change The gradation difference has a relatively small amplitude, and it can be said that these changes are caused by noise components such as noise and error. In order to display the smooth gradation change of the image signal more smoothly in the display image, the flatness / noise area width of the image area where the gradation value changes gently is determined appropriately, excluding the gradation change due to noise components. Therefore, it is necessary to appropriately obtain the gradient of the gradation value so that the gradation value of the pixel of the image signal whose gradation value gradually changes (at a low frequency) changes more smoothly.

図3(c)には、階調変換手段1から出力される12ビットの出力画像信号Dbの階調値Lb(x)の変化が示されている。図3(c)は、図3(a)の信号を、(ノイズ成分による高周波の変化はあるが)緩やかに階調値が変化する領域である平坦・ノイズ領域の平坦・ノイズ領域幅と、階調値の傾きを求めて、階調数を増やす階調変換を行った場合の階調変換手段1から出力される12ビットの出力画像信号Dbの階調値の一例を示している。図3(c)の例で示されるように、階調変換手段1においては、ノイズ成分による階調値の変化を残したまま、その他の緩やかな階調変化は、階調値がより滑らかに変化するように階調変換が行われる。   FIG. 3C shows a change in the gradation value Lb (x) of the 12-bit output image signal Db output from the gradation converting means 1. FIG. 3 (c) shows the signal of FIG. 3 (a), the flatness / noise area width of the flat / noise area, which is the area where the gradation value gradually changes (although there is a high-frequency change due to the noise component), An example of the gradation value of the 12-bit output image signal Db output from the gradation converting means 1 when gradation conversion that increases the number of gradations by obtaining the gradient of the gradation value is shown. As shown in the example of FIG. 3C, in the gradation converting unit 1, other gradual gradation changes leave the gradation values smoother while leaving the gradation value changes due to noise components. Gradation conversion is performed so as to change.

《1−2−2》階調変化量検出手段10.
階調変化量検出手段10には、入力画像信号Daが入力される。階調変化量検出手段10は、入力画像信号Daにおける水平方向に隣接する画素間の階調値(画素値又は階調レベル)の差を算出して階調変化量dfとして求め、これを出力すると共に、階調変化量dfの値を所定の範囲内に制限した振幅制限階調変化量Xlmを出力する。
<< 1-2-2 >> Tone change detection means
An input image signal Da is input to the gradation change amount detection means 10. The gradation change amount detection means 10 calculates a difference in gradation value (pixel value or gradation level) between pixels adjacent in the horizontal direction in the input image signal Da to obtain a gradation change amount df, which is output. At the same time, an amplitude limited gradation change amount Xlm in which the value of the gradation change amount df is limited within a predetermined range is output.

階調変化量検出手段10に、図2(a)又は図3(a)に示されるような入力画像信号Daが入力されると、階調変化量検出手段10は、水平方向の画素位置xの画素とその直前の画素位置x−1の画素との間の階調値の差(階調変化量)を算出し、例えば、図2(b)又は図3(b)に示されるような階調変化量dfを得る。階調変化量検出手段10で得られた階調変化量dfがdf≠0である画素位置にある画素は、階調値が変化する画素位置(すなわち、非ノイズ階調変化位置)の画素、又は、ノイズ成分による階調値の変化がある画素位置(すなわち、ノイズ領域)の画素である。例えば、図2(b)に示される例においては、画素位置x=8から8画素数ごとの画素位置において、階調変化量df=+1となっており、画素位置x=8から8画素数ごとの画素位置の間の画素において、階調変化量df=0となっている。一方、図3(b)に示される例においては、画素位置x=8から8画素数ごとの画素位置で階調変化量df=+1であり、ノイズ成分のある画素位置x(=19)においては階調変化量df=+1であり、その直後の画素位置x+1(=20)においては階調変化量df=−1であり、画素位置x(=35)においては階調変化量df=−2であり、画素位置xの直前の画素位置x−1においては階調変化量df=+1であり、画素位置xの直後の画素位置x+1においては階調変化量df=+1であり、その他の画素においては階調変化量df=0である。 When the input image signal Da as shown in FIG. 2A or FIG. 3A is input to the gradation change amount detection means 10, the gradation change amount detection means 10 detects the horizontal pixel position x. The difference in gradation value (gradation change amount) between the current pixel and the pixel at the immediately preceding pixel position x−1 is calculated, for example, as shown in FIG. 2B or FIG. A gradation change amount df is obtained. A pixel at a pixel position where the gradation change amount df obtained by the gradation change amount detection means 10 is df ≠ 0 is a pixel at a pixel position where the gradation value changes (that is, a non-noise gradation change position), Alternatively, it is a pixel at a pixel position (that is, a noise region) where the gradation value changes due to a noise component. For example, in the example shown in FIG. 2B, the gradation change amount df is +1 at each pixel position from the pixel position x = 8, and the number of 8 pixels from the pixel position x = 8. In the pixels between the respective pixel positions, the gradation change amount df = 0. On the other hand, in the example shown in FIG. 3B, the gradation change amount df = + 1 from the pixel position x = 8 to the pixel position every 8 pixels, and the pixel position x 1 (= 19) having the noise component. Is the gradation change amount df = + 1, immediately after the pixel position x 1 +1 (= 20) is the gradation change amount df = −1, and the pixel position x 2 (= 35) is the gradation change amount. an amount df = -2, a tone variation df = + 1 in the pixel position x 2 -1 of the immediately preceding pixel position x 2, gradation change in the pixel position x 2 +1 immediately after the pixel position x 2 The amount df = + 1, and the gradation change amount df = 0 in the other pixels.

図1に示されるように、階調変化量検出手段10は、例えば、階調変化量算出手段11と、階調変化量制限手段12とから構成される。階調変化量算出手段11は、入力画像信号Daから、例えば、水平方向に隣接する画素間の階調変化量dfを算出して、算出された階調変化量dfを、階調変化量制限手段12、画素領域判定手段20、及びエッジ変化検出手段60へ出力する。階調変化量制限手段12は、階調変化量dfに基づいて生成された振幅制限階調変化量Xlmを、傾き検出手段40及び補正ビット生成手段50へ出力する。   As shown in FIG. 1, the gradation change amount detection means 10 includes, for example, a gradation change amount calculation means 11 and a gradation change amount restriction means 12. The gradation change amount calculation means 11 calculates, for example, a gradation change amount df between pixels adjacent in the horizontal direction from the input image signal Da, and the calculated gradation change amount df The data is output to the means 12, the pixel area determination means 20, and the edge change detection means 60. The gradation change amount limiting unit 12 outputs the amplitude limited gradation change amount Xlm generated based on the gradation change amount df to the inclination detection unit 40 and the correction bit generation unit 50.

階調変化量算出手段11に入力画像信号Daが入力されると、階調変化量算出手段11は、入力画像信号Daにおける水平方向に隣接する画素間の階調値の差分を算出して階調変化量dfとして求める。ここで、処理する注目画素の水平方向画素位置をxとし、この画素位置における階調値をLa(x)とすると、階調変化量算出手段11は、画素位置xの注目画素の直前の画素(画素位置x−1の画素)を1画素遅延して得られた階調値をLa(x−1)とするとき、画素位置xにおける階調値La(x)から画素位置x−1における階調値La(x−1)を減算した値を算出することにより、階調変化量dfを求める。すなわち、図2(a)又は図3(a)によれば、画素間の階調値の差分である階調変化量dfは、
df=La(x)−La(x−1)
で計算することができる。画素間の階調値の差分である階調変化量dfが0の場合は、階調値の変化がない階調平坦領域の画素であり、階調値が変化した画素又はノイズ成分による階調値の変化がある画素においては、差分の絶対値が階調値の差として、階調値の変化が増加か減少かの方向が値の符号(極性)(階調が増加の場合は正符号「+」、減少の場合は負符号「−」)として得られる。階調変化量算出手段11で得られた階調変化量dfは、画素領域判定手段20、エッジ変化検出手段60、及び階調変化量検出手段10内の階調変化量制限手段12へ送られる。
When the input image signal Da is input to the gradation change amount calculation unit 11, the gradation change amount calculation unit 11 calculates a difference in gradation values between pixels adjacent in the horizontal direction in the input image signal Da. It is obtained as a tone change amount df. Here, assuming that the horizontal pixel position of the target pixel to be processed is x and the gradation value at this pixel position is La (x), the gradation change amount calculating means 11 is the pixel immediately before the target pixel at the pixel position x. When the gradation value obtained by delaying (the pixel at the pixel position x-1) by one pixel is La (x-1), the gradation value La (x) at the pixel position x is changed to the pixel value at the pixel position x-1. The gradation change amount df is obtained by calculating a value obtained by subtracting the gradation value La (x−1). That is, according to FIG. 2 (a) or FIG. 3 (a), the gradation change amount df, which is the difference in gradation value between pixels, is
df = La (x) −La (x−1)
Can be calculated with When the gradation change amount df, which is a difference in gradation value between pixels, is 0, the gradation is a pixel in a gradation flat region where there is no change in gradation value. In a pixel with a change in value, the absolute value of the difference is the difference in the gradation value, and the direction of the increase or decrease in the gradation value is the sign (polarity) of the value (or a positive sign when the gradation is increased) “+”, And in the case of decrease, it is obtained as a minus sign “−”). The gradation change amount df obtained by the gradation change amount calculation means 11 is sent to the pixel area determination means 20, the edge change detection means 60, and the gradation change amount restriction means 12 in the gradation change amount detection means 10. .

階調変化量制限手段12に階調変化量算出手段11からの階調変化量dfが入力されると、階調変化量制限手段12は、階調変化量dfが所定の階調値の範囲内、例えば、−1から+1までの範囲内の値(整数)となるように、階調変化量dfの値を制限し、値が制限された階調変化量を振幅制限階調変化量Xlmとして出力する。ここでの制限の範囲である−1から+1までの範囲は、階調変換手段1においては8ビットの入力画像信号Daの最下位1ビット分の差である。よって、階調変化量制限手段12から出力される振幅制限階調変化量Xlmは、値が−1,0,+1の3値で構成される。この振幅制限階調変化量Xlmは、傾き検出手段40及び補正ビット生成手段50へ出力され、水平方向に対する階調値の傾き算出の際に、階調変化の高さとして用いられる。   When the gradation change amount df from the gradation change amount calculation means 11 is input to the gradation change amount restriction means 12, the gradation change amount restriction means 12 causes the gradation change amount df to fall within a predetermined gradation value range. For example, the value of the gradation change amount df is limited so as to be a value (integer) within a range from −1 to +1, and the gradation change amount with the limited value is set as the amplitude limited gradation change amount Xlm. Output as. The range from −1 to +1, which is the limit range here, is the difference of the least significant 1 bit of the 8-bit input image signal Da in the gradation converting means 1. Therefore, the amplitude limit gradation change amount Xlm output from the gradation change amount limiting means 12 is composed of three values of −1, 0, and +1. This amplitude-limited gradation change amount Xlm is output to the inclination detecting means 40 and the correction bit generating means 50, and is used as the height of the gradation change when calculating the inclination of the gradation value with respect to the horizontal direction.

《1−2−3》画素領域判定手段20.
図1において、画素領域判定手段20には、階調変化量算出手段11からの階調変化量dfが入力される。画素領域判定手段20は、入力された階調変化量dfの値から、ノイズ成分による階調値の変化を判定して、各画素を、階調平坦領域(Ar=0)に属する画素、ノイズ領域(Ar=1)に属する画素、非ノイズ階調変化位置(Ar=2)の画素のいずれかに分類する判定を行い、画素ごとに、画素の領域判定結果を示す領域信号Arを生成し出力する。領域信号Arは、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50へ出力される。
<< 1-2-3 >> Pixel Area Determination Unit
In FIG. 1, the gradation change amount df from the gradation change amount calculation unit 11 is input to the pixel region determination unit 20. The pixel area determination unit 20 determines a change in gradation value due to a noise component from the input gradation change amount df, and determines each pixel as a pixel belonging to the gradation flat area (Ar = 0), noise A determination is made to classify the pixel into either a pixel belonging to the region (Ar = 1) or a pixel at the non-noise gradation change position (Ar = 2), and a region signal Ar indicating the pixel region determination result is generated for each pixel. Output. The area signal Ar is output to the flat / noise area width determining means 30, the inclination detecting means 40, and the correction bit generating means 50.

図2(a)〜(c)及び図3(a)〜(c)で説明したように、階調変化量dfの絶対値が1階調以上である階調変化又はノイズ成分による階調変化があると、階調変化量dfの絶対値の大きさは0より大きな値(|df|>0)となり、階調値が変化せず平坦である画素においては、階調変化量df=0となる。そして、ノイズ成分は、数画素の範囲の領域で階調値が増加又は減少する高周波の変化で、その変化の階調差は比較的小さい振幅、すなわち、比較的小さい所定の閾値Nd(例えば、最小階調差の2倍の値、Nd=2など)以下となるため、階調変化量dfの絶対値|df|>0となる画素のうちノイズ成分による画素における変化は、画素位置xの注目画素、その直前の画素位置x−1の隣接画素、注目画素の直後の画素位置x+1の隣接画素のそれぞれにおける階調変化量dfの値とその極性(正負を示す符号)により判定できる。すなわち、階調変化量dfの絶対値|df|>0となる画素のうちノイズ成分による画素における階調変化であるか否か(ノイズ領域に属する画素であるか否か)は、画素位置xの画素の階調変化量df(x)、画素位置x−1の画素の階調変化量df(x−1)、画素位置x+1の画素の階調変化量df(x+1)を得て、注目画素の階調変化量df(x)の大きさ、並びに、階調変化量df(x)の極性と、階調変化量df(x−1)の極性、階調変化量df(x+1)の極性との関係により判定できる。   As described with reference to FIGS. 2A to 2C and FIGS. 3A to 3C, a gradation change in which the absolute value of the gradation change amount df is one gradation or more or a gradation change due to a noise component If there is, the magnitude of the absolute value of the gradation change amount df becomes a value larger than 0 (| df |> 0), and the gradation change amount df = 0 in a flat pixel without changing the gradation value. It becomes. The noise component is a high-frequency change in which the gradation value increases or decreases in a region of several pixels. The gradation difference of the change has a relatively small amplitude, that is, a relatively small predetermined threshold value Nd (for example, Since the absolute value | df |> 0 of the gradation change amount df, the change in the pixel due to the noise component changes at the pixel position x. The determination can be made based on the value of the gradation change amount df and the polarity (sign indicating positive / negative) of each of the target pixel, the adjacent pixel at the pixel position x−1 immediately before it, and the adjacent pixel at the pixel position x + 1 immediately after the target pixel. In other words, whether or not a gradation change occurs in a pixel due to a noise component among pixels having an absolute value | df |> 0 of the gradation change amount df (whether or not the pixel belongs to a noise region) is determined by the pixel position x. The gradation change amount df (x) of the pixel at the pixel position x1, the gradation change amount df (x-1) of the pixel at the pixel position x-1, and the gradation change amount df (x + 1) of the pixel at the pixel position x + 1 are obtained. The magnitude of the gradation change amount df (x) of the pixel, the polarity of the gradation change amount df (x), the polarity of the gradation change amount df (x−1), and the gradation change amount df (x + 1) It can be determined by the relationship with the polarity.

図4(a)及び(b)は、ノイズ成分と判定される画素の一例を示す図であり、図4(a)は、直前及び直後の画素よりも階調値が1上昇している1個の画素(1個の‘1階調変化画素’)からなるノイズ成分を示し、図4(b)は、直前及び直後の画素よりも階調値が1階調減少している1個の画素(1個の‘1階調変化画素’)からなるノイズ成分を示す。   4A and 4B are diagrams illustrating an example of a pixel that is determined to be a noise component. FIG. 4A is a graph in which the gradation value is increased by 1 compared to the immediately preceding and immediately following pixels. FIG. 4B shows a noise component consisting of one pixel (one “one gradation changing pixel”), and FIG. 4B shows one pixel whose gradation value is reduced by one gradation compared to the immediately preceding and immediately following pixels. The noise component which consists of a pixel (one "1 gradation change pixel") is shown.

図4(a)及び(b)は、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(高周波成分の変化)を示し、ノイズ成分となる画素の画素位置と階調値Laの変化の一例を示している。図4(a)及び(b)における横軸は水平方向の画素位置xを示し、縦軸は各画素位置における入力画像信号Daの階調値La(x)を示している。図4(a)は画素位置xで1階調増加し、画素位置x+1で1階調減少するノイズ成分であり、図4(b)は画素位置xで1階調減少し、画素位置x+1で1階調増加するノイズ成分を示している。 4A and 4B show that the gradation value of one “one gradation changing pixel” is increased by one gradation relative to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. A decrease in gradation (change in high-frequency component) is shown, and an example of a change in the pixel position and gradation value La of a pixel that becomes a noise component is shown. 4A and 4B, the horizontal axis indicates the pixel position x in the horizontal direction, and the vertical axis indicates the gradation value La (x) of the input image signal Da at each pixel position. 4 (a) is increased by one gradation in the pixel position x 1, a noise component decreases 1 gradation pixel position x 1 +1, 4 (b) is decreased by gradation pixel position x 2, A noise component increasing by one gradation at the pixel position x 2 +1 is shown.

図4(a)の場合、階調変化量算出手段11から出力され画素領域判定手段20に入力される階調変化量dfは、画素位置xで階調変化量df(x)=+1、その直後の画素位置x+1で階調変化量df(x+1)=−1となる。図4(b)の場合、階調変化量算出手段11から画素領域判定手段20に入力される階調変化量dfは、画素位置xで階調変化量df(x)=−1、その直後の画素位置x+1で階調変化量df(x+1)=+1となる。このように、ノイズ成分による階調値の高周波の変化があると、階調変化量df(x)の絶対値は比較的小さい値(予め設定された閾値Nd)以下になり、且つ、注目画素の直前の画素に対する注目画素の階調変化量の符号(極性)と、注目画素に対する注目画素の直後に位置する画素の階調変化量の符号(極性)とが、異符号(すなわち、反対極性)になる変化が存在する。 Figure 4 In the case of (a), the gradation variation is input to the gradation change amount calculation unit 11 is output from the pixel area determination unit 20 df the gray scale variation df (x 1) at the pixel position x 1 = + 1 The gradation change amount df (x 1 +1) = − 1 at the pixel position x 1 +1 immediately after that. In the case of FIG. 4B, the gradation change amount df input from the gradation change amount calculation means 11 to the pixel area determination means 20 is the gradation change amount df (x 2 ) = − 1 at the pixel position x 2 . At the pixel position x 2 +1 immediately after that, the gradation change amount df (x 2 +1) = + 1. As described above, when there is a high-frequency change in the gradation value due to the noise component, the absolute value of the gradation change amount df (x) is less than or equal to a relatively small value (a preset threshold value Nd), and the pixel of interest The sign (polarity) of the gradation change amount of the target pixel with respect to the pixel immediately before the pixel and the sign (polarity) of the gradation change amount of the pixel located immediately after the target pixel with respect to the target pixel are different signs (that is, opposite polarities). There is a change that becomes.

したがって、注目画素の直前の画素に対する注目画素の階調変化量の大きさ及び極性と、注目画素に対する注目画素の直後に位置する画素の階調変化量の大きさ及び極性とから、図4(a)及び(b)に示されるようなノイズ成分となる画素(ノイズ領域(Ar=1)の画素)を判定することができる。また、階調変化量df=0から、階調平坦領域(Ar=0)の画素を判定することができる。また、ノイズ領域の画素及び階調平坦領域の画素のいずれにも属さない画素を、非ノイズ階調変化位置(Ar=2)の画素と判定することができる。このように、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行うことによって、各画素が属する領域が、階調平坦領域か、ノイズ領域か、非ノイズ階調変化位置かを示す領域信号Arを生成し出力することができる。   Therefore, from the magnitude and polarity of the gradation change amount of the target pixel with respect to the pixel immediately before the target pixel, and the magnitude and polarity of the gradation change amount of the pixel located immediately after the target pixel with respect to the target pixel, FIG. Pixels (noise region (Ar = 1) pixels) that are noise components as shown in a) and (b) can be determined. Further, from the gradation change amount df = 0, it is possible to determine the pixels in the gradation flat region (Ar = 0). Further, a pixel that does not belong to any of the pixel in the noise region and the pixel in the flat gradation region can be determined as a pixel at the non-noise gradation change position (Ar = 2). In this way, by determining that each pixel is classified into one of the pixel belonging to the flat gradation region, the pixel belonging to the noise region, and the pixel at the non-noise gradation change position, the region to which each pixel belongs It is possible to generate and output an area signal Ar indicating whether the area is a tonal flat area, a noise area, or a non-noise gradation change position.

画素領域判定手段20は、まず、階調変化量検出手段10からの階調変化量dfに対し画素遅延するなどして、画素位置xの注目画素、その直前の画素位置x−1の隣接画素、注目画素の直後の画素位置x+1の隣接画素のそれぞれにおける階調変化量dfを得て、得られた階調変化量dfの大きさとその極性の関係から、ノイズ成分による変化であるか否かを判定して、画素位置xにおける画素が、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行う。   The pixel area determination unit 20 first delays the pixel with respect to the gradation change amount df from the gradation change amount detection unit 10, so that the pixel of interest at the pixel position x and the adjacent pixel at the pixel position x−1 immediately before it are detected. The gradation change amount df in each of the adjacent pixels at the pixel position x + 1 immediately after the target pixel is obtained, and whether or not the change is due to the noise component from the relationship between the magnitude of the obtained gradation change amount df and its polarity. And determining that the pixel at the pixel position x is classified into one of the pixel belonging to the flat gradation region, the pixel belonging to the noise region, and the pixel at the non-noise gradation change position.

それぞれの画素位置における階調変化量dfは、階調値の変化がない階調平坦領域の画素においては値0である。また、階調値が変化した画素位置における階調変化量dfは、その絶対値|df|を階調差とし、階調値の変化の方向(増加又は減少)が階調変化量dfにおける極性(すなわち、正負の符号)として得られる。ここで、階調値が増加の場合は階調変化量は正(df>0)となり、その極性は正(+)となり、階調値が減少の場合は階調変化量は負(df<0)となり、その極性は負(−)となる。そして、図4(a)及び(b)に示されるように、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化が存在するノイズ成分の場合は、階調変化量dfの絶対値|df|は比較的小さい予め設定された閾値Nd以下になり、且つ、注目画素の階調変化量の極性(正負の符号)と、注目画素の直前又は直後のいずれかの画素の階調変化量の極性(正負の符号)とが反対極性(異符号)になっている。   The gradation change amount df at each pixel position has a value of 0 for pixels in a flat gradation area where there is no change in gradation value. Further, the gradation change amount df at the pixel position where the gradation value has changed has the absolute value | df | as the gradation difference, and the change direction (increase or decrease) of the gradation value is the polarity of the gradation change amount df. (I.e., a positive or negative sign). Here, when the gradation value increases, the gradation change amount is positive (df> 0), the polarity is positive (+), and when the gradation value decreases, the gradation change amount is negative (df <0). 0), and its polarity is negative (-). Then, as shown in FIGS. 4A and 4B, the gradation value of one “1 gradation changing pixel” is equal to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. In the case of a noise component in which there is a gradation change that increases or decreases by one gradation, the absolute value | df | of the gradation change amount df is less than or equal to a relatively small preset threshold value Nd, and the pixel of interest The polarity of the gradation change amount (positive or negative sign) is opposite to the polarity of the gradation change amount (positive or negative sign) of any pixel immediately before or after the target pixel.

したがって、画素位置xの注目画素、その直前の画素位置x−1の隣接画素、注目画素の直後の画素位置x+1の隣接画素のそれぞれにおける階調変化量dfである、階調変化量df(x),df(x−1),df(x+1)を得た後、以下に示す3つの判定(すなわち、判定A1,A2,A3)によって、画素位置xの注目画素における画素領域が、階調平坦領域、又は、ノイズ領域、又は、非ノイズ階調変化位置のいずれの領域であるか判定を行う。   Therefore, the gradation change amount df (x) which is the gradation change amount df in each of the target pixel at the pixel position x, the adjacent pixel at the pixel position x−1 immediately before it, and the adjacent pixel at the pixel position x + 1 immediately after the target pixel. ), Df (x−1), df (x + 1), and the following three determinations (that is, determinations A1, A2, and A3), the pixel region in the target pixel at the pixel position x is flattened. It is determined whether the region is a noise region or a non-noise gradation change position.

(判定A1)
画素位置xの注目画素における階調変化量df(x)が、df(x)=0である場合には、注目画素は、階調平坦領域に属する画素であり、領域信号Arは、Ar=0になる。
(Decision A1)
When the gradation change amount df (x) in the target pixel at the pixel position x is df (x) = 0, the target pixel is a pixel belonging to the flat gradation region, and the region signal Ar is Ar = 0.

(判定A2)
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x−1)の極性と反対極性である場合(隣接画素に高周波成分を持つ場合)、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x+1)の極性と反対極性である場合(隣接画素に高周波成分を持つ場合)には、
注目画素は、ノイズ領域に属する画素であり、領域信号Arは、Ar=1になる。
(Decision A2)
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( x-1) the opposite polarity (when the adjacent pixel has a high frequency component), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( If the polarity is opposite to the polarity of (x + 1) (when the adjacent pixel has a high frequency component),
The target pixel is a pixel belonging to the noise region, and the region signal Ar is Ar = 1.

(判定A3)
判定A1において、注目画素が階調平坦領域に属する画素ではないと判定され、且つ、判定A2において、注目画素がノイズ領域に属する画素ではないと判定された画素位置xの注目画素は、非ノイズ階調変化位置の画素であり、領域信号Arは、Ar=2になる。
(Decision A3)
The pixel of interest x at which the pixel of interest x determined that the pixel of interest is not a pixel belonging to the flat gradation region in the determination A1 and that the pixel of interest is not a pixel belonging to the noise region is determined in the determination A2. The pixel at the gradation change position, and the area signal Ar is Ar = 2.

図5は、図1に示される画素領域判定手段20の構成の一例を概略的に示すブロック図である。画素領域判定手段20は、上記判定A1〜A3を行うことができる。また、図6(a)〜(g)は、図1及び図5に示される画素領域判定手段20の動作の一例を説明するための図であり、ノイズ成分を含む入力画像信号Da(図3(a)の波形と同じ)に対する上記判定A1〜A3を説明するための図である。   FIG. 5 is a block diagram schematically showing an example of the configuration of the pixel region determination means 20 shown in FIG. The pixel area determination unit 20 can perform the determinations A1 to A3. FIGS. 6A to 6G are diagrams for explaining an example of the operation of the pixel region determination unit 20 shown in FIGS. 1 and 5, and the input image signal Da including the noise component (FIG. 3). It is a figure for demonstrating said determination A1-A3 with respect to the same as the waveform of (a).

図5に示されるように、画素領域判定手段20は、例えば、画素領域の判定に使用する各画素(すなわち、注目画素及びその隣接画素)の階調変化量を抽出する画素変化量抽出手段21と、階調変化量dfの絶対値|df|の大きさ(レベル)を所定の閾値と比較する絶対値レベル比較手段22と、隣接位置極性判定手段23及び24と、合成手段25と、領域信号生成手段26とから構成される。隣接位置極性判定手段23及び24は、入力が異なるが、両方を同じ構成とすることができる。   As illustrated in FIG. 5, the pixel area determination unit 20 extracts, for example, a pixel change amount extraction unit 21 that extracts a gradation change amount of each pixel (that is, the target pixel and its adjacent pixels) used for determining the pixel area. The absolute value level comparing means 22 for comparing the magnitude (level) of the absolute value | df | of the gradation change amount df with a predetermined threshold, the adjacent position polarity determining means 23 and 24, the synthesizing means 25, the area Signal generating means 26. Although the adjacent position polarity determination means 23 and 24 have different inputs, both can have the same configuration.

図5において、画素領域判定手段20に入力された階調変化量dfは、画素変化量抽出手段21に入力される。画素変化量抽出手段21は、例えば、2つの画素遅延手段(図5に「D」で示す。)211,212により構成される。画素変化量抽出手段21は、階調変化量dfを画素遅延して、画素位置xの注目画素における階調変化量df(x)と、画素位置xの注目画素の前後に位置する隣接画素位置x−1及びx+1における階調変化量df(x−1)及びdf(x+1)を抽出する。階調変化量df(x)、df(x−1)、及びdf(x+1)により、画素位置xにおける画素、階調値の変化に基づいて3つの画素領域に分類する判定A1〜A3を行う。   In FIG. 5, the gradation change amount df input to the pixel area determination unit 20 is input to the pixel change amount extraction unit 21. The pixel change amount extraction unit 21 includes, for example, two pixel delay units (indicated by “D” in FIG. 5) 211 and 212. The pixel change amount extraction unit 21 delays the gradation change amount df by a pixel, and changes the gradation change amount df (x) in the target pixel at the pixel position x and adjacent pixel positions located before and after the target pixel at the pixel position x. The gradation change amounts df (x−1) and df (x + 1) at x−1 and x + 1 are extracted. The determinations A1 to A3 for classifying into three pixel areas based on the change in the pixel and the gradation value at the pixel position x based on the gradation change amounts df (x), df (x-1), and df (x + 1) are performed. .

絶対値レベル比較手段22には、画素位置xの注目画素における階調変化量df(x)が入力される。絶対値レベル比較手段22は、階調変化量dfの絶対値のレベルを所定の閾値と比較する。所定の閾値は、例えば、値0と、ノイズ成分における階調差に相当する比較的小さい値Nd(例えば、最小階調差の2倍の値、Nd=2)とする。階調変化量df(x)の値が0の場合(上記判定A1において、注目画素が、階調平坦領域(df(x)=0)の画素であると判定する場合)と、階調変化量絶対値|df(x)|≦Ndの場合(上記判定A2における条件の1つを満たす場合)とを判定することで、階調変化量df(x)の絶対値のレベルを判定し、判定結果を比較結果nlfとして出力する。   The absolute value level comparison means 22 receives the gradation change amount df (x) at the target pixel at the pixel position x. The absolute value level comparison means 22 compares the absolute value level of the gradation change amount df with a predetermined threshold value. The predetermined threshold value is, for example, a value 0 and a relatively small value Nd corresponding to the gradation difference in the noise component (for example, a value twice the minimum gradation difference, Nd = 2). When the value of the gradation change amount df (x) is 0 (when the target pixel is determined to be a pixel in the flat gradation region (df (x) = 0) in the determination A1), and the gradation change The absolute value level of the gradation change amount df (x) is determined by determining that the absolute value of the amount | df (x) | ≦ Nd (when one of the conditions in the determination A2 is satisfied). The determination result is output as the comparison result nlf.

絶対値レベル比較手段22で求められた比較結果nlfの値は、例えば、階調変化量df(x)=0の場合は、比較結果nlf=1とし、階調変化量df(x)≠0且つ階調変化量絶対値|df(x)|≦Ndの場合は、比較結果nlf=2、それ以外の場合(Nd<|df(x)|)は、比較結果nlf=0とする。なお、比較結果nlfの値は、上記値に限るものではなく、階調変化量dfの絶対値のレベルの比較結果が示さる値であれば、他の値であってもよい。また、所定の閾値Ndについては、Nd=2として説明するが、所定の閾値Ndは、画像信号より十分に小さく、入力される画像信号に含まれるノイズ・誤差などのノイズ成分の振幅の大きさを考慮した値(ノイズ成分と判定したい階調変化量よりも大きい値)であれば、他の値に設定してもよい。   The value of the comparison result nlf obtained by the absolute value level comparing means 22 is, for example, when the gradation change amount df (x) = 0, the comparison result nlf = 1 and the gradation change amount df (x) ≠ 0. If the absolute value of the gradation change amount | df (x) | ≦ Nd, the comparison result nlf = 2, and otherwise (Nd <| df (x) |), the comparison result nlf = 0. Note that the value of the comparison result nlf is not limited to the above value, and may be any other value as long as the comparison result of the absolute value level of the gradation change amount df is indicated. The predetermined threshold Nd will be described as Nd = 2. However, the predetermined threshold Nd is sufficiently smaller than the image signal, and the amplitude of noise components such as noise and error included in the input image signal is large. May be set to another value as long as it is a value that takes into account (a value larger than the amount of gradation change that is desired to be determined as a noise component).

隣接位置極性判定手段23には、画素変化量抽出手段21により得られた階調変化量df(x)と、階調変化量df(x−1)とが入力される。また、隣接位置極性判定手段24には、画素変化量抽出手段21により得られた階調変化量df(x)と、階調変化量df(x+1)とが入力される。隣接位置極性判定手段23及び24は、前者には階調変化量df(x−1)が入力され、後者には階調変化量df(x+1)が入力される点が異なるが、構成は同様である。隣接位置極性判定手段23及び24は、画素位置xの注目画素が、上記判定A2における条件の1つ(ノイズ領域における隣接画素に高周波成分の変化を持つという条件)を満たすか否かを判定する。   The adjacent position polarity determination unit 23 receives the gradation change amount df (x) obtained by the pixel change amount extraction unit 21 and the gradation change amount df (x−1). The adjacent position polarity determination unit 24 receives the gradation change amount df (x) and the gradation change amount df (x + 1) obtained by the pixel change amount extraction unit 21. The adjacent position polarity determination means 23 and 24 differ in that the gradation change amount df (x−1) is input to the former and the gradation change amount df (x + 1) is input to the latter, but the configuration is the same. It is. The adjacent position polarity determination means 23 and 24 determine whether or not the pixel of interest at the pixel position x satisfies one of the conditions in the determination A2 (condition that adjacent pixels in the noise region have a high-frequency component change). .

隣接位置極性判定手段23は、階調変化量df(x)の極性と階調変化量df(x−1)の極性をもとに、画素位置xと隣接する画素位置x−1で反対方向の変化となる高周波成分の変化を持つか、すなわち、階調変化量df(x)と階調変化量df(x−1)の極性が反対(符号が不一致)か否かを判定し、画素位置xにおける判定結果として、2値化した値を示す判定結果pf1を求める。判定結果pf1の値は、例えば、階調変化量の極性が逆となる場合は、値‘1’(pf1=1)とし、同一の場合は値‘0’(pf1=0)とする。なお、判定結果pf1の値は、上記値に限るものではなく、符号が不一致か一致かが示される値であれば、他の値であってもよい。   The adjacent position polarity determination unit 23 performs the opposite direction at the pixel position x-1 adjacent to the pixel position x based on the polarity of the gradation change amount df (x) and the polarity of the gradation change amount df (x-1). Whether or not the polarity of the gradation change amount df (x) and the gradation change amount df (x-1) are opposite (signs do not match). As a determination result at the position x, a determination result pf1 indicating a binarized value is obtained. The value of the determination result pf1 is, for example, the value “1” (pf1 = 1) when the polarity of the gradation change amount is reversed, and the value “0” (pf1 = 0) when the polarity is the same. Note that the value of the determination result pf1 is not limited to the above value, and may be other values as long as the signs indicate mismatch or coincidence.

同様に、隣接位置極性判定手段24は、階調変化量df(x)と階調変化量df(x+1)の極性をもとに、画素位置xと隣接する画素位置x+1で反対方向の変化となる高周波成分の変化を持つか、すなわち、階調変化量df(x)と階調変化量df(x+1)の極性が反対(符号が不一致)か否かを判定し、画素位置xにおける判定結果として、2値化した値を示す判定結果pf2を求める。判定結果pf2の値は、例えば、階調変化量の極性が逆となる場合は、値‘1’(pf2=1)とし、同一の場合は値‘0’(pf2=0)とする。なお、判定結果pf2の値は、上記値に限るものではなく、符号が不一致か一致かが示される値であれば、他の値であってもよい。   Similarly, the adjacent position polarity determination unit 24 performs a change in the opposite direction at the pixel position x + 1 adjacent to the pixel position x based on the polarities of the gradation change amount df (x) and the gradation change amount df (x + 1). Whether or not the polarity of the gradation change amount df (x) and the gradation change amount df (x + 1) are opposite (signs do not match), and the determination result at the pixel position x As a result, a determination result pf2 indicating a binarized value is obtained. The value of the determination result pf2 is, for example, the value “1” (pf2 = 1) when the polarity of the gradation change amount is reversed, and the value “0” (pf2 = 0) when the polarity is the same. Note that the value of the determination result pf2 is not limited to the above value, and may be another value as long as the sign indicates a mismatch or a match.

合成手段25には、隣接位置極性判定手段23,24からの判定結果pf1,pf2が入力される。合成手段25は、判定結果pf1,pf2を合成し、画素位置xにおける階調変化量df(x)に対し、隣接画素のいずれかの階調変化量の極性が反対となる場合の極性判定結果pofを求める。合成手段25は、例えば、ORゲートで構成することで、判定結果pf1=1又は判定結果pf2=1となる場合に、極性判定結果pof=1として出力する。これにより、画素位置xの階調変化量df(x)が、画素位置xの直前又は直後に隣接するいずれかの画素における階調変化量と極性が反対となる場合を判定した結果が得られる。   Determination results pf1 and pf2 from the adjacent position polarity determination units 23 and 24 are input to the combining unit 25. The synthesizing unit 25 synthesizes the determination results pf1 and pf2, and the polarity determination result when the polarity of the gradation change amount of any of the adjacent pixels is opposite to the gradation change amount df (x) at the pixel position x. Find pof. For example, when the determination result pf1 = 1 or the determination result pf2 = 1, the synthesizing unit 25 outputs the polarity determination result pof = 1. As a result, it is possible to obtain a result of determining a case where the gradation change amount df (x) at the pixel position x is opposite in polarity to the gradation change amount in any of the adjacent pixels immediately before or after the pixel position x. .

領域信号生成手段26には、絶対値レベル比較手段22からの比較結果nlfと、合成手段25からの極性判定結果pofが入力される。領域信号生成手段26は、上記判定A1〜A3で示した判定によって画素領域を分類し、各領域判定結果を示す領域信号Arを生成し出力する。すなわち、領域信号生成手段26は、判定A1〜A3で示した判定を行い、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、判定結果に応じた値の領域信号Arを生成する。これにより、各画素における階調値の変化を3領域に分類する領域信号Arが得られ、各画素が階調平坦領域、又は、ノイズ領域、又は、非ノイズ階調変化位置のいずれの領域に属するかが示される。   The region signal generation means 26 receives the comparison result nlf from the absolute value level comparison means 22 and the polarity determination result pof from the synthesis means 25. The area signal generation unit 26 classifies the pixel areas according to the determinations indicated by the determinations A1 to A3, and generates and outputs an area signal Ar indicating each area determination result. That is, the area signal generation unit 26 performs the determinations indicated by the determinations A1 to A3, and assigns each pixel to any one of a pixel belonging to the gradation flat area, a pixel belonging to the noise area, and a pixel at the non-noise gradation change position. A determination to classify is performed, and an area signal Ar having a value corresponding to the determination result is generated. As a result, an area signal Ar for classifying the change in gradation value in each pixel into three areas is obtained, and each pixel is in any area of the gradation flat area, the noise area, or the non-noise gradation change position. Indicates whether it belongs.

図6(a)は、入力画像信号Daの水平方向の画素位置xを示し、図6(b)は、入力画像信号Daの階調値La(x)を示し、図6(c)は、階調変化量検出手段10において求められる隣接する画素間の階調値の差分による階調変化量dfを示し、図6(d)〜(f)は、図5の画素領域判定手段20において求められる階調変化量df(x)のレベルの比較結果nlf、隣接画素との極性判定の判定結果pf1,pf2を示し、図6(g)は、領域信号生成手段26から出力される領域信号Arを示す。   6A shows the pixel position x in the horizontal direction of the input image signal Da, FIG. 6B shows the gradation value La (x) of the input image signal Da, and FIG. FIG. 6 (d) to (f) are obtained by the pixel area determination unit 20 of FIG. 5 and FIG. 6 (d) to (f) are shown. FIG. 6G shows the comparison result nlf of the level of the gradation change amount df (x) and the determination results pf1 and pf2 of the polarity determination with the adjacent pixels. FIG. Indicates.

例えば、図6(a)〜(g)において、ノイズ成分を含む入力画像信号Da(図6(b))に対して得られる隣接する画素間の階調値の差分による階調変化量df(図6(c))は、画素位置x=16,24,32,40における階調変化量df=+1として得られるが、画素位置x及びその後における画素位置x+1、並びに、画素位置x及びその前後における画素位置x−1,x+1における画素のノイズ成分においても、階調変化量dfが0ではない値として得られる。この階調変化量が画素領域判定手段20に入力されると、画素位置xにおける階調変化量df(x)=+1≦Ndであり、その隣接する画素位置x+1における階調変化量df(x+1)=−1<0であるので、図5における絶対値レベル比較手段22からの比較結果nlf=2で、隣接位置極性判定手段24からの判定結果pf2=1、すなわち、合成手段25からの極性判定結果pof=1となる。したがって、領域信号生成手段26から出力される領域信号Arはノイズ領域を示す値‘1’となる。 For example, in FIGS. 6A to 6G, the gradation change amount df (f) due to the difference in gradation values between adjacent pixels obtained for the input image signal Da including the noise component (FIG. 6B). FIG. 6C is obtained as the gradation change amount df = + 1 at the pixel position x = 16, 24, 32, 40, but the pixel position x 1 and the subsequent pixel position x 1 +1 and the pixel position x 2 and the pixel noise components at pixel positions x 2 −1 and x 2 +1 before and after that, the gradation change amount df is obtained as a non-zero value. When the gradation change amount is input to the pixel area determination unit 20, a gradation change amount df (x 1) = + 1 ≦ Nd at a pixel position x 1, gradation change at the pixel position x 1 +1 to the adjacent Since the amount df (x 1 +1) = − 1 <0, the comparison result nlf = 2 from the absolute value level comparison unit 22 in FIG. 5 and the determination result pf2 = 1 from the adjacent position polarity determination unit 24, that is, The polarity determination result pof = 1 from the combining unit 25 is obtained. Therefore, the area signal Ar output from the area signal generating means 26 has a value “1” indicating the noise area.

画素領域判定手段20において、上記判定A1〜A2を、他の画素について実行すると、画素位置x+1の画素、画素位置xの画素、画素位置x−1の画素、画素位置x+1の画素で、領域信号Ar=1となる。したがって、図6(a)〜(g)に示される例においては、画素位置xの画素及び画素位置x+1の画素は、ノイズ領域の画素であると判定される。また、画素位置x−1の画素、画素位置xの画素、及び画素位置x+1の画素は、ノイズ領域の画素であると判定される。 When the above-described determinations A1 to A2 are performed on the other pixels in the pixel area determination unit 20, the pixel at the pixel position x 1 +1, the pixel at the pixel position x 2 , the pixel at the pixel position x 2 -1, and the pixel position x 2 +1 In this pixel, the area signal Ar = 1. Thus, in the example shown in FIG. 6 (a) ~ (g) , the pixels of the pixel and the pixel position x 1 +1 pixel position x 1, it is determined that the pixel of the noise region. In addition, the pixel at the pixel position x 2 −1, the pixel at the pixel position x 2 , and the pixel at the pixel position x 1 +1 are determined to be pixels in the noise region.

以上により、画素領域判定手段20は、階調変化量df(x)、df(x−1)、df(x+1)から、階調変化量df(x)の値、並びに、階調変化量df(x)の極性、階調変化量df(x−1)の極性、階調変化量df(x+1)の極性を求め、これらを用いた上記判定A1〜A3により、画素位置xの注目画素の画素が階調平坦領域、ノイズ領域、非ノイズ階調変化位置のいずれの領域に属する画素であるかの判定を行い、画素の領域判定結果を示す領域信号Arを得ることができる。この判定方法は、同じ階調値の連続や一定値以内の階調差の検出で画素領域を判定するのではなく、ノイズ成分による階調変化を、階調変化量dfの値の大きさ、極性で判定するので、ノイズの影響は少なく、隣接画素における階調変化量のみによって、より一層正確に階調平坦領域、ノイズ領域、非ノイズ階調変化位置のいずれの領域に属する画素であるかの判定を行うことができる。   As described above, the pixel area determination unit 20 determines the value of the gradation change amount df (x) and the gradation change amount df from the gradation change amounts df (x), df (x−1), and df (x + 1). The polarity of (x), the gradation change amount df (x-1), and the gradation change amount df (x + 1) are obtained, and the above determinations A1 to A3 are used to determine the pixel of interest at the pixel position x. It is possible to determine whether the pixel belongs to any one of the gradation flat area, the noise area, and the non-noise gradation change position, and obtain an area signal Ar indicating the area determination result of the pixel. This determination method does not determine the pixel region by detecting the gradation difference within the same gradation value or within a certain value, but determines the gradation change due to the noise component by the magnitude of the value of the gradation change amount df, Since it is determined by the polarity, the influence of noise is small, and it is a pixel that belongs to any one of the gradation flat area, noise area, and non-noise gradation change position more accurately by only the gradation change amount in the adjacent pixel. Can be determined.

なお、図5の画素領域判定手段20は、画素変化量抽出手段21において階調変化量df(x)、df(x−1)、及びdf(x+1)を抽出するよう構成したが、階調変化量検出手段10において階調変化量dfを求める際に、画素位置xとその隣接画素における階調変化量を求めることで得てもよく、この場合には、画素変化量抽出手段21における画素遅延を省略することができる。また、隣接位置極性判定手段23及び24のぞれぞれは、階調変化量df(x)の極性と階調変化量df(x−1)の極性に基づく判定、及び、階調変化量df(x)の極性と階調変化量df(x+1)の極性に基づく判定を行うので、画素変化量抽出手段21又は階調変化量検出手段10で求める画素位置xの隣接画素位置x−1とx+1における階調変化については、その極性のみ得る構成としてもよい。   5 is configured such that the pixel change amount extraction unit 21 extracts the gradation change amounts df (x), df (x−1), and df (x + 1). When obtaining the gradation change amount df in the change amount detection means 10, it may be obtained by obtaining the gradation change amount at the pixel position x and its adjacent pixels. In this case, the pixel in the pixel change amount extraction means 21 is obtained. Delay can be omitted. Each of the adjacent position polarity determination means 23 and 24 performs determination based on the polarity of the gradation change amount df (x) and the polarity of the gradation change amount df (x−1), and the gradation change amount. Since the determination is made based on the polarity of df (x) and the polarity of the gradation change amount df (x + 1), the adjacent pixel position x−1 of the pixel position x obtained by the pixel change amount extraction means 21 or the gradation change amount detection means 10. As for the tone change at x + 1, only the polarity may be obtained.

《1−2−4》平坦・ノイズ領域幅判定手段30.
平坦・ノイズ領域幅判定手段30には、画素領域判定手段20からの領域信号Arと、図示しない同期信号(例えば、水平方向走査期間に同期する信号)が入力される。平坦・ノイズ領域幅判定手段30は、水平方向走査期間ごとに、画素領域判定手段20からの領域信号Arに基づき、階調変化がなく平坦な期間(ノイズ成分を含む場合がある。)の幅である平坦・ノイズ領域幅(ノイズ成分を含まない場合には、階調平坦領域の幅である。)を求める。実施の形態1においては、平坦・ノイズ領域幅判定手段30は、例えば、領域信号Ar=2で示される非ノイズ階調変化位置を基準画素として、非ノイズ階調変化位置の直前画素までの平坦・ノイズ領域幅を求め、この平坦・ノイズ領域幅から非ノイズ階調変化位置以降における平坦・ノイズ領域幅を予測した値となる平坦・ノイズ領域幅データ予測値dstを求める。実施の形態1においては、検出する平坦・ノイズ領域幅分の画素数の画素データを記憶するメモリを必要としない。
<< 1-2-4 >> Flat / Noise Area Width Determination Unit 30.
The flat area / noise area width determination means 30 receives the area signal Ar from the pixel area determination means 20 and a synchronization signal (not shown) (for example, a signal synchronized with the horizontal scanning period). The flat / noise area width determining means 30 has a width of a flat period (which may include a noise component) with no gradation change based on the area signal Ar from the pixel area determining means 20 for each horizontal scanning period. Is a flat / noise area width (if no noise component is included, it is the width of the gradation flat area). In the first embodiment, the flat / noise area width determination unit 30 uses, for example, the non-noise gradation change position indicated by the area signal Ar = 2 as a reference pixel, and performs flatness up to the pixel immediately before the non-noise gradation change position. A noise area width is obtained, and a flat / noise area width data predicted value dst that is a predicted value of the flat / noise area width after the non-noise gradation change position is obtained from the flat / noise area width. In the first embodiment, a memory for storing pixel data of the number of pixels corresponding to the detected flat / noise area width is not required.

具体的には、平坦・ノイズ領域幅判定手段30は、水平方向走査期間ごとに初期化(dst=0を出力)しながら、領域信号Arに基づき、領域信号Ar=2で示される非ノイズ階調変化位置を基準画素として、基準画素の直前画素までの平坦・ノイズ領域の画素数を求め、非ノイズ階調変化位置(Ar=2)ごとに、それ以降における平坦・ノイズ領域幅を予測した値となる平坦・ノイズ領域幅データ予測値dstを求める。この得られた平坦・ノイズ領域幅データ予測値dstは、傾き検出手段40へと出力され、水平方向における階調値の変化の傾き算出の際に、階調値の変化の傾きの幅(距離)として用いられる。領域信号Ar=2で示される非ノイズ階調変化位置を基準に画素数をカウントするので、領域信号Ar=0となる階調平坦領域の画素と領域信号Ar=1で示されるノイズ領域の画素の両方の画素が、平坦・ノイズ領域の画素としてカウントされる。よって、平坦・ノイズ領域幅判定手段30は、非ノイズ階調変化位置(Ar=2)の間の画素数を、ノイズ領域を含めて(すなわち、ノイズ成分による誤検出なく)得ることができる。   Specifically, the flat / noise area width determining means 30 initializes every horizontal scanning period (outputs dst = 0), and based on the area signal Ar, the non-noise level indicated by the area signal Ar = 2. Using the tone change position as the reference pixel, the number of pixels in the flat / noise area up to the pixel immediately before the reference pixel was obtained, and the flat / noise area width after that was predicted for each non-noise gradation change position (Ar = 2). A flat / noise area width data prediction value dst to be a value is obtained. The obtained flat / noise area width data predicted value dst is output to the inclination detecting means 40, and the gradient width (distance) of the gradation value change is calculated when calculating the gradient of the gradation value change in the horizontal direction. ). Since the number of pixels is counted based on the non-noise gradation change position indicated by the area signal Ar = 2, the pixel of the flat gradation area where the area signal Ar = 0 and the pixel of the noise area indicated by the area signal Ar = 1 Both pixels are counted as pixels in the flat / noise region. Therefore, the flat / noise area width determination unit 30 can obtain the number of pixels between the non-noise gradation change positions (Ar = 2) including the noise area (that is, without erroneous detection due to the noise component).

図7は、図1に示される平坦・ノイズ領域幅判定手段30の構成の一例を概略的に示すブロック図である。平坦・ノイズ領域幅判定手段30は、水平方向における階調値の変化がなく平坦な期間の画素数(すなわち、階調平坦領域の画素数とノイズ領域の画素数の合計であり、平坦・ノイズ領域の画素数である。)を求め、非ノイズ階調変化位置ごとに、その非ノイズ階調変化位置以降における平坦・ノイズ領域幅を予測した平坦・ノイズ領域幅データ予測値dstを求める。図7に示されるように、平坦・ノイズ領域幅判定手段30は、例えば、平坦・ノイズ領域幅カウント手段31と、巡回型フィルタ処理手段32とを備える。巡回型フィルタ処理手段32は、例えば、係数1乗算手段33と、演算手段34と、係数2乗算手段35と、切換え手段36と、フィルタ出力遅延手段37とから構成される。   FIG. 7 is a block diagram schematically showing an example of the configuration of the flat / noise area width determining means 30 shown in FIG. The flat / noise area width determining means 30 is the number of pixels in a flat period with no change in gradation value in the horizontal direction (that is, the total number of pixels in the gradation flat area and the number of pixels in the noise area. For each non-noise gradation change position, a flat / noise area width data predicted value dst obtained by predicting the flat / noise area width after the non-noise gradation change position is obtained. As shown in FIG. 7, the flat / noise region width determining unit 30 includes, for example, a flat / noise region width counting unit 31 and a cyclic filter processing unit 32. The cyclic filter processing unit 32 includes, for example, a coefficient 1 multiplication unit 33, a calculation unit 34, a coefficient 2 multiplication unit 35, a switching unit 36, and a filter output delay unit 37.

平坦・ノイズ領域幅カウント手段31には、画素領域判定手段20からの領域信号Arが入力される。平坦・ノイズ領域幅カウント手段31は、カウント値を水平方向走査期間ごとに初期化しながら(カウント値を0とする)、領域信号Ar=2で示される非ノイズ階調変化位置を基準とし、その直前画素までの水平方向における平坦・ノイズ領域幅を求め、平坦・ノイズ領域幅カウント値Cntとして出力する。すなわち、平坦・ノイズ領域幅カウント手段31は、非ノイズ階調変化位置(Ar=2)で画素のカウント値を0に初期化し、領域信号Ar=0,1となる階調平坦領域及びノイズ領域の画素数をカウントし、非ノイズ階調変化位置(Ar=2)においてその直前画素までにカウントされた上記画素数のカウント値を、平坦・ノイズ領域幅を示す平坦・ノイズ領域幅カウント値Cntとして出力する。   An area signal Ar from the pixel area determination unit 20 is input to the flat / noise area width counting unit 31. The flat / noise area width counting means 31 initializes the count value for each horizontal scanning period (sets the count value to 0), and uses the non-noise gradation change position indicated by the area signal Ar = 2 as a reference. The flat / noise area width in the horizontal direction up to the previous pixel is obtained and output as a flat / noise area width count value Cnt. That is, the flat / noise area width counting means 31 initializes the pixel count value to 0 at the non-noise gradation change position (Ar = 2), and the gradation flat area and noise area where the area signal Ar = 0, 1 is obtained. And the count value of the number of pixels counted up to the immediately preceding pixel at the non-noise gradation change position (Ar = 2) is calculated as a flat / noise area width count value Cnt indicating a flat / noise area width. Output as.

例えば、平坦・ノイズ領域幅カウント手段31に、図6(g)に示される領域信号Arが入力されている場合には、領域信号Ar=2となる画素位置が非ノイズ階調変化位置(画素位置x=16,24,32,40)であり、領域信号Ar=2となる画素の間の画素数がカウントされて、非ノイズ階調変化位置の直前画素までの画素数が平坦・ノイズ領域幅を示す平坦・ノイズ領域幅カウント値Cntで得られる。図6(g)の例においては、画素位置x(=19)と、画素位置x+1(=20)と、画素位置x(=35)と、画素位置x−1(=34)と、画素位置x+1(=36)とはノイズ領域として判定され、平坦・ノイズ領域幅のカウントに含まれ、非ノイズ階調変化位置(Ar=2)として誤検出されることはない。 For example, when the area signal Ar shown in FIG. 6G is input to the flat / noise area width counting means 31, the pixel position where the area signal Ar = 2 is the non-noise gradation change position (pixel). The number of pixels between the pixels at the position x = 16, 24, 32, 40) and the region signal Ar = 2 is counted, and the number of pixels up to the pixel immediately before the non-noise gradation change position is flat / noise region. The flat / noise area width count value Cnt indicating the width is obtained. In the example of FIG. 6G, the pixel position x 1 (= 19), the pixel position x 1 +1 (= 20), the pixel position x 2 (= 35), and the pixel position x 2 −1 (= 34). ) And the pixel position x 2 +1 (= 36) are determined as noise areas, are included in the flat / noise area width count, and are not erroneously detected as non-noise gradation change positions (Ar = 2). .

平坦・ノイズ領域幅カウント手段31からは、非ノイズ階調変化位置(Ar=2)において直前画素までの水平方向の平坦・ノイズ領域幅が、平坦・ノイズ領域幅カウント値Cntとして得られ、この平坦・ノイズ領域幅カウント値Cntは巡回型フィルタ処理手段32へと出力される。   The flat / noise area width count means 31 obtains the flat / noise area width in the horizontal direction up to the previous pixel at the non-noise gradation change position (Ar = 2) as the flat / noise area width count value Cnt. The flat / noise area width count value Cnt is output to the recursive filter processing means 32.

巡回型フィルタ処理手段32には、画素領域判定手段20からの領域信号Arが入力され、さらに、巡回型のフィルタ処理手段32には、平坦・ノイズ領域幅カウント手段31からの平坦・ノイズ領域幅カウント値Cntが入力される。巡回型フィルタ処理手段32においては、水平方向走査期間ごとで出力結果を初期化し、非ノイズ階調変化位置(Ar=2)における平坦・ノイズ領域幅カウント値Cntに対して、非ノイズ階調変化位置(Ar=2)ごとで巡回型のフィルタ処理を施し、このフィルタ処理の結果を階調値が変化する画素位置以降における平坦・ノイズ領域幅を予測した値である平坦・ノイズ領域幅データ予測値dstとして出力する。この巡回型フィルタ処理手段32は、低域通過フィルタ(LPF)とし、入力信号と巡回型フィルタ処理手段32内のフィルタ出力遅延手段37により遅延したフィルタ出力pdstによる巡回型フィルタ(Infinite Impulse Response(IIR)フィルタ)で構成する。IIRフィルタによる構成は、入力信号の隣接する数画素の信号による非巡回型のフィルタ(Finite Impulse Response(FIR)フィルタ)における構成と比較し、用いる遅延手段(メモリ)の数を少なくし、フィルタ処理する画素範囲にかかわらず一定とすることができる。   The recursive filter processing means 32 receives the area signal Ar from the pixel area determining means 20, and the recursive filter processing means 32 further receives the flat / noise area width from the flat / noise area width counting means 31. A count value Cnt is input. In the cyclic filter processing means 32, the output result is initialized for each horizontal scanning period, and the non-noise gradation change with respect to the flat / noise area width count value Cnt at the non-noise gradation change position (Ar = 2). Flat / noise area width data prediction, which is a value obtained by performing a cyclic filter process at each position (Ar = 2), and predicting the flat / noise area width after the pixel position where the gradation value changes based on the result of this filter process. Output as the value dst. The recursive filter processing means 32 is a low-pass filter (LPF), and a recursive filter (Infinite Impulse Response (IIR)) based on the input signal and the filter output pdst delayed by the filter output delay means 37 in the recursive filter processing means 32. ) Filter). The configuration by the IIR filter reduces the number of delay means (memory) to be used as compared with the configuration in the acyclic filter (Finite Impulse Response (FIR) filter) using signals of several adjacent pixels of the input signal, and the filter processing It can be constant regardless of the pixel range to be performed.

図7において、係数1乗算手段33と係数2乗算手段35は、所定のフィルタ係数が設定されており、それぞれの入力信号に対しフィルタ係数を乗算する演算を行う。ここで、係数1乗算手段33におけるフィルタ係数をk、係数2乗算手段35のフィルタ係数をkとする場合、k=1−k2,0≦k≦1、0≦k≦1で設定され、このフィルタ係数k,kの値の割り振りにより、巡回する過去の出力値の大きさ、すなわち、得られる平坦・ノイズ領域幅が影響される領域の範囲が決まる。 In FIG. 7, the coefficient 1 multiplication means 33 and the coefficient 2 multiplication means 35 are set with predetermined filter coefficients, and perform an operation of multiplying each input signal by the filter coefficient. Here, when the filter coefficient in the coefficient 1 multiplication means 33 is k 1 and the filter coefficient of the coefficient 2 multiplication means 35 is k 2 , k 1 = 1−k 2, 0 ≦ k 1 ≦ 1, 0 ≦ k 2 ≦ The value of the filter coefficients k 1 and k 2 is set to 1 and the size of the past output value to be circulated, that is, the range of the region affected by the obtained flat / noise region width is determined.

係数1乗算手段33は、平坦・ノイズ領域幅カウント手段31からの平坦・ノイズ領域幅カウント値Cntを受け取り、平坦・ノイズ領域幅カウント値Cntにフィルタ係数kを乗算し、乗算結果k×Cntを得る。係数2乗算手段35は、後述するフィルタ出力遅延手段37により1画素分遅延された直前の画素位置におけるフィルタ処理出力である遅延平坦・ノイズ領域幅データ予測値pdst(すなわち、現時点の画素位置より前の非ノイズ階調変化位置におけるフィルタ処理後の結果)を受け取り、遅延平坦・ノイズ領域幅データ予測値pdstに対しフィルタ係数kを乗算して、乗算結果k×pdstを求める。 The coefficient 1 multiplication means 33 receives the flat / noise area width count value Cnt from the flat / noise area width count means 31, multiplies the flat / noise area width count value Cnt by the filter coefficient k 1 , and the multiplication result k 1 × Get Cnt. The coefficient 2 multiplication means 35 is a delayed flat / noise area width data predicted value pdst (that is, before the current pixel position), which is a filter processing output at a pixel position immediately before being delayed by one pixel by a filter output delay means 37 described later. The result after filtering at the non-noise gradation change position) is multiplied by the delay flat / noise region width data prediction value pdst by the filter coefficient k 2 to obtain a multiplication result k 2 × pdst.

演算手段34は、係数1乗算手段33から出力される平坦・ノイズ領域幅カウント値Cntに対する係数乗算結果k×Cntと、係数2乗算手段35から出力される遅延平坦・ノイズ領域幅データ予測値pdstに対する係数乗算結果k×pdstとが入力される。演算手段34は、入力された係数乗算結果を加算し、加算結果をフィルタ処理結果fdstとして出力する。遅延平坦・ノイズ領域幅データ予測値pdstはフィルタ出力遅延手段37により1画素分遅延された直前の画素位置におけるフィルタ処理出力であるので、係数1乗算手段33と係数2乗算手段35と、演算手段35による演算は、巡回型のフィルタ処理に相当し、下記の式(1)による演算となる。
fdst
= k×pdst + k×Cnt
= k×pdst + (1−k)×Cnt …式(1)
The calculation means 34 calculates the coefficient multiplication result k 1 × Cnt for the flat / noise area width count value Cnt output from the coefficient 1 multiplication means 33 and the delayed flat / noise area width data predicted value output from the coefficient 2 multiplication means 35. The coefficient multiplication result k 2 × pdst for pdst is input. The computing unit 34 adds the input coefficient multiplication results and outputs the addition result as a filter processing result fdst. Since the delay flat / noise region width data prediction value pdst is the filter processing output at the pixel position immediately before being delayed by one pixel by the filter output delay unit 37, the coefficient 1 multiplication unit 33, the coefficient 2 multiplication unit 35, and the calculation unit The calculation by 35 corresponds to cyclic filter processing and is calculated by the following equation (1).
fdst
= K 2 × pdst + k 1 × Cnt
= K 2 × pdst + (1−k 2 ) × Cnt Equation (1)

また、上記式(1)による巡回型のフィルタ処理の演算は、低域通過フィルタによる演算を表しており、水平方向に階調値が変化する際の平坦・ノイズ領域幅の低域周波数成分、すなわち、平滑化された連続性が得られ、急激な階調値の変化を平坦・ノイズ領域幅として検出することを避けることができる。   Further, the calculation of the cyclic filter processing according to the above expression (1) represents the calculation by the low-pass filter, and the low-frequency component of the flat / noise area width when the gradation value changes in the horizontal direction, That is, smoothed continuity is obtained, and it is possible to avoid detecting a sudden change in gradation value as a flat / noise area width.

切換え手段36には、領域信号Arと、演算手段35からのフィルタ処理加算結果fdstと、フィルタ出力遅延手段37からの遅延平坦・ノイズ領域幅データ予測値pdstとが入力される。切換え手段36は、領域信号Arで示される画素領域によって、演算手段34からのフィルタ処理結果fdstとフィルタ出力遅延手段37からの遅延平坦・ノイズ領域幅データ予測値pdstとを切り換え、また、初期化の場合は値0に切り換えて出力し、非ノイズ階調変化位置(Ar=2)以降における平坦・ノイズ領域幅を予測した値である平坦・ノイズ領域幅データ予測値dstとして出力する。   The switching means 36 receives the area signal Ar, the filter processing addition result fdst from the calculation means 35, and the delay flat / noise area width data predicted value pdst from the filter output delay means 37. The switching means 36 switches between the filter processing result fdst from the computing means 34 and the delay flat / noise area width data predicted value pdst from the filter output delay means 37 according to the pixel area indicated by the area signal Ar, and also initializes it. In this case, the value is switched to 0 and output, and is output as a predicted flat / noise region width data value dst, which is a predicted value of the flat / noise region width after the non-noise gradation change position (Ar = 2).

すなわち、切換え手段36は、水平方向走査期間の区切りにおいて初期化を示す場合は、初期化の値0を選択し、平坦・ノイズ領域幅データ予測値dst=0として出力する。また、切換え手段36は、非ノイズ階調変化位置(Ar=2)においては、平坦・ノイズ領域幅カウント値Cntに対して巡回型フィルタ処理を施した結果である演算手段34からのフィルタ処理結果fdstを選択し、平坦・ノイズ領域幅データ予測値dstとして出力する。一方、切換え手段36は、階調平坦領域(Ar=0)とノイズ領域(Ar=1)においては、フィルタ出力遅延手段37からの遅延平坦・ノイズ領域幅データ予測値pdst(すなわち、現時点の画素位置より前の非ノイズ階調変化位置におけるフィルタ処理結果fdstに相当する)を選択し、平坦・ノイズ領域幅データ予測値dstとして出力する。   In other words, the switching means 36 selects the initialization value 0 and outputs it as the flat / noise area width data predicted value dst = 0 when initialization is indicated at the interval of the horizontal scanning period. Further, the switching means 36 at the non-noise gradation change position (Ar = 2) has a filter processing result from the arithmetic means 34 that is a result of applying a cyclic filter process to the flat / noise area width count value Cnt. fdst is selected and output as a flat / noise region width data prediction value dst. On the other hand, in the gradation flat region (Ar = 0) and noise region (Ar = 1), the switching unit 36 determines the delay flat / noise region width data predicted value pdst (that is, the current pixel) from the filter output delay unit 37. (Corresponding to the filter processing result fdst at the non-noise gradation change position before the position) is selected and output as the flat / noise area width data predicted value dst.

これにより、巡回型フィルタ処理手段32においては、非ノイズ階調変化位置(Ar=2)ごとの平坦・ノイズ領域幅カウント値Cntに対して巡回型フィルタ処理を施した結果が、平坦・ノイズ領域幅データ予測値dstとして得られ、それ以外の階調平坦領域、ノイズ領域の画素においては、その前の非ノイズ階調変化位置における値が保持されて出力される。切換え手段36からの平坦・ノイズ領域幅データ予測値dstは、巡回型フィルタ処理手段32からの出力として傾き検出手段40へと出力されるとともに、フィルタ出力遅延手段37へと送られる。   As a result, in the recursive filter processing means 32, the result of performing recursive filter processing on the flat / noise region width count value Cnt for each non-noise gradation change position (Ar = 2) is the flat / noise region. It is obtained as the width data predicted value dst, and in the other gradation flat region and noise region pixels, the value at the previous non-noise gradation change position is held and output. The flat / noise region width data predicted value dst from the switching unit 36 is output to the inclination detecting unit 40 as an output from the cyclic filter processing unit 32 and also to the filter output delay unit 37.

フィルタ出力遅延手段37は、切換え手段36からの平坦・ノイズ領域幅データ予測値dstを1画素分遅延して、遅延平坦・ノイズ領域幅データ予測値pdstとして出力する。フィルタ出力遅延手段37は切換え手段36からの出力を遅延するので、遅延平坦・ノイズ領域幅データ予測値pdstは、直前画素における平坦・ノイズ領域幅データ予測値dstがそのまま出力されたものであり、非ノイズ階調変化位置(Ar=2)ごとで、平坦・ノイズ領域幅カウント値Cntに対する巡回型フィルタ処理した結果(平坦・ノイズ領域幅データ予測値dst)が、次に非ノイズ階調変化位置となる階調値が変化する画素まで保持される。   The filter output delay means 37 delays the flat / noise area width data predicted value dst from the switching means 36 by one pixel and outputs the delayed flat / noise area width data predicted value pdst. Since the filter output delay means 37 delays the output from the switching means 36, the delay flat / noise area width data predicted value pdst is the flat / noise area width data predicted value dst of the previous pixel output as it is, The result (cyclic / noise area width data predicted value dst) of the cyclic filter processing for the flat / noise area width count value Cnt at each non-noise gradation change position (Ar = 2) is the next non-noise gradation change position. Up to pixels where the tone value changes.

以上より、巡回型フィルタ処理手段32からは、非ノイズ階調変化位置(Ar=2)における平坦・ノイズ領域幅カウント値Cntに対して、階調値が変化する画素位置ごとで巡回型フィルタ処理を施した平坦・ノイズ領域幅データ予測値dstが出力される。この平坦・ノイズ領域幅データ予測値dstは、非ノイズ階調変化位置(Ar=2)における平坦・ノイズ領域幅カウント値Cntに対して、巡回型の低域通過フィルタ処理を行うことで得ており、水平方向に階調値が変化する際の平坦・ノイズ領域幅の低域周波数成分、すなわち、平滑化された連続性を示す平坦・ノイズ領域幅の値として得られる。したがって、水平方向における連続的に緩やかに階調値が変化する画素の領域において、その階調値の変化する際の平坦・ノイズ領域幅(ノイズ成分がない場合には、階調平坦領域の幅)を、急峻な変化を避けて得ることができ、このことにより、非ノイズ階調変化位置(Ar=2)以降における階調値の変化の平坦・ノイズ領域幅を予測した値として用いることができる。   As described above, the cyclic filter processing unit 32 performs cyclic filter processing for each pixel position where the gradation value changes with respect to the flat / noise area width count value Cnt at the non-noise gradation change position (Ar = 2). The flat / noise region width data prediction value dst subjected to the processing is output. The flat / noise area width data predicted value dst is obtained by performing a cyclic low-pass filter process on the flat / noise area width count value Cnt at the non-noise gradation change position (Ar = 2). Thus, the low-frequency component of the flat / noise region width when the gradation value changes in the horizontal direction, that is, the flat / noise region width value indicating smoothed continuity is obtained. Therefore, in the pixel area where the gradation value changes gradually and gradually in the horizontal direction, the flat / noise area width when the gradation value changes (the width of the gradation flat area when there is no noise component) ) Can be obtained while avoiding steep changes, and as a result, the flatness / noise area width of the gradation value change after the non-noise gradation change position (Ar = 2) can be used as a predicted value. it can.

《1−2−5》エッジ変化検出手段60.
エッジ変化検出手段60には、階調変化量検出手段10内の階調変化量算出手段11からの階調変化量dfが入力される。エッジ変化検出手段60は、補正ビット生成手段50が階調数の拡張のために補正値(補正ビットデータCd)を生成する際に、その補正値を制限するために用いられる補正制限係数rcを設定し、この補正制限係数rcを補正ビット生成手段50へ出力する。
<< 1-2-5 >> Edge change detection means 60.
The edge change detection means 60 receives the gradation change amount df from the gradation change amount calculation means 11 in the gradation change amount detection means 10. The edge change detecting unit 60 sets a correction limiting coefficient rc used to limit the correction value when the correction bit generating unit 50 generates a correction value (correction bit data Cd) for expanding the number of gradations. The correction limit coefficient rc is set and output to the correction bit generation means 50.

ここで、階調変化量検出手段10からの階調変化量dfは、隣接する画素間の階調値の差分から算出されており、画像のエッジ(輪郭)に隣接する画素においては、画像のエッジ成分による階調値の差も含む。実施の形態1においては、階調変換手段1で階調数を拡張する画素の領域は、階調値の差が入力画像信号Daの最下位1ビット分の変化である領域(非常に滑らかに階調値が変化する領域)としている。このため、画像のエッジにおいては階調値に対し補正値が付加されないようにする必要がある。よって、エッジ変化検出手段60は、階調変化量dfの大きさから、画像のエッジに隣接する画素で階調値の変化(すなわち、階調値の差分)が画像のエッジによるものか否かを判定し、その結果から、画像のエッジにおいては階調の補正値が付加されないように補正値を制限することができる値として補正制限係数rcを設定する。   Here, the gradation change amount df from the gradation change amount detection means 10 is calculated from the difference in gradation value between adjacent pixels, and in the pixel adjacent to the edge (contour) of the image, It also includes a difference in gradation values due to edge components. In the first embodiment, an area of a pixel whose number of gradations is expanded by the gradation converting unit 1 is an area in which the difference in gradation values is a change corresponding to the least significant 1 bit of the input image signal Da (very smooth). The area in which the gradation value changes). For this reason, it is necessary to prevent a correction value from being added to the gradation value at the edge of the image. Therefore, the edge change detecting means 60 determines whether or not the change in the gradation value (that is, the difference in the gradation value) is due to the edge of the image based on the magnitude of the gradation change amount df. Based on the result, the correction limiting coefficient rc is set as a value that can limit the correction value so that the gradation correction value is not added to the edge of the image.

図8は、エッジ変化検出手段60の構成の一例を概略的に示すブロック図である。図8には、エッジ変化検出手段60が、例えば、階調変化量dfの絶対値の大きさと、階調変化量dfの低域周波数成分(低域成分)の大きさとから、補正制限係数rcを設定する場合の構成を示している。エッジ変化検出手段60は、階調変化量dfのみによらず、階調変化量dfの低域成分を用いることで、階調値が変化する画素位置の近傍の画素における画像のエッジによる階調値の変化も考慮することができ、より精度よく画像のエッジが存在する画素か否かを判定できる。図8に示されるように、エッジ変化検出手段60は、例えば、絶対値演算手段61と、差分低域成分抽出手段62と、絶対値演算手段63と、倍率変換手段64と、最大値選択手段65と、係数変換手段66とから構成される。   FIG. 8 is a block diagram schematically showing an example of the configuration of the edge change detection means 60. In FIG. 8, the edge change detecting means 60 calculates the correction limiting coefficient rc from the magnitude of the absolute value of the gradation change amount df and the magnitude of the low frequency component (low frequency component) of the gradation change amount df. Shows the configuration for setting. The edge change detection means 60 uses the low frequency component of the gradation change amount df, not only the gradation change amount df, so that the gradation due to the edge of the image in the pixel near the pixel position where the gradation value changes. A change in value can also be taken into account, and it can be determined whether or not the pixel has an edge of the image with higher accuracy. As shown in FIG. 8, the edge change detection means 60 includes, for example, an absolute value calculation means 61, a differential low frequency component extraction means 62, an absolute value calculation means 63, a magnification conversion means 64, and a maximum value selection means. 65 and coefficient conversion means 66.

エッジ変化検出手段60内の絶対値演算手段61に階調変化量dfが入力されると、絶対値演算手段61は、階調変化量dfの絶対値を演算し、演算結果として階調変化量絶対値dxcを出力する。   When the gradation change amount df is input to the absolute value calculation means 61 in the edge change detection means 60, the absolute value calculation means 61 calculates the absolute value of the gradation change amount df, and the gradation change amount is obtained as a calculation result. The absolute value dxc is output.

差分低域成分抽出手段62に階調変化量算出手段11からの階調変化量dfが入力されると、差分低域成分抽出手段62は、階調変化量dfに対し水平方向のLPF(水平LPF)処理を施し、階調変化量dfを平滑化することによって、階調変化量dfの低域成分(「差分低域成分」と記す。)dflpを抽出し出力する。メモリ容量を考慮する場合、差分低域成分抽出手段62は、フィルタ出力を巡回させることでフィルタ処理するIIRフィルタにより構成すれば、回路規模を小さくできる。また、差分低域成分抽出手段62は、隣接する画素間の階調変化量dfの加算による値を用いてもよい。   When the gradation change amount df from the gradation change amount calculation means 11 is input to the difference low-frequency component extraction means 62, the difference low-frequency component extraction means 62 applies a horizontal LPF (horizontal) to the gradation change amount df. LPF) processing is performed to smooth the gradation change amount df, thereby extracting and outputting a low frequency component (referred to as “differential low frequency component”) dflp of the gradation change amount df. When considering the memory capacity, the differential low-frequency component extracting means 62 can be reduced in circuit scale if constituted by an IIR filter that performs filter processing by circulating the filter output. Further, the difference low-frequency component extracting unit 62 may use a value obtained by adding the gradation change amount df between adjacent pixels.

絶対値演算手段63に差分低域成分抽出手段62からの差分低域成分dflpが入力されると、絶対値演算手段63は、差分低域成分dflpの絶対値を演算し、演算結果として差分低域成分絶対値abslpを出力する。   When the difference low-frequency component dflp from the difference low-frequency component extraction means 62 is input to the absolute value calculation means 63, the absolute value calculation means 63 calculates the absolute value of the difference low-frequency component dflp, and the difference is low as the calculation result. The band component absolute value abslp is output.

倍率変換手段64に絶対値演算手段63からの差分低域成分絶対値abslpが入力されると、倍率変換手段64は、絶対値演算手段63からの差分低域成分絶対値abslpに所定の倍率を乗算してゲイン調整(すなわち、差分低域成分絶対値abslpの変換処理)を行い、変換処理によって得られた倍率変換差分低域成分dxlpfを最大値選択手段65へ出力する。差分低域成分絶対値abslpは、差分低域成分抽出手段62において階調変化量dfの低域成分を抽出した結果(すなわち、差分低域成分dflp)の絶対値として得られた値であるので、差分低域成分抽出手段62による低域成分抽出処理を受けていない絶対値演算手段61からの階調変化量絶対値dxcとは階調値が異なっている。倍率変換手段64は、絶対値演算手段63からの差分低域成分絶対値abslpをゲイン調整して倍率変換差分低域成分dxlpfに変換することによって、倍率変換差分低域成分dxlpfの階調値を、絶対値演算手段61からの階調変化量絶対値dxcの階調値に対応した階調値に調整する。なお、倍率変換手段64におけるゲイン調整の倍率を変更することによって、階調の差が画像のエッジによる階調の差であるか否かの判定における、画像のエッジの検出感度を調整することができる。   When the difference low-frequency component absolute value abslp from the absolute value calculation means 63 is input to the magnification conversion means 64, the magnification conversion means 64 adds a predetermined magnification to the difference low-frequency component absolute value abslp from the absolute value calculation means 63. Multiplication is performed to perform gain adjustment (that is, conversion processing of the differential low-frequency component absolute value abslp), and the magnification conversion differential low-frequency component dxlpf obtained by the conversion processing is output to the maximum value selection means 65. The difference low-frequency component absolute value abslp is a value obtained as an absolute value of the result of extracting the low-frequency component of the gradation change amount df in the difference low-frequency component extraction unit 62 (that is, the differential low-frequency component dflp). The gradation value is different from the gradation change amount absolute value dxc from the absolute value calculation means 61 that has not undergone the low-frequency component extraction processing by the differential low-frequency component extraction means 62. The magnification conversion means 64 adjusts the gain of the difference low-frequency component absolute value abslp from the absolute value calculation means 63 and converts it into a magnification conversion difference low-frequency component dxlpf, thereby converting the gradation value of the magnification conversion difference low-frequency component dxlpf. Then, the gradation value is adjusted to a gradation value corresponding to the gradation value of the gradation change amount absolute value dxc from the absolute value calculation means 61. Note that by changing the gain adjustment magnification in the magnification conversion means 64, it is possible to adjust the detection sensitivity of the edge of the image in determining whether the gradation difference is a gradation difference due to the edge of the image. it can.

最大値選択手段65に絶対値演算手段61からの階調変化量絶対値dxcと倍率変換手段64からの倍率変換差分低域成分dxlpfとが入力されると、最大値選択手段65は、入力された階調変化量絶対値dxcと倍率変換差分低域成分dxlpfとを比較し、これらの値の内の最大値を選択し、この選択された最大値を最大差分絶対値|df|として出力する。すなわち、最大差分絶対値|df|は、注目画素の近傍における水平方向の画像のエッジ又は階調値の差分を示すので、この階調値の差分の値の大きさから、画像のエッジの存在の有無を判定できる。最大値選択手段65からの最大差分絶対値|df|は、係数変換手段66へ出力される。   When the gradation change amount absolute value dxc from the absolute value calculator 61 and the magnification conversion difference low-frequency component dxlpf from the magnification converter 64 are input to the maximum value selector 65, the maximum value selector 65 is input. The gradation change amount absolute value dxc and the magnification conversion difference low-frequency component dxlpf are compared, the maximum value among these values is selected, and the selected maximum value is output as the maximum difference absolute value | df |. . That is, since the maximum difference absolute value | df | indicates the difference between the edge of the horizontal image or the gradation value in the vicinity of the target pixel, the presence of the edge of the image is determined from the magnitude of the difference value of the gradation value. The presence or absence of can be determined. The maximum difference absolute value | df | from the maximum value selecting means 65 is output to the coefficient converting means 66.

係数変換手段66に最大値選択手段65からの最大差分絶対値|df|が入力されると、係数変換手段66は、最大値選択手段65からの最大差分絶対値|df|の値から、階調値の変化が画像のエッジによるものか否かを判定し、その結果から、画像のエッジにおいては入力画像信号Daに階調の補正値が付加されないように、生成される補正値を制限することができる信号として補正制限係数rcを設定し、この設定された補正制限係数rcを補正ビット生成手段50へ出力する。   When the maximum difference absolute value | df | from the maximum value selection unit 65 is input to the coefficient conversion unit 66, the coefficient conversion unit 66 calculates the floor from the value of the maximum difference absolute value | df | from the maximum value selection unit 65. It is determined whether or not the change in the tone value is due to the edge of the image, and based on the result, the generated correction value is limited so that the gradation correction value is not added to the input image signal Da at the edge of the image. The correction limit coefficient rc is set as a signal that can be transmitted, and the set correction limit coefficient rc is output to the correction bit generation means 50.

ここで、エッジ変化検出手段60が設定する補正制限係数rcは、階調の補正値に対する乗算値であり、0から1までの範囲内の値として設定される。補正制限係数rcは、階調の補正値に対する乗算値であるので、補正制限係数rcが0であれば補正値も0となる。また、滑らかに階調値が変化し、階調数を拡張する画素の領域においては、エッジ変化検出手段60は、画像信号の値に補正値による補正ビットデータを付加するようにするために、補正制限係数rcを1にする。   Here, the correction limiting coefficient rc set by the edge change detection means 60 is a multiplication value for the gradation correction value, and is set as a value in the range from 0 to 1. Since the correction limiting coefficient rc is a multiplication value for the gradation correction value, if the correction limiting coefficient rc is 0, the correction value is also 0. In addition, in the pixel region where the gradation value changes smoothly and the number of gradations is expanded, the edge change detection means 60 adds correction bit data based on the correction value to the value of the image signal. The correction limiting coefficient rc is set to 1.

係数変換手段66は、最大値選択手段65からの最大差分絶対値|df|の値に応じて補正制限係数rcの値を算出する。係数変換手段66は、例えば、最大差分絶対値|df|を予め決められた所定の値THと比較し、最大差分絶対値|df|が所定の値TH以下の場合は、補正制限係数rcを1とし、最大差分絶対値|df|が値THから値THの2倍の値(2×TH)の間の場合は、最大差分絶対値|df|が大きくなるほど補正制限係数rcが0に近づくようにrcの値を変化させ、例えば、下記式(2)のような値として算出する。
rc = (2×TH−|df|)/TH …式(2)
そして、最大差分絶対値|df|が2×TH以上の場合は、補正制限係数rcを0に設定し、この場合は、階調値の変化が画像のエッジによるものであると判定する。
The coefficient converting unit 66 calculates the value of the correction limiting coefficient rc according to the value of the maximum difference absolute value | df | from the maximum value selecting unit 65. For example, the coefficient conversion unit 66 compares the maximum difference absolute value | df | with a predetermined value TH, and if the maximum difference absolute value | df | is equal to or less than the predetermined value TH, the correction limiting coefficient rc is set. When the maximum difference absolute value | df | is between the value TH and twice the value TH (2 × TH), the correction limit coefficient rc approaches 0 as the maximum difference absolute value | df | increases. Thus, the value of rc is changed, and for example, it is calculated as a value like the following formula (2).
rc = (2 × TH− | df |) / TH (2)
When the maximum difference absolute value | df | is equal to or greater than 2 × TH, the correction limiting coefficient rc is set to 0. In this case, it is determined that the change in the gradation value is due to the edge of the image.

なお、上記の比較する所定の値THは、入力画像信号Daの最下位1ビット分の差、すなわち、画素間の階調値の差分である+1及び−1の変化の絶対値である1とすればよい。   The predetermined value TH to be compared is a difference of the least significant 1 bit of the input image signal Da, that is, an absolute value of +1 and −1 which is a difference in gradation value between pixels, and 1 do it.

以上の構成により、最大差分絶対値|df|の値に応じて0から1までの範囲内で変化する補正制限係数rcが得られ、最大差分絶対値|df|が小さく(TH=1以下)、滑らかに階調値が変化する画素の領域においては補正制限係数rc=1となり、最大差分絶対値|df|が大きく、階調の差が画像のエッジによるものと判定される場合は、補正制限係数rcは0、又は、1より小さな値となり、画像のエッジにおいては階調の補正値が付加されないように、補正値を制限することができる値として補正制限係数rcを得ることができる。   With the above configuration, the correction limiting coefficient rc that changes within the range from 0 to 1 according to the value of the maximum difference absolute value | df | is obtained, and the maximum difference absolute value | df | is small (TH = 1 or less). In the pixel region where the gradation value changes smoothly, the correction limiting coefficient rc = 1, the maximum difference absolute value | df | is large, and it is determined that the difference in gradation is due to the edge of the image. The limit coefficient rc is 0 or smaller than 1, and the correction limit coefficient rc can be obtained as a value that can limit the correction value so that the gradation correction value is not added to the edge of the image.

図9は、係数変換手段66において、最大差分絶対値|df|(横軸)に対する補正制限係数rc(縦軸)への変換の特性を示す図である。図9には、係数変換手段66が、補正制限係数rcを0から1までの範囲内の値として出力する場合が示されている。最大差分絶対値|df|が大きくなると、補正制限係数rcの値は0に近づき、階調値の変化が画像のエッジによると判断し、階調数が拡張されないよう補正値を制限する。一方、最大差分絶対値|df|の値が閾値TH=1以下である場合は、補正制限係数rc=1であり、+1と−1の差にある緩やかな階調値の変化であるとし、階調数の拡張を行うよう設定される。これにより、階調値が変化する画素近傍に画像のエッジが存在すると判定された画素においては、補正制限係数rcの値がrc=0になり、その値により、補正の値が制限される。   FIG. 9 is a diagram showing the characteristics of the conversion into the correction limiting coefficient rc (vertical axis) with respect to the maximum difference absolute value | df | (horizontal axis) in the coefficient conversion means 66. FIG. 9 shows a case where the coefficient conversion means 66 outputs the correction limiting coefficient rc as a value within the range from 0 to 1. When the maximum difference absolute value | df | increases, the value of the correction limiting coefficient rc approaches 0, and it is determined that the change in the gradation value is caused by the edge of the image, and the correction value is limited so that the number of gradations is not expanded. On the other hand, when the value of the maximum difference absolute value | df | is equal to or smaller than the threshold value TH = 1, it is assumed that the correction limiting coefficient rc = 1 and that the gradation value is a gradual change in the difference between +1 and −1. It is set to extend the number of gradations. As a result, the correction limit coefficient rc is set to rc = 0 in the pixel determined to have an image edge near the pixel where the gradation value changes, and the correction value is limited by the value.

図10(a)及び(b)は、エッジ変化検出手段60が設定する補正制限係数rcが0となる階調値の変化の例を示す図である。図10(a)及び(b)において、横軸は水平方向の画素位置を、縦軸は各画素位置における入力画像信号Daの階調値La(x)を示している。例えば、図10(a)で示す場合は、階調値が変化する画素位置xにおいての階調変化量dfの絶対値、すなわち、最大差分絶対値|df|が、閾値TH=1より大きくなるので、この画素位置xにおける補正制限係数rcの値は0で、階調値の変化が画像のエッジによると判断される。また、図10(b)に示す場合は、階調値が変化する画素位置xに対し隣接する画素位置x+1において階調変化量df=3となり、図8に示される差分低域成分dflpを左右画素との水平LPFによる値とした場合には、最大差分絶対値|df|が閾値TH=1より大きくなり、補正制限係数rcの値は0に近づき、階調値の変化が画像のエッジによると判断される。そして、図10(a)及び(b)の画素位置x以降の画素においては補正制限係数rcの値より、補正値が制限される。 FIGS. 10A and 10B are diagrams illustrating an example of a change in the gradation value at which the correction limiting coefficient rc set by the edge change detection unit 60 is zero. 10A and 10B, the horizontal axis indicates the pixel position in the horizontal direction, and the vertical axis indicates the gradation value La (x) of the input image signal Da at each pixel position. For example, in the case shown in FIG. 10A, the absolute value of the gradation change amount df at the pixel position x 0 where the gradation value changes, that is, the maximum difference absolute value | df | is larger than the threshold value TH = 1. since, in 0 the value of the correction limit coefficient rc at the pixel position x 0, variation in gray value is determined to be due to the edge of the image. In the case shown in FIG. 10 (b), the difference low frequency component shown in tone variation df = 3, and the 8 at the pixel position x 0 +1 adjacent to the pixel position x 0 of the gradation value changes When dflp is a value based on the horizontal LPF with the left and right pixels, the maximum difference absolute value | df | becomes larger than the threshold value TH = 1, the value of the correction limiting coefficient rc approaches 0, and the change in the gradation value is an image. It is determined to be due to the edge. Then, the pixel position x 0 and subsequent pixels in FIG. 10 (a) and (b) than the value of the correction limiting coefficient rc, the correction value is limited.

なお、係数変換手段66が所定の値THとの比較と式(2)による演算とから、補正制限係数rcを設定する場合を説明したが、最大差分絶対値|df|に基づき、ROM(Read Only Memory)などで構成することで、予め得られた、例えば、図9に示されるような変換により、補正制限係数rcを設定してもよい。また、最大差分絶対値|df|は、値THからTHの2倍の値(2×TH)の間の値についても、0から1までの範囲内の固定の値であってもよい。さらには、補正制限係数rcの値は0と1の2値の信号でもよく、補正制限係数rcにより、階調値が変化する画素近傍に画像のエッジが存在すると判定された画素における補正値の値が制限できる値であればよい。   Although the case where the coefficient conversion unit 66 sets the correction limiting coefficient rc from the comparison with the predetermined value TH and the calculation according to the equation (2) has been described, the ROM (Read) is based on the maximum difference absolute value | df |. The correction limiting coefficient rc may be set by conversion obtained in advance, for example, as shown in FIG. Further, the maximum difference absolute value | df | may be a fixed value within a range from 0 to 1 even for a value between the value TH and a value twice the value TH (2 × TH). Furthermore, the value of the correction limit coefficient rc may be a binary signal of 0 and 1. The correction limit coefficient rc indicates the correction value of a pixel determined to have an image edge near the pixel where the gradation value changes. Any value that can be limited is acceptable.

以上に述べたように、図8のエッジ変化検出手段60は、階調変化量dfの大きさに応じて変化する補正制限係数rcを、0から1までの範囲内の値として得て、補正ビット生成手段50へ出力する。なお、エッジ変化検出手段60の構成は、図示の例に限定されず、他の構成を採用することも可能である。   As described above, the edge change detection means 60 in FIG. 8 obtains the correction limiting coefficient rc that changes according to the magnitude of the gradation change amount df as a value within the range from 0 to 1, and corrects the correction. Output to the bit generation means 50. Note that the configuration of the edge change detection means 60 is not limited to the illustrated example, and other configurations may be employed.

《1−2−6》傾き検出手段40.
傾き検出手段40には、画素領域判定手段20からの領域信号Arと、階調変化量制限手段12からの振幅制限階調変化量Xlmと、平坦・ノイズ領域幅判定手段30内の巡回型フィルタ処理手段22からの平坦・ノイズ領域幅データ予測値dstとが入力される。傾き検出手段40は、領域信号Arで示される階調値が変化する画素位置において、振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstから、入力画像信号Daの水平方向の階調値の傾きを検出し、傾きデータ値Kslを求め、求められた傾きデータ値Kslを補正ビット生成手段50へ出力する。振幅制限階調変化量Xlmは、階調変化量dfを−1から+1までの範囲内に制限した値で入力されているので、検出される階調値の傾きは−1から+1までの範囲内の値となる。
<< 1-2-6 >> Inclination detecting means 40.
The inclination detection means 40 includes an area signal Ar from the pixel area determination means 20, an amplitude limit gradation change amount Xlm from the gradation change amount restriction means 12, and a recursive filter in the flat / noise area width determination means 30. The flat / noise area width data predicted value dst from the processing means 22 is input. The inclination detecting unit 40 determines the level of the input image signal Da in the horizontal direction from the amplitude limit gradation change amount Xlm and the flat / noise area width data predicted value dst at the pixel position where the gradation value indicated by the area signal Ar changes. The inclination of the tone value is detected, the inclination data value Ksl is obtained, and the obtained inclination data value Ksl is output to the correction bit generation means 50. Since the amplitude limit gradation change amount Xlm is input as a value in which the gradation change amount df is limited within the range from −1 to +1, the gradient of the detected gradation value ranges from −1 to +1. It becomes the value in.

図11は、傾き検出手段40の構成の一例を概略的に示すブロック図である。図11に示されるように、傾き検出手段40は、例えば、傾き算出手段40aと、切換え手段40bと、傾き遅延手段40cとから構成される。   FIG. 11 is a block diagram schematically showing an example of the configuration of the inclination detecting means 40. As shown in FIG. 11, the inclination detecting means 40 is composed of, for example, an inclination calculating means 40a, a switching means 40b, and an inclination delay means 40c.

図11において、傾き算出手段40aには、階調変化量制限手段12からの振幅制限階調変化量Xlmと、平坦・ノイズ領域幅判定手段30からの平坦・ノイズ領域幅データ予測値dstとが入力される。傾き算出手段40aは、振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstの値から、下記式(3)により、階調値の微細な傾きdivkを算出する。
divk = Xlm/dst …式(3)
In FIG. 11, the slope calculating unit 40 a includes the amplitude limited gradation change amount Xlm from the gradation change amount limiting unit 12 and the flat / noise region width data predicted value dst from the flat / noise region width determining unit 30. Entered. The inclination calculation means 40a calculates a fine inclination divk of the gradation value from the value of the amplitude limit gradation change amount Xlm and the flat / noise area width data predicted value dst by the following equation (3).
divk = Xlm / dst (3)

振幅制限階調変化量Xlmは、その値が−1から+1までの範囲内に制限されており、例えば、振幅制限階調変化量Xlmが+1で、階調値の変化から平坦・ノイズ領域幅が7画素であるとする平坦・ノイズ領域幅データ予測値dst=7で入力された場合は、算出される傾きdivkは1/7となる。また、振幅制限階調変化量Xlmが−1の場合には、傾きdivk=−1/7となる。なお、平坦・ノイズ領域幅データ予測値dst=0の場合は、傾きdivk=Xlmとする。よって、この傾きdivkは−1から+1までの範囲内の値として得られる。   The amplitude limit gradation change amount Xlm is limited within a range of −1 to +1. For example, the amplitude limit gradation change amount Xlm is +1, and the flat / noise area width is changed from the change of the gradation value. Is input with a predicted flat / noise area width data value dst = 7, where the calculated slope divk is 1/7. When the amplitude limit gradation change amount Xlm is −1, the slope divk = −1 / 7. When the flat / noise region width data prediction value dst = 0, the slope divk = Xlm. Therefore, the slope divk is obtained as a value within a range from −1 to +1.

切換え手段40bには、画素領域判定手段20からの領域信号Arと、傾き算出手段40aで算出した傾きdivkと、傾き遅延手段40cからの1画素遅延された遅延傾きデータ値pKslが入力される。切換え手段40bは、画素領域判定手段20からの領域信号Arに応じて、傾き算出手段40aで算出した傾きdivkと傾き遅延手段40cからの遅延傾きデータ値pKslとを切り換えて、水平方向の階調値の傾きを検出した結果である傾きデータ値Kslとして出力する。   The switching means 40b receives the area signal Ar from the pixel area determination means 20, the inclination divk calculated by the inclination calculation means 40a, and the delay inclination data value pKsl delayed by one pixel from the inclination delay means 40c. The switching means 40b switches between the slope divk calculated by the slope calculation means 40a and the delay slope data value pKsl from the slope delay means 40c in accordance with the area signal Ar from the pixel area determination means 20 to thereby change the horizontal gradation. An inclination data value Ksl that is a result of detecting the inclination of the value is output.

すなわち、切換え手段40bは、画素領域判定手段20からの領域信号Arにより、非ノイズ階調変化位置(Ar=2)においては、傾き算出手段40aで算出した傾きdivkを選択し、傾きデータ値Kslとする。一方、切換え手段40bは、階調平坦領域(Ar=0)とノイズ領域(Ar=1)においては、傾き遅延手段40cからの遅延傾きデータ値pKsl(すなわち、現時点の画素位置より前の非ノイズ階調変化位置における傾きdivkに相当する)を選択し、傾きデータ値Kslとする。この傾きデータ値Kslは、傾き検出手段40における傾き検出結果として補正ビット生成手段50へ出力されるとともに、傾き遅延手段40cに送られ、1画素分遅延して遅延傾きデータ値pKslとして切換え手段40bへ戻される。   That is, the switching means 40b selects the inclination divk calculated by the inclination calculation means 40a at the non-noise gradation change position (Ar = 2) based on the area signal Ar from the pixel area determination means 20, and the inclination data value Ksl. And On the other hand, in the gradation flat region (Ar = 0) and the noise region (Ar = 1), the switching unit 40b performs the delay slope data value pKsl (that is, non-noise before the current pixel position) from the slope delay unit 40c. Is selected as the gradient data value Ksl. This inclination data value Ksl is output to the correction bit generation means 50 as an inclination detection result in the inclination detection means 40 and is also sent to the inclination delay means 40c, delayed by one pixel, and switched as a delay inclination data value pKsl by the switching means 40b. Returned to

傾き遅延手段40cは、切換え手段40bからの傾きデータ値Kslを1画素分遅延して、遅延傾きデータ値pKslを出力する。傾き遅延手段40cは切換え手段40bからの出力を遅延するので、遅延傾きデータ値pKslは、直前画素における傾きデータ値Kslがそのまま出力され、非ノイズ階調変化位置(Ar=2)ごとで算出した傾きdivkの値が、次に非ノイズ階調変化位置となる階調値が変化する画素まで保持される。   The slope delay means 40c delays the slope data value Ksl from the switching means 40b by one pixel and outputs a delayed slope data value pKsl. Since the inclination delay means 40c delays the output from the switching means 40b, the inclination inclination data value pKsl is output as it is as the inclination data value Ksl at the previous pixel, and is calculated for each non-noise gradation change position (Ar = 2). The value of the slope divk is held up to the pixel where the gradation value that becomes the next non-noise gradation change position changes.

よって、切換え手段40bと傾き遅延手段40cにより、非ノイズ階調変化位置(Ar=2)となる画素ごとで、傾き算出手段40aで算出した階調値の傾きが傾きデータ値Kslとして得られ、階調平坦領域(Ar=0)とノイズ領域(Ar=1)においては、現時点の画素より1つ前の非ノイズ階調変化位置(Ar=2)となる画素の値が保持されて出力される。   Therefore, the gradient of the gradation value calculated by the inclination calculation means 40a is obtained as the inclination data value Ksl for each pixel at the non-noise gradation change position (Ar = 2) by the switching means 40b and the inclination delay means 40c. In the gradation flat region (Ar = 0) and noise region (Ar = 1), the value of the pixel that is the non-noise gradation change position (Ar = 2) immediately before the current pixel is held and output. The

例えば、非ノイズ階調変化位置(Ar=2)における振幅制限階調変化量Xlmが+1で、直前画素までの平坦・ノイズ領域幅を7画素として、平坦・ノイズ領域幅データ予測値dst=7が入力された場合は、算出される傾きデータ値Kslは1/7となる。また、振幅制限階調変化量Xlmが−1の場合には、傾きデータ値Ksl=−1/7となる。なお、平坦・ノイズ領域幅データ予測値dst=0の場合は、傾きデータ値Ksl=Xlmとする。よって、この傾きデータ値Kslは−1から+1までの範囲内にある値として得られる。   For example, assuming that the amplitude limit gradation change amount Xlm at the non-noise gradation change position (Ar = 2) is +1 and the flat / noise area width up to the previous pixel is 7 pixels, the flat / noise area width data prediction value dst = 7 Is input, the calculated slope data value Ksl is 1/7. When the amplitude limit gradation change amount Xlm is −1, the inclination data value Ksl = −1 / 7. When the flat / noise region width data predicted value dst = 0, the slope data value Ksl = Xlm. Therefore, the slope data value Ksl is obtained as a value in the range from −1 to +1.

一方、傾き遅延手段40cは、階調平坦領域(Ar=0)とノイズ領域(Ar=1)の画素のデータが入力されたときには、現時点の画素位置より1つ前の非ノイズ階調変化位置(Ar=2)の画素における傾きデータ値Kslを保持して出力とする。傾き遅延手段40cには、階調平坦領域(Ar=0)とノイズ領域(Ar=1)の画素においては、直前画素における傾きデータ値Kslがそのまま出力されるので、非ノイズ階調変化位置(Ar=2)ごとで算出した傾きデータ値Kslの値が、次の非ノイズ階調変化位置(Ar=2)まで保持される。   On the other hand, the inclination delay means 40c, when the pixel data of the gray level flat area (Ar = 0) and the noise area (Ar = 1) are input, the non-noise gray level change position one before the current pixel position. The inclination data value Ksl in the pixel of (Ar = 2) is held and output. The slope delay means 40c outputs the slope data value Ksl of the immediately preceding pixel as it is for the pixels in the gray level flat area (Ar = 0) and the noise area (Ar = 1). The value of the slope data value Ksl calculated for each Ar = 2) is held until the next non-noise gradation change position (Ar = 2).

よって、非ノイズ階調変化位置(Ar=2)で算出された傾きデータ値Kslを、それ以降の平坦・ノイズ領域の画素(Ar=0,1)で用いる階調値の傾きとするので、階調平坦領域(Ar=0)の画素とともに、ノイズ領域(Ar=1)の画素についても、傾きデータ値Ksl算出の際の平坦期間の画素として扱う。このため、ノイズ成分による誤検出なく、非ノイズ階調変化位置(Ar=2)の画素における階調値の傾きを得ることができる。   Therefore, the gradient data value Ksl calculated at the non-noise gradation change position (Ar = 2) is set as the gradient of the gradation value used in the subsequent flat / noise region pixels (Ar = 0, 1). The pixels in the noise region (Ar = 1) as well as the pixels in the flat gradation region (Ar = 0) are treated as pixels in the flat period when calculating the inclination data value Ksl. Therefore, the gradient of the gradation value in the pixel at the non-noise gradation change position (Ar = 2) can be obtained without erroneous detection due to the noise component.

図12(a)及び(b)は、傾き検出手段40で求める階調値の傾きを示す傾きデータ値Kslを説明する図であり、図12(a)は、振幅制限階調変化量Xlmが+1で、階調の階調値が上昇する場合、図12(b)は、振幅制限階調変化量Xlmが−1で、階調値が低下する場合を示す。図12(a)及び(b)において、横軸は水平方向の画素位置を、縦軸は各画素位置における入力画像信号Daの階調値La(x)を示している。図12(a)及び(b)に示されるように、非ノイズ階調変化位置(Ar=2)となる画素位置xで得られる平坦・ノイズ領域幅データ予測値dstと振幅制限階調変化量Xlmとから、図12(a)及び(b)に傾斜する破線で示すような傾きとして、画素領域判定手段20からの領域信号Arで示される非ノイズ階調変化位置(Ar=2)となる画素位置x以降の傾きデータ値Kslが得られる。
Ksl = Xlm/dst …式(4)
12A and 12B are diagrams for explaining the inclination data value Ksl indicating the inclination of the gradation value obtained by the inclination detecting means 40, and FIG. 12A shows the amplitude limit gradation change amount Xlm. When the gradation value of the gradation increases at +1, FIG. 12B shows a case where the amplitude limit gradation change amount Xlm is −1 and the gradation value decreases. 12A and 12B, the horizontal axis indicates the pixel position in the horizontal direction, and the vertical axis indicates the gradation value La (x) of the input image signal Da at each pixel position. Figure 12 As shown in (a) and (b), non-noise gradation change position (Ar = 2) obtained at the pixel position x 0 to a flat noise region width data prediction value dst and amplitude limit gradation change From the amount Xlm, a non-noise gradation change position (Ar = 2) indicated by an area signal Ar from the pixel area determination means 20 is set as an inclination as shown by a broken line in FIGS. 12 (a) and 12 (b). pixel position serving x 0 since the slope data value Ksl is obtained.
Ksl = Xlm / dst (4)

以上より、傾き検出手段40からは、非ノイズ階調変化位置(Ar=2)における階調値の変化の傾きが、傾きデータ値Kslとして出力され、平坦・ノイズ領域となる画素(Ar=0,1)では、その前の非ノイズ階調変化位置(Ar=2)で算出された傾きの値が保持される。振幅制限階調変化量Xlmが−1から+1までの範囲内に制限されているので、検出された傾きデータ値Kslについても、−1から+1までの範囲の値となる。   As described above, the inclination detecting means 40 outputs the inclination of the change in the gradation value at the non-noise gradation change position (Ar = 2) as the inclination data value Ksl, and becomes a flat / noise area pixel (Ar = 0). , 1) holds the slope value calculated at the previous non-noise gradation change position (Ar = 2). Since the amplitude limit gradation change amount Xlm is limited within the range from −1 to +1, the detected inclination data value Ksl also has a value in the range from −1 to +1.

《1−2−7》補正ビット生成手段50.
補正ビット生成手段50には傾き検出手段40からの傾きデータ値Kslと、画素領域判定手段20からの領域信号Arと、階調変化量検出手段10の階調変化量制限手段12からの振幅制限階調変化量Xlmと、エッジ変化検出手段60からの補正制限係数rcとが入力される。補正ビット生成手段50は、傾きデータ値Kslから入力画素信号Daの階調値に付加する補正値(補正ビットデータ)の隣接する画素ごとの階調変化量dKを求め、水平方向走査期間ごとで初期化する(値0とする)とともに、領域信号Arに従い、階調変化量dKと振幅制限階調変化量Xlmと補正制限係数rcとから補正値aCdを求め、この補正値aCdによる補正ビットデータCdを生成し、画素値演算手段92へ出力する。ここで、傾きデータ値Kslから求める階調変化量dKは、入力画像信号Daの階調値La(x)(例えば、図2(a)、図3(a)に示す。)に対して小数部を含んだ値であり、よって、補正ビット生成手段50において生成する補正ビットデータCdは、入力画像信号Daの階調値の小数部を含む値による付加ビットEと、付加する値の符号ビットを含むビット列として求められる。
<< 1-2-7 >> Correction bit generation means 50.
The correction bit generation means 50 includes an inclination data value Ksl from the inclination detection means 40, an area signal Ar from the pixel area determination means 20, and an amplitude restriction from the gradation change amount restriction means 12 of the gradation change amount detection means 10. The gradation change amount Xlm and the correction limiting coefficient rc from the edge change detection means 60 are input. The correction bit generation means 50 obtains the gradation change amount dK for each adjacent pixel of the correction value (correction bit data) to be added to the gradation value of the input pixel signal Da from the inclination data value Ksl, and every horizontal scanning period. At the same time as initialization (set to 0), a correction value aCd is obtained from the gradation change amount dK, the amplitude limit gradation change amount Xlm, and the correction limit coefficient rc in accordance with the area signal Ar, and correction bit data based on the correction value aCd Cd is generated and output to the pixel value calculation means 92. Here, the gradation change amount dK obtained from the inclination data value Ksl is a decimal with respect to the gradation value La (x) (for example, shown in FIGS. 2A and 3A) of the input image signal Da. Therefore, the correction bit data Cd generated by the correction bit generation means 50 includes the additional bit E based on the value including the decimal part of the gradation value of the input image signal Da and the sign bit of the value to be added. Is obtained as a bit string including.

図13は、補正ビット生成手段50の構成の一例を概略的に示すブロック図である。図13に示されるように、補正ビット生成手段50は、例えば、演算手段51と、減算手段52と、切換え手段53と、補正値遅延手段54と、ビット列変換手段55とから構成される。補正ビット生成手段50は、入力画素信号Daに対し付加すべき補正値(階調値)を求め、その階調値を示すビット列を補正ビットデータCdとして出力する。   FIG. 13 is a block diagram schematically showing an example of the configuration of the correction bit generation means 50. As shown in FIG. 13, the correction bit generation unit 50 includes, for example, a calculation unit 51, a subtraction unit 52, a switching unit 53, a correction value delay unit 54, and a bit string conversion unit 55. The correction bit generation means 50 obtains a correction value (gradation value) to be added to the input pixel signal Da, and outputs a bit string indicating the gradation value as correction bit data Cd.

図13において、演算手段51には、階調変化量制限手段12からの振幅制限階調変化量Xlmと、エッジ変化検出手段60からの補正制限係数rcとが入力される。演算手段51は、振幅制限階調変化量Xlmと補正制限係数rcとから補正値mCdを算出する。演算手段51によって得られる補正値mCdのうち、非ノイズ階調変化位置(領域信号Ar=2)となる画素(ノイズ領域でない、階調変化量が0でない画素)における補正値mCdが、後述の切換え手段53で用いられる。エッジ変化検出手段60により設定した補正制限係数rcは、階調の補正値に対する乗算値とし、0から1までの範囲内に設定されるので、補正値mCdは、振幅制限階調変化量Xlmと補正制限係数rcを乗算し、乗算結果(rc)×(Xlm)として演算される。   In FIG. 13, the amplitude limiting gradation change amount Xlm from the gradation change amount limiting means 12 and the correction limit coefficient rc from the edge change detecting means 60 are input to the calculation means 51. The computing means 51 calculates a correction value mCd from the amplitude limit gradation change amount Xlm and the correction limit coefficient rc. Of the correction value mCd obtained by the computing means 51, the correction value mCd in a pixel (a pixel that is not a noise region and whose gradation change amount is not 0) that is a non-noise gradation change position (region signal Ar = 2) is described later. Used by the switching means 53. The correction limiting coefficient rc set by the edge change detecting means 60 is a multiplication value for the gradation correction value, and is set within a range from 0 to 1. Therefore, the correction value mCd is the amplitude limited gradation change amount Xlm. Multiplication is performed by the correction limiting coefficient rc, and the multiplication result (rc) × (Xlm) is calculated.

振幅制限階調変化量Xlmは入力画像信号Daの1階調の値に相当する−1から+1までの範囲内に制限されており、また、補正制限係数rcは階調変化量dfの大きさに応じて0〜1の値で得ているので、乗算結果(rc)×(Xlm)による補正値mCdは、階調変化量dfが大きく、画像のエッジが近傍に存在する画素(補正制限係数rc=0)においては補正値mCd=0となり、それ以外の画素においては、−1から+1までの範囲内の絶対値が1以下となる小数として表現される。また、振幅制限階調変化量Xlmから求められるので、補正値mCdは傾きにおける高さから得られる値となる。   The amplitude limit gradation change amount Xlm is limited within a range from −1 to +1 corresponding to the value of one gradation of the input image signal Da, and the correction limit coefficient rc is the magnitude of the gradation change amount df. Therefore, the correction value mCd based on the multiplication result (rc) × (Xlm) is a pixel having a large gradation change amount df and having an edge of the image in the vicinity (correction limiting coefficient). In rc = 0), the correction value mCd = 0, and in other pixels, the absolute value in the range from −1 to +1 is expressed as a decimal that is 1 or less. Further, since it is obtained from the amplitude limit gradation change amount Xlm, the correction value mCd is a value obtained from the height in the slope.

なお、エッジ変化検出手段60からの補正制限係数rcが補正値に対する乗算値として設定され、演算手段51において、振幅制限階調変化量Xlmと補正制限係数rcを乗算する場合を例示したが、データ変換テーブルを保持したROMなどを用いることによって、補正制限係数rcの値に応じて、振幅制限階調変化量Xlmから補正値mCdを得てもよく、また、補正制限係数rcの値に応じて、補正値mCdを固定の値に変換してもよく、補正制限係数rcに応じて補正値の値を制限できればよい。   The correction limit coefficient rc from the edge change detection unit 60 is set as a multiplication value for the correction value, and the calculation unit 51 exemplifies the case where the amplitude limit gradation change amount Xlm is multiplied by the correction limit coefficient rc. By using a ROM or the like that holds a conversion table, the correction value mCd may be obtained from the amplitude limit gradation change amount Xlm according to the value of the correction limit coefficient rc, or according to the value of the correction limit coefficient rc. The correction value mCd may be converted to a fixed value as long as the correction value can be limited according to the correction limiting coefficient rc.

減算手段52には、傾き検出手段40からの傾きデータ値Kslと、補正値遅延手段54からの1画素遅延された遅延補正値pCdとが入力される。減算手段52は、傾きデータ値Kslから補正値の隣接する画素ごとの階調変化量dKを求め、遅延補正値pCdである直前の画素における補正値から階調変化量dKを減算することによって、非ノイズ階調変化位置(領域信号Ar=2)となる階調値が変化する画素以降の平坦・ノイズ領域となる画素における補正値sCdを得て、この得られた補正値sCdを切換え手段53へ出力する。   The subtraction means 52 receives the inclination data value Ksl from the inclination detection means 40 and the delay correction value pCd delayed by one pixel from the correction value delay means 54. The subtracting means 52 obtains the gradation change amount dK for each adjacent pixel of the correction value from the inclination data value Ksl, and subtracts the gradation change amount dK from the correction value in the immediately preceding pixel that is the delay correction value pCd. A correction value sCd is obtained for a pixel that is a flat / noise area after the pixel whose gradation value changes at the non-noise gradation change position (area signal Ar = 2), and the obtained correction value sCd is switched by the switching means 53. Output to.

すなわち、減算手段52は、まず、傾きデータ値Kslの値を、補正値の隣接する画素ごとの階調変化量dKとして求め(dK=Kslとする)、次に、直前画素における補正値(遅延補正値pCd)から階調変化量dKを減算(pCd−dK)する。なお、減算手段52の減算は階調変化量dKの符号(すなわち、傾きデータ値Kslの符号)に応じて、減算又は加算処理し(dK>0は絶対値|dK|を減算、dK<0は、|dK|を加算する)、減算後の値の符号が遅延補正値pCdのものと反転した場合(+が−、又は−が+へ変化)と遅延補正値pCdがゼロでの減算処理の場合は、補正値sCdはゼロ(sCd=0)として出力する。これにより、非ノイズ階調変化位置(Ar=2)以降の平坦・ノイズ領域となる画素における補正値sCdは、変化位置から順に階調変化量dKの絶対値の大きさ(すなわち、傾きデータ値Kslの絶対値|Ksl|)で変化した値となる。ここで、傾きデータ値Kslが−1から+1までの範囲内の値であるので、補正値sCdについても−1から+1までの範囲内のその絶対値が1以下となる小数として表現される。   That is, the subtracting unit 52 first obtains the value of the gradient data value Ksl as the gradation change amount dK for each adjacent pixel of the correction value (dK = Ksl), and then, the correction value (delay in the immediately preceding pixel). The gradation change amount dK is subtracted (pCd-dK) from the correction value pCd). The subtraction by the subtracting means 52 is subtracted or added according to the sign of the gradation change amount dK (that is, the sign of the slope data value Ksl) (dK> 0 subtracts the absolute value | dK |, dK <0 | DK | is added), and when the sign of the value after the subtraction is inverted from that of the delay correction value pCd (+ changes to-or-changes to +), the subtraction process with the delay correction value pCd being zero In this case, the correction value sCd is output as zero (sCd = 0). As a result, the correction value sCd in the pixel that becomes the flat / noise area after the non-noise gradation change position (Ar = 2) is the magnitude of the absolute value of the gradation change amount dK in order from the change position (that is, the slope data value). The absolute value of Ksl | Ksl |) is changed. Here, since the slope data value Ksl is a value in the range from −1 to +1, the correction value sCd is also expressed as a decimal number whose absolute value in the range from −1 to +1 is 1 or less.

補正ビット生成手段50内の切換え手段53には、領域信号Arと、演算手段51からの補正値mCdと、減算手段52による補正値sCdとが入力される。切換え手段53は、水平方向走査期間ごとで値を初期化(固定補正値0とする)するとともに、領域信号Arに基づき、演算手段51からの補正値mCdと、減算手段52による補正値sCdとを切り換えて、入力画像信号Daに対して付加すべき階調値として補正値aCdを生成し、出力する。   The area signal Ar, the correction value mCd from the calculation means 51, and the correction value sCd from the subtraction means 52 are input to the switching means 53 in the correction bit generation means 50. The switching unit 53 initializes the value for each horizontal scanning period (sets the fixed correction value to 0), and based on the area signal Ar, the correction value mCd from the calculation unit 51 and the correction value sCd from the subtraction unit 52 To generate a correction value aCd as a gradation value to be added to the input image signal Da and output it.

詳細に説明すれば、切換え手段53は、水平方向走査期間の区切りにおいて初期化を示す場合は、初期化の値0を選択して補正値aCd(=0)として出力し、非ノイズ階調変化位置(Ar=2)においては、振幅制限階調変化量Xlmと補正制限係数rcから得られている演算手段51からの補正値mCdを選択し、補正値aCd(=mCd)として出力する。また、切換え手段53は、階調平坦領域又はノイズ領域となる画素(Ar=0,1)においては、減算手段52による補正値sCd(すなわち、直前画素の補正値pCdから階調変化量dK=Kslを減算した値)を選択し、補正値aCdとして出力する。そして、この補正値aCdは、ビット列変換手段55と補正値遅延手段54の両方に送られる。   More specifically, the switching means 53 selects the initialization value 0 and outputs it as the correction value aCd (= 0) when initialization is indicated at the horizontal scanning period interval, and the non-noise gradation change At the position (Ar = 2), the correction value mCd from the computing means 51 obtained from the amplitude limit gradation change amount Xlm and the correction limit coefficient rc is selected and output as the correction value aCd (= mCd). Further, the switching means 53, in a pixel (Ar = 0, 1) that is a flat gradation area or a noise area, the correction value sCd by the subtraction means 52 (that is, the gradation change amount dK = from the correction value pCd of the immediately preceding pixel). A value obtained by subtracting Ksl) is selected and output as a correction value aCd. The correction value aCd is sent to both the bit string conversion unit 55 and the correction value delay unit 54.

補正値遅延手段54は、切換え手段53からの補正値aCdを1画素分遅延して、遅延補正値pCdを出力する。補正値遅延手段54は、切換え手段53からの出力を遅延するので、遅延補正値pCdは、直前画素における補正値となる。   The correction value delay means 54 delays the correction value aCd from the switching means 53 by one pixel and outputs a delay correction value pCd. Since the correction value delay means 54 delays the output from the switching means 53, the delay correction value pCd becomes the correction value for the immediately preceding pixel.

以上までの演算手段51、減算手段52、補正値遅延手段54、切換え手段53の構成により、入力画像信号Daに対し付加すべき補正値aCdは、非ノイズ階調変化位置(Ar=2)で、振幅制限階調変化量Xlmと補正制限係数rcによる補正値mCdを、
mCd = (rc)×(Xlm)
から得て、階調平坦領域又はノイズ領域となる画素(Ar=0,1)においては、減算手段52による補正値sCd、すなわち、非ノイズ階調変化位置(Ar=2)から順に、直前画素における値から階調変化量dK=Kslを減算され、階調変化量dKのレベル差で順次0まで変化する値として得られる。乗算結果(rc)×(Xlm)による補正値、傾きデータ値Kslによる階調変化量dKはともに、−1から+1までの範囲の絶対値が1以下となる小数として表現されており、したがって、切換え手段53から得られる補正値aCdについても、1以下の小数となる精度を持った階調値となる。また、振幅制限階調変化量Xlmは傾きデータ値Kslを算出する際に用いられる階調変化の高さに相当するので、補正値aCdは、階調値の傾きの値から得られている。
Due to the configuration of the calculation means 51, subtraction means 52, correction value delay means 54, and switching means 53 described above, the correction value aCd to be added to the input image signal Da is the non-noise gradation change position (Ar = 2). , A correction value mCd based on the amplitude limit gradation change amount Xlm and the correction limit coefficient rc,
mCd = (rc) × (Xlm)
In the pixel (Ar = 0, 1) which is obtained from the above and becomes a gradation flat region or a noise region, the correction value sCd by the subtracting unit 52, that is, the non-noise gradation change position (Ar = 2) in order, The gradation change amount dK = Ksl is subtracted from the value at to obtain a value that sequentially changes to 0 with the level difference of the gradation change amount dK. Both the correction value based on the multiplication result (rc) × (Xlm) and the gradation change amount dK based on the inclination data value Ksl are expressed as decimal numbers whose absolute value in the range from −1 to +1 is 1 or less. The correction value aCd obtained from the switching means 53 is also a gradation value having an accuracy that is a decimal number of 1 or less. Further, since the amplitude limit gradation change amount Xlm corresponds to the height of the gradation change used when calculating the inclination data value Ksl, the correction value aCd is obtained from the inclination value of the gradation value.

すなわち、上記において、例えば、非ノイズ階調変化位置(Ar=2)を開始点として、それ以降の領域信号Ar=0,1の画素を順にカウントした値をカウント値Nとすると、非ノイズ階調変化位置(Ar=2)におけるカウント値N=0(補正値mCd)からのそれぞれの画素における補正値aCdの階調変化量は、カウント値Nと傾きデータ値Ksl(階調変化量dK=Ksl)により、N×Kslで表すことができ、補正値は、次式(5)で表すことができる。
aCd = mCd − N×Ksl …(5)
このように、補正値aCdは、補正値mCdの位置から順に、傾きデータ値Kslによる階調変化量dKのレベル差の変化を持つ値となる。
That is, in the above, for example, assuming that the value obtained by sequentially counting the pixels of the area signal Ar = 0, 1 after that is the non-noise gradation change position (Ar = 2), the non-noise level The gradation change amount of the correction value aCd in each pixel from the count value N = 0 (correction value mCd) at the tone change position (Ar = 2) is the count value N and the gradient data value Ksl (gradation change amount dK = Ksl) can be expressed by N × Ksl, and the correction value can be expressed by the following equation (5).
aCd = mCd−N × Ksl (5)
Thus, the correction value aCd is a value having a change in the level difference of the gradation change amount dK due to the inclination data value Ksl in order from the position of the correction value mCd.

領域信号Arに基づき切換え手段53で選択する補正値aCdを切り換えることによって、非ノイズ階調変化位置(Ar=2)以降の階調平坦領域(Ar=0)の画素とノイズ領域(Ar=1)の画素について、カウント値Nを求めて、平坦・ノイズ領域幅とすることができ、傾きデータ値Kslによる階調変化量dKのレベル差の変化を持つ補正値aCdが得られるので、ノイズ成分による影響なく、順次変化する補正値aCdが得られる。   By switching the correction value aCd selected by the switching means 53 based on the area signal Ar, the pixel and the noise area (Ar = 1) in the gradation flat area (Ar = 0) after the non-noise gradation change position (Ar = 2). ), The count value N can be obtained to obtain a flat / noise area width, and a correction value aCd having a change in level difference of the gradation change amount dK due to the inclination data value Ksl can be obtained. The correction value aCd that changes sequentially can be obtained without being affected by the above.

また、領域信号Ar=2における補正値mCdを、(rc)×(Xlm)から得ているので、+1と−1の間にある水平方向における連続的に緩やかに階調値が変化する画素の領域においては、階調値の変化位置から順に、階調変化量dKのレベル差の変化を持つ補正値aCdとなるが、一方で、階調値の変化がエッジによると判断される場合は、補正制限係数rc=0で補正値mCd=0となり、それ以降の画素でも補正値は0となるので、階調値が付加されることはない。よって、画像の鮮鋭度(輪郭情報)を保つような補正値を得ることができる。   Further, since the correction value mCd in the region signal Ar = 2 is obtained from (rc) × (Xlm), the pixel value of the pixel whose gradation value changes gradually and gradually in the horizontal direction between +1 and −1. In the region, the correction value aCd has a change in the level difference of the gradation change amount dK in order from the change position of the gradation value. On the other hand, when it is determined that the change in the gradation value is due to an edge, When the correction limiting coefficient rc = 0, the correction value mCd = 0, and the correction value is 0 even in the subsequent pixels. Therefore, no gradation value is added. Therefore, it is possible to obtain a correction value that maintains the sharpness (contour information) of the image.

補正ビット生成手段50内のビット列変換手段55には、切換え手段53からの補正値aCdが入力される。ビット列変換手段55は、補正値aCdを所定のビット数となるビット列の値へ変換し、付加する値を示す付加ビットEと値の符号ビットを含めて補正ビットデータCdとして求め、補正ビット生成手段50から画素値演算手段92へと出力する。補正値aCdの符号を除く絶対値は1以下の小数を含む値として得ているので、補正ビットデータCdにおける補正の値(付加ビットE)は、入力画像信号Daの階調値のビット列に対し、小数部を示す。   The correction value aCd from the switching unit 53 is input to the bit string conversion unit 55 in the correction bit generation unit 50. The bit string converting means 55 converts the correction value aCd into a bit string value having a predetermined number of bits, obtains the additional bit E indicating the value to be added and the sign bit of the value as corrected bit data Cd, and generates a corrected bit generating means 50 to the pixel value calculation means 92. Since the absolute value excluding the sign of the correction value aCd is obtained as a value including a decimal number of 1 or less, the correction value (additional bit E) in the correction bit data Cd is the bit string of the gradation value of the input image signal Da. Indicates the decimal part.

ここで、補正ビットデータCdにおける付加ビットEを4ビットで生成し、入力画像信号Daの最下位側に付加する場合は、例えば、符号を除く補正値aCdの絶対値を4ビットのビット列の値へ変換する。但し、このとき、−1と+1の整数部1となる値については、ビット列で示すと16となるため、この値は4ビットとするよう値を制限し、15としてビット列における値を求め、ビット列変換手段55は、補正値aCdを所定のビット数となるビット列の値へ変換するとともに、値の制限処理も行う。そして、補正値aCdの符号を示す符号ビット(1ビット以上のビット数を持つ)とともに、変換された4ビット付加ビットEを補正ビットデータCdとして生成し、出力する。   Here, when the additional bit E in the correction bit data Cd is generated with 4 bits and added to the lowest order side of the input image signal Da, for example, the absolute value of the correction value aCd excluding the sign is the value of a 4-bit bit string. Convert to However, at this time, the value that becomes the integer part 1 of −1 and +1 is 16 in the bit string. Therefore, this value is limited to 4 bits, the value in the bit string is obtained as 15, and the bit string is obtained. The conversion means 55 converts the correction value aCd into a bit string value having a predetermined number of bits, and also performs a value limiting process. Then, together with a sign bit (having a bit number of 1 bit or more) indicating the sign of the correction value aCd, the converted 4-bit additional bit E is generated as correction bit data Cd and output.

なお、図13の補正ビット生成手段50は、ビット列変換手段55を設けて、補正値aCdを符号ビットと4ビットの付加ビットEのビット列による補正ビットデータCdとして求めるよう説明したが、ハードウェアでは補正値aCdなどの値も通常は所定のビット数の値として得ているので、そのまま補正ビットデータCdとすることもでき、また、ソフトウェアの場合のようにビット列として扱う必要がない場合は、このビット列変換手段55を省略することができる。   The correction bit generation means 50 of FIG. 13 has been described to provide the bit string conversion means 55 to obtain the correction value aCd as correction bit data Cd by the bit string of the sign bit and the 4-bit additional bit E. Since the value such as the correction value aCd is usually obtained as a value of a predetermined number of bits, it can also be used as the correction bit data Cd as it is. The bit string conversion means 55 can be omitted.

《1−2−8》遅延補償手段91.
遅延補償手段91に入力画像信号Daが入力されると、遅延補償手段91は、補正ビット生成手段50から出力される補正ビットデータCdが得られるまでの遅延と入力画像信号Daの画素位置を合わせるように入力画像信号Daの遅延補償を行い、遅延補償された画像信号Ddを出力する。
<< 1-2-8 >> Delay compensation means 91.
When the input image signal Da is input to the delay compensation unit 91, the delay compensation unit 91 matches the delay until the correction bit data Cd output from the correction bit generation unit 50 is obtained and the pixel position of the input image signal Da. Thus, the delay compensation of the input image signal Da is performed, and the delay-compensated image signal Dd is output.

《1−2−9》画素値演算手段92.
画素値演算手段92には、遅延補償手段91からの遅延補償された画像信号Ddと、補正ビット生成手段50からの補正ビットデータCdが入力される。画素値演算手段92は、遅延補償された画像信号Ddに対し、補正ビット生成手段50からの補正ビットデータCdを整数部の位置を合わせて減算することで、新たな出力画像信号Dbを算出し、出力する。出力画像信号Dbの階調値に対して、小数部を含む補正ビットデータCdが演算により付加されるので、出力画像信号Dbのビット数は、画像信号Ddのビット数より大きく、すなわち、拡張され、このビット数を拡張した出力画像信号Dbが、階調変換手段1の出力となる。
<< 1-2-9 >> Pixel value calculation means 92.
The pixel value calculation unit 92 receives the delay compensated image signal Dd from the delay compensation unit 91 and the correction bit data Cd from the correction bit generation unit 50. The pixel value calculation unit 92 calculates a new output image signal Db by subtracting the correction bit data Cd from the correction bit generation unit 50 by matching the position of the integer part with respect to the delay-compensated image signal Dd. ,Output. Since correction bit data Cd including a decimal part is added to the gradation value of the output image signal Db by calculation, the number of bits of the output image signal Db is larger than the number of bits of the image signal Dd, that is, expanded. The output image signal Db in which the number of bits is expanded becomes the output of the gradation converting means 1.

なお、画素値演算手段92は、画像信号Ddに対して補正ビットデータCdを減算する演算処理において、補正ビットデータCdの符号に応じて減算又は加算処理する(すなわち、Cd>0の場合は、絶対値|Cd|を減算、Cd<0の場合は、|Cd|を加算する)。また、画素値演算手段92は、演算後の値が負の値となる場合は、出力画像信号Dbを‘0’(Db=0)とし、出力画像信号Dbの設定したビット数(最大値)を超える値となる場合は、値を最大値として、出力画像信号Dbの値を制限する。   The pixel value calculation unit 92 performs subtraction or addition processing according to the sign of the correction bit data Cd in the calculation processing for subtracting the correction bit data Cd from the image signal Dd (that is, when Cd> 0, The absolute value | Cd | is subtracted, and if Cd <0, | Cd | is added). Further, the pixel value calculation unit 92 sets the output image signal Db to “0” (Db = 0) when the calculated value is a negative value, and sets the number of bits (maximum value) set in the output image signal Db. If the value exceeds the value, the value is set to the maximum value, and the value of the output image signal Db is limited.

上述したように、補正ビットデータCdにおける付加する値を示す付加ビットEは、遅延補償された画像信号Dd(又は入力画像信号Da)の階調値に対して、小数部を含むので、画素値演算手段92において加算又は減算による演算処理された後の出力画像信号Dbは、画像信号Ddに対し小数部を有した精度の画像信号となる。すなわち、出力画像信号Dbのビット数は、画像信号Ddに対して多くなるので、表現できる階調数が増えるだけでなく、小数部を含む補正ビットCdによる小数部のビット数を有するので、階調値の分解能が増加し、より滑らかな階調値の変化を表現できるようになる。また、階調値の変化が画像のエッジによる場合は、補正ビットデータCdは0として得られているため、その結果、画像のエッジ部に隣接する画素においては階調が付加されないので、出力画像信号Dbの鮮鋭度(輪郭情報)を保ちながら、画像のエッジ以外の緩やかに階調値が変化する画素の領域において、画像の滑らかさを増すことができる。   As described above, the additional bit E indicating the value to be added in the correction bit data Cd includes a fractional part with respect to the gradation value of the delay-compensated image signal Dd (or input image signal Da). The output image signal Db after being subjected to arithmetic processing by addition or subtraction in the arithmetic means 92 becomes an image signal with a precision having a decimal part with respect to the image signal Dd. That is, since the number of bits of the output image signal Db is larger than that of the image signal Dd, not only the number of gradations that can be expressed is increased, but also the number of bits in the decimal part by the correction bit Cd including the decimal part is included. The resolution of the tone value is increased, and a smoother gradation value change can be expressed. When the change in the gradation value is caused by the edge of the image, the correction bit data Cd is obtained as 0. As a result, no gradation is added to the pixel adjacent to the edge portion of the image. While maintaining the sharpness (contour information) of the signal Db, it is possible to increase the smoothness of the image in the pixel region where the gradation value gradually changes other than the edge of the image.

さらに、補正ビットデータCdは、画素領域判定手段20からの領域信号Arを基準として、ノイズ成分による影響なく、非ノイズ階調変化位置(Ar=2)を開始点として順次傾きデータ値Kslによる階調変化量dKで変化する補正値aCdとして得られており、画素値演算手段92において、画像信号Dd(又は入力画像信号Da)の階調値に対して、補正ビットデータCdによる値が加算又は減算処理される。このため、線形補間処理による階調値の変換処理に比べ、ノイズ等の微少な階調値の変化による画像のディテールや鮮鋭度を残しながら、緩やかに階調値が変化する画素の領域の滑らかさを増すことができ、画像のぼやけを低減することができる。   Further, the correction bit data Cd is based on the region signal Ar from the pixel region determination unit 20 and is not affected by the noise component, and the gradation data value Ksl is sequentially generated from the non-noise gradation change position (Ar = 2) as a starting point. It is obtained as a correction value aCd that changes with the tone change amount dK. In the pixel value calculation unit 92, the value of the correction bit data Cd is added to the gradation value of the image signal Dd (or the input image signal Da). Subtracted. For this reason, compared to tone value conversion processing by linear interpolation processing, the pixel area where the tone value changes gradually while keeping the image detail and sharpness due to slight changes in tone value such as noise remains smooth. Thus, the image blur can be reduced.

図14は、入力画像信号Da(又は遅延補償手段91からの遅延補償された画像信号Dd)と、補正ビット生成手段50からの補正ビットデータCd、及び画素値演算手段92から出力される出力画像信号Dbの関係を示す図である。ここでは、入力画像信号Da(又は画像信号Dd)がm=8ビット、補正ビットデータCdが符号ビットと付加ビットE4ビット、出力画像信号Dbがn=12ビットの場合として説明する。   FIG. 14 shows the input image signal Da (or the delay compensated image signal Dd from the delay compensation unit 91), the correction bit data Cd from the correction bit generation unit 50, and the output image output from the pixel value calculation unit 92. It is a figure which shows the relationship of the signal Db. Here, a case will be described where the input image signal Da (or image signal Dd) is m = 8 bits, the correction bit data Cd is a sign bit and an additional bit E4 bits, and the output image signal Db is n = 12 bits.

図14において、補正ビットデータCdは、入力画像信号Daに対して小数部を示す付加ビットEとして求めているので、画素値演算手段92は、整数部の位置を合わせ、画像信号Ddの最下位ビットより下位の位置に補正ビットデータCdの付加ビットE(4ビット)を合わせた値を、符号に応じて減算又は加算することで出力画像信号Dbを算出する。すなわち、画素値演算手段92は、画像信号Ddの最下位側に付加ビットEの値を結合するよう付加することに相当する処理を行い、12ビットの出力画像信号Dbが生成する。出力画像信号Dbは、画像信号Ddに対してビット列が下位ビット側に拡張されている、すなわち、元の入力画像信号Daの階調値に対して小数部を含むので、出力画像信号Dbの1階調の分解能は、画像信号Ddより高く(図14においては16倍に)なり、量子化ノイズ又は擬似輪郭がより低減され、精度のよい階調値を表現できるようになる。   In FIG. 14, since the correction bit data Cd is obtained as an additional bit E indicating a decimal part with respect to the input image signal Da, the pixel value calculation means 92 aligns the position of the integer part and the lowest order of the image signal Dd. The output image signal Db is calculated by subtracting or adding a value obtained by adding the additional bit E (4 bits) of the correction bit data Cd to a position lower than the bit according to the sign. That is, the pixel value calculation unit 92 performs a process corresponding to adding the value of the additional bit E to the least significant side of the image signal Dd, and generates a 12-bit output image signal Db. The output image signal Db has a bit string extended to the lower bit side with respect to the image signal Dd, that is, includes a fractional part with respect to the gradation value of the original input image signal Da. The resolution of gradation is higher than that of the image signal Dd (16 times in FIG. 14), quantization noise or pseudo contour is further reduced, and an accurate gradation value can be expressed.

《1−3》動作.
次に、実施の形態1による画像処理装置において、入力画像信号Daの画素間の階調値の差から階調変化量dfを求め、この階調変化量に基づき、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、領域判定結果と階調変化量dfから階調変化における平坦・ノイズ領域幅と傾きを得て補正ビットデータを生成し、入力画像信号Daに補正ビットデータを付加することで階調数が拡張された出力画像信号Dbを出力する動作をフローチャートを参照して説明する。
<< 1-3 >> Operation.
Next, in the image processing apparatus according to the first embodiment, the gradation change amount df is obtained from the difference in gradation value between the pixels of the input image signal Da, and each pixel is flattened based on the gradation change amount. Performs determination to classify the pixel into one of a pixel belonging to a region, a pixel belonging to a noise region, or a pixel at a non-noise gradation change position, and the flatness / noise region width and inclination in gradation change from the region determination result and the gradation change amount df The operation of generating the corrected bit data, and adding the corrected bit data to the input image signal Da to output the output image signal Db in which the number of gradations is expanded will be described with reference to the flowchart.

図15は、実施の形態1による画像処理装置の動作(その1)を示すフローチャートであり、図16は、実施の形態1による画像処理装置の動作(その2)を示すフローチャートである。実施の形態1の画像処理装置においては、入力画像信号Daに対して補正ビットデータCdを付加することでビット数を拡張して階調変換を行い、元の入力画像信号Daの階調値に対して小数部が追加された出力画像信号Dbとして出力する。また、図17は、図1に示される画素領域判定手段20の動作を示すフローチャートである。なお、階調変換手段1内の処理においては水平方向同期信号ごとで初期化し処理するが、図15〜図17においては水平方向同期信号ごとで初期化される動作の説明は省略し、各走査線(ライン)内の画素ごとの処理として示す。   FIG. 15 is a flowchart showing the operation (part 1) of the image processing apparatus according to the first embodiment, and FIG. 16 is a flowchart showing the operation (part 2) of the image processing apparatus according to the first embodiment. In the image processing apparatus according to the first embodiment, the correction bit data Cd is added to the input image signal Da to expand the number of bits and perform gradation conversion to obtain the gradation value of the original input image signal Da. On the other hand, an output image signal Db with a decimal part added is output. FIG. 17 is a flowchart showing the operation of the pixel area determination means 20 shown in FIG. In the processing in the gradation converting means 1, initialization is performed for each horizontal synchronization signal. However, in FIGS. 15 to 17, the description of the operation initialized for each horizontal synchronization signal is omitted, and each scan is performed. This is shown as processing for each pixel in the line.

図18(a)〜(k)は、図3(a)に示されるノイズ成分を含む入力画像信号Daの一部について、階調変換手段1における動作を示しており、図18(a)は入力画像信号Daの水平方向の画素位置x、同図(b)は入力画像信号Da、同図(c)及び(d)は階調変化量検出手段10において求められる隣接する画素間の階調値の差分による階調変化量dfと、階調変化量dfの振幅制限階調変化量Xlm、同図(e)は画素領域判定手段20で得られる領域信号Ar、同図(f)は平坦・ノイズ領域幅判定手段30内の平坦・ノイズ領域幅カウント手段31からの出力である平坦・ノイズ領域幅カウント値Cnt、同図(g)は平坦・ノイズ領域幅判定手段30内の巡回型フィルタ処理手段32から出力される平坦・ノイズ領域幅を予測した平坦・ノイズ領域幅データ予測値dst、同図(h)は傾き検出手段40から出力される傾きデータ値Ksl、同図(i)は補正ビット生成手段50において求められる補正値aCd、同図(j)は画素値演算手段92において補正ビットデータCdを画像信号Dd(すなわち、入力画像信号Da)に付加した値を、画像信号Ddの最小階調値を1として表した場合の階調値、同図(k)は画素値演算手段92の出力である出力画像信号Dbを示し、補正ビットデータCdにおける付加ビットEを4ビットとした場合で示している。図18(a)〜(k)においては、左から順に画素データが入力され、横軸は水平走査方向の画素位置を示す。図18(a)〜(k)においては、画素位置x=8から順に階調値La=2の画素が8画素、階調値La=3の画素が8画素、階調値La=4の画素が8画素、…と、並んでおり、入力画像信号Daがm=8ビットである場合、この8ビットの入力画像信号Daに対し、左の画素位置x=8から右に1階調ずつ連続的に明るくなる画像であり、階調変化の途中画素位置x=19及びx=34,35でノイズ成分となる高周波の変化を含んでいる。   FIGS. 18A to 18K show the operation of the gradation converting means 1 for a part of the input image signal Da including the noise component shown in FIG. 3A, and FIG. The pixel position x in the horizontal direction of the input image signal Da, (b) in the figure is the input image signal Da, and (c) and (d) in FIG. The gradation change amount df due to the difference between the values and the amplitude-limited gradation change amount Xlm of the gradation change amount df, FIG. 9E shows the region signal Ar obtained by the pixel region determination means 20, and FIG. Flatness in the noise region width determination means 30 Flatness that is an output from the noise region width count means 31. Noise area width count value Cnt, FIG. The flat / noise area width output from the processing means 32 The measured flat / noise area width data predicted value dst, FIG. 11H shows the slope data value Ksl output from the slope detection means 40, and FIG. 11I shows the correction value aCd obtained by the correction bit generation means 50. FIG. 6 (j) shows the gradation when the value obtained by adding the correction bit data Cd to the image signal Dd (that is, the input image signal Da) in the pixel value calculation means 92 is represented by 1 as the minimum gradation value of the image signal Dd. (K) in the figure shows the output image signal Db which is the output of the pixel value calculation means 92, and shows the case where the additional bit E in the correction bit data Cd is 4 bits. In FIGS. 18A to 18K, pixel data is input in order from the left, and the horizontal axis indicates the pixel position in the horizontal scanning direction. 18A to 18K, in order from the pixel position x = 8, there are 8 pixels with gradation value La = 2, 8 pixels with gradation value La = 3, and gradation value La = 4. When the input image signal Da is m = 8 bits, 8 gradations are arranged side by side with respect to the 8-bit input image signal Da, one gradation from the left pixel position x = 8 to the right. It is an image that becomes brighter continuously, and includes high-frequency changes that become noise components at pixel positions x = 19 and x = 34, 35 during the gradation change.

また、図19(a)〜(k)は、ノイズ成分を含み、入力画像信号Daのレベルが1階調ずつ緩やかに減少している信号の一例を示しており、図19(a)〜(k)における信号はそれぞれ、図18(a)〜(k)における信号と同様の信号を示している。図19(a)〜(k)においては、画素位置x=8においては階調値La=1〜8の変化となっており、それ以降の画素位置xにおいては順に階調値La=8の画素が8画素、階調値La=7の画素が8画素、階調値La=6の画素が8画素、…と、並んでおり、8ビットの入力画像信号Daに対し、画素位置x=8における階調差7の変化は画像の輪郭(エッジ)により、それ以降は1階調ずつ連続的に暗くなる画像であり、階調変化の途中画素位置x=19及びx=35でノイズ成分となる高周波の変化を含んでいる。   FIGS. 19A to 19K show examples of signals that include noise components and in which the level of the input image signal Da gradually decreases by one gradation, and FIGS. The signals in k) are the same as the signals in FIGS. 18 (a) to 18 (k), respectively. In FIGS. 19A to 19K, the gradation value La = 1 to 8 changes at the pixel position x = 8, and the gradation value La = 8 is sequentially changed at the subsequent pixel position x. There are 8 pixels, 8 pixels with a gradation value La = 7, 8 pixels with a gradation value La = 6, and so on. The pixel position x = 8 with respect to the 8-bit input image signal Da. The change of the gradation difference 7 at 8 is an image that becomes darker continuously by one gradation after that due to the contour (edge) of the image, and the noise component at the pixel positions x = 19 and x = 35 during the gradation change. It includes a high frequency change.

以下に、画像処理装置の動作(実施の形態1においては、階調変換手段1の動作でもある。)を図15〜図17、図18(a)〜(k)、及び図19(a)〜(k)を用いて説明する。まず、図15を用いて、階調変化量dfを求め、階調変化における平坦・ノイズ領域幅と傾きを求めるまでを説明する。   In the following, the operation of the image processing apparatus (also the operation of the gradation converting means 1 in the first embodiment) is shown in FIGS. 15 to 17, FIGS. 18 (a) to (k), and FIG. 19 (a). It demonstrates using-(k). First, with reference to FIG. 15, a description will be given of obtaining the gradation change amount df and obtaining the flat / noise area width and inclination in the gradation change.

階調変換手段1に図18(b)及び図19(b)に示されるようなmビットの入力画像信号Da(階調値La(x)とする)が入力される(ステップS101)と、この入力画像信号Daは、階調変化量検出手段10に入力される。すると、階調変化量検出手段10内の階調変化量算出手段11は、水平方向に隣接する画素間の階調値の差分(すなわち、直前画素位置x−1の画素の階調値との差分)を算出して、階調変化量
df=La(x)−La(x−1)
を求める(ステップS102)。例えば、図18(c)においては、画素位置x=8における階調変化量df=La(8)−La(7)を算出し、df=+1となる。また、例えば、図19(c)においては、画素位置x=8における階調変化量df=La(8)−La(7)を算出し、df=+7となり、画素位置x=16においては階調変化量df=−1となる。
When an m-bit input image signal Da (referred to as a gradation value La (x)) as shown in FIGS. 18B and 19B is input to the gradation converting means 1 (step S101), This input image signal Da is input to the gradation change amount detection means 10. Then, the gradation change amount calculation means 11 in the gradation change amount detection means 10 determines the difference between the gradation values of pixels adjacent in the horizontal direction (that is, the gradation value of the pixel at the immediately preceding pixel position x−1). Difference), and the gradation change amount df = La (x) −La (x−1)
Is obtained (step S102). For example, in FIG. 18C, the gradation change amount df = La (8) −La (7) at the pixel position x = 8 is calculated, and df = + 1. Further, for example, in FIG. 19C, the gradation change amount df = La (8) −La (7) at the pixel position x = 8 is calculated to be df = + 7, and at the pixel position x = 16, the level is changed. The tone change amount df = −1.

階調変化量算出手段11で得られた階調変化量dfは、階調変化量検出手段10内の階調変化量制限手段12において、その値を所定の範囲に制限され、振幅制限階調変化量Xlmを求める(ステップS103)。この振幅制限階調変化量Xlmは、階調変化量dfが所定のレベルの範囲、すなわち、−1から+1まで(図15において−TH〜+THで示す)の範囲内となるように値が制限されており、これは入力画像信号Daの1階調の変化を検出するための制限の範囲となる。すなわち、振幅制限階調変化量Xlmの値は、−1,0,+1の3値で示される。また、この振幅制限階調変化量Xlmは、階調値の傾きを求める際の階調変化の高さとして用いられる。図18(d)及び図19(d)の振幅制限階調変化量Xlmは、階調値が変化する位置又はノイズ成分による変化がある画素において、振幅制限階調変化量Xlmが+1又は−1に値を制限され、変化がない階調平坦領域の画素においては、振幅制限階調変化量Xlm=0となる。   The gradation change amount df obtained by the gradation change amount calculation means 11 is limited to a predetermined range by the gradation change amount restriction means 12 in the gradation change amount detection means 10, and the amplitude restriction gradation A change amount Xlm is obtained (step S103). The amplitude limit gradation change amount Xlm is limited so that the gradation change amount df is within a predetermined level, that is, within a range from −1 to +1 (indicated by −TH to + TH in FIG. 15). This is a limit range for detecting a change in one gradation of the input image signal Da. That is, the value of the amplitude limit gradation change amount Xlm is represented by three values of −1, 0, and +1. The amplitude-limited gradation change amount Xlm is used as the height of the gradation change when obtaining the gradient of the gradation value. The amplitude-limited gradation change amount Xlm in FIGS. 18D and 19D is +1 or −1 in the pixel where there is a change due to a position where the gradation value changes or a noise component. For a pixel in a flat gradation region that is limited in value and has no change, the amplitude limited gradation change amount Xlm = 0.

また、階調変化量dfはエッジ変化検出手段60へも出力される。エッジ変化検出手段60は、階調変化量dfの絶対値の大きさから画像のエッジとなる変化を検出し、補正制限係数rcを設定する(ステップS104)。ここで、求める補正制限係数rcは、エッジ部分においては階調値が付加されないように補正値を制限することができる値として求められ、例えば、階調値の補正値に対する乗算値とし、0から1までの範囲内の値で設定される。   The gradation change amount df is also output to the edge change detection means 60. The edge change detection means 60 detects a change that becomes an edge of the image from the magnitude of the absolute value of the gradation change amount df, and sets a correction limiting coefficient rc (step S104). Here, the correction limitation coefficient rc to be obtained is obtained as a value that can restrict the correction value so that the gradation value is not added at the edge portion. It is set with a value in the range up to 1.

階調変化量dfは、隣接する画素間の階調値の差分から得られるので、画像のエッジ近傍の画素においては、エッジ成分による階調値の差も含むが、階調数を拡張する画素の領域は、滑らかに階調値が変化し、1階調の差で変化する領域としているので、エッジ部分においては補正値が付加されないようにする必要がある。よって、階調変化量dfの大きさから、エッジに隣接する画素で階調値の変化の差分がエッジによるものか否かを判定し、その結果から、補正制限係数rcを設定する。一例として、階調変化量dfの絶対値の大きさから、図9に示したような特性で変換することで補正制限係数rcをrc=0〜1として求めると、階調変化量dfがエッジによる変化であると検出された画素においては、補正制限係数rcの値がrc=0になり、その値により、補正の値が制限される。   Since the gradation change amount df is obtained from the difference in gradation value between adjacent pixels, the pixel near the edge of the image includes the difference in gradation value due to the edge component, but the pixel that expands the number of gradations In this area, the gradation value changes smoothly and is an area that changes with a difference of one gradation. Therefore, it is necessary to prevent the correction value from being added to the edge portion. Therefore, it is determined from the magnitude of the gradation change amount df whether or not the difference in gradation value between pixels adjacent to the edge is due to the edge, and the correction limiting coefficient rc is set based on the result. As an example, when the correction limiting coefficient rc is determined as rc = 0 to 1 by converting from the magnitude of the absolute value of the gradation change amount df with the characteristics shown in FIG. 9, the gradation change amount df becomes an edge. In the pixel detected as a change due to the above, the value of the correction limiting coefficient rc is rc = 0, and the correction value is limited by the value.

図18(a)〜(k)においてはいずれの位置でも階調変化量df(同図(a))はその絶対値|df|≦1であるので、補正制限係数rcは常に補正制限係数rc=1となる(図示せず)。図19(a)〜(k)の場合は、画素位置x=8における階調変化量df(同図(a))はdf=+7であるので、この位置における補正制限係数rcはrc=0となるが、それ以外の画素位置においては、補正制限係数rcはrc=1となる。   In FIGS. 18A to 18K, the gradation change amount df (FIG. 18A) has an absolute value | df | ≦ 1 at any position, so that the correction limiting coefficient rc is always the correction limiting coefficient rc. = 1 (not shown). In the case of FIGS. 19A to 19K, the gradation change amount df (FIG. 19A) at the pixel position x = 8 is df = + 7, and the correction limiting coefficient rc at this position is rc = 0. However, at other pixel positions, the correction limiting coefficient rc is rc = 1.

次に、画素領域判定手段20は、階調変化量算出手段11からの階調変化量dfの値と極性とを用いた判定により、画素位置xの注目画素における階調値の変化から、各画素が、階調平坦領域、ノイズ領域、非ノイズ階調変化位置の3領域のいずれの領域に分類されるかを判定し、画素の領域判定結果を示す領域信号Arを生成する(ステップS105)。この階調変化量dfによる画素領域の判定の詳細な動作は、図17を用いて後述するが、ノイズ成分は数画素の範囲の領域で増加、減少となる高周波の変化で、その変化の階調差は比較的小さい値Nd(例えば、Nd=2など)以下となるため、ノイズ成分による画素における変化は、画素位置xの注目画素における階調変化量dfの値と、注目画素の直前の画素位置x−1の隣接画素、注目画素の直後の画素位置x+1の隣接画素のそれぞれにおける階調変化量dfの極性とにより判定でき、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行う(図18(e)、図19(e))。   Next, the pixel region determination unit 20 determines each gradation value from the change in the gradation value in the target pixel at the pixel position x by performing determination using the value and polarity of the gradation change amount df from the gradation change amount calculation unit 11. It is determined whether the pixel is classified into any of the three areas of the flat gradation area, the noise area, and the non-noise gradation change position, and an area signal Ar indicating the pixel area determination result is generated (step S105). . The detailed operation of determining the pixel area based on the gradation change amount df will be described later with reference to FIG. 17, but the noise component is a high-frequency change that increases and decreases in a range of several pixels. Since the tone difference is not more than a relatively small value Nd (for example, Nd = 2), the change in the pixel due to the noise component is the value of the gradation change amount df in the target pixel at the pixel position x and the value immediately before the target pixel. It can be determined by the polarity of the gradation change amount df in each of the adjacent pixel at the pixel position x-1 and the adjacent pixel at the pixel position x + 1 immediately after the target pixel. A determination is made to classify the pixel into either a pixel to which it belongs or a pixel at a non-noise gradation change position (FIGS. 18E and 19E).

平坦・ノイズ領域幅判定手段30内の平坦・ノイズ領域幅カウント手段31は、水平方向走査期間ごとで、領域信号Arを基準として、非ノイズ階調変化位置(Ar=2)の直前画素までの平坦・ノイズ領域幅の画素数を求め、平坦・ノイズ領域幅カウント値Cntとする(ステップS106)。すなわち、水平方向走査期間ごとで初期化するとともに、非ノイズ階調変化位置(Ar=2)の間の階調平坦領域(Ar=0)及びノイズ領域(Ar=1)となる画素の幅(画素数)をカウントし、非ノイズ階調変化位置(Ar=2)の直前画素までの平坦・ノイズ領域幅を平坦・ノイズ領域幅カウント値Cntとして得る。   The flat / noise area width counting means 31 in the flat / noise area width determining means 30 is provided for each pixel in the horizontal scanning period up to the pixel immediately before the non-noise gradation change position (Ar = 2) with reference to the area signal Ar. The number of pixels of the flat / noise area width is obtained and set as the flat / noise area width count value Cnt (step S106). That is, initialization is performed for each horizontal scanning period, and the widths of pixels that become gradation flat regions (Ar = 0) and noise regions (Ar = 1) between the non-noise gradation change positions (Ar = 2) ( The number of pixels) is counted, and the flat / noise area width up to the pixel immediately before the non-noise gradation change position (Ar = 2) is obtained as the flat / noise area width count value Cnt.

図18(f)において、非ノイズ階調変化位置(Ar=2)となる画素位置x=8,16,24,32で画素のカウントが0にリセットされ、その次の画素位置(x+1)で、平坦・ノイズ領域幅カウント値Cntが0となる。非ノイズ階調変化位置(Ar=2)となる画素位置xにおいては、直前画素位置x−1までにカウントされた画素数である平坦・ノイズ領域幅、すなわち、階調平坦領域(Ar=0)及びノイズ領域(Ar=1)となる画素の連続数を示す平坦・ノイズ領域幅カウント値Cntが得られる。図19(f)においても同様である。   In FIG. 18F, the pixel count is reset to 0 at the pixel position x = 8, 16, 24, 32 which is the non-noise gradation change position (Ar = 2), and at the next pixel position (x + 1). The flat / noise area width count value Cnt becomes zero. At the pixel position x that is the non-noise gradation change position (Ar = 2), the flat / noise area width that is the number of pixels counted up to the previous pixel position x−1, that is, the gradation flat area (Ar = 0). ) And a flat / noise area width count value Cnt indicating the continuous number of pixels to be a noise area (Ar = 1). The same applies to FIG.

次に、平坦・ノイズ領域幅判定手段30と傾き検出手段40において、平坦・ノイズ領域幅を予測した値である平坦・ノイズ領域幅データ予測値dstを求め、階調値の傾きを検出する動作は、領域信号Ar=2の非ノイズ階調変化位置において行われる(ステップS107〜S110)。   Next, in the flat / noise area width determining means 30 and the inclination detecting means 40, an operation for obtaining a flat / noise area width data predicted value dst, which is a predicted value of the flat / noise area width, and detecting the gradient of the gradation value. Is performed at the non-noise gradation change position of the area signal Ar = 2 (steps S107 to S110).

領域信号Ar=2となる非ノイズ階調変化位置において(ステップS107)、巡回型フィルタ処理手段32は、平坦・ノイズ領域幅カウント値Cntに対して、非ノイズ階調変化位置(Ar=2)ごとで巡回型のフィルタ処理を施し、このフィルタ処理の結果を非ノイズ階調変化位置(Ar=2)以降における平坦・ノイズ領域幅を予測した値である平坦・ノイズ領域幅データ予測値dstとする(ステップS108)。巡回型のフィルタ処理の演算は低域通過フィルタを構成し、フィルタ出力である遅延平坦・ノイズ領域幅データ予測値pdstと、平坦・ノイズ領域幅カウント値Cntに対し、図15においては、例えば、(pdst+Cnt)/2(上記式(1)の係数k=1/2、k=1/2)による巡回型フィルタ処理を施す。一方、階調平坦領域(Ar=0)とノイズ領域(Ar=1)においては、その前の非ノイズ階調変化位置(Ar=2)における値が保持されて出力される(ステップS109)。 At the non-noise gradation change position where the area signal Ar = 2 (step S107), the recursive filter processing means 32 determines the non-noise gradation change position (Ar = 2) with respect to the flat / noise area width count value Cnt. A cyclic filter process is performed every time, and the result of the filter process is a flat / noise area width data predicted value dst that is a value obtained by predicting the flat / noise area width after the non-noise gradation change position (Ar = 2). (Step S108). The calculation of the recursive filter processing constitutes a low-pass filter, and for the delay flat / noise region width data predicted value pdst and the flat / noise region width count value Cnt that are filter outputs, in FIG. Cyclic filter processing is performed using (pdst + Cnt) / 2 (coefficient k 1 = 1/2, k 2 = 1/2 in the above equation (1)). On the other hand, in the gradation flat region (Ar = 0) and noise region (Ar = 1), the value at the previous non-noise gradation change position (Ar = 2) is held and output (step S109).

平坦・ノイズ領域幅データ予測値dstは、水平方向に階調値が変化する際の平坦・ノイズ領域幅の低域周波数成分である。したがって、水平方向における連続的に緩やかに階調値が変化する画素の領域において、その階調値の変化する際の階調平坦領域の幅を、急峻な変化を避けて得ることができる。このことにより、非ノイズ階調変化位置(Ar=2)以降における平坦・ノイズ領域幅を予測した値として用いることができる。また、非ノイズ階調変化位置(Ar=2)を基準に画素をカウントした平坦・ノイズ領域幅カウント値Cntから平坦・ノイズ領域幅データ予測値dstを求めるので、領域信号Ar=0となる階調平坦領域の画素とともに、領域信号Ar=1で示されるノイズ領域の画素についても、平坦な期間の画素として扱い、ノイズ領域を含め(すなわち、ノイズ成分による誤検出なく)平坦・ノイズ領域幅を得られる。   The flat / noise area width data predicted value dst is a low frequency component of the flat / noise area width when the gradation value changes in the horizontal direction. Therefore, in the pixel region where the gradation value changes continuously and gradually in the horizontal direction, the width of the gradation flat region when the gradation value changes can be obtained while avoiding a steep change. Thus, the flat / noise area width after the non-noise gradation change position (Ar = 2) can be used as a predicted value. Further, since the flat / noise area width data predicted value dst is obtained from the flat / noise area width count value Cnt obtained by counting the pixels with reference to the non-noise gradation change position (Ar = 2), the floor where the area signal Ar = 0 is obtained. The pixels in the noise region indicated by the region signal Ar = 1 as well as the pixels in the tonal flat region are treated as pixels in the flat period, and the noise region is included (that is, without erroneous detection due to the noise component) can get.

図18(g)及び図19(g)においては、非ノイズ階調変化位置(Ar=2)x=8,16,24,32で1画素前のx−1における平坦・ノイズ領域幅データ予測値pdstと、平坦・ノイズ領域幅カウント値Cnt(図18(f)及び図19(f))に対し、(pdst+Cnt)/2による巡回型フィルタ処理を施す。階調平坦領域(Ar=0)とノイズ領域(Ar=1)においては、画素位置x=8,16,24,32における値が保持されている。   18 (g) and 19 (g), flat / noise area width data prediction at x-1 one pixel before at the non-noise gradation change position (Ar = 2) x = 8, 16, 24, 32. A cyclic filter process of (pdst + Cnt) / 2 is performed on the value pdst and the flat / noise area width count value Cnt (FIG. 18 (f) and FIG. 19 (f)). In the flat gradation region (Ar = 0) and the noise region (Ar = 1), values at pixel positions x = 8, 16, 24, and 32 are held.

傾き検出手段40は、領域信号Arに従い、非ノイズ階調変化位置(Ar=2)において、振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstから、入力画像信号Daの水平方向の階調値の傾きを検出し、傾きデータ値Ksl=Xlm/dstとして算出する(ステップS107,S110)。階調平坦領域(Ar=0)とノイズ領域(Ar=1)においては、その前の非ノイズ階調変化位置(Ar=2)における値が保持される(ステップS109)。振幅制限階調変化量Xlmは階調変化量dfを−1から+1までの範囲内に制限した値で入力されている(ステップS103)ので、検出される階調値の傾き、すなわち傾きデータ値Kslについても、−1から+1までの範囲内の値となる。   In accordance with the area signal Ar, the inclination detecting means 40 in the horizontal direction of the input image signal Da from the amplitude limited gradation change amount Xlm and the flat / noise area width data predicted value dst at the non-noise gradation change position (Ar = 2). Is detected as a gradient data value Ksl = Xlm / dst (steps S107 and S110). In the gradation flat region (Ar = 0) and the noise region (Ar = 1), the value at the previous non-noise gradation change position (Ar = 2) is held (step S109). Since the amplitude limit gradation change amount Xlm is input as a value in which the gradation change amount df is limited within a range from −1 to +1 (step S103), the gradient of the detected gradation value, that is, the gradient data value. Ksl is also a value within a range from −1 to +1.

図18(h)によれば、非ノイズ階調変化位置(Ar=2)x=8においては、傾きデータ値Ksl=+1/4となり、同様に画素位置x=16,24,32で傾きデータ値Kslが求められる。また、図19(h)によれば、非ノイズ階調変化位置(Ar=2)x=8においては、傾きデータ値Ksl=+1/4となり、画素位置x=16においては、傾きデータ値Ksl=−1/6、同様に画素位置x=24,32で傾きデータ値Kslが求められる。図18(h)及び図19(h)のいずれにおいても、階調平坦領域とノイズ領域(Ar=0,1)においては、画素位置x=8,16,24,32における値が保持されている。   According to FIG. 18H, at the non-noise gradation change position (Ar = 2) x = 8, the inclination data value Ksl = + 1/4, and similarly, the inclination data at the pixel position x = 16, 24, 32. A value Ksl is determined. Further, according to FIG. 19H, the slope data value Ksl = + 1/4 at the non-noise gradation change position (Ar = 2) x = 8, and the slope data value Ksl at the pixel position x = 16. = -1 / 6, and similarly, the inclination data value Ksl is obtained at the pixel position x = 24,32. In both FIG. 18 (h) and FIG. 19 (h), the values at the pixel positions x = 8, 16, 24, and 32 are held in the flat gradation region and the noise region (Ar = 0, 1). Yes.

図15で示す動作により、領域信号Arを基準にして階調値の傾きにおける平坦・ノイズ領域幅を予測した値である平坦・ノイズ領域幅データ予測値dstと階調値の傾きを求め、ノイズ成分による誤検出なく、非ノイズ階調変化位置(Ar=2)の画素における階調値の傾きを得られる。また、エッジ変化検出手段60は、階調変化量dfの大きさから、階調変化の差分がエッジによるものか否かを判定し、その結果から補正制限係数rcを生成する。   With the operation shown in FIG. 15, the flat / noise area width data predicted value dst, which is a value obtained by predicting the flat / noise area width in the gradient of the gradation value with reference to the area signal Ar, and the gradient of the gradation value are obtained. The gradient of the gradation value in the pixel at the non-noise gradation change position (Ar = 2) can be obtained without erroneous detection due to the component. Further, the edge change detection means 60 determines whether or not the difference in gradation change is due to the edge from the magnitude of the gradation change amount df, and generates a correction limiting coefficient rc from the result.

ここで、画素領域判定手段20において、階調変化量dfによる画素領域の判定の動作について、図17を用いて説明する。   Here, an operation of determining the pixel area based on the gradation change amount df in the pixel area determining unit 20 will be described with reference to FIG.

画素領域判定手段20は、まず、階調変化量検出手段10からの階調変化量dfに対し画素遅延するなどして、画素位置xの注目画素、その直前の画素位置x−1の隣接画素、注目画素の直後の画素位置x+1の隣接画素のそれぞれにおける階調変化量dfを、階調変化量df(x)、df(x−1)、df(x+1)として得る(ステップS120)。   The pixel area determination unit 20 first delays the pixel with respect to the gradation change amount df from the gradation change amount detection unit 10, so that the pixel of interest at the pixel position x and the adjacent pixel at the pixel position x−1 immediately before it are detected. The gradation change amount df in each of the adjacent pixels at the pixel position x + 1 immediately after the target pixel is obtained as the gradation change amounts df (x), df (x−1), and df (x + 1) (step S120).

次に、階調変化量df(x)と、階調変化量df(x)、df(x−1)、df(x+1)のそれぞれの極性を取得して(ステップS121)、画素位置xの注目画素が、ノイズ領域における隣接画素に高周波成分の変化を持つ(階調変化量df(x)の極性と階調変化量df(x−1)の極性とが反対極性、又は、階調変化量df(x)の極性と階調変化量df(x+1)の極性とが反対極性)かの判定を行う(ステップS122〜S129)。具体的には、ノイズ領域と判定するための1つ条件である隣接画素に高周波成分を持つか、すなわち、階調変化量df(x)の極性が、階調変化量df(x−1)の極性又は階調変化量df(x+1)の極性のいずれかと反対極性であるか否かを判定する。   Next, the polarities of the gradation change amount df (x) and the gradation change amounts df (x), df (x−1), and df (x + 1) are acquired (step S121), and the pixel position x is obtained. The target pixel has a high-frequency component change in an adjacent pixel in the noise region (the polarity of the tone change amount df (x) is opposite to the polarity of the tone change amount df (x−1), or the tone change It is determined whether the polarity of the amount df (x) is opposite to the polarity of the gradation change amount df (x + 1) (steps S122 to S129). Specifically, the adjacent pixel which is one condition for determining the noise region has a high frequency component, that is, the polarity of the gradation change amount df (x) is the gradation change amount df (x−1). Or the polarity of the gradation change amount df (x + 1).

まず、画素位置xと隣接する画素位置x−1で変化の方向が反対になる高周波成分の変化があるかを、階調変化量df(x)の極性と階調変化量df(x−1)の極性から判定する(ステップS122)。階調変化量df(x)の極性と階調変化量df(x−1)の極性が反対極性である場合(ステップS124)は、2値化した値を示す判定結果pf1=1とし(ステップS126)、同一の場合は、判定結果pf1=0とする(ステップS127)。   First, the polarity of the gradation change amount df (x) and the gradation change amount df (x−1) are determined as to whether there is a change in the high frequency component whose direction of change is opposite at the pixel position x−1 adjacent to the pixel position x. ) From the polarity (step S122). When the polarity of the gradation change amount df (x) is opposite to the polarity of the gradation change amount df (x−1) (step S124), the determination result pf1 = 1 indicating a binarized value is set (step S124). In S126), if they are the same, the determination result pf1 = 0 is set (step S127).

同様に、画素位置xと隣接する画素位置x+1で変化の方向が反対になる高周波成分の変化があるかを、階調変化量df(x)の極性と階調変化量df(x+1)の極性から判定する(ステップS123)。階調変化量df(x)の極性と階調変化量df(x+1)の極性が反対極性である場合(ステップS125)は、2値化した値を示す判定結果pf1=2とし(ステップS128)、同一の場合は、判定結果pf2=0とする(ステップS129)。   Similarly, the polarity of the gradation change amount df (x) and the polarity of the gradation change amount df (x + 1) indicate whether there is a change in the high-frequency component whose direction of change is opposite between the pixel position x and the adjacent pixel position x + 1. (Step S123). When the polarity of the gradation change amount df (x) and the polarity of the gradation change amount df (x + 1) are opposite (step S125), the determination result pf1 = 2 indicating the binarized value is set (step S128). If they are the same, the determination result pf2 = 0 is set (step S129).

そして、画素位置xの注目画素における階調変化量df(x)の絶対値のレベルを所定の閾値と比較し、階調平坦領域の画素か(閾値0)、ノイズ領域における1条件階調差が比較的小さい値Nd以下かを判定するとともに、上記極性の判定結果を用いて、以下に示す動作で、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、各領域判定結果を示す領域信号Arを生成する。   Then, the level of the absolute value of the gradation change amount df (x) in the target pixel at the pixel position x is compared with a predetermined threshold value. Is determined to be less than or equal to a relatively small value Nd, and by using the determination result of the polarity, each pixel is classified into a pixel belonging to a flat gradation region, a pixel belonging to a noise region, and a non-noise gradation by the following operation. A determination is made to classify the pixel into one of the change position pixels, and an area signal Ar indicating each area determination result is generated.

(判定A1)
画素位置xの注目画素における階調変化量df(x)が、df(x)=0である場合には(ステップS130)、注目画素は、階調平坦領域に属する画素であり、領域信号Arは、Ar=0になる(ステップS133)。
(Decision A1)
When the gradation change amount df (x) in the target pixel at the pixel position x is df (x) = 0 (step S130), the target pixel is a pixel belonging to the flat gradation region, and the region signal Ar Becomes Ar = 0 (step S133).

(判定A2)
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり(ステップS130,S131)、且つ、階調変化量df(x)の極性が、階調変化量df(x−1)の極性と反対極性である場合(隣接画素に高周波成分を持つ場合)(ステップS132においてpf1=1)、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり(ステップS130,S131)、且つ、階調変化量df(x)の極性が、階調変化量df(x+1)の極性と反対極性である場合(隣接画素に高周波成分を持つ場合)(ステップS132においてpf2=1)には、
注目画素は、ノイズ領域に属する画素であり、領域信号Arは、Ar=1になる(ステップS135)。
(Decision A2)
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd (steps S130 and S131), and the polarity of the gradation change amount df (x) is When the polarity is opposite to the polarity of the gradation change amount df (x−1) (when the adjacent pixel has a high frequency component) (pf1 = 1 in step S132), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd (steps S130 and S131), and the polarity of the gradation change amount df (x) is When the polarity is opposite to the polarity of the gradation change amount df (x + 1) (when the adjacent pixel has a high frequency component) (pf2 = 1 in step S132),
The target pixel is a pixel belonging to the noise region, and the region signal Ar becomes Ar = 1 (step S135).

(判定A3)
判定A1において、注目画素が階調平坦領域に属する画素ではないと判定され、且つ、判定A2において、注目画素が、ノイズ領域に属する画素ではないと判定された画素位置xの注目画素は、非ノイズ階調変化位置の画素であり、領域信号Arは、Ar=2になる(ステップS134)。
(Decision A3)
The pixel of interest x at the pixel position x determined that the target pixel is not a pixel belonging to the flat gradation region in the determination A1 and is determined not to be a pixel belonging to the noise region in the determination A2. The pixel at the noise gradation change position, and the area signal Ar becomes Ar = 2 (step S134).

なお、所定の閾値Ndについては、画像信号より十分に小さく、入力される画像信号に含まれるノイズ・誤差などのノイズ成分の振幅の大きさを考慮した値を設定し、例えば、最小階調差の2倍の値、Nd=2とする。   The predetermined threshold Nd is set to a value that is sufficiently smaller than the image signal and takes into account the magnitude of the amplitude of noise components such as noise and error contained in the input image signal. Nd = 2.

図18(e)において、画素位置x=8,16,24,32は、隣接画素の階調変化量df=0であるので、それぞれ非ノイズ階調変化位置で領域信号Ar=2として判定される。ノイズ成分により階調変化量dfが0でない画素位置x=19とその隣接画素位置x=20においては、互いに階調変化量dfの極性が反対であり(df(19)=+1、df(20)=−1)、したがって、ノイズ領域と判定し、領域信号Ar=1となる。同様に、x=34,35,36についてもノイズ領域と判定される。図19(f)においても同様であり、画素位置x=8,16,24,32は、df≠0であるので階調平坦領域ではなく、且つ、隣接画素の階調変化量df=0であるのでノイズ領域でもないので、それぞれ非ノイズ階調変化位置であり、領域信号Ar=2となる。ノイズ成分により階調変化量df≠0である画素位置x=19の画素とその隣接画素(画素位置x=20)、及び、画素位置x=35の画素とその隣接画素(画素位置x=36)においては、互いに階調変化量dfの極性が反対であるから、ノイズ領域と判定され、領域信号Ar=1となる。   In FIG. 18 (e), the pixel position x = 8, 16, 24, 32 is determined as the area signal Ar = 2 at the non-noise gradation change position because the gradation change amount df = 0 of the adjacent pixel. The At the pixel position x = 19 where the gradation change amount df is not 0 due to the noise component and the adjacent pixel position x = 20, the polarity of the gradation change amount df is opposite to each other (df (19) = + 1, df (20 ) = − 1) Therefore, it is determined as a noise region, and the region signal Ar = 1. Similarly, x = 34, 35, and 36 are also determined as noise regions. The same applies to FIG. 19F, and the pixel positions x = 8, 16, 24, and 32 are not flat gradation regions because of df ≠ 0, and the gradation change amount df = 0 of the adjacent pixels. Since it is not a noise region, it is a non-noise gradation change position, and the region signal Ar = 2. The pixel at pixel position x = 19 and its adjacent pixel (pixel position x = 20) and the pixel position x = 35 and its adjacent pixel (pixel position x = 36) where the gradation change amount df ≠ 0 due to the noise component ), Since the polarities of the gradation change amounts df are opposite to each other, it is determined as a noise region, and the region signal Ar = 1.

以上に説明したように、図17に示される動作により、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、領域信号Arが得られ、各画素が階調平坦領域、ノイズ領域、非ノイズ階調変化位置のどの階調値の変化を持つかが示される。   As described above, the operation shown in FIG. 17 determines that each pixel is classified as one of a pixel belonging to a flat gradation region, a pixel belonging to a noise region, or a pixel at a non-noise gradation change position. , An area signal Ar is obtained, and it is indicated which gradation value of each pixel has a gradation flat area, a noise area, and a non-noise gradation change position.

次に、補正ビットデータを生成し、入力画像信号Daに対して付加することでビット数を拡張する動作を、図16により説明する。図16において、領域信号Arに従い階調値の傾きである傾きデータ値Kslが得られた後、補正ビット生成手段50は、水平方向走査期間の区切りにおいて補正値aCdを初期化するとともに、画素の領域を示す領域信号Arに応じて、補正値aCdを生成する処理を切り換える(ステップS111)。   Next, the operation of expanding the number of bits by generating corrected bit data and adding it to the input image signal Da will be described with reference to FIG. In FIG. 16, after the gradient data value Ksl, which is the gradient of the gradation value, is obtained in accordance with the area signal Ar, the correction bit generation unit 50 initializes the correction value aCd at the boundary of the horizontal scanning period and The process of generating the correction value aCd is switched according to the area signal Ar indicating the area (step S111).

非ノイズ階調変化位置(Ar=2)においては(ステップS111)、振幅制限階調変化量Xlmと補正制限係数rcを乗算し、乗算結果である補正値mCdを、(rc)×(Xlm)から算出する(ステップS112)。そして、得られた補正値mCdを補正値aCdと決定する(ステップS113)。振幅制限階調変化量Xlmは、入力画像信号Daの1階調の値に相当する−1から+1までの範囲内に制限されており、また、補正制限係数rcは階調変化量dfの大きさに応じて0〜1の値で得ているので、補正値mCdは、階調変化量dfが大きく、エッジが近傍に存在する画素(補正制限係数rc=0)においては補正値mCd=0となり、それ以外の画素においては、−1から+1までの範囲内の絶対値が1以下となる小数として表現される。また、振幅制限階調変化量Xlmは、階調値の傾きを算出する際に用いられる階調変化の高さとしているので、得られる補正値は、階調値の傾きから得ている。   At the non-noise gradation change position (Ar = 2) (step S111), the amplitude limit gradation change amount Xlm is multiplied by the correction restriction coefficient rc, and the correction value mCd as the multiplication result is (rc) × (Xlm). (Step S112). Then, the obtained correction value mCd is determined as the correction value aCd (step S113). The amplitude limit gradation change amount Xlm is limited within a range from −1 to +1 corresponding to one gradation value of the input image signal Da, and the correction limit coefficient rc is larger than the gradation change amount df. Since the correction value mCd is obtained with a value of 0 to 1 according to the above, the correction value mCd = 0 for a pixel (correction limiting coefficient rc = 0) in which the gradation change amount df is large and the edge exists in the vicinity. In other pixels, the absolute value in the range from −1 to +1 is expressed as a decimal with 1 or less. Since the amplitude limit gradation change amount Xlm is the height of the gradation change used when calculating the gradient of the gradation value, the correction value obtained is obtained from the gradient of the gradation value.

一方、階調平坦領域(Ar=0)とノイズ領域(Ar=1)となる画素においては(ステップS111)、傾きデータ値Kslを補正値の隣接する画素ごとの階調変化量dKとして(dK=Kslとする)、直前画素における補正値(遅延補正値pCd)から階調変化量dKを減算(pCd−dK)し、階調平坦領域の画素における補正値sCdを得る(ステップS114)。なお、減算後、補正値sCdの値の符号が遅延補正値pCdから反転した場合(+が−、又は−が+へ変化)と、遅延補正値pCdがゼロにおける減算処理の場合は、補正値sCdはゼロ(sCd=0)として出力する。そして、この補正値sCdを補正値aCdと決定する(ステップS115)。これにより、階調平坦領域(Ar=0)及びノイズ領域(Ar=1)の画素における補正値sCdは、変化位置から順に階調変化量dKの絶対値の大きさ(すなわち、傾きデータ値Kslの絶対値|Ksl|)で変化した値となる。ここで、傾きデータ値Kslが−1から+1までの範囲内の値であるので、補正値sCdについても−1から+1までの範囲内のその絶対値が1以下となる小数として表現される。   On the other hand, in the pixel that becomes the gradation flat region (Ar = 0) and the noise region (Ar = 1) (step S111), the gradient data value Ksl is set as the gradation change amount dK for each adjacent pixel of the correction value (dK). = Ksl), the gradation change amount dK is subtracted (pCd−dK) from the correction value (delay correction value pCd) of the immediately preceding pixel to obtain the correction value sCd of the pixel in the flat gradation region (step S114). After subtraction, when the sign of the value of the correction value sCd is inverted from the delay correction value pCd (+ changes to − or − changes to +), and in the case of subtraction processing when the delay correction value pCd is zero, the correction value sCd is output as zero (sCd = 0). Then, the correction value sCd is determined as the correction value aCd (step S115). As a result, the correction value sCd in the pixels of the flat gradation region (Ar = 0) and the noise region (Ar = 1) is the magnitude of the absolute value of the gradation change amount dK in order from the change position (that is, the slope data value Ksl). The absolute value of | Ksl |) is changed. Here, since the slope data value Ksl is a value in the range from −1 to +1, the correction value sCd is also expressed as a decimal number whose absolute value in the range from −1 to +1 is 1 or less.

上記により得られた補正値aCdは、所定のビット数となるビット列の値へ変換されて、付加する値を示す付加ビットEと値の符号ビットを含めて補正ビットデータCdとして求められる(ステップS116)。また、補正値aCdは、1画素分遅延されて、直前画素における補正値pCdとして次の画素の処理へと送られる(ステップS117)。   The correction value aCd obtained as described above is converted into a bit string value having a predetermined number of bits, and is determined as correction bit data Cd including an additional bit E indicating a value to be added and a sign bit of the value (step S116). ). The correction value aCd is delayed by one pixel and sent to the next pixel process as the correction value pCd in the immediately preceding pixel (step S117).

以上のステップS111〜S117により、入力画像信号Daに対し付加すべき補正値aCd(すなわち、補正ビットデータCd)は、非ノイズ階調変化位置(Ar=2)で振幅制限階調変化量Xlmと補正制限係数rcによる補正値aCd=(rc)×(Xlm)として得て(すなわち、傾きを算出する際に用いられる階調変化の高さを得て)、階調平坦領域(Ar=0)及びノイズ領域(Ar=1)においては、非ノイズ階調変化位置(Ar=2)における値から順に、傾きデータ値Kslによるレベル差で順次0まで変化する値として得られる。乗算結果(rc)×(Xlm)による補正値、傾きデータ値Kslはともに、−1から+1までの範囲内の絶対値が1以下となる小数として表現されており、したがって、補正値aCdについても、1以下の小数となる精度を持った階調値となる。   Through the above steps S111 to S117, the correction value aCd (that is, the correction bit data Cd) to be added to the input image signal Da is set to the amplitude limit gradation change amount Xlm at the non-noise gradation change position (Ar = 2). The correction value aCd = (rc) × (Xlm) obtained by the correction limiting coefficient rc (that is, the height of the gradation change used when calculating the inclination is obtained), and the gradation flat region (Ar = 0) In the noise region (Ar = 1), the values are sequentially changed from the value at the non-noise gradation change position (Ar = 2) to a value that sequentially changes to 0 due to the level difference by the slope data value Ksl. Both the correction value based on the multiplication result (rc) × (Xlm) and the slope data value Ksl are expressed as decimal numbers whose absolute value in the range from −1 to +1 is 1 or less, and therefore the correction value aCd is also expressed. 1 is a gradation value having an accuracy of a decimal number of 1 or less.

領域信号Arに基づき、求める補正値aCdを切り換えるので、階調平坦領域とともに、ノイズ領域(Ar=1)となる画素についても、平坦な期間の画素として傾きデータ値Kslによるレベル差の変化を持つ補正値aCdが得られ、ノイズ成分による影響なく、順次変化する補正値aCdが得られる。   Since the correction value aCd to be obtained is switched based on the area signal Ar, the pixel that becomes the noise area (Ar = 1) as well as the gradation flat area has a change in level difference due to the inclination data value Ksl as a pixel in the flat period. Correction values aCd are obtained, and correction values aCd that change sequentially are obtained without being affected by noise components.

また、補正制限係数rcを用いて補正値mCdを(rc)×(Xlm)から得ているので、緩やかに階調値が変化する画素の領域においては、非ノイズ階調変化位置から順に、階調変化量dKのレベル差の変化を持つ補正値aCdとなるが、一方で、階調値の変化がエッジによると判断される場合は、補正値mCd=0となり、それ以降の画素でも補正値は0となり、画像の輪郭情報を保つような補正値として得ることができる。   In addition, since the correction value mCd is obtained from (rc) × (Xlm) using the correction limiting coefficient rc, in the region of the pixel where the gradation value changes gradually, the gradation is changed in order from the non-noise gradation change position. The correction value aCd has a change in the level difference of the tone change amount dK. On the other hand, if it is determined that the change in the gradation value is due to an edge, the correction value mCd = 0, and the correction value is also applied to the subsequent pixels. Becomes 0, and can be obtained as a correction value for maintaining the contour information of the image.

図18(i)によれば、画素位置x=16(Ar=2)においては補正値aCd=+1であり、それ以降の階調平坦領域、ノイズ領域となる画素においては、画素位置x=16における補正値aCd=+1から画素の順に、5/6,4/6,…、というように、傾きデータ値Kslによるレベル差−1/6の変化を持った補正値aCd(すなわち、補正ビットデータCd)として得られる。同様に、画素位置x=32においては、補正値aCd=+1であり、それ以降の階調平坦領域、ノイズ領域となる画素においては、画素位置x=32における補正値aCd=+1から順に、6/7,5/7,4/7,…というように、傾きデータ値Kslによるレベル差−1/7の変化を持った補正値aCdとして得られる。   According to FIG. 18 (i), the correction value aCd = + 1 at the pixel position x = 16 (Ar = 2), and the pixel position x = 16 in the pixels that become the gradation flat region and noise region thereafter. The correction value aCd having a change of the level difference −1/6 by the inclination data value Ksl (that is, the correction bit data), such as 5/6, 4/6,. Cd). Similarly, at the pixel position x = 32, the correction value aCd = + 1, and in the pixels that become the gradation flat region and the noise region after that, the correction value aCd = + 1 at the pixel position x = 32 in order from 6 / 7, 5/7, 4/7,... Is obtained as a correction value aCd having a change of level difference −1/7 by the inclination data value Ksl.

また、図19(i)によれば、画素位置x=16(Ar=2)においては、補正値aCd=−1であり、それ以降の階調平坦領域、ノイズ領域となる画素においては、画素位置x=16における補正値aCd=−1から順に、−5/6,−4/6,−3/6,…というように、傾きデータ値Kslによるレベル差+1/6の変化を持った補正値aCd(すなわち、補正ビットデータCd)として得られる。なお、画素位置x=8においては、階調変化量df=+7で補正制限係数rc=0であるので、補正値aCd=0となる。そのため、それ以降の平坦な画素でも、補正値aCd(すなわち、補正ビットデータCd)は0となる。   Further, according to FIG. 19 (i), the correction value aCd = −1 at the pixel position x = 16 (Ar = 2), and the pixel that becomes the gradation flat region and the noise region after that is the pixel Correction with a change of level difference + 1/6 due to the inclination data value Ksl, such as −5/6, −4/6, −3/6,... Sequentially from the correction value aCd = −1 at the position x = 16. Obtained as a value aCd (that is, corrected bit data Cd). At the pixel position x = 8, the correction value aCd = 0 because the gradation change amount df = + 7 and the correction limiting coefficient rc = 0. Therefore, the correction value aCd (that is, the correction bit data Cd) is 0 even in the subsequent flat pixels.

画素値演算手段92は、補正ビットデータCdと入力画像信号Daの画素位置を合わせるよう遅延補償された画像信号Dd(又は入力画像信号Da)に対し、補正ビットデータCdを整数部の位置を合わせて減算することで、新たな出力画像信号Dbを算出する(ステップS118)。すなわち、画像信号Ddに対する補正ビットデータCdの演算処理は、画像信号Ddの階調値Laから補正ビットデータCdの値を減算して、画像信号Ddの最下位側に付加ビットEの値を結合するよう付加することに相当する処理を行う(図14参照)。なお、演算後の値が負の値となる場合は、出力画像信号Dbをゼロ(Db=0)とし、出力画像信号Dbの設定したビット数(最大値)を超える値となる場合は、値を最大値として、出力画像信号Dbの値を制限する。   The pixel value calculation unit 92 aligns the position of the integer part of the correction bit data Cd with respect to the image signal Dd (or input image signal Da) that has been delay compensated so as to match the pixel position of the correction bit data Cd and the input image signal Da. By subtracting, a new output image signal Db is calculated (step S118). That is, in the calculation processing of the correction bit data Cd for the image signal Dd, the value of the correction bit data Cd is subtracted from the gradation value La of the image signal Dd, and the value of the additional bit E is combined with the least significant side of the image signal Dd. A process corresponding to the addition is performed (see FIG. 14). When the value after the calculation is a negative value, the output image signal Db is set to zero (Db = 0), and when the value exceeds the set bit number (maximum value) of the output image signal Db, Is the maximum value, and the value of the output image signal Db is limited.

補正ビットデータCdは、画像信号Dd(又は入力画像信号Da)の階調値に対して、小数部を含むので、演算処理された後の出力画像信号Dbは、画像信号Ddに対し小数部を有した精度の画像信号となる。出力画像信号Dbは、小数部を含む補正ビットデータCdによる小数部のビット数を有するので、階調値の分解能が増加し、より滑らかな階調値の変化を表現できるようになる。補正ビットデータCdは、領域信号Arを基準として、ノイズ成分による影響なく、傾きデータ値Kslで変化する補正値aCとして得られており、階調値に対して補正ビットデータCdによる値が加算又は減算処理されるので、ノイズ等の微少な階調値の変化による画像のディテールを残しながら、鮮鋭度を低下させずに、緩やかに階調値が変化する画素の領域の滑らかさを増すことができる。   Since the correction bit data Cd includes a decimal part with respect to the gradation value of the image signal Dd (or the input image signal Da), the output image signal Db after the arithmetic processing has a decimal part with respect to the image signal Dd. It becomes an image signal with a certain accuracy. Since the output image signal Db has the bit number of the decimal part by the correction bit data Cd including the decimal part, the resolution of the gradation value is increased, and a smoother change of the gradation value can be expressed. The correction bit data Cd is obtained as a correction value aC that changes with the gradient data value Ksl without being affected by the noise component with reference to the area signal Ar, and the value of the correction bit data Cd is added to the gradation value or Since the subtraction processing is performed, the smoothness of the pixel region in which the gradation value gradually changes can be increased without reducing the sharpness while leaving the image detail due to a slight change in the gradation value such as noise. it can.

図18(j)によれば、補正ビットデータCdを付加した後の出力画像信号Dbの階調値Lbは、画像信号Ddの階調値Laから補正ビットデータCdを減算することで、非ノイズ階調変化位置(Ar=2)x=16においては階調値Lb=12/6となり、それ以降の階調平坦領域とノイズ領域においては、画素位置の順に1/6ごとで増加する変化を持つとともに、ノイズ成分がある画素位置x=19においては、ノイズ成分による振幅(6/6)を残した状態で階調値が変換された値21/6として得られる。同様に、画素位置x=32においては、出力画像信号Dbの階調値Lb=28/7で、それ以降の階調平坦領域とノイズ領域においては、順に1/7ごとで増加する変化を持ち、ノイズ成分がある画素位置x=34においては、ノイズ成分による振幅(7/7)を残した状態で階調値が変換された値37/7として得られる。画素位置x=35に対しても同様である。   According to FIG. 18J, the gradation value Lb of the output image signal Db after adding the correction bit data Cd is obtained by subtracting the correction bit data Cd from the gradation value La of the image signal Dd. At the gradation change position (Ar = 2) x = 16, the gradation value Lb = 12/6, and in the gradation flat area and the noise area after that, the change increases by 1/6 in order of the pixel position. In addition, at a pixel position x = 19 where there is a noise component, the gradation value is obtained as a converted value 21/6 while leaving the amplitude (6/6) due to the noise component. Similarly, at the pixel position x = 32, the gradation value Lb of the output image signal Db is 28/7, and the subsequent gradation flat region and noise region have a change that increases in order of 1/7. In the pixel position x = 34 where there is a noise component, the gradation value is obtained as a converted value 37/7 while leaving the amplitude (7/7) due to the noise component. The same applies to the pixel position x = 35.

また、図19(j)によれば、非ノイズ階調変化位置(Ar=2)x=16における階調値Lb=48/6で、それ以降の階調平坦領域とノイズ領域においては順に1/6ごとで減少する変化持つとともに、ノイズ成分があるx=19においては、ノイズ成分による振幅(6/6)を残した状態で階調値が変換された値51/6として得られる。同様に、画素位置x=32においては、出力画像信号Dbの階調値Lb=42/7で、それ以降の階調平坦領域とノイズ領域においては、順に1/7ごとで減少する変化を持ち、ノイズ成分がある画素位置x=35においては、ノイズ成分による振幅(7/7)を残した状態で階調値が変換された値32/7として得られる。なお、図19(j)の画素位置x=8においては、補正値aCd(すなわち、補正ビットデータCd)は0であるため、画素位置x=8とそれ以降の平坦な画素(x=15までの画素)でも、階調値の変化はない。   Further, according to FIG. 19 (j), the gradation value Lb = 48/6 at the non-noise gradation change position (Ar = 2) x = 16, and the gradation flat area and the noise area after that are 1 in order. In the case of x = 19 where there is a change that decreases at every / 6 and there is a noise component, the gradation value is obtained as a converted value 51/6 while leaving the amplitude (6/6) due to the noise component. Similarly, at the pixel position x = 32, the gradation value Lb of the output image signal Db is 42/7, and the subsequent gradation flat region and noise region have a change that decreases in order of 1/7. In the pixel position x = 35 where there is a noise component, the gradation value is obtained as a converted value 32/7 while leaving the amplitude (7/7) due to the noise component. Note that, at the pixel position x = 8 in FIG. 19J, the correction value aCd (that is, the correction bit data Cd) is 0, so the pixel position x = 8 and the subsequent flat pixels (up to x = 15). No change in gradation value is possible even in the case of the pixel.

図18(k)及び図19(k)は、補正ビットデータCdにおける付加ビットEを4ビットとした場合の出力画像信号Dbを示しており、非ノイズ階調変化位置(Ar=2)から画素位置の順に、傾きデータ値Kslに相当する値の変化を持った階調値として得られ、結果として階調変化がより滑らかに変換された12ビットの出力画像信号Dbが得られている。   FIGS. 18 (k) and 19 (k) show the output image signal Db when the additional bit E in the correction bit data Cd is 4 bits, and the pixel from the non-noise gradation change position (Ar = 2). A 12-bit output image signal Db obtained by converting the gradation change more smoothly is obtained as a gradation value having a change corresponding to the inclination data value Ksl in the order of the position.

なお、図1、図14、図18、図19は、補正ビットデータCdにおける付加ビットEを4ビットで生成する場合を示しているが、付加ビットEは4ビットに限るものではなく、より多くのビット数で補正ビットデータCd(すなわち、補正値aCd)を表現することで、精度の高い、より滑らかな階調値の変化となる画像信号を得ることができる。例えば、図18(a)〜(k)において、画素位置x=8から次の階調値が変化する画素位置までの間は、傾きデータ値Kslが+1/4であるので、補正値aCdの絶対値1/4の変化を示すため、付加ビットEを3ビット分で構成すれば、誤差無く補正ビットデータCdを表現できる。しかし、図18(a)〜(k)の画素位置x=24以降は、傾きデータ値Kslが+1/7であるので、補正値aCdにおける階調変化量を示すため、付加ビットEとしてより多くのビット数を用いることにより、少ない誤差で補正ビットデータCdを表現できる。   1, 14, 18, and 19 show a case where the additional bit E in the correction bit data Cd is generated with 4 bits, but the additional bit E is not limited to 4 bits, and more By expressing the correction bit data Cd (that is, the correction value aCd) with the number of bits, it is possible to obtain an image signal with a high-precision and smoother gradation value change. For example, in FIGS. 18A to 18K, since the inclination data value Ksl is +1/4 from the pixel position x = 8 to the pixel position where the next gradation value changes, the correction value aCd In order to show the change of the absolute value 1/4, if the additional bit E is composed of 3 bits, the corrected bit data Cd can be expressed without error. However, after the pixel position x = 24 in FIGS. 18A to 18K, since the slope data value Ksl is +1/7, it indicates the gradation change amount in the correction value aCd, and therefore more as additional bits E. Therefore, the corrected bit data Cd can be expressed with a small error.

言い換えれば、補正値aCdは、振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstから求められた傾きデータ値Kslにより得られるので、平坦・ノイズ領域幅データ予測値dstにおける最大幅(画素数)を大きくし、傾きデータ値Kslを表現するビット数を多く取れば、補正値aCdの変化はより細かくできる。よって、補正ビットデータCdにおける付加ビットEのビット数を多くすると、より階調値の分解能(精度)の高い画像を得ることができる。   In other words, the correction value aCd is obtained from the gradient data value Ksl obtained from the amplitude limit gradation change amount Xlm and the flat / noise region width data predicted value dst, and thus the maximum width in the flat / noise region width data predicted value dst. The change in the correction value aCd can be made finer by increasing (the number of pixels) and increasing the number of bits representing the inclination data value Ksl. Therefore, if the number of additional bits E in the correction bit data Cd is increased, an image with higher resolution (accuracy) of gradation values can be obtained.

《1−4》効果.
以上に説明したように、実施の形態1の画像処理装置又は画像処理方法においては、階調変化量dfを用いて、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、その判定結果を示す領域信号Arを基準として、非ノイズ階調変化位置(Ar=2)以降における平坦・ノイズ領域幅を予測した平坦・ノイズ領域幅データ予測値dstを求め、非ノイズ階調変化位置(Ar=2)における振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstとから階調値の傾き(傾きデータ値Ksl)を得ている。また、実施の形態1の画像処理装置又は画像処理方法においては、階調変化が画像のエッジによると判断される場合に、補正ビット生成手段50における補正を制限する補正制限係数rcを設定し、非ノイズ階調変化位置(Ar=2)における振幅制限階調変化量Xlmと、傾きデータ値Kslと、補正制限係数rcとから補正ビットデータCdを生成し、入力画像信号Daに整数部の位置を合わせて入力画像信号Daから補正ビットデータCdの値を減算又は加算して、補正ビットデータを付加することで画素値を変換し、階調数(ビット数)が拡張された画像信号を出力している。したがって、実施の形態1の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれる場合においても、画像のエッジの階調変化とその次に現れる画像のエッジの階調変化との間に存在するノイズ成分による階調変化を、ノイズ成分による階調変化であると判定できるので、非ノイズ階調変化位置とその次に現れる非ノイズ階調変化位置との間の幅を示す平坦・ノイズ領域幅を正確に検出でき、ノイズ成分による階調変化と区別できるので、傾きデータ値Kslを、ノイズ成分による影響を受けることなく算出できる。また、実施の形態1の画像処理装置又は画像処理方法によれば、回路規模を大幅に増やすことなく、傾きデータ値Kslによる階調値で順次変化する補正値が得られ、緩やかに階調値が変化する画素領域や非ノイズ階調変化位置における適切な補正ビットデータCdを得て、画像信号の階調変化をより滑らかに変換し、ビット数を拡張できる。また、得られた補正ビットデータCdを入力画像信号Daの階調値に対し付加して階調数を拡張するため、実時間で処理でき、ノイズ成分による微少な変化を残したまま、階調変化がより滑らかに変換できる。
<< 1-4 >> Effect.
As described above, in the image processing apparatus or the image processing method of the first embodiment, using the gradation change amount df, each pixel is classified into a pixel belonging to the gradation flat area, a pixel belonging to the noise area, A determination to classify the pixel into one of the noise gradation change positions is performed, and a flat / noise area width after the non-noise gradation change position (Ar = 2) is predicted based on the area signal Ar indicating the determination result. The flat / noise area width data prediction value dst is obtained, and the gradient (gradient) of the gradation value is calculated from the amplitude-limited gradation change amount Xlm at the non-noise gradation change position (Ar = 2) and the flat / noise area width data prediction value dst. The data value Ksl) is obtained. In the image processing apparatus or the image processing method according to the first embodiment, when it is determined that the gradation change is caused by the edge of the image, the correction limiting coefficient rc for limiting the correction in the correction bit generation unit 50 is set. The correction bit data Cd is generated from the amplitude limit gradation change amount Xlm at the non-noise gradation change position (Ar = 2), the inclination data value Ksl, and the correction limit coefficient rc, and the position of the integer part in the input image signal Da. And subtracting or adding the value of the correction bit data Cd from the input image signal Da, adding the correction bit data, converting the pixel value, and outputting an image signal with an expanded number of gradations (bit number) doing. Therefore, according to the image processing apparatus or the image processing method of the first embodiment, even when the input image signal Da includes a noise component, the gradation change of the edge of the image and the gradation of the edge of the image that appears next to it are displayed. Since the gradation change due to the noise component existing between the changes can be determined as the gradation change due to the noise component, the width between the non-noise gradation change position and the non-noise gradation change position that appears next Can be accurately detected and can be distinguished from the gradation change due to the noise component, so that the inclination data value Ksl can be calculated without being influenced by the noise component. Further, according to the image processing apparatus or the image processing method of the first embodiment, the correction value that sequentially changes with the gradation value by the inclination data value Ksl can be obtained without significantly increasing the circuit scale, and the gradation value is gradually reduced. By obtaining appropriate correction bit data Cd in the pixel region where the angle changes and the non-noise gradation change position, the gradation change of the image signal can be converted more smoothly and the number of bits can be expanded. In addition, since the obtained correction bit data Cd is added to the gradation value of the input image signal Da to extend the number of gradations, the number of gradations can be processed in real time, and the gradation can be maintained while leaving a slight change due to noise components. Changes can be converted more smoothly.

このように、実施の形態1の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれる場合においても、実時間で回路規模を大幅に増やすことなく、緩やかに階調値が変化する画像領域に対し、ノイズ成分による誤検出なく、階調変化をより適切に検出したことによる補正ビットデータCdが得られる。このため、補正ビットデータにより画像信号の階調数を拡張し、階調変換された出力画像信号Dbにおいて、画像のディテールが失われたり、鮮鋭度が損なわれたりすることはなく、量子化ノイズ又は擬似輪郭が低減され、階調変化が滑らかで、高品位な階調数を拡張した画像信号が得られる。   As described above, according to the image processing apparatus or the image processing method of the first embodiment, even when a noise component is included in the input image signal Da, the gradation is gradually increased without significantly increasing the circuit scale in real time. Correction bit data Cd obtained by more appropriately detecting a gradation change can be obtained without erroneous detection due to a noise component in an image region whose value changes. For this reason, the number of gradations of the image signal is expanded by the correction bit data, and the image details are not lost or the sharpness is not lost in the gradation-converted output image signal Db. Alternatively, the pseudo contour is reduced, the gradation change is smooth, and an image signal with an extended number of gradations can be obtained.

《1−5》変形例.
上記説明においては、画素領域判定手段20は、階調変化量dfの大きさから、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、領域判定結果として3種の領域信号Ar=0,1,2を生成する場合を説明したが、図1において領域信号Arを用いる平坦・ノイズ領域幅判定手段30、傾き検出手段40、補正ビット生成手段50は、非ノイズ階調変化位置(Ar=2)と、階調平坦領域及びノイズ領域(Ar=0,1)の2通りで処理を切り換えている(図7、図13、図15、図16で説明)ので、領域判定結果を2値で示す領域信号Ar1とすることも可能である。例えば、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定の結果から、階調平坦領域とノイズ領域においては領域信号Ar1=0、非ノイズ階調変化位置においては領域信号Ar1=1というように構成し、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50における処理を領域信号Ar1で切り換えるようにしてもよい。この場合にも、図1の場合と同様に構成でき、同様の効果を奏することができる。
<< 1-5 >> Modifications.
In the above description, the pixel area determination unit 20 determines each pixel as a pixel belonging to a flat gradation area, a pixel belonging to a noise area, or a pixel at a non-noise gradation change position based on the magnitude of the gradation change amount df. In the above description, the case where three types of region signals Ar = 0, 1, and 2 are generated as region determination results has been described. The flat / noise region width determination unit 30 using the region signal Ar in FIG. The inclination detection unit 40 and the correction bit generation unit 50 switch processing in two ways: a non-noise gradation change position (Ar = 2), a gradation flat region, and a noise region (Ar = 0, 1) (FIG. 7, described with reference to FIGS. 13, 15, and 16), it is also possible to set the region determination result as a region signal Ar <b> 1 that is expressed in binary. For example, based on the determination result that each pixel is classified as one of the pixel belonging to the flat gradation region, the pixel belonging to the noise region, or the pixel at the non-noise gradation change position, the region signal is output in the flat gradation region and the noise region. Ar1 = 0 and the region signal Ar1 = 1 at the non-noise gradation change position, and processing in the flat / noise region width determination unit 30, the inclination detection unit 40, and the correction bit generation unit 50 is performed by the region signal Ar1. You may make it switch. Also in this case, it can be configured similarly to the case of FIG. 1, and the same effect can be obtained.

また、上記説明においては、階調変換手段1において、入力画像信号Daの階調変化を検出する際の階調変化量は、最下位1ビット分の差、すなわち、画素間の階調値の差分+1と−1の変化とし、階調変化量検出手段10内の階調変化量制限手段12において、階調変化量dfの値を−1から+1までの範囲内となるよう制限する場合について説明したが、本発明はこのような場合に限定されず、例えば、画素間の階調値の差分の最大値+2、最小値−2の範囲の変化を求める場合など、予め決められた最大値(正の値)と最小値(負の値)に基づき、階調変化量dfの値を制限して、画像信号の1階調より大きな値の階調差以内で階調値が変化する場合に、階調数を拡張するよう構成することもできる。階調変化量dfの値を制限する範囲は、階調変換で滑らかな変化とする画像領域か、そのまま保持するか、又は、階調ジャンプとなる階調変化として補正するかを決めるための値であり、入力画像信号の特性や、階調ジャンプが起こるレベル等から適切な値を設定すればよい。この場合の構成及び動作は、階調値の変化を求める画素間の階調値の差分の範囲以外の点については、図1による構成及び動作と同じである。ここで、画素間の階調値の差分の最大値+2、最小値−2の範囲の変化を求める場合は、階調変化量検出手段10内の階調変化量制限手段12における制限の範囲、すなわち、振幅制限階調変化量Xlmの値が+2から−2までの範囲内の値となり、階調値の傾きも−2から+2までの範囲内の値となる。   In the above description, the gradation change amount when the gradation conversion means 1 detects the gradation change of the input image signal Da is the difference of the least significant 1 bit, that is, the gradation value between pixels. A case where the difference is +1 and −1 and the gradation change amount limiting unit 12 in the gradation change amount detecting unit 10 restricts the value of the gradation change amount df to be within a range from −1 to +1. Although described above, the present invention is not limited to such a case. For example, when a change in the range between the maximum value +2 and the minimum value −2 of the gradation value difference between pixels is obtained, a predetermined maximum value is obtained. When the gradation value changes within a gradation difference of a value larger than one gradation of the image signal by limiting the value of the gradation change amount df based on (positive value) and minimum value (negative value) In addition, the number of gradations can be extended. The range for limiting the value of the gradation change amount df is a value for determining whether the image area is a smooth change by gradation conversion, whether it is retained as it is, or whether it is corrected as a gradation change that becomes a gradation jump. An appropriate value may be set from the characteristics of the input image signal, the level at which the gradation jump occurs, and the like. The configuration and operation in this case are the same as the configuration and operation shown in FIG. 1 except for the range of the difference in gradation value between pixels for which a change in gradation value is to be obtained. Here, when the change in the range of the maximum difference +2 and the minimum value −2 of the gradation value difference between the pixels is obtained, the range of restriction in the gradation change amount limiting unit 12 in the gradation change amount detecting unit 10, That is, the value of the amplitude limit gradation change amount Xlm is a value in the range from +2 to -2, and the gradient of the gradation value is also a value in the range from -2 to +2.

上記説明においては、階調変化量検出手段10内の階調変化量制限手段12が階調変化量dfの値を−1から+1まで(入力画像信号Daの階調値の最下位1ビット分の差)の範囲内となるよう制限する画像処理装置及び画像処理方法を説明した。しかし、例えば、階調変化量検出手段10内の階調変化量制限手段12が階調変化量dfの値を予め決められた最大値(1階調より大きい正の値)から予め決められた最小値(絶対値が1階調より大きい負の値)までの範囲内となるよう制限してもよい。図20は、図1に示される画素値演算手段の動作の他の例を説明するための図であり、入力画像信号Da(又は遅延補償手段91からの遅延補償された画像信号Dd)と、補正ビット生成手段50からの補正ビットデータCd、及び画素値演算手段92から出力される出力画像信号Dbの関係を示している。図20の例においては、図1に示される階調変換手段1において、入力画像信号Daの水平方向の階調値の変化を、階調値の差‘2’まで検出し、画素間の階調値の差分の最大値+2から最小値−2までの範囲内の変化を求める。そして、図20に示されるように、8ビットの入力画像信号Daに対し、整数部1ビットと小数部4ビットによる5ビットで示される値の付加ビットEによる補正値(補正ビットデータ)を生成して入力画像信号Daに付加し、12ビットに階調数を拡張した出力画像信号Dbに変換する。このとき、画素値演算手段92は、補正ビットデータCdにおける付加ビットEの整数部の位置を画像信号Ddの整数部の位置(最下位ビットが整数1に相当)と一致するようにした値を、画像信号Ddに対し符号に応じて減算又は加算し、出力画像信号Dbは、入力画像信号Daに対して小数部を示すビット数分ビット列が付加されている。この場合には、入力画像信号Daの階調値の最小値である1階調の階調変化のみでなく、入力画像信号Daに1階調以上の量子化ノイズ(例えば、階調ジャンプによるもの)が含まれる場合であっても、実施の形態1と同様の効果を得ることができる。   In the above description, the gradation change amount limiting means 12 in the gradation change detection means 10 changes the value of the gradation change amount df from −1 to +1 (for the least significant 1 bit of the gradation value of the input image signal Da). The image processing apparatus and the image processing method for limiting to be within the range of (difference)) have been described. However, for example, the gradation change amount limiting means 12 in the gradation change amount detection means 10 determines the value of the gradation change amount df from a predetermined maximum value (a positive value greater than one gradation). You may restrict | limit so that it may be in the range to the minimum value (Absolute value is a negative value larger than 1 gradation). FIG. 20 is a diagram for explaining another example of the operation of the pixel value calculation unit shown in FIG. 1, and the input image signal Da (or the delay-compensated image signal Dd from the delay compensation unit 91), The relationship between the correction bit data Cd from the correction bit generation means 50 and the output image signal Db output from the pixel value calculation means 92 is shown. In the example of FIG. 20, the gradation converting means 1 shown in FIG. 1 detects the change in the gradation value of the input image signal Da in the horizontal direction up to the difference of gradation values “2”, and the level between pixels is detected. A change within the range from the maximum value +2 to the minimum value −2 of the difference between the tone values is obtained. Then, as shown in FIG. 20, a correction value (correction bit data) is generated for an 8-bit input image signal Da by an additional bit E of a value indicated by 5 bits by an integer part 1 bit and a decimal part 4 bits. Then, it is added to the input image signal Da and converted to an output image signal Db with the number of gradations extended to 12 bits. At this time, the pixel value calculation unit 92 sets a value such that the position of the integer part of the additional bit E in the correction bit data Cd matches the position of the integer part of the image signal Dd (the least significant bit corresponds to the integer 1) The image signal Dd is subtracted or added according to the sign, and the output image signal Db is added with a bit string corresponding to the number of bits indicating the decimal part of the input image signal Da. In this case, not only the gradation change of one gradation which is the minimum gradation value of the input image signal Da but also the quantization noise of one gradation or more (for example, due to gradation jump) in the input image signal Da. ) Is included, the same effect as in the first embodiment can be obtained.

さらにまた、上記説明においては、入力される入力画像信号Daをm=8ビットとし、補正ビットデータCdにおける付加ビットEを4ビットで生成して、n=12ビットの出力画像信号Dbへと階調数を拡張する場合と示しているが、入力画像信号Daの階調数mは、これに限るものではない。例えば、入力画像信号Daの階調数mは10ビットであってもよく、この場合には、n=14ビットの出力画像信号Dbが得られ、より精度の高い画像信号を得ることができる。また、補正ビットデータCd(すなわち、補正値aCd)のビット数を多くするよう構成した場合でも、補正ビットデータCdの生成までの構成におけるビット数、すなわち、平坦・ノイズ領域幅データ予測値dst、傾きデータ値Ksl、補正値aCdにおけるビット数を増やすのみで構成でき、同様の効果を奏することができる。   Furthermore, in the above description, the input image signal Da to be input is m = 8 bits, the additional bit E in the correction bit data Cd is generated with 4 bits, and the output image signal Db having n = 12 bits is generated. Although the case where the key number is extended is shown, the number of gradations m of the input image signal Da is not limited to this. For example, the number of gradations m of the input image signal Da may be 10 bits. In this case, an output image signal Db of n = 14 bits can be obtained, and a more accurate image signal can be obtained. Even when the number of bits of the correction bit data Cd (that is, the correction value aCd) is increased, the number of bits in the configuration up to the generation of the correction bit data Cd, that is, the flat / noise region width data predicted value dst, It can be configured only by increasing the number of bits in the inclination data value Ksl and the correction value aCd, and the same effect can be obtained.

また、上記説明においては、エッジ変化検出手段60により、階調変化がエッジによると判断される場合に補正を制限する補正制限係数rcを設定し、エッジが存在する画素(補正制限係数rc=0)においては、階調値が付加されることはなく、画像の輪郭情を保つよう構成しているが、階調変化量検出手段10内の階調変化量制限手段12において、階調変化量dfの値を−1から+1までの範囲内となるように値が制限された振幅制限階調変化量Xlmを求める際に、階調変化量dfの値が−1から+1までの範囲から外れた場合は、その値を0とするように(すなわち、振幅制限階調変化量Xlm=0とする)構成しても、同様にエッジとなる画素以降における補正値aCdを0とすることができる。すなわち、階調変化量dfの値が−1から+1までの範囲から外れたエッジとなる画素における振幅制限階調変化量Xlm=0とすると、階調変化の高さが0となり、傾きデータ値Ksl=0となる。また、補正値aCd=(rc)×(Xlm)=0とできるので、補正制限係数rc=0とする場合と同じ補正値aCdが得られる。   In the above description, the edge change detecting means 60 sets the correction restriction coefficient rc that restricts correction when it is determined that the gradation change is caused by the edge, and the pixel where the edge exists (correction restriction coefficient rc = 0). ), The gradation value is not added, and the contour information of the image is maintained. However, the gradation change amount is limited by the gradation change amount limiting means 12 in the gradation change amount detection means 10. When obtaining the amplitude-limited gradation change amount Xlm whose value is restricted so that the value of df is in the range from −1 to +1, the value of the gradation change amount df is out of the range from −1 to +1. In such a case, even if the value is set to 0 (that is, the amplitude limit gradation change amount Xlm = 0), the correction value aCd after the pixel that becomes the edge can be set to 0 similarly. . That is, if the amplitude limit gradation change amount Xlm = 0 at a pixel whose edge is outside the range from −1 to +1, the gradation change value becomes 0, and the gradient data value Ksl = 0. Further, since the correction value aCd = (rc) × (Xlm) = 0 can be obtained, the same correction value aCd as that when the correction limiting coefficient rc = 0 is obtained.

さらに、上記説明においては、階調変換手段1は入力画像信号Daの水平方向における階調値の変化において、水平方向の階調変化量を検出して階調値に対する補正ビットデータCdを生成し、補正ビットデータCdを画像信号に付加することで階調変換して量子化ノイズを低減する構成として説明したが、入力画像信号Daの垂直方向(画面表示走査線の配列方向)の階調変化量を検出し、補正ビットデータCdを生成して画像信号に付加し、垂直方向の階調値の変化を滑らかなものとしてもよく、同様の効果を奏することができる。この場合は、階調変化量検出手段10においては、注目画素と、該注目画素の隣接画素(垂直方向に1つ上の走査線上の隣接画素)との間の差分により階調変化量dfを求め、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50内における各信号の1画素分の遅延処理を1ライン分(1水平走査期間分)の遅延処理として、垂直方向に隣接して配置された画素における階調値の変化を検出するように構成すればよい。   Further, in the above description, the gradation converting means 1 detects the gradation change amount in the horizontal direction and generates the correction bit data Cd for the gradation value in the change in the gradation value in the horizontal direction of the input image signal Da. In the above description, the correction bit data Cd is added to the image signal to convert the gradation to reduce the quantization noise. However, the gradation change in the vertical direction of the input image signal Da (the arrangement direction of the screen display scanning lines). By detecting the amount, generating the correction bit data Cd and adding it to the image signal, the change of the gradation value in the vertical direction may be smooth, and the same effect can be obtained. In this case, the gradation change amount detection means 10 calculates the gradation change amount df based on the difference between the target pixel and the adjacent pixel of the target pixel (adjacent pixel on the scanning line one level higher in the vertical direction). The delay processing for one pixel of each signal in the flat / noise area width determination means 30, the inclination detection means 40, and the correction bit generation means 50 is obtained as the delay processing for one line (for one horizontal scanning period). What is necessary is just to comprise so that the change of the gradation value in the pixel arrange | positioned adjacent to the direction may be detected.

さらにまた、上記説明においては、画像処理装置における階調変換手段1の各構成がハードウェア構成であるように説明しているが、本発明を、プログラム制御におけるソフトウェアの処理により実現するよう構成してもよい。   Furthermore, in the above description, it has been described that each configuration of the gradation conversion means 1 in the image processing apparatus is a hardware configuration, but the present invention is configured to be realized by software processing in program control. May be.

《2》実施の形態2.
《2−1》構成.
図21は、本発明の実施の形態2による画像処理装置(すなわち、実施の形態2による画像処理方法を実施することができる装置)の構成の一例を概略的に示すブロック図である。図21において、図1(実施の形態1)に示される構成と同一又は対応する構成には、同じ符号を付す。実施の形態2の画像処理装置は、画像処理装置を構成する階調変換手段2内の画素領域判定手段20bの構成及び動作が、実施の形態1における階調変換手段1内の画素領域判定手段20の構成及び動作と相違する。
<< 2 >> Embodiment 2
<< 2-1 >> Configuration.
FIG. 21 is a block diagram schematically showing an example of the configuration of an image processing apparatus according to the second embodiment of the present invention (that is, an apparatus capable of performing the image processing method according to the second embodiment). In FIG. 21, the same reference numerals are given to the same or corresponding components as those shown in FIG. 1 (Embodiment 1). In the image processing apparatus according to the second embodiment, the configuration and operation of the pixel area determination unit 20b in the gradation conversion unit 2 constituting the image processing apparatus are the same as those in the gradation conversion unit 1 in the first embodiment. This is different from the 20 configurations and operations.

図22は、図21に示される画素領域判定手段20bの構成の一例を概略的に示すブロック図である。また、図23(a)及び(b)は、実施の形態2の画像処理装置において画素領域判定手段20bがノイズ成分と判定する画素の一例を示す図であり、同図(a)は、直前及び直後の画素よりも階調値が1階調増加している連続2個の‘1階調変化画素’からなるノイズ成分を示し、同図(b)は、直前及び直後の画素よりも階調値が1階調減少している連続2個の‘1階調変化画素’からなるノイズ成分を示している。図23(a)及び(b)における横軸は水平方向の画素位置を、縦軸は各画素位置における入力画像信号Daの階調値La(x)を示している。   FIG. 22 is a block diagram schematically showing an example of the configuration of the pixel area determination unit 20b shown in FIG. FIGS. 23A and 23B are diagrams illustrating an example of pixels determined by the pixel region determination unit 20b as noise components in the image processing apparatus according to the second embodiment, and FIG. And a noise component composed of two consecutive “one gradation changing pixels” whose gradation value is increased by one gradation from the immediately following pixel, and FIG. A noise component composed of two consecutive “1 gradation changing pixels” whose tone value is reduced by 1 gradation is shown. 23A and 23B, the horizontal axis indicates the horizontal pixel position, and the vertical axis indicates the gradation value La (x) of the input image signal Da at each pixel position.

上記実施の形態1の画像処理装置においては、階調変換手段1内の画素領域判定手段20は図5に示される構成を有し、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(図4(a)及び(b))をノイズ成分と判定していた。このため、上記実施の形態1の画像処理装置においては、画素位置xの注目画素における階調変化量dfの値と、画素位置xの注目画素、その直前の画素位置x−1の隣接画素、注目画素の直後の画素位置x+1の隣接画素のそれぞれにおける階調変化量dfの極性とに基づいて、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行っていた。   In the image processing apparatus of the first embodiment, the pixel area determination unit 20 in the gradation conversion unit 1 has the configuration shown in FIG. 5, and the gradation value of one '1 gradation change pixel' is one. The gradation change (FIGS. 4A and 4B) that increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel is determined as a noise component. For this reason, in the image processing apparatus of the first embodiment, the value of the gradation change amount df in the target pixel at the pixel position x, the target pixel at the pixel position x, the adjacent pixel at the pixel position x−1 immediately before it, Based on the polarity of the gradation change amount df in each of the adjacent pixels at the pixel position x + 1 immediately after the pixel of interest, each pixel is classified into a pixel belonging to the gradation flat area, a pixel belonging to the noise area, and a non-noise gradation change position. It was determined that the pixel was classified into one of the pixels.

しかし、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化だけでなく、連続する複数個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化をもノイズ成分による階調変化と判定することが望ましい場合もある。そこで、実施の形態2の画像処理装置は、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化だけでなく、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化をもノイズ成分による階調変化(高周波変化)と判定するように構成している。   However, not only a gradation change in which the gradation value of one '1 gradation changing pixel' increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel, A noise component also includes a gradation change in which the gradation value of a plurality of consecutive “one gradation changing pixels” increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. In some cases, it may be desirable to determine that the gradation change is caused by. Therefore, in the image processing apparatus of the second embodiment, the gradation value of one “one gradation changing pixel” is increased by one gradation relative to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. In addition to the gradation change that decreases, the gradation value of two consecutive “one gradation change pixels” increases by one gradation relative to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel, or The decreasing gradation change is also determined to be a gradation change (high frequency change) due to a noise component.

実施の形態2の画像処理装置においては、階調変換手段2内の階調変化量検出手段10は、入力画像信号Daにおける水平方向に隣接する画素間の階調変化量dfを求め、また、この階調変化量dfの値を所定の範囲に制限した振幅制限階調変化量Xlmを求める。   In the image processing apparatus of the second embodiment, the gradation change amount detection means 10 in the gradation conversion means 2 obtains the gradation change amount df between adjacent pixels in the horizontal direction in the input image signal Da, and An amplitude limited gradation change amount Xlm is obtained by limiting the value of the gradation change amount df to a predetermined range.

画素領域判定手段20bには、階調変化量検出手段10内の階調変化量算出手段11からの階調変化量dfが入力される。画素領域判定手段20bは、階調変化量dfの値に基づいて、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、画素の領域判定結果を示す領域信号Ar2を生成し出力する。画素領域判定手段20bは、生成された領域信号Ar2を、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50へと出力する。画素領域判定手段20bは、図4(a)及び(b)に示されるような、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(高周波の変化)をノイズ領域と判定するだけでなく、図23(a)及び(b)に示されるような、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(高周波の変化)をもノイズ領域と判定している。   The gradation change amount df from the gradation change amount calculation means 11 in the gradation change amount detection means 10 is input to the pixel region determination means 20b. Based on the value of the gradation change amount df, the pixel area determination unit 20b classifies each pixel as one of a pixel belonging to a flat gradation area, a pixel belonging to a noise area, and a pixel at a non-noise gradation change position. The determination is performed, and an area signal Ar2 indicating the area determination result of the pixel is generated and output. The pixel region determination unit 20b outputs the generated region signal Ar2 to the flat / noise region width determination unit 30, the inclination detection unit 40, and the correction bit generation unit 50. The pixel area determination unit 20b is configured such that the gradation value of one “1 gradation changing pixel” is the gradation value of the immediately preceding pixel and the gradation of the immediately following pixel, as shown in FIGS. A gradation change (high-frequency change) that increases or decreases by one gradation with respect to the tone value is determined not only as a noise region, but also two continuous two as shown in FIGS. The tone value of '1 tone change pixel' is also a noise region where tone change (high frequency change) increases or decreases by 1 tone with respect to the tone value of the immediately preceding pixel and the tone value of the immediately following pixel. It is determined.

図23(a)においては、入力画像信号Daの画素位置xの注目画素おいては階調変化量df=+1であり、注目画素の1画素後の画素位置x+1の画素においては階調変化量df=0であり、注目画素の2画素後の画素位置x+2の画素においては階調変化量df=−1であり、注目画素の1画素前の画素位置x−1の画素においては階調変化量df=0であり、注目画素の2画素前の画素位置x−2の画素においては階調変化量df=0である。また、他の例を示す図23(b)においては、入力画像信号Daの画素位置xの注目画素おいては階調変化量df=−1であり、注目画素の1画素後の画素位置x+1の画素においては階調変化量df=0であり、注目画素の2画素後の画素位置x+2の画素においては階調変化量df=+1であり、注目画素の1画素前の画素位置x−1の画素においては階調変化量df=0であり、注目画素の2画素前の画素位置x−2の画素においては階調変化量df=0である。 In FIG. 23 (a), the input image signal in advance the target pixel at the pixel position x 1 of Da is the gradation variation df = + 1, floor in the pixel of the pixel position x 1 +1 after one pixel of the pixel of interest The tone change amount df = 0, the tone change amount df = −1 at the pixel position x 1 +2 two pixels after the target pixel, and the pixel position x 1 −1 one pixel before the target pixel. The gradation change amount df = 0 in the pixel, and the gradation change amount df = 0 in the pixel at the pixel position x 1 -2 two pixels before the target pixel. Further, in FIG. 23 (b) showing another example, keep the target pixel at the pixel position x 2 of the input image signal Da is the gradation variation df = -1, the pixel position after 1 pixel of interest The gradation change amount df = 0 in the pixel x 2 +1, and the gradation change amount df = + 1 in the pixel position x 2 +2 two pixels after the target pixel, which is one pixel before the target pixel. The gradation change amount df = 0 in the pixel at the pixel position x 2 −1, and the gradation change amount df = 0 in the pixel at the pixel position x 2 -2 two pixels before the target pixel.

図23(a)及び(b)に示されるような、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(高周波の変化)がある場合、階調変化量dfの絶対値は比較的小さい値Nd以下になり、且つ、注目画素の階調変化量の極性と、注目画素の2画素前の画素位置の隣々接画素の階調変化量の極性又は注目画素の2画素後の画素位置の隣々接画素の階調変化量の極性が反対となる変化が存在する。すなわち、図23(a)の場合は、画素位置xの画素における階調変化量df(x)=+1であり、画素位置xの2画素後の画素位置x+2の画素における階調変化量df(x+2)=−1であり、極性が反対となる。また、図23(b)の場合は、画素位置xの画素における階調変化量df(x)=−1であり、画素位置xの2画素後の画素位置x+2の画素における階調変化量df(x+2)=+1であり、極性が反対となる。 As shown in FIGS. 23A and 23B, the gradation value of two consecutive “1 gradation changing pixels” is 1 with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. When there is a gradation change (high-frequency change) that increases or decreases by the gradation, the absolute value of the gradation change amount df is less than a relatively small value Nd, and the polarity of the gradation change amount of the pixel of interest There is a change in which the polarity of the gradation change amount of the adjacent pixel adjacent to the pixel position two pixels before the target pixel or the polarity of the gradation change amount of the adjacent pixel adjacent to the pixel position two pixels after the target pixel exists. To do. That is, in the case of FIG. 23 (a), a tone variation df (x 1) = + 1 at the pixel the pixel position x 1, floor at the pixel position x 1 +2 pixel after 2 pixels of the pixel position x 1 The tone change amount df (x 1 +2) = − 1 and the polarity is opposite. In the case of FIG. 23 (b), the gradation variation df (x 2) = in the pixel the pixel position x 2 - 1, at the pixel position x 2 +2 pixels after two pixels of the pixel position x 2 The gradation change amount df (x 2 +2) = + 1, and the polarity is opposite.

よって、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化がある場合における極性の判定と同様の判定が可能である。実施の形態2においては、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化について、階調変化量dfの絶対値|df|の値とともに、各画素とその前後の隣々接に位置する画素における階調変化量dfの極性により判定できる。   Therefore, in the case where there is a gradation change in which the gradation value of one '1 gradation changing pixel' increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. The same determination as the polarity determination is possible. In the second embodiment, the gradation value of two consecutive “1 gradation changing pixels” increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. The tone change can be determined by the absolute value | df | of the gradation change amount df and the polarity of the gradation change amount df in each pixel and the pixels located adjacent to each other before and after the pixel.

実施の形態2の画素領域判定手段20bは、画素位置xの注目画素、その直前の画素位置x−1の隣接画素、さらにその直前の画素位置x−2の隣々接画素、注目画素の直後の画素位置x+1の隣接画素、さらにその直後の画素位置x+2の隣々接画素のそれぞれにおける階調変化量dfから、図4(a)及び(b)並びに図23(a)及び(b)に示されるようなノイズ成分となる画素の領域を判定し、また、階調変化量df=0となる階調平坦領域の画素、階調平坦領域及びノイズ領域以外の非ノイズ階調変化位置となる画素を判定して、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行うことで、この画素の領域判定結果を示す領域信号Ar2を生成し出力する。   The pixel area determination unit 20b according to the second embodiment includes a pixel of interest at the pixel position x, an adjacent pixel at the pixel position x-1 immediately before the pixel, an adjacent pixel at the pixel position x-2 immediately before, and immediately after the pixel of interest. 4 (a) and (b) and FIGS. 23 (a) and (b) from the gradation change amount df in the adjacent pixel at the pixel position x + 1 and the adjacent pixel at the pixel position x + 2 immediately thereafter. A pixel region that is a noise component as shown is determined, and a pixel in a gray level flat region where the gray level change amount df = 0, a gray level flat region, and a non-noise gray level change position other than the noise region. By determining the pixel and classifying each pixel as one of a pixel belonging to a flat gradation region, a pixel belonging to a noise region, or a pixel at a non-noise gradation change position, the region determination result of this pixel Generate and output area signal Ar2 indicating That.

詳細に説明すれば、画素領域判定手段20bは、まず、階調変化量検出手段10からの階調変化量dfに対し画素遅延するなどして、画素位置xの注目画素の階調変化量df(x)、その直前の画素位置x−1の画素(直前隣接画素)の階調変化量df(x−1)、さらにその直前の画素位置x−2の画素(直前隣々接画素)の階調変化量df(x−2)、注目画素の直後の画素位置x+1の画素(直後隣接画素)の階調変化量df(x+1)、さらにその直後の画素位置x+2の画素(直後隣々接画素)の階調変化量df(x+2)の、合計5画素の範囲における階調変化量dfを得て、注目画素の階調変化量df(x)の大きさ、並びに、注目画素の階調変化量df(x)の極性と、隣接画素及び隣々接画素の階調変化量df(x−1)、df(x−2)、df(x+1)、df(x+2)の極性との関係から、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行う。   More specifically, the pixel region determination unit 20b first delays the pixel with respect to the gradation change amount df from the gradation change amount detection unit 10, for example, and thereby the gradation change amount df of the target pixel at the pixel position x. (X), the gradation change amount df (x−1) of the pixel at the immediately preceding pixel position x−1 (immediately adjacent pixel), and the pixel at the immediately preceding pixel position x−2 (immediately adjacent pixel). The gradation change amount df (x−2), the gradation change amount df (x + 1) of the pixel at the pixel position x + 1 immediately after the pixel of interest (immediately adjacent pixel), and the pixel at the pixel position x + 2 immediately after it (adjacent immediately adjacent to each other) The gradation change amount df in the range of a total of five pixels of the gradation change amount df (x + 2) of the pixel) is obtained, the magnitude of the gradation change amount df (x) of the target pixel, and the gradation of the target pixel The polarity of the change amount df (x) and the gradation change amount df (x−1) of the adjacent pixel and the adjacent pixel From the relationship with the polarities of df (x−2), df (x + 1), and df (x + 2), each pixel is classified into a pixel belonging to a flat gradation region, a pixel belonging to a noise region, and a pixel at a non-noise gradation change position. Judgment to classify into either.

1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(図4(a)及び(b)参照)となるノイズ成分の場合と、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(図23(a)及び(b)参照)となるノイズ成分の場合においては、ノイズ成分を含む画素において、階調変化量dfの絶対値は比較的小さい値Nd以下となり、且つ、上記画素範囲における階調変化量dfのうち前後いずれかに極性が反対となる変化が存在する。   A gradation change in which the gradation value of one “1 gradation changing pixel” increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel (FIG. 4A). And (b)), and the tone value of two consecutive “1 tone changing pixels” is the first level relative to the tone value of the immediately preceding pixel and the tone value of the immediately following pixel. In the case of a noise component resulting in a tone change that increases or decreases by a tone (see FIGS. 23A and 23B), the absolute value of the tone change amount df is a relatively small value in a pixel including the noise component. There is a change that is less than or equal to Nd and that has a polarity opposite to either the front or rear of the gradation change amount df in the pixel range.

よって、画素領域判定手段20bは、画素位置xの注目画素、直前隣接画素、直前隣々接画素、直後隣接画素、直後隣々接画素における階調変化量df(x)、df(x−1)、df(x−2)、df(x+1)、df(x+2)を得た後、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類するための判定を、以下の判定B1〜B3により行い、判定結果を示す領域信号Ar2を出力する。   Therefore, the pixel region determination unit 20b determines the gradation change amounts df (x) and df (x−1) in the target pixel at the pixel position x, the immediately adjacent pixel, the immediately adjacent pixel, the immediately adjacent pixel, and the immediately adjacent pixel. ), Df (x−2), df (x + 1), and df (x + 2), each pixel is divided into a pixel belonging to the gradation flat region, a pixel belonging to the noise region, and a pixel at the non-noise gradation change position. Determination to classify into any one of the following determinations B1 to B3 is performed, and an area signal Ar2 indicating the determination result is output.

(判定B1)
画素位置xの注目画素における階調変化量df(x)が、df(x)=0である場合には、注目画素は、階調平坦領域に属する画素であり、領域信号Ar2は、Ar2=0になる。
(Decision B1)
When the gradation change amount df (x) in the target pixel at the pixel position x is df (x) = 0, the target pixel is a pixel belonging to the flat gradation region, and the region signal Ar2 is represented by Ar2 = 0.

(判定B2)
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x−1)の極性と反対極性である場合(隣接画素に高周波成分を持つ場合)、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x+1)の極性と反対極性である場合(隣接画素に高周波成分を持つ場合)、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x−2)の極性と反対極性である場合(隣接画素に高周波成分を持つ場合)、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x+2)の極性と反対極性である場合(隣接画素に高周波成分を持つ場合)には、
注目画素は、ノイズ領域に属する画素であり、領域信号Ar2は、Ar2=1になる。
(Decision B2)
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( x-1) the opposite polarity (when the adjacent pixel has a high frequency component), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( x + 1) the opposite polarity (when the adjacent pixel has a high frequency component), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( x-2) When the polarity is opposite to the polarity (when the adjacent pixel has a high frequency component), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( When the polarity is opposite to the polarity of x + 2) (when the adjacent pixel has a high frequency component),
The target pixel is a pixel belonging to the noise region, and the region signal Ar2 is Ar2 = 1.

(判定B3)
判定B1において、注目画素が階調平坦領域に属する画素ではないと判定され、且つ、判定B2において、注目画素が、ノイズ領域に属する画素ではないと判定された場合には、画素位置xの注目画素は、非ノイズ階調変化位置の画素であり、領域信号Ar2は、Ar2=2になる。
なお、領域信号Ar2の値は、上記値に限るものではなく、各領域判定結果が示される値であれば、他の値であってもよい。
(Decision B3)
If it is determined in the determination B1 that the target pixel is not a pixel belonging to the flat gradation area, and it is determined in the determination B2 that the target pixel is not a pixel belonging to the noise area, the target pixel position x The pixel is a pixel at a non-noise gradation change position, and the area signal Ar2 is Ar2 = 2.
The value of the area signal Ar2 is not limited to the above value, and may be other values as long as each area determination result is indicated.

上記判定B1〜B3を行うことによって、図23(a)に示されるように、画素位置xの画素と画素位置x+2の画素とがノイズ領域に属する画素と判定され、図23(b)に示されるように、画素位置xの画素と画素位置x+2の画素とがノイズ領域に属する画素と判定される。 By performing the determination B1 to B3, as shown in FIG. 23 (a), the pixels of the pixel position x 1 and the pixel in pixel position x 1 +2 is determined that the pixels belonging to the noise region, FIG. 23 (b ), The pixel at the pixel position x 2 and the pixel at the pixel position x 2 +2 are determined to belong to the noise region.

図22には、上記判定B1〜B3を行う画素領域判定手段20bの構成の一例が示されている。図22において、図5(実施の形態1)に示される構成と同一又は対応する構成には、同じ符号を付す。図22に示される画素領域判定手段20bは、画素変化量抽出手段21bの構成、隣接位置極性判定手段27,28を備えている点、及び合成手段29の構成が、図5に示される画素領域判定手段20と相違する。   FIG. 22 shows an example of the configuration of the pixel area determination unit 20b that performs the determinations B1 to B3. In FIG. 22, the same reference numerals are given to the same or corresponding components as those shown in FIG. 5 (Embodiment 1). The pixel area determination means 20b shown in FIG. 22 is the pixel area shown in FIG. This is different from the determination unit 20.

図22において、画素領域判定手段20b内の画素変化量抽出手段21bは、例えば、4つの画素遅延手段210〜213により構成される。画素変化量抽出手段21bに階調変化量検出手段10からの階調変化量dfが入力されると、画素変化量抽出手段21b内の画素遅延手段210〜213は、階調変化量dfを画素遅延して、画素位置xの注目画素における階調変化量df(x)、画素位置x−2における階調変化量df(x−2)、画素位置x−1における階調変化量df(x−1)、画素位置x+1における階調変化量df(x+1)、画素位置x+2における階調変化量df(x+2)を抽出する。   In FIG. 22, the pixel change amount extraction unit 21 b in the pixel area determination unit 20 b includes, for example, four pixel delay units 210 to 213. When the gradation change amount df from the gradation change amount detection means 10 is input to the pixel change amount extraction means 21b, the pixel delay means 210 to 213 in the pixel change amount extraction means 21b convert the gradation change amount df into the pixel. Delayed, the gradation change amount df (x) at the pixel of interest at pixel position x, the gradation change amount df (x-2) at pixel position x-2, and the gradation change amount df (x) at pixel position x-1. -1), the gradation change amount df (x + 1) at the pixel position x + 1 and the gradation change amount df (x + 2) at the pixel position x + 2 are extracted.

絶対値レベル比較手段22は、画素位置xの注目画素における階調変化量df(x)が入力され、階調変化量の絶対値|df(x)|を所定の閾値(0、及び、ノイズ成分における階調差に相当する比較的小さい値Nd(例えば、最小階調差の2倍の値、すなわち、Nd=2))とを比較して、階調変化量df(x)の絶対値のレベルを判定し、結果を示す比較結果nlfを求める。また、隣接位置極性判定手段23は、階調変化量df(x)と階調変化量df(x−1)とが入力され、階調変化量df(x)の極性と階調変化量df(x−1)の極性とが反対極性になる変化(高周波成分の変化)を持つかを判定し、判定結果として、2値化した値を示す判定結果pf1を求める。隣接位置極性判定手段24は、階調変化量df(x)と階調変化量df(x+1)とが入力され、階調変化量df(x)の極性と階調変化量df(x+1)の極性とが反対極性になる変化(高周波成分の変化)を持つかを判定し、判定結果として、2値化した値を示す判定結果pf2を求める。   The absolute value level comparison means 22 receives the gradation change amount df (x) at the target pixel at the pixel position x, and uses the absolute value | df (x) | of the gradation change amount as a predetermined threshold value (0 and noise). The absolute value of the gradation change amount df (x) is compared with a relatively small value Nd corresponding to the gradation difference in the component (for example, a value twice the minimum gradation difference, ie, Nd = 2). The comparison result nlf indicating the result is obtained. The adjacent position polarity determination means 23 receives the gradation change amount df (x) and the gradation change amount df (x−1), and the polarity of the gradation change amount df (x) and the gradation change amount df. It is determined whether there is a change (high-frequency component change) in which the polarity of (x-1) is opposite, and a determination result pf1 indicating a binarized value is obtained as a determination result. The adjacent position polarity determination means 24 receives the gradation change amount df (x) and the gradation change amount df (x + 1), and the polarity of the gradation change amount df (x) and the gradation change amount df (x + 1). It is determined whether there is a change in which the polarity is opposite (change in high-frequency component), and a determination result pf2 indicating a binarized value is obtained as a determination result.

また、隣接位置極性判定手段27は、階調変化量df(x)と階調変化量df(x−2)とが入力され、階調変化量df(x)の極性と階調変化量df(x−2)の極性とが反対極性になる変化(高周波成分の変化)を持つかを判定し、判定結果として、2値化した値を示す判定結果pf3を求める。隣接位置極性判定手段28は、階調変化量df(x)と階調変化量df(x+2)とが入力され、階調変化量df(x)の極性と階調変化量df(x+2)の極性とが反対極性になる変化(高周波成分の変化)を持つかを判定し、判定結果として、2値化した値を示す判定結果pf4を求める。   The adjacent position polarity determination unit 27 receives the gradation change amount df (x) and the gradation change amount df (x−2), and the polarity of the gradation change amount df (x) and the gradation change amount df. It is determined whether there is a change (high-frequency component change) in which the polarity of (x-2) is opposite, and a determination result pf3 indicating a binarized value is obtained as a determination result. The adjacent position polarity determination unit 28 receives the gradation change amount df (x) and the gradation change amount df (x + 2), and the polarity of the gradation change amount df (x) and the gradation change amount df (x + 2). It is determined whether there is a change in which the polarity is opposite (change in high-frequency component), and a determination result pf4 indicating a binarized value is obtained as a determination result.

隣接位置極性判定手段27は、階調変化量df(x)と階調変化量df(x−2)の極性をもとに、画素位置xと2画素離れた画素位置x−2で、反対方向の変化となる高周波成分の変化を持つか、すなわち、階調変化量df(x)と階調変化量df(x−2)の極性が反対かを判定し、画素位置xにおける判定結果として、2値化した値を示す判定結果pf3を求める。判定結果pf3の値は、隣接位置極性判定手段23における判定結果pf1の場合と同様に得られ、例えば、階調変化量df(x)と階調変化量df(x−2)の極性が反対極性の場合には、値‘1’(pf3=1)とし、同一の場合は値‘0’(pf3=0)とする。なお、この判定結果pf3の値は、これに限るものではなく、符号の不一致か否かが示されれば、他の値であってもよい。   The adjacent position polarity determination means 27 is opposite at the pixel position x-2 that is two pixels away from the pixel position x based on the polarity of the gradation change amount df (x) and the gradation change amount df (x-2). It is determined whether there is a change in the high-frequency component that changes the direction, that is, whether the polarity of the gradation change amount df (x) and the gradation change amount df (x-2) are opposite, and the determination result at the pixel position x is A determination result pf3 indicating a binarized value is obtained. The value of the determination result pf3 is obtained similarly to the case of the determination result pf1 in the adjacent position polarity determination unit 23. For example, the polarity of the gradation change amount df (x) and the gradation change amount df (x-2) are opposite. In the case of polarity, the value is “1” (pf3 = 1), and in the case of the same, the value is “0” (pf3 = 0). Note that the value of the determination result pf3 is not limited to this, and may be another value as long as it indicates whether or not the codes do not match.

同様に、隣接位置極性判定手段28は、階調変化量df(x)と階調変化量df(x+2)の極性をもとに、画素位置xと2画素離れた画素位置x+2で、反対方向の変化となる高周波成分の変化を持つか、すなわち、階調変化量df(x)と階調変化量df(x+2)の極性が反対かを判定し、画素位置xにおける判定結果として、2値化した値を示す判定結果pf4を求める。判定結果pf3の値は、隣接位置極性判定手段23における判定結果pf1の場合と同様に得られ、例えば、階調変化量df(x)と階調変化量df(x−2)の極性が反対極性の場合には、値‘1’(pf4=1)とし、同一の場合は値‘0’(pf4=0)とする。なお、この判定結果pf4の値は、これに限るものではなく、符号の不一致か否かが示されれば、他の値であってもよい。   Similarly, the adjacent position polarity determination unit 28 uses the polarities of the gradation change amount df (x) and the gradation change amount df (x + 2) at the pixel position x + 2 that is two pixels away from the pixel position x in the opposite direction. Whether the polarity of the gradation change amount df (x) is opposite to the polarity of the gradation change amount df (x + 2). As a determination result at the pixel position x, binary is determined. The determination result pf4 indicating the converted value is obtained. The value of the determination result pf3 is obtained similarly to the case of the determination result pf1 in the adjacent position polarity determination unit 23. For example, the polarity of the gradation change amount df (x) and the gradation change amount df (x-2) are opposite. In the case of polarity, the value is “1” (pf4 = 1), and in the case of the same, the value is “0” (pf4 = 0). Note that the value of the determination result pf4 is not limited to this, and may be another value as long as it indicates whether the codes do not match.

合成手段29には、隣接位置極性判定手段23,24からの判定結果pf1,pf2と、隣接位置極性判定手段27,28からの判定結果pf3,pf4とが入力され、判定結果pf1〜pf4を合成し、画素位置xにおける階調変化量df(x)に対し、隣接画素と隣々接画素におけるいずれかの階調変化量と極性が反対となる場合の極性判定結果pofを求める。合成手段29は、例えば、ORゲートで構成することで、判定結果pf1〜pf4のうちのいずれかが‘1’となる場合を、極性判定結果pof=1として得る。これにより、画素位置xの階調変化量df(x)が、画素位置xの前又は後の隣接画素と隣々接画素におけるいずれかの階調変化量と極性が反対となる場合を判定した結果が得られる。   The combination means 29 receives the determination results pf1 and pf2 from the adjacent position polarity determination means 23 and 24 and the determination results pf3 and pf4 from the adjacent position polarity determination means 27 and 28, and combines the determination results pf1 to pf4. Then, the polarity determination result pof is obtained when the polarity is opposite to the gradation change amount in any of the adjacent pixels and the adjacent pixels with respect to the gradation change amount df (x) at the pixel position x. The synthesizer 29 is configured by, for example, an OR gate, and obtains the polarity determination result pof = 1 when any of the determination results pf1 to pf4 is “1”. As a result, it was determined that the gradation change amount df (x) at the pixel position x is opposite in polarity to any one of the gradation change amount in the adjacent pixel and the adjacent pixel before or after the pixel position x. Results are obtained.

領域信号生成手段26は、絶対値レベル比較手段22からの比較結果nlfと、合成手段29からの極性判定結果pofが入力され、上記判定B1〜B3による画素位置xの注目画素における画素領域を判定して、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、各領域判定結果を示す領域信号Ar2を生成し出力する。   The region signal generation unit 26 receives the comparison result nlf from the absolute value level comparison unit 22 and the polarity determination result pof from the synthesis unit 29, and determines the pixel region at the target pixel at the pixel position x based on the determinations B1 to B3. Then, it is determined that each pixel is classified into one of the pixel belonging to the flat gradation region, the pixel belonging to the noise region, and the pixel at the non-noise gradation change position, and the region signal Ar2 indicating each region determination result is generated. Then output.

以上により、画素領域判定手段20bは、階調変化量dfから、注目画素の階調変化量dfと、注目画素の極性、隣接画素の極性、隣々接画素の極性に基づく判定により、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、画素の領域判定結果を示す領域信号Ar2を得ることができる。この画素領域は、ノイズ成分による階調変化を、階調変化量dfの値の大きさ、注目画素の極性、隣接画素の極性、隣々接画素の極性で判定するので、より精度よく画素領域を判定することができる。   As described above, the pixel region determination unit 20b determines each pixel based on the gradation change amount df based on the gradation change amount df of the target pixel, the polarity of the target pixel, the polarity of the adjacent pixel, and the polarity of the adjacent pixel. Can be classified into any one of a pixel belonging to a flat gradation region, a pixel belonging to a noise region, and a pixel at a non-noise gradation change position, and a region signal Ar2 indicating the region determination result of the pixel can be obtained. In this pixel area, the gradation change due to the noise component is determined by the magnitude of the gradation change amount df, the polarity of the target pixel, the polarity of the adjacent pixel, and the polarity of the adjacent pixel. Can be determined.

なお、図22の画素変化量抽出手段21bにおいては、階調変化量dfを遅延して抽出するよう構成したが、階調変化量検出手段10において階調変化量dfを求める際に、画素位置xとその隣接画素及び隣々接画素における階調変化量を求めることで得てもよく、この場合は画素変化量抽出手段21bにおける画素遅延を省略することができる。また、上記判定B1〜B2においては、階調変化量dfの値と、画素位置x、隣接画素位置x−1,x+1、隣々接画素位置x−2,x+2における階調変化量の極性とから、各画素が属する領域を判定するので、隣接画素位置x−1,x+1及び隣々接画素位置x−2,x+2における階調変化量を求めずに、極性のみを求める構成を採用してもよい。   The pixel change amount extraction unit 21b in FIG. 22 is configured to extract the gradation change amount df with a delay. However, when the gradation change amount detection unit 10 determines the gradation change amount df, It may be obtained by obtaining the gradation change amount of x and its adjacent pixels and adjacent pixels. In this case, the pixel delay in the pixel change amount extraction means 21b can be omitted. In the determinations B1 and B2, the value of the gradation change amount df and the polarity of the gradation change amount at the pixel position x, the adjacent pixel positions x-1, x + 1, and the adjacent pixel positions x-2, x + 2 Therefore, the area to which each pixel belongs is determined, and therefore, a configuration is adopted in which only the polarity is obtained without obtaining the gradation change amounts at the adjacent pixel positions x-1, x + 1 and the adjacent pixel positions x-2, x + 2. Also good.

《2−2》動作.
画素領域判定手段20bにおける画素領域の判定結果である領域信号Ar2は、実施の形態1における領域信号Arと同様に、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50へと出力される。平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50は、領域信号Ar2に基づいて、非ノイズ階調変化位置以降における平坦・ノイズ領域幅を予測した平坦・ノイズ領域幅データ予測値dstと、階調値の傾き(傾きデータ値Ksl)と、傾きデータ値Kslから算出される補正ビットデータCdを求める。そして、画素値演算手段92において入力画像信号Daに補正ビットデータCdを付加して画素値を変換し、ビット数が拡張された出力画像信号Dbを生成する。これらの構成及び動作は、上記実施の形態1の場合と同じである。
<< 2-2 >> Operation.
Similar to the area signal Ar in the first embodiment, the area signal Ar2 that is the determination result of the pixel area in the pixel area determination unit 20b is the flat / noise area width determination unit 30, the inclination detection unit 40, and the correction bit generation unit 50. Is output. The flat / noise area width determination means 30, the inclination detection means 40, and the correction bit generation means 50 predict the flat / noise area width after the non-noise gradation change position based on the area signal Ar2. The correction bit data Cd calculated from the data prediction value dst, the gradient of the gradation value (gradient data value Ksl), and the gradient data value Ksl is obtained. Then, the pixel value calculation unit 92 adds the correction bit data Cd to the input image signal Da to convert the pixel value, and generates an output image signal Db with an extended number of bits. These configurations and operations are the same as those in the first embodiment.

実施の形態2による画像処理装置において、階調変化量dfを求め、この階調変化量に基づき、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、領域判定結果と階調変化量dfから階調変化における平坦・ノイズ領域幅と傾きを得て補正ビットデータを生成し、入力画像信号Daに補正ビットデータを付加することで階調数が拡張された出力画像信号Dbを出力する動作は、上記実施の形態1の説明(図15及び図16を参照した説明)における動作と同様である。   In the image processing apparatus according to the second embodiment, the gradation change amount df is obtained, and on the basis of the gradation change amount, each pixel is classified into a pixel belonging to a flat gradation region, a pixel belonging to a noise region, and a non-noise gradation change position. Is determined, the correction bit data is generated by obtaining the flatness / noise area width and inclination in the gradation change from the area determination result and the gradation change amount df, and the correction bit data is generated in the input image signal Da. The operation of outputting the output image signal Db whose number of gradations is expanded by adding data is the same as the operation in the description of the first embodiment (the description with reference to FIGS. 15 and 16).

また、画素領域判定手段20bにおける階調変化量に基づき、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定についても、上記実施の形態1の説明(図17のフローチャートを参照した説明)と同様である。但し、実施の形態2においては、図17中のステップS120及びS121において求める画素の階調変化量及びその極性は、画素位置xの注目画素とその前後各2画素の範囲の5画素範囲に位置する画素における階調変化量df(x)、df(x−1)、df(x+1)、df(x−2)、df(x+2)となり、極性の判定を行うステップS122からステップS129の処理を、階調変化量df(x−2)とdf(x+2)に対しても行う点において、上記実施の形態1の場合と相違する。   Also, the determination of classifying each pixel as one of a pixel belonging to a flat gradation region, a pixel belonging to a noise region, or a pixel at a non-noise gradation change position based on the gradation change amount in the pixel region determination unit 20b. This is the same as the description of the first embodiment (the description with reference to the flowchart of FIG. 17). However, in the second embodiment, the gradation change amount and the polarity of the pixel obtained in steps S120 and S121 in FIG. 17 are located in the five-pixel range of the target pixel at the pixel position x and the two pixels before and after it. The gradation change amounts df (x), df (x−1), df (x + 1), df (x−2), and df (x + 2) in the pixel to be processed, and the processing from step S122 to step S129 for determining the polarity is performed. The second embodiment is different from the first embodiment in that the gradation change amounts df (x−2) and df (x + 2) are also performed.

《2−3》効果.
以上に説明したように、実施の形態2の画像処理装置又は画像処理方法においては、階調変化量dfから、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化だけでなく、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化をもノイズ成分として判定するように、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、その判定結果を示す領域信号Ar2に基づいて平坦・ノイズ領域幅データ予測値dstを求め、非ノイズ階調変化位置(Ar2=2)における振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstとから傾きデータ値Kslを得ている。したがって、実施の形態2の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれる場合においても、画像のエッジの階調変化とその次に現れる画像のエッジの階調変化との間に存在するノイズ成分による階調変化を、ノイズ成分による階調変化であると一層正確に判定できるので、非ノイズ階調変化位置とその次に現れる非ノイズ階調変化位置との間の幅を示す平坦・ノイズ領域幅を正確に検出でき、ノイズ成分による階調変化と区別できるので、傾きデータ値Kslを、ノイズ成分による影響を受けることなく算出できる。また、実施の形態2の画像処理装置又は画像処理方法によれば、回路規模を大幅に増やすことなく、傾きデータ値Kslによる階調値で順次変化する補正値が得られ、緩やかに階調値が変化する画素領域や非ノイズ階調変化位置における適切な補正ビットデータCdを得て、画像信号の階調変化をより滑らかに変換し、ビット数を拡張できる。また、得られた補正ビットデータCdを入力画像信号Daの階調値に対し付加して階調数を拡張するため、実時間で処理でき、ノイズ成分による微少な変化を残したまま、階調変化がより滑らかに変換できる。
<< 2-3 >> Effect.
As described above, in the image processing apparatus or the image processing method according to the second embodiment, the gradation value of one “1 gradation changing pixel” is the gradation of the immediately preceding pixel from the gradation change amount df. In addition to the gradation change that increases or decreases by one gradation with respect to the value and the gradation value of the immediately following pixel, the gradation value of two consecutive “1 gradation changing pixels” is the gradation value of the immediately preceding pixel. In addition, each pixel is classified into a pixel belonging to a flat gradation region, a pixel belonging to a noise region, so that a gradation change that increases or decreases by one gradation with respect to the gradation value of the immediately following pixel is also determined as a noise component. It is determined that the pixel is classified into one of the non-noise gradation change positions, the flat / noise area width data predicted value dst is obtained based on the area signal Ar2 indicating the determination result, and the non-noise gradation change position (Ar2 = 2) Amplitude-limited gradation change amount Xlm and flat / noise area width data The slope data value Ksl is obtained from the data predicted value dst. Therefore, according to the image processing apparatus or the image processing method of the second embodiment, even when the input image signal Da contains a noise component, the gradation change of the edge of the image and the gradation of the edge of the image appearing next Since the gradation change due to the noise component existing between the change and the gradation change due to the noise component can be more accurately determined, the non-noise gradation change position and the non-noise gradation change position that appears next Since the flat / noise area width indicating the width between them can be accurately detected and can be distinguished from the gradation change due to the noise component, the slope data value Ksl can be calculated without being affected by the noise component. In addition, according to the image processing apparatus or the image processing method of the second embodiment, the correction value that sequentially changes with the gradation value based on the inclination data value Ksl can be obtained without increasing the circuit scale significantly, and the gradation value gradually increases. By obtaining appropriate correction bit data Cd in the pixel region where the angle changes and the non-noise gradation change position, the gradation change of the image signal can be converted more smoothly and the number of bits can be expanded. In addition, since the obtained correction bit data Cd is added to the gradation value of the input image signal Da to extend the number of gradations, the number of gradations can be processed in real time, and the gradation can be maintained while leaving a slight change due to noise components. Changes can be converted more smoothly.

このように、実施の形態2の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれる場合においても、実時間で回路規模を大幅に増やすことなく、緩やかに階調値が変化する画像領域に対し、ノイズ成分による誤検出なく、階調変化をより適切に検出したことによる補正ビットデータCdが得られる。このため、補正ビットデータにより画像信号の階調数を拡張し、階調変換された出力画像信号Dbにおいて、画像のディテールが失われたり、鮮鋭度が損なわれたりすることはなく、量子化ノイズ又は擬似輪郭が低減され、階調変化が滑らかで、高品位な階調数を拡張した画像信号が得られる。   As described above, according to the image processing apparatus or the image processing method of the second embodiment, even when a noise component is included in the input image signal Da, the gradation is gradually increased without significantly increasing the circuit scale in real time. Correction bit data Cd obtained by more appropriately detecting a gradation change can be obtained without erroneous detection due to a noise component in an image region whose value changes. For this reason, the number of gradations of the image signal is expanded by the correction bit data, and the image details are not lost or the sharpness is not lost in the gradation-converted output image signal Db. Alternatively, the pseudo contour is reduced, the gradation change is smooth, and an image signal with an extended number of gradations can be obtained.

《2−4》変形例.
上記説明においては、画素領域判定手段20bは、階調変化量dfの大きさから、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、領域判定結果として3種の領域信号Ar2=0,1,2を生成する場合を説明したが、図21において領域信号Ar2を用いる平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50は、非ノイズ階調変化位置(Ar2=2)と、階調平坦領域及びノイズ領域(Ar2=0,1)の2通りで処理を切り換えているので、領域判定結果を2値で示す領域信号Ar1とすることも可能である。例えば、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定の結果から、階調平坦領域とノイズ領域においては領域信号Ar1=0、非ノイズ階調変化位置においては領域信号Ar1=1というように構成し、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50における処理を領域信号Ar1で切り換えるようにしてもよい。この場合にも、同様に構成でき、同様の効果を奏することができる。
<< 2-4 >> Modifications.
In the above description, the pixel area determination unit 20b determines whether each pixel is a pixel belonging to the flat gradation area, a pixel belonging to the noise area, or a pixel at the non-noise gradation change position based on the magnitude of the gradation change amount df. Although the case where the classification is performed and three types of region signals Ar2 = 0, 1, and 2 are generated as region determination results has been described, the flat / noise region width determination unit 30 using the region signal Ar2 in FIG. Since the inclination detection unit 40 and the correction bit generation unit 50 switch processing in two ways: a non-noise gradation change position (Ar2 = 2), a gradation flat area, and a noise area (Ar2 = 0, 1). It is also possible to use a region signal Ar1 indicating the region determination result as a binary value. For example, based on the determination result that each pixel is classified as one of the pixel belonging to the flat gradation region, the pixel belonging to the noise region, or the pixel at the non-noise gradation change position, the region signal is output in the flat gradation region and the noise region. Ar1 = 0 and the region signal Ar1 = 1 at the non-noise gradation change position, and processing in the flat / noise region width determination unit 30, the inclination detection unit 40, and the correction bit generation unit 50 is performed by the region signal Ar1. You may make it switch. Also in this case, it can be configured in the same manner and can provide the same effect.

また、上記説明においては、階調変換手段2は入力画像信号Daの水平方向における階調値の変化において、水平方向の階調変化量を検出して階調値に対する補正ビットデータCdを生成し、補正ビットデータCdを画像信号に付加することで階調変換して量子化ノイズを低減する構成として説明したが、入力画像信号Daの垂直方向(画面表示走査線の配列方向)の階調変化量を検出し、補正ビットデータCdを生成して画像信号に付加し、垂直方向の階調値の変化を滑らかなものとしてもよく、同様の効果を奏することができる。この場合は、階調変化量検出手段10においては、注目画素と、該注目画素の隣接画素(垂直方向に1つ上の走査線上の隣接画素)との間の差分により階調変化量dfを求め、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50内における各信号の1画素分の遅延処理を1ライン分(1水平走査期間分)の遅延処理として、垂直方向に隣接して配置された画素における階調値の変化を検出するように構成すればよい。   In the above description, the gradation converting means 2 detects the amount of gradation change in the horizontal direction and generates correction bit data Cd for the gradation value in the change of the gradation value in the horizontal direction of the input image signal Da. In the above description, the correction bit data Cd is added to the image signal to convert the gradation to reduce quantization noise. However, the gradation change in the vertical direction of the input image signal Da (the arrangement direction of the screen display scanning lines) By detecting the amount, generating the correction bit data Cd and adding it to the image signal, the change of the gradation value in the vertical direction may be smooth, and the same effect can be obtained. In this case, the gradation change amount detection means 10 calculates the gradation change amount df based on the difference between the target pixel and the adjacent pixel of the target pixel (adjacent pixel on the scanning line one level higher in the vertical direction). The delay processing for one pixel of each signal in the flat / noise area width determination means 30, the inclination detection means 40, and the correction bit generation means 50 is obtained as the delay processing for one line (for one horizontal scanning period). What is necessary is just to comprise so that the change of the gradation value in the pixel arrange | positioned adjacent to the direction may be detected.

なお、実施の形態2において、上記以外の点は、上記実施の形態1の場合と同じである。   In the second embodiment, points other than those described above are the same as those in the first embodiment.

《3》実施の形態3.
《3−1》構成.
図24は、本発明の実施の形態3による画像処理装置(すなわち、実施の形態3による画像処理方法を実施することができる装置)の構成の一例を概略的に示すブロック図である。図24において、図1(実施の形態1)に示される構成と同一又は対応する構成には、同じ符号を付す。実施の形態3の画像処理装置は階調変換手段3を有し、階調変換手段3内の画素領域判定手段70の構成及び動作が、実施の形態1における階調変換手段1内の画素領域判定手段20の構成及び動作と相違する。
<< 3 >> Embodiment 3
<< 3-1 >> Configuration.
FIG. 24 is a block diagram schematically showing an example of the configuration of an image processing apparatus according to the third embodiment of the present invention (that is, an apparatus capable of performing the image processing method according to the third embodiment). 24, the same reference numerals are given to the same or corresponding components as those shown in FIG. 1 (Embodiment 1). The image processing apparatus according to the third embodiment includes the gradation conversion unit 3, and the configuration and operation of the pixel region determination unit 70 in the gradation conversion unit 3 are the same as the pixel region in the gradation conversion unit 1 in the first embodiment. This is different from the configuration and operation of the determination means 20.

既に説明したように、ノイズ成分による階調値の変化は、数画素の範囲の狭い領域で階調値が増減する高周波の変化であり、階調差は比較的小さい振幅となる。上記実施の形態1及び2においては、注目画素の階調変化量dfの値と、注目画素に隣接又は隣々接する画素の範囲内における階調変化量の極性とから、1個の‘1階調変化画素’(図4(a)及び(b))及び連続2個の‘1階調変化画素’(図23(a)及び(b))を階調値が増減する高周波の変化であるノイズ成分と判定していた。ここで、図4(a)及び(b)並びに図23(a)及び(b)に示されるような、数画素の範囲で階調値が増減する高周波の変化は、その数画素の範囲において、階調値の増加と減少の逆方向の変化が存在する。したがって、数画素の範囲の階調変化量を平均化(平滑化)すると階調変化量の低周波成分が得られるので、ノイズ成分が存在する画素においては、平滑化処理の出力は高周波成分が除かれて0に近づく。一方、ある程度の幅を持ち階調値が変化して隣接画素が平坦である場合や、近隣の変化が同一方向の階調値の変化であれば、平滑化処理の出力は0より大きく、階調変化量の絶対値の大きさに相当する値が得られる。また、階調変化量の低周波成分であるので、平滑化処理の結果の極性(正負の符号)は、元の階調変化量の極性と同じになる。   As already described, the change in gradation value due to the noise component is a high-frequency change in which the gradation value increases or decreases in a narrow region of several pixels, and the gradation difference has a relatively small amplitude. In the first and second embodiments, one '1st floor is calculated from the value of the gradation change amount df of the target pixel and the polarity of the gradation change amount within the range of the pixel adjacent to or adjacent to the target pixel. This is a high-frequency change in which the tone value of the tone change pixel '(FIGS. 4A and 4B) and two consecutive' 1 tone change pixels' (FIGS. 23A and 23B) increase or decrease. It was determined to be a noise component. Here, as shown in FIGS. 4 (a) and 4 (b) and FIGS. 23 (a) and 23 (b), a high-frequency change in which the gradation value increases or decreases in the range of several pixels is in the range of several pixels. There is a change in the opposite direction of increase and decrease of the gradation value. Therefore, since the low frequency component of the gradation change amount is obtained by averaging (smoothing) the gradation change amount in the range of several pixels, the output of the smoothing process includes the high frequency component in the pixel where the noise component exists. It is removed and approaches 0. On the other hand, if the gradation value changes to some extent and the adjacent pixel is flat, or if the neighboring change is a change in the gradation value in the same direction, the output of the smoothing process is greater than 0, A value corresponding to the magnitude of the absolute value of the tone change amount is obtained. Further, since it is a low-frequency component of the gradation change amount, the polarity (positive or negative sign) of the result of the smoothing process is the same as the polarity of the original gradation change amount.

なお、階調変化量dfに対し平滑化処理した結果を、傾き検出手段40等において用いる振幅制限階調変化量Xlmの代わりに用いることも可能であるが、この場合には、階調変化量dfにおけるノイズ成分は除かれるが、平滑化処理後の階調変化量の値は変化する。検出する階調値の緩やかな変化は、量子化ノイズ又は擬似輪郭となるような入力画像信号の最小階調値や階調ジャンプを検出する比較的小さな値であることから、階調変化量の振幅が変化することは、階調値の変化を平坦とみなす場合や、輪郭となる範囲を滑らかにする変化と認識する場合などにおいて、誤検出につながる。よって、実施の形態3においては、階調変化量dfに対し平滑化処理した結果は、ノイズ成分の有無を判定して、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定に用いる。   Incidentally, the results of the smoothing process to the tone variation df, it is possible to use, instead of the amplitude limiting gradation variation Xlm used in tilt detection unit 40 or the like, in this case, the gradation variation Although the noise component in df is removed, the value of the gradation change amount after the smoothing process changes. The gradual change in the detected gradation value is a relatively small value that detects the minimum gradation value or gradation jump of the input image signal that results in quantization noise or pseudo contour. The change in amplitude leads to erroneous detection when the change in the gradation value is regarded as flat or when it is recognized as a change that smooths the contour range. Therefore, in the third embodiment, the result of the smoothing process on the gradation change amount df is determined based on the presence / absence of a noise component, and each pixel is classified into a pixel belonging to the flat gradation area, a pixel belonging to the noise area, This is used for the determination to classify the pixel as one of the non-noise gradation change positions.

実施の形態3においては、隣接する画素範囲内における階調変化量dfを平滑化処理(フィルタ処理又は加算処理)した値により、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化となるノイズ成分を判定して、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、画素の領域判定結果である領域信号により、平坦・ノイズ領域幅判定手段30、傾き検出手段40、補正ビット生成手段50における処理を行う。   In the third embodiment, the gradation value of one “1 gradation changing pixel” is set immediately before by the value obtained by smoothing (filtering or adding) the gradation change amount df in the adjacent pixel range. A noise component that causes a gradation change that increases or decreases by one gradation with respect to the gradation value of the pixel and the gradation value of the immediately following pixel is determined, and each pixel is classified into a pixel that belongs to a flat gradation area, a noise area Is determined to be classified into any of the pixels belonging to the non-noise gradation change position, and the flat / noise area width determining means 30, the inclination detecting means 40, and the correction bit generation are performed based on the area signal which is the pixel area determination result. The processing in means 50 is performed.

実施の形態3の画像処理装置の階調変換手段3は、実施の形態1の画像処理装置における階調変換手段1(図1参照)の構成において、図5に示す画素領域判定手段20に代えて、図25に示す画素領域判定手段70を用い、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、画素領域の判定結果として領域信号Ar3を生成し出力するよう構成している。実施の形態3の画像処理装置は、画素領域判定手段70の構成及び動作を除き、実施の形態1の画像処理装置と同じである。   The gradation conversion means 3 of the image processing apparatus according to the third embodiment is replaced with the pixel area determination means 20 shown in FIG. 5 in the configuration of the gradation conversion means 1 (see FIG. 1) in the image processing apparatus according to the first embodiment. Then, using the pixel area determination means 70 shown in FIG. 25, a determination is made to classify each pixel as either a pixel belonging to a flat gradation area, a pixel belonging to a noise area, or a pixel at a non-noise gradation change position, An area signal Ar3 is generated and output as a pixel area determination result. The image processing apparatus according to the third embodiment is the same as the image processing apparatus according to the first embodiment except for the configuration and operation of the pixel region determination unit 70.

画素領域判定手段70は、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(高周波の変化)(例えば、図4(a)及び(b))をノイズ成分と判定する。画素領域判定手段70は、階調変化量算出手段11からの階調変化量dfの値から、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、画素の領域判定結果を示す領域信号Ar3を生成し出力する。この領域信号Ar3は、平坦・ノイズ領域幅判定手段30、傾き検出手段40、補正ビット生成手段50へと出力される。   The pixel region determination means 70 is a gradation in which the gradation value of one “1 gradation changing pixel” is increased or decreased by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. Changes (changes in high frequency) (for example, FIGS. 4A and 4B) are determined as noise components. Based on the value of the gradation change amount df from the gradation change amount calculation means 11, the pixel area determination means 70 determines each pixel as a pixel belonging to the gradation flat area, a pixel belonging to the noise area, and the non-noise gradation change position. It is determined that the pixel is classified into one of the pixels, and an area signal Ar3 indicating the area determination result of the pixel is generated and output. This area signal Ar3 is output to the flat / noise area width determining means 30, the inclination detecting means 40, and the correction bit generating means 50.

1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化がある場合において、階調変化の階調差は比較的小さい値Nd(例えば、Nd=2など)以下となるため、階調変化量dfの絶対値|df|>0となる画素のうちノイズ成分による画素における変化は、画素位置xの注目画素、その直前の画素位置x−1の隣接画素、注目画素の直後の画素位置x+1の隣接画素のそれぞれにおける階調変化量dfの値を用いて階調変化量を平滑化した低周波成分の値により判定できる。   When there is a gradation change in which the gradation value of one “one gradation change pixel” increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel, Since the gradation difference of the tone change is a relatively small value Nd (for example, Nd = 2) or less, the change in the pixel due to the noise component among the pixels where the absolute value | df |> 0 of the gradation change amount df is The gradation change amount is smoothed using the value of the gradation change amount df in each of the target pixel at the pixel position x, the adjacent pixel at the pixel position x−1 immediately before it, and the adjacent pixel at the pixel position x + 1 immediately after the target pixel. It can be determined by the value of the converted low frequency component.

すなわち、例えば、図4(a)の場合、階調値の増減が隣接する(高周波の変化がある)画素位置xの注目画素とその前後の隣接画素との合計3画素における階調変化量dfに対し、階調変化量を加算して平滑化処理した結果は、
df(x−1)+df(x)+df(x+1)=0+(+1)+(−1)=0
となる。また、例えば、図4(b)においては、画素位置xの注目画素とその前後の隣接画素との合計3画素における階調変化量dfに対し、平滑化処理した結果は、
df(x−1)+df(x)+df(x+1)=0+(−1)+(+1)=0
となる。このように、ノイズ成分による画素における高周波の変化があると、階調変化量dfの絶対値は比較的小さい値Nd以下となるとともに、各画素とその前後の画素の範囲で階調変化量を加算する平滑化処理を行った結果は、高周波成分が除かれて、0又は0に近い値となる。
That is, for example, the case of FIG. 4 (a), the increase or decrease of the gradation values is adjacent (change in frequency is) gradation variation in the sum of three pixels of the target pixel at the pixel position x 1 and its front and rear of the adjacent pixels The result of smoothing by adding the amount of gradation change to df is
df (x 1 −1) + df (x 1 ) + df (x 1 +1) = 0 + (+ 1) + (− 1) = 0
It becomes. Further, for example, in FIG. 4 (b), the relative gradation change amount df at a total of three pixels of the target pixel of the pixel position x 2 and its front and rear of the adjacent pixels, a result of the smoothing processing is
df (x 2 −1) + df (x 2 ) + df (x 2 +1) = 0 + (− 1) + (+ 1) = 0
It becomes. As described above, when there is a high frequency change in the pixel due to the noise component, the absolute value of the gradation change amount df is less than or equal to a relatively small value Nd, and the gradation change amount is set in the range of each pixel and the preceding and subsequent pixels. The result of performing the smoothing process to be added is 0 or a value close to 0 with the high frequency component removed.

また、図3(a)〜(c)及び図6(a)〜(g)の画素位置x=35(=x)とその前後の画素のような高周波の変化の場合には、画素位置x=33,34,35(=x)における階調変化量df、すなわち、df(33),df(34),df(35)に対し平滑化処理した結果は、
df(33)+df(34)+df(35)=0+(+1)+(−2)=−1
となる。このときは、平滑化処理結果の絶対値は0より大きくなるが、平滑化処理結果の極性(正負の符号)は元の階調変化量df(34)=+1と反対である。このことは、平滑化処理した画素の範囲内に増加と減少の逆方向の変化が存在することを意味する。
In addition, in the case of a high frequency change such as the pixel position x = 35 (= x 2 ) and the pixels before and after the pixel position x = 35 (= x 2 ) in FIGS. The gradation change amount df at x = 33, 34, 35 (= x 2 ), that is, the result of smoothing the df (33), df (34), df (35) is
df (33) + df (34) + df (35) = 0 + (+ 1) + (-2) =-1
It becomes. At this time, the absolute value of the smoothing process result is greater than 0, but the polarity (positive or negative sign) of the smoothing process result is opposite to the original gradation change amount df (34) = + 1. This means that there is a change in the reverse direction of increase and decrease within the range of the smoothed pixel.

したがって、注目画素位置とその隣接する画素位置における階調変化量dfに対し平滑化処理(例えば、加算処理)し、その結果の値及び注目画素位置における階調変化量dfから、図4(a)及び(b)に示されるノイズ成分となる画素の領域と、階調変化量df=0となる階調平坦領域の画素、それ以外の非ノイズ階調変化位置を判定できる。   Therefore, smoothing processing (for example, addition processing) is performed on the gradation change amount df at the target pixel position and the adjacent pixel position, and the result value and the gradation change amount df at the target pixel position are used as FIG. ) And (b), it is possible to determine the pixel region as the noise component, the pixel in the gradation flat region where the gradation change amount df = 0, and the other non-noise gradation change position.

図25は、図24に示される画素領域判定手段70の構成の一例を概略的に示すブロック図である。図25において、図5(実施の形態1)に示される構成と同一又は対応する構成には、同じ符号を付す。図25に示される画素領域判定手段70は、図5における画素変化量抽出手段21と絶対値レベル比較手段22とを備え、さらに、平滑化手段72と、極性判定手段73と、比較手段74と、領域信号生成手段75とを備えている。   FIG. 25 is a block diagram schematically showing an example of the configuration of the pixel area determination means 70 shown in FIG. 25, the same reference numerals are given to the same or corresponding components as those shown in FIG. 5 (Embodiment 1). A pixel region determination unit 70 shown in FIG. 25 includes the pixel change amount extraction unit 21 and the absolute value level comparison unit 22 shown in FIG. 5, and further includes a smoothing unit 72, a polarity determination unit 73, and a comparison unit 74. And an area signal generating means 75.

図25において、画素領域判定手段70内の画素変化量抽出手段21は、階調変化量検出手段10からの階調変化量dfが入力され、階調変化量dfを画素遅延して、画素位置xの注目画素とその前後に位置する隣接画素位置x−1とx+1による画素位置xを中心とした合計3画素範囲における階調変化量df(x)と、階調変化量df(x−1)と、階調変化量df(x+1)とを抽出する。絶対値レベル比較手段22は、画素位置xの注目画素における階調変化量df(x)を受け取り、所定の閾値0と、ノイズ成分における階調差に相当する比較的小さい値Nd(例えば、最小階調差の2倍の値、Nd=2とする)とを比較して、階調変化量df(x)の絶対値のレベルを判定し、結果を示す比較結果nlfを求める。ここまでの構成は、図5におけるものと同じである。   In FIG. 25, the pixel change amount extraction means 21 in the pixel area determination means 70 receives the gradation change amount df from the gradation change amount detection means 10 and delays the gradation change amount df by a pixel to obtain the pixel position. The gradation change amount df (x) and the gradation change amount df (x−1) in a total of three pixel ranges centered on the pixel position x based on the pixel of interest x and adjacent pixel positions x−1 and x + 1 positioned before and after the pixel of interest. ) And the gradation change amount df (x + 1). The absolute value level comparison unit 22 receives the gradation change amount df (x) in the target pixel at the pixel position x, and has a predetermined threshold 0 and a relatively small value Nd (for example, the minimum value corresponding to the gradation difference in the noise component). The absolute value level of the gradation change amount df (x) is determined, and a comparison result nlf indicating the result is obtained. The configuration up to this point is the same as that in FIG.

平滑化手段72には、画素位置xを中心とした3画素範囲における階調変化量dfが入力される。すなわち、平滑化手段72には、画素変化量抽出手段21により得られた階調変化量df(x)、df(x−1)、及びdf(x+1)が入力される。平滑化手段72は、画素位置xにおける階調変化量df(x)と、画素位置x−1における階調変化量df(x−1)と、画素位置x+1における階調変化量df(x+1)とを加算して、階調変化量の平滑化処理を行う。すなわち、平滑化手段72は、画素位置xの注目画素と、画素位置xの直前に隣接する画素位置x−1の隣接画素と、画素位置xの直後に隣接する画素位置x+1の隣接画素からなる、連続する3画素の階調変化量df(x−1)、d(x)、df(x+1)を加算して、階調変化量の平滑化処理を行う。平滑化手段72による平滑化処理は、下記の式(6)により、平滑化結果(加算値)ct0を求める処理である。
ct0=df(x−1)+df(x)+df(x) …式(6)
The smoothing means 72 receives the gradation change amount df in the three-pixel range centered on the pixel position x. That is, the gradation change amounts df (x), df (x−1), and df (x + 1) obtained by the pixel change amount extraction unit 21 are input to the smoothing unit 72. The smoothing means 72 has a gradation change amount df (x) at the pixel position x, a gradation change amount df (x−1) at the pixel position x−1, and a gradation change amount df (x + 1) at the pixel position x + 1. And the gradation change amount is smoothed. That is, the smoothing means 72 includes a target pixel at the pixel position x, an adjacent pixel at the pixel position x−1 adjacent immediately before the pixel position x, and an adjacent pixel at the pixel position x + 1 adjacent immediately after the pixel position x. Then, the gradation change amounts df (x−1), d (x), and df (x + 1) of three consecutive pixels are added to perform the gradation change amount smoothing process. The smoothing process by the smoothing means 72 is a process for obtaining a smoothing result (added value) ct0 by the following equation (6).
ct0 = df (x-1) + df (x) + df (x) (6)

なお、式(6)には、連続3画素における階調変化量の加算値を平滑化結果ct0とする場合を示したが、加算値(式(6)の右辺)に1/3を掛けて(加算した階調変化量の個数で割って)、階調変化量の平均値を平滑化結果として求めるように構成してもよい。また、ハードウェアの構成及び演算処理の容易さなど考慮して、階調変化量の加算値に他の値、例えば、1/4=1/2を掛けて(加算した階調変化量の個数に近い、2の階乗で割って)、平滑化結果を求めるように構成してもよい。 In addition, in Formula (6), the case where the addition value of the gradation change amount in three consecutive pixels is set as the smoothing result ct0 is shown, but the addition value (the right side of Formula (6)) is multiplied by 1/3. An average value of gradation change amounts may be obtained as a smoothing result (divided by the number of added gradation change amounts). In consideration easiness of construction and operation processing of the hardware, the other to the addition value of the gradation variation value, for example, 1/4 = 1/2 2 multiplied (in addition gradation variation A smoothing result may be obtained by dividing by the factorial of 2 which is close to the number.

また、中心位置となる画素位置xに近い画素における階調値の重みが大きくなり、中心位置から離れた位置の画素(隣接画素)における階調値の重みが小さくなるように、重み付け加算した上で、平滑化処理を行って平滑化結果を求めてもよい。例えば、画素位置xにおける階調値の重みを1とし、隣接画素における階調値の重みを1/2として、式(6)に代えて、下記の式(7)に従い平滑化結果ct0を算出することもできる。
ct0=df(x−1)/2+df(x)+df(x+1)/2 …式(7)
In addition, weighted addition is performed so that the weight of the gradation value at the pixel near the pixel position x, which is the center position, increases, and the weight of the gradation value at a pixel (adjacent pixel) located away from the center position decreases. Thus, a smoothing process may be performed to obtain a smoothing result. For example, the gradation value weight at the pixel position x is set to 1, and the gradation value weight at the adjacent pixel is set to ½, and the smoothing result ct0 is calculated according to the following expression (7) instead of the expression (6). You can also
ct0 = df (x-1) / 2 + df (x) + df (x + 1) / 2 Formula (7)

上記式(6)又は式(7)などに従い算出される平滑化結果ct0は、3画素の階調変化量dfをそのまま又は重み付けして加算することによって求めた値である。このため、3画素の範囲内に増加と減少の逆方向の階調変化量、すなわち、ノイズ成分と考えられる高周波の変化が存在すれば、平滑化結果ct0の絶対値は0又は0に近い値になる。また、平滑化結果ct0の絶対値が0でない場合、平滑化結果ct0の極性は元の階調変化量の極性と反対極性になる。3画素の範囲内の階調値の変化が一方向の変化であり、ノイズ成分が含まれない場合は、平滑化結果ct0の絶対値は、0より大きくなり、階調変化量の絶対値の大きさに相当する値が得られる。また、この場合には、平滑化結果ct0の極性は、階調変化量df(x)の極性と同じである。これは、平滑化結果ct0は、階調変化量dfを3画素の範囲で加算することによって得られているから、すなわち、階調変化量の低周波成分として得られているからである。   The smoothing result ct0 calculated according to the above formula (6) or formula (7) is a value obtained by adding the gradation change amount df of the three pixels as it is or with weighting. For this reason, if there is a gradation change amount in the reverse direction of increase and decrease within the range of 3 pixels, that is, a high-frequency change that is considered to be a noise component, the absolute value of the smoothing result ct0 is 0 or a value close to 0 become. If the absolute value of the smoothing result ct0 is not 0, the polarity of the smoothing result ct0 is opposite to the polarity of the original gradation change amount. When the change in the gradation value within the range of 3 pixels is a change in one direction and no noise component is included, the absolute value of the smoothing result ct0 is greater than 0, and the absolute value of the gradation change amount is A value corresponding to the magnitude is obtained. In this case, the polarity of the smoothing result ct0 is the same as the polarity of the gradation change amount df (x). This is because the smoothing result ct0 is obtained by adding the gradation change amount df in the range of 3 pixels, that is, obtained as a low frequency component of the gradation change amount.

極性判定手段73には、画素変化量抽出手段21により得られた画素位置xの注目画素における階調変化量df(x)と、平滑化手段72からの階調変化量の平滑化結果ct0が入力される。極性判定手段73は、階調変化量df(x)の極性と平滑化結果ct0の極性とが反対極性かどうかを判定し、極性の判定結果として、2値化した値を示す判定結果pl0を求める。判定結果pl0の値は、例えば、互いの極性が逆となる場合は値‘1’(pl0=1)とし、同一の場合は値‘0’(pl0=0)とする。なお、この判定結果pl0の値は、これに限るものではなく、極性の不一致か否かが示されれば、他の値であってもよい。これにより、上述の平滑化結果ct0と階調変化量df(x)の極性の判定結果が得られる。   The polarity determination means 73 includes the gradation change amount df (x) at the target pixel at the pixel position x obtained by the pixel change amount extraction means 21 and the gradation change amount smoothing result ct0 from the smoothing means 72. Entered. The polarity determination unit 73 determines whether the polarity of the gradation change amount df (x) and the polarity of the smoothing result ct0 are opposite to each other, and uses a determination result pl0 indicating a binarized value as the polarity determination result. Ask. The value of the determination result pl0 is, for example, a value “1” (pl0 = 1) when the polarities are opposite to each other, and a value “0” (pl0 = 0) when the polarities are the same. Note that the value of the determination result pl0 is not limited to this, and may be another value as long as it indicates whether the polarities do not match. Thereby, the determination result of the polarities of the smoothing result ct0 and the gradation change amount df (x) is obtained.

比較手段74には、平滑化手段72からの階調変化量の平滑化結果ct0が入力される。比較手段74は、平滑化結果ct0の絶対値のレベルを所定の閾値と比較する。すなわち、比較手段74は、比較を行う所定の閾値cth0=0(0又は0に近い値を設定する)として、平滑化結果の絶対値|ct0|≦cth0(ct0=0)の場合を判定し、結果を示す比較結果cf0を求める。   The smoothing result ct0 of the gradation change amount from the smoothing means 72 is input to the comparison means 74. The comparison means 74 compares the level of the absolute value of the smoothing result ct0 with a predetermined threshold value. That is, the comparison unit 74 determines a case where the absolute value | ct0 | ≦ cth0 (ct0 = 0) of the smoothing result is set as a predetermined threshold cth0 = 0 (set to 0 or a value close to 0) for comparison. Then, a comparison result cf0 indicating the result is obtained.

比較手段74で求める比較結果cf0の値は2値として、例えば、平滑化結果の絶対値|ct0|≦cth0の場合は比較結果cf0=1、それ以外の場合は比較結果cf0=0とする。なお、この比較結果cf0の値は、これに限るものではなく、平滑化結果の大きさを比較した結果が示されれば、他の値であってもよい。   The value of the comparison result cf0 obtained by the comparison means 74 is binary, for example, the absolute value of the smoothed result | ct0 | ≦ cth0, the comparison result cf0 = 1, and otherwise the comparison result cf0 = 0. Note that the value of the comparison result cf0 is not limited to this, and may be another value as long as the result of comparing the magnitudes of the smoothing results is shown.

ここで、平滑化結果ct0は階調変化量dfの低周波成分として得られることから、ノイズ成分による画素における高周波の変化があると、その値は、高周波成分が除かれて0又は0に近い値となる。よって、所定の閾値cth0については、階調変化量がノイズ成分によるものか否かを判定するために、0又は0に近い値を設定する。また、図25においては、平滑化手段72における平滑化を式(6)として平滑化結果ct0を得て、所定の閾値cth0=0とするよう説明するが、この閾値cth0は、画像信号における最小階調差や階調変換する際に検出する階調差の設定、また画像信号に含まれるノイズ・誤差成分の振幅の大きさ、平滑化手段72における平滑化処理の際の重み付け(式(7)など)等を考慮した値を設定する。   Here, since the smoothing result ct0 is obtained as a low frequency component of the gradation change amount df, if there is a high frequency change in the pixel due to a noise component, the value is 0 or close to 0 excluding the high frequency component. Value. Therefore, for the predetermined threshold value cth0, 0 or a value close to 0 is set in order to determine whether or not the gradation change amount is due to a noise component. In FIG. 25, the smoothing result ct0 is obtained by using the smoothing in the smoothing means 72 as Expression (6), and the predetermined threshold cth0 = 0 is set. The threshold cth0 is the minimum in the image signal. Setting of gradation difference and gradation difference detected when gradation conversion is performed, amplitude of noise / error component included in image signal, weighting in smoothing process in smoothing means 72 (formula (7) ) Etc.) etc. are set.

領域信号生成手段75には、絶対値レベル比較手段22からの比較結果nlfと、極性判定手段73からの判定結果pl0と、比較手段74からの比較結果cf0とが入力される。領域信号生成手段75は、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、各領域判定結果を示す領域信号Ar3を生成し出力する。すなわち、領域信号生成手段75は、以下の3通りの判定C1〜C3を行い、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、領域信号Ar3を生成する。   The region signal generation means 75 receives the comparison result nlf from the absolute value level comparison means 22, the determination result pl0 from the polarity determination means 73, and the comparison result cf0 from the comparison means 74. The area signal generation means 75 performs a determination to classify each pixel into one of a pixel belonging to a flat gradation area, a pixel belonging to a noise area, and a pixel at a non-noise gradation change position, and an area indicating each area determination result A signal Ar3 is generated and output. That is, the area signal generation means 75 performs the following three determinations C1 to C3, and each pixel is selected from a pixel belonging to a flat gradation area, a pixel belonging to a noise area, and a pixel at a non-noise gradation change position. And the region signal Ar3 is generated.

(判定C1)
画素位置xの注目画素における階調変化量df(x)が、df(x)=0である場合には、絶対値レベル比較手段22からの比較結果nlfは、nlf=1となり、注目画素は、階調平坦領域に属する画素であり、領域信号Ar3は、Ar3=0になる。
(Decision C1)
When the gradation change amount df (x) in the target pixel at the pixel position x is df (x) = 0, the comparison result nlf from the absolute value level comparison unit 22 is nlf = 1, and the target pixel is , The pixel belonging to the flat gradation region, and the region signal Ar3 becomes Ar3 = 0.

(判定C2)
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、極性判定手段73からの判定結果pl0が、pl0=1である場合(平滑化結果ct0の極性と階調変化量df(x)の極性とが反対極性の場合)、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、比較手段74からの比較結果cf0が、cf0=1である場合(平滑化結果の絶対値|ct0|≦0である場合)は、
注目画素は、ノイズ領域に属する画素であり、領域信号Ar3は、Ar3=1になる。
(Decision C2)
When the gradation change amount df (x) in the pixel of interest at the pixel position x is 0 <| df (x) | ≦ Nd and the determination result pl0 from the polarity determination unit 73 is pl0 = 1 ( The polarity of the smoothing result ct0 and the polarity of the gradation change amount df (x) are opposite to each other), or
When the gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd and the comparison result cf0 from the comparison unit 74 is cf0 = 1 (smooth) The absolute value of the conversion result | ct0 | ≦ 0) is
The target pixel is a pixel belonging to the noise region, and the region signal Ar3 becomes Ar3 = 1.

(判定C3)
判定C1において、注目画素が階調平坦領域に属する画素ではないと判定され、且つ、判定C2において、注目画素が、ノイズ領域に属する画素ではないと判定された場合には、画素位置xの注目画素は、非ノイズ階調変化位置の画素であり、領域信号Ar3は、Ar3=2になる。
(Decision C3)
If it is determined in the determination C1 that the target pixel is not a pixel belonging to the flat gradation area, and it is determined in the determination C2 that the target pixel is not a pixel belonging to the noise area, the target position of the pixel position x The pixel is a pixel at a non-noise gradation change position, and the area signal Ar3 is Ar3 = 2.

上記により、階調変化量dfの絶対値が比較的小さい値Nd以下で、平滑化処理した3画素の範囲内に増加と減少の逆方向の変化が存在するノイズ成分が判定されることになり、よって、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行った結果を示す領域信号Ar3を得て、各画素が階調平坦領域、ノイズ領域、非ノイズ階調変化位置のどの階調値の変化を持つかが示される。   As described above, the noise component in which the absolute value of the gradation change amount df is less than or equal to the relatively small value Nd and the reverse change of the increase and decrease exists in the smoothed three-pixel range is determined. Therefore, an area signal Ar3 indicating the result of performing the determination to classify each pixel into one of a pixel belonging to a flat gradation area, a pixel belonging to a noise area, and a pixel at a non-noise gradation change position is obtained, It shows which gradation value changes the pixel has in the gradation flat area, noise area, and non-noise gradation change position.

図26(a)〜(e)は、図6(a)〜(g)で示した画像信号ノイズ成分を含む入力画像信号Da(図3参照)に対し、実施の形態3における画素領域判定手段70により画素領域を判定する場合の様子を示した図である。図26(a)は、入力画像信号Daの水平方向の画素位置xを示し、同図(b)は、入力画像信号Daの階調値La(x)を示し、同図(c)は、階調変化量検出手段10において求められる隣接する画素間の階調値の差分による階調変化量dfを示し、同図(d)は、画素領域判定手段70内の平滑化手段72で求められる式(6)による3画素範囲における平滑化結果ct0を示し、同図(e)は領域信号生成手段75から出力される領域信号Ar3を示す。   26A to 26E show pixel area determination means in the third embodiment for the input image signal Da (see FIG. 3) including the image signal noise components shown in FIGS. 6A to 6G. FIG. 7 is a diagram showing a state in which a pixel area is determined by 70. 26A shows the pixel position x in the horizontal direction of the input image signal Da, FIG. 26B shows the gradation value La (x) of the input image signal Da, and FIG. The gradation change amount df based on the difference in the gradation value between adjacent pixels obtained by the gradation change amount detection means 10 is shown. FIG. 4D is obtained by the smoothing means 72 in the pixel area determination means 70. The smoothing result ct0 in the three-pixel range according to the equation (6) is shown, and FIG. 9E shows the region signal Ar3 output from the region signal generating means 75.

例えば、図26(a)〜(e)において、ノイズ成分を含む入力画像信号Da(図26(b))に対して得られる階調変化量df(図26(c))は、画素位置x=16,24,32,40における階調変化量df=+1として得られるが、それぞれの階調平坦領域の画素の途中にある画素位置x,xとその前後における画素のノイズ成分において、階調変化量dfが0ではない値として得られる。この階調変化量が画素領域判定手段70に入力されると、画素位置xにおける階調変化量df(x)は、
df(x)=+1≦Nd
であり、df(x)の隣接画素における階調変化量df(x−1)、df(x+1)は、
df(x−1)=0、
df(x+1)=−1<0
であるから、平滑化手段72で得られる平滑化結果ct0は、
ct0=0+(+1)+(−1)=0≦cth0(=0)
で、比較結果cf0=1となる。したがって、領域信号生成手段75からの領域信号Ar3=1となり、ノイズ領域となる。同様に、画素位置x+1で領域信号Ar=1となり、ノイズ領域となる。
For example, in FIGS. 26A to 26E, the gradation change amount df (FIG. 26C) obtained for the input image signal Da including the noise component (FIG. 26B) is represented by the pixel position x. = 16,24,32,40 obtained as the gradation variation df = + 1 in, but the pixel position x 1 in the middle of the pixels in each gray-scale flat area, x 2 and in the noise component of the pixel at the front and rear, The gradation change amount df is obtained as a non-zero value. When the gradation change amount is input to the pixel area determining means 70, the gradation variation df (x 1) at the pixel position x 1 is
df (x 1 ) = + 1 ≦ Nd
In and, df gradation variation in the adjacent pixels (x 1) df (x 1 -1), df (x 1 +1) is
df (x 1 -1) = 0,
df (x 1 +1) = − 1 <0
Therefore, the smoothing result ct0 obtained by the smoothing means 72 is
ct0 = 0 + (+ 1) + (− 1) = 0 ≦ cth0 (= 0)
Thus, the comparison result cf0 = 1. Therefore, the region signal Ar3 = 1 from the region signal generation means 75 is obtained, which becomes a noise region. Similarly, the region signal Ar = 1 at the pixel position x 1 +1, which is a noise region.

また、図26(a)〜(e)の画素位置x−1における階調変化量df(x−1)は、
df(x−1)=+1≦Nd
であり、画素位置x−1の画素の隣接画素における階調変化量df(x−2)及びdf(x)は、
df(x−2)=0
df(x)=−2<0
であり、得られる平滑化結果ct0は、
ct0=0+(+1)+(−2)=−1
となる。このとき、|ct0|>cth0(=0)で比較結果cf0=0であるが、平滑化結果ct0=−1と階調変化量df(x−1)=+1の極性は反対で、判定結果pl0=1となる。したがって、領域信号生成手段75からの領域信号Ar3=1となり、ノイズ領域となる。同様に、画素位置xとx+1で領域信号Ar=1となり、ノイズ領域となる。
Further, the gradation change amount df (x 2 −1) at the pixel position x 2 −1 in FIGS.
df (x 2 −1) = + 1 ≦ Nd
The gradation change amounts df (x 2 -2) and df (x 2 ) in the adjacent pixel of the pixel at the pixel position x 2 −1 are
df (x 2 −2) = 0
df (x 2 ) = − 2 <0
And the smoothing result ct0 obtained is
ct0 = 0 + (+ 1) + (-2) =-1
It becomes. In this case, | ct0 |> cth0 (= 0) the comparison result cf0 = is a 0, the polarity of the smoothed results CT0 = -1 and tone variation df (x 2 -1) = + 1 is the opposite, the determination The result is pl0 = 1. Therefore, the region signal Ar3 = 1 from the region signal generation means 75 is obtained, which becomes a noise region. Similarly, the region signal Ar = 1 at the pixel positions x 2 and x 2 +1, and this becomes a noise region.

以上により、画素領域判定手段70は、階調変化量df(x)、df(x−1)、df(x+1)から、隣接画素を含む3画素範囲で階調変化量dfに対し平滑化処理した結果と階調変化量df(x)の値により、画素位置xの注目画素における各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、画素の領域判定結果を示す領域信号Ar3を得ることができる。この画素領域は、実施の形態1及び2と同様、同じ階調値の連続や一定値以内の階調差の検出で判定するのではなく、ノイズ成分による階調変化を、階調変化量dfの値と平滑化処理した結果から判定するので、ノイズの影響は少なく、隣接画素における階調変化量のみでより正確に分類が可能である。   As described above, the pixel area determination unit 70 performs the smoothing process on the gradation change amount df in the three-pixel range including adjacent pixels from the gradation change amounts df (x), df (x−1), and df (x + 1). Depending on the result and the value of the gradation change amount df (x), each pixel in the pixel of interest at the pixel position x is selected from any of the pixels belonging to the flat gradation area, the pixels belonging to the noise area, and the pixels at the non-noise gradation change position. It is possible to obtain a region signal Ar3 indicating the pixel region determination result. As in the first and second embodiments, this pixel area is not determined by detecting the gradation difference within the same gradation value or within a certain value, but the gradation change due to the noise component is represented by the gradation change amount df. And the result of smoothing processing, the influence of noise is small, and classification can be performed more accurately only by the amount of gradation change in adjacent pixels.

なお、図25の画素変化量抽出手段70においては、階調変化量dfを遅延して抽出するよう構成したが、階調変化量検出手段10において階調変化量dfを求める際に、画素位置xとその隣接画素及び隣々接画素における階調変化量を求めることで得てもよく、この場合は画素変化量抽出手段70における画素遅延を省略することができる。   The pixel change amount extraction unit 70 in FIG. 25 is configured to extract the gradation change amount df with a delay. However, when the gradation change amount detection unit 10 obtains the gradation change amount df, the pixel position is extracted. It may be obtained by obtaining the gradation change amount in x and its adjacent pixels and adjacent pixels. In this case, the pixel delay in the pixel change amount extracting means 70 can be omitted.

《3−2》動作.
画素領域判定手段70による画素領域の判定結果である領域信号Ar3は、領域信号Ar(実施の形態1の場合)と同様に、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50へと出力される。平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50は、領域信号Ar3に基づいて、非ノイズ階調変化位置以降における平坦・ノイズ領域幅を予測した平坦・ノイズ領域幅データ予測値dstと、階調値の傾き(傾きデータ値Ksl)と、傾きデータ値Kslから算出される補正ビットデータCdを求める。そして、画素値演算手段92は、入力画像信号Daに補正ビットデータCdを付加して階調値を変換し、画像信号のビット数を拡張する。これらの構成と動作は、上記実施の形態1の場合と同じである。
<< 3-2 >> Operation.
Similar to the area signal Ar (in the case of the first embodiment), the area signal Ar3 that is the determination result of the pixel area by the pixel area determining means 70 is the flat / noise area width determining means 30, the inclination detecting means 40, and the correction bit. It is output to the generation means 50. The flat / noise area width determination means 30, the inclination detection means 40, and the correction bit generation means 50 predict the flat / noise area width after the non-noise gradation change position based on the area signal Ar3. The correction bit data Cd calculated from the data prediction value dst, the gradient of the gradation value (gradient data value Ksl), and the gradient data value Ksl is obtained. Then, the pixel value calculation unit 92 converts the gradation value by adding the correction bit data Cd to the input image signal Da, and extends the number of bits of the image signal. These configurations and operations are the same as those in the first embodiment.

実施の形態3による画像処理装置において、階調変化量dfを求め、この階調変化量に基づき、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、領域判定結果と階調変化量dfから階調変化における平坦・ノイズ領域幅と傾きを得て補正ビットデータを生成し、階調数が拡張された出力画像信号Dbを出力する動作は、上記実施の形態1に関して図15及び図16を参照して説明したのと同様である。但し、画素領域判定手段70における階調変化量に基づき、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定処理が、上記実施の形態1の場合と異なる。   In the image processing apparatus according to the third embodiment, the gradation change amount df is obtained, and on the basis of the gradation change amount, each pixel is classified into a pixel belonging to a gradation flat region, a pixel belonging to a noise region, and a non-noise gradation change position The correction bit data is generated by obtaining the flatness / noise area width and inclination in the gradation change from the area determination result and the gradation change amount df, and the number of gradations is expanded. The operation of outputting the output image signal Db is the same as that described with reference to FIGS. 15 and 16 regarding the first embodiment. However, a determination process for classifying each pixel into one of a pixel belonging to a flat gradation region, a pixel belonging to a noise region, or a pixel at a non-noise gradation change position based on the gradation change amount in the pixel region determination means 70 is performed. This is different from the case of the first embodiment.

図27は、図24に示される画素領域判定手段70の動作を示すフローチャートである。図27において、図17(実施の形態1)に示される工程と同じ又は対応する工程には、同じ符号を付す。図27において、画素領域判定手段70へ階調変化量dfが入力されると、階調変化量dfに対し画素遅延するなどの処理によって、画素位置xの注目画素、その直前の画素位置x−1の画素(隣接画素)、注目画素の直後の画素位置x+1の画素(隣接画素)のそれぞれにおける階調変化量dfを、階調変化量df(x)、df(x−1)、df(x+1)として得る(ステップS120)。   FIG. 27 is a flowchart showing the operation of the pixel area determination means 70 shown in FIG. In FIG. 27, steps that are the same as or correspond to those shown in FIG. 17 (Embodiment 1) are assigned the same reference numerals. In FIG. 27, when the gradation change amount df is input to the pixel region determination means 70, the pixel of interest at the pixel position x and the pixel position x− immediately before it are processed by processing such as pixel delay with respect to the gradation change amount df. The gradation change amount df in each of the one pixel (adjacent pixel) and the pixel (adjacent pixel) at the pixel position x + 1 immediately after the target pixel is expressed as gradation change amounts df (x), df (x−1), df ( x + 1) (step S120).

平滑化手段72は、画素位置xを中心とした3画素範囲の階調変化量df(x)、df(x−1)、(x+1)を加算して、上記式(6)により平滑化処理し、平滑化結果ct0を求める(ステップS140)。平滑化結果ct0は階調変化量の低周波成分として得られ、3画素の範囲内に増加と減少の逆方向の階調変化量、すなわち、高周波の変化であるノイズ成分が存在するかが判定できる。   The smoothing means 72 adds the gradation change amounts df (x), df (x−1), and (x + 1) in the three-pixel range with the pixel position x as the center, and performs the smoothing process according to the above equation (6). Then, the smoothing result ct0 is obtained (step S140). The smoothing result ct0 is obtained as a low-frequency component of the gradation change amount, and it is determined whether or not there is a gradation change amount in the opposite direction of increase and decrease, that is, a noise component that is a high-frequency change within the range of three pixels. it can.

次に、比較手段74は、平滑化結果ct0の絶対値のレベルを所定の閾値cth0=0(0又は0に近い値を設定する)と比較する(ステップS141)。比較手段74は、平滑化結果の絶対値|ct0|≦cth0(ct0=0)の場合(ステップS142)は、比較結果cf0=1を出力し(ステップS143)、それ以外の場合は比較結果cf0=0を出力する(ステップS144)。平滑化結果ct0は階調変化量dfの低周波成分であるので、ノイズ成分による画素における高周波の変化があると、その値は、高周波成分が除かれて0に近い値となり、比較結果cf0=1においてはノイズ成分となる変化があることが分かる。   Next, the comparing means 74 compares the level of the absolute value of the smoothed result ct0 with a predetermined threshold value cth0 = 0 (sets 0 or a value close to 0) (step S141). When the absolute value | ct0 | ≦ cth0 (ct0 = 0) of the smoothing result (step S142), the comparison unit 74 outputs the comparison result cf0 = 1 (step S143). Otherwise, the comparison result cf0 = 0 is output (step S144). Since the smoothing result ct0 is a low-frequency component of the gradation change amount df, if there is a high-frequency change in the pixel due to the noise component, the value becomes a value close to 0 with the high-frequency component removed, and the comparison result cf0 = 1 shows that there is a change that becomes a noise component.

また、極性判定手段73において、画素位置xの注目画素における階調変化量df(x)とその極性の比較判定を行う(ステップS151)。すなわち、極性判定手段73は、階調変化量df(x)と、平滑化結果ct0の極性が反対かを判定し(ステップS152)、極性の判定結果として、判定結果pl0を求める。極性判定手段73は、互いの極性が反対極性となる場合はpl0=1を出力し(ステップS153)、同一極性の場合はpl0=0を出力する(ステップS154)。   Further, the polarity determination means 73 performs a comparison determination between the polarity of the gradation change df (x) in the target pixel at the pixel position x and its polarity (step S151). That is, the polarity determination unit 73 determines whether the gradation change amount df (x) and the polarity of the smoothing result ct0 are opposite (step S152), and obtains the determination result pl0 as the polarity determination result. The polarity determination means 73 outputs pl0 = 1 when the polarities are opposite to each other (step S153), and outputs pl0 = 0 when the polarities are the same (step S154).

そして、画素位置xの注目画素における階調変化量df(x)の絶対値のレベルを所定の閾値と比較し、階調平坦領域の画素か(閾値0)、ノイズ領域における1条件階調差が比較的小さい値Nd以下かを判定するとともに、平滑化結果ct0による比較結果cf0と極性の判定結果pl0を用いて、以下のように、ステップS130、S131及びS161〜S164に示される動作で、画素位置xの注目画素における各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、各領域判定結果を示す領域信号Ar3を生成する。なお、ステップS130及びS131は、図17の場合と同じ処理である。   Then, the level of the absolute value of the gradation change amount df (x) in the target pixel at the pixel position x is compared with a predetermined threshold value. In the operation shown in steps S130, S131 and S161 to S164 as follows using the comparison result cf0 and the polarity determination result pl0 by the smoothing result ct0. An area indicating each area determination result by performing a determination to classify each pixel in the target pixel at the pixel position x into a pixel belonging to a flat gradation area, a pixel belonging to a noise area, or a pixel at a non-noise gradation change position. A signal Ar3 is generated. Steps S130 and S131 are the same processing as in FIG.

(判定C1)
画素位置xの注目画素における階調変化量df(x)が、df(x)=0である場合(ステップS130)には、絶対値レベル比較手段22からの比較結果nlfは、nlf=1となり、注目画素は、階調平坦領域に属する画素であり、領域信号Ar3は、Ar3=0になる(ステップS161)。
(Decision C1)
When the gradation change amount df (x) in the target pixel at the pixel position x is df (x) = 0 (step S130), the comparison result nlf from the absolute value level comparison unit 22 is nlf = 1. The target pixel is a pixel belonging to the flat gradation region, and the region signal Ar3 becomes Ar3 = 0 (step S161).

(判定C2)
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり(ステップS131)、且つ、極性判定手段73からの判定結果pl0が、pl0=1である場合(平滑化結果ct0の極性と階調変化量df(x)の極性とが反対極性の場合)(ステップS162)、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり(ステップS131)、且つ、比較手段74からの比較結果cf0が、cf0=1である場合(平滑化結果の絶対値|ct0|≦0である場合)(ステップS162)は、
注目画素は、ノイズ領域に属する画素であり、領域信号Ar3は、Ar3=1になる(ステップS163)。
(Decision C2)
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd (step S131), and the determination result pl0 from the polarity determination unit 73 is pl0 = 1. (When the polarity of the smoothing result ct0 is opposite to the polarity of the gradation change amount df (x)) (step S162), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd (step S131), and the comparison result cf0 from the comparison unit 74 is cf0 = 1. If there is (when the absolute value of the smoothing result | ct0 | ≦ 0) (step S162),
The target pixel is a pixel belonging to the noise region, and the region signal Ar3 becomes Ar3 = 1 (step S163).

(判定C3)
判定C1において、注目画素が階調平坦領域に属する画素ではないと判定され、且つ、判定C2において、注目画素が、ノイズ領域に属する画素ではないと判定された場合には(ステップS131,S162)、画素位置xの注目画素は、非ノイズ階調変化位置の画素であり、領域信号Ar3は、Ar3=2になる(ステップS164)。
(Decision C3)
When it is determined in the determination C1 that the target pixel is not a pixel belonging to the flat gradation area, and it is determined in the determination C2 that the target pixel is not a pixel belonging to the noise area (steps S131 and S162) The target pixel at the pixel position x is the pixel at the non-noise gradation change position, and the area signal Ar3 becomes Ar3 = 2 (step S164).

図27に示される動作により、画素位置xにおける各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、判定結果を示す領域信号Ar3が得られる。   With the operation shown in FIG. 27, it is determined that each pixel at the pixel position x is classified into one of the pixel belonging to the flat gradation region, the pixel belonging to the noise region, and the pixel at the non-noise gradation change position. Is obtained.

《3−3》効果.
以上に説明したように、実施の形態3の画像処理装置又は画像処理方法においては、隣接画素を含む3画素範囲で階調変化量dfに対し平滑化処理した結果と階調変化量df(x)の値により、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(高周波の階調変化)をノイズ成分として判定するように、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、その判定結果を示す領域信号Ar3を基準として、非ノイズ階調変化位置(Ar3=2)以降における平坦・ノイズ領域幅データ予測値dstを求め、非ノイズ階調変化位置(Ar3=2)における振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstとから階調値の傾き(傾きデータ値Ksl)を得ている。したがって、実施の形態3の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれる場合においても、非ノイズ階調変化位置とその次に現れる非ノイズ階調変化位置との間に存在するノイズ成分による階調変化をノイズ成分による階調変化であると正確に判定できるので、平坦・ノイズ領域幅を正確に検出でき、傾きデータ値Kslを、ノイズ成分による影響を受けることなく正確に算出できる。また、実施の形態3の画像処理装置又は画像処理方法によれば、回路規模を大幅に増やすことなく、傾きデータ値Kslによる階調値で順次変化する補正値が得られ、緩やかに階調値が変化する画素領域や非ノイズ階調変化位置における適切な補正ビットデータCdを得て、画像信号の階調変化をより滑らかに変換し、ビット数を拡張できる。また、得られた補正ビットデータCdを入力画像信号Daの階調値に対し付加して階調数を拡張するため、実時間で処理でき、ノイズ成分による微少な変化を残したまま、階調変化がより滑らかに変換できる。
<< 3-3 >> Effect.
As described above, in the image processing apparatus or the image processing method according to the third embodiment, the result of smoothing the gradation change amount df in the three-pixel range including adjacent pixels and the gradation change amount df (x ), A gradation change (in which the gradation value of one “one gradation changing pixel” is increased or decreased by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel ( The decision is made to classify each pixel as either a pixel belonging to a flat gradation region, a pixel belonging to a noise region, or a pixel at a non-noise gradation change position so that a high-frequency gradation change) is determined as a noise component. The flat / noise area width data predicted value dst after the non-noise gradation change position (Ar3 = 2) is obtained with reference to the area signal Ar3 indicating the determination result, and at the non-noise gradation change position (Ar3 = 2). Amplitude limit gradation change amount Xlm and flat Noise area width data prediction value gradient of the gradation values from the dst is obtained (slope data value Ksl). Therefore, according to the image processing apparatus or the image processing method of the third embodiment, even when the input image signal Da includes a noise component, the non-noise gradation change position and the non-noise gradation change position that appears next to the non-noise gradation change position Since the gradation change due to the noise component existing between the two can be accurately determined as the gradation change due to the noise component, the flat / noise area width can be accurately detected, and the inclination data value Ksl is affected by the noise component. Can be calculated accurately. Further, according to the image processing apparatus or the image processing method of the third embodiment, the correction value that sequentially changes with the gradation value based on the inclination data value Ksl can be obtained without increasing the circuit scale, and the gradation value is gradually increased. By obtaining appropriate correction bit data Cd in the pixel region where the angle changes and the non-noise gradation change position, the gradation change of the image signal can be converted more smoothly and the number of bits can be expanded. In addition, since the obtained correction bit data Cd is added to the gradation value of the input image signal Da to extend the number of gradations, the number of gradations can be processed in real time, and the gradation can be maintained while leaving a slight change due to noise components. Changes can be converted more smoothly.

このように、実施の形態3の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれる場合においても、実時間で回路規模を大幅に増やすことなく、緩やかに階調値が変化する画像領域に対し、ノイズ成分による誤検出なく、階調変化をより適切に検出したことによる補正ビットデータCdが得られる。このため、補正ビットデータにより画像信号の階調数を拡張し、階調変換された出力画像信号Dbにおいて、画像のディテールが失われたり、鮮鋭度が損なわれたりすることはなく、量子化ノイズ又は擬似輪郭が低減され、階調変化が滑らかで、高品位な階調数を拡張した画像信号が得られる。   As described above, according to the image processing apparatus or the image processing method of the third embodiment, even when a noise component is included in the input image signal Da, the gradation is gradually increased without significantly increasing the circuit scale in real time. Correction bit data Cd obtained by more appropriately detecting a gradation change can be obtained without erroneous detection due to a noise component in an image region whose value changes. For this reason, the number of gradations of the image signal is expanded by the correction bit data, and the image details are not lost or the sharpness is not lost in the gradation-converted output image signal Db. Alternatively, the pseudo contour is reduced, the gradation change is smooth, and an image signal with an extended number of gradations can be obtained.

《3−4》変形例.
上記説明においては、画素領域判定手段70は、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(高周波の変化)(例えば、図4(a)及び(b))をノイズ成分と判定するものとして説明したが、1個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化のみでなく、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化(例えば、図23(a)及び(b))をもノイズ成分として検出するように構成することもできる。
<3-4> Modifications.
In the above description, the pixel area determination unit 70 increases the gradation value of one “1 gradation changing pixel” by one gradation relative to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. Alternatively, the gradation change (high-frequency change) that decreases (for example, FIGS. 4A and 4B) is determined as a noise component. However, the gradation value of one “1 gradation change pixel” is described. Is not only the gradation change that increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel, but also the gradation values of two consecutive “1 gradation changing pixels”. A gradation change (for example, FIGS. 23A and 23B) that increases or decreases by one gradation relative to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel is also detected as a noise component. It can also be configured.

図28は、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化までのノイズ成分をノイズ領域として判定する画素領域判定手段70bの一構成例を示すブロック図である。図28において、図25又は図22に示される構成と同一又は対応する構成には、同じ符号を付す。図28に示される画素領域判定手段70bは、図25における画素変化量抽出手段21を、画素位置xとその前後各2画素による合計5画素範囲における階調変化量dfを抽出する画素変化量抽出手段21bとし、3画素範囲用の平滑化手段72を5画素範囲用の平滑化手段76に置き換えた構成を有する。図28における画素変化量抽出手段21bは、図22のものと同じである。   FIG. 28 shows a gradation change in which the gradation value of two consecutive “one gradation changing pixels” increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel. It is a block diagram which shows one structural example of the pixel area | region determination means 70b which determines the noise component of as a noise area | region. In FIG. 28, the same reference numerals are given to the same or corresponding components as those shown in FIG. 25 or FIG. The pixel area determination means 70b shown in FIG. 28 uses the pixel change amount extraction means 21 in FIG. 25 to extract the pixel change amount df that extracts the gradation change amount df in a total of five pixel ranges of the pixel position x and the two pixels before and after the pixel position x. The means 21b has a configuration in which the smoothing means 72 for the 3-pixel range is replaced with the smoothing means 76 for the 5-pixel range. The pixel change amount extraction means 21b in FIG. 28 is the same as that in FIG.

図28においては、平滑化手段76を、階調変化量df(x)を中心とした5画素範囲で、階調変化量dfを加算することによる平滑化処理とすることにより、平滑化結果ct1を得る。平滑化手段72が階調変化量df(x)を中心とした3画素範囲における階調変化量dfの平滑化処理であるのに対し、より広い5画素の範囲内における増加と減少の逆方向の階調変化量、すなわち、高周波の変化であるノイズ成分が存在するかを、平滑化結果ct0の値として得ることができ、これにより、連続2個の‘1階調変化画素’の階調値が直前の画素の階調値及び直後の画素の階調値に対して1階調だけ増加又は減少する階調変化までを平滑化結果ct1として得ることができる。   In FIG. 28, the smoothing unit 76 performs a smoothing process by adding the gradation change amount df in a five-pixel range centered on the gradation change amount df (x), thereby obtaining a smoothing result ct1. Get. While the smoothing means 72 is a smoothing process of the gradation change amount df in the three-pixel range centering on the gradation change amount df (x), the reverse direction of the increase and decrease in the wider five-pixel range Can be obtained as the value of the smoothing result ct0, so that the gradation of two consecutive “1 gradation changing pixels” can be obtained. The smoothing result ct1 can be obtained up to a gradation change in which the value increases or decreases by one gradation with respect to the gradation value of the immediately preceding pixel and the gradation value of the immediately following pixel.

また、上記説明においては、画素領域判定手段70は、階調変化量dfの大きさから、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、領域判定結果として3種の領域信号Ar3=0,1,2を生成する場合を説明したが、領域信号Ar3を用いる平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50は、非ノイズ階調変化位置(Ar3=2)と、階調平坦領域及びノイズ領域(Ar3=0,1)の2通りで処理を切り換えているので、領域判定結果を2値で示す領域信号Ar1とすることも可能である。例えば、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定の結果から、階調平坦領域とノイズ領域においては領域信号Ar1=0、非ノイズ階調変化位置においては領域信号Ar1=1というように構成し、平坦・ノイズ領域幅判定手段30、傾き検出手段40、及び補正ビット生成手段50における処理を領域信号Ar1で切り換えるようにしてもよい。この場合にも、図24の場合と同様に構成でき、同様の効果を奏することができる。   In the above description, the pixel area determination unit 70 determines each pixel as a pixel belonging to the flat gradation area, a pixel belonging to the noise area, and a pixel at the non-noise gradation change position based on the magnitude of the gradation change amount df. In the above description, the case where three types of region signals Ar3 = 0, 1, and 2 are generated as region determination results has been described. However, the flat / noise region width determination unit 30 using the region signal Ar3, the inclination Since the detection means 40 and the correction bit generation means 50 are switched between the non-noise gradation change position (Ar3 = 2), the gradation flat area, and the noise area (Ar3 = 0, 1), the processing is switched. It is also possible to use a region signal Ar1 indicating the region determination result as a binary value. For example, based on the determination result that each pixel is classified as one of the pixel belonging to the flat gradation region, the pixel belonging to the noise region, or the pixel at the non-noise gradation change position, the region signal is output in the flat gradation region and the noise region. Ar1 = 0 and the region signal Ar1 = 1 at the non-noise gradation change position, and processing in the flat / noise region width determination unit 30, the inclination detection unit 40, and the correction bit generation unit 50 is performed by the region signal Ar1. You may make it switch. Also in this case, the configuration can be the same as in the case of FIG. 24, and the same effect can be achieved.

また、上記説明においては、階調変換手段3は入力画像信号Daの水平方向における階調値の変化において、水平方向の階調変化量を検出して階調値に対する補正ビットデータCdを生成し、補正ビットデータCdを画像信号に付加することで階調変換して量子化ノイズを低減する構成として説明したが、入力画像信号Daの垂直方向(画面表示走査線の配列方向)の階調変化量を検出し、補正ビットデータCdを生成して画像信号に付加し、垂直方向の階調値の変化を滑らかなものとしてもよく、同様の効果を奏することができる。   In the above description, the gradation converting means 3 detects the amount of gradation change in the horizontal direction and generates correction bit data Cd for the gradation value in the change of the gradation value in the horizontal direction of the input image signal Da. In the above description, the correction bit data Cd is added to the image signal to convert the gradation to reduce the quantization noise. However, the gradation change in the vertical direction of the input image signal Da (the arrangement direction of the screen display scanning lines). By detecting the amount, generating the correction bit data Cd and adding it to the image signal, the change of the gradation value in the vertical direction may be smooth, and the same effect can be obtained.

なお、実施の形態3において、上記以外の点は、上記実施の形態1又は2の場合と同じである。   In the third embodiment, points other than the above are the same as in the first or second embodiment.

《4》実施の形態4.
《4−1》構成.
上記実施の形態1の画像処理装置の階調変換手段1においては、階調変化量dfに基づいて領域信号Arを判定し、領域信号Arに基づいて非ノイズ階調変化位置(Ar=2)にある基準画素の直後の平坦・ノイズ領域の幅を予測した平坦・ノイズ領域幅データ予測値dstを求め、非ノイズ階調変化位置(Ar=2)における振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ予測値dstから階調値の傾き(傾きデータ値)Kslを算出している。これに対し、実施の形態4の画像処理装置の階調変換手段4においては、領域信号Arと、メモリを用いて得られる非ノイズ階調変化位置の間の画素数(平坦・ノイズ領域幅データ測定値de)と振幅制限階調変化量Xlmとから、階調値の傾きデータ値Ksを得る構成を採用しており、この場合には、ノイズ成分による誤検出なく階調値の傾きデータ値Ksを得ることができる。
<< 4 >> Embodiment 4
<< 4-1 >> Configuration.
In the gradation conversion means 1 of the image processing apparatus of the first embodiment, the area signal Ar is determined based on the gradation change amount df, and the non-noise gradation change position (Ar = 2) based on the area signal Ar. The flat / noise area width data prediction value dst obtained by predicting the width of the flat / noise area immediately after the reference pixel is obtained, and the amplitude limit gradation change amount Xlm at the non-noise gradation change position (Ar = 2) The gradient (gradient data value) Ksl of the gradation value is calculated from the noise region width data predicted value dst. On the other hand, in the gradation conversion means 4 of the image processing apparatus according to the fourth embodiment, the number of pixels (flat / noise area width data) between the area signal Ar and the non-noise gradation change position obtained using the memory. A configuration is employed in which the gradient data value Ks of the gradation value is obtained from the measured value de) and the amplitude limit gradation change amount Xlm. In this case, the gradient data value of the gradation value is detected without erroneous detection due to a noise component. Ks can be obtained.

図29は、本発明の実施の形態4による画像処理装置(すなわち、実施の形態4の画像処理方法を実施することができる装置)の構成の一例を概略的に示すブロック図である。図29において、図1(実施の形態1)に示される構成と同一又は対応する構成には、同じ符号を付す。   FIG. 29 is a block diagram schematically showing an example of the configuration of an image processing apparatus according to Embodiment 4 of the present invention (that is, an apparatus capable of performing the image processing method of Embodiment 4). 29, the same reference numerals are given to the same or corresponding components as those shown in FIG. 1 (Embodiment 1).

実施の形態4の画像処理装置は、領域信号Arを基準として、非ノイズ階調変化位置(Ar=2)の間の画素数(平坦・ノイズ領域幅データ測定値de)と、振幅制限階調変化量Xlmとから、階調値の傾きデータ値Ksを得て、得られた傾きデータ値Ksから補正ビットデータCeを生成し、入力画像信号Da(遅延後は符号Ddで示す)の階調値に対し、補正ビットデータCeによる値を加算する演算処理を行うことで、ビット数が拡張された出力画像信号Dbを生成するように構成されている。実施の形態4の画像処理装置は、画像信号の一定方向(例えば、水平方向又は垂直方向)における階調値の変化を検出し、ノイズ成分による影響を受けることなく階調値の傾きデータ値Ksを求めることで、入力画像信号Daのビット数を拡張する階調変換処理を行い、入力画像信号Daよりも多階調の出力画像信号Dbを出力するよう構成されている。   The image processing apparatus according to the fourth embodiment uses the area signal Ar as a reference and the number of pixels (flat / noise area width data measurement value de) between the non-noise gradation change positions (Ar = 2) and the amplitude-limited gradation. The gradient data value Ks of the gradation value is obtained from the change amount Xlm, the correction bit data Ce is generated from the obtained gradient data value Ks, and the gradation of the input image signal Da (denoted by reference sign Dd). An output image signal Db with an expanded number of bits is generated by performing arithmetic processing for adding a value based on the correction bit data Ce to the value. The image processing apparatus according to the fourth embodiment detects a change in the gradation value in a certain direction (for example, the horizontal direction or the vertical direction) of the image signal, and the gradation value gradient data value Ks without being affected by the noise component. Is obtained, gradation conversion processing for expanding the number of bits of the input image signal Da is performed, and an output image signal Db having a higher gradation than the input image signal Da is output.

図29に示されるように、実施の形態4の画像処理装置は、mビットのデジタルの入力画像信号Daに対し下位ビットを付加することでビット数を拡張する階調変換処理を行い、nビット(n>m)の出力画像信号Dbとして出力する階調変換手段4を有している。階調変換手段4は、階調変化量検出手段10と、画素領域判定手段20とを備えている。図29に示される階調変化量検出手段10及び画素領域判定手段20は、上記実施の形態1におけるものと同様の構成を有している。また、階調変換手段4は、2つの非ノイズ階調変化位置(Ar=2)の間の画素数を平坦・ノイズ領域幅データ測定値deとして求める平坦・ノイズ領域幅判定手段80と、終点階調変化量検出手段42及び傾き演算手段43を含み、平坦・ノイズ領域幅データ測定値deと階調変化量検出手段10からの振幅制限階調変化量Xlmとから入力画像信号Daの一定方向(例えば、水平方向)の階調値の傾きデータ値Ksを検出する傾き検出手段41と、画素領域判定手段20からの領域信号Arを遅延させ、傾き検出手段41からの出力(傾きデータ値Ks)と位相を合わせるための領域信号遅延補償手段67と、入力された傾きデータ値Ksから補正ビットデータCeを生成する補正ビット生成手段81と、入力画像信号Daを所定時間だけ遅延せる遅延補償手段93と、入力画像信号Daに補正ビット生成手段81からの補正ビットデータCeを付加する画素値演算手段94とを備えている。   As shown in FIG. 29, the image processing apparatus according to the fourth embodiment performs gradation conversion processing for expanding the number of bits by adding a lower bit to an m-bit digital input image signal Da, and n bits There is a gradation converting means 4 for outputting as an output image signal Db of (n> m). The gradation conversion unit 4 includes a gradation change amount detection unit 10 and a pixel area determination unit 20. The gradation change amount detection means 10 and the pixel area determination means 20 shown in FIG. 29 have the same configuration as that in the first embodiment. Further, the gradation converting means 4 includes a flat / noise area width determining means 80 for obtaining the number of pixels between two non-noise gradation changing positions (Ar = 2) as a flat / noise area width data measurement value de, and an end point. It includes a gradation change amount detection means 42 and an inclination calculation means 43, and a fixed direction of the input image signal Da from the flat / noise region width data measurement value de and the amplitude limited gradation change amount Xlm from the gradation change amount detection means 10. The inclination detection means 41 for detecting the inclination data value Ks of the gradation value (for example, in the horizontal direction) and the area signal Ar from the pixel area determination means 20 are delayed and output from the inclination detection means 41 (inclination data value Ks). ) And the area signal delay compensation means 67 for adjusting the phase, the correction bit generation means 81 for generating the correction bit data Ce from the input inclination data value Ks, and the input image signal Da for a predetermined time. Includes a delay compensation means 93 causes delays, and a pixel value calculating means 94 for adding the correction bit data Ce from the correction bit generation unit 81 to the input image signal Da.

実施の形態4においては、上記実施の形態1の場合と同様に、入力画像信号Daの水平方向に対し、画素間の階調変化量dfが+1又は−1となる変化を求め、階調の変化が緩やかな領域において8ビットの入力画像信号Daの階調数を拡張する階調変換処理を行い、12ビットの出力画像信号Dbとして出力する構成について説明する。   In the fourth embodiment, as in the case of the first embodiment, a change in which the gradation change amount df between pixels is +1 or −1 with respect to the horizontal direction of the input image signal Da is obtained. A description will be given of a configuration in which gradation conversion processing for expanding the number of gradations of the 8-bit input image signal Da in a region where the change is gradual is performed and output as a 12-bit output image signal Db.

図29において、階調変化量検出手段10は、入力画像信号Daの水平方向における階調変化量dfを検出し、水平方向の隣接画素間の階調値の差分である階調変化量dfと、この階調変化量dfの値を所定の範囲内(例えば、−1から+1までの範囲内)に制限した振幅制限階調変化量Xlmとを出力する。振幅制限階調変化量Xlmは、傾き検出手段41において、水平方向における階調値の傾きデータ値Ksを算出する際に、非ノイズ階調変化位置における階調変化の高さとして用いられる。画素領域判定手段20は、階調変化量算出手段11からの階調変化量dfの値から、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、画素の領域判定結果を示す領域信号Arを生成し出力する。   In FIG. 29, the gradation change amount detecting means 10 detects a gradation change amount df in the horizontal direction of the input image signal Da, and a gradation change amount df which is a difference in gradation value between adjacent pixels in the horizontal direction. Then, the amplitude limit gradation change amount Xlm is output in which the value of the gradation change amount df is limited within a predetermined range (for example, within a range from −1 to +1). The amplitude limit gradation change amount Xlm is used as the gradation change height at the non-noise gradation change position when the inclination detection unit 41 calculates the inclination data value Ks of the gradation value in the horizontal direction. Based on the value of the gradation change amount df from the gradation change amount calculation means 11, the pixel area determination unit 20 assigns each pixel to a pixel belonging to the gradation flat region, a pixel belonging to the noise region, and a non-noise gradation change position. It is determined that the pixel is classified into one of the pixels, and an area signal Ar indicating the pixel area determination result is generated and output.

平坦・ノイズ領域幅判定手段80には、画素領域判定手段20からの領域信号Arが入力される。平坦・ノイズ領域幅判定手段80は、水平方向走査期間ごとに、画素領域判定手段20からの領域信号Arに基づき、2つの非ノイズ階調変化位置(Ar=2)の間の平坦・ノイズ領域の画素数をカウントし、カウント値に1を加えた値を平坦・ノイズ領域幅データ測定値deとして求める。すなわち、非ノイズ階調変化位置(Ar=2)の画素(基準画素)を基準(開始点)として非ノイズ階調変化位置(Ar=2)から、それ以降の次に非ノイズ階調変化位置(Ar=2)となる画素(終点画素位置)までの間の平坦・ノイズ領域の画素数をカウントし、この画素数に1を加えた値を平坦・ノイズ領域幅データ測定値deとする。この場合は、開始点の非ノイズ階調変化位置(Ar=2)から次の終点となる非ノイズ階調変化位置(Ar=2)までの画素の階調値を検出するので、平坦・ノイズ領域幅分の数のデータを保持できるメモリが必要となる。しかし、実施の形態4においては、平坦・ノイズ領域幅の予測値ではなく、平坦・ノイズ領域幅(階調値の変化の傾きを算出する際の幅)の測定値を得ることが可能である。   An area signal Ar from the pixel area determining means 20 is input to the flat / noise area width determining means 80. The flat / noise region width determining unit 80 is based on the region signal Ar from the pixel region determining unit 20 for each horizontal scanning period, and the flat / noise region between two non-noise gradation change positions (Ar = 2). The number of pixels is counted, and a value obtained by adding 1 to the count value is obtained as the flat / noise area width data measurement value de. That is, from the non-noise gradation change position (Ar = 2) with the pixel (reference pixel) at the non-noise gradation change position (Ar = 2) as a reference (starting point), the non-noise gradation change position after that The number of pixels in the flat / noise area up to the pixel (Ar = 2) is counted, and a value obtained by adding 1 to the number of pixels is defined as a flat / noise area width data measurement value de. In this case, since the gradation value of the pixel from the non-noise gradation change position (Ar = 2) at the start point to the non-noise gradation change position (Ar = 2) as the next end point is detected, flat / noise A memory capable of holding data corresponding to the area width is required. However, in the fourth embodiment, it is possible to obtain a measured value of the flat / noise area width (width when calculating the gradient of the gradation value change) instead of the predicted value of the flat / noise area width. .

具体的には、平坦・ノイズ領域幅判定手段80は、水平方向走査期間ごとに平坦・ノイズ領域幅データ測定値deを初期化しながら、領域信号Arに基づき、開始点画素位置となる非ノイズ階調変化位置(Ar=2)から終点画素位置となる次の非ノイズ階調変化位置(Ar=2)までの画素数をカウントする。そして、平坦・ノイズ領域幅判定手段80は、得られたカウント値に1を加えた値を平坦・ノイズ領域幅データ測定値deとし、開始点となる非ノイズ階調変化位置から終点となる非ノイズ階調変化位置直前位置までの間、平坦・ノイズ領域幅データ測定値deを保持して出力する。この平坦・ノイズ領域幅データ測定値deは、傾き検出手段41内の傾き演算手段43へと出力され、水平方向における階調値の変化の傾き算出の際に、階調値の傾きの幅(距離)とする。平坦・ノイズ領域幅判定手段80は、非ノイズ階調変化位置(Ar=2)の間の画素数をカウントするので、階調平坦領域(Ar=0)の画素だけでなく、ノイズ領域(Ar=1)の画素についても、平坦な期間の画素として画素数をカウントする。よって、非ノイズ階調変化位置(Ar=2)の間の画素数を、ノイズ領域を含めて(すなわち、ノイズ成分による影響を受けることなく)、得ることができる。   Specifically, the flat / noise area width determining unit 80 initializes the flat / noise area width data measurement value de for each horizontal scanning period, and based on the area signal Ar, the non-noise level that becomes the start pixel position. The number of pixels from the tone change position (Ar = 2) to the next non-noise gradation change position (Ar = 2) which is the end pixel position is counted. Then, the flat / noise area width determining means 80 sets a value obtained by adding 1 to the obtained count value as the flat / noise area width data measurement value de, and sets the end point from the non-noise gradation change position as the start point. The flat / noise area width data measurement value de is held and output until the position immediately before the noise gradation change position. This flat / noise area width data measurement value de is output to the inclination calculating means 43 in the inclination detecting means 41, and when calculating the inclination of the gradation value change in the horizontal direction, Distance). Since the flat / noise area width determining means 80 counts the number of pixels between the non-noise gradation change positions (Ar = 2), not only the pixels in the gradation flat area (Ar = 0) but also the noise area (Ar = 1), the number of pixels is counted as a pixel in a flat period. Therefore, the number of pixels between the non-noise gradation change positions (Ar = 2) can be obtained including the noise region (that is, without being affected by the noise component).

傾き検出手段41には、画素領域判定手段20からの領域信号Arと、階調変化量検出手段10内の階調変化量制限手段12からの振幅制限階調変化量Xlmと、平坦・ノイズ領域幅判定手段80からの平坦・ノイズ領域幅データ測定値deとが入力される。傾き検出手段41は、画素領域判定手段20からの領域信号Arに基づき、開始点の非ノイズ階調変化位置(Ar=2)に対する次の終点となる非ノイズ階調変化位置(Ar=2)の振幅制限階調変化量Xlmを階調変化の高さ(「終点振幅制限階調変化量Xe」と言う。)として求め、この終点振幅制限階調変化量Xeと平坦・ノイズ領域幅データ測定値deから、開始点の非ノイズ階調変化位置から終点となる非ノイズ階調変化位置までの階調値の傾きを示す傾きデータ値Ksを算出し、補正ビット生成手段81へと出力する。終点振幅制限階調変化量Xeは、階調値の傾きの計算において用いられる階調変化の高さであり、階調変化量dfを−1から+1までの範囲内に制限した値である。   The inclination detection means 41 includes an area signal Ar from the pixel area determination means 20, an amplitude limit gradation change amount Xlm from the gradation change amount restriction means 12 in the gradation change amount detection means 10, and a flat / noise area. The flat / noise area width data measurement value de from the width determining means 80 is input. The inclination detecting means 41 is based on the area signal Ar from the pixel area determining means 20 and the non-noise gradation change position (Ar = 2) which is the next end point with respect to the non-noise gradation change position (Ar = 2) at the start point. Is determined as the height of gradation change (referred to as “endpoint amplitude limit gradation change amount Xe”), and the end point amplitude limit gradation change amount Xe and flat / noise area width data measurement. From the value de, an inclination data value Ks indicating the inclination of the gradation value from the non-noise gradation change position at the start point to the non-noise gradation change position at the end point is calculated and output to the correction bit generation means 81. The end point amplitude limit gradation change amount Xe is the height of the gradation change used in the calculation of the gradient of the gradation value, and is a value obtained by limiting the gradation change amount df within a range from −1 to +1.

具体的には、まず、傾き検出手段41内の終点階調変化量検出手段42は、画素領域判定手段20からの領域信号Arと、階調変化量検出手段10からの振幅制限階調変化量Xlmとから、開始点の非ノイズ階調変化位置(Ar=2)に対する次の終点非ノイズ階調変化位置(Ar=2)における振幅制限階調変化量Xlmを検出し、終点振幅制限階調変化量Xeとして求める。この終点非ノイズ階調変化位置(Ar=2)における振幅制限階調変化量Xlmである終点振幅制限階調変化量Xeは、水平方向における階調値の傾き算出の際に、階調変化の高さとして用いられ、開始点の非ノイズ階調変化位置から終点となる非ノイズ階調変化位置の直前位置までの間、保持して出力される。   Specifically, first, the end point gradation change amount detection means 42 in the inclination detection means 41 includes an area signal Ar from the pixel area determination means 20 and an amplitude limited gradation change amount from the gradation change amount detection means 10. From Xlm, an amplitude limit gradation change amount Xlm at the next end point non-noise gradation change position (Ar = 2) with respect to the start point non-noise gradation change position (Ar = 2) is detected, and the end point amplitude limit gradation is detected. Obtained as the change amount Xe. The end point amplitude limit tone change amount Xem, which is the amplitude limit tone change amount Xlm at the end point non-noise tone change position (Ar = 2), is calculated when the tone value gradient is calculated in the horizontal direction. It is used as the height, and is output while being held from the non-noise gradation change position at the start point to the position immediately before the non-noise gradation change position as the end point.

次に、傾き検出手段41内の傾き演算手段43には、終点階調変化量検出手段42からの終点振幅制限階調変化量Xeと、平坦・ノイズ領域幅判定手段80からの平坦・ノイズ領域幅データ測定値deが入力される。平坦・ノイズ領域幅データ測定値deは、開始点における非ノイズ階調変化位置(Ar=2)から次の終点非ノイズ階調変化位置までの画素数であるので、傾き演算手段43は、終点振幅制限階調変化量Xeと平坦・ノイズ領域幅データ測定値deの値から階調値の傾きである傾きデータ値Ksを、以下の式(8)により算出する。
Ks = Xe/de …式(8)
Next, the inclination calculating means 43 in the inclination detecting means 41 includes an end point amplitude limit gradation change amount Xe from the end point gradation change amount detecting means 42 and a flat / noise area from the flat / noise area width determining means 80. The width data measurement value de is input. Since the flat / noise area width data measurement value de is the number of pixels from the non-noise gradation change position (Ar = 2) at the start point to the next end non-noise gradation change position, the slope calculation means 43 determines the end point. An inclination data value Ks that is an inclination of the gradation value is calculated from the amplitude limited gradation change amount Xe and the flat / noise area width data measurement value de by the following equation (8).
Ks = Xe / de (8)

終点振幅制限階調変化量Xe及び平坦・ノイズ領域幅データ測定値deはともに、開始点となる非ノイズ階調変化位置から終点となる非ノイズ階調変化位置の直前までの間で、その期間の階調値の傾きを算出する際の階調変化の高さと幅の値を示すよう保持されて入力されているので、上記式(8)から得られる傾きデータ値Ksについても、開始点となる非ノイズ階調変化位置から終点となる非ノイズ階調変化位置の直前までの期間の階調値の傾きとして得られる。   Both the end point amplitude limit gradation change amount Xe and the flat / noise area width data measurement value de are from the non-noise gradation change position that is the start point to immediately before the non-noise gradation change position that is the end point. Since the gradient data value Ks obtained from the above equation (8) is also stored and input so as to indicate the value of the gradation change height and width when calculating the gradient of the gradation value of It is obtained as the gradient of the gradation value in the period from the non-noise gradation change position to the immediately preceding non-noise gradation change position.

終点振幅制限階調変化量Xe(すなわち、振幅制限階調変化量Xlm)は、その値が−1から+1までの範囲内に制限されており、例えば、終点振幅制限階調変化量Xeが+1で、開始点から終点位置までの非ノイズ階調変化位置(Ar=2)の間の画素数が7画素で、平坦・ノイズ領域幅データ測定値de=8が入力された場合は、算出される傾きデータ値Ksは1/8となる。また、終点振幅制限階調変化量Xeが−1の場合には、傾きデータ値Ks=−1/8となる。なお、平坦・ノイズ領域幅データ測定値de=0の場合は、傾きデータ値Ks=Xeとする。よって、この傾きデータ値Ksは−1から+1までの範囲内にある値として得られる。   The end point amplitude limit gradation change amount Xe (that is, the amplitude limit gradation change amount Xlm) is limited within a range from −1 to +1. For example, the end point amplitude limit gradation change amount Xe is +1. In the case where the number of pixels between the non-noise gradation change position (Ar = 2) from the start point to the end point position is 7 pixels and the flat / noise area width data measurement value de = 8 is input, it is calculated. The slope data value Ks is 1/8. Further, when the end point amplitude limit gradation change amount Xe is −1, the inclination data value Ks = −1 / 8. When the flat / noise area width data measurement value de = 0, the inclination data value Ks = Xe. Therefore, the inclination data value Ks is obtained as a value in the range from −1 to +1.

なお、階調平坦領域(Ar=0)及びノイズ領域(Ar=1)の画素においては、直前の非ノイズ階調変化位置(Ar=2)における傾きデータ値Ks(すなわち、開始点となる非ノイズ階調変化位置で得られる傾きデータ値Ksに相当する)が保持されている。領域信号Ar=0又は1の場合は、直前の非ノイズ階調変化位置における傾きデータ値Ksが、そのまま次の非ノイズ階調変化位置(Ar=2)まで保持される。   It should be noted that in the pixels in the gradation flat region (Ar = 0) and the noise region (Ar = 1), the slope data value Ks at the immediately preceding non-noise gradation change position (Ar = 2) (that is, the non-starting point). (Which corresponds to the slope data value Ks obtained at the noise gradation change position). When the area signal Ar = 0 or 1, the slope data value Ks at the previous non-noise gradation change position is held as it is until the next non-noise gradation change position (Ar = 2).

よって、開始点となる非ノイズ階調変化位置(Ar=2)から終点となる非ノイズ階調変化位置(Ar=2)までの間の傾きデータ値Ksを、終点振幅制限階調変化量Xeと平坦・ノイズ領域幅データ測定値deから算出して、平坦・ノイズ領域となる画素(Ar=0又は1)で用いる階調値の傾きとするので、階調平坦領域(Ar=0)の画素とともに、ノイズ領域(Ar=1)の画素についても、平坦・ノイズ領域(ノイズ成分がない場合には平坦な区間)の画素として扱うことになり、ノイズ成分による変化から傾きは算出されず、よって、ノイズ成分による誤検出なく、非ノイズ階調変化位置(Ar=2)の画素における階調値の傾きを得られる。   Therefore, the gradient data value Ks between the start point non-noise gradation change position (Ar = 2) and the end point non-noise gradation change position (Ar = 2) is set as the end point amplitude limit gradation change amount Xe. And the flat / noise area width data measured value de, and the slope of the gradation value used in the pixel (Ar = 0 or 1) that becomes the flat / noise area, the gradation flat area (Ar = 0) Together with the pixels, the pixels in the noise region (Ar = 1) are treated as pixels in a flat / noise region (a flat section when there is no noise component), and the slope is not calculated from the change due to the noise component. Therefore, the gradient of the gradation value in the pixel at the non-noise gradation change position (Ar = 2) can be obtained without erroneous detection due to noise components.

図30(a)及び(b)は、図29に示される傾き検出手段41によって算出される傾きデータ値Ksを説明するための概念図である。図30(a)は、終点振幅制限階調変化量Xe(高さ)が+1で、階調値が増加する場合、図30(b)は、終点振幅制限階調変化量Xeが−1で、階調値が減少する場合を示している。図30(a)及び(b)において、横軸は水平方向の画素位置を、縦軸は各画素位置における入力画像信号Daの階調値La(x)を示している。図30(a)及び(b)に示されるように、開始点(画素位置x)の非ノイズ階調変化位置(Ar=2)と終点となる非ノイズ階調変化位置(Ar=2)との間の画素数から得られる平坦・ノイズ領域幅をdeとすると、終点位置における画素位置はx+deとなり、平坦・ノイズ領域幅データ測定値deと振幅制限階調変化量Xlmから、図30(a)及び(b)に示されるような傾きKsが、開始点(画素位置x)の非ノイズ階調変化位置(Ar=2)から終点の非ノイズ階調変化位置(Ar=2)の直前画素までの傾きデータ値Ksとして得られる。   FIGS. 30A and 30B are conceptual diagrams for explaining the inclination data value Ks calculated by the inclination detecting means 41 shown in FIG. FIG. 30A shows that when the end point amplitude limit gradation change amount Xe (height) is +1 and the tone value increases, FIG. 30B shows that the end point amplitude limit tone change amount Xe is −1. This shows a case where the gradation value decreases. 30A and 30B, the horizontal axis indicates the horizontal pixel position, and the vertical axis indicates the gradation value La (x) of the input image signal Da at each pixel position. As shown in FIGS. 30A and 30B, the non-noise gradation change position (Ar = 2) at the start point (pixel position x) and the non-noise gradation change position (Ar = 2) as the end point. If the flat / noise region width obtained from the number of pixels between the two is de, the pixel position at the end point position is x + de. From the flat / noise region width data measurement value de and the amplitude limit gradation change amount Xlm, FIG. ) And the slope Ks as shown in (b) is a pixel immediately before the non-noise gradation change position (Ar = 2) at the end point from the non-noise gradation change position (Ar = 2) at the start point (pixel position x). Is obtained as the slope data value Ks up to.

以上より、傾き検出手段41からは、非ノイズ階調変化位置(Ar=2)における階調値の変化に基づく値の傾きデータ値Ksが得られ、平坦・ノイズ領域となる画素(Ar=0又は1)においては、その前の非ノイズ階調変化位置(Ar=2)で算出された傾きデータ値が保持される。振幅制限階調変化量Xlmが−1から+1までの範囲内に制限されているので、検出された傾きデータ値Ksは、−1/deから+1/deまでの範囲内の値、したがって、−1から+1までの範囲内の値となる。   As described above, the inclination detection unit 41 obtains the inclination data value Ks of the value based on the change of the gradation value at the non-noise gradation change position (Ar = 2), and the pixel (Ar = 0) that becomes the flat / noise area. Alternatively, in 1), the slope data value calculated at the previous non-noise gradation change position (Ar = 2) is held. Since the amplitude limit gradation change amount Xlm is limited within the range from −1 to +1, the detected slope data value Ks is a value within the range from −1 / de to + 1 / de, and thus − The value is in the range from 1 to +1.

図29において、領域信号遅延補償手段67には、画素領域判定手段20からの領域信号Arが入力される。領域信号遅延補償手段67は、領域信号Arに対し、平坦・ノイズ領域幅判定手段80で開始点となる非ノイズ階調変化位置(Ar=2)から終点画素となる非ノイズ階調変化位置(Ar=2)までの間の平坦・ノイズ領域幅データ測定値deを求め、傾き検出手段41で傾きデータ値Ksを得るまでの時間、領域信号Arを遅延し、傾き検出手段41からの出力(傾きデータ値Ks)と開始点の非ノイズ階調変化位置との位相を合わせて、遅延補償された領域信号Ardを出力する。平坦・ノイズ領域幅判定手段80及び傾き検出手段41は、非ノイズ階調変化位置から次の非ノイズ階調変化位置までの間の傾きを求めており、その間の平坦・ノイズ領域幅、終点における階調変化の高さを求めるための遅延が必要となる。よって、ここでの遅延補償する時間は、平坦・ノイズ領域幅と階調変化の高さ及び階調変化の傾きを得るまでの遅延時間に相当する分の時間となる。   In FIG. 29, the area signal delay compensation means 67 receives the area signal Ar from the pixel area determination means 20. The area signal delay compensation unit 67 performs a non-noise gradation change position (Ar = 2) which is a start point in the flat / noise area width determination unit 80 with respect to the area signal Ar from a non-noise gradation change position (Ar = 2). The flat / noise area width data measured value de until Ar = 2) is obtained, and the area signal Ar is delayed for a time until the inclination data value Ks is obtained by the inclination detecting means 41, and the output ( The phase of the slope data value Ks) and the phase of the start point non-noise gradation change position are matched, and a delay compensated area signal Ard is output. The flat / noise area width determining means 80 and the inclination detecting means 41 obtain the inclination between the non-noise gradation change position and the next non-noise gradation change position, and the flat / noise area width and the end point between them are obtained. A delay is required to obtain the height of the gradation change. Therefore, the delay compensation time here is a time corresponding to the delay time until the flat / noise area width, the gradation change height, and the gradation change inclination are obtained.

次に、図29において、補正ビット生成手段81には、傾き検出手段41からの傾きデータ値Ksと、領域信号遅延補償手段67からの遅延補償された領域信号Ardとが入力される。補正ビット生成手段81は、傾きデータ値Ksから入力画素信号Daの画素値に付加する補正値(階調値)の隣接する画素ごとの階調変化量dK2を求め、水平方向走査期間ごとで、領域信号Ard(又は領域信号Ar)に従い、傾きデータ値Ksによる階調変化量dK2を画素ごとで順次加算して補正値を求め、この補正値から補正ビットデータCeを生成し、画素値演算手段94へと出力する。   Next, in FIG. 29, the correction bit generation means 81 receives the inclination data value Ks from the inclination detection means 41 and the delay compensated area signal Ard from the area signal delay compensation means 67. The correction bit generation unit 81 obtains the gradation change amount dK2 for each adjacent pixel of the correction value (gradation value) to be added to the pixel value of the input pixel signal Da from the inclination data value Ks, and for each horizontal scanning period, In accordance with the area signal Ard (or area signal Ar), the gradation change amount dK2 based on the inclination data value Ks is sequentially added for each pixel to obtain a correction value, and correction bit data Ce is generated from the correction value, and pixel value calculation means Output to 94.

ここで、傾きデータ値Ks、すなわち、画素ごとの階調変化量dK2は、入力画像信号Daの階調値La(例えば、図2(a)〜(c)又は図3(a)〜(c)などを参照)に対して小数の値を含んだ値であり、よって、補正ビット生成手段81において生成する補正ビットデータCeは、入力画像信号Daの階調値の小数部を含む値による付加ビットEと、付加する値の符号ビットを含むビット列として求められる。なお、補正ビットデータCeは、例えば、図14(実施の形態1)で説明した補正ビットデータCdと同様に、付加ビットEとその符号ビットから構成される。   Here, the inclination data value Ks, that is, the gradation change amount dK2 for each pixel is the gradation value La (for example, FIGS. 2A to 2C or FIGS. 3A to 3C) of the input image signal Da. The correction bit data Ce generated by the correction bit generation means 81 is added by a value including the decimal part of the gradation value of the input image signal Da. It is obtained as a bit string including the bit E and the sign bit of the value to be added. The correction bit data Ce is composed of an additional bit E and its sign bit, for example, like the correction bit data Cd described in FIG. 14 (Embodiment 1).

図31は、図29に示される補正ビット生成手段81の構成の一例を概略的に示すブロック図である。図31に示されるように、補正ビット生成手段81は、例えば、加算手段82と、切換え手段83と、補正値遅延手段84と、ビット列変換手段85とを有する。補正ビット生成手段81は、入力画素信号Daに対し付加すべき補正値を求め、その階調値を示すビット列を補正ビットデータCeとして出力する。   FIG. 31 is a block diagram schematically showing an example of the configuration of the correction bit generation means 81 shown in FIG. As illustrated in FIG. 31, the correction bit generation unit 81 includes, for example, an addition unit 82, a switching unit 83, a correction value delay unit 84, and a bit string conversion unit 85. The correction bit generation means 81 obtains a correction value to be added to the input pixel signal Da, and outputs a bit string indicating the gradation value as correction bit data Ce.

図31に示される補正ビット生成手段81においては、加算手段82には、傾き検出手段41からの傾きデータ値Ksが入力され、また、後述する補正値遅延手段84からの1画素遅延された遅延補正値pCdが入力される。加算手段82は、傾きデータ値Ksから補正値の隣接する画素ごとの階調変化量dK2を求め、遅延補正値pCdである直前の画素における補正値に対し、階調変化量dK2を加算することで、非ノイズ階調変化位置(Ar=2)以降の階調平坦領域又はノイズ領域となる画素における補正値sCeを得て、切換え手段83へと出力する。すなわち、加算手段82は、まず、傾きデータ値Ksを、補正値の隣接する画素ごとの階調変化量dK2として求め(dK2=Ksとする)、次に、直前画素における補正値(遅延補正値pCe)に対し階調変化量dK2を加算(pCe+dK2)する。なお、加算手段82の演算は階調変化量dK2の符号(すなわち、傾きデータ値Ksの符号)に応じて、加算又は減算処理する(dK2>0のときは絶対値|dK2|を加算し、dK2<0のときは|dK2|を減算する。)。   In the correction bit generation means 81 shown in FIG. 31, the inclination data value Ks from the inclination detection means 41 is input to the addition means 82, and a delay delayed by one pixel from the correction value delay means 84 described later. A correction value pCd is input. The adding means 82 obtains the gradation change amount dK2 for each adjacent pixel of the correction value from the inclination data value Ks, and adds the gradation change amount dK2 to the correction value in the immediately preceding pixel that is the delay correction value pCd. Thus, the correction value sCe is obtained for the pixel that becomes the gradation flat region or the noise region after the non-noise gradation change position (Ar = 2), and is output to the switching means 83. That is, the adding means 82 first obtains the inclination data value Ks as the gradation change amount dK2 for each adjacent pixel of the correction value (dK2 = Ks), and then the correction value (delay correction value) for the immediately preceding pixel. The gradation change amount dK2 is added to pCe) (pCe + dK2). The calculation of the adding means 82 is performed by adding or subtracting according to the sign of the gradation change amount dK2 (that is, the sign of the slope data value Ks) (when dK2> 0, the absolute value | dK2 | is added, When dK2 <0, | dK2 | is subtracted).

切換え手段83には、領域信号Ard(又は領域信号Ar)と、加算手段82による補正値sCeが入力される。切換え手段83は、水平方向走査期間ごとで値を初期化する(固定の開始点補正値0にする)とともに、領域信号Arに基づき、開始点補正値0と、加算手段82による補正値sCeとを切り換えて、入力画像信号Daに対して付加すべき階調値として補正値aCeを生成し、出力する。詳細に言えば、切換え手段83は、水平方向走査期間の区切りにおいての初期化時は、開始点補正値0を選択して補正値aCe=0とするとともに、領域信号Ardに従い、非ノイズ階調変化位置(Ard=2)においては、開始点補正値0とする(補正値aCe=0)。一方、切換え手段83は、階調平坦領域又はノイズ領域となる画素(Ard=0又は1)においては、加算手段82による補正値sCe(すなわち、直前画素の補正値pCeに対し階調変化量dK2=Ksを加算した値)を選択し、補正値aCeとする(aCe=pCe+Ks)。そして、この補正値aCeは、ビット列変換手段85へと出力されるとともに、補正値遅延手段84に送られ、1画素分遅延して遅延補正値pCeとして加算手段82に戻される。   The switching means 83 receives the area signal Ard (or area signal Ar) and the correction value sCe from the adding means 82. The switching unit 83 initializes the value for each horizontal scanning period (sets to a fixed start point correction value of 0), and based on the area signal Ar, the start point correction value of 0 and the correction value sCe of the addition unit 82 And a correction value aCe is generated and output as a gradation value to be added to the input image signal Da. More specifically, the switching means 83 selects the start point correction value 0 to set the correction value aCe = 0 at the time of initialization at the horizontal scanning period break, and in accordance with the area signal Ard, the non-noise gradation At the change position (Ard = 2), the start point correction value is 0 (correction value aCe = 0). On the other hand, in the pixel (Ard = 0 or 1) that is the gradation flat region or the noise region, the switching unit 83 uses the correction value sCe (that is, the gradation change amount dK2 with respect to the correction value pCe of the immediately preceding pixel). = A value obtained by adding Ks), and a correction value aCe is selected (aCe = pCe + Ks). The correction value aCe is output to the bit string conversion means 85 and sent to the correction value delay means 84, delayed by one pixel, and returned to the addition means 82 as a delay correction value pCe.

補正値遅延手段84は、切換え手段83からの補正値aCeを1画素分遅延して、遅延補正値pCeを出力する。切換え手段83からの出力を遅延するので、遅延補正値pCeは、直前画素における補正値が出力される。   The correction value delay means 84 delays the correction value aCe from the switching means 83 by one pixel and outputs a delay correction value pCe. Since the output from the switching unit 83 is delayed, the correction value for the immediately preceding pixel is output as the delay correction value pCe.

以上に説明した加算手段82、切換え手段83、及び補正値遅延手段84における構成により、入力画像信号Daに対し付加すべき補正値aCeは、非ノイズ階調変化位置(Ard=2)においては開始点補正値0で、階調平坦領域又はノイズ領域となる画素(Ard=0,1)においては、加算手段82による補正値sCe、すなわち、非ノイズ階調変化位置(Ard=2)から順に直前画素における値に対し階調変化量dK2=Ksが加算されて、階調変化量dK2の絶対値(すなわち、傾きデータ値Ksの絶対値|Ks|)の大きさで順次変化する値として得られる。傾きデータ値Ksによる階調変化量dK2は、−1から+1までの範囲内の絶対値が1以下となる小数として表現されており、したがって、切換え手段83から得られる補正値aCeについても、1以下の小数となる精度を持った階調値となる。   Due to the configuration of the adding means 82, the switching means 83, and the correction value delay means 84 described above, the correction value aCe to be added to the input image signal Da starts at the non-noise gradation change position (Ard = 2). In a pixel (Ard = 0, 1) which has a point correction value of 0 and becomes a gradation flat region or a noise region, the correction value sCe by the adding means 82, that is, the immediately preceding position from the non-noise gradation change position (Ard = 2). The gradation change amount dK2 = Ks is added to the value in the pixel to obtain a value that sequentially changes with the magnitude of the absolute value of the gradation change amount dK2 (that is, the absolute value | Ks | of the gradient data value Ks). . The gradation change amount dK2 due to the inclination data value Ks is expressed as a decimal number whose absolute value in the range from −1 to +1 is 1 or less. Therefore, the correction value aCe obtained from the switching unit 83 is also 1 The gradation value is accurate to the following decimal.

すなわち、開始点となる非ノイズ階調変化位置(Ar=2)から順に領域信号Ar=0又は1の画素をカウントした値Nに対し、それぞれの画素における補正値aCeは、カウント値Nと傾きデータ値Ks(階調変化量dK2=Ks)により、補正値aCe=N×Ksで表すことができ、開始点の補正値aCe=0から順に、傾きデータ値Ksによる階調変化量dK2のレベル差の変化を持つ補正値aCeが得られる。   That is, with respect to the value N obtained by counting the pixels of the area signal Ar = 0 or 1 in order from the non-noise gradation change position (Ar = 2) that is the starting point, the correction value aCe for each pixel has a slope with the count value N The correction value aCe = N × Ks can be expressed by the data value Ks (gradation change amount dK2 = Ks), and the level of the gradation change amount dK2 due to the inclination data value Ks in order from the correction value aCe = 0 at the start point. A correction value aCe having a change in difference is obtained.

領域信号Ard(又はAr)に基づき切換え手段83で選択する補正値aCeを切り換えるので、階調平坦領域(Ar=0)とともに、ノイズ領域(Ar=1)となる画素についても、平坦な期間の画素として傾きデータ値Ksによる階調変化量dK2のレベル差の変化を持つ補正値aCeが得られ、よって、ノイズ成分による影響なく、順次変化する補正値aCeが得られる。   Since the correction value aCe selected by the switching unit 83 is switched based on the area signal Ard (or Ar), the pixel that becomes the noise area (Ar = 1) as well as the gradation flat area (Ar = 0) has a flat period. A correction value aCe having a change in level difference of the gradation change amount dK2 due to the inclination data value Ks is obtained as a pixel, and thus a correction value aCe that changes sequentially without being affected by the noise component.

なお、傾きデータ値Ksは−1から+1までの範囲内で制限されており、エッジ(輪郭)部分のような階調変化が−1から+1までの範囲内を超えた階調変化量を持つ画素でも、付加される補正値は−1から+1までの範囲内で、その差分は保持されるため、輪郭情報を保つような補正値として得ることができる。   Note that the gradient data value Ks is limited within a range from −1 to +1, and has a gradation change amount in which a gradation change such as an edge (outline) portion exceeds the range from −1 to +1. Even in the pixel, the added correction value is in the range from −1 to +1, and the difference is held. Therefore, it can be obtained as a correction value that preserves the contour information.

補正ビット生成手段81内のビット列変換手段85には、切換え手段83からの補正値aCeが入力される。ビット列変換手段85は、補正値aCeを所定のビット数となるビット列の値へ変換し、付加する値を示す付加ビットEと値の符号ビットを含めて補正ビットデータCeとして求め、補正ビット生成手段81から画素値演算手段63へと出力する。ビット列変換手段85は、入力が異なるのみで、図13(実施の形態1)におけるビット列変換手段55と同様に構成できるが、補正値aCeの符号を除く絶対値は1以下の小数を含む値として得ているので、補正ビットデータCeにおける補正の値(付加ビットE)は、入力画像信号Daの階調値のビット列に対し、小数部を示す。ビット列変換手段85は、図13の場合と同様に、ハードウェアでは補正値aCeなどの値も通常は所定のビット数の値として得ているので、省略することができ、また、ソフトウェアの場合のようにビット列として扱う必要がない場合も省略することができる。   The correction value aCe from the switching unit 83 is input to the bit string conversion unit 85 in the correction bit generation unit 81. The bit string conversion means 85 converts the correction value aCe into a bit string value having a predetermined number of bits, obtains the correction bit data Ce including the additional bit E indicating the value to be added and the sign bit of the value, and correction bit generation means 81 to the pixel value calculation means 63. The bit string conversion means 85 can be configured in the same manner as the bit string conversion means 55 in FIG. 13 (Embodiment 1) only with different inputs, but the absolute value excluding the sign of the correction value aCe is a value including a decimal number of 1 or less. Thus, the correction value (additional bit E) in the correction bit data Ce indicates a decimal part with respect to the bit string of the gradation value of the input image signal Da. Similarly to the case of FIG. 13, the bit string converting means 85 can be omitted because the value such as the correction value aCe is usually obtained as a value of a predetermined number of bits in hardware. Thus, it is possible to omit the case where it is not necessary to treat it as a bit string.

図32は、図29に示される補正ビット生成手段81bの構成の他の例を概略的に示すブロック図である。図32に示されるように、補正ビット生成手段81bは、領域信号Ard(又はAr)を基準として、開始点となる非ノイズ階調変化位置(Ar=2)から順に画素をカウントするカウント手段86と、カウント値Nと傾きデータ値Ksを乗算し補正値aCe=N×Ksを求める乗算手段87と、ビット列変換手段85とから構成される。補正ビット生成手段81bは、開始点の補正値aCe=0から順に、傾きデータ値Ksによるレベル差の変化を持つ補正値aCeを得る。   FIG. 32 is a block diagram schematically showing another example of the configuration of the correction bit generation means 81b shown in FIG. As shown in FIG. 32, the correction bit generation unit 81b counts pixels 86 in order from the non-noise gradation change position (Ar = 2) serving as a start point with the region signal Ard (or Ar) as a reference. And a multiplication means 87 for multiplying the count value N and the inclination data value Ks to obtain the correction value aCe = N × Ks, and a bit string conversion means 85. The correction bit generation unit 81b obtains a correction value aCe having a change in level difference due to the inclination data value Ks in order from the correction value aCe at the starting point = 0.

次に、図29に示す階調変換手段4における遅延補償手段93では、補正ビット生成手段81から出力される補正ビットデータCeが得られるまでの遅延と入力画像信号Daの画素位置を合わせるように入力画像信号Daの遅延補償を行い、遅延補償された画像信号Ddを出力する。   Next, in the delay compensation means 93 in the gradation conversion means 4 shown in FIG. 29, the delay until the correction bit data Ce output from the correction bit generation means 81 is obtained matches the pixel position of the input image signal Da. Delay compensation of the input image signal Da is performed, and a delay compensated image signal Dd is output.

階調変換手段4における画素値演算手段94には、遅延補償手段93からの遅延補償された画像信号Ddと、補正ビット生成手段81からの補正ビットデータCeが入力される。画素値演算手段94は、遅延補償された画像信号Ddに対し、補正ビット生成手段81からの補正ビットデータCeを整数部の位置を合わせて加算することで、新たな出力画像信号Dbを算出し、出力する。出力画像信号Dbの階調値に対して、小数部を含む補正ビットデータCeが演算により付加されるので、出力画像信号Dbのビット数は画像信号Ddのビット数より大きく、すなわち、拡張され、このビット数を拡張した出力画像信号Dbが、階調変換手段4の出力となる。   The pixel value calculation unit 94 in the gradation conversion unit 4 receives the delay compensated image signal Dd from the delay compensation unit 93 and the correction bit data Ce from the correction bit generation unit 81. The pixel value calculation means 94 calculates a new output image signal Db by adding the correction bit data Ce from the correction bit generation means 81 to the delay compensated image signal Dd with the position of the integer part aligned. ,Output. Since correction bit data Ce including a decimal part is added to the gradation value of the output image signal Db by calculation, the number of bits of the output image signal Db is larger than the number of bits of the image signal Dd, that is, expanded. The output image signal Db with the expanded number of bits becomes the output of the gradation converting means 4.

なお、画素値演算手段94における演算においては、補正ビットデータCeの正又は負の符号に応じて加算又は減算処理される(すなわち、Ce>0のときには絶対値|Ce|を加算し、Ce<0のときには|Ce|を減算する)。また、演算後の値が負の値となる場合は、出力画像信号Dbを値0(Db=0)とし、出力画像信号Dbの設定したビット数(最大値)を超える値となる場合は、出力画像信号Dbの値を所定の最大値として、出力画像信号Dbの値を制限する。   In the calculation in the pixel value calculation means 94, addition or subtraction processing is performed according to the positive or negative sign of the correction bit data Ce (that is, when Ce> 0, the absolute value | Ce | is added, and Ce < When 0, | Ce | is subtracted). Further, when the value after the calculation is a negative value, the output image signal Db is set to the value 0 (Db = 0), and when the value exceeds the set bit number (maximum value) of the output image signal Db, The value of the output image signal Db is limited by setting the value of the output image signal Db as a predetermined maximum value.

画素値演算手段94において加算又は減算によって演算処理された後の出力画像信号Dbは、画像信号Ddに対し小数部を有した精度の画像信号となり、出力画像信号Dbのビット数は、入力画像信号Daよりも多くなるので、表現できる階調数が増えるだけでなく、小数部を含む補正ビットデータCeによる小数部のビット数を有し、階調値の分解能が増加し、より滑らかな階調値の変化を表現できるようになる。また、階調値の変化が画像のエッジ(輪郭)による場合も、エッジ部における差分は保持されるので、輪郭情報を保ちながら、画像の滑らかさを増すことができる。   The output image signal Db after being processed by addition or subtraction in the pixel value calculation means 94 is an image signal with a precision having a decimal part with respect to the image signal Dd, and the number of bits of the output image signal Db is the input image signal. Since it is larger than Da, not only the number of gradations that can be expressed is increased, but also the number of bits in the decimal part of the correction bit data Ce including the decimal part is included, the resolution of the gradation value is increased, and the smoother gradation It will be possible to express changes in values. Further, even when the change in the gradation value is caused by the edge (contour) of the image, the difference in the edge portion is retained, so that the smoothness of the image can be increased while maintaining the contour information.

さらに、補正ビットデータCeは、画素領域判定手段20からの領域信号Arを基準として、ノイズ成分による影響なく、非ノイズ階調変化位置(Ar=2)から順に傾きデータ値Ksによる階調変化量dK2で変化する補正値aCeとして得られており、画素値演算手段94において、画像信号Dd(又は入力画像信号Da)の階調値に対して、補正ビットデータCeによる値が加算又は減算処理されるので、線形補間処理による階調値の変換処理に比べ、ノイズ等の微少な階調値の変化による画像のディテールを残し、鮮鋭度を維持しながら、緩やかに階調値が変化する画素の領域の滑らかさを増すことができ、画像のぼやけを低減することができる。   Further, the correction bit data Ce is based on the area signal Ar from the pixel area determination unit 20 and is not affected by noise components, and the gradation change amount based on the gradient data value Ks in order from the non-noise gradation change position (Ar = 2). The correction value aCe that changes with dK2 is obtained, and the pixel value calculation means 94 adds or subtracts the value based on the correction bit data Ce to the gradation value of the image signal Dd (or the input image signal Da). Therefore, compared to the gradation value conversion processing by linear interpolation processing, the image details due to slight changes in gradation values such as noise remain, and sharpness is maintained while maintaining the sharpness of pixels whose gradation values change slowly. The smoothness of the area can be increased, and blurring of the image can be reduced.

実施の形態4における入力画像信号Da、補正ビットデータCe、及び出力画像信号Dbの関係は、図14(実施の形態1)の場合と同様である。   The relationship among the input image signal Da, the correction bit data Ce, and the output image signal Db in the fourth embodiment is the same as in the case of FIG. 14 (first embodiment).

《4−2》動作.
図33は、実施の形態4による画像処理装置の動作(その1)を示すフローチャートであり、主に、階調変換手段4による傾きデータ値を算出するための動作を示す。また、図34は、実施の形態4による画像処理装置の動作(その2)を示すフローチャートであり、階調変換手段4による補正ビットデータの生成及び階調変換処理の動作を示す。図33及び図34には、各走査線(ライン)内の画素ごとの処理を示す。なお、画素領域判定手段20における階調変化量dfに基づき、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定の動作は、図17(実施の形態1)の場合と同様である。
<< 4-2 >> Operation.
FIG. 33 is a flowchart showing the operation (No. 1) of the image processing apparatus according to the fourth embodiment, and mainly shows the operation for calculating the inclination data value by the gradation converting means 4. FIG. 34 is a flowchart showing the operation (part 2) of the image processing apparatus according to the fourth embodiment, and shows the operation of the correction bit data generation and gradation conversion processing by the gradation converting means 4. 33 and 34 show processing for each pixel in each scanning line (line). Note that, based on the gradation change amount df in the pixel area determination unit 20, each pixel is classified into one of a pixel belonging to a flat gradation area, a pixel belonging to a noise area, and a pixel at a non-noise gradation change position. The operation is the same as in FIG. 17 (Embodiment 1).

図35(a)〜(k)は、実施の形態4による画像処理装置の動作の一例(階調値が非常に緩やかに上昇し、ノイズ成分を含む場合)を説明するための図である。また、図36(a)〜(k)は、実施の形態4による画像処理装置の動作の他の例(階調値が非常に緩やかに低下し、ノイズ成分を含む場合)を説明するための図である。図35(a)〜(k)は、図18(a)〜(k)(実施の形態1)と同様のノイズ成分を含む入力画像信号Daの一部について、階調変換手段4における動作を示しており、図36(a)〜(k)は、図19(a)〜(k)(実施の形態1)と同様の画像信号が入力された場合の階調変換手段4における動作を示している。   FIGS. 35A to 35K are diagrams for explaining an example of the operation of the image processing apparatus according to the fourth embodiment (when the gradation value rises very slowly and includes a noise component). FIGS. 36A to 36K are diagrams for explaining another example of the operation of the image processing apparatus according to the fourth embodiment (when the gradation value decreases very slowly and includes a noise component). FIG. FIGS. 35A to 35K show the operation of the gradation converting means 4 for a part of the input image signal Da including the noise component similar to that shown in FIGS. 18A to 18K (Embodiment 1). 36 (a) to 36 (k) show the operation in the gradation converting means 4 when the same image signals as those in FIGS. 19 (a) to 19 (k) (Embodiment 1) are input. ing.

以下、階調変換手段4の動作を図33、図34、図35(a)〜(k)、及び図36(a)〜(k)を用いて説明する。まず、図33において、ステップS101〜S103,S105による動作、すなわち、入力画像信号Daが入力され、階調変化量dfを求め、振幅制限階調変化量Xlmを得て、画素の領域判定結果を示す領域信号Arを生成する動作は、図15(実施の形態1)に示される動作と同じである。また、図35(a)〜(e)及び図36(a)〜(e)はそれぞれ、図18(a)〜(e)及び図19(a)〜(e)と同様である。   Hereinafter, the operation of the gradation converting means 4 will be described with reference to FIGS. 33, 34, 35 (a) to (k), and FIGS. 36 (a) to (k). First, in FIG. 33, the operations in steps S101 to S103, S105, that is, the input image signal Da is input, the gradation change amount df is obtained, the amplitude limited gradation change amount Xlm is obtained, and the pixel region determination result is obtained. The operation for generating the region signal Ar shown is the same as the operation shown in FIG. 15 (Embodiment 1). 35A to 35E and FIGS. 36A to 36E are the same as FIGS. 18A to 18E and FIGS. 19A to 19E, respectively.

次に、平坦・ノイズ領域幅判定手段80と傾き検出手段41において、非ノイズ階調変化位置の間の平坦・ノイズ領域幅データ測定値deが求められ、階調値の傾きを検出する動作が、非ノイズ階調変化位置(Ar=2)において行われる(ステップS200〜S205)。   Next, the flat / noise area width determination means 80 and the inclination detection means 41 obtain the flat / noise area width data measurement value de between the non-noise gradation change positions, and detect the inclination of the gradation value. This is performed at the non-noise gradation change position (Ar = 2) (steps S200 to S205).

非ノイズ階調変化位置(Ar=2)において(ステップS200)、平坦・ノイズ領域幅判定手段80は、この画素位置を開始点として(ステップS201)、次に非ノイズ階調変化位置(Ar=2)となる終点画素位置までの画素数をカウントしてカウント値CNを出力する(ステップS202)。そして、得られたカウント値CNに1を加えた値(CN+1)を平坦・ノイズ領域幅データ測定値deとする(ステップS203)。この平坦・ノイズ領域幅データ測定値deは、開始点の非ノイズ階調変化位置から終点となる非ノイズ階調変化位置の直前画素までの間保持される。すなわち、階調平坦領域(Ar=0)の画素及びノイズ領域(Ar=1)の画素においては、直前の開始点における非ノイズ階調変化位置における値が保たれ、その間の階調値の傾きにおける幅(距離)となる(ステップS206)。   At the non-noise gradation change position (Ar = 2) (step S200), the flat / noise area width determining means 80 starts from this pixel position (step S201), and then the non-noise gradation change position (Ar = The number of pixels up to the end point pixel position 2) is counted and a count value CN is output (step S202). Then, a value (CN + 1) obtained by adding 1 to the obtained count value CN is set as a flat / noise area width data measurement value de (step S203). The flat / noise area width data measurement value de is held from the non-noise gradation change position at the start point to the pixel immediately before the non-noise gradation change position as the end point. That is, in the pixel in the flat gradation region (Ar = 0) and the pixel in the noise region (Ar = 1), the value at the non-noise gradation change position at the immediately preceding start point is maintained, and the gradient of the gradation value between them The width (distance) at (step S206).

図35(f)において、非ノイズ階調変化位置(Ar=2)となる画素位置x=8,16,24,32でカウント値CNが0にリセットされ、その次の非ノイズ階調変化位置(Ar=2)までの画素数がカウントされて、階調平坦領域(Ar=0)及びノイズ領域(Ar=1)となる画素の連続数が得られる。図35(g)においては、カウント値CNに1を加算した値から求めた平坦・ノイズ領域幅データ測定値deが、開始点となる非ノイズ階調変化位置から終点となる非ノイズ階調変化位置直前位置までの間保持されている。図36(f)及び(g)は、図35(f)及び(g)の場合と同様である。   In FIG. 35 (f), the count value CN is reset to 0 at the pixel position x = 8, 16, 24, 32 which is the non-noise gradation change position (Ar = 2), and the next non-noise gradation change position. The number of pixels up to (Ar = 2) is counted, and the continuous number of pixels that become the gradation flat region (Ar = 0) and the noise region (Ar = 1) is obtained. In FIG. 35 (g), the flat / noise area width data measurement value de obtained from the value obtained by adding 1 to the count value CN is the non-noise gradation change that is the end point from the non-noise gradation change position that is the start point. It is held until the position immediately before the position. 36 (f) and (g) are the same as those in FIGS. 35 (f) and (g).

傾き検出手段41は、終点となる非ノイズ階調変化位置(Ar=2)における振幅制限階調変化量Xlmを階調変化の高さを、終点振幅制限階調変化量Xeとして求め(ステップS204)、この終点振幅制限階調変化量Xeと平坦・ノイズ領域幅データ測定値deとから、開始点となる非ノイズ階調変化位置から終点となる非ノイズ階調変化位置までの階調値の傾きを、傾きデータ値Ks=Xe/deとして算出する(ステップS205)。階調平坦領域(Ar=0)及びノイズ領域(Ar=1)においては、直前の非ノイズ階調変化位置(Ar=2)における値が保持される(ステップS206)。振幅制限階調変化量Xlm、すなわち、終点における振幅制限階調変化量Xeは、階調変化量dfを−1から+1までの範囲内に制限した値で入力されているので、検出される階調値の傾きデータ値Ksは−1から+1までの範囲内の値となる。   The inclination detecting means 41 obtains the amplitude limit gradation change amount Xlm at the end point non-noise gradation change position (Ar = 2) as the end point amplitude limit gradation change amount Xe as the end point amplitude limit gradation change amount Xe (step S204). ), The gradation value from the non-noise gradation change position as the start point to the non-noise gradation change position as the end point from the end point amplitude limit gradation change amount Xe and the flat / noise area width data measurement value de. The inclination is calculated as an inclination data value Ks = Xe / de (step S205). In the gradation flat region (Ar = 0) and noise region (Ar = 1), the value at the previous non-noise gradation change position (Ar = 2) is held (step S206). The amplitude limit gradation change amount Xlm, that is, the amplitude limit gradation change amount Xe at the end point is input as a value in which the gradation change amount df is limited within a range from −1 to +1. The slope data value Ks of the tone value is a value in the range from −1 to +1.

図35(h)によれば、非ノイズ階調変化位置(Ar=2)である画素位置x=8においては、平坦・ノイズ領域幅データ測定値de=8、終点振幅制限階調変化量Xe=+1で、傾きデータ値Ks=+1/8となり、同様に、画素位置x=16,24,32で傾きデータ値Ksが求められる。また、図36(h)によれば、非ノイズ階調変化位置(Ar=2)である画素位置x=8においては、平坦・ノイズ領域幅データ測定値de=8、終点振幅制限階調変化量Xe=−1で、傾きデータ値Ks=−1/8となり、同様に、画素位置x=16,24,32で傾きデータ値Ksが求められる。図35(h)及び図36(h)のいずれにおいても、階調平坦領域(Ar=0)及びノイズ領域(Ar=1)においては、画素位置x=8,16,24,32における値が保持されている。   According to FIG. 35 (h), at the pixel position x = 8 which is the non-noise gradation change position (Ar = 2), the flat / noise area width data measurement value de = 8, the end point amplitude limit gradation change amount Xe. = + 1, the slope data value Ks = + 1/8, and similarly, the slope data value Ks is obtained at the pixel position x = 16, 24, 32. Also, according to FIG. 36 (h), at the pixel position x = 8 which is the non-noise gradation change position (Ar = 2), the flat / noise area width data measurement value de = 8, the end point amplitude limit gradation change. With the amount Xe = −1, the inclination data value Ks = −1 / 8, and similarly, the inclination data value Ks is obtained at the pixel position x = 16, 24, 32. In both FIG. 35 (h) and FIG. 36 (h), the values at the pixel positions x = 8, 16, 24, and 32 are the same in the gradation flat region (Ar = 0) and the noise region (Ar = 1). Is retained.

図33に示される上記動作により、領域信号Arを基準にして階調値の傾きにおける平坦・ノイズ領域幅データ測定値deと傾きデータ値Ksを求め、ノイズ成分による誤検出なく、非ノイズ階調変化位置(Ar=2)の画素における階調値の傾きを得ることができる。   With the above operation shown in FIG. 33, the flat / noise area width data measurement value de and the inclination data value Ks in the gradient of the gradation value are obtained with reference to the area signal Ar, and the non-noise gradation is obtained without erroneous detection due to the noise component. The gradient of the gradation value in the pixel at the change position (Ar = 2) can be obtained.

次に、図34において、領域信号Arに従い階調値の傾きデータ値Ksを得た後、補正ビット生成手段81は、水平方向走査期間の区切りにおいて補正値aCeを初期化するとともに、画素の領域を示す領域信号Arに応じて、補正値aCeを生成する処理を切り換える(ステップS210)。   Next, in FIG. 34, after obtaining the gradient data value Ks of the gradation value according to the area signal Ar, the correction bit generation means 81 initializes the correction value aCe at the boundary of the horizontal scanning period, and The processing for generating the correction value aCe is switched according to the area signal Ar indicating (step S210).

非ノイズ階調変化位置(Ar=2)においては(ステップS210)、開始点における補正値0とするよう、補正値aCe=0とする(ステップS211)。   At the non-noise gradation change position (Ar = 2) (step S210), the correction value aCe = 0 is set so that the correction value is 0 at the start point (step S211).

一方、階調平坦領域(Ard=0)又はノイズ領域(Ard=1)となる画素においては、傾きデータ値Ksを補正値の隣接する画素ごとの階調変化量dK2として(dK2=Ksとする)、直前画素における補正値(遅延補正値pCe)に対し階調変化量dK2を加算(pCe+dK2)し、階調平坦領域の画素における補正値sCeを得る(ステップS212)。そして、この補正値sCeを補正値aCeと決定する(ステップS213)。これにより、階調平坦領域(Ar=0)及びノイズ領域(Ar=1)の画素における補正値sCeは、変化位置から順に階調変化量dK2の絶対値の大きさ(すなわち、傾きデータ値Ksの絶対値|Ks|)で変化した値となる。傾きデータ値Ksが−1から+1までの範囲内の値であるので、補正値sCeについても−1から+1までの範囲内のその絶対値が1以下となる小数として表現される。   On the other hand, in a pixel that becomes a gradation flat region (Ard = 0) or a noise region (Ard = 1), the gradient data value Ks is set as the gradation change amount dK2 for each adjacent pixel of the correction value (dK2 = Ks). ) The gradation change amount dK2 is added (pCe + dK2) to the correction value (delay correction value pCe) in the immediately preceding pixel to obtain the correction value sCe in the pixel in the gradation flat region (step S212). Then, the correction value sCe is determined as the correction value aCe (step S213). As a result, the correction value sCe for the pixels in the flat gradation region (Ar = 0) and the noise region (Ar = 1) is the magnitude of the absolute value of the gradation change amount dK2 in order from the change position (that is, the slope data value Ks). The absolute value of | Ks |) changes. Since the slope data value Ks is a value in the range from −1 to +1, the correction value sCe is also expressed as a decimal number whose absolute value in the range from −1 to +1 is 1 or less.

上記により得られた補正値aCeは、所定のビット数となるビット列の値へ変換されて、付加する値を示す付加ビットEと値の符号ビットを含めて補正ビットデータCeとして求められる(ステップS214)。また、補正値aCeは、1画素分遅延されて、直前画素における補正値pCeとして次の画素の処理へと送られる(ステップS215)。   The correction value aCe obtained as described above is converted into a bit string value having a predetermined number of bits, and is determined as correction bit data Ce including an additional bit E indicating a value to be added and a sign bit of the value (step S214). ). The correction value aCe is delayed by one pixel and sent to the next pixel process as the correction value pCe for the immediately preceding pixel (step S215).

ステップS210〜S214により、入力画像信号Daに対し付加すべき補正値aCe(すなわち、補正ビットデータCe)は、非ノイズ階調変化位置(Ar=2)においては補正値aCe=0となり、階調平坦領域(Ar=0)及びノイズ領域(Ar=1)においては、非ノイズ階調変化位置(Ar=2)における値0から順に、傾きデータ値Ksによるレベル差で順次変化する値として得られる。   Through steps S210 to S214, the correction value aCe (that is, the correction bit data Ce) to be added to the input image signal Da becomes the correction value aCe = 0 at the non-noise gradation change position (Ar = 2), and the gradation In the flat region (Ar = 0) and the noise region (Ar = 1), values are obtained as values that sequentially change with a level difference due to the slope data value Ks in order from the value 0 at the non-noise gradation change position (Ar = 2). .

領域信号Arに基づき、求める補正値aCeを切り換えるので、階調平坦領域(Ar=0)とともに、ノイズ領域(Ar=1)となる画素についても、平坦な期間の画素として(階調平坦領域(Ar=0)と同様の処理扱われ)傾きデータ値Ksによるレベル差の変化を持つ補正値aCeが得られ、ノイズ成分による影響なく、順次変化する補正値aCeが得られる。   Since the correction value aCe to be obtained is switched based on the area signal Ar, the pixels that become the noise area (Ar = 1) together with the gradation flat area (Ar = 0) are also defined as the pixels in the flat period (gradation flat area ( The processing is the same as that of Ar = 0). A correction value aCe having a change in level difference due to the inclination data value Ks is obtained, and a correction value aCe that changes sequentially without being affected by the noise component is obtained.

図35(i)によれば、画素位置x=16(Ar=2)においては補正値aCe=0であり、それ以降の階調平坦領域(Ar=0)及びノイズ領域(Ar=1)となる画素においては、画素の順に、1/8,2/8,…、というように、傾きデータ値Ksによるレベル差+1/8の変化を持った補正値aCe(すなわち、補正ビットデータCe)として得られる。また、図36(i)によれば、画素位置x=16(Ar=2)においては、補正値aCe=0であり、それ以降の階調平坦領域(Ar=0)及びノイズ領域(Ar=1)となる画素においては、順に−1/8,−2/8,…というように、傾きデータ値Ksによるレベル差−1/8の変化を持った補正値aCe(すなわち、補正ビットデータCe)として得られる。   According to FIG. 35 (i), the correction value aCe = 0 at the pixel position x = 16 (Ar = 2), and the gradation flat region (Ar = 0) and noise region (Ar = 1) thereafter. In the order of pixels, the correction value aCe (that is, the correction bit data Ce) having a change of the level difference + 1/8 due to the inclination data value Ks, such as 1/8, 2/8,. can get. Further, according to FIG. 36 (i), the correction value aCe = 0 at the pixel position x = 16 (Ar = 2), and the subsequent gray level flat area (Ar = 0) and noise area (Ar = In the pixel 1), the correction value aCe (that is, the correction bit data Ce) having a change of the level difference of 1/8 by the inclination data value Ks, such as −1/8, −2/8,. ).

画素値演算手段94は、補正ビットデータCeと入力画像信号Daの画素位置を合わせるよう遅延補償された画像信号Dd(又はDa)に対し、補正ビットデータCeを整数部の位置を合わせて加算することで、新たな出力画像信号Dbを算出する(ステップS216)。なお、演算後の値が負の値となる場合は、出力画像信号Dbをゼロ(Db=0)とし、出力画像信号Dbの設定したビット数(最大値)を超える値となる場合は、値を最大値として、出力画像信号Dbの値を制限する。   The pixel value calculation means 94 adds the correction bit data Ce with the position of the integer part matched to the image signal Dd (or Da) that has been delay compensated so as to match the pixel position of the correction bit data Ce and the input image signal Da. Thus, a new output image signal Db is calculated (step S216). When the value after the calculation is a negative value, the output image signal Db is set to zero (Db = 0), and when the value exceeds the set bit number (maximum value) of the output image signal Db, Is the maximum value, and the value of the output image signal Db is limited.

補正ビットデータCeは、画像信号Dd(又は入力画像信号Da)の階調値に対して、小数部を含むので、演算処理された後の出力画像信号Dbは、画像信号Ddに対し小数部を有した精度の画像信号となる。出力画像信号Dbは、小数部を含む補正ビットデータCeによる小数部のビット数を有するので、階調値の分解能が増加し、より滑らかな階調値の変化を表現できるようになる。補正ビットデータCeは、領域信号Arを基準として、ノイズ成分による影響なく、傾きデータ値Ksで変化する補正値aCeとして得られており、階調値に対して補正ビットデータCeによる値が加算又は減算処理されるので、ノイズ等の微少な階調値の変化による画像のディテールや鮮鋭度を残しながら、緩やかに階調値が変化する画素の領域の滑らかさを増すことができる。   Since the correction bit data Ce includes a decimal part with respect to the gradation value of the image signal Dd (or the input image signal Da), the output image signal Db after the arithmetic processing has a decimal part with respect to the image signal Dd. It becomes an image signal with a certain accuracy. Since the output image signal Db has the number of bits in the decimal part of the correction bit data Ce including the decimal part, the resolution of the gradation value is increased, and a smoother change in the gradation value can be expressed. The correction bit data Ce is obtained as a correction value aCe that changes with the gradient data value Ks without being affected by the noise component on the basis of the area signal Ar, and the value of the correction bit data Ce is added to the gradation value or Since the subtraction processing is performed, it is possible to increase the smoothness of the pixel region in which the gradation value gradually changes while leaving the image detail and sharpness due to a slight change in the gradation value such as noise.

図35(j)によれば、補正ビットデータCeを付加した後の出力画像信号Dbの階調値Lbは、画像信号Ddの階調値Laに補正ビットデータCeを加算することで、非ノイズ階調変化位置(Ar=2)である画素位置x=16においては階調値Lb=24/8となり、それ以降の階調平坦領域とノイズ領域においては、画素位置の順に1/8で増加する変化を持つとともに、ノイズ成分がある画素位置x=19においては、ノイズ成分による振幅を残した状態で階調値が変換された値として得られる。図36(j)についても、図35(j)と同様である。図35(k)及び図36(k)においては、補正ビットデータCeにおける付加ビットEを4ビットとした場合の出力画像信号Dbを示しており、非ノイズ階調変化位置(Ar=2)から画素位置の順に、傾きデータ値Ksに相当する値の変化を持った階調値として得られ、結果として階調変化がより滑らかに変換された12ビットの出力画像信号Dbが得られている。   According to FIG. 35 (j), the gradation value Lb of the output image signal Db after the addition of the correction bit data Ce is made non-noise by adding the correction bit data Ce to the gradation value La of the image signal Dd. At the pixel position x = 16, which is the gradation change position (Ar = 2), the gradation value Lb = 24/8, and in subsequent gradation flat areas and noise areas, the pixel position increases by 1/8 in order. In the pixel position x = 19 where there is a noise component and there is a noise component, the gradation value is obtained as a converted value while leaving the amplitude due to the noise component. FIG. 36 (j) is the same as FIG. 35 (j). 35 (k) and 36 (k) show the output image signal Db when the additional bit E in the correction bit data Ce is 4 bits, from the non-noise gradation change position (Ar = 2). A 12-bit output image signal Db obtained by changing the gradation change more smoothly is obtained as a gradation value having a change in value corresponding to the inclination data value Ks in the order of the pixel position.

なお、上記説明においては、補正ビットデータCeにおける付加ビットEの小数部を4ビットとしたが、4ビット以外であってもよく、例えば、小数部のビット数を多くし、より多くのビット数で補正ビットデータCe(すなわち、補正値aCe)を表現することで、精度の高い、より滑らかな階調値の変化となる画像信号を得ることができる。   In the above description, the decimal part of the additional bit E in the correction bit data Ce is 4 bits. However, it may be other than 4 bits. For example, the number of bits in the decimal part is increased to increase the number of bits. By expressing the correction bit data Ce (that is, the correction value aCe), it is possible to obtain an image signal with a more accurate and smoother gradation value change.

図37は、実施の形態4による画像処理装置の動作の他の例(図34に代わる例)を示すフローチャートであり、図29に示される階調変換手段4による補正ビットデータの生成及び階調変換処理の動作を示す。補正ビットデータを生成する際には、領域信号Arを基準として、開始点となる非ノイズ階調変化位置(Ar=2)から順に画素をカウントしたカウント値Nと傾きデータ値Ksから、補正値aCe=N×Ksとして求めることもできる。この場合、図34のステップS211〜S213、及びステップS215に代えて、図37のステップS220〜S222を行うと、図34の場合と同様に、補正ビットデータCeを生成でき、補正ビットデータCeを付加した新たな出力画像信号Dbを得ることができる。すなわち、非ノイズ階調変化位置(Ar=2)においては(ステップS210)、画素のカウント値N=0とし(ステップS220)、階調平坦領域(Ard=0)又はノイズ領域となる画素(Ard=1)においては画素をカウントして、N+1とする(ステップS221)。補正値aCeは、カウント値Nと傾きデータ値Ksを乗算し、補正値aCe=N×Ksとする(ステップS222)。これにより、図34における場合と同様、開始点の補正値aCe=0から順に、傾きデータ値Ksによるレベル差の変化を持つ補正値aCeを得ることができる。   FIG. 37 is a flowchart showing another example of the operation of the image processing apparatus according to the fourth embodiment (an example instead of FIG. 34). Generation of correction bit data and gradation by the gradation converting means 4 shown in FIG. The operation of the conversion process is shown. When generating the correction bit data, the correction value is calculated from the count value N and the inclination data value Ks obtained by counting the pixels in order from the non-noise gradation change position (Ar = 2) as the start point with the area signal Ar as a reference. It can also be determined as aCe = N × Ks. In this case, if steps S220 to S222 in FIG. 37 are performed instead of steps S211 to S213 and step S215 in FIG. 34, the correction bit data Ce can be generated as in the case of FIG. A new added output image signal Db can be obtained. That is, at the non-noise gradation change position (Ar = 2) (step S210), the pixel count value N = 0 (step S220), and the pixel (Ard) which becomes the gradation flat area (Ard = 0) or the noise area = 1), the number of pixels is counted and set to N + 1 (step S221). The correction value aCe is multiplied by the count value N and the inclination data value Ks to obtain a correction value aCe = N × Ks (step S222). As a result, as in the case of FIG. 34, the correction value aCe having a change in level difference due to the inclination data value Ks can be obtained in order from the correction value aCe at the starting point = 0.

《4−3》効果.
以上に説明したように、実施の形態4の画像処理装置又は画像処理方法においては、階調変化量dfから得られた領域信号Arを基準として、非ノイズ階調変化位置(Ar=2)の間の平坦・ノイズ領域幅データ測定値deを求め、振幅制限階調変化量Xlmと平坦・ノイズ領域幅データ測定値deから、階調値の傾きデータ値Ksを得ている。そして、補正ビット生成手段81において傾きデータ値Ksから補正ビットデータCeを生成し、画素値演算手段94において入力画像信号Daに整数部の位置を合わせて補正ビットデータの値を加算して、ビット数を拡張した画像信号を得ている。したがって、実施の形態4の画像処理装置又は画像処理方法によれば、非ノイズ階調変化位置とその次に現れる非ノイズ階調変化位置との間の幅を示す平坦・ノイズ領域幅を正確に検出でき、ノイズ成分による階調変化と区別できるので、傾きデータ値を、ノイズ成分による影響を受けることなく算出できる。また、実施の形態4の画像処理装置又は画像処理方法によれば、回路規模を大幅に増やすことなく、傾きデータ値Ksによる階調値で順次変化する補正値が得られ、緩やかに階調値が変化する画素領域や非ノイズ階調変化位置における適切な補正ビットデータCeを得て、画像信号の階調変化をより滑らかに変換し、ビット数を拡張できる。また、得られた補正ビットデータCeを入力画像信号Daの階調値に対し付加して階調数を拡張するため、実時間で処理でき、ノイズ成分による微少な変化を残したまま、階調変化がより滑らかに変換できる。
<< 4-3 >> Effect.
As described above, in the image processing apparatus or the image processing method according to the fourth embodiment, the non-noise gradation change position (Ar = 2) is determined based on the region signal Ar obtained from the gradation change amount df. A flat / noise area width data measurement value de is obtained, and a gradient data value Ks of the gradation value is obtained from the amplitude limit gradation change amount Xlm and the flat / noise area width data measurement value de. Then, the correction bit generation unit 81 generates correction bit data Ce from the inclination data value Ks, and the pixel value calculation unit 94 adds the value of the correction bit data by aligning the position of the integer part with the input image signal Da. An image signal with an expanded number is obtained. Therefore, according to the image processing apparatus or the image processing method of the fourth embodiment, the flat / noise area width indicating the width between the non-noise gradation change position and the next non-noise gradation change position is accurately determined. Since it can be detected and can be distinguished from the gradation change due to the noise component, the inclination data value can be calculated without being influenced by the noise component. Further, according to the image processing apparatus or the image processing method of the fourth embodiment, the correction value that sequentially changes with the gradation value based on the inclination data value Ks can be obtained without significantly increasing the circuit scale, and the gradation value gradually increases. Thus, it is possible to obtain appropriate correction bit data Ce in a pixel region where the change occurs or in a non-noise gradation change position, to convert the gradation change of the image signal more smoothly, and to expand the number of bits. In addition, since the obtained correction bit data Ce is added to the gradation value of the input image signal Da to extend the number of gradations, the number of gradations can be processed in real time. Changes can be converted more smoothly.

このように、実施の形態4の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれる場合においても、実時間で回路規模を大幅に増やすことなく、緩やかに階調値が変化する画像領域に対し、ノイズ成分による誤検出なく、階調変化をより適切に検出したことによる補正ビットデータCeを得ることができる。このため、補正ビットデータにより画像信号の階調数を拡張し、階調変換された出力画像信号Dbにおいて、画像のディテールが失われたり、鮮鋭度が損なわれたりすることはなく、量子化ノイズ又は擬似輪郭が低減され、階調変化が滑らかで、高品位な階調数を拡張した画像信号が得られる。   As described above, according to the image processing apparatus or the image processing method of the fourth embodiment, even when the input image signal Da includes a noise component, the gradation is gradually increased without significantly increasing the circuit scale in real time. It is possible to obtain the correction bit data Ce obtained by more appropriately detecting the gradation change in the image region whose value changes without erroneous detection due to the noise component. For this reason, the number of gradations of the image signal is expanded by the correction bit data, and the image details are not lost or the sharpness is not lost in the gradation-converted output image signal Db. Alternatively, the pseudo contour is reduced, the gradation change is smooth, and an image signal with an extended number of gradations can be obtained.

《4−4》変形例.
上記説明においては、実施の形態1における画素領域判定手段20(図5)と同様の画素領域判定手段により領域信号Arを得る場合を説明したが、画素領域判定手段として、実施の形態2における画素領域判定手段20b(図22)や、実施の形態3における画素領域判定手段70及び70b(図25及び図28)を用いてもよく、この場合にも、同様の効果を奏することができる。
<< 4-4 >> Modifications.
In the above description, the case where the region signal Ar is obtained by the pixel region determination unit similar to the pixel region determination unit 20 (FIG. 5) in the first embodiment has been described. The area determination means 20b (FIG. 22) or the pixel area determination means 70 and 70b (FIGS. 25 and 28) in the third embodiment may be used. In this case, the same effect can be obtained.

また、上記説明においては、画素領域判定手段20における領域判定結果として3種の領域信号Ar=0,1,2を生成するよう説明したが、図29における平坦・ノイズ領域幅判定手段80、傾き検出手段41、及び補正ビット生成手段81(又は81b)においても、非ノイズ階調変化位置(Ar=2)と、階調平坦領域及びノイズ領域(Ar=0,1)の2通りで処理を切り換えている。このため、領域判定結果を非ノイズ階調変化位置か、階調平坦領域又はノイズ領域かの2値で示す領域信号Ar1として構成してもよく、同様の効果を奏することができる。   In the above description, three types of region signals Ar = 0, 1, and 2 are generated as region determination results in the pixel region determination unit 20, but the flat / noise region width determination unit 80 in FIG. The detection means 41 and the correction bit generation means 81 (or 81b) also perform processing in two ways: a non-noise gradation change position (Ar = 2), a gradation flat area, and a noise area (Ar = 0, 1). Switching. For this reason, the region determination result may be configured as a region signal Ar1 that is a binary value of a non-noise gradation change position, a gradation flat region, or a noise region, and the same effect can be obtained.

また、上記説明においては、階調変化量検出手段10で水平方向の隣接画素間の階調値の差分による階調変化量dfを所定の範囲−1と+1に制限する場合を説明したが、本発明はこのような形態に限定されず、例えば、画素間の階調値の差分の最大値+2から最小値−2までの範囲の変化を求める場合など、予め決められた最大値(正の値)と最小値(負の値)に基づき、階調変化量dfの値を制限して、画像信号の1階調より大きな値の階調差以内で階調値が変化する場合に、階調数を拡張するよう構成することもできる。階調変化量dfの値を制限する範囲は、階調変換で滑らかな変化とする画像領域か、そのまま保持するか、又は、階調ジャンプとなる階調変化として補正するかを決めるための値であり、入力画像信号の特性や、階調ジャンプが起こるレベル等から適切な値を設定すればよい。この場合の構成及び動作は、階調値の変化を求める画素間の階調値の差分の範囲以外の点については、図29による構成及び動作と同じである。ここで、画素間の階調値の差分の最大値+2から最小値−2までの範囲の変化を求める場合は、階調変化量検出手段10内の階調変化量制限手段12における制限の範囲、すなわち、振幅制限階調変化量Xlmの値が+2から−2までの範囲内の値となり、階調値の傾きも−2から+2までの範囲内の値となる。画素間の階調値の差分の最大値+2から最小値−2までの範囲の変化を求める場合など、最大値(正の値)と最小値(負の値)により設定された範囲で、階調変化を検出するよう構成する場合においても、階調変換手段4を適用することができ、同様に構成し、同様の効果を奏することができる。   In the above description, the case where the gradation change amount detecting means 10 limits the gradation change amount df due to the difference in gradation value between adjacent pixels in the horizontal direction to the predetermined range −1 and +1 has been described. The present invention is not limited to such a form. For example, when a change in a range from the maximum value +2 to the minimum value −2 of the gradation value difference between pixels is obtained, a predetermined maximum value (positive Value) and the minimum value (negative value), the gradation change amount df is limited, and the gradation value changes within a gradation difference of a value larger than one gradation of the image signal. It can also be configured to extend the logarithm. The range for limiting the value of the gradation change amount df is a value for determining whether the image area is a smooth change by gradation conversion, whether it is retained as it is, or whether it is corrected as a gradation change that becomes a gradation jump. An appropriate value may be set from the characteristics of the input image signal, the level at which the gradation jump occurs, and the like. The configuration and operation in this case are the same as the configuration and operation shown in FIG. 29 except for the range of the difference in gradation value between pixels for which a change in gradation value is to be obtained. Here, in the case of obtaining a change in the range from the maximum value +2 to the minimum value −2 of the gradation value difference between the pixels, the restriction range in the gradation change amount limiting unit 12 in the gradation change amount detection unit 10. That is, the value of the amplitude limit gradation change amount Xlm is a value in the range from +2 to −2, and the gradient of the gradation value is also a value in the range from −2 to +2. In the range set by the maximum value (positive value) and the minimum value (negative value), such as when the change in the range from the maximum value +2 to the minimum value -2 of the gradation value difference between pixels is obtained, Even in the case where the tone change is detected, the tone converting means 4 can be applied, and the same configuration can be obtained and the same effect can be obtained.

また、入力画像信号Daの階調数mは8ビットに限るものではなく、例えば、10ビットの画像信号であってもよく、画素値演算手段94において、補正ビットデータCdにおける付加ビットEの整数部の位置を、画像信号Ddの整数部の位置と一致するようにした値を演算するように構成すれば、同様の効果を奏することができる。   Further, the number of gradations m of the input image signal Da is not limited to 8 bits, and may be, for example, a 10-bit image signal. In the pixel value calculation unit 94, an integer of additional bits E in the correction bit data Cd. The same effect can be achieved by calculating the value in which the position of the part matches the position of the integer part of the image signal Dd.

また、上記説明においては、階調変化量検出手段10内の階調変化量制限手段12において、階調変化量dfの値を−1から+1までの範囲内となるように値を制限するよう説明したが、階調変化量dfの絶対値が所定の値より大きな場合には(例えば、|df|>1)、階調変化量dfが画像のエッジ(輪郭等)による階調値の変化であると考えられ、このように階調変化がエッジによると判断される変化の場合には、補正値aCe=0として階調値が付加されることはなく、画像の輪郭情を保つよう構成することもできる。すなわち、階調変化量検出手段10内の階調変化量制限手段12において、階調変化量dfの値を−1から+1までの範囲内となるように値が制限された振幅制限階調変化量Xlmを求める際に、階調変化量dfの値が−1から+1までの範囲から外れた場合は、その値を0とするように(すなわち、振幅制限階調変化量Xlm=0とする)構成しても、その輪郭の非ノイズ階調変化位置を終点画素とする領域においては傾きデータ値Ks=0となり、補正値aCeも0となるので、結果、階調値が付加されず、階調変換されないので、画像の鮮鋭度(輪郭情報)を保ちながら、輪郭となる変化以外の緩やかに階調値が変化する画像領域における階調値の変化をより滑らかにすることができる。   In the above description, the gradation change amount limiting means 12 in the gradation change amount detection means 10 limits the value of the gradation change amount df so that it falls within the range from −1 to +1. As described above, when the absolute value of the gradation change amount df is larger than a predetermined value (for example, | df |> 1), the gradation change amount df is a change in the gradation value due to an edge (outline or the like) of the image. In this way, when the gradation change is determined to be due to an edge, the gradation value is not added as the correction value aCe = 0, and the contour information of the image is maintained. You can also That is, in the gradation change amount limiting means 12 in the gradation change amount detection means 10, the amplitude limited gradation change whose value is limited so that the value of the gradation change amount df is in the range from −1 to +1. When the value of the gradation change amount df is out of the range from −1 to +1 when the amount Xlm is obtained, the value is set to 0 (that is, the amplitude limit gradation change amount Xlm = 0). ) Even in the configuration, in the region having the non-noise gradation change position of the contour as the end point pixel, the inclination data value Ks = 0 and the correction value aCe is also 0, so that no gradation value is added, Since gradation conversion is not performed, changes in gradation values in an image region where gradation values change gradually other than changes that become outlines can be made smoother while maintaining the sharpness (contour information) of the image.

また、上記説明においては、階調変換手段4は入力画像信号Daの水平方向における階調値の変化において、水平方向の階調変化量を検出して処理する構成として説明したが、入力画像信号Daの垂直方向(画面表示走査線方向)の階調変化量を検出し、補正ビットデータCeを生成して画像信号に付加し、垂直方向の階調変化を滑らかなものとしてもよく、同様の効果を奏することができる。この場合は、階調変化量検出手段10において、垂直方向上下に位置する上の走査線上の画素との間の差分により階調変化量dfを求め、画素領域判定手段20で画素の領域を判定し、平坦・ノイズ領域幅判定手段80と、傾き検出手段41と補正ビット生成手段81内における処理をライン(1水平走査期間分)方向の処理として、垂直方向上下に位置する画素における階調値の変化を検出するように構成すればよい。   In the above description, the gradation converting means 4 has been described as a configuration that detects and processes the amount of gradation change in the horizontal direction in the change of the gradation value in the horizontal direction of the input image signal Da. The gradation change amount in the vertical direction (screen display scanning line direction) of Da is detected, correction bit data Ce is generated and added to the image signal, and the gradation change in the vertical direction may be smoothed. There is an effect. In this case, the tone change amount detection means 10 obtains the tone change amount df from the difference between the pixels on the upper scanning line positioned vertically above and below, and the pixel region determination means 20 determines the pixel region. Then, the processing in the flat / noise area width determining means 80, the inclination detecting means 41, and the correction bit generating means 81 is processed in the line (one horizontal scanning period) direction, and the gradation values in the pixels positioned vertically above and below What is necessary is just to comprise so that the change of may be detected.

さらに、上記説明においては、画像処理装置における階調変換手段4の各構成がハードウェア構成であるように説明しているが、本発明を、プログラム制御におけるソフトウェアの処理により実現するよう構成してもよい。   Further, in the above description, it has been described that each configuration of the gradation converting means 4 in the image processing apparatus is a hardware configuration, but the present invention is configured to be realized by software processing in program control. Also good.

なお、実施の形態4において、上記以外の点は、上記実施の形態1〜3のいずれかの場合と同じである。   In the fourth embodiment, points other than the above are the same as in any of the first to third embodiments.

《5》実施の形態5.
上記実施の形態1〜4の画像処理装置は、画像信号の水平方向又は垂直方向のいずれか一方の方向(一定方向)における階調値の変化を検出して階調値の傾き(例えば、傾きデータ値Ksl)を求め、求められた傾きを用いて入力画像信号Daのビット数を拡張する階調変換処理を行うことによって、入力画像信号Daよりも多階調の出力画像信号Dbを生成するように構成されている。これに対し、本発明の実施の形態5による画像処理装置は、水平方向及び垂直方向のそれぞれにおける階調値の変化を検出して、水平方向及び垂直方向のそれぞれにおける階調値の傾きを求め、求められた傾きを用いて入力画像信号Daのビット数を拡張する階調変換処理を行うことによって、入力画像信号Daよりも多階調の出力画像信号Dcを生成して、2次元方向に、階調値の変化を滑らかにするよう構成されている。
<< 5 >> Embodiment 5
The image processing apparatus according to any of the first to fourth embodiments detects a change in gradation value in one of the horizontal direction and the vertical direction (constant direction) of the image signal and detects the gradient of the gradation value (for example, the gradient). Data value Ksl) is obtained, and gradation conversion processing for expanding the number of bits of the input image signal Da using the obtained gradient is performed, thereby generating an output image signal Db having a higher gradation than the input image signal Da. It is configured as follows. In contrast, the image processing apparatus according to the fifth embodiment of the present invention detects a change in gradation value in each of the horizontal direction and the vertical direction, and obtains a gradient of the gradation value in each of the horizontal direction and the vertical direction. By performing gradation conversion processing that expands the number of bits of the input image signal Da using the obtained gradient, an output image signal Dc having a multi-gradation than the input image signal Da is generated, and the two-dimensional direction is generated. The gradation value is smoothly changed.

図38は、本発明の実施の形態5による画像処理装置(すなわち、実施の形態5による画像処理方法を実施することができる装置)の構成の一例を概略的に示すブロック図である。実施の形態5による画像処理装置は、画像信号の水平方向と垂直方向のそれぞれで階調変化量を検出し、検出された階調変化量から、水平方向と垂直方向のそれぞれの方向の画素領域の各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、この画素領域の判定結果に基づき階調値の傾きを求め、求められた階調値の傾きを用いて入力画像信号Daのビット数を拡張し、二次元方向に、階調値の変化を滑らかにする階調変換処理を行うよう構成されている。   FIG. 38 is a block diagram schematically showing an example of the configuration of an image processing apparatus according to the fifth embodiment of the present invention (that is, an apparatus capable of performing the image processing method according to the fifth embodiment). The image processing apparatus according to the fifth embodiment detects a gradation change amount in each of the horizontal direction and the vertical direction of the image signal, and uses the detected gradation change amount to generate pixel regions in the horizontal direction and the vertical direction. Is classified into one of the pixels belonging to the flat gradation region, the pixel belonging to the noise region, or the pixel at the non-noise gradation change position, and the gradient of the gradation value is determined based on the determination result of the pixel region. And the gradation of the input image signal Da is expanded using the obtained gradient of the gradation value, and gradation conversion processing is performed to smooth the change of the gradation value in the two-dimensional direction. .

図38に示されるように、実施の形態5の画像処理装置は、mビットのデジタルの入力画像信号Daに対し、水平方向と垂直方向のそれぞれの階調変化量から、水平方向と垂直方向のそれぞれについて、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、この画素領域の判定結果に基づき階調値の変化を検出し、階調値の傾きに応じた値を付加することでビット数を拡張する階調変換処理を行い、nビットの出力画像信号Dcとして出力し、二次元方向の階調値の変化を滑らかにする階調変換処理を行う階調変換手段5を備えている。そして、階調変換手段5は、水平方向における階調値の変化を検出し、階調値の傾きに応じた補正値を付加することでビット数を拡張する水平方向階調変換手段110と、垂直方向における階調値の変化を検出し、階調値の傾きに応じた補正値により階調変換処理を行う垂直方向階調変換手段111とを備えている。   As shown in FIG. 38, the image processing apparatus according to the fifth embodiment is adapted to the horizontal and vertical directions for the m-bit digital input image signal Da from the respective gradation change amounts in the horizontal and vertical directions. Each pixel is determined to be classified as either a pixel belonging to a flat gradation region, a pixel belonging to a noise region, or a pixel at a non-noise gradation change position, and a gradation value is determined based on the determination result of this pixel region. Is detected, and a gradation conversion process for extending the number of bits is performed by adding a value corresponding to the gradient of the gradation value, and output as an n-bit output image signal Dc, and the gradation value in the two-dimensional direction Is provided with gradation conversion means 5 for performing gradation conversion processing for smoothing the change of the above. The gradation converting means 5 detects a change in the gradation value in the horizontal direction and adds a correction value according to the gradient of the gradation value to extend the number of bits, and Vertical direction gradation conversion means 111 is provided that detects a change in gradation value in the vertical direction and performs gradation conversion processing using a correction value corresponding to the gradient of the gradation value.

以下の説明においては、階調変換手段5が、入力画像信号Daの水平方向及び垂直方向に対し、それぞれの方向に隣接する画素間の階調値の差分から、1階調値の差(+1と−1)の階調変化量を検出して階調値の傾きを求め、求められた傾きを用いて階調数を拡張する階調変換処理を行い、8ビットの入力画像信号Daを12ビットの出力画像信号Dcへ階調数を拡張し出力する場合を説明する。   In the following description, the gradation converting means 5 determines the difference of one gradation value (+1) from the difference of gradation values between adjacent pixels in the horizontal direction and the vertical direction of the input image signal Da. And -1) are detected to obtain the gradient of the gradation value, and gradation conversion processing is performed to expand the number of gradations using the obtained gradient, and the 8-bit input image signal Da is converted to 12 A case where the number of gradations is expanded and output to the bit output image signal Dc will be described.

階調変換手段5は、8ビットの入力画像信号Daに対して、水平方向と垂直方向のそれぞれで階調値の変化を検出し、階調値の傾きを求めることで、例えば、4ビット分の補正値の値となる補正ビットデータを得て、画像信号の階調値に対し演算処理して、ビットを付加することでビット数を拡張して階調変換を行い、12ビットの出力画像信号Dcとして出力する。   The gradation converting means 5 detects a change in gradation value in each of the horizontal direction and the vertical direction with respect to the 8-bit input image signal Da, and obtains the gradient of the gradation value, for example, for 4 bits. Correction bit data that is the value of the correction value is obtained, arithmetic processing is performed on the gradation value of the image signal, and gradation conversion is performed by extending the number of bits by adding bits to produce a 12-bit output image Output as signal Dc.

階調変換手段5をさらに詳細に説明する。まず、階調変換手段5に入力された入力画像信号Daは、階調変換手段5における水平方向階調処理手段110に入力される。水平方向階調処理手段110は、上記実施の形態1〜4の階調変換手段1〜4と同様に構成されており、入力画像信号Daの水平方向の画素間の階調値の差分から階調変化量を求めるとともに、得られた階調変化量の値により、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行う。そして、この画素領域の判定結果に基づき、平坦・ノイズ領域幅を求め、この平坦・ノイズ領域幅と階調変化量から階調値の傾きを求め、求められた階調値の傾きに応じた補正ビットデータを、入力画像信号に付加することでビット数を拡張し、ビット数が拡張された12ビットの出力画像信号Dbを生成する。階調変換手段5は、各画素の水平方向における階調変化に対する画素領域を判定し、その判定結果に基づき階調値の平坦・ノイズ領域幅、傾きを求めることで、ノイズ成分による誤検出なく階調値の変化が検出でき、水平方向における階調値を十分な階調数へ拡張し、階調変化を滑らかにできる。このように、水平方向階調処理手段110は、実施の形態1〜4の階調変換手段1〜4のいずれかと同じである。   The gradation converting means 5 will be described in more detail. First, the input image signal Da input to the gradation conversion unit 5 is input to the horizontal direction gradation processing unit 110 in the gradation conversion unit 5. The horizontal direction gradation processing unit 110 is configured in the same manner as the gradation conversion units 1 to 4 in the first to fourth embodiments, and is based on the difference in gradation value between pixels in the horizontal direction of the input image signal Da. A tone change amount is obtained, and each pixel is classified into a pixel belonging to a flat gradation region, a pixel belonging to a noise region, or a pixel at a non-noise gradation change position based on the obtained gradation change amount value. Make a decision. Then, based on the determination result of the pixel area, the flat / noise area width is obtained, the gradient of the gradation value is obtained from the flat / noise area width and the gradation change amount, and the gradient of the obtained gradation value is determined. By adding the corrected bit data to the input image signal, the number of bits is expanded, and a 12-bit output image signal Db with the expanded number of bits is generated. The gradation converting means 5 determines the pixel area for the gradation change in the horizontal direction of each pixel and obtains the flatness / noise area width and inclination of the gradation value based on the determination result, thereby preventing erroneous detection due to noise components. A change in the gradation value can be detected, and the gradation value in the horizontal direction can be expanded to a sufficient number of gradations to smooth the gradation change. As described above, the horizontal direction gradation processing unit 110 is the same as any one of the gradation conversion units 1 to 4 of the first to fourth embodiments.

階調変換手段5における垂直方向階調処理手段111には、水平方向階調処理手段110から出力された12ビットの画像信号Dbが入力される。垂直方向階調処理手段111は、水平方向階調処理手段110から出力された12ビットの画像信号Dbに対し、入力画像信号Daの小数部に相当する下位4ビット分を除いた上位8ビットの信号から、垂直方向の画素間の階調値の差分による階調変化量を求め、得られた階調変化量の値により、各画素を、階調平坦領域に属する画素、ノイズ領域に属する画素、非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、この画素領域の判定結果に基づき、階調変化における平坦・ノイズ領域幅と、この平坦・ノイズ領域幅と階調変化量から階調値の傾きを得て、傾きに応じた補正値を求める。そして、水平方向階調処理手段110と同様分の補正ビットデータを画像信号Dbに付加することで階調変換を行い、12ビットの画像信号Dcとして出力する。これにより、水平方向のみでなく垂直方向に緩やかに階調値が変化する画像領域においても、階調値の変化を検出して、階調変化が滑らかで、高品位な12ビットの画像信号Dcとして出力される。   The 12-bit image signal Db output from the horizontal direction gradation processing unit 110 is input to the vertical direction gradation processing unit 111 in the gradation conversion unit 5. The vertical gradation processing means 111 is an upper 8 bits of the 12-bit image signal Db output from the horizontal direction gradation processing means 110 excluding the lower 4 bits corresponding to the decimal part of the input image signal Da. From the signal, the gradation change amount by the difference in gradation value between the pixels in the vertical direction is obtained, and the pixels belonging to the flat gradation region and the pixels belonging to the noise region are determined based on the obtained gradation change amount value. , Classify the pixel into one of the non-noise gradation change positions, and based on the determination result of this pixel area, the flat / noise area width in gradation change, and the flat / noise area width and gradation change amount Then, the gradient of the gradation value is obtained, and a correction value corresponding to the gradient is obtained. Then, gradation conversion is performed by adding correction bit data equivalent to that in the horizontal gradation processing means 110 to the image signal Db, and the result is output as a 12-bit image signal Dc. As a result, even in an image region where the gradation value gradually changes not only in the horizontal direction but also in the vertical direction, the change in the gradation value is detected, and the gradation change is smooth and the high-quality 12-bit image signal Dc. Is output as

垂直方向階調処理手段111の構成は、実施の形態1〜4の階調変換手段1〜4のいずれかの構成において、階調変化量検出手段10において、垂直方向(画面の上下方向)に位置する画素間の階調値の差分(注目画素の階調値と、1走査線だけ垂直上方向の走査線上の隣接画素の階調値との差分)により階調変化量dfを求め、画素領域判定手段20(又は20b、70、70b)で垂直方向における画素領域を判定し、平坦・ノイズ領域幅判定手段30(又は80)、傾き検出手段40(又は41)、及び補正ビット生成手段50(又は81)内における処理をライン(1水平走査期間分)方向の処理として、垂直方向上下に位置する画素における階調値の変化を検出するように構成すればよい。   The vertical gradation processing unit 111 is configured in the vertical direction (up and down direction of the screen) in the gradation change amount detection unit 10 in any one of the gradation conversion units 1 to 4 of the first to fourth embodiments. A gradation change amount df is obtained by a difference in gradation values between pixels (difference between a gradation value of a target pixel and a gradation value of an adjacent pixel on a scanning line that is vertically upward by one scanning line) The area determination means 20 (or 20b, 70, 70b) determines the pixel area in the vertical direction, and the flat / noise area width determination means 30 (or 80), the inclination detection means 40 (or 41), and the correction bit generation means 50. The processing within (or 81) may be configured to detect a change in gradation value in a pixel located vertically above and below as processing in the line (one horizontal scanning period) direction.

また、垂直方向における階調値の変化を検出し、垂直方向における画素の領域を判定して階調値の傾きを求める際には、入力画像信号Daの1階調の変化を検出するために、入力された水平方向階調処理手段110からの12ビットの画像信号Dbのうち、小数部に相当する下位4ビット分を除いた上位8ビットで示される値を用いればよい。   Further, when detecting a change in gradation value in the vertical direction and determining a gradient of the gradation value by determining a pixel area in the vertical direction, in order to detect a change in one gradation of the input image signal Da. Of the 12-bit image signal Db from the input horizontal direction gradation processing means 110, a value represented by the upper 8 bits excluding the lower 4 bits corresponding to the decimal part may be used.

このため、垂直方向階調処理手段111の説明についても、実施の形態1〜4のいずれかと同様に、画素の領域を判定し、階調変化における平坦・ノイズ領域幅を求め階調値の傾きを求め、この傾きを用いて補正ビットデータを求める処理を行うように構成すればよい。   For this reason, in the description of the vertical direction gradation processing unit 111, as in any of the first to fourth embodiments, the pixel region is determined, the flatness / noise region width in the gradation change is obtained, and the gradient of the gradation value is determined. And the processing for obtaining the correction bit data using this inclination may be performed.

以上から、図38に示される階調変換手段5は、水平方向階調処理手段110においては、水平方向の階調変化の階調変化量dfにより、各画素の画素領域を判定し、この判定結果に基づき、水平方向の階調変化における平坦・ノイズ領域幅と傾きを得て階調を変換するとともに、垂直方向階調処理手段111においても、同様に、垂直方向の階調変化の階調変化量により、画素領域を判定し、この判定結果に基づき、垂直方向の向の階調変化における平坦・ノイズ領域幅と傾きを得て階調値を変換する。このため、ノイズ成分が含まれる場合においても、二次元方向のそれぞれで階調変化の平坦・ノイズ領域幅を求め、傾き求め、ノイズ成分による誤検出なく得ることができ、緩やかに階調値が変化する画素の領域や階調値の変化がエッジによると判断される場合における適切な補正ビットデータを得て、水平方向のみならず垂直方向における階調変化がより滑らかに変換された12ビットの画像信号Dcが得られる。また、得られた補正ビットデータを入力画像信号Daの階調値に対し加算又は減算処理して階調数を拡張するため、実時間で処理でき、画像のディテールが失われたり、鮮鋭度が損なわれたりすることなく、階調変化がより滑らかに変換された12ビットの画像信号Dcが得られる。   From the above, the gradation converting means 5 shown in FIG. 38 determines the pixel area of each pixel based on the gradation change amount df of the gradation change in the horizontal direction in the horizontal gradation processing means 110. Based on the result, the gradation is converted by obtaining the flat / noise area width and inclination in the gradation change in the horizontal direction, and the gradation of the gradation change in the vertical direction is similarly applied to the vertical direction gradation processing unit 111. The pixel area is determined based on the amount of change, and based on this determination result, the gradation value is converted by obtaining the flat / noise area width and gradient in the gradation change in the vertical direction. For this reason, even when a noise component is included, the flatness / noise area width of the gradation change can be obtained in each of the two-dimensional directions, and the inclination can be obtained without erroneous detection due to the noise component. Appropriate correction bit data is obtained when it is determined that the change in the area of the changing pixel or the gradation value is due to the edge, and the 12-bit of which the gradation change in the vertical direction as well as the horizontal direction is more smoothly converted. An image signal Dc is obtained. In addition, since the obtained correction bit data is added or subtracted from the gradation value of the input image signal Da to extend the number of gradations, it can be processed in real time, resulting in loss of image details and sharpness. A 12-bit image signal Dc in which the gradation change is converted more smoothly without being damaged is obtained.

なお、図38の階調変換手段5の説明では、入力画像信号Daの階調変化を検出する際の階調変化量は、最下位1ビット分の差、すなわち、画素間の階調値の差分+1と−1の変化としたが、本発明はこのような形態に限定されず、階調変換手段5内の水平方向階調処理手段110及び垂直方向階調処理手段111のそれぞれにおいて、予め決められた最大値(正の値)と最小値(負の値)に基づき、階調変化量dfの値を制限して、画像信号の1階調より大きな値の階調差以内で階調値が変化する場合に、階調数を拡張するよう構成してもよい。   In the description of the gradation conversion means 5 in FIG. 38, the gradation change amount when detecting the gradation change of the input image signal Da is the difference of the least significant 1 bit, that is, the gradation value between pixels. Although the difference is +1 and −1, the present invention is not limited to such a form. In each of the horizontal direction gradation processing unit 110 and the vertical direction gradation processing unit 111 in the gradation conversion unit 5, Based on the determined maximum value (positive value) and minimum value (negative value), the gradation change amount df is limited, and the gradation is within a gradation difference of a value larger than one gradation of the image signal. When the value changes, the number of gradations may be extended.

また、画像信号においては水平方向の解像度が高いことが多い。このため、図38の階調変換手段3においても、水平方向の処理を水平方向階調処理手段110により先に行った後、垂直方向の処理を行う構成であるので、階調変化を検出する際の階調変化量の値(制限する範囲)を、水平方向に対する場合と垂直方向に対する場合で異なる値として、例えば、水平方向に対しては2階調の差(画素間の階調値の差分+2と−2の変化)として、垂直方向に対しては1階調分の差、すなわち、画素間の階調値の差分+1と−1の変化とし、水平方向で検出する階調差の重み付けを垂直方向に対し大きくし、階調数を拡張してもよい。   In addition, the image signal often has high horizontal resolution. For this reason, the gradation converting means 3 in FIG. 38 is also configured to perform the vertical direction processing after the horizontal direction processing is first performed by the horizontal direction gradation processing means 110, so that a gradation change is detected. For example, a difference between two gradations (a gradation value between pixels) in the horizontal direction is set as a different value between the horizontal direction and the vertical direction. Difference +2 and -2), a difference of one gradation in the vertical direction, that is, a difference of gradation values +1 and -1 between pixels, and a difference of gradation detected in the horizontal direction. The weighting may be increased with respect to the vertical direction to expand the number of gradations.

以上に説明したように、実施の形態5の画像処理装置においては、水平方向階調処理手段110においては、水平方向の階調変化の階調変化量dfにより、各画素の画素領域を判定し、この判定結果に基づき、水平方向の階調変化における平坦・ノイズ領域幅と傾きを得て階調値を変換するとともに、垂直方向階調処理手段111においても、同様に、垂直方向の階調変化の階調変化量により、各画素の画素領域を判定し、この判定結果に基づき、垂直方向の階調変化における平坦・ノイズ領域幅と傾きを得て階調値を変換する。このため、入力画像信号Daにノイズ成分が含まれる場合においても、二次元方向のそれぞれで階調変化の平坦・ノイズ領域幅と、傾きをノイズ成分による誤検出なく得ることができ、回路規模を大幅に増やすことなく、得られた傾きによる階調値で順次変化する補正値が得られ、二次元方向に、緩やかに階調値が変化する画素領域や階調値の変化がエッジによると判断される場合における適切な補正ビットデータを得て、水平方向のみならず垂直方向における階調変化がより滑らかになるよう画像信号の階調数を拡張できる。また、各方向で得られた補正ビットデータを入力画像信号Daの階調値に対し付加して階調数を拡張するため、階調変換処理を実時間で処理することが可能であり、ノイズ等による微少な変化を残したまま、非常に緩やかな階調変化を、より滑らかに表示できる出力画像信号Dcに変換できる。   As described above, in the image processing apparatus according to the fifth embodiment, the horizontal gradation processing unit 110 determines the pixel area of each pixel based on the gradation change amount df of the horizontal gradation change. Based on this determination result, the gradation value is converted by obtaining the flat / noise area width and inclination in the gradation change in the horizontal direction, and the vertical direction gradation processing means 111 similarly applies the gradation in the vertical direction. The pixel area of each pixel is determined based on the amount of change in gradation, and the gradation value is converted by obtaining the flat / noise area width and inclination in the gradation change in the vertical direction based on the determination result. Therefore, even when a noise component is included in the input image signal Da, it is possible to obtain the flatness / noise area width and inclination of the gradation change in each of the two-dimensional directions without erroneous detection due to the noise component, and to increase the circuit scale. Correction values that change sequentially according to the gradation value obtained by the obtained gradient can be obtained without increasing significantly, and it is determined that the pixel area in which the gradation value changes gradually in the two-dimensional direction or the change in gradation value is due to the edge. In this case, appropriate correction bit data is obtained, and the number of gradations of the image signal can be expanded so that the gradation change in the vertical direction as well as the horizontal direction becomes smoother. Further, since the correction bit data obtained in each direction is added to the gradation value of the input image signal Da to extend the number of gradations, the gradation conversion process can be performed in real time, and noise can be processed. It is possible to convert a very gradual gradation change into an output image signal Dc that can be displayed more smoothly while leaving a slight change due to the above.

したがって、実施の形態5の画像処理装置又は画像処理方法によれば、入力画像信号Daにノイズ成分が含まれる場合においても、実時間で回路規模を大幅に増やすことなく、緩やかに階調値が変化する画像領域に対し、ノイズ成分による誤検出なく、階調変化をより適切に検出したことによる補正ビットデータCdが得られる。このため、補正ビットデータにより画像信号の階調数を拡張し、階調変換された出力画像信号Dbにおいて、画像のディテールが失われたり、鮮鋭度が損なわれたりすることはなく、二次元方向の量子化ノイズ又は擬似輪郭が低減され、階調変化が滑らかで、高品位な階調数を拡張した画像信号が得られる。   Therefore, according to the image processing apparatus or the image processing method of the fifth embodiment, even when a noise component is included in the input image signal Da, the gradation value is gradually increased without significantly increasing the circuit scale in real time. Correction bit data Cd obtained by more appropriately detecting a gradation change can be obtained for a changing image region without erroneous detection due to a noise component. For this reason, the number of gradations of the image signal is expanded by the correction bit data, and in the output image signal Db subjected to gradation conversion, the image details are not lost or the sharpness is not lost, and the two-dimensional direction Quantization noise or pseudo contour is reduced, and a gradation change is smooth, and an image signal with an extended number of gradations can be obtained.

なお、上記実施の形態5における画像処理装置においても、入力画像信号Daの階調数mは8ビットに限るものではなく、例えば、10ビットの画像信号であってもよく、水平方向階調処理手段110、垂直方向階調処理手段111において、補正ビットデータにおける付加ビットEの整数部の位置を、入力画像信号Daの整数部の位置と一致するようにした値を演算するように構成すれば、同様の効果を奏することができる。   In the image processing apparatus according to the fifth embodiment, the number m of gradations of the input image signal Da is not limited to 8 bits, and may be, for example, a 10-bit image signal. If the means 110 and the vertical direction gradation processing means 111 are configured to calculate a value in which the position of the integer part of the additional bit E in the correction bit data matches the position of the integer part of the input image signal Da. The same effect can be produced.

さらに、上記実施の形態5の説明においても、階調変換手段3の構成がハードウェア構成であるように説明しているが、本発明を、プログラム制御におけるソフトウェアの処理により実現するよう構成してもよい。   Further, in the description of the fifth embodiment, it is described that the configuration of the gradation converting means 3 is a hardware configuration. However, the present invention is configured to be realized by software processing in program control. Also good.

なお、実施の形態5において、上記以外の点は、上記実施の形態1〜4のいずれかの場合と同じである。   In the fifth embodiment, points other than those described above are the same as in any of the first to fourth embodiments.

《6》実施の形態6.
上記実施の形態1〜5においては、本発明が適用された画像処理装置及び画像処理方法を説明したが、本発明は画像表示装置にも適用できる。図39は、本発明の実施の形態6による画像表示装置6の構成の一例を概略的に示すブロック図である。図39に示されるように、実施の形態6の画像表示装置6は、画像信号の入力端子501と、受信処理手段502と、階調変換手段500と、表示手段504とを備えている。階調変換手段500は、例えば、上記実施の形態1〜5の画像処理装置における階調変換手段1〜5によって構成される。階調変換手段500は、入力画像信号のビット数を拡張し、階調変換処理された多階調の画像信号を表示手段504に出力するように構成される。
<< 6 >> Embodiment 6
In the first to fifth embodiments, the image processing apparatus and the image processing method to which the present invention is applied have been described, but the present invention can also be applied to an image display apparatus. FIG. 39 is a block diagram schematically showing an example of the configuration of the image display device 6 according to the sixth embodiment of the present invention. As shown in FIG. 39, the image display device 6 of the sixth embodiment includes an image signal input terminal 501, a reception processing unit 502, a gradation conversion unit 500, and a display unit 504. The gradation conversion unit 500 is configured by, for example, the gradation conversion units 1 to 5 in the image processing apparatuses according to the first to fifth embodiments. The gradation conversion unit 500 is configured to extend the number of bits of the input image signal and output the gradation-converted multi-gradation image signal to the display unit 504.

入力端子501には、TV放送信号、再生装置によるDVDやVTRなどの再生信号、TV放送受信装置からの信号などが入力される。入力端子501に入力された信号は、受信処理手段502へ送られる。   The input terminal 501 receives a TV broadcast signal, a playback signal such as a DVD or VTR by the playback device, and a signal from the TV broadcast receiving device. A signal input to the input terminal 501 is sent to the reception processing unit 502.

受信処理手段502は、入力端子501を通して入力された信号を、後段の階調変換手段500で処理可能な形式に変換する処理を行う。受信処理手段502は、例えば、アナログ信号が入力される場合は、アナログ信号をデジタル信号に変換する処理、及び、同期信号を分離する処理などの入力信号処理を行う。また、受信処理手段502は、例えば、MPEGデータを受信した場合には、MPEGデータをデコードするなどの処理を行う。受信処理手段502は、処理された画像信号を階調変換手段500へ出力する。   The reception processing unit 502 performs processing for converting a signal input through the input terminal 501 into a format that can be processed by the gradation conversion unit 500 in the subsequent stage. For example, when an analog signal is input, the reception processing unit 502 performs input signal processing such as processing to convert the analog signal into a digital signal and processing to separate the synchronization signal. For example, when receiving MPEG data, the reception processing unit 502 performs processing such as decoding the MPEG data. The reception processing unit 502 outputs the processed image signal to the gradation conversion unit 500.

階調変換手段500は、上記実施の形態1〜5の画像処理装置における階調変換手段1〜5のいずれかと同様の階調変換処理を行い、入力画像信号よりも多階調の画像信号を表示手段504へ出力する。   The gradation conversion means 500 performs gradation conversion processing similar to any one of the gradation conversion means 1 to 5 in the image processing apparatuses of Embodiments 1 to 5 described above, and outputs an image signal having multiple gradations than the input image signal. Output to the display means 504.

表示手段504は、階調変換手段500からビット数が拡張された画像信号Dcを受信し、受信した画像信号に基づき、表示可能なビット数で画像を表示する。   The display unit 504 receives the image signal Dc whose number of bits is expanded from the gradation conversion unit 500, and displays an image with a displayable number of bits based on the received image signal.

以上に説明したように、実施の形態6の画像表示装置6によれば、階調変換手段500に上記実施の形態1〜5のいずれかの画像処理装置又は画像処理方法を適用しているので、入力された画像信号のビット数が表示手段504で表示可能なビット数よりも少ない場合や、表示手段504が備える表示デバイス(例えば、液晶デバイス、プラズマディスプレイなど)が高輝度のデバイスである場合にも、回路規模を大幅に増やすことなく、実時間での処理により、非常に緩やかに階調値が変化する区間においても、ノイズ成分による誤検出なく、階調値の変化をより適切に検出して、画像信号の階調を十分な階調数へ拡張することができる。このため、実施の形態6の画像表示装置6によれば、輝度の高い表示デバイスで画像を表示した際にも、画像のディテールが失われたり、鮮鋭度が損なわれたりすることなく、量子化ノイズや擬似輪郭が低減され、階調値の変化が滑らかで、高品位な階調数を拡張した画像信号を表示することができる。   As described above, according to the image display device 6 of the sixth embodiment, the image processing device or the image processing method of any of the first to fifth embodiments is applied to the gradation conversion means 500. When the number of bits of the input image signal is smaller than the number of bits that can be displayed by the display unit 504, or when the display device (for example, a liquid crystal device, a plasma display, etc.) provided in the display unit 504 is a high-luminance device. In addition, even when the gradation value changes very slowly by real-time processing without greatly increasing the circuit scale, the change in gradation value is detected more appropriately without erroneous detection due to noise components. Thus, the gradation of the image signal can be expanded to a sufficient number of gradations. For this reason, according to the image display device 6 of the sixth embodiment, even when an image is displayed on a display device with high brightness, the quantization of the image is not lost and the sharpness is not lost. It is possible to display an image signal in which noise and pseudo contour are reduced, the gradation value changes smoothly, and the number of gradations is extended with high quality.

《7》実施の形態7.
上記実施の形態6による画像表示装置6は、1台の階調変換手段500を備えているが、実施の形態7による画像表示装置7は、複数台の階調変換手段500,510を備えている。図40は、本発明の実施の形態7による画像表示装置7の構成の一例を概略的に示すブロック図である。図40において、図39の構成と同一又は対応する構成には、同じ符号を付す。図40において、実施の形態7の画像表示装置7は、信号処理手段としての階調補正手段503と階調変換手段510とをさらに備えた点が、上記実施の形態6の画像表示装置6と相違する。階調補正手段503は、画像信号のダイナミックレンジの拡大やコントラストの改善などの階調補正を実施する手段である。階調変換手段510は、上記実施の形態1〜5の階調変換手段1〜5と同様の階調変換処理を行い、入力する画像信号よりも多階調の画像信号を表示手段504へ出力する。階調変換手段510は、階調補正手段503によって画像信号のダイナミックレンジの拡大やコントラストの改善などの階調補正を実施したときに、この階調補正にともなって増加した画像信号の量子化ノイズ(階調ジャンプ)を低減させるために、階調補正後の画像信号に対して、階調変換処理を施す構成である。
<< 7 >> Embodiment 7
The image display device 6 according to the sixth embodiment includes one gradation conversion unit 500, but the image display device 7 according to the seventh embodiment includes a plurality of gradation conversion units 500 and 510. Yes. FIG. 40 is a block diagram schematically showing an example of the configuration of the image display device 7 according to the seventh embodiment of the present invention. 40, the same reference numerals are given to the same or corresponding components as those in FIG. In FIG. 40, the image display device 7 of the seventh embodiment is further provided with a tone correction unit 503 and a tone conversion unit 510 as signal processing units, and the image display device 6 of the sixth embodiment. Is different. The gradation correction unit 503 is a unit that performs gradation correction such as expansion of the dynamic range of the image signal and improvement of contrast. The gradation conversion unit 510 performs gradation conversion processing similar to the gradation conversion units 1 to 5 in the first to fifth embodiments, and outputs an image signal having a higher gradation than the input image signal to the display unit 504. To do. The gradation conversion unit 510 performs quantization correction such as expansion of the dynamic range of the image signal and improvement of contrast by the gradation correction unit 503, and the quantization noise of the image signal increased with the gradation correction. In order to reduce (gradation jump), gradation conversion processing is performed on the image signal after gradation correction.

入力端子501より入力された画像信号は、受信処理手段502で受信され、所定の形式の画像信号が階調変換手段500に出力される。階調変換手段500は、入力画像信号に対してビット数を拡張する階調変換処理を施して、量子化ノイズを低減する。ここまでの実施の形態7の構成及び動作は、上記実施の形態6におけるものと同じである。   An image signal input from the input terminal 501 is received by the reception processing unit 502, and an image signal in a predetermined format is output to the gradation conversion unit 500. The gradation conversion unit 500 performs gradation conversion processing for expanding the number of bits on the input image signal to reduce quantization noise. The configuration and operation of the seventh embodiment so far are the same as those in the sixth embodiment.

階調補正手段503には、入力画像信号よりも多階調の画像信号となった階調変換手段500からの画像信号が入力される。階調補正手段503は、入力された画像信号のダイナミックレンジの拡大やコントラストの改善などの階調補正を行う。階調補正においては、入力画像信号のある区間の階調を所定の倍率で変換するような処理が施される。これにより、表示される画像のダイナミックレンジが拡張され、明暗のはっきりしたコントラストの高い画像が表示されるが、階調補正手段503が実施した階調特性の変換により、階調ジャンプが起こりやすくなり、それによる量子化ノイズが増大する。すなわち、例えば、階調値が4倍となるような補正がされると、その出力画像の階調は、4階調おきの値しか存在しなくなり、画像が徐々に明るくなるような領域でも、その階調値の変化が4階調ごとになり、この階調ジャンプが量子化ノイズとして目立つようになる。   The gradation correction unit 503 receives an image signal from the gradation conversion unit 500 that is an image signal having a higher gradation than the input image signal. The gradation correction unit 503 performs gradation correction such as expansion of the dynamic range of the input image signal and improvement of contrast. In the gradation correction, a process for converting the gradation of a certain section of the input image signal at a predetermined magnification is performed. As a result, the dynamic range of the displayed image is expanded, and an image having a clear contrast and high contrast is displayed. However, the gradation correction performed by the gradation correcting unit 503 makes it easy for a gradation jump to occur. , Resulting in increased quantization noise. That is, for example, when correction is made such that the gradation value is quadrupled, the gradation of the output image has only values every four gradations, and even in an area where the image gradually becomes brighter, The gradation value changes every four gradations, and this gradation jump becomes conspicuous as quantization noise.

階調補正手段503から出力された画像信号は、階調変換手段510に入力される。階調変換手段510は、階調変換手段500と同様の処理により、入力画像信号に対し、ビット数を拡張する階調変換処理を行い、画像信号における階調値の変化が滑らかになるよう処理して、得られた画像信号を表示手段504へ出力する。   The image signal output from the gradation correction unit 503 is input to the gradation conversion unit 510. The gradation conversion unit 510 performs gradation conversion processing for expanding the number of bits on the input image signal by the same processing as the gradation conversion unit 500, and performs processing so that the change in gradation value in the image signal becomes smooth. Then, the obtained image signal is output to the display means 504.

ここで、階調補正手段503において、例えば、4階調の階調ジャンプが発生するような処理が施される場合は、階調変換手段510を上記実施の形態1〜5で述べたように、4階調分の差、すなわち、+4から−4までの範囲の階調値の変化まで検出できるように設定すればよい。このように階調変換手段510における検出する階調値の変化の値は、階調補正手段503の特性に応じて決定すればよい。この場合の階調変換手段510における構成及び動作は、上記実施の形態1〜5の階調変換手段1〜5のいずれかと同様である。   Here, in the gradation correction unit 503, for example, when processing that causes a gradation jump of 4 gradations is performed, the gradation conversion unit 510 is set as described in the first to fifth embodiments. What is necessary is just to set so that the difference for four gradations, that is, the change of the gradation value in the range from +4 to -4 can be detected. In this way, the change value of the gradation value detected by the gradation converting means 510 may be determined according to the characteristics of the gradation correcting means 503. In this case, the configuration and operation of the gradation conversion unit 510 are the same as those of any of the gradation conversion units 1 to 5 in the first to fifth embodiments.

表示手段504は、階調変換手段510からの階調値の変化が滑らかになるよう処理してビット数が拡張された画像信号を受信し、受信された画像信号に基づき、表示可能なビット数で画像を表示する。   The display unit 504 receives an image signal in which the number of bits has been expanded by processing the gradation value change from the gradation conversion unit 510 to be smooth, and the number of bits that can be displayed based on the received image signal To display the image.

以上に説明したように、実施の形態7の画像表示装置7によれば、階調変換手段500で量子化ノイズを低減した後に階調補正手段503でダイナミックレンジの拡張やコントラスト補正処理を施した場合であっても、階調変換手段510で検出する階調値の変化の値(最大値、最小値)を階調補正手段503の特性に合わせて設定することで、階調ジャンプが発生する階調値を検索することなく階調ジャンプ低減のための階調変換処理が可能になる。このため、実施の形態7の画像表示装置7によれば、表示手段504が備える表示デバイス(例えば、液晶デバイス、プラズマディスプレイなど)が高輝度のデバイスである場合にも、回路規模を大幅に増やすことなく、実時間での処理により、非常に緩やかに階調値が変化する区間においても、ノイズ成分による誤検出なく、階調値の変化をより適切に検出して、画像信号の階調を十分な階調数へ拡張することができ、輝度の高い表示デバイスで画像を表示した際にも、画像のディテールが失われたり、鮮鋭度が損なわれたりすることなく、量子化ノイズや擬似輪郭が低減され、階調値の変化が滑らかで、高品位な階調数を拡張した画像信号を表示することができる。   As described above, according to the image display device 7 of the seventh embodiment, after the quantization noise is reduced by the gradation conversion unit 500, the dynamic range expansion and the contrast correction processing are performed by the gradation correction unit 503. Even in this case, the gradation jump is generated by setting the change value (maximum value, minimum value) of the gradation value detected by the gradation conversion means 510 according to the characteristics of the gradation correction means 503. It is possible to perform gradation conversion processing for reducing gradation jumps without searching for gradation values. Therefore, according to the image display device 7 of the seventh embodiment, the circuit scale is greatly increased even when the display device (for example, a liquid crystal device, a plasma display, etc.) provided in the display unit 504 is a high-luminance device. Therefore, even in a section where the gradation value changes very slowly by real-time processing, the gradation change of the image signal is detected more appropriately without erroneous detection due to noise components. Even when the image is displayed on a display device with high brightness that can be expanded to a sufficient number of gradations, the quantization noise and pseudo contours are maintained without losing image details or loss of sharpness. Can be displayed, and the change of the gradation value is smooth, and an image signal with an extended number of gradations can be displayed.

なお、図40には、階調変換手段500の後段に階調補正を行う階調補正手段503を配置した場合を示したが、階調補正手段503に代えて、階調補正以外の信号処理手段(図示せず)であって、階調ジャンプによる量子化ノイズを増大させてしまう手段を備えた場合にも、階調変換手段510によって量子化ノイズを低減することができる。この場合には、階調変換手段510において検出する階調値の変化の値(最大値、最小値)は、信号処理手段の量子化ノイズの特性に応じて決定すれば、画像処理で増大した量子化ノイズを低減するよう構成することができる。   FIG. 40 shows a case where the gradation correction unit 503 for performing gradation correction is arranged at the subsequent stage of the gradation conversion unit 500. However, instead of the gradation correction unit 503, signal processing other than gradation correction is performed. Even when a means (not shown) for increasing quantization noise due to gradation jump is provided, the gradation conversion means 510 can reduce the quantization noise. In this case, the change value (maximum value, minimum value) of the gradation value detected by the gradation conversion means 510 is increased by image processing if it is determined according to the quantization noise characteristics of the signal processing means. It can be configured to reduce quantization noise.

1,2,3,4,5 階調変換手段、 6,7 画像表示装置、 10 階調変化量検出手段、 11 階調変化量算出手段、 12 階調変化量制限手段、 20,20b,70,70b 画素領域判定手段、 21,21b 画素変化量抽出手段、 22 絶対値レベル比較手段、 23,24,27,28 隣接位置極性判定手段、 25,29 合成手段、 26 領域信号生成手段、 30 平坦・ノイズ領域幅判定手段、 31 平坦・ノイズ領域幅カウント手段、 32 巡回型フィルタ処理手段、 33 係数1乗算手段、 34 演算手段、 35 係数2乗算手段、 36 切換え手段、 37 フィルタ出力遅延手段、 40,41 傾き検出手段、 40a 傾き算出手段、 40b 切換え手段、 40c 傾き遅延手段、 42 終点変化量検出手段、 43 傾き演算手段、 50,81,81b 補正ビット生成手段、 51 演算手段、 52 減算手段、 53 切換え手段、 54,84 補正値遅延手段、 55,85 ビット列変換手段、 60 エッジ変化検出手段、 61 絶対値演算手段、 62 差分低域成分抽出手段、 63 絶対値演算手段、 64 倍率変換手段、 65 最大値選択手段、 66 係数変換手段、 67 領域信号遅延補償手段、 72,76 平滑化手段、 73 極性判定手段、 74 比較手段、 75 領域信号生成手段、 80 平坦・ノイズ領域幅判定手段、 82 加算手段、 83 切換え手段、 86 カウント手段、 87 乗算手段、 91,93 遅延補償手段、 92,94 画素値演算手段、 110 水平方向階調処理手段、 111 垂直方向階調処理手段、 500,510 階調変換手段、 501 入力端子、 502 受信処理手段、 503 階調補正手段、 504 表示手段、 Ar,Ar1,Ar2,Ar3,Ar4 領域信号、 aCd 補正値、 Cd,Ce 補正ビットデータ、 Cnt 平坦・ノイズ領域幅カウント値、 Da 入力画像信号(入力画素データ)、 Db 出力画像信号(出力画素データ)、 Dc 出力画像信号(出力画素データ)、 df 階調変化量、 de 平坦・ノイズ領域幅データ測定値、 dst 平坦・ノイズ領域幅データ予測値、 E 付加ビットデータ、 Ksl,Ks 傾きデータ値、 La(x) 入力画像信号の階調値、 Lb(x) 出力画像信号の階調値、 rc 補正制限係数、 x 画素位置、 Xlm 振幅制限階調変化量。   1, 2, 3, 4, 5 gradation conversion means, 6, 7 image display device, 10 gradation change detection means, 11 gradation change calculation means, 12 gradation change restriction means, 20, 20b, 70 , 70b pixel area determination means, 21, 21b pixel change amount extraction means, 22 absolute value level comparison means, 23, 24, 27, 28 adjacent position polarity determination means, 25, 29 synthesis means, 26 area signal generation means, 30 flat Noise area width determination means, 31 flat / noise area width count means, 32 cyclic filter processing means, 33 coefficient 1 multiplication means, 34 calculation means, 35 coefficient 2 multiplication means, 36 switching means, 37 filter output delay means, 40 , 41 Inclination detecting means, 40a Inclination calculating means, 40b Switching means, 40c Inclination delay means, 42 End point change amount detection Means, 43 inclination calculating means, 50, 81, 81b correction bit generating means, 51 calculating means, 52 subtracting means, 53 switching means, 54, 84 correction value delay means, 55, 85 bit string converting means, 60 edge change detecting means, 61 absolute value calculation means, 62 differential low frequency component extraction means, 63 absolute value calculation means, 64 magnification conversion means, 65 maximum value selection means, 66 coefficient conversion means, 67 region signal delay compensation means, 72, 76 smoothing means, 73 polarity determination means, 74 comparison means, 75 area signal generation means, 80 flatness / noise area width determination means, 82 addition means, 83 switching means, 86 count means, 87 multiplication means, 91, 93 delay compensation means, 92, 94 Pixel value calculation means, 110 horizontal gradation processing means, 111 vertical direction Direction gradation processing means, 500, 510 gradation conversion means, 501 input terminal, 502 reception processing means, 503 gradation correction means, 504 display means, Ar, Ar1, Ar2, Ar3, Ar4 area signal, aCd correction value, Cd , Ce correction bit data, Cnt flat / noise area width count value, Da input image signal (input pixel data), Db output image signal (output pixel data), Dc output image signal (output pixel data), df gradation change amount , De flat / noise area width data measured value, dst flat / noise area width data predicted value, E additional bit data, Ksl, Ks slope data value, La (x) tone value of input image signal, Lb (x) output Image signal tone value, rc correction limit coefficient, x pixel position, Xlm amplitude limit tone change amount.

Claims (21)

時間方向及び空間方向に離散したデータで構成される入力画像信号が入力され、上記入力画像信号の階調数を拡張し且つ階調値を補正する変換処理によって生成された変換後データで構成される出力画像信号を出力する機能を持つ画像処理装置であって、
上記入力画像信号から、互いに隣接配置された画素の階調値の差分である階調変化量を求める階調変化量検出手段と、
上記階調変化量に基づいて、各画素を、上記階調変化量の値が0である階調平坦領域に属する画素、上記入力画像信号に含まれるノイズ成分によって上記階調変化量の値が0でないノイズ領域に属する画素、並びに、上記階調平坦領域及び上記ノイズ領域以外の領域である非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、該判定の結果を示す領域信号を生成する画素領域判定手段と、
上記領域信号を受け取り、非ノイズ階調変化位置の画素である基準画素から次の非ノイズ階調変化位置の画素までの間にある階調平坦領域及びノイズ領域からなる平坦・ノイズ領域の幅である平坦・ノイズ領域幅の予測値を示す平坦・ノイズ領域幅データ予測値を生成する手段であって、上記基準画素の直前の平坦・ノイズ領域幅と上記基準画素の直前に検出された直前基準画素において生成された直前平坦・ノイズ領域幅データ予測値とに基づいて、上記基準画素の直後の平坦・ノイズ領域の幅を予測した上記平坦・ノイズ領域幅データ予測値を生成する平坦・ノイズ領域幅判定手段と、
上記階調変化量と上記平坦・ノイズ領域幅データ予測値とに基づいて、上記基準画素の直後の平坦・ノイズ領域における上記変換後データの階調値の傾きを設定する際に用いる傾きデータ値を求める傾き検出手段と、
上記階調変化量と上記傾きデータ値とを用いて、上記領域信号が示す判定の結果に応じた上記入力画像信号の階調値の補正値を求め、該補正値に対応する補正ビットデータを生成する補正ビット生成手段と、
上記階調値に対し上記補正ビットデータに応じた値を減算又は加算して、上記変換後データで構成される上記出力画像信号を生成する画素値演算手段と
を備えたことを特徴とする画像処理装置。
An input image signal composed of discrete data in the time direction and the spatial direction is inputted, and composed of post-conversion data generated by a conversion process that expands the number of gradations of the input image signal and corrects the gradation value. An image processing apparatus having a function of outputting an output image signal,
A gradation change amount detecting means for obtaining a gradation change amount which is a difference between gradation values of pixels arranged adjacent to each other from the input image signal;
Based on the gradation change amount, the value of the gradation change amount is determined by the pixels belonging to the gradation flat region where the gradation change amount value is 0 and the noise component included in the input image signal. A region signal indicating a result of the determination by classifying the pixel into a pixel belonging to a non-zero noise region and a pixel in a non-noise gradation change position that is a region other than the gradation flat region and the noise region. A pixel region determination means for generating
The width of the flat / noise area consisting of the gradation flat area and the noise area between the reference pixel which is the pixel at the non-noise gradation change position and the next pixel at the next non-noise gradation change position is received. A means for generating a flat / noise region width data prediction value indicating a predicted value of a certain flat / noise region width, wherein the flat / noise region width immediately before the reference pixel and the immediately preceding reference detected immediately before the reference pixel A flat / noise area for generating the flat / noise area width data predicted value obtained by predicting the width of the flat / noise area immediately after the reference pixel based on the predicted flat / noise area width data immediately before generated in the pixel. Width determination means;
Inclination data value used to set the gradient of the gradation value of the converted data in the flat / noise region immediately after the reference pixel based on the gradation change amount and the predicted flat / noise region width data value Inclination detecting means for obtaining
Using the gradation change amount and the inclination data value, a correction value of the gradation value of the input image signal corresponding to the determination result indicated by the region signal is obtained, and correction bit data corresponding to the correction value is obtained. Correction bit generation means for generating,
A pixel value calculation means for subtracting or adding a value corresponding to the correction bit data from the gradation value to generate the output image signal composed of the converted data. Processing equipment.
上記平坦・ノイズ領域幅判定手段は、
上記領域信号を受け取り、上記平坦・ノイズ領域幅の画素数のカウント値を平坦・ノイズ領域幅を示す平坦・ノイズ領域幅カウント値として出力する平坦・ノイズ領域幅カウント手段と、
上記基準画素ごとに、上記平坦・ノイズ領域幅カウント値に対し、上記基準画素の直前画素までのフィルタ処理出力に巡回型のフィルタ処理を施すことによって上記基準画素の直前画素までに得られた上記平坦・ノイズ領域幅の値の低域周波数成分を求め、該求められた値を上記平坦・ノイズ領域幅データ予測値として出力する巡回型フィルタ処理手段と
を備えることを特徴とする請求項1に記載の画像処理装置。
The flat / noise area width determining means is:
Flat / noise area width count means for receiving the area signal and outputting a count value of the number of pixels of the flat / noise area width as a flat / noise area width count value indicating the flat / noise area width;
For each of the reference pixels, the flat / noise area width count value is obtained up to the pixel immediately before the reference pixel by applying a cyclic filter process to the filter processing output up to the pixel immediately before the reference pixel. 2. A cyclic filter processing means for obtaining a low frequency component of a flat / noise region width value and outputting the obtained value as the flat / noise region width data prediction value. The image processing apparatus described.
上記傾き検出手段は、
上記階調変化量の値を予め決められた範囲に制限した振幅制限階調変化量と、上記平坦・ノイズ領域幅データ予測値とにより、上記変換後データの階調値の傾きを設定する際に用いる傾きを求める傾き算出手段と、
上記基準画素ごとに、上記傾き算出手段により求められた階調値の傾きを上記傾きデータ値として選択し、該基準画素以外の画素においては直前画素における階調値の傾きを上記傾きデータ値として選択する切換え手段とを備え、
上記切換え手段からの出力を、上記平坦・ノイズ領域に対応する区間における上記画像信号の階調値の傾きを示す上記傾きデータ値として出力する
ことを特徴とする請求項1又は2に記載の画像処理装置。
The inclination detecting means is
When setting the gradient of the gradation value of the converted data based on the amplitude-limited gradation variation amount in which the gradation variation value is limited to a predetermined range and the flat / noise area width data prediction value An inclination calculating means for obtaining an inclination used for
For each reference pixel, the gradient of the gradation value obtained by the gradient calculation means is selected as the gradient data value, and the gradient value of the previous pixel is used as the gradient data value for pixels other than the reference pixel. Switching means to select,
3. The image according to claim 1, wherein an output from the switching unit is output as the inclination data value indicating an inclination of a gradation value of the image signal in a section corresponding to the flat / noise area. Processing equipment.
上記階調変化量に基づいて上記出力画像信号の階調値の傾きを制限する補正制限係数を設定するエッジ変化検出手段をさらに備え、
上記補正ビット生成手段は、上記階調変化量と上記傾きデータ値と上記補正制限係数とを用いて、上記領域信号が示す判定の結果に応じた上記入力画像信号の階調値の補正値を求め、該補正値に対応する補正ビットデータを生成する
ことを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。
Edge change detection means for setting a correction limiting coefficient for limiting the gradient of the gradation value of the output image signal based on the gradation change amount;
The correction bit generation means uses the gradation change amount, the inclination data value, and the correction restriction coefficient to calculate a correction value of the gradation value of the input image signal according to the determination result indicated by the region signal. The image processing apparatus according to claim 1, wherein the image processing apparatus obtains and generates correction bit data corresponding to the correction value.
上記エッジ変化検出手段は、
上記階調変化量の絶対値が予め決められた閾値より大きい場合は、上記階調変化量の値が画像のエッジによるものと判定して、上記補正制限係数の値を0に設定し、
上記階調変化量の絶対値が上記閾値以下の場合は、上記階調変化量の絶対値の大きさに応じて、上記補正制限係数の値を1以下で0より大きい範囲内の値に設定する
ことを特徴とする請求項4に記載の画像処理装置。
The edge change detecting means is
If the absolute value of the gradation change amount is larger than a predetermined threshold value, it is determined that the gradation change amount value is due to an edge of the image, the correction limit coefficient value is set to 0,
When the absolute value of the gradation change amount is equal to or less than the threshold value, the value of the correction limiting coefficient is set to a value within 1 and less than 0 according to the absolute value of the gradation change amount. The image processing apparatus according to claim 4, wherein:
上記補正ビット生成手段は、
上記階調変化量の値を予め決められた範囲に制限した振幅制限階調変化量と上記補正制限係数とから、上記入力画像信号の階調値に対する補正値を求める演算手段と、
上記傾きデータ値を、上記補正値の画素ごとの変化の値として求め、直前の画素における補正値から上記傾きデータ値を減算し、該減算結果を出力する減算手段と、
上記領域信号が示す判定の結果に基づき、非ノイズ階調変化位置の画素である基準画素においては上記演算手段で求められた上記補正値を選択し、上記基準画素直後の階調平坦領域及びノイズ領域となる画素においては、上記減算手段による上記減算結果を選択し、選択した結果を上記入力画像信号の階調値に対する補正値として出力する切換え手段と、
上記基準画素での補正値から、上記傾きデータ値ずつ画素ごとに順次変化する補正値を得て、上記入力画像信号における階調値に対して小数部に相当する量子化値を有する補正ビットデータを生成するビット列変換手段と
を備えたことを特徴とする請求項4又は5に記載の画像処理装置。
The correction bit generation means includes
An arithmetic means for obtaining a correction value for the gradation value of the input image signal from the amplitude-limited gradation change amount and the correction restriction coefficient in which the value of the gradation change amount is limited to a predetermined range;
Subtraction means for obtaining the inclination data value as a value of change for each pixel of the correction value, subtracting the inclination data value from the correction value in the immediately preceding pixel, and outputting the subtraction result;
Based on the determination result indicated by the area signal, the correction value obtained by the calculation means is selected for a reference pixel that is a pixel at a non-noise gradation change position, and the gradation flat area and noise immediately after the reference pixel are selected. In the pixel to be an area, the subtraction result by the subtraction means is selected, and the switching means for outputting the selected result as a correction value for the gradation value of the input image signal;
Correction bit data having a quantization value corresponding to a fractional part with respect to the gradation value in the input image signal, obtained from the correction value at the reference pixel, by sequentially obtaining the inclination data value for each pixel. The image processing apparatus according to claim 4, further comprising: a bit string conversion unit that generates
時間方向及び空間方向に離散したデータで構成される入力画像信号が入力され、上記入力画像信号の階調数を拡張し且つ階調値を補正する変換処理によって生成された変換後データで構成される出力画像信号を出力する機能を持つ画像処理装置であって、
上記入力画像信号から、互いに隣接配置された画素の階調値の差分である階調変化量を求める階調変化量検出手段と、
上記階調変化量に基づいて、各画素を、上記階調変化量の値が0である階調平坦領域に属する画素、上記入力画像信号に含まれるノイズ成分によって上記階調変化量の値が0でないノイズ領域に属する画素、並びに、上記階調平坦領域及び上記ノイズ領域以外の領域である非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、該判定の結果を示す領域信号を生成する画素領域判定手段と、
上記領域信号を受け取り、非ノイズ階調変化位置の画素である基準画素から次の非ノイズ階調変化位置の画素までの間にある階調平坦領域及びノイズ領域からなる平坦・ノイズ領域の幅である平坦・ノイズ領域幅を示す平坦・ノイズ領域幅を測定し、平坦・ノイズ領域幅測定値を出力する平坦・ノイズ領域幅判定手段と、
上記階調変化量と上記平坦・ノイズ領域幅測定値とに基づいて、上記基準画素の直後の平坦・ノイズ領域における上記変換後データの階調値の傾きを設定する際に用いる傾きデータ値を求める傾き検出手段と、
上記階調変化量と上記傾きデータ値とを用いて、上記領域信号が示す判定の結果に応じた上記入力画像信号の階調値の補正値を求め、該補正値に対応する補正ビットデータを生成する補正ビット生成手段と、
上記階調値に対し上記補正ビットデータに応じた値を減算又は加算して、上記変換後データで構成される上記出力画像信号を生成する画素値演算手段と
を備えたこと特徴とする画像処理装置。
An input image signal composed of discrete data in the time direction and the spatial direction is inputted, and composed of post-conversion data generated by a conversion process that expands the number of gradations of the input image signal and corrects the gradation value. An image processing apparatus having a function of outputting an output image signal,
A gradation change amount detecting means for obtaining a gradation change amount which is a difference between gradation values of pixels arranged adjacent to each other from the input image signal;
Based on the gradation change amount, the value of the gradation change amount is determined by the pixels belonging to the gradation flat region where the gradation change amount value is 0 and the noise component included in the input image signal. A region signal indicating a result of the determination by classifying the pixel into a pixel belonging to a non-zero noise region and a pixel in a non-noise gradation change position that is a region other than the gradation flat region and the noise region. A pixel region determination means for generating
The width of the flat / noise area consisting of the gradation flat area and the noise area between the reference pixel which is the pixel at the non-noise gradation change position and the next pixel at the next non-noise gradation change position is received. A flat / noise area width determining means for measuring a flat / noise area width indicating a certain flat / noise area width and outputting a flat / noise area width measurement value;
Based on the gradation change amount and the flat / noise area width measurement value, the inclination data value used when setting the inclination of the gradation value of the converted data in the flat / noise area immediately after the reference pixel is A desired tilt detection means;
Using the gradation change amount and the inclination data value, a correction value of the gradation value of the input image signal corresponding to the determination result indicated by the region signal is obtained, and correction bit data corresponding to the correction value is obtained. Correction bit generation means for generating,
Image value processing means comprising: pixel value calculation means for subtracting or adding a value corresponding to the correction bit data from the gradation value to generate the output image signal composed of the converted data. apparatus.
上記補正ビット生成手段は、
上記傾き検出手段からの上記傾きデータ値を、上記補正値における画素ごとの変化の値とし、
上記領域信号が示す判定の結果に応じて、非ノイズ階調変化位置の画素である基準画素においては、上記補正値を固定の値とし、
上記基準画素直後の階調平坦領域及びノイズ領域となる画素位置においては、上記基準画素での補正値に対し画素の順に上記傾きデータ値に応じた値を順次加算した値を用い、該値を入力画像信号における階調値の小数部に相当する値として付加することによって生成された補正ビットデータを生成する
ことを特徴とする請求項7に記載の画像処理装置。
The correction bit generation means includes
The inclination data value from the inclination detecting means is set as a value of change for each pixel in the correction value,
According to the determination result indicated by the region signal, the reference value that is the pixel at the non-noise gradation change position is set to a fixed value,
At the pixel position that becomes the gradation flat region and the noise region immediately after the reference pixel, a value obtained by sequentially adding a value corresponding to the inclination data value in the pixel order to the correction value at the reference pixel is used. The image processing apparatus according to claim 7, wherein correction bit data generated by adding as a value corresponding to a decimal part of a gradation value in an input image signal is generated.
上記画素領域判定手段は、注目画素位置における上記階調変化量の値と、上記注目画素とその前後に位置する画素とを含む所定の画素範囲内にある各画素の階調変化量の極性とから、上記ノイズ領域を判定することを特徴とする請求項1乃至8のいずれか1項に記載の画像処理装置。   The pixel area determination means includes a value of the gradation change amount at the target pixel position, and a polarity of the gradation change amount of each pixel within a predetermined pixel range including the target pixel and pixels positioned before and after the target pixel. The image processing apparatus according to claim 1, wherein the noise area is determined from the image processing apparatus. 上記画素領域判定手段は、
注目画素位置における上記階調変化量の値を所定の値と比較し、比較結果を出力する絶対値レベル比較手段と、
注目画素とその前後に位置する画素とを含む所定の画素範囲内にある上記階調変化量を得て、注目画素位置における上記階調変化量の極性と、所定の画素範囲内の画素における階調変化量のそれぞれの極性との一致又は不一致を判定する極性判定手段と、
上記極性判定手段における判定結果において、所定の画素範囲内の画素のうちいずれかで極性が反対となる場合を求め、極性判定結果を出力する合成手段と、
上記絶対値レベル比較手段による比較結果と、上記合成手段からの極性判定結果とに基づき、上記ノイズ領域となる階調の変化を判定して、判定結果である領域信号を生成する領域信号生成手段と
を備えることを特徴とする請求項1乃至9のいずれか1項に記載の画像処理装置。
The pixel area determination means includes
Absolute value level comparing means for comparing the value of the gradation change amount at the target pixel position with a predetermined value and outputting a comparison result;
The gradation change amount in the predetermined pixel range including the target pixel and the pixels positioned before and after the target pixel is obtained, and the polarity of the gradation change amount at the target pixel position and the gradation in the pixel in the predetermined pixel range are obtained. Polarity determining means for determining whether or not the polarity of each of the tone change amounts matches or does not match;
In the determination result in the polarity determination means, a combination means for obtaining a case where the polarity is opposite in any of the pixels within the predetermined pixel range and outputting the polarity determination result;
An area signal generating means for determining a change in gradation to be the noise area based on a comparison result by the absolute value level comparing means and a polarity determination result from the synthesizing means and generating an area signal as a determination result The image processing apparatus according to claim 1, further comprising:
上記画素領域判定手段は、
(判定A1) 画素位置xの注目画素における階調変化量df(x)が、df(x)=0である場合には、上記注目画素は、階調平坦領域に属する画素であると判定し、
(判定A2) 画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Nd(Ndは、所定の整数)であり、且つ、階調変化量df(x)の極性が、階調変化量df(x−1)の極性と反対極性である場合、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x+1)の極性と反対極性である場合には、
上記注目画素は、ノイズ領域に属する画素であると判定し
(判定A3) 上記判定A1において、上記注目画素が階調平坦領域に属する画素ではないと判定され、且つ、上記判定A2において、上記注目画素がノイズ領域に属する画素ではないと判定された上記注目画素を、非ノイズ階調変化位置の画素であると判定する
ことを特徴とする請求項1乃至10のいずれか1項に記載の画像処理装置。
The pixel area determination means includes
(Decision A1) When the gradation change amount df (x) in the target pixel at the pixel position x is df (x) = 0, the target pixel is determined to be a pixel belonging to the flat gradation region. ,
(Decision A2) The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd (Nd is a predetermined integer), and the gradation change amount df ( the polarity of x) is opposite to the polarity of the gradation change amount df (x-1), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( If the polarity is opposite to x + 1),
The target pixel is determined to be a pixel belonging to a noise region (determination A3). In the determination A1, it is determined that the target pixel is not a pixel belonging to a flat gradation region, and in the determination A2, the target pixel The image according to any one of claims 1 to 10, wherein the pixel of interest determined that the pixel is not a pixel belonging to a noise region is determined to be a pixel at a non-noise gradation change position. Processing equipment.
上記画素領域判定手段は、
(判定B1) 画素位置xの注目画素における階調変化量df(x)が、df(x)=0である場合には、上記注目画素は、階調平坦領域に属する画素であると判定し、
(判定B2) 画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Nd(Ndは、所定の整数)であり、且つ、階調変化量df(x)の極性が、階調変化量df(x−1)の極性と反対極性である場合、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x+1)の極性と反対極性である場合、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x−2)の極性と反対極性である場合、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、階調変化量df(x)の極性が、階調変化量df(x+2)の極性と反対極性である場合には、
上記注目画素は、ノイズ領域に属する画素であると判定し、
(判定B3) 上記判定B1において、上記注目画素が階調平坦領域に属する画素ではないと判定され、且つ、上記判定B2において、上記注目画素が、ノイズ領域に属する画素ではないと判定された場合には、上記注目画素を、非ノイズ階調変化位置の画素であると判定する
ことを特徴とする請求項1乃至10のいずれか1項に記載の画像処理装置。
The pixel area determination means includes
(Determination B1) When the gradation change amount df (x) in the target pixel at the pixel position x is df (x) = 0, it is determined that the target pixel is a pixel belonging to the flat gradation region. ,
(Decision B2) The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd (Nd is a predetermined integer), and the gradation change amount df ( the polarity of x) is opposite to the polarity of the gradation change amount df (x−1), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( x + 1) is opposite to the polarity, or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( when the polarity is opposite to the polarity of x-2), or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the polarity of the gradation change amount df (x) is the gradation change amount df ( When the polarity is opposite to the polarity of x + 2),
The target pixel is determined to be a pixel belonging to the noise region,
(Decision B3) When it is determined in the determination B1 that the pixel of interest is not a pixel belonging to the flat gradation region, and it is determined in the determination B2 that the pixel of interest is not a pixel belonging to the noise region The image processing apparatus according to claim 1, wherein the target pixel is determined to be a pixel at a non-noise gradation change position.
上記画素領域判定手段は、注目画素位置における上記階調変化量の値と、注目画素とその前後に位置する画素とを含む所定の画素範囲内にある階調変化量を平滑化処理した結果から、上記ノイズ領域となる階調の変化を判定することを特徴とする請求項1乃至10のいずれか1項に記載の画像処理装置。   The pixel area determination unit smoothes the gradation change amount in a predetermined pixel range including the value of the gradation change amount at the target pixel position and the target pixel and the pixels positioned before and after the target pixel. The image processing apparatus according to claim 1, wherein a change in gradation that becomes the noise region is determined. 上記画素領域判定手段は、
注目画素位置における上記階調変化量の値を所定の値と比較し、比較結果を出力する絶対値レベル比較手段と、
注目画素とその前後に位置する画素を含む所定の画素範囲にある上記階調変化量を得て、所定の画素範囲内の画素における階調変化量に対し平滑化処理し、平滑化結果を出力する平滑化手段と、
上記注目画素位置における階調変化量と上記平滑化結果との極性の一致又は不一致を判定する極性判定手段と、
上記平滑化結果を所定の値と比較し、比較結果を出力する比較手段と、
上記絶対値レベル比較手段による比較結果と、上記極性判定手段からの極性判定結果と、上記比較手段による比較結果とに基づき、上記ノイズ領域となる階調の変化を判定して、上記領域信号を生成する領域信号生成手段と
を備えることを特徴とする請求項1乃至10のいずれか1項に記載の画像処理装置。
The pixel area determination means includes
Absolute value level comparing means for comparing the value of the gradation change amount at the target pixel position with a predetermined value and outputting a comparison result;
Obtain the above-mentioned gradation change amount in a predetermined pixel range including the pixel of interest and the pixels located before and after it, smooth the gradation change amount in the pixels within the predetermined pixel range, and output the smoothed result Smoothing means,
Polarity determination means for determining whether the gradation change amount at the target pixel position matches the polarity of the smoothing result;
A comparison means for comparing the smoothing result with a predetermined value and outputting the comparison result;
Based on the comparison result by the absolute value level comparison unit, the polarity determination result from the polarity determination unit, and the comparison result by the comparison unit, a change in gradation that becomes the noise region is determined, and the region signal is The image processing apparatus according to claim 1, further comprising: a region signal generation unit that generates the image signal.
上記領域信号生成手段は、
(判定C1) 画素位置xの注目画素における階調変化量df(x)が、df(x)=0である場合には、注目画素は、階調平坦領域に属する画素であると判定し、
(判定C2) 画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Nd(Ndは、所定の整数)であり、且つ、上記平滑化結果の極性と階調変化量df(x)の極性とが反対極性の場合、又は、
画素位置xの注目画素における階調変化量df(x)が、0<|df(x)|≦Ndであり、且つ、上記平滑化結果の絶対値|ct0|が、|ct0|≦cth0(cth0は所定の閾値)である場合は、
上記注目画素は、ノイズ領域に属する画素であると判定し、
(判定C3) 上記判定C1において、上記注目画素が階調平坦領域に属する画素ではないと判定され、且つ、上記判定C2において、上記注目画素が、ノイズ領域に属する画素ではないと判定された場合には、上記注目画素は、非ノイズ階調変化位置の画素であると判定する
ことを特徴とする請求項14に記載の画像処理装置。
The region signal generating means includes
(Decision C1) When the gradation change amount df (x) in the target pixel at the pixel position x is df (x) = 0, it is determined that the target pixel is a pixel belonging to the gradation flat region,
(Determination C2) The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd (Nd is a predetermined integer), and the polarity of the smoothing result And the polarity of the gradation change amount df (x) are opposite to each other, or
The gradation change amount df (x) in the target pixel at the pixel position x is 0 <| df (x) | ≦ Nd, and the absolute value | ct0 | of the smoothing result is | ct0 | ≦ cth0 ( cth0 is a predetermined threshold)
The target pixel is determined to be a pixel belonging to the noise region,
(Determination C3) When it is determined in the determination C1 that the pixel of interest is not a pixel belonging to the flat gradation region, and it is determined in the determination C2 that the pixel of interest is not a pixel that belongs to the noise region The image processing apparatus according to claim 14, wherein the target pixel is determined to be a pixel at a non-noise gradation change position.
上記階調変化量検出手段は、
画像信号の水平方向又は垂直方向のいずれか一定方向の隣接画素間の階調値の差分を算出し、該差分を上記階調変化量として出力する階調変化量算出手段と、
上記階調変化量の値の取り得る範囲を制限し、値を制限した振幅制限階調変化量を出力する階調変化量制限手段と
を備えたことを特徴とする請求項1乃至15のいずれか1項に記載の画像処理装置。
The gradation change amount detecting means is
A gradation change amount calculating means for calculating a difference in gradation value between adjacent pixels in a fixed direction in either the horizontal direction or the vertical direction of the image signal, and outputting the difference as the gradation change amount;
16. A gradation change amount limiting means for limiting a range in which the value of the gradation change amount can be taken and outputting an amplitude-limited gradation change amount with a limited value. The image processing apparatus according to claim 1.
上記階調変化量制限手段は、上記階調変化量の値を、予め決められた正の値となる最大値から予め決められた負の値となる最小値までの範囲内に制限し、上記振幅制限階調変化量として出力することを特徴とする請求項16に記載の画像処理装置。   The gradation change amount limiting means limits the value of the gradation change amount within a range from a maximum value that is a predetermined positive value to a minimum value that is a predetermined negative value, The image processing apparatus according to claim 16, wherein the image processing apparatus outputs the amplitude-limited gradation change amount. 時間方向及び空間方向に離散したデータで構成される入力画像信号が入力され、上記入力画像信号の階調数を拡張し且つ階調値を補正する変換処理によって生成された変換後データで構成される出力画像信号を出力する画像処理方法であって、
画像信号の空間方向の画素間の階調値の差分を階調が変化した際の階調変化量として求める階調変化量検出ステップと、
上記階調変化量に基づいて、各画素を、上記階調変化量の値が0である階調平坦領域に属する画素、上記入力画像信号に含まれるノイズ成分によって上記階調変化量の値が0でないノイズ領域に属する画素、並びに、上記階調平坦領域及び上記ノイズ領域以外の非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、該判定の結果を示す領域信号を生成する画素領域判定ステップと、
上記領域信号に基づいて、非ノイズ階調変化位置の画素である基準画素から次の非ノイズ階調変化位置の画素までの間にある階調平坦領域及びノイズ領域からなる平坦・ノイズ領域の幅である平坦・ノイズ領域幅の予測値を示す平坦・ノイズ領域幅データ予測値を生成する手段であって、上記基準画素の直前の平坦・ノイズ領域幅と上記基準画素の直前に検出された直前基準画素において生成された直前平坦・ノイズ領域幅データ予測値とに基づいて、上記基準画素の直後の平坦・ノイズ領域の幅を予測した上記平坦・ノイズ領域幅データ予測値を生成する平坦・ノイズ領域幅判定ステップと、
上記階調変化量と上記平坦・ノイズ領域幅データ予測値とに基づいて、上記基準画素の直後の平坦・ノイズ領域における上記変換後データの階調値の傾きを設定する際に用いる傾きデータ値を求める傾き検出ステップと、
上記階調変化量と上記傾きデータ値とを用いて、上記領域信号が示す判定の結果に応じた上記入力画像信号の階調値の補正値を求め、該補正値に対応する補正ビットデータを生成する補正ビット生成ステップと、
上記階調値に対し上記補正ビットデータに応じた値を減算又は加算して、上記変換後データで構成される上記出力画像信号を生成する画素値演算ステップと
を備えたこと特徴とする画像処理方法。
An input image signal composed of discrete data in the time direction and the spatial direction is inputted, and composed of post-conversion data generated by a conversion process that expands the number of gradations of the input image signal and corrects the gradation value. An image processing method for outputting an output image signal,
A gradation change amount detection step for obtaining a difference in gradation value between pixels in the spatial direction of the image signal as a gradation change amount when the gradation changes;
Based on the gradation change amount, the value of the gradation change amount is determined by the pixels belonging to the gradation flat region where the gradation change amount value is 0 and the noise component included in the input image signal. A determination is made to classify the pixel into a pixel belonging to a non-zero noise region, and a pixel at a non-noise gradation change position other than the gradation flat region and the noise region, and an area signal indicating the result of the determination is generated A pixel region determination step;
Based on the above area signal, the width of the flat / noise area consisting of the gradation flat area and the noise area between the reference pixel that is the pixel at the non-noise gradation change position and the pixel at the next non-noise gradation change position A means for generating a flat / noise area width data prediction value indicating a predicted value of the flat / noise area width, and immediately before the flat / noise area width immediately before the reference pixel and detected immediately before the reference pixel. The flat noise generating the flat / noise area width data predicted value obtained by predicting the width of the flat / noise area immediately after the reference pixel based on the predicted flat / noise area width data immediately before the reference pixel. An area width determination step;
Inclination data value used to set the gradient of the gradation value of the converted data in the flat / noise region immediately after the reference pixel based on the gradation change amount and the predicted flat / noise region width data value An inclination detection step for obtaining
Using the gradation change amount and the inclination data value, a correction value of the gradation value of the input image signal corresponding to the determination result indicated by the region signal is obtained, and correction bit data corresponding to the correction value is obtained. A correction bit generation step to be generated;
A pixel value calculating step of subtracting or adding a value corresponding to the correction bit data from the gradation value to generate the output image signal composed of the converted data. Method.
時間方向及び空間方向に離散したデータで構成される入力画像信号が入力され、上記入力画像信号の階調数を拡張し且つ階調値を補正する変換処理によって生成された変換後データで構成される出力画像信号を出力する画像処理方法であって、
画像信号の空間方向の画素間の階調値の差分を階調が変化した際の階調変化量として求める階調変化量検出ステップと、
上記階調変化量に基づいて、各画素を、上記階調変化量の値が0である階調平坦領域に属する画素、上記入力画像信号に含まれるノイズ成分によって上記階調変化量の値が0でないノイズ領域に属する画素、並びに、上記階調平坦領域及び上記ノイズ領域以外の非ノイズ階調変化位置の画素のいずれかに分類する判定を行い、該判定の結果を示す領域信号を生成する画素領域判定ステップと、
上記領域信号を元に、非ノイズ階調変化位置の画素である基準画素から次の非ノイズ階調変化位置の画素までの間にある階調平坦領域及びノイズ領域からなる平坦・ノイズ領域の幅である平坦・ノイズ領域幅を示す平坦・ノイズ領域幅を測定し、平坦・ノイズ領域幅測定値を出力する平坦・ノイズ領域幅判定ステップと、
上記階調変化量と上記平坦・ノイズ領域幅測定値とに基づいて、上記基準画素の直後の平坦・ノイズ領域における上記変換後データの階調値の傾きを設定する際に用いる傾きデータ値を求める傾き検出ステップと、
上記階調変化量と上記傾きデータ値とを用いて、上記入力画像信号の階調値の補正値を求め、該補正値に対応する補正ビットデータを生成する補正ビット生成ステップと、
上記階調値に対し上記補正ビットデータに応じた値を減算又は加算して、上記変換後データで構成される上記出力画像信号を生成する画素値演算ステップと
を備えたこと特徴とする画像処理方法。
An input image signal composed of discrete data in the time direction and the spatial direction is inputted, and composed of post-conversion data generated by a conversion process that expands the number of gradations of the input image signal and corrects the gradation value. An image processing method for outputting an output image signal,
A gradation change amount detection step for obtaining a difference in gradation value between pixels in the spatial direction of the image signal as a gradation change amount when the gradation changes;
Based on the gradation change amount, the value of the gradation change amount is determined by the pixels belonging to the gradation flat region where the gradation change amount value is 0 and the noise component included in the input image signal. A determination is made to classify the pixel into a pixel belonging to a non-zero noise region, and a pixel at a non-noise gradation change position other than the gradation flat region and the noise region, and an area signal indicating the result of the determination is generated A pixel region determination step;
Based on the above area signal, the width of the flat / noise area composed of the gradation flat area and the noise area between the reference pixel that is the pixel at the non-noise gradation change position and the pixel at the next non-noise gradation change position A flat / noise area width determination step of measuring a flat / noise area width indicating a flat / noise area width and outputting a flat / noise area width measurement value;
Based on the gradation change amount and the flat / noise area width measurement value, the inclination data value used when setting the inclination of the gradation value of the converted data in the flat / noise area immediately after the reference pixel is A desired tilt detection step;
A correction bit generation step of obtaining a correction value of the gradation value of the input image signal using the gradation change amount and the inclination data value, and generating correction bit data corresponding to the correction value;
A pixel value calculating step of subtracting or adding a value corresponding to the correction bit data from the gradation value to generate the output image signal composed of the converted data. Method.
請求項1から17までのいずれか1項に記載の画像処理装置と、
上記画像処理装置から出力される階調数を拡張した上記出力画像信号に基づく画像を表示する表示手段と
を備えたことを特徴とする画像表示装置。
An image processing apparatus according to any one of claims 1 to 17,
An image display device comprising: display means for displaying an image based on the output image signal in which the number of gradations output from the image processing device is expanded.
請求項1から17までのいずれか1項に記載の画像処理装置と同じ構成を有する第1の画像処理手段と、
上記第1の画像処理手段から出力される信号に処理を施す信号処理手段と、
上記信号処理手段から出力される信号に階調変換処理を施す、請求項1から17までのいずれか1項に記載の画像処理装置と同じ構成を有する第2の画像処理手段と、
上記第2の画像処理手段から出力される階調数を拡張した画像信号に基づく画像を表示する表示手段と
を備えたことを特徴とする画像表示装置。
A first image processing unit having the same configuration as that of the image processing apparatus according to any one of claims 1 to 17,
Signal processing means for processing a signal output from the first image processing means;
A second image processing unit having the same configuration as that of the image processing apparatus according to any one of claims 1 to 17, which performs gradation conversion processing on a signal output from the signal processing unit;
An image display apparatus comprising: display means for displaying an image based on an image signal with an expanded number of gradations output from the second image processing means.
JP2009038770A 2009-02-23 2009-02-23 Image processing apparatus, image processing method, and image display apparatus Active JP5164880B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009038770A JP5164880B2 (en) 2009-02-23 2009-02-23 Image processing apparatus, image processing method, and image display apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009038770A JP5164880B2 (en) 2009-02-23 2009-02-23 Image processing apparatus, image processing method, and image display apparatus

Publications (2)

Publication Number Publication Date
JP2010199645A JP2010199645A (en) 2010-09-09
JP5164880B2 true JP5164880B2 (en) 2013-03-21

Family

ID=42823958

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009038770A Active JP5164880B2 (en) 2009-02-23 2009-02-23 Image processing apparatus, image processing method, and image display apparatus

Country Status (1)

Country Link
JP (1) JP5164880B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6245019B2 (en) * 2014-03-25 2017-12-13 株式会社Jvcケンウッド Display device
US10467730B2 (en) * 2018-03-15 2019-11-05 Sony Corporation Image-processing apparatus to reduce staircase artifacts from an image signal
CN112652261B (en) * 2019-10-12 2023-06-16 西安诺瓦星云科技股份有限公司 Display screen ash jump detection method, device and system and storage medium
US11545100B2 (en) * 2021-03-09 2023-01-03 Sharp Kabushiki Kaisha Liquid crystal display apparatus
CN116310290B (en) * 2023-05-23 2023-07-21 山东中泳电子股份有限公司 Method for correcting swimming touch pad feedback time

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08237669A (en) * 1995-02-28 1996-09-13 Sony Corp Picture signal processor, picture signal processing method and picture signal decoder
JP4674437B2 (en) * 2003-09-08 2011-04-20 ソニー株式会社 Image processing apparatus and method, program, and recording medium
JP4682866B2 (en) * 2006-02-17 2011-05-11 ソニー株式会社 Signal processing apparatus and signal processing method

Also Published As

Publication number Publication date
JP2010199645A (en) 2010-09-09

Similar Documents

Publication Publication Date Title
JP4816970B2 (en) Image processing apparatus, display apparatus, image processing method, and program
JP4577583B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP4912398B2 (en) Image processing apparatus, image processing method, program, recording medium, and integrated circuit
JP5164880B2 (en) Image processing apparatus, image processing method, and image display apparatus
JP5177142B2 (en) Image processing apparatus, display apparatus, image processing method, and program thereof
EP1073259B1 (en) Noise detector and noise detection method
JP2009044500A (en) Image display device, image processor, and image processing method
JP4918926B2 (en) Image processing apparatus, display apparatus, image processing method, and program
JP2007213460A (en) Image processing method and apparatus and image display device
JPH03212685A (en) Apparatus and method for improving resolution of display
JP2007181189A (en) Image processing device, display device, image processing method, and program
JP5159651B2 (en) Image processing apparatus, image processing method, and image display apparatus
KR100807612B1 (en) Image signal processing circuit display apparatus and image signal processing method
JP3630093B2 (en) Video data correction apparatus and video data correction method
JP5233757B2 (en) Image processing apparatus and image display apparatus
JP5024112B2 (en) Image signal processing apparatus and image signal processing program
US9008463B2 (en) Image expansion apparatus for performing interpolation processing on input image data, and image expansion method thereof
JPH0944648A (en) Image processing device and method therefor
JP4793147B2 (en) Image processing apparatus and method, program storage medium, and program
US20210192683A1 (en) Video signal processing device and video signal processing method
KR100450190B1 (en) Circuit for processing image signals and method thereof
KR100462596B1 (en) Apparatus and method for compensating false contour
KR100679744B1 (en) Error Diffusion Technique based on Gray Level Multiples for Smooth Gray Level Reproduction in Dark Areas on Plasma Display Panel
JP2013026698A (en) Video noise reducing apparatus and video noise reducing method
KR20060069190A (en) Method and device for processing image of plasma display panel

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111117

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121112

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121218

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

Free format text: PAYMENT UNTIL: 20151228

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5164880

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250