JP5293923B2 - Image processing method and apparatus, image display apparatus and program - Google Patents

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

Info

Publication number
JP5293923B2
JP5293923B2 JP2008002035A JP2008002035A JP5293923B2 JP 5293923 B2 JP5293923 B2 JP 5293923B2 JP 2008002035 A JP2008002035 A JP 2008002035A JP 2008002035 A JP2008002035 A JP 2008002035A JP 5293923 B2 JP5293923 B2 JP 5293923B2
Authority
JP
Japan
Prior art keywords
pixel
correction
pixel value
value
satisfied
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008002035A
Other languages
Japanese (ja)
Other versions
JP2009163096A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2008002035A priority Critical patent/JP5293923B2/en
Publication of JP2009163096A publication Critical patent/JP2009163096A/en
Application granted granted Critical
Publication of JP5293923B2 publication Critical patent/JP5293923B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To display an easily browsable image of enhanced contrast, by correcting an image of one pixel pitch affecting mostly display of an adjacent pixel, even in the image after resolution-conversion-processed. <P>SOLUTION: Fellow pixel values of the adjacent pixels are compared each other as to an image data, to determine the pixel (peak pixel) with the pixel value getting minimum or maximum, and the pixel value of the pixel adjacent to the peak pixel is brought close to the pixel value of the peak pixel. In concretely saying, fellow pixel values of the respective adjacent pixels are compared using each pixel of the image data as a correction-objective pixel, using the one pixel adjacent to the correction-objective pixel as the first reference pixel, using the other pixel as the third reference pixel, and using the pixel in a position with the first reference pixel with respect to the correction-objective pixel therebetween, as the second reference pixel, the propriety as the peak pixel is determined as to the first reference pixel, and the pixel value of the correction-objective pixel is brought close to the pixel value of the first reference pixel, when determined as the peak pixel. <P>COPYRIGHT: (C)2009,JPO&amp;INPIT

Description

本発明は、プロジェクタ、プロジェクションディスプレイ、ヘッドマウントディスプレイなど光学系を通して画像を表示する画像表示装置に好適な画像処理技術に関する。   The present invention relates to an image processing technique suitable for an image display apparatus that displays an image through an optical system such as a projector, a projection display, or a head mounted display.

従来、照明光を画像データに基づいて空間光変調して画像光として出射する画像表示素子を使用して、該画像表示素子から出射された画像光をスクリーンに表示する投射型画像表示装置などでは、画像表示素子では画素ごとに明確に区切られた範囲で各画素の表示が行われるが、それをスクリーンに拡大投射するためには各種の光学系を通して投射することが必要となる。しかし、レンズやフィルタなどの各種光学的な部品を通すごとに収差が発生し、それにより本来の画素の表示範囲外の隣接する画素にまで影響を与えることになってしまう。また画像表示素子への光源からの光の特性や、画像表示素子の光源からの光を受けて画像光を出す特性によっても、本来の画素の表示範囲外の隣接する画素にまで影響を与えることが発生することがある。隣接画素への影響が非常に狭い範囲に限定される場合には、画像表示素子の画素間にブラックマトリックスを設けることにより、その影響を防止することができるが、ブラックマトリックスにより光の利用効率が低下してしまう。この光の利用効率の低下は、影響する範囲が広くなるほど無視できないものとなることから、大きな範囲のブラックマトリックスは使用することは現実的ではなく、影響範囲が狭い場合にしか用いることができない。   2. Description of the Related Art Conventionally, in a projection type image display device or the like that uses an image display element that spatially modulates illumination light based on image data and emits the image light as image light, and displays the image light emitted from the image display element on a screen. In the image display element, each pixel is displayed in a range clearly divided for each pixel. In order to enlarge and project it on the screen, it is necessary to project through various optical systems. However, each time an optical component such as a lens or a filter is passed through, aberration is generated, thereby affecting adjacent pixels outside the original pixel display range. In addition, the characteristics of the light from the light source to the image display element and the characteristics of emitting the image light by receiving the light from the light source of the image display element also affect adjacent pixels outside the display range of the original pixel. May occur. In the case where the influence on adjacent pixels is limited to a very narrow range, the influence can be prevented by providing a black matrix between the pixels of the image display element. It will decline. This reduction in the light use efficiency cannot be ignored as the affected range becomes wider. Therefore, it is not practical to use a large black matrix, and it can be used only when the affected range is narrow.

このような場合に従来では、エッジや細部などの高周波数成分を強調するエッジ強調処理を行っていた。しかし、この方法では画素プロファイルによる影響の違いに対応することができず、改善効果は限定的であり、処理の程度が大きくなると、逆に画質を劣化させてしまう場合が発生する。また、特許文献1においては、文字などの無彩色部分を判定する手段を備えて、無彩色部分をエッジ強調処理することにより、画像を鮮明にすることが行われている。しかし、全画面で画像のボケにより周辺画素の画素値の影響を受けるような場合には、全体がボケることになることから、特定の文字などの部分だけのエッジ強調では効果が少ないか全くない場合が多くなり、画質改善効果は限定的となってしまう。   In such a case, conventionally, edge enhancement processing for enhancing high frequency components such as edges and details has been performed. However, this method cannot cope with the difference in influence due to the pixel profile, and the improvement effect is limited. If the degree of processing increases, the image quality may be deteriorated. Further, in Patent Document 1, an image is sharpened by providing means for determining an achromatic color portion such as a character and performing edge enhancement processing on the achromatic color portion. However, when the image is blurred on the entire screen and affected by the pixel values of the surrounding pixels, the entire image will be blurred. In many cases, the image quality improvement effect is limited.

また、従来、特許文献2に記載のように、1フレームの画像データを複数のサブフレームの画像データに分割して、画素ずらしを行い、時分割して表示することで、画像表示素子の解像度以上の表示を実現する投射型画像表示装置が知られているが、この種の画像表示装置では、元の画素の表示範囲が表示解像度の画素の表示範囲より大きい場合には、他の画素の表示により影響を与えてしまい、画像のボケやにじみ、コントラストの低下などを発生させていた。図36は、縦横1/2ピッチ画素ずらしを行い、各々2倍の解像度の表示を行う例であり、表示する画素の大きさは丸印1の四角の範囲であるが、画像表示素子の一画素が表示する範囲は網掛けで示したaの範囲であることから、周囲の画素の表示により大きな影響を与えてしまい、画像のボケやにじみ、コントラストの低下などが発生する。このため、特許文献1では、画像表示素子の液晶セルから出射した光が投射光学系の光軸に対して平行になるような、液晶レンズアレイの特性が凸レンズの場合には、その光路を平行光にもどすような凹レンズアレイとするような光学素子を設けることで、元の画素の表示範囲が表示解像度の画素の表示範囲と合うようにすることを行っているが、全体の液晶の特性を合わせる正確な制御と、光学素子の設置が難しく、高コストなものとなってしまう。   Conventionally, as described in Patent Document 2, one frame of image data is divided into a plurality of subframes of image data, pixel shift is performed, and time-division display is performed. A projection-type image display device that realizes the above display is known. In this type of image display device, when the display range of the original pixel is larger than the display range of the pixel of the display resolution, The display has an effect, causing blurring and blurring of the image and a decrease in contrast. FIG. 36 shows an example in which vertical and horizontal ½ pitch pixel shifts are performed, and each display is performed at double resolution. The size of the pixels to be displayed is within the square range of the circle 1, but one of the image display elements. Since the range displayed by the pixels is the range a indicated by shading, the display of the surrounding pixels is greatly affected, and blurring and blurring of the image, a decrease in contrast, and the like occur. For this reason, in Patent Document 1, when the characteristic of the liquid crystal lens array is a convex lens such that the light emitted from the liquid crystal cell of the image display element is parallel to the optical axis of the projection optical system, the optical path is parallel. By providing an optical element that forms a concave lens array that returns light, the display range of the original pixel matches the display range of the pixel with the display resolution. Accurate control to match and installation of optical elements is difficult and expensive.

特許第2954230号公報Japanese Patent No. 2954230 特開2003−228072号公報JP 2003-228072 A

上記のような問題を解決するため、本出願人は、先に特願2007−128235号において、画像のボケによるコントラストの低下などの影響が大きい1画素幅の画像を判別し、その周囲の画素の値を1画素幅の画像に近付けて補正することによりコントラストの低下などの影響を低減し、見易い画像を表示する方法を提案したが、その判別方法では、解像度変換により高解像度化した画像などでは、補正したい1画素幅の画像が2画素以上の幅になってしまい判別することができず、補正処理を行うことができない問題があった。そのため、コントラストの低下などの影響を低減できず、見易い画像を表示することができなかった。   In order to solve the above problems, the present applicant previously identified an image having a width of one pixel having a large influence such as a decrease in contrast due to image blur in Japanese Patent Application No. 2007-128235, and the surrounding pixels. We proposed a method to reduce the influence of contrast reduction by correcting the value close to that of an image with a width of 1 pixel and display an easy-to-view image. However, there is a problem that an image having a width of one pixel to be corrected becomes two or more pixels and cannot be determined, and correction processing cannot be performed. For this reason, the influence such as a decrease in contrast cannot be reduced, and an easy-to-view image cannot be displayed.

本発明は、画像のボケによるコントラストの低下などの影響が大きい、特に細線などの周囲の画素値を解像度変換による高解像度化した後の画像においても補正し、細線などへの影響を軽減して本来の表示に近付け、より見易い画像を表示するための画像処理方法及び装置、画像表示装置並びにプログラムを提供することを目的とする。   The present invention has a large effect of contrast reduction due to blurring of the image, and particularly corrects the surrounding pixel values such as fine lines even in an image after increasing the resolution by resolution conversion, thereby reducing the influence on the fine lines and the like. An object is to provide an image processing method and apparatus, an image display apparatus, and a program for displaying an image that is closer to the original display and easier to see.

詳しくは、本発明は、光学系を通して画像を表示する投射型画像表示装置、特に1フレームの画像データを複数のサブフレームの画像データに分割し、画素ずらしを行い時分割して表示することで、表示素子の解像度以上の表示を実現する投射型画像表示装置など、隣接する画素が他の画素の表示に影響を及ぼす画像表示装置に適した画像処理方法及び装置等を提供することを目的とする。   More specifically, the present invention relates to a projection-type image display device that displays an image through an optical system, in particular, by dividing one frame of image data into a plurality of sub-frame image data, shifting the pixels, and displaying them in a time-division manner. An object of the present invention is to provide an image processing method and apparatus suitable for an image display device in which adjacent pixels affect the display of other pixels, such as a projection-type image display device that realizes display at a resolution higher than that of the display element. To do.

本発明では、解像度変換された画像データなどについて、隣接する画素どうしの画素値を比較して、画素値が極小あるいは極大となる画素(以下、ピーク画素)を判定し、ピーク画素に隣接する画素の画素値を該ピーク画素の画素値に近付けるように補正する。   In the present invention, pixel values of adjacent pixels are compared for resolution-converted image data, etc., a pixel having a minimum or maximum pixel value (hereinafter referred to as a peak pixel) is determined, and a pixel adjacent to the peak pixel Is corrected so as to approach the pixel value of the peak pixel.

より詳しくは、入力された画像データの各画素を補正対象画素とし、補正対象画素に隣接する一方の画素を第1の参照画素、他方の画素を第3の参照画素、補正対象画素から第1の参照画素を挟んだ位置に位置する画素を第2の参照画素として、第1の参照画素と補正対象画素、補正対象画素と第3の参照画素、及び第1の参照画素と第2の参照画素の画素値を比較して、第1の参照画素がピーク画素とになるか判定し、ピーク画素と判定された場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する。   More specifically, each pixel of the input image data is a correction target pixel, one pixel adjacent to the correction target pixel is a first reference pixel, the other pixel is a third reference pixel, and the correction target pixel is a first pixel. The pixel located at a position sandwiching the reference pixel is the second reference pixel, the first reference pixel and the correction target pixel, the correction target pixel and the third reference pixel, and the first reference pixel and the second reference pixel The pixel values of the pixels are compared to determine whether the first reference pixel is a peak pixel, and when it is determined to be a peak pixel, the pixel value of the correction target pixel is brought close to the pixel value of the first reference pixel Correct as follows.

ある実施形態では、少なくとも一方向に対して第1の参照画素の画素値が補正対象画素の画素値未満であり、第3の参照画素が補正対象画素の画素値以上であり、かつ、第1の参照画素の画素値が第2の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する。   In one embodiment, the pixel value of the first reference pixel is less than the pixel value of the correction target pixel in at least one direction, the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and the first When the correction condition that the pixel value of the reference pixel is less than the pixel value of the second reference pixel is satisfied, the correction is performed so that the pixel value of the correction target pixel approaches the pixel value of the first reference pixel.

画像データの各画素が複数の原色成分(以下、色成分)で構成されている場合には、全ての色成分にて第3の参照画素が補正対象画素の画素値以上であり、第1の参照画素の画素値が第2の参照画素の画素値未満であり、かつ、少なくとも一つの色成分にて第1の参照画素の画素値が補正対象画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する。   When each pixel of the image data is composed of a plurality of primary color components (hereinafter referred to as color components), the third reference pixel is greater than or equal to the pixel value of the correction target pixel in all color components, and the first When the pixel value of the reference pixel is less than the pixel value of the second reference pixel and the correction condition is satisfied that the pixel value of the first reference pixel is less than the pixel value of the correction target pixel in at least one color component In addition, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel.

別の実施形態では、少なくとも一方向に対して補正対象画素の画素値が第1の参照画素の画素値未満であり、第3の参照画素が補正対象画素の画素値以下であり、かつ、第2の参照画素の画素値が第1の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する。   In another embodiment, the pixel value of the correction target pixel is less than the pixel value of the first reference pixel in at least one direction, the third reference pixel is less than or equal to the pixel value of the correction target pixel, and the first When the correction condition that the pixel value of the second reference pixel is less than the pixel value of the first reference pixel is satisfied, the correction is performed so that the pixel value of the correction target pixel approaches the pixel value of the first reference pixel.

画像データの各画素が複数の原色成分(以下、色成分)で構成されている場合には、全ての色成分にて第3の参照画素が補正対象画素の画素値以下であり、第2の参照画素の画素値が第1の参照画素の画素値未満であり、かつ、少なくとも一つの色成分にて補正対象画素の画素値が第1の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する。   When each pixel of the image data is composed of a plurality of primary color components (hereinafter, color components), the third reference pixel is equal to or less than the pixel value of the correction target pixel in all color components, and the second When the pixel value of the reference pixel is less than the pixel value of the first reference pixel and the correction condition that the pixel value of the correction target pixel is less than the pixel value of the first reference pixel in at least one color component is satisfied. In addition, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel.

さらに別の実施形態では、少なくとも一方向に対して、第1の参照画素の画素値が補正対象画素の画素値未満で、第3の参照画素が補正対象画素の画素値以上で、かつ、第1の参照画素の画素値が第2の参照画素の画素値未満であるか、補正対象画素の画素値が第1の参照画素の画素値未満で、第3の参照画素が補正対象画素の画素値以下で、かつ、第2の参照画素の画素値が第1の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する。   In yet another embodiment, in at least one direction, the pixel value of the first reference pixel is less than the pixel value of the correction target pixel, the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and The pixel value of one reference pixel is less than the pixel value of the second reference pixel, or the pixel value of the correction target pixel is less than the pixel value of the first reference pixel, and the third reference pixel is a pixel of the correction target pixel The pixel value of the correction target pixel is brought close to the pixel value of the first reference pixel when the correction condition is less than the value and the pixel value of the second reference pixel is less than the pixel value of the first reference pixel. Correct as follows.

画像データの各画素が複数の原色成分(以下、色成分)で構成されたてる場合には、全ての色成分にて第3の参照画素が補正対象画素の画素値以上で、第1の参照画素の画素値が第2の参照画素の画素値未満で、かつ、少なくとも一つの色成分にて第1の参照画素の画素値が補正対象画素の画素値未満であるか、全ての色成分にて第3の参照画素が補正対象画素の画素値以下で、第2の参照画素の画素値が第1の参照画素の画素値未満で、かつ、少なくとも一つの色成分にて補正対象画素の画素値が第1の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する。   If each pixel of the image data is composed of a plurality of primary color components (hereinafter referred to as color components), the third reference pixel is equal to or greater than the pixel value of the correction target pixel in all color components, and the first reference The pixel value of the pixel is less than the pixel value of the second reference pixel, and the pixel value of the first reference pixel is less than the pixel value of the correction target pixel in at least one color component, or all the color components The third reference pixel is equal to or smaller than the pixel value of the correction target pixel, the pixel value of the second reference pixel is less than the pixel value of the first reference pixel, and the pixel of the correction target pixel is at least one color component. When the correction condition that the value is less than the pixel value of the first reference pixel is satisfied, the correction is performed so that the pixel value of the correction target pixel approaches the pixel value of the first reference pixel.

また、複数の方向にて補正条件を満たした場合、補正対象画素の画素値と第1の参照画素の画素値との差が小さい方向の第1の参照画素の画素値に基づいて補正対象画素の画素値を補正する。   Further, when the correction conditions are satisfied in a plurality of directions, the correction target pixel is based on the pixel value of the first reference pixel in the direction in which the difference between the pixel value of the correction target pixel and the pixel value of the first reference pixel is small. The pixel value of is corrected.

また、複数の方向にて補正条件を満たした場合、補正対象画素の画素値と第1の参照画素の画素値との差が大きい方向の第1の参照画素の画素値に基づいて補正対象画素の画素値を補正する。   Further, when the correction conditions are satisfied in a plurality of directions, the correction target pixel is based on the pixel value of the first reference pixel in the direction in which the difference between the pixel value of the correction target pixel and the pixel value of the first reference pixel is large. The pixel value of is corrected.

また、複数の方向にて補正条件を満たした場合、満たした方向の組み合わせにより、予め定めた方向の第1の参照画素の画素値に基づいて補正対象画素の画素値を補正する。   Further, when the correction conditions are satisfied in a plurality of directions, the pixel value of the correction target pixel is corrected based on the pixel value of the first reference pixel in the predetermined direction by a combination of the satisfied directions.

具体的には、補正対象画素の画素値から第1の参照画素の画素値を引いた値に1以下の定数を掛けた値を補正値とし、補正対象画素の画素値から補正値だけ引くことで、補正対象画素の画素値を補正する。   Specifically, a value obtained by subtracting the pixel value of the first reference pixel from the pixel value of the correction target pixel and a constant of 1 or less is used as the correction value, and the correction value is subtracted from the pixel value of the correction target pixel. Thus, the pixel value of the correction target pixel is corrected.

また、複数の方向にて補正条件を満たした場合、満たした複数の方向の第1の参照画素の各画素値の中間の値に基づいて補正対象画素の画素値を補正する。   Further, when the correction conditions are satisfied in a plurality of directions, the pixel value of the correction target pixel is corrected based on an intermediate value of the pixel values of the first reference pixels in the plurality of satisfied directions.

具体的には、補正対象画素の画素値から中間の値を引いた値に1以下の定数を掛けた値を補正値とし、補正対象画素の画素値から前記補正値だけ引くことで、補正対象画素の画素値を補正する。   Specifically, a value obtained by subtracting an intermediate value from the pixel value of the correction target pixel is multiplied by a constant equal to or less than 1, and the correction value is subtracted from the pixel value of the correction target pixel by the correction value. The pixel value of the pixel is corrected.

本発明によれば、画像のボケによるコントラストの低下などの影響が大きい、特に細線などの周囲の画素値を解像度変換により高解像度化した後の画像においても、細線などの鮮明な画像を得ることができ、本来の表示に近付け、より見易い画像を表示することができる。特に隣接する画素が他の画素の表示に影響を及ぼす画像表示装置に適用して効果が大である。   According to the present invention, it is possible to obtain a clear image such as a fine line even in an image that is greatly affected by a decrease in contrast due to blurring of the image, especially in an image after surrounding pixel values such as a fine line are increased in resolution by resolution conversion. It is possible to display an image that is closer to the original display and easier to view. The effect is particularly great when applied to an image display device in which adjacent pixels affect the display of other pixels.

一実施形態では、少なくとも一方向に対して第1の参照画素の画素値が補正対象画素の画素値未満であり、第3の参照画素が補正対象画素の画素値以上であり、かつ、第1の参照画素の画素値が第2の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正することで、明るい補正対象画素の暗い隣接画素表示への影響による浮き上がりを押さえ、コントラストが向上した見易い画像を表示することができる。   In one embodiment, the pixel value of the first reference pixel is less than the pixel value of the correction target pixel in at least one direction, the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and the first When the correction condition that the pixel value of the reference pixel is less than the pixel value of the second reference pixel is satisfied, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel. An easy-to-view image with improved contrast can be displayed by suppressing the rising due to the influence of the correction target pixel on the dark adjacent pixel display.

画像データの各画素が複数の原色成分(以下、色成分)で構成されている場合には、全ての色成分にて第3の参照画素が前記補正対象画素の画素値以上であり、第1の参照画素の画素値が第2の参照画素の画素値未満であり、かつ、少なくとも一つの色成分にて前記第1の参照画素の画素値が補正対象画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正することで、明るい補正対象画素の暗い隣接画素表示への影響による浮き上がりを押さえ、色バランスがとれ、コントラストが向上した見易い画像を表示することができる。   When each pixel of the image data is composed of a plurality of primary color components (hereinafter referred to as color components), the third reference pixel is greater than or equal to the pixel value of the correction target pixel in all color components, and the first A correction condition in which the pixel value of the reference pixel is less than the pixel value of the second reference pixel and the pixel value of the first reference pixel is less than the pixel value of the correction target pixel in at least one color component When it satisfies, by correcting the pixel value of the correction target pixel so as to be close to the pixel value of the first reference pixel, the floating due to the influence of the bright correction target pixel on the dark adjacent pixel display is suppressed, and the color balance is achieved. An easy-to-view image with improved contrast can be displayed.

別の実施形態では、少なくとも一方向に対して補正対象画素の画素値が第1の参照画素の画素値未満であり、第3の参照画素が前記補正対象画素の画素値以下であり、かつ、第2の参照画素の画素値が第1の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正することで、暗い補正対象画素の明るい隣接画素表示への影響による沈み込みを押さえ、コントラストが向上した見易い画像を表示することができる。   In another embodiment, the pixel value of the correction target pixel is less than the pixel value of the first reference pixel in at least one direction, the third reference pixel is less than or equal to the pixel value of the correction target pixel, and When the correction condition that the pixel value of the second reference pixel is less than the pixel value of the first reference pixel is satisfied, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel. In addition, it is possible to display an easy-to-view image with improved contrast by suppressing sinking due to the influence of the dark correction target pixel on the bright adjacent pixel display.

画像データの各画素が複数の原色成分(以下、色成分)で構成されている場合には、全ての色成分にて第3の参照画素が補正対象画素の画素値以下であり、第2の参照画素の画素値が第1の参照画素の画素値未満であり、かつ、少なくとも一つの色成分にて補正対象画素の画素値が第1の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正することで、暗い隣接画素の明るい補正画素表示への影響による沈み込みを押さえ、色バランスがとれ、コントラストが向上した見易い画像を表示することができる。   When each pixel of the image data is composed of a plurality of primary color components (hereinafter, color components), the third reference pixel is equal to or less than the pixel value of the correction target pixel in all color components, and the second When the pixel value of the reference pixel is less than the pixel value of the first reference pixel and the correction condition that the pixel value of the correction target pixel is less than the pixel value of the first reference pixel in at least one color component is satisfied. In addition, by correcting the pixel value of the correction target pixel so as to be close to the pixel value of the first reference pixel, subsidence due to the influence of the dark adjacent pixel on the bright correction pixel display is suppressed, color balance is achieved, and contrast is increased. An improved easy-to-view image can be displayed.

なお、本発明の上記以外の種々の実施形態における効果については、後の実施形態の説明で述べることにする。   The effects of various embodiments other than those described above will be described later in the description of the embodiments.

図1は本発明が適用される画像表示装置の一実施形態のブロック図を示す。入力画像データ(例えば、解像度変換された画像データ)は、画素、ライン、フレーム等の単位で一旦、入力画像データ記憶部10に格納され、順次、画像処理部20に送られる。画像処理部20は機能的に補正条件判定部22と補正式選択部24と画素補正処理部26とに分かれる。なお、補正式選択部24は、後述するように実施形態によっては不使用となる。   FIG. 1 shows a block diagram of an embodiment of an image display apparatus to which the present invention is applied. Input image data (for example, image data subjected to resolution conversion) is temporarily stored in the input image data storage unit 10 in units of pixels, lines, frames, and the like, and sequentially sent to the image processing unit 20. The image processing unit 20 is functionally divided into a correction condition determination unit 22, a correction formula selection unit 24, and a pixel correction processing unit 26. The correction formula selection unit 24 is not used in some embodiments as described later.

補正条件判定部22は、入力画像データ記憶部10から送られてくる入力画像データについて、各画素毎に、当該画素を補正対象画素として、水平方向や垂直方向(一般には、少なくとも一方向)の隣接する所定の画素を参照画素として、所定の補正条件を満たすか否か判定する。補正式選択部24を使用しない場合、画素補正処理部26は、補正条件判定部22の判定結果をもとに、入力画像データの各画素(補正対象画素)について、順次、補正条件を満たす場合は所定の補正式にて補正処理を行い、満たさない場合はそのままとして、出力画像データを生成する。   The correction condition determination unit 22 uses the input image data sent from the input image data storage unit 10 for each pixel as a correction target pixel in the horizontal direction or the vertical direction (generally at least in one direction). It is determined whether or not a predetermined correction condition is satisfied using an adjacent predetermined pixel as a reference pixel. When the correction formula selection unit 24 is not used, the pixel correction processing unit 26 sequentially satisfies the correction condition for each pixel (correction target pixel) of the input image data based on the determination result of the correction condition determination unit 22. Performs a correction process using a predetermined correction formula, and if not satisfied, outputs the image data as it is.

一方、補正式選択部24は、補正条件判定部22の判定結果をもとに補正式を選択するもので、水平と垂直の両方向(一般には複数方向)にて補正条件を満たした場合、あらかじめ定めたいずれかの方向の補正式あるいは別の第3の補正式等を選択する。この補正式選択部24を使用した場合、画素補正処理部26は、補正対象画素について、補正式選択部24で選択された補正式にて補正処理を行う。   On the other hand, the correction formula selection unit 24 selects a correction formula based on the determination result of the correction condition determination unit 22, and when the correction condition is satisfied in both the horizontal and vertical directions (generally a plurality of directions), A correction formula in one of the determined directions or another third correction formula is selected. When this correction formula selection unit 24 is used, the pixel correction processing unit 26 performs correction processing on the correction target pixel using the correction formula selected by the correction formula selection unit 24.

出力画像データは、出力画像データ記憶部30に格納された後、投射型画像表示装置などの表示部40に送られて表示される。表示部40には、例えば、特許文献2に記載のように、1フレームの画像データを複数のサブフレームの画像データに分割し、時分割で画像表示素子の解像度以上の表示を実現する表示装置等が使用される。   The output image data is stored in the output image data storage unit 30, and then sent to and displayed on a display unit 40 such as a projection type image display device. For example, as disclosed in Patent Document 2, the display unit 40 divides one frame of image data into a plurality of subframes of image data, and realizes display in a time division manner that is higher than the resolution of the image display element. Etc. are used.

なお、図1の画像表示装置は一般にコンピュータ装置で構成され、画像処理部20はCPUとプログラム等に基づき、補正条件判定部22と画素補正処理部26の機能、あるいは、補正条件判定部22と補正式選択部24と画素補正処理部26の機能を一緒に処理する。本発明の画像処理方法は、この画像処理部20の処理アルゴリズムに関するが、その種々の実施例については後述する。   The image display apparatus of FIG. 1 is generally configured by a computer device, and the image processing unit 20 is based on a CPU, a program, and the like, functions of the correction condition determination unit 22 and the pixel correction processing unit 26, or the correction condition determination unit 22 The functions of the correction formula selection unit 24 and the pixel correction processing unit 26 are processed together. The image processing method of the present invention relates to the processing algorithm of the image processing unit 20, and various embodiments thereof will be described later.

図2は後述の実施例で用いられる補正対象画素と参照画素の位置関係を示した図である。図中、C3が補正対象画素、A3とB3とD3とE3が垂直方向の参照画素、C1とC2とC4とC5が水平方向の参照画素である。後述するように、水平方向に対してはC1〜C4あるいはC2〜C5により補正条件が判定され、垂直方向に対してはA3〜D3あるいはB3〜E3により補正条件が判定される。   FIG. 2 is a diagram showing a positional relationship between a correction target pixel and a reference pixel used in an embodiment described later. In the figure, C3 is a correction target pixel, A3, B3, D3, and E3 are vertical reference pixels, and C1, C2, C4, and C5 are horizontal reference pixels. As will be described later, correction conditions are determined by C1-C4 or C2-C5 for the horizontal direction, and correction conditions are determined by A3-D3 or B3-E3 for the vertical direction.

一般的な投射型画像表示装置などでは、画像表示素子では画素ごとに明確に区切られた範囲で各画素の表示されるが、その後に光学系を通すことにより、画素の表示される範囲が広がり、他の画素の範囲にまで影響を与え、画像にボケが発生し、画質が劣化することがある。特に表示される1フレームの画像データを複数のサブフレームの画像データに分割し、時分割で表示素子の解像度以上の表示を実現する投射型画像表示装置では、元の画素の表示範囲が表示解像度の画素の表示範囲より大きいことが大半であり、これにより各々の画素が隣接した画素の影響を受けることとなり、画像にボケが発生して画質が劣化する。このときに1画素幅の画像が一番影響を受けてしまう。   In a general projection-type image display device or the like, each pixel is displayed in a clearly delimited range for each pixel on the image display element, but the range in which the pixel is displayed is expanded by passing through an optical system thereafter. This may affect the range of other pixels, causing blurring in the image and degrading the image quality. In particular, in a projection-type image display device that divides image data of one frame to be displayed into image data of a plurality of sub-frames and realizes display that is higher than the resolution of the display element by time division, the display range of the original pixel is the display resolution In most cases, each pixel is affected by the adjacent pixels, resulting in blurring in the image and image quality degradation. At this time, an image having a width of one pixel is most affected.

ここでは、水平方向に対して浮き上がりを補正する場合を例に本発明の原理を説明する。図3は補正対象画素C3とその水平方向の参照画素C1,C2,C4,C5の補正処理前後における表示状態の一例を示す。ここで、(a)、(b)と(c)は解像度変換を行った画
像を想定し、(d)は解像度変換していない画像を想定している。
Here, the principle of the present invention will be described by taking as an example the case of correcting floating in the horizontal direction. FIG. 3 shows an example of the display state before and after the correction processing of the correction target pixel C3 and the horizontal reference pixels C1, C2, C4, and C5. Here, (a), (b), and (c) assume an image that has undergone resolution conversion, and (d) assumes an image that has not undergone resolution conversion.

1画素幅の黒線の場合、解像度変換を行い高解像度化した画像の1画素幅の線は、図3(a)のように2画素幅以上にわたって、その線を表現することとなる。そこで、解像度変換を行ったときの特徴である画素値の傾きに注目し、例えば、C1〜C4により、図3(a)のように補正対象画素(補間画素)C3と参照画素C1に挟まれた参照画素C2が谷底(極小)となるような場合を1画素幅の画像(黒線)と判断して、その周囲にあると判断される補正対象画素(補間画素)C3の画素値を参照画素C2の画素値に近付ける補正を行う(画素値を下げる)。同様に、C2〜C5により、図3(b)のように、補正対象画素C3と参照画素C5に挟まれた参照画素C4が谷底となるような場合を1画素幅の画像と判断して、補正対象画素C3の画素値を参照画素C4の画素値に近付ける補正を行う(画素値を下げる)。これによりボケによるコントラストの低下が軽減する。図3(c)の場合は2画素以上と判断し、補正対象画素C3の画素値はそのままとする(補正しない)。また、図3(d)のような解像度変換していない画像でも、(a)と同様の補正処理を行うこととする。これにより黒線を強調することができる。なお、同様にして垂直方向に対して浮き上がりを補正することができる。   In the case of a black line having a width of 1 pixel, a line having a width of 1 pixel in an image that has been subjected to resolution conversion and increased in resolution represents the line over a width of 2 pixels or more as shown in FIG. Therefore, paying attention to the gradient of the pixel value, which is a feature when resolution conversion is performed, for example, between C1 to C4, the pixel to be corrected (interpolated pixel) C3 and the reference pixel C1 are sandwiched as shown in FIG. The case where the reference pixel C2 becomes a valley bottom (minimum) is determined as an image (black line) having a width of one pixel, and the pixel value of the correction target pixel (interpolation pixel) C3 determined to be therearound is referred to. Correction that approaches the pixel value of the pixel C2 is performed (lowering the pixel value). Similarly, a case where the reference pixel C4 sandwiched between the correction target pixel C3 and the reference pixel C5 is a valley bottom as shown in FIG. Correction is performed so that the pixel value of the correction target pixel C3 approaches the pixel value of the reference pixel C4 (lowering the pixel value). This reduces the decrease in contrast due to blur. In the case of FIG. 3C, it is determined that there are two or more pixels, and the pixel value of the correction target pixel C3 is left as it is (not corrected). In addition, the same correction process as in (a) is performed even for an image that has not undergone resolution conversion as shown in FIG. Thereby, the black line can be emphasized. Similarly, the floating can be corrected with respect to the vertical direction.

本発明は、上記したような画像の浮き上がりを補正する場合に限らない。逆に極大となるような場合を1画素幅の画像(白線)と判断して、画像の沈みこみを補正することも可能である。また、浮き上がりと沈み込みを同時に補正することも可能である。また、単色、カラーのいずれの画像にも適用することができる。以下、本発明の種々の実施例について詳述する。   The present invention is not limited to the case of correcting the image floating as described above. On the contrary, it is possible to correct the sinking of the image by determining that the maximum value is an image of one pixel width (white line). It is also possible to correct ups and downs simultaneously. Further, it can be applied to both monochromatic and color images. Hereinafter, various embodiments of the present invention will be described in detail.

表示面上で隣接する画素どうしが互いに影響を及ぼすことにより、本来表示しようとする画素値との乖離が発生し、これによりコントラストの低下が発生する。この隣接画素の表示への影響を最も受ける一画素ピッチの画像を補正する。   The adjacent pixels on the display surface affect each other, thereby causing a deviation from the pixel value to be originally displayed, thereby causing a decrease in contrast. An image of one pixel pitch that is most affected by the display of the adjacent pixels is corrected.

本実施例は、各表示画素が単色で構成された画像において、所定の条件が満たされた場合、補正対象画素の画素値を下げることで、明るい補正対象画素の暗い隣接画素の表示への影響による画像(単色黒)の浮き上がりを押へて、コントラストが向上した見易い画像を表示するものである。   In the present embodiment, when a predetermined condition is satisfied in an image in which each display pixel is composed of a single color, the pixel value of the correction target pixel is lowered, thereby affecting the display of the dark adjacent pixel of the bright correction target pixel. The image (monochromatic black) is lifted by the above-described image, and an easy-to-see image with improved contrast is displayed.

図4乃至図8に本実施例の処理フローチャートを示す。処理は図1の画像処理部20が司る。なお、図7と図8が補正式選択部24も使用する例である。以下、各処理フローチャートについて説明する。   4 to 8 show processing flowcharts of the present embodiment. The image processing unit 20 in FIG. 7 and 8 are examples in which the correction formula selection unit 24 is also used. Hereinafter, each processing flowchart will be described.

図4は、各表示画素が単色で構成された画像において、隣接画素の表示への影響を最も受ける一画素ピッチの画像を補正するため、水平または垂直方向に対して補正対象画素に隣接する一方の画素を第1の参照画素、他方の画素を第3の参照画素、補正対象画素から第1の参照画素を挟んだ位置に位置する画素を第2の参照画素としたとき、少なくとも水平または垂直方向に対して第1の参照画素の画素値が補正対象画素の画素値未満であり、第3の参照画素の画素値が補正対象画素の画素値以上であり、かつ第1の参照画素の画素値が第2の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する(画素値を下げる)ものである。なお、図3はこの場合を示したものである。   FIG. 4 shows an example in which each display pixel is composed of a single color and is adjacent to the correction target pixel in the horizontal or vertical direction in order to correct an image of one pixel pitch that is most affected by the display of adjacent pixels. When the first pixel is the first reference pixel, the other pixel is the third reference pixel, and the pixel located at the position sandwiching the first reference pixel from the correction target pixel is the second reference pixel, at least horizontal or vertical The pixel value of the first reference pixel is less than the pixel value of the correction target pixel with respect to the direction, the pixel value of the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and the pixel of the first reference pixel When the correction condition that the value is less than the pixel value of the second reference pixel is satisfied, the pixel value of the correction target pixel is corrected so as to approach the pixel value of the first reference pixel (the pixel value is lowered). . FIG. 3 shows this case.

図4の処理フローにおける各方向の補正条件と補正式との対応関係をまとめると表1のようになる。   Table 1 summarizes the correspondence between the correction conditions and the correction equations in each direction in the processing flow of FIG.

Figure 0005293923
Figure 0005293923

ここで、C1,C2,C3,C4,C5,A3,B3,D3,E3は図2に示した通りであり、C3が補正対象画素である。aとbが水平方向の補正条件と補正式、cとdが垂直方向の補正条件と補正式の対応関係を示し、それぞれ左側の補正条件が満たした場合、対応する右側の補正式を適用して補正対象画素c3の画素値を第1の参照画素(C2,C4,B3又はD3)の画素値を近付ける(画素値を下げる)。なお、補正式のZは補正割合を決めるもので、0<Z<1の範囲をとる(例えば、Z=0.25)。
このような補正条件とすることで、解像度変換を行った画像における周囲より暗い一画素ピッチの画像のピーク(例えば黒線)を判定することができる。
Here, C1, C2, C3, C4, C5, A3, B3, D3, and E3 are as shown in FIG. 2, and C3 is a correction target pixel. a and b are horizontal correction conditions and correction equations, and c and d are vertical correction conditions and correction equations. When the left correction conditions are satisfied, the corresponding right correction equations are applied. Thus, the pixel value of the correction target pixel c3 is brought closer to the pixel value of the first reference pixel (C2, C4, B3, or D3) (the pixel value is lowered). Note that Z in the correction formula determines the correction ratio and takes a range of 0 <Z <1 (for example, Z = 0.25).
By setting such a correction condition, it is possible to determine a peak (for example, a black line) of an image having a pixel pitch that is darker than the surroundings in an image subjected to resolution conversion.

図4の処理フローでは、入力画像データの各画素毎に、該画素を補正対象画素C3として、表1のa〜dの順番で左側の補正条件を満たすか判定し、満たした場合、その時点で右側の補正式を演算して補正対象画素C3の画素値を補正する(画素値を下げる)。また、a〜dの全ての補正条件が満たさない場合には、補正対象画素C3について補正処理を行わない(C3=C3)。これを入力画像データがなくなるまで繰り返す。   In the processing flow of FIG. 4, for each pixel of the input image data, it is determined whether or not the left correction condition is satisfied in the order of “a” to “d” in Table 1 as the correction target pixel C3. The right correction equation is calculated to correct the pixel value of the correction target pixel C3 (lower the pixel value). When all the correction conditions a to d are not satisfied, the correction process is not performed on the correction target pixel C3 (C3 = C3). This is repeated until there is no input image data.

なお、図4の処理フローチャートはあくまでも一例であり、処理の順番(図4では水平方向優先)や補正処理を行う式は図に示したものに限るものでなく、所定の条件が満たされた場合に、他の画素表示の影響を軽減できる処理であればよい。これは、以降の処理フローチャートについても同様である。以下、図4の処理フローについて詳述する。   Note that the processing flowchart of FIG. 4 is merely an example, and the order of processing (horizontal priority in FIG. 4) and the formula for performing correction processing are not limited to those shown in the figure, and when a predetermined condition is satisfied In addition, any process that can reduce the influence of other pixel displays may be used. The same applies to the subsequent processing flowcharts. Hereinafter, the processing flow of FIG. 4 will be described in detail.

水平方向の画素C1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表1のaの左側の補正条件を満たすか判定し(ステップ101〜103)、満たした場合、右側の補正式を演算して(ステップ104)、補正対象画素C3の画素値を参照画素C2の画素値に近付ける(画素値を下げる)。表1のaの補正条件が満たさない場合、水平方向の画素C2〜C5(第1参照画素;C4、第2参照画素;C5、第3参照画素;C2)により、表1のbの左側の補正条件を満たすか判定し(ステップ105,106)、満たした場合、右側の補正式を演算して(ステップ107)、補正対象画素C3の画素値を参照画素C4の画素値に近付ける(画素値を下げる)。   It is determined whether the correction conditions on the left side of Table 1a are satisfied by the horizontal pixels C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 101 to 103). If satisfied, the right correction equation is calculated (step 104), and the pixel value of the correction target pixel C3 is brought close to the pixel value of the reference pixel C2 (the pixel value is lowered). When the correction condition of a in Table 1 is not satisfied, horizontal pixels C2 to C5 (first reference pixel; C4, second reference pixel; C5, third reference pixel; C2) It is determined whether the correction condition is satisfied (steps 105 and 106). If the correction condition is satisfied, the right-side correction formula is calculated (step 107), and the pixel value of the correction target pixel C3 is brought close to the pixel value of the reference pixel C4 (pixel value). Lower).

表1のa,bの条件が満たさない場合、すなわち、水平方向の補正条件が満たさない場合には、垂直方向の画素A3〜B3(第1参照画素;B3、第2参照画素;;A3、第3参照画D3)により、表1のcの左側の補正条件を満たすか判定し(ステップ108,109,110)、満たした場合、右側の補正式を演算して(ステップ111)、補正対象画素C3の画素値を参照画素B3の画素値に近付ける(画素値を下げる)。表1のcの条件が満たさない場合、垂直方向の画素B3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの左側の補正条件を満たすか判定し(ステップ112,113)、満たした場合、右側の補正式を演算して(ステップ114)、補正対象画素C3の画素値を参照画素D3の画素値に近付ける(画素値を下げる)。   When the conditions a and b in Table 1 are not satisfied, that is, when the horizontal correction condition is not satisfied, the vertical pixels A3 to B3 (first reference pixel; B3, second reference pixel; It is determined from the third reference image D3) whether the correction condition on the left side of c in Table 1 is satisfied (steps 108, 109, 110), and if satisfied, the correction expression on the right side is calculated (step 111) to be corrected. The pixel value of the pixel C3 is brought close to the pixel value of the reference pixel B3 (the pixel value is lowered). When the condition of c in Table 1 is not satisfied, correction of the left side of d in Table 1 is performed by vertical pixels B3 to E3 (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3). It is determined whether or not the condition is satisfied (steps 112 and 113). If the condition is satisfied, the correction formula on the right side is calculated (step 114), and the pixel value of the correction target pixel C3 is brought close to the pixel value of the reference pixel D3 (the pixel value is changed). Lower).

一方、表1のa〜dの全ての補正条件が満たさない場合、すなわち、水平及び垂直方向のいずれでも補正条件が満たさない場合には、補正対象画素C3の画素値はそのままとする(ステップ115)。   On the other hand, when all the correction conditions a to d in Table 1 are not satisfied, that is, when the correction conditions are not satisfied in both the horizontal and vertical directions, the pixel value of the correction target pixel C3 is left as it is (step 115). ).

本実施例によれば、解像度変換処理を行った後の画像でも、隣接画素の表示への影響を最も受ける一画素ピッチの画像(黒線)を補正することができ、明るい補正対象画素の暗い隣接画素の表示への影響による浮き上がりを押さえ、コントラストが向上した見易い画像を表示することができる。   According to the present embodiment, even in the image after the resolution conversion processing, it is possible to correct an image (black line) having a single pixel pitch that is most affected by the display of adjacent pixels, and the bright correction target pixel is dark. An easy-to-see image with improved contrast can be displayed by suppressing the floating due to the influence on the display of adjacent pixels.

図34に具体的処理例を示す。図34は拡大して示したもので、実際には、(A)のa,bなどは1画素幅(1画素ピッチ)の黒線である。(A)のような画像を解像度変換処理することにより、(B)に示すように、1画素幅の黒線は2画素以上で表現され、浮き上がりが生じる(例えば、c,d,eなど)。(C)は補正処理後の画像であり、c,d,eなどの画素の画素値を隣接の黒線の画素値に近付ける(画素値を下げる)ことで(c’,d’,e’など)、浮き上がりを押さえ、コントラストが向上し(黒線強調)、見易い画像を表示できる。他の例についても同様である。   FIG. 34 shows a specific processing example. FIG. 34 is an enlarged view. Actually, a, b, etc. in (A) are black lines with a width of one pixel (one pixel pitch). By performing resolution conversion processing on an image such as (A), as shown in (B), a black line with a width of one pixel is expressed by two or more pixels, resulting in floating (for example, c, d, e, etc.) . (C) is an image after correction processing, and the pixel values of pixels such as c, d, and e are brought close to the pixel values of adjacent black lines (the pixel values are lowered) (c ′, d ′, e ′). Etc.), and the contrast is improved (black line emphasis) and an easy-to-view image can be displayed. The same applies to other examples.

図5は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たすか判定し、満たした場合には、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が小さい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げる)ものである。なお、一つの方向にて補正条件が満たした場合の処理は図4と同じである。   FIG. 5 determines whether or not the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). If the correction condition is satisfied, the pixel values of the correction target pixel and the horizontal and vertical directions satisfying the correction condition are determined. Using the correction formula with the smaller difference from the pixel value of one reference pixel, the pixel value of the correction target pixel is corrected so as to approach the pixel value of the first reference pixel (lowering the pixel value). is there. The process when the correction condition is satisfied in one direction is the same as that in FIG.

図5の処理フローにおける補正条件と補正式との対応関係は、先の図4の場合の表1と同じであるので省略する。以下、図5の処理フローについて詳述する。   The correspondence relationship between the correction condition and the correction formula in the processing flow of FIG. 5 is the same as that in Table 1 in FIG. Hereinafter, the processing flow of FIG. 5 will be described in detail.

水平方向の画素C1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表1のaの左側の補正条件を満たすか判定する(ステップ201〜203)。満たした場合、垂直方向の画素A3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの左側の補正条件を満たすか判定する(ステップ204〜206)。これも満たした場合、すなわち、表1のaとcの補正条件が満たした場合、各々の第1の参照画素であるC2とB3の画素値を比較し(ステップ207)、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ208又は209)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を下げる)。   It is determined whether the correction condition on the left side of Table 1a is satisfied by the horizontal pixels C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 201 to 203). ). If satisfied, it is determined whether the correction condition on the left side of c in Table 1 is satisfied by the vertical pixels A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) ( Steps 204-206). When this is also satisfied, that is, when the correction conditions of a and c in Table 1 are satisfied, the pixel values of C2 and B3, which are the first reference pixels, are compared (step 207), and the larger one (C3 and Is calculated (Step 208 or 209), and the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is lowered).

また、表1のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向の画素B3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの左側の補正条件を満たすか判定する(ステップ210,211)。そして、満たした場合、すなわち、表1のaとdの補正条件が満たした場合、各々の第1の参照画素であるC2とD3の画素値を比較し(ステップ212)、大きい方に対応する右側の補正式を演算して(ステップ209又は213)、補正対象画素C3の画素値をC2あるいはD3の画素値に近付ける(画素値を下げる)。   When the correction condition a in Table 1 is satisfied and the correction condition c is not satisfied, the vertical pixels B3 to E3 (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) determines whether the correction condition on the left side of d in Table 1 is satisfied (steps 210 and 211). Then, when satisfied, that is, when the correction conditions of a and d in Table 1 are satisfied, the pixel values of C2 and D3 as the first reference pixels are compared (step 212), and the larger one is supported. The right-side correction formula is calculated (step 209 or 213), and the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 or D3 (the pixel value is lowered).

また、表1のaの補正条件が満たし、cとdのいずれの補正条件も満たさない場合には、そのままaの右側の補正式を演算して(ステップ209)、補正対象画素C3の画素値をC2の画素値に近付ける(画素値を下げる)。   If the correction condition a in Table 1 is satisfied and neither the correction condition c nor d is satisfied, the correction equation on the right side of a is directly calculated (step 209), and the pixel value of the correction target pixel C3 is calculated. To the pixel value of C2 (lower the pixel value).

表1のaの補正条件が満たさない場合には、水平方向の画素C2〜C5(第1参照画素;C4、第2参照画素;C5、第3参照画素;C2)により、表1のbの左側の補正条件を満たすか判定する(ステップ214,215)。満たした場合、垂直方向の画素A3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの左側の補正条件を満たすか判定する(ステップ216〜218)。満たした場合、すなわち、表1のbとcの補正条件が満たした場合、各々の第1の参照画素であるC4とB3の画素値を比較し(ステップ219)、大きい方(c3との差が小さい)に対応する右側の補正式を演算して(ステップ220又は221)、補正対象画素C3の画素値をB3あるいはC4の画素値に近づける(画素値を下げる)。   When the correction condition of a in Table 1 is not satisfied, horizontal pixels C2 to C5 (first reference pixel; C4, second reference pixel; C5, third reference pixel; C2) It is determined whether the left correction condition is satisfied (steps 214 and 215). If satisfied, it is determined whether the correction condition on the left side of c in Table 1 is satisfied by the vertical pixels A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) ( Steps 216-218). When satisfied, that is, when the correction conditions b and c in Table 1 are satisfied, the pixel values of C4 and B3, which are the first reference pixels, are compared (step 219), and the larger one (difference from c3) Is calculated (step 220 or 221), and the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C4 (the pixel value is lowered).

また、表1のbの補正条件が満たし、cの補正条件が満たさない場合、垂直方向の画素B3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの左側の補正条件を満たすか判定する。(ステップ222,223)。満たした場合、すなわち、表1のbとdの補正条件が満たした場合、各々の第1の参照画素であるC4とD3の画素値を比較し(ステップ224)、大きい方に対応する右側の補正式を演算して(ステップ221又は225)、補正対象画素C3の画素値をC4あるいはD3の画素値に近付ける(画素値を下げる)。   When the correction condition b in Table 1 is satisfied and the correction condition c is not satisfied, the pixels B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) Thus, it is determined whether the correction condition on the left side of d in Table 1 is satisfied. (Steps 222 and 223). When satisfied, that is, when the correction conditions of b and d in Table 1 are satisfied, the pixel values of C4 and D3 as the first reference pixels are compared (step 224), and the right side corresponding to the larger one is compared. The correction formula is calculated (step 221 or 225), and the pixel value of the correction target pixel C3 is brought close to the pixel value of C4 or D3 (the pixel value is lowered).

また、表1のbの補正条件が満たし、cとdのいずれの補正条件も満たさない場合には、そのままbの右側の補正式を演算して(ステップ221)、補正対象画素C3の画素値をC4の画素値に近付ける(画素値を下げる)。   If the correction condition of b in Table 1 is satisfied and neither of the correction conditions of c and d is satisfied, the correction formula on the right side of b is calculated as it is (step 221), and the pixel value of the correction target pixel C3 is calculated. To the pixel value of C4 (lower the pixel value).

表1のa,bの補正条件が満たさない場合、すなわち、水平方向で補正条件が満たさない場合には、垂直方向の画素A3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの左側の補正条件を満たすか判定し(ステップ226〜228)、満たした場合、そのまま左側の補正式を演算して(ステップ229)、補正対象画素C3の画素値をB3の画素値に近付ける(画素値を下げる)。満たさない場合、垂直方向の画素B3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの左側の補正条件を満たすか判定し(ステップ230,231)、満した場合、そのまま右側の補正式を演算して(ステップ232)、補正対象画素C3の画素値をD3の画素値に近付ける(画素値を下げる)。   When the correction conditions a and b in Table 1 are not satisfied, that is, when the correction conditions are not satisfied in the horizontal direction, the pixels A3 to D3 in the vertical direction (first reference pixel; B3, second reference pixel; A3, Whether or not the correction condition on the left side of c in Table 1 is satisfied is determined by the third reference pixel; D3) (steps 226 to 228). If satisfied, the correction expression on the left side is calculated as it is (step 229), and the correction target The pixel value of the pixel C3 is brought close to the pixel value of B3 (the pixel value is lowered). If not, it is determined whether the correction condition on the left side of d in Table 1 is satisfied by the vertical pixels B3 to E3 (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) ( In Steps 230 and 231), when satisfied, the right correction equation is calculated as it is (Step 232), and the pixel value of the correction target pixel C3 is brought close to the pixel value of D3 (the pixel value is lowered).

表1のa〜dの全ての補正条件が満たさない場合、すなわち、水平及び垂直方向のいずれでも補正条件が満たさない場合には、補正対象画素c3の画素値はそのままとする(ステップ233)。   If all the correction conditions a to d in Table 1 are not satisfied, that is, if the correction conditions are not satisfied in both the horizontal and vertical directions, the pixel value of the correction target pixel c3 is left as it is (step 233).

このように水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素C3と第1の参照画素との差が小さい方の補正式を用いて補正対象画素C3の画素値を補正する(画素値を下げる)ことで、効果が大きくなりすぎることなく、表示画像のコントラストを向上させることができる。   As described above, when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), the correction target pixel is calculated using the correction formula with the smaller difference between the correction target pixel C3 and the first reference pixel. By correcting the pixel value of C3 (lowering the pixel value), the contrast of the display image can be improved without the effect becoming too large.

図6は、図5とは逆に、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が大きい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げる)ものである。一つの方向にて補正条件が満たした場合の処理は図4と同じである。   6, contrary to FIG. 5, when the correction conditions are satisfied in both the horizontal and vertical directions (generally, in a plurality of directions), the pixel values of the correction target pixels and the horizontal and vertical directions that satisfy the correction conditions are satisfied. Using a correction formula having a larger difference from the pixel value of the first reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (lowering the pixel value) It is. The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図6の処理フローにおける補正条件と補正式との対応関係は、先の図4の場合の表1と同じであるので省略する。   The correspondence relationship between the correction condition and the correction formula in the processing flow of FIG. 6 is the same as that of Table 1 in FIG.

図6の処理フローにおいて、図5との違いは、ステップ307,312,324での大小比較判定が図5のステップ207,212,219,224とは逆の関係になっているだけで、それ以外の処理は図5とまったく同じである。以下、図6の処理フローについて詳述する。   In the processing flow of FIG. 6, the difference from FIG. 5 is that the magnitude comparison determination in steps 307, 312, and 324 is only in the opposite relation to steps 207, 212, 219, and 224 of FIG. 5. The other processes are exactly the same as in FIG. Hereinafter, the processing flow of FIG. 6 will be described in detail.

水平方向の画素C1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表1のaの条件を満たすか判定し(ステップ301〜303)、満たした場合、垂直方向の画素A3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの補正条件を満たすか判定する(ステップ304〜306)。そして、表1のaとcの補正条件が満たした場合、第1の参照画素であるC2とB3の画素値を比較し(ステップ307)、小さい方(C3との差が大きい)に対応する補正式を演算して(ステップ308又は309)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を下げる)。   It is determined whether or not the condition of a in Table 1 is satisfied by the horizontal pixels C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 301 to 303). In this case, it is determined whether the correction condition of c in Table 1 is satisfied by the vertical pixels A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) (steps 304 to 304). 306). Then, when the correction conditions of a and c in Table 1 are satisfied, the pixel values of C2 and B3, which are the first reference pixels, are compared (step 307), and the smaller one (the difference from C3 is large) is handled. The correction formula is calculated (step 308 or 309), and the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is lowered).

また、表1のaの補正条件が満たし、cの条件が満たさない場合には、垂直方向の画素B3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの条件を満たすか判定する(ステップ310,311)。そして、表1のaとdの条件が満たした場合、第1の参照画素であるC2とD3の画素値を比較し(ステップ312)、小さい方に対応する補正式を演算して(ステップ309又は313)、補正対象画素C3の画素値をC2あるいはD3の画素値に近付ける(画素値を下げる)。   If the correction condition a in Table 1 is satisfied and the condition c is not satisfied, the vertical pixels B3 to E3 (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) ) To determine whether the condition of d in Table 1 is satisfied (steps 310 and 311). When the conditions a and d in Table 1 are satisfied, the pixel values of C2 and D3, which are the first reference pixels, are compared (step 312), and a correction formula corresponding to the smaller one is calculated (step 309). Or 313), the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 or D3 (the pixel value is lowered).

表1のaの条件が満たさない場合には、水平方向の画素C2〜C5(第1参照画素;C4、第2参照画素;C5、第3参照画素;C2)により、表1のbの補正条件を満たすか判定し(ステップ314,315)、満たした場合、垂直方向の画素A3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの条件を満たすか判定する(ステップ316〜318)。そして、表1のbとcの補正条件が満たした場合、第1の参照画素であるC4とB3の画素値を比較し(ステップ319)、小さい方(c3と差が大きい)に対応する補正式を演算して(ステップ320又は321)、補正対象画素C3の画素値をB3あるいはC4の画素値に近付ける(画素値を下げる)。   When the condition of a in Table 1 is not satisfied, correction of b in Table 1 is performed by horizontal pixels C2 to C5 (first reference pixel; C4, second reference pixel; C5, third reference pixel; C2). Whether or not the condition is satisfied is determined (steps 314 and 315). If the condition is satisfied, the vertical pixels A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) are Whether or not the condition of c is satisfied is determined (steps 316 to 318). When the correction conditions b and c in Table 1 are satisfied, the pixel values of C4 and B3, which are the first reference pixels, are compared (step 319), and the correction corresponding to the smaller one (the difference is larger than c3). The equation is calculated (step 320 or 321), and the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C4 (the pixel value is lowered).

また、表1のbの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向の画素B3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの補正条件を満たすか判定する(ステップ322,323)。そして、表1のbとdの補正条件が満たした場合、第1の参照画素であるC4とD3の画素値を比較し(ステップ324)、小さい方(C3との差が大きい)に対応する補正式を演算して(ステップ321又は325)、補正対象画素C3の画素値をC4あるいはD3の画素値に近付ける(画素値を下げる)。   When the correction condition b in Table 1 is satisfied and the correction condition c is not satisfied, the vertical pixels B3 to E3 (first reference pixel; D3, second reference pixel; E3, third reference pixel; Whether or not the correction condition d in Table 1 is satisfied is determined by B3) (steps 322 and 323). When the correction conditions b and d in Table 1 are satisfied, the pixel values of C4 and D3, which are the first reference pixels, are compared (step 324) and correspond to the smaller one (the difference from C3 is large). The correction formula is calculated (step 321 or 325), and the pixel value of the correction target pixel C3 is brought close to the pixel value of C4 or D3 (the pixel value is lowered).

一方、表1のa〜dのいずれか一つの補正条件が満たした場合は、そのまま対応する補正式を演算して(ステップ309,321,329又は332)、補正対象画素C3の画素値を該当第1の参照画素の画素値に近付ける(画素値を下げる)。また、表1のa〜dのいずれの条件も満たさない場合には、補正対象画素C3の画素値はそのままとする(ステップ333)。   On the other hand, if any one of the correction conditions a to d in Table 1 is satisfied, the corresponding correction formula is calculated as it is (steps 309, 321, 329, or 332), and the pixel value of the correction target pixel C3 is determined as appropriate. Approach the pixel value of the first reference pixel (lower the pixel value). If none of the conditions a to d in Table 1 is satisfied, the pixel value of the correction target pixel C3 is left as it is (step 333).

このように、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素C3と第1の参照画素との差が大きい方の補正式を用いて補正対象画素c3の画素値を補正する(画素値を下げる)ことで、差の小さい参照画素側に過剰な補正がかかる場合もあるが、その頻度は一般に少なく、画像全体では影響が軽微であり、定数Z(補正割合)の値により影響を軽減することもできる。その影響に比べ、はるかにコントラストが向上し、見易い画像を表示することができる。   As described above, when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), the correction target is corrected using the correction formula having the larger difference between the correction target pixel C3 and the first reference pixel. By correcting the pixel value of the pixel c3 (lowering the pixel value), excessive correction may be applied to the reference pixel side having a small difference, but the frequency is generally low and the influence on the entire image is slight. The influence can be reduced by the value of Z (correction ratio). Compared with the influence, the contrast is much improved and an easy-to-view image can be displayed.

図7は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、満たした方向の組み合わせにより、予め定めた補正式を用いて補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げる)ものである。すなわち、満たした方向の組み合わせにより、予め定められた補正対象画素と、隣接した該補正対象画素と異なる値を有する参照画素の画素値と、補正対象画素の画素値との差を用いて補正する。一つの方向にて補正条件が満たした場合の処理は図4と同じである。   FIG. 7 shows that when the correction condition is satisfied in both the horizontal and vertical directions (generally, in a plurality of directions), the pixel value of the correction target pixel is calculated using a predetermined correction formula depending on the combination of the satisfied directions. Correction is performed so as to approach the pixel value of one reference pixel (lowering the pixel value). That is, correction is performed using a difference between a predetermined correction target pixel, a pixel value of a reference pixel having a value different from that of the adjacent correction target pixel, and a pixel value of the correction target pixel according to a combination of the satisfied directions. . The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図7の処理フローにおける補正条件と補正式との対応関係は、先の図4の場合の表1と同じであるので省略する。以下、図7の処理フローについて詳述する。   The correspondence relationship between the correction condition and the correction formula in the processing flow of FIG. 7 is the same as in Table 1 in FIG. Hereinafter, the processing flow of FIG. 7 will be described in detail.

水平方向の画素C1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表1のaの左側の補正条件を満たすか判定する(ステップ401〜403)。満たした場合、D3≧C3を判定し(ステップ404)、判定結果がYESなら、aの右側の補正式を演算して(ステップ405)、補正対象画素C3の画素値をC2(第1の参照画素)の画素値に近付ける(画素値を下げる)。すなわち、表1のaの補正条件が満たし、かつ、cの補正条件が満たす場合(満たす可能性がある場合)には、aの補正式を用いて補正対象画素c3の画素値を補正する。また、D3≧C3の判定結果がNOの場合、B3≧C3,E3>D3を判定し(ステップ406,407)、いずれもYESの場合には、表1のdの右側の補正式を演算して(ステップ408)、補正対象画素C3の画素値をD3(第1の参照画素)の画素値に近付ける(画素値を下げる)。すなわち、表1のaとdの条件が満たした場合には、dの補正式を用いて補正対象画素c3の画素値を補正する。また、ステップ406,407のいずれかでNOが判定された場合、すなわち、表1のaの補正条件だけが満たした場合には、aの補正式を用いて補正対象画素c3の画素値を補正する(ステップ405)。   It is determined whether the correction condition on the left side of Table 1a is satisfied by the horizontal pixels C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 401 to 403). ). If satisfied, D3 ≧ C3 is determined (step 404). If the determination result is YES, the correction formula on the right side of a is calculated (step 405), and the pixel value of the correction target pixel C3 is set to C2 (first reference). Pixel) (close the pixel value). That is, when the correction condition a in Table 1 is satisfied and the correction condition c is satisfied (when possible), the pixel value of the correction target pixel c3 is corrected using the correction expression a. If the determination result of D3 ≧ C3 is NO, B3 ≧ C3, E3> D3 is determined (steps 406 and 407). If both are YES, the correction formula on the right side of d in Table 1 is calculated. (Step 408), the pixel value of the correction target pixel C3 is brought close to the pixel value of D3 (first reference pixel) (the pixel value is lowered). That is, when the conditions of a and d in Table 1 are satisfied, the pixel value of the correction target pixel c3 is corrected using the d correction equation. If NO is determined in any of steps 406 and 407, that is, if only the correction condition a in Table 1 is satisfied, the pixel value of the correction target pixel c3 is corrected using the correction formula a. (Step 405).

一方、表1のaの補正条件が満たさない場合には、水平方向の画素C2〜C5(第1参照画素;C4、第2参照画素;C5、第3参照画素;C2)により、表1のbの左側の補正条件を満たすか判定する(ステップ409,410)。満たした場合、D3≧C3を判定し、判定結果がYESなら、A3>B3,C3>B3を判定し(ステップ412,413)、いずれもYESの場合には、表1のcの右側の補正式を演算して(ステップ414)、補正対象画素C3の画素値をB3(第1の参照画素)の画素値に近付ける(画素値を下げる)。すなわち、表1のbとcの補正条件が満たした場合には、cの補正式を用いて補正対象画素C3の画素値を補正する。また、D3≧C3の判定結果がNOの場合には、bの補正式を演算して(ステップ415)、補正対象画素C3の画素値をC4(第1の参照画素)の画素値に近づける(画素値を下げる)。すなわち、表1のbの補正条件が満たし、かつ、dの補正条件が満たす場合(満たす可能性がある場合)には、bの補正式を用いて補正対象画素c3の画素値を補正する。また、ステップ412,413のいずれかでNOが判定された場合、すなわち、bの補正条件だけが満たした場合には、bの補正式を用いて補正対象画素C3の画素値を補正する(ステップ415)。   On the other hand, when the correction condition a in Table 1 is not satisfied, horizontal pixels C2 to C5 (first reference pixel; C4, second reference pixel; C5, third reference pixel; C2) It is determined whether the correction condition on the left side of b is satisfied (steps 409 and 410). If satisfied, D3 ≧ C3 is determined. If the determination result is YES, A3> B3, C3> B3 is determined (steps 412 and 413). If both are YES, the correction on the right side of c in Table 1 is performed. The equation is calculated (step 414), and the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 (first reference pixel) (the pixel value is lowered). That is, when the correction conditions b and c in Table 1 are satisfied, the pixel value of the correction target pixel C3 is corrected using the correction formula c. If the determination result of D3 ≧ C3 is NO, the correction formula for b is calculated (step 415), and the pixel value of the correction target pixel C3 is brought close to the pixel value of C4 (first reference pixel) ( Reduce the pixel value). That is, when the correction condition b in Table 1 is satisfied and the correction condition d is satisfied (when it may be satisfied), the pixel value of the correction target pixel c3 is corrected using the correction expression b. If NO is determined in any of steps 412 and 413, that is, if only the correction condition for b is satisfied, the pixel value of the correction target pixel C3 is corrected using the correction formula for b (step 415).

表1のa,bの補正条件が満たさない場合、すなわち、水平方向で補正条件が満たさない場合には、垂直方向の画素A3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの左側の補正条件を満たすか判定し(ステップ416〜418)、満たした場合、そのまま左側の補正式を演算して(ステップ419)、補正対象画素C3の画素値をB3の画素値に近付ける(画素値を下げる)。満たさない場合、垂直方向の画素B3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの左側の補正条件を満たすか判定し(ステップ420,421)、満たした場合、そのまま右側の補正式を演算して(ステップ422)、補正式対象画素C3の画素値をD3の画素値に近付ける(画素値を下げる)。   When the correction conditions a and b in Table 1 are not satisfied, that is, when the correction conditions are not satisfied in the horizontal direction, the pixels A3 to D3 in the vertical direction (first reference pixel; B3, second reference pixel; A3, Whether or not the correction condition on the left side of c in Table 1 is satisfied is determined by the third reference pixel; D3) (steps 416 to 418). If satisfied, the correction expression on the left side is calculated as it is (step 419), and the correction target The pixel value of the pixel C3 is brought close to the pixel value of B3 (the pixel value is lowered). If not, it is determined whether the correction condition on the left side of d in Table 1 is satisfied by the vertical pixels B3 to E3 (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) ( If the conditions are satisfied, the right correction formula is calculated (step 422), and the pixel value of the correction target pixel C3 is brought close to the pixel value of D3 (the pixel value is lowered).

表1のa〜dのすべての補正条件が満たさない場合、すなわち、水平及び垂直方向のいずれでも補正条件が満たさない場合には、補正対象画素C3の画素値はそのままとする(ステップ423)。   If all the correction conditions a to d in Table 1 are not satisfied, that is, if the correction conditions are not satisfied both in the horizontal and vertical directions, the pixel value of the correction target pixel C3 is left as it is (step 423).

図7を図5や図6と比較すれば明らかであるように、複数方向にて補正条件を満たした場合、満たした方向の組み合わせにより、予め定めた補正式を用いて補正対象画素の画素値を補正するようにすることにより、処理が簡略となる。このことから補正処理を行う回路規模が小さくなり、低コスト化することができる。また、複数方向にて補正条件を満たし、且つ参照画素値と補間画素の画素値の差が複数方向で異なることは、画像全体から見ると少なく、画質への影響は少ないことが多いので、画質の差が少ないのに低コストで、コントラストが向上した、見易い画像を表示することができる。   As is clear when FIG. 7 is compared with FIG. 5 and FIG. 6, when the correction conditions are satisfied in a plurality of directions, the pixel value of the correction target pixel is determined using a predetermined correction formula depending on the combination of the satisfied directions. By correcting the above, the processing is simplified. Therefore, the circuit scale for performing the correction process can be reduced and the cost can be reduced. In addition, since the correction conditions are satisfied in multiple directions and the difference between the pixel value of the reference pixel value and the interpolated pixel is different in the multiple directions, it is small when viewed from the whole image, and the influence on the image quality is often small. Although the difference is small, it is possible to display an easy-to-view image with low cost and improved contrast.

図8は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正条件を満たした各々の第1の参照画素の画素値間の値と補正対象画素の画素値との差を用いて、補正対象画素の画素値を補正する(画素値を下げる)ものである。図8では、一例として水平及び垂直方向で補正条件を満たした2つの第1の参照画素値間の値として平均値を用いた場合を示している。一つの方向にて補正条件を満たした場合の処理は図4と同じである。   FIG. 8 shows the values between the pixel values of the first reference pixels that satisfy the correction condition and the pixels of the correction target pixel when the correction condition is satisfied in both the horizontal and vertical directions (generally a plurality of directions). The pixel value of the correction target pixel is corrected (the pixel value is lowered) using the difference from the value. FIG. 8 shows an example in which an average value is used as a value between two first reference pixel values that satisfy the correction condition in the horizontal and vertical directions. The processing when the correction condition is satisfied in one direction is the same as in FIG.

表2に水平及び垂直方向の両方で補正条件が満たした場合の、満たした方向の補正条件の組み合わせと適用する補正式との対応関係を示す。一つの方向で補正条件が満たした場合の補正条件と補正式との対応関係は、先の図4の場合の表1と同じであるので省略する。   Table 2 shows a correspondence relationship between a combination of correction conditions in the satisfied direction and a correction formula to be applied when the correction conditions are satisfied in both the horizontal and vertical directions. The correspondence between the correction condition and the correction formula when the correction condition is satisfied in one direction is the same as that in Table 1 in FIG.

Figure 0005293923
Figure 0005293923

以下、図8の処理フローについて詳述する。水平方向の画素C1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表1のaの補正条件を満たすか判定し(ステップ501〜503)、満たした場合、垂直方向の画素A3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの補正条件を満たすか判定する(ステップ504〜506)。そして、表1のaとcの補正条件が満たした場合、すなわち、表2の1の左側の補正条件が満たした場合、その右側の補正式を演算して(ステップ507)、補正対象画素C3の画素値を補正する(画素値を下げる)。すなわち、参照画素C2とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   Hereinafter, the processing flow of FIG. 8 will be described in detail. It is determined whether or not the correction condition of a in Table 1 is satisfied by the horizontal pixels C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 501 to 503), If it is satisfied, it is determined whether the correction condition of c in Table 1 is satisfied by the vertical pixels A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) (step 504). ~ 506). When the correction conditions of a and c in Table 1 are satisfied, that is, when the correction condition on the left side of 1 in Table 2 is satisfied, a correction equation on the right side is calculated (step 507), and the correction target pixel C3 is calculated. Is corrected (lowers the pixel value). That is, the correction process is performed using the difference between the average value of the reference pixels C2 and B3 and the pixel value of the correction target pixel C3.

また、表1のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向の画素B3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの条件を満たすか判定する(ステップ508,509)。そして、表1のaとdの補正条件が満たした場合、すなわち、表2の2の左側の補正条件が満たした場合、その右側の補正式を演算して(ステップ510)、補正対象画素C3の画素値を補正する(画素値を下げる)。すなわち、参照画素C2とD3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   When the correction condition a in Table 1 is satisfied and the correction condition c is not satisfied, the vertical pixels B3 to E3 (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) determines whether the condition of d in Table 1 is satisfied (steps 508 and 509). When the correction conditions of a and d in Table 1 are satisfied, that is, when the correction conditions on the left side of 2 in Table 2 are satisfied, a correction expression on the right side is calculated (step 510), and the correction target pixel C3 is calculated. Is corrected (lowers the pixel value). That is, the correction process is performed using the difference between the average value of the reference pixels C2 and D3 and the pixel value of the correction target pixel C3.

表1のaの補正条件が満たさない場合には、水平方向の画素C2〜C5(第1参照画素;C4、第2参照画素;C5、第3参照画素;C2)により、表1のbの条件を満たすか判定し(ステップ512,513)、満たした場合、垂直方向の画素A3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの補正条件を満たすか判定する(ステップ514〜516)。そして、表1のbとcの補正条件が満した場合、すなわち、表2の3の左側の補正条件が満たした場合、その右側の補正式を演算して(ステップ517)、補正対象画素C3の画素値を補正する(画素値を下げる)。すなわち、参照画素C4とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   When the correction condition of a in Table 1 is not satisfied, horizontal pixels C2 to C5 (first reference pixel; C4, second reference pixel; C5, third reference pixel; C2) Whether or not the condition is satisfied is determined (steps 512 and 513). If the condition is satisfied, the vertical pixels A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) are Whether the correction condition of c is satisfied is determined (steps 514 to 516). When the correction conditions b and c in Table 1 are satisfied, that is, when the correction conditions on the left side of 3 in Table 2 are satisfied, a correction expression on the right side is calculated (step 517), and the correction target pixel C3 is calculated. Is corrected (lowers the pixel value). That is, the correction process is performed using the difference between the average value of the reference pixels C4 and B3 and the pixel value of the correction target pixel C3.

また、表1のbの補正条件が満たし、cの条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表1のdの条件を満たすか判定する(ステップ518,519)。そして、表1のbとdの条件が満たした場合、すなわち、表2の4の左側の補正条件が満たした場合、その右側の補正式を演算して(ステップ520)、補正対象画素C3の画素値を補正する(画素値を下げる)。すなわち、参照画素C4とD3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   When the correction condition b in Table 1 is satisfied and the condition c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) Thus, it is determined whether the condition of d in Table 1 is satisfied (steps 518 and 519). When the conditions of b and d in Table 1 are satisfied, that is, when the correction condition on the left side of 4 in Table 2 is satisfied, the right side correction equation is calculated (step 520), and the correction target pixel C3 is calculated. Correct the pixel value (lower the pixel value). That is, the correction process is performed using the difference between the average value of the reference pixels C4 and D3 and the pixel value of the correction target pixel C3.

一方、表1のa〜dのいずれか一つの補正条件が満たした場合は、そのまま対応する補正式を演算して(ステップ511,521,525又は528)、補正対象画素C3の画素値を当該第1の参照画素の画素値に近付ける(画素値を下げる)。また、表1のa〜dのいずれの条件も満たさない場合には、補正対象画素C3の画素値はそのままとする(ステップ529)。   On the other hand, when any one of the correction conditions a to d in Table 1 is satisfied, the corresponding correction formula is calculated as it is (steps 511, 521, 525 or 528), and the pixel value of the correction target pixel C3 is calculated. Approach the pixel value of the first reference pixel (lower the pixel value). If none of the conditions a to d in Table 1 is satisfied, the pixel value of the correction target pixel C3 is left as it is (step 529).

図8の場合、例えば、図5と比較して処理が簡略になることから補正処理を行う回路規模が小さくなり、低コスト化することができる。また補正条件が複数方向で満たされた場合に、各々の参照画素値と補正対象画素値との差を用いて補正量をバランスを取りながら画像処理をすることとなり、低コストでコントラストが向上した、見易い画像を表示することができるようになる。   In the case of FIG. 8, for example, the processing is simplified as compared with FIG. 5, so that the circuit scale for performing the correction processing is reduced, and the cost can be reduced. In addition, when correction conditions are satisfied in multiple directions, image processing is performed while balancing the correction amount using the difference between each reference pixel value and the correction target pixel value, thereby improving contrast at low cost. Thus, an easy-to-see image can be displayed.

本実施例は、各表示画素が単色で構成された画像において、実施例1とは逆に、所定の補正条件が満たされた場合、補正対象画素の画素を上げることで、暗い補正対象画素の明るい隣接画素の表示への影響による画像(単色白)の沈み込みを押さえて、コントラストが向上した見易い画像を表示するものである。   In this embodiment, in an image in which each display pixel is configured in a single color, contrary to the first embodiment, when a predetermined correction condition is satisfied, the correction target pixel is raised to increase the dark correction target pixel. The image (monochromatic white) is prevented from sinking due to the influence on the display of bright adjacent pixels, and an easy-to-view image with improved contrast is displayed.

図9乃至図13に本実施例の処理フローチャートを示す。処理は図1の画像処理部20が司る。なお、図12と図13が補正式選択部24も使用する例である。以下、各処理フローチャートについて説明する。   9 to 13 show processing flowcharts of the present embodiment. The image processing unit 20 in FIG. 12 and 13 are examples in which the correction formula selection unit 24 is also used. Hereinafter, each processing flowchart will be described.

図9は、各表示画素が単色で構成された画像において、水平または垂直方向に対して補正対象画素に隣接する一方の画素を第1の参照画素、他方の画素を第3の参照画素、補正対象画素から第1の参照画素を挟んだ位置に位置する画素を第2の参照画素としたとき、少なくとも水平または垂直方向に対して補正対象画素の画素値が第1の参照画素の画素値未満であり、第3の参照画素の画素値が補正対象画素の画素値以下であり、かつ第2の参照画素の画素値が第1の参照画素の画素値未満である場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する(画素値を上げる)ものである。   FIG. 9 shows that in an image in which each display pixel is composed of a single color, one pixel adjacent to the correction target pixel in the horizontal or vertical direction is the first reference pixel, and the other pixel is the third reference pixel. When a pixel located at a position sandwiching the first reference pixel from the target pixel is the second reference pixel, the pixel value of the correction target pixel is less than the pixel value of the first reference pixel at least in the horizontal or vertical direction And the pixel value of the third reference pixel is less than or equal to the pixel value of the correction target pixel and the pixel value of the second reference pixel is less than the pixel value of the first reference pixel. The pixel value is corrected so as to be close to the pixel value of the first reference pixel (the pixel value is increased).

図9の処理フローにおける補正条件と補正式との対応関係をまとめると表3のようになる。   Table 3 summarizes the correspondence between the correction conditions and the correction formulas in the processing flow of FIG.

Figure 0005293923
Figure 0005293923

ここで、C1,C2,C3,C4,A3,B3,D3,E3は図2に示した通りであり、C3が補正対象画素である。aとbが水平方向の補正条件と補正式、cとdが垂直方向の補正条件と補正式の対応関係を示し、それぞれ、左側の補正条件が満たした場合、対応する右側の補正式を適用して補正対象画素C3の画素値を第1の参照画素(C2,C4,B3又はD3)の画素値に近付ける(画素値を上げる)。
このような補正条件とすることで、解像度変換を行った画像における周囲より明るい一画素ピッチの画像のピーク(白線等)を判定することができる。
Here, C1, C2, C3, C4, A3, B3, D3, and E3 are as shown in FIG. 2, and C3 is a correction target pixel. a and b are correction conditions and correction formulas in the horizontal direction, and c and d are correspondence relations between correction conditions and correction formulas in the vertical direction. When the correction conditions on the left side are satisfied, the corresponding correction formula on the right side is applied. Thus, the pixel value of the correction target pixel C3 is brought close to the pixel value of the first reference pixel (C2, C4, B3, or D3) (the pixel value is increased).
By setting such a correction condition, it is possible to determine a peak (white line or the like) of an image having a pixel pitch that is brighter than the surroundings in the resolution-converted image.

図9の処理フローは、図4の処理フローと基本的に同じであるので(図4と図9では補正条件の不等号が逆の関係になっているだけ)、詳細な説明は省略する。図4と同様に、入力画像データの各画素毎に、該画素を補正対象画素C3として、表3のa〜dの順番で左側の補正条件を満たすか判定し、満たした場合、その時点で右側の補正式を適用して補正対象画素C3の画素値を第1の参照画素(C2,C4,B3又はD3)の画素値に近付けるように補正する(画素値を上げる)。また、表3のa〜dの全ての補正条件が満たさない場合には、すなわち、水平方向及び垂直方向のいずれでも補正条件が満たさない場合には、補正対象画素C3について補正処理を行わない(C3=C3)。これを入力画像データがなくなるまで繰り返す。   The processing flow of FIG. 9 is basically the same as the processing flow of FIG. 4 (in FIG. 4 and FIG. 9, only the inequality signs of the correction conditions are reversed), and detailed description thereof is omitted. As in FIG. 4, for each pixel of the input image data, it is determined whether or not the left correction condition is satisfied in the order of “a” to “d” in Table 3 as the correction target pixel C <b> 3. The correction formula on the right side is applied to correct the pixel value of the correction target pixel C3 so as to approach the pixel value of the first reference pixel (C2, C4, B3, or D3) (increase the pixel value). If all the correction conditions a to d in Table 3 are not satisfied, that is, if the correction conditions are not satisfied in both the horizontal direction and the vertical direction, the correction process is not performed on the correction target pixel C3 ( C3 = C3). This is repeated until there is no input image data.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表3のaの補正条件を判定し(ステップ601〜603)、満たした場合、対応する右側の補正式を演算して(ステップ604)、補正対象画素C3の画素値を第1の参照画素C2の画素値に近付けるように補正する(画素値を上げる)。   For example, the correction conditions of a in Table 3 are determined based on C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 601 to 603) and satisfied If this is the case, the corresponding right-side correction formula is calculated (step 604), and the pixel value of the correction target pixel C3 is corrected so as to approach the pixel value of the first reference pixel C2 (the pixel value is increased).

本実施例によれば、解像度変換処理を行った後の画像でも、隣接画素の表示への影響を最も受ける一画素ピッチの画像(白線)を補正することができ、暗い補正対象画素の明るい隣接画素の表示への影響による画像の沈み込みを押さえ、コントラストが向上した見易い画像を表示することができる。   According to the present embodiment, even in the image after the resolution conversion processing, an image with a single pixel pitch (white line) that is most affected by the display of adjacent pixels can be corrected, and a bright adjacent to a dark correction target pixel. It is possible to display an easy-to-view image with improved contrast by suppressing the sinking of the image due to the influence on the display of the pixels.

図35に具体的処理例を示す。図34と同様に、図35は拡大して示したもので、実際には、(A)のa,bなどは1画素幅(1画素ピッチ)の白線である。(A)のような画像を解像度変換処理することにより、(B)に示すように、1画素幅の白線は2画素以上で表現され、沈み込みが生じる(例えば、c,d,e,fなど)。(C)は補正処理後の画像であり、c,d,e,fなどの画素の画素値を隣接の白線の画素値に近付ける(画素値を上げる)ことで(c’,d’,e’,f’など)、沈み込みを押さえ、コントラストが向上し(白線が強調される)、見易い画像を表示できる。他の例についても同様である。   FIG. 35 shows a specific processing example. Similarly to FIG. 34, FIG. 35 is an enlarged view. Actually, a, b, etc. in (A) are white lines of one pixel width (one pixel pitch). By performing resolution conversion processing on an image such as (A), as shown in (B), a white line having a width of one pixel is expressed by two or more pixels, and sinking occurs (for example, c, d, e, f). Such). (C) is an image after correction processing, and the pixel values of pixels such as c, d, e, and f are brought close to the pixel values of adjacent white lines (the pixel values are increased) (c ′, d ′, e). ', F', etc.), subsidence is suppressed, contrast is improved (white lines are emphasized), and an easy-to-view image can be displayed. The same applies to other examples.

図10は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たすか判定し、満たした場合には、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が小さい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図9と同じである。   FIG. 10 determines whether the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), and if satisfied, the pixel values of the correction target pixels and the horizontal and vertical directions satisfying the correction condition are determined. Using the correction formula with the smaller difference from the pixel value of one reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (the pixel value is increased). is there. The processing when the correction condition is satisfied in one direction is the same as in FIG.

図10における補正条件と補正式との対応関係は、先の図9の場合の表3と同じであるので省略する。また、図10処理フローは、図5の処理フローと基本的に同じであるので(図5と図10では補正条件の不等号が逆の関係になっているだけ)、詳細な説明は省略する。   The correspondence relationship between the correction condition and the correction formula in FIG. 10 is the same as that in Table 3 in FIG. The processing flow in FIG. 10 is basically the same as the processing flow in FIG. 5 (in FIG. 5 and FIG. 10, only the inequality signs of the correction conditions are reversed), and detailed description thereof is omitted.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表3のaの補正条件を満たすか判定し(ステップ701〜703)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表3のcの補正条件を満たすか判定する(ステップ704〜706)。そして、表1のaとcの補正条件が満たした場合、C2とB3の画素値を比較し(ステップ707)、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ708又は709)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を上げる)。   For example, it is determined whether the correction condition of a in Table 3 is satisfied by horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 701 to 703). If satisfied, it is determined whether the correction condition of c in Table 3 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 704). ~ 706). When the correction conditions of a and c in Table 1 are satisfied, the pixel values of C2 and B3 are compared (step 707), and the right-side correction equation corresponding to the larger one (the difference from C3 is small) is calculated. (Step 708 or 709), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is increased).

表3のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表3のdの補正条件を判定する(ステップ710,711)。そして、表3のaとdの補正条件が満たした場合、C2とD3の画素値を比較し(ステップ712)、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ709又は713)、補正対象画素C3の画素値をC2あるいはD3の画素値に近付ける(画素値を上げる)。   When the correction condition of a in Table 3 is satisfied and the correction condition of c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) Then, the correction condition of d in Table 3 is determined (steps 710 and 711). If the correction conditions of a and d in Table 3 are satisfied, the pixel values of C2 and D3 are compared (step 712), and the right-side correction equation corresponding to the larger one (the difference from C3 is small) is calculated. (Step 709 or 713), the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 or D3 (the pixel value is increased).

このように水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素C3と第1の参照画素と差が小さい方の補正式を用いて補正対象画素C3の画素値を補正する(画素値を上げる)ことで、効果が大きくなりすぎることなく、表示画像のコントラストを向上させることができる。   As described above, when the correction condition is satisfied in both the horizontal and vertical directions (generally, in a plurality of directions), the correction target pixel C3 is corrected using a correction formula having a smaller difference between the correction target pixel C3 and the first reference pixel. By correcting the pixel value (increasing the pixel value), the contrast of the display image can be improved without the effect becoming too great.

図11は、図10とは逆に、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が大きい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図9と同じである。   In contrast to FIG. 10, when the correction conditions are satisfied in both the horizontal and vertical directions (generally a plurality of directions), FIG. 11 shows the horizontal and vertical directions that satisfy the pixel values of the correction target pixels and the correction conditions. Using the correction formula having the larger difference from the pixel value of the first reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (the pixel value is increased). It is. The processing when the correction condition is satisfied in one direction is the same as in FIG.

図11における補正条件と補正式との対応関係は、先の図9の場合の表3と同じであるので省略する。また、図11の処理フローは、図6の処理フローと基本的に同じであるので(図6と図11では補正条件の不等号が逆になっているだけ)、詳細な説明は省略する。   The correspondence relationship between the correction condition and the correction formula in FIG. 11 is the same as that in Table 3 in FIG. Further, the processing flow of FIG. 11 is basically the same as the processing flow of FIG. 6 (only the inequality sign of the correction condition is reversed in FIGS. 6 and 11), and thus detailed description thereof is omitted.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表3のaの補正条件を満たすか判定し(ステップ801〜803)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表1のcの補正条件を満たすか判定する(ステップ804806)。そして、表1のaとcの補正条件が満たした場合、C2とB3の画素値を比較し(ステップ807)、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ808又は809)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を上げる)。   For example, it is determined whether the correction condition of a in Table 3 is satisfied by horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 801 to 803). If satisfied, it is determined whether the correction condition of c in Table 1 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 804806). ). When the correction conditions a and c in Table 1 are satisfied, the pixel values of C2 and B3 are compared (step 807), and the right-side correction equation corresponding to the smaller one (the difference from C3 is large) is calculated. (Step 808 or 809), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is increased).

表3のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表3のdの補正条件を判定する(ステップ810,811)。そして、表1のaとdの補正条件が満たした場合、C2とD3の画素値を比較し(ステップ812)、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ809又は813)、補正対象画素C3の画素値をC2あるいはD3の画素値に近付ける(画素値を上げる)。   When the correction condition of a in Table 3 is satisfied and the correction condition of c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) Then, the correction condition of d in Table 3 is determined (steps 810 and 811). When the correction conditions of a and d in Table 1 are satisfied, the pixel values of C2 and D3 are compared (step 812), and the right-side correction formula corresponding to the smaller one (the difference from C3 is large) is calculated. (Step 809 or 813), the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 or D3 (the pixel value is increased).

このように、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素C3と第1の参照画素と差が大きい方の補正式を用いて補正対象画素C3の画素値を補正する(画素値を上げる)ことで、同様に表示画像のコントラストが向上させることができる。   As described above, when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), the correction target pixel is calculated using the correction formula having the larger difference between the correction target pixel C3 and the first reference pixel. Correcting the pixel value of C3 (increasing the pixel value) can similarly improve the contrast of the display image.

図12は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、満たした方向の組合せにより、あらかじめ定めた補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図9と同じである。   FIG. 12 shows that when the correction condition is satisfied in both the horizontal and vertical directions (generally, in a plurality of directions), the pixel value of the correction target pixel is calculated using a predetermined correction formula depending on the combination of the satisfied directions. The correction is performed so as to approach the pixel value of the first reference pixel (the pixel value is increased). The processing when the correction condition is satisfied in one direction is the same as in FIG.

図12おける補正条件と補正式との対応関係は、先の図9の場合の表3と同じであるので省略する。また、図12の処理フローは、図7の処理フローと基本的に同じであるので(図7と図12では補正条件の不等号が逆の関係になっているだけ)、詳細な説明は省略する。   The correspondence relationship between the correction condition and the correction formula in FIG. 12 is the same as that in Table 3 in FIG. The processing flow in FIG. 12 is basically the same as the processing flow in FIG. 7 (in FIG. 7 and FIG. 12, the inequality signs of the correction conditions are reversed), and detailed description thereof is omitted. .

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表3のaの補正条件を満たすか判定し(ステップ901〜903)、満たした場合、D3≦C3を判定し(ステップ904)、判定結果がYRSならば(cの補正条件も満たされる可能性がある)、表3のaの右側の補正式を演算して(ステップ905)、補正対象画素C3の画素値をC2の画素値に近付ける(画素値を上げる)。D3≦C3の判定結果がNOならば、B3≦C3,E3≦D3を判定し(ステップ906,907)、いずれもYESならば(aとdの補正条件が満たされる)、表3のdの右側の補正式を演算して(ステップ908)、補正対象画素C3の画素値をD3の画素値に近付ける(画素値を上げる)。   For example, it is determined whether the correction condition of a in Table 3 is satisfied by horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 901 to 903). If satisfied, D3 ≦ C3 is determined (step 904), and if the determination result is YRS (the correction condition of c may also be satisfied), the correction equation on the right side of a in Table 3 is calculated ( Step 905), the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 (the pixel value is increased). If the determination result of D3 ≦ C3 is NO, B3 ≦ C3, E3 ≦ D3 is determined (steps 906 and 907), and if both are YES (the correction conditions of a and d are satisfied), d in Table 3 The right-side correction formula is calculated (step 908), and the pixel value of the correction target pixel C3 is brought close to the pixel value of D3 (the pixel value is increased).

図12の処理フローを図10や図11のそれと比較すれば明らかであるように、複数方向にて補正条件を満たした場合、満たした方向の組み合わせにより、予め定めた補正式を用いて補正対象画素の画素値を補正するようにすることにより、処理が簡略となる。このことから補正処理を行う回路規模が小さくなり、低コスト化することができる。また、複数方向にて補正条件を満たし、且つ参照画素値と補間画素の画素値の差が複数方向で異なることは、画像全体から見ると少なく、画質への影響は少ないことが多いので、画質の差が少ないのに低コストで、コントラストが向上した、見易い画像を表示することができる。   As is clear when the processing flow of FIG. 12 is compared with that of FIG. 10 or FIG. 11, when the correction conditions are satisfied in a plurality of directions, the correction target is determined using a predetermined correction formula depending on the combination of the satisfied directions. By correcting the pixel value of the pixel, the process is simplified. Therefore, the circuit scale for performing the correction process can be reduced and the cost can be reduced. In addition, since the correction conditions are satisfied in multiple directions and the difference between the pixel value of the reference pixel value and the interpolated pixel is different in the multiple directions, it is small when viewed from the whole image, and the influence on the image quality is often small. Although the difference is small, it is possible to display an easy-to-view image with low cost and improved contrast.

図13は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満した場合に、補正条件を満たした各々の第1の参照画素の画素値間の値(ここでは平均値)と補正対象画素の画素値との差を用いて、補正対象画素の画素値を補正する(画素値を上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図9と同じである。   FIG. 13 shows values (herein, average values) between pixel values of the first reference pixels that satisfy the correction condition when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). The pixel value of the correction target pixel is corrected (the pixel value is increased) using the difference between the correction value and the pixel value of the correction target pixel. The processing when the correction condition is satisfied in one direction is the same as in FIG.

表4に水平及び垂直方向の両方で補正条件が満たした場合の、満たした方向の補正条件の組み合わせと適用する補正式との対応関係を示す。一つの方向で補正条件が満たした場合の補正条件と補正式との対応関係は、先の図9の場合の表3と同じであるので省略する。   Table 4 shows a correspondence relationship between a combination of correction conditions in the satisfied direction and a correction formula to be applied when the correction conditions are satisfied in both the horizontal and vertical directions. Since the correspondence relationship between the correction condition and the correction formula when the correction condition is satisfied in one direction is the same as that in Table 3 in FIG.

Figure 0005293923
Figure 0005293923

図13の処理フローは、図8の処理フローと基本的に同じであるので(図8と図13では補正条件の不等号が逆の関係になっているだけ)、詳しい説明は省略する。   The processing flow of FIG. 13 is basically the same as the processing flow of FIG. 8 (only the inequality signs of the correction conditions are reversed in FIGS. 8 and 13), and detailed description thereof is omitted.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表3のaの補正条件を満たすか判定し(ステップ1001〜1003)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表3のcの補正条件を満たすか判定する(ステップ1004〜1006)。そして、表3のaとcの補正条件が満たした場合、表4の1の補正式を演算して(ステップ1007)、補正対象画素C3の画素値を補正する(画素値を上げる)。すなわち、第1の参照画素C2とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   For example, it is determined whether the correction condition of a in Table 3 is satisfied by C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 1001 to 1003). If satisfied, it is determined whether the correction condition of c in Table 3 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 1004). ~ 1006). When the correction conditions a and c in Table 3 are satisfied, the correction formula 1 in Table 4 is calculated (step 1007), and the pixel value of the correction target pixel C3 is corrected (the pixel value is increased). That is, the correction process is performed using the difference between the average value of the first reference pixels C2 and B3 and the pixel value of the correction target pixel C3.

表3のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表3のdの補正条件を判定する(ステップ1008,1009)。そして、表3のaとdの補正条件が満たした場合、表4の2の補正式を演算して(ステップ1010)、補正対象画素C3の画素値を補正する(画素値を上げる)。すなわち、第1の参照画素C2とD3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   When the correction condition of a in Table 3 is satisfied and the correction condition of c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) Then, the correction condition of d in Table 3 is determined (steps 1008 and 1009). When the correction conditions a and d in Table 3 are satisfied, the correction formula 2 in Table 4 is calculated (step 1010), and the pixel value of the correction target pixel C3 is corrected (the pixel value is increased). That is, the correction process is performed using the difference between the average value of the first reference pixels C2 and D3 and the pixel value of the correction target pixel C3.

図13の場合、例えば、図10と比較して処理が簡略になることから補正処理を行う回路規模が小さくなり、低コスト化することができる。また補正条件が複数方向で満たされた場合に、各々の参照画素値と補正対象画素値との差を用いて補正量をバランスを取りながら画像処理をすることとなり、低コストでコントラストが向上した、見易い画像を表示することができるようになる。   In the case of FIG. 13, for example, the processing is simplified compared to FIG. 10, so that the circuit scale for performing the correction processing is reduced, and the cost can be reduced. In addition, when correction conditions are satisfied in multiple directions, image processing is performed while balancing the correction amount using the difference between each reference pixel value and the correction target pixel value, thereby improving contrast at low cost. Thus, an easy-to-see image can be displayed.

本実施例は先の実施例1及び実施例2を組み合わせたものである。すなわち、各表示画素が単色で構成された画像において、明るいあるいは暗い補正対象画素の暗いあるいは明るい隣接画素の表示への影響による画像の沈み込み及び浮き上がりを押さえることで、単色黒及び単色白のコントラストが向上した見易い画像を表示するものである。   This embodiment is a combination of the first and second embodiments. That is, in an image in which each display pixel is composed of a single color, the contrast of monochrome black and monochrome white is suppressed by suppressing the sinking and lifting of the image due to the influence of the dark or bright neighboring pixel on the bright or dark correction target pixel. An easy-to-view image with improved display is displayed.

図14乃至図18に本実施例の処理フローチャートを示す。処理は図1の画像処理部20が司る。なお、図17と図18が補正式選択部24も使用する例である。以下、各処理フローチャートについて説明する。   14 to 18 show processing flowcharts of the present embodiment. The image processing unit 20 in FIG. 17 and 18 are examples in which the correction formula selection unit 24 is also used. Hereinafter, each processing flowchart will be described.

図14は、各表示画素が単色で構成された画像において、水平または垂直方向に対して補正対象画素に隣接する一方の画素を第1の参照画素、他方の画素を第3の参照画素、補正対象画素から第1の参照画素を挟んだ位置に位置する画素を第2の参照画素としたとき、少なくとも水平または垂直方向に対して第1の参照画素の画素値が補正対象画素の画素値未満であり、第3の参照画素の画素値が補正対象画素の画素値以上であり、かつ第1の参照画素の画素値が第2の参照画素の画素値未満であるか、あるいは、補正対象画素の画素値が第1の参照画素の画素値未満であり、第3の参照画素が補正対象画素の画素値以下であり、かつ第2の参照画素の画素値が第1の参照画素の画素値未満である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する(画素値を下げるか上げる)ものである。   FIG. 14 shows that in an image in which each display pixel is composed of a single color, one pixel adjacent to the correction target pixel in the horizontal or vertical direction is a first reference pixel, and the other pixel is a third reference pixel. When a pixel located at a position sandwiching the first reference pixel from the target pixel is the second reference pixel, the pixel value of the first reference pixel is less than the pixel value of the correction target pixel at least in the horizontal or vertical direction The pixel value of the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and the pixel value of the first reference pixel is less than the pixel value of the second reference pixel, or the correction target pixel Is less than the pixel value of the first reference pixel, the third reference pixel is less than or equal to the pixel value of the correction target pixel, and the pixel value of the second reference pixel is the pixel value of the first reference pixel If the correction condition is less than It corrects the value as close to the pixel value of the first reference pixel (raise or lower the pixel value) is intended.

図14に処理フローにおける補正条件と補正式との対応関係をまとめると表5のようになる。   FIG. 14 summarizes the correspondence between the correction conditions and the correction formulas in the processing flow as shown in Table 5.

Figure 0005293923
Figure 0005293923

表5は先の表1と表3を一緒にしたもので、a1,b1,c1,d1が表1に対応し、a2,b2,c2,d2が表3にそれぞれ対応する。すなわち、a1,b1,c1,d1のいずれかの補正条件が満たした場合には、補正対象画素C3の画素値を下げ、a2,b2,c2,d2のいずれかの補正条件が満たした場合には上げることで、補正対象画素C3の画素値を第1の参照画素(C2,C4,B3又はD3)の画素値に近付ける。このような2種類の補正条件を用いることで、解像度変換を行った画像における一画素ピッチの画像の白黒ピークを判定することができる。   Table 5 is a combination of Table 1 and Table 3, and a1, b1, c1, and d1 correspond to Table 1, and a2, b2, c2, and d2 correspond to Table 3, respectively. That is, when any one of the correction conditions a1, b1, c1, and d1 is satisfied, the pixel value of the correction target pixel C3 is lowered, and when any one of the correction conditions a2, b2, c2, and d2 is satisfied. Is raised to bring the pixel value of the correction target pixel C3 closer to the pixel value of the first reference pixel (C2, C4, B3 or D3). By using these two types of correction conditions, it is possible to determine the black-and-white peak of an image having a single pixel pitch in an image subjected to resolution conversion.

図14の処理フローは、基本的に図4と図9の処理フローを一緒したものであるので、詳細な説明は省略する。図4や図9と同様に、入力画像データの各画素毎に、該画素を補正対象画素C3として、表5のa1〜d2の順番で左側の補正条件を満たすか判定し、満たした場合、その時点で右側の補正式を演算して補正対象画素C3の画素値を補正する(画素値を下げるか上げる)。また、a1〜d2の全ての補正条件が満たさない場合には、補正対象画素C3について補正処理を行わない(C3=C3)。これを入力画像データがなくなるまで繰り返す。   The processing flow in FIG. 14 is basically a combination of the processing flows in FIG. 4 and FIG. As in FIG. 4 and FIG. 9, for each pixel of the input image data, it is determined whether the correction condition on the left side is satisfied in the order of a1 to d2 in Table 5 with the pixel as the correction target pixel C3. At that time, the right correction equation is calculated to correct the pixel value of the correction target pixel C3 (lower or increase the pixel value). When all the correction conditions a1 to d2 are not satisfied, the correction process is not performed on the correction target pixel C3 (C3 = C3). This is repeated until there is no input image data.

一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、補正条件を判定する場合を説明する。C1〜C4により、表5のa1の補正条件を判定し(ステップ1101〜1103)、満たした場合、対応する右側の補正式を演算して(ステップ1104)、補正対象画素C3の画素値を下げて、第1の参照画素C2の画素値に近付ける。表5のa1の補正条件が満たさない場合には、C1〜C4により、表5のa2の補正条件を判定して(ステップ1105〜1107)、満たした場合には、対応する右側の補正式を演算して(ステップ1104)、補正対象画素C3の画素値を上げて、第1の参照画素C2の画素値に近付ける。   As an example, a case will be described in which correction conditions are determined based on C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) in the horizontal direction. Based on C1 to C4, the correction condition of a1 in Table 5 is determined (steps 1101 to 1103), and when satisfied, the corresponding right-side correction formula is calculated (step 1104), and the pixel value of the correction target pixel C3 is lowered. Thus, it approaches the pixel value of the first reference pixel C2. When the correction condition of a1 in Table 5 is not satisfied, the correction condition of a2 in Table 5 is determined by C1 to C4 (Steps 1105 to 1107). Calculation is performed (step 1104), the pixel value of the correction target pixel C3 is increased, and the pixel value of the first reference pixel C2 is approached.

本実施例によれば、解像度変換処理を行った後の画像でも、隣接画素の表示への影響を最も受ける一画素ピッチの画像を補正することができ、補正対象画素の隣接画素の表示への影響を押さえ、単色黒及び単色白のいずれでもコントラストが向上した見易い画像を表示することができる。   According to the present embodiment, even in the image after the resolution conversion processing, an image with one pixel pitch that is most affected by the display of the adjacent pixels can be corrected, and the display of the adjacent pixels of the correction target pixel can be corrected. It is possible to suppress the influence and display an easy-to-see image with improved contrast in either monochrome black or monochrome white.

図15は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たすか判定し、満たした場合には、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が小さい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げるか上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図14と同じである。   FIG. 15 determines whether the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), and if satisfied, the pixel values of the correction target pixels and the horizontal and vertical first values that satisfy the correction condition are determined. Using the correction formula having the smaller difference from the pixel value of one reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (lowering or raising the pixel value). Is. The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図15における補正条件と補正式との対応関係は、先の図14の場合の表5と同じであるので省略する。また、図15の処理フローは、基本的に図5と図10の処理フローを一緒にしたものであるので、詳細な説明は省略する。   The correspondence relationship between the correction condition and the correction formula in FIG. 15 is the same as that in Table 5 in FIG. Further, the processing flow of FIG. 15 is basically a combination of the processing flows of FIG. 5 and FIG.

一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)と垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により補正条件を判定する場合を説明する。C1〜C4により、表5のa1の補正条件を判定し(ステップ1201〜1203)、満たした場合、A3〜D3により、表5のc1の補正条件を満たすか判定する(ステップ1204〜1206)。そして、表5のa1とc1の補正条件が満たした場合、C2とB3の画素値を比較し(ステップ1207)、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ1208又は1209)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を下げる)。表5のa1の補正条件が満たさない場合には、C1〜C4により、表5のa2の補正条件を判定し(ステップ1210〜1212)、満たした場合、A3〜D3により、表5のc2の補正条件を判定する(ステップ1213〜1215)。そして、表5のa2とc2の補正条件が満たした場合、同じくC2とB3の画素値を比較し(ステップ1216)、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ1217又は1218)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を上げる)。   As an example, C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) in the horizontal direction and A3 to D3 (first reference pixel; B3, second reference pixel) in the vertical direction. A3, third reference pixel; D3) will be described for determining the correction condition. The correction conditions for a1 in Table 5 are determined from C1 to C4 (steps 1201 to 1203). If satisfied, the correction conditions for c1 in Table 5 are determined from A3 to D3 (steps 1204 to 1206). If the correction conditions of a1 and c1 in Table 5 are satisfied, the pixel values of C2 and B3 are compared (step 1207), and the right correction equation corresponding to the larger one (the difference from C3 is small) is calculated. (Step 1208 or 1209), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is lowered). If the correction condition of a1 in Table 5 is not satisfied, the correction condition of a2 in Table 5 is determined by C1 to C4 (steps 1210 to 1212). If satisfied, the correction condition of c2 in Table 5 is determined by A3 to D3. The correction condition is determined (steps 1213 to 1215). When the correction conditions of a2 and c2 in Table 5 are satisfied, the pixel values of C2 and B3 are similarly compared (step 1216), and the right-side correction equation corresponding to the larger one (the difference from C3 is small) is calculated. (Step 1217 or 1218), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is increased).

図16は、図15とは逆に、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満すか判定して、満たした場合には、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が大きい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げるか上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図14と同じである。   16, contrary to FIG. 15, it is determined whether the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). If the correction condition is satisfied, the pixel value of the correction target pixel and the correction condition are determined. Correction is performed so that the pixel value of the correction target pixel approaches the pixel value of the first reference pixel by using a correction formula having a larger difference from the pixel value of the filled first and second reference pixels in the horizontal and vertical directions. (Pixel value is lowered or raised). The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図16における補正条件と補正式との対応関係は、先の図14の場合の表5と同じであるので省略する。また、図16の処理フローは、基本的に図6と図11の処理フローを一緒したものであるので、詳細な説明は省略する。   The correspondence between the correction condition and the correction formula in FIG. 16 is the same as that in Table 5 in FIG. Also, the processing flow of FIG. 16 is basically a combination of the processing flows of FIG. 6 and FIG.

ここでも、一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)と垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により補正条件を判定する場合を説明する。C1〜C4により、表5のa1の補正条件を満たすか判定し(ステップ1301〜1303)、満たした場合、A3〜D3により、表5のc1の補正条件を満たすか判定する(ステップ1304〜1306)。そして、表5のa1とc1の補正条件が満たした場合、C2とB3の画素値を比較し(ステップ1307)、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ1308又は1309)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を下げる)。表5のa1の補正条件を満たさない場合には、C1〜C4により、表5のa2の補正条件を判定し(ステップ1310〜1312)、満たした場合、A3〜D3により、表5のc2の補正条件を判定する(ステップ1313〜1315)。そして、表5のa2とc2の補正条件を満たした場合、同じくC2とB3の画素値を比較し(ステップ1316)、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ1317又は1318)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を上げる)。   Here, as an example, C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) and A3 to D3 in the vertical direction (first reference pixel; B3, first) The case where the correction condition is determined by 2 reference pixels; A3, the third reference pixel; D3) will be described. Whether or not the correction condition of a1 in Table 5 is satisfied is determined based on C1 to C4 (Steps 1301 to 1303). If satisfied, the correction condition of c1 in Table 5 is determined based on A3 to D3 (Steps 1304 to 1306). ). If the correction conditions of a1 and c1 in Table 5 are satisfied, the pixel values of C2 and B3 are compared (step 1307), and the right-side correction formula corresponding to the smaller one (the difference from C3 is large) is calculated. (Step 1308 or 1309), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is lowered). When the correction condition of a1 of Table 5 is not satisfied, the correction condition of a2 of Table 5 is determined by C1 to C4 (steps 1310 to 1312). When satisfied, the correction condition of c2 of Table 5 is determined by A3 to D3. The correction condition is determined (steps 1313 to 1315). If the correction conditions of a2 and c2 in Table 5 are satisfied, the pixel values of C2 and B3 are similarly compared (step 1316), and the right-side correction formula corresponding to the smaller one (the difference from C3 is large) is calculated. (Step 1317 or 1318), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is increased).

図17は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、満たした方向の組合せにより、あらかじめ定めた補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げるか上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図14と同じである。   FIG. 17 shows that when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), the pixel value of the correction target pixel is calculated by using a predetermined correction formula depending on the combination of the satisfied directions. The correction is performed so as to approach the pixel value of the first reference pixel (the pixel value is decreased or increased). The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図17における補正条件と補正式との対応関係は、先の図14の場合の表5と同じであるので省略する。また、図17の処理フローは、基本的に図7と図12の処理フローを一緒にしたものであるので、詳細な説明は省略する。   The correspondence relationship between the correction condition and the correction formula in FIG. 17 is the same as that in Table 5 in FIG. Also, the processing flow of FIG. 17 is basically a combination of the processing flows of FIG. 7 and FIG. 12, and detailed description thereof will be omitted.

ここでも、一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)垂直方向のA3〜D3(第1参照画素;B2、第2参照画素;A3、第3参照画素;D3)により補正条件を判定する場合を説明する。C1〜C4により、表5のa1の補正条件を判定し(ステップ1401〜1403)、満たした場合、D3≦C3を判定し(ステップ1404)、判定結果がYESならば(表5のc1の補正条件も満たされる可能性がある)、表5のa1の補正式を演算して(ステップ1405)、補正対象画素C3の画素値をC2の画素値に近付ける(画素値を下げる)。表5のa1の補正条件が満たさない場合には、C1〜C4により、表5のa2の補正条件を判定する(ステップ1406〜1408)。表5のa2の補正条件が満たした場合、D3≦C3を判定し(ステップ1409)、判定結果がYESならば(表5のc2の補正条件も満たされる可能性がある)、表5のa2の補正式を演算して(ステップ1405)、補正対象画素C3の画素値をC2の画素値に近付ける(画素値を上げる)。   Here, as an example, C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) A3 to D3 in the vertical direction (first reference pixel; B2, second The case where the correction condition is determined by the reference pixel; A3, the third reference pixel; D3) will be described. Based on C1 to C4, the correction condition of a1 in Table 5 is determined (Steps 1401 to 1403). If satisfied, D3 ≦ C3 is determined (Step 1404). If the determination result is YES (correction of c1 in Table 5) The condition may also be satisfied), and the correction formula of a1 in Table 5 is calculated (step 1405), and the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 (the pixel value is lowered). When the correction condition of a1 in Table 5 is not satisfied, the correction condition of a2 in Table 5 is determined based on C1 to C4 (Steps 1406 to 1408). If the correction condition of a2 in Table 5 is satisfied, D3 ≦ C3 is determined (step 1409), and if the determination result is YES (c2 correction condition of Table 5 may also be satisfied), a2 of Table 5 Is calculated (step 1405), and the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 (the pixel value is increased).

図17の処理フローを図15や図16のそれと比較すれば明らかであるように、複数方向にて補正条件を満たした場合、満たした方向の組み合わせにより、予め定めた補正式を用いて補正対象画素の画素値を補正するようにすることにより、処理が簡略となる。このことから補正処理を行う回路規模が小さくなり、低コスト化することができる。また、複数方向にて補正条件を満たし、且つ参照画素値と補間画素の画素値の差が複数方向で異なることは、画像全体から見ると少なく、画質への影響は少ないことが多いので、画質の差が少ないのに低コストで、コントラストが向上した、見易い画像を表示することができる。   As is clear when the processing flow of FIG. 17 is compared with that of FIGS. 15 and 16, when correction conditions are satisfied in a plurality of directions, a correction target is determined using a predetermined correction formula depending on the combination of the satisfied directions. By correcting the pixel value of the pixel, the process is simplified. Therefore, the circuit scale for performing the correction process can be reduced and the cost can be reduced. In addition, since the correction conditions are satisfied in multiple directions and the difference between the pixel value of the reference pixel value and the interpolated pixel is different in the multiple directions, it is small when viewed from the whole image, and the influence on the image quality is often small. Although the difference is small, it is possible to display an easy-to-view image with low cost and improved contrast.

図18は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満した場合に、補正条件を満たした各々の第1の参照画素の画素値間の値(ここでは平均値)と補正対象画素の画素値との差を用いて、補正対象画素の画素値を補正する(画素値を下げるか上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図14と同じである。   FIG. 18 shows values (herein, average values) between pixel values of the first reference pixels that satisfy the correction condition when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). And the pixel value of the correction target pixel are used to correct the pixel value of the correction target pixel (lower or increase the pixel value). The processing when the correction condition is satisfied in one direction is the same as that in FIG.

表6に水平及び垂直方向の両方で補正条件が満たした場合の、満たした方向の補正条件の組み合わせと適用する補正式との対応関係を示す。一つの方向で補正条件が満たした場合の補正条件と補正式との対応関係は、先の図14の場合の表5と同じであるので省略する。   Table 6 shows a correspondence relationship between a combination of correction conditions in the satisfied direction and a correction formula to be applied when the correction conditions are satisfied in both the horizontal and vertical directions. The correspondence relationship between the correction condition and the correction formula when the correction condition is satisfied in one direction is the same as that in Table 5 in FIG.

Figure 0005293923
Figure 0005293923

図18の処理フローは、基本的に図8と図13の処理フローを一緒にしたものであるので、詳細な説明は省略する。   The processing flow of FIG. 18 is basically a combination of the processing flows of FIG. 8 and FIG.

ここでも、一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)と垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により補正条件を判定する場合を説明する。C1〜C4により、表5のa1の補正条件を判定し(ステップ1501〜1503)、満たした場合、A3〜D3により、表5のc1の補正条件を判定する(ステップ1504〜1506)。そして、表5のa1とc1の補正条件が満たした場合、表6の1の補正式を演算して(ステップ1507)、補正対象画素C3の画素値を補正する(画素値を下げる)。すなわち、第1の参照画素C2とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。表5のa1の補正条件が満たさない場合には、C1〜C4により、表5のa2の補正条件を判定し(ステップ1508〜1510)、満たした場合、A3〜D3により、表5のc2の補正条件を判定する(ステップ1511〜1513)。そして、表5のa2とc2の補正条件を満たした場合、表6の2の補正式を演算して(ステップ1514)、補正対象画素C3の画素値を補正する(画素値を上げる)。すなわち、第1の参照画C2とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   Here, as an example, C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) and A3 to D3 in the vertical direction (first reference pixel; B3, first) The case where the correction condition is determined by 2 reference pixels; A3, the third reference pixel; D3) will be described. The correction conditions for a1 in Table 5 are determined from C1 to C4 (Steps 1501 to 1503), and if satisfied, the correction conditions for c1 in Table 5 are determined from A3 to D3 (Steps 1504 to 1506). When the correction conditions a1 and c1 in Table 5 are satisfied, the correction formula 1 in Table 6 is calculated (Step 1507), and the pixel value of the correction target pixel C3 is corrected (the pixel value is lowered). That is, the correction process is performed using the difference between the average value of the first reference pixels C2 and B3 and the pixel value of the correction target pixel C3. If the correction condition of a1 in Table 5 is not satisfied, the correction condition of a2 in Table 5 is determined by C1 to C4 (steps 1508 to 1510). If satisfied, the correction condition of c2 in Table 5 is determined by A3 to D3. Correction conditions are determined (steps 1511 to 1513). If the correction conditions a2 and c2 in Table 5 are satisfied, the correction formula 2 in Table 6 is calculated (step 1514), and the pixel value of the correction target pixel C3 is corrected (the pixel value is increased). That is, the correction process is performed using the difference between the average value of the first reference images C2 and B3 and the pixel value of the correction target pixel C3.

図18の場合、例えば、図15と比較して処理が簡略になることから補正処理を行う回路規模が小さくなり、低コスト化することができる。また補正条件が複数方向で満たされた場合に、各々の参照画素値と補正対象画素値との差を用いて補正量をバランスを取りながら画像処理をすることとなり、低コストでコントラストが向上した、見易い画像を表示することができるようになる。   In the case of FIG. 18, for example, the processing is simplified compared to FIG. In addition, when correction conditions are satisfied in multiple directions, image processing is performed while balancing the correction amount using the difference between each reference pixel value and the correction target pixel value, thereby improving contrast at low cost. Thus, an easy-to-see image can be displayed.

本実施例は、先の実施例1をカラー画像に拡張したものである。複数の色成分(原色成分)による表示では、補正処理の判断を個々に色成分で行うと、個々の色成分で異なる処理を行う場合があり、異なる処理を行うことにより色バランスが崩れる。   In this embodiment, the previous embodiment 1 is extended to a color image. In the display using a plurality of color components (primary color components), if the determination of correction processing is performed individually for each color component, different processing may be performed for each color component, and the color balance is lost by performing different processing.

本実施例は、各表示画素が複数の色成分で構成された画像において、実施例1の補正処理を行う条件が全ての色成分で整った場合、補正対象画素の画素値を下げることで、明るい隣接画素の表示への影響による画像(カラー黒)の浮き上がりを押さえて、複数の色成分の表示において色バランスがとれ、コントラストが向上した見易い画像を表示するものである。   In the present embodiment, in the image in which each display pixel is configured with a plurality of color components, when the conditions for performing the correction process of the first embodiment are satisfied for all the color components, by lowering the pixel value of the correction target pixel, By suppressing the floating of an image (color black) due to the influence on the display of bright adjacent pixels, an easy-to-view image with improved color balance and display of a plurality of color components is displayed.

図19乃至図23に本実施例の処理フローチャートを示す。処理は図2の画像処理部20が司る。なお、図22と図23が補正式選択部24も使用する例である。以下、各処理フローチャートについて説明する。   19 to 23 show processing flowcharts of the present embodiment. The processing is managed by the image processing unit 20 in FIG. 22 and 23 are examples in which the correction formula selection unit 24 is also used. Hereinafter, each processing flowchart will be described.

図19は、図4の処理フローを各表示画素が複数の色成分(原色成分)で構成された画像に拡張し、水平または垂直方向に対して補正対象画素に隣接する一方の画素を第1の参照画素、他方の画素を第3の参照画素、補正対象画素から第1の参照画素を挟んだ位置に位置する画素を第2の参照画素としたとき、少なくとも水平または垂直方向に対して全ての色成分にて第1の参照画素の画素値が第2の参照画素の画素値未満で、第3の参照画素の画素値が補正対象画素の画素値以上であり、かつ、少なくとも一つの色成分で第1の参照画素の画素値が補正対象画素の画素値未満(他の色成分の第1参照画素の画素値と補正対象画素の画素値は等しい)である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する(画素値を下げる)ものである。
図19における補正条件と補正式との対応関係をまとめると表7のようになる。
19 expands the processing flow of FIG. 4 to an image in which each display pixel is composed of a plurality of color components (primary color components), and one pixel adjacent to the correction target pixel in the horizontal or vertical direction is displayed as a first pixel. Reference pixel, the other pixel as the third reference pixel, and the pixel located at the position sandwiching the first reference pixel from the correction target pixel as the second reference pixel, all at least in the horizontal or vertical direction In the color component, the pixel value of the first reference pixel is less than the pixel value of the second reference pixel, the pixel value of the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and at least one color When the pixel satisfies the correction condition that the pixel value of the first reference pixel is less than the pixel value of the correction target pixel (the pixel value of the first reference pixel of the other color component is equal to the pixel value of the correction target pixel) in the component, The pixel value of the correction target pixel is brought close to the pixel value of the first reference pixel Corrected to those which (lower pixel values).
Table 7 summarizes the correspondence between the correction conditions and the correction formulas in FIG.

Figure 0005293923
Figure 0005293923

ここで、C1,C2,C3,C4,A3,B3,D3,E3は図2に示した通りであり、C3が補正対象画素である。aとbが水平方向の補正条件と補正式、cとdが垂直方向の補正条件と補正式の対応関係を示し、それぞれ左側の補正条件が満たした場合、対応する右側の補正式を適用して補正対象画素C3の画素値を第1の参照画素(C2,C4,B3又はD3)の画素値に近付ける(画素値を下げる)。
表7の補正条件とすることで、解像度変換を行った画像における周囲より暗い一画素ピッチの画像のピークを判定することができる。
Here, C1, C2, C3, C4, A3, B3, D3, and E3 are as shown in FIG. 2, and C3 is a correction target pixel. a and b are horizontal correction conditions and correction equations, and c and d are vertical correction conditions and correction equations. When the left correction conditions are satisfied, the corresponding right correction equations are applied. Thus, the pixel value of the correction target pixel C3 is brought close to the pixel value of the first reference pixel (C2, C4, B3, or D3) (the pixel value is lowered).
By setting the correction conditions in Table 7, it is possible to determine the peak of an image having a pixel pitch that is darker than the surroundings in the image subjected to resolution conversion.

図19の処理フローは、図4の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。入力画像データの各画素毎に、該画素を補正対象画素C3として、表7のa〜dの順番で左側の補正条件を満たすか判定し、満たした場合、その時点で左側の補正式を色成分の数だけ繰り返し演算して、補正対象画素C3の画素値を補正する(画素値を下げる)。また、表7のa〜dの全ての補正条件が満たさない場合には、補正対象画素C3について補正処理を行わない(C3=C3)。これを入力画像データがなくなるまで繰り返す。   The processing flow of FIG. 19 is an extension of the processing flow of FIG. 4 when each display pixel is composed of a plurality of color components, and the processing is basically the same. For each pixel of the input image data, it is determined whether the left correction condition is satisfied in the order of “a” to “d” in Table 7 with this pixel as the correction target pixel C3. The calculation is repeated by the number of components to correct the pixel value of the correction target pixel C3 (lower the pixel value). When all the correction conditions a to d in Table 7 are not satisfied, the correction process is not performed on the correction target pixel C3 (C3 = C3). This is repeated until there is no input image data.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表7のaの補正条件を判定し(ステップ1601〜1604)、満たした場合、対応する右側の補正式を色成分の数だけ繰り返し演算して(ステップ1605〜1607)、補正対象画素C3の画素値を補正する。この結果、C3におけるC3>C2の色成分の画素値が下がり、C2の画素値に近づく。   For example, the correction conditions of a in Table 7 are determined based on C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 1601 to 1604) and satisfied. In such a case, the corresponding correction formula on the right side is repeatedly calculated by the number of color components (steps 1605 to 1607) to correct the pixel value of the correction target pixel C3. As a result, the pixel value of the color component of C3> C2 in C3 decreases and approaches the pixel value of C2.

図19のように補正処理を行うことで、解像度変換処理を行った後の画像でも、隣接画素の表示への影響を最も受ける一画素ピッチの画像を補正することができ、明るい補正対象画素の明るい隣接画素の表示への影響による画像の浮き上がりを押さえ、しかも、全色成分を補正条件の判定に用いることにより、色ずれが発生せず、色バランスがとれ、コントラストが向上した見易い画像を表示することができる。   By performing the correction process as shown in FIG. 19, even an image after performing the resolution conversion process can correct an image of one pixel pitch that is most affected by the display of adjacent pixels, and the bright correction target pixels can be corrected. Suppresses the rise of the image due to the effect on the display of bright neighboring pixels, and uses all the color components for judgment of the correction condition, thereby displaying an easy-to-view image with no color shift, color balance, and improved contrast can do.

図20は水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たすか判定し、満たした場合には、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が小さい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げる)ものである。なお、一つの方向にて補正条件が満たした場合の処理は図19と同じである。   FIG. 20 determines whether the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). If the correction condition is satisfied, the first value in the horizontal and vertical directions satisfying the pixel value of the correction target pixel and the correction condition is determined. Using the correction formula with the smaller difference from the pixel value of the reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (the pixel value is lowered). . The process when the correction condition is satisfied in one direction is the same as that in FIG.

図20における補正条件と補正式との対応関係は、先の図19の場合の表7と同じであるので省略する。また、図20の処理フローは、図5の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。   The correspondence relationship between the correction condition and the correction formula in FIG. 20 is the same as in Table 7 in FIG. The processing flow of FIG. 20 is an extension of the processing flow of FIG. 5 when each display pixel is composed of a plurality of color components, and the processing is basically the same.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表7のaの補正条件を満たすか判定し(ステップ1701〜1704)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表7のcの補正条件を満たすか判定する(ステップ1705〜1708)。そして、表7のaとcの補正条件が満たした場合、各色成分について、C2とB3の画素値を比較し、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ1709,1710又は1711、1712、1713)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を下げる)。   For example, whether or not the correction condition of a in Table 7 is satisfied is determined based on horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 1701 to 1704). If satisfied, it is determined whether the correction condition of c in Table 7 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 1705). ~ 1708). When the correction conditions a and c in Table 7 are satisfied, the pixel values of C2 and B3 are compared for each color component, and the right correction equation corresponding to the larger one (the difference from C3 is small) is calculated. (Steps 1709, 1710 or 1711, 1712, 1713), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is lowered).

また、表7のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表7のdの補正条件を判定する(ステップ1714〜1716)。そして、表7のaとdの補正条件が満たした場合、各色成分について、C2とD3の画素値を比較し、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ1717、1718又は1719、1720、1721)、補正対象画素C3の画素値をC2あるいはD3の画素値に近付ける(画素値を下げる)。   If the correction condition a in Table 7 is satisfied and the correction condition c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3 ) To determine the correction condition of d in Table 7 (steps 1714 to 1716). When the correction conditions a and d in Table 7 are satisfied, the pixel values of C2 and D3 are compared for each color component, and the right correction equation corresponding to the larger one (the difference from C3 is small) is calculated. (Steps 1717, 1718 or 1719, 1720, 1721), the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 or D3 (the pixel value is lowered).

このように水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、各色成分について、補正対象画素C3と第1の参照画素と差が小さい方の補正式を用いて補正対象画素C3の画素値を補正する(画素値を下げる)ことで、色バランスがとれ、効果が大きくなりすぎることなく、表示画像のコントラストを向上させることができる。   As described above, when the correction condition is satisfied in both the horizontal and vertical directions (generally, in a plurality of directions), for each color component, the correction formula with the smaller difference between the correction target pixel C3 and the first reference pixel is used. By correcting the pixel value of the correction target pixel C3 (lowering the pixel value), the color balance can be achieved and the contrast of the display image can be improved without increasing the effect.

図21は、図20とは逆に、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が大きい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げる)ものである。一つの方向にて補正条件が満たした場合の処理は図19と同じである。   In contrast to FIG. 20, when the correction conditions are satisfied in both the horizontal and vertical directions (generally a plurality of directions), FIG. 21 shows the horizontal and vertical directions that satisfy the pixel values of the correction target pixels and the correction conditions. Using a correction formula having a larger difference from the pixel value of the first reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (lowering the pixel value) It is. The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図21における補正条件と補正式との対応関係は、先の図19の場合の表7と同じであるので省略する。また、図21の処理フローは、図6の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。   The correspondence relationship between the correction condition and the correction formula in FIG. 21 is the same as that in Table 7 in FIG. The processing flow of FIG. 21 is an extension of the processing flow of FIG. 6 when each display pixel is composed of a plurality of color components, and the processing is basically the same.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表7のaの補正条件を満たすか判定し(ステップ1801〜1804)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表7のcの補正条件を満たすか判定する(ステップ1805〜1808)。そして、表7のaとcの補正条件が満たした場合、各色成分について、C2とB3の画素値を比較し、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ1809、1810又は1811、1812、1813)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を下げる)。   For example, it is determined whether or not the correction condition of a in Table 7 is satisfied based on horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 1801 to 1804). If satisfied, it is determined whether or not the correction condition of c in Table 7 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 1805). ~ 1808). When the correction conditions a and c in Table 7 are satisfied, the pixel values of C2 and B3 are compared for each color component, and the right-side correction formula corresponding to the smaller one (the difference from C3 is large) is calculated. (Steps 1809, 1810 or 1811, 1812, 1813), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is lowered).

また、表7のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表7のdの補正条件を判定する(ステップ1814〜1816)。そして、表7のaとdの補正条件が満たした場合、C2とD3の画素値を比較し、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ1817、1818又は1819、1820、1821)、補正対象画素C3の画素値をC2あるいはD3の画素値に近付ける(画素値を下げる)。   If the correction condition a in Table 7 is satisfied and the correction condition c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3 ) To determine the correction condition of d in Table 7 (steps 1814 to 1816). Then, when the correction conditions of a and d in Table 7 are satisfied, the pixel values of C2 and D3 are compared, and the right correction equation corresponding to the smaller one (the difference from C3 is large) is calculated (step 1817). 1818 or 1819, 1820, 1821), the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 or D3 (the pixel value is lowered).

このように、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素C3と第1の参照画素と差が大きい方の補正式を用いて補正対象画素C3の画素値を補正する(画素値を下げる)ことで、差の小さい参照画素側に過剰な補正がかかる場合もあるが、その頻度は一般に少なく、画像全体では影響が微妙であり、定数Z(補正割合)の値により英気用を軽減することもできる。その影響に比べ、はるかにコントラストが向上し、色バランスがとれた、見易い画像を表示することができる。   As described above, when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), the correction target pixel is calculated using the correction formula having the larger difference between the correction target pixel C3 and the first reference pixel. By correcting the pixel value of C3 (lowering the pixel value), excessive correction may be applied to the reference pixel side with a small difference, but the frequency is generally low and the influence on the entire image is subtle, and the constant Z The use of sympathy can be reduced by the value of (correction ratio). Compared with the influence, it is possible to display an easy-to-view image with much improved contrast and color balance.

図22は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、満たした方向の組合せにより、予め定めた補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げる)ものである。一つの方向にて補正条件が満たした場合の処理は図19と同じである。   FIG. 22 shows that when the correction condition is satisfied in both the horizontal and vertical directions (generally, in a plurality of directions), the pixel value of the correction target pixel is calculated using a predetermined correction formula depending on the combination of the satisfied directions. The correction is made so as to approach the pixel value of the first reference pixel (the pixel value is lowered). The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図22における補正条件と補正式との対応関係は、先の図19の場合の表7と同じであるので省略する。また、図22の処理フローは、図7の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。   The correspondence between the correction condition and the correction formula in FIG. 22 is the same as that in Table 7 in FIG. The processing flow of FIG. 22 is an extension of the processing flow of FIG. 7 when each display pixel is composed of a plurality of color components, and the processing is basically the same.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表7のaの補正条件を満たすか判定する(ステップ1901〜1904)。満たした場合、全色成分がD3≧C3か判定し(ステップ1905)、判定結果がYESならば、各色成分について、表7のaの右側の補正式を演算して(ステップ1906〜1908)、補正対象画素C3の画素値をC2の画素値に近付ける(画素値を下げる)。すなわち、表7のaの補正条件が満たし、かつ、cの補正条件が満たす場合(満たす可能性がある場合)には、aの補正式を用いて補正対象画素C3の画素値を補正する。   For example, it is determined whether the correction condition of a in Table 7 is satisfied by C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 1901 to 1904). . If satisfied, it is determined whether all the color components are D3 ≧ C3 (step 1905). If the determination result is YES, the correction formula on the right side of Table 7a is calculated for each color component (steps 1906 to 1908), The pixel value of the correction target pixel C3 is brought close to the pixel value of C2 (the pixel value is lowered). That is, when the correction condition a in Table 7 is satisfied and the correction condition c is satisfied (when it may be satisfied), the pixel value of the correction target pixel C3 is corrected using the correction expression a.

また、D3≧C3の判定結果がNOの場合には、表7のdの補正条件を判定し(ステップ1909〜1911)、満たした場合には、すなわち、表7のaとdの補正条件が満たした場合、各色成分について、表7のdの右側の補正式を演算して(ステップ1912〜1914)、補正対象画素C3の画素値をD3の画素値に近付ける(画素値を下げる)。   If the determination result of D3 ≧ C3 is NO, the correction condition for d in Table 7 is determined (Steps 1909 to 1911), and if satisfied, that is, the correction conditions for a and d in Table 7 are satisfied. When satisfied, the correction formula on the right side of d in Table 7 is calculated for each color component (steps 1912 to 1914), and the pixel value of the correction target pixel C3 is brought close to the pixel value of D3 (the pixel value is lowered).

図22を図20や図21と比較すれば明らかであるように、複数方向にて補正条件を満たした場合、満たした方向の組み合わせにより、予め定めた補正式を用いて補正対象画素の画素値を補正するようにすることにより、処理が簡略となる。このことから補正処理を行う回路規模が小さくなり、低コスト化することができる。また、複数方向にて補正条件を満たし、且つ参照画素値と補間画素の画素値の差が複数方向で異なることは、画像全体から見ると少なく、画質への影響は少ないことが多いので、画質の差が少ないのに低コストで、色バランスがとれ、コントラストが向上した、見易い画像を表示することができる。   As is clear from comparing FIG. 22 with FIG. 20 and FIG. 21, when the correction conditions are satisfied in a plurality of directions, the pixel value of the correction target pixel is determined using a predetermined correction formula depending on the combination of the satisfied directions. By correcting the above, the processing is simplified. Therefore, the circuit scale for performing the correction process can be reduced and the cost can be reduced. In addition, since the correction conditions are satisfied in multiple directions and the difference between the pixel value of the reference pixel value and the interpolated pixel is different in the multiple directions, it is small when viewed from the whole image, and the influence on the image quality is often small. However, it is possible to display an easy-to-see image with low color, good color balance and improved contrast.

図23は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満した場合に、補正条件を満たした各々の第1の参照画素の画素値間の値(ここでは平均値)と補正対象画素の画素値との差を用いて、補正対象画素の画素値を補正する(画素値を下げる)ものである。一つの方向にて補正条件が満たした場合の処理は図19と同じである。   FIG. 23 shows values (here, average values) between pixel values of the first reference pixels that satisfy the correction condition when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). The pixel value of the correction target pixel is corrected (the pixel value is lowered) using the difference between the pixel value of the correction target pixel and the pixel value of the correction target pixel. The processing when the correction condition is satisfied in one direction is the same as that in FIG.

表8に水平及び垂直方向の両方で補正条件が満たした場合の、満たした方向の補正条件の組み合わせと適用する補正式との対応関係を示す。一つの方向で補正条件が満たした場合の補正条件と補正式との対応関係は、先の図19の場合の表7と同じであるので省略する。   Table 8 shows a correspondence relationship between a combination of correction conditions in the satisfied direction and a correction formula to be applied when the correction conditions are satisfied in both the horizontal and vertical directions. The correspondence between the correction condition and the correction formula when the correction condition is satisfied in one direction is the same as that in Table 7 in FIG.

Figure 0005293923
Figure 0005293923

図23の処理フローは、図8の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。   The processing flow of FIG. 23 is an extension of the processing flow of FIG. 8 when each display pixel is composed of a plurality of color components, and the processing is basically the same.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表7のaの補正条件を満たすか判定し(ステップ2001〜2004)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表7のcの補正条件を満たすか判定する(ステップ2005〜2008)。そして、表7のaとcの補正条件が満たした場合、各色成分について、表8の1の補正式を演算して(ステップ2009〜2011)、補正対象画素C3の画素値を補正する(画素値を下げる)。すなわち、第1の参照画素C2とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   For example, whether or not the correction condition of a in Table 7 is satisfied is determined based on horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 2001 to 2004). When satisfied, it is determined whether the correction condition of c in Table 7 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 2005). ~ 2008). When the correction conditions a and c in Table 7 are satisfied, the correction formula 1 in Table 8 is calculated for each color component (Steps 2009 to 2011), and the pixel value of the correction target pixel C3 is corrected (pixels). Lower the value). That is, the correction process is performed using the difference between the average value of the first reference pixels C2 and B3 and the pixel value of the correction target pixel C3.

また、表7のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)の補正条件を判定する(ステップ2012〜2014)。そして、表7のaとdの補正条件が満たした場合、各色成分について、表8の2の右側の補正式を演算して(ステップ2015〜2017)、補正対象画素C3の画素値を補正する(画素値を下げる)。すなわち、第1の参照画素C2とD3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   If the correction condition a in Table 7 is satisfied and the correction condition c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3 ) Is determined (steps 2012 to 2014). If the correction conditions a and d in Table 7 are satisfied, the correction formula on the right side of 2 in Table 8 is calculated for each color component (steps 2015 to 2017), and the pixel value of the correction target pixel C3 is corrected. (Decrease the pixel value). That is, the correction process is performed using the difference between the average value of the first reference pixels C2 and D3 and the pixel value of the correction target pixel C3.

図23の場合、例えば、図20と比較して処理が簡略になることから補正処理を行う回路規模が小さくなり、低コスト化することができる。また補正条件が複数方向で満たされた場合に、各々の参照画素値と補正対象画素値との差を用いて補正量をバランスを取りながら画像処理をすることとなり、低コストでコントラストが向上した、色バランスのとれた見易い画像を表示することができるようになる。   In the case of FIG. 23, for example, the processing is simplified as compared with FIG. 20, so that the circuit scale for performing the correction processing is reduced, and the cost can be reduced. In addition, when correction conditions are satisfied in multiple directions, image processing is performed while balancing the correction amount using the difference between each reference pixel value and the correction target pixel value, thereby improving contrast at low cost. This makes it possible to display an easy-to-view image with a well-balanced color.

本実施例は、各表示画素が複数の色成分で構成された画像において、実施例4とは逆に、全色成分について画素の明るい隣接画素の表示への影響による画像(カラー白)の沈み込みを押さえて、色バランスがとれ、コントラストが向上した見易い画像を表示するものである。   In this embodiment, in an image in which each display pixel is composed of a plurality of color components, contrary to the fourth embodiment, the image (color white) sinks due to the influence on the display of bright adjacent pixels of all the color components. The image is displayed with an easy-to-view image with good color balance and improved contrast.

図24乃至図28に本実施例の処理フローチャートを示す。処理は図1の画像処理部20が司る。なお、図27と図28が補正式選択部24も使用する例である。以下、各処理フローチャートについて説明する。   24 to 28 show processing flowcharts of the present embodiment. The image processing unit 20 in FIG. 27 and 28 are examples in which the correction formula selection unit 24 is also used. Hereinafter, each processing flowchart will be described.

図24は、各表示画素が複数の色成分で構成された画像において、水平または垂直方向に対して補正対象画素に隣接する一方の画素を第1の参照画素、他方の画素を第3の参照画素、補正対象画素から第1の参照画素を挟んだ位置に位置する画素を第2の参照画素としたとき、少なくとも水平または垂直方向に対して全ての色成分にて第2の参照画素の画素値が第1の参照画素の画素値未満で、第3の参照画素の画素値が補正対象画素の画素値以下であり、かつ、少なくとも一つの色成分で補正対象画素の画素値が第1の参照画素の画素値未満(他の色成分の第1参照画素の画素値と補正対象画素の画素値は等しい)である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する(画素値を上げる)ものである。   FIG. 24 shows that in an image in which each display pixel is composed of a plurality of color components, one pixel adjacent to the correction target pixel in the horizontal or vertical direction is the first reference pixel, and the other pixel is the third reference. When a pixel located at a position sandwiching the first reference pixel from the pixel to be corrected is a second reference pixel, the pixel of the second reference pixel in all color components at least in the horizontal or vertical direction The pixel value of the correction target pixel is less than the pixel value of the first reference pixel, the pixel value of the third reference pixel is less than or equal to the pixel value of the correction target pixel, and the pixel value of the correction target pixel is at least one color component. When the correction condition that is less than the pixel value of the reference pixel (the pixel value of the first reference pixel of the other color component is equal to the pixel value of the correction target pixel) is satisfied, the pixel value of the correction target pixel is set to the first reference pixel. Correct the pixel value closer to (by increasing the pixel value ) It is intended.

図24における補正条件と補正式との対応関係をまとめると表9のようになる。   Table 9 summarizes the correspondence between the correction conditions and the correction formulas in FIG.

Figure 0005293923
Figure 0005293923

ここで、C1,C2,C3,C4,A3,B3,D3,E3は図2に示した通りであり、C3が補正対象画素である。aとbが水平方向の補正条件と補正式、cとdが垂直方向の補正条件と補正式の対応関係を示し、それぞれ、左側の補正条件が満たした場合、対応する右側の補正式を適用して補正対象画素C3の画素値を第1の参照画素(C2,C4,B3又はD3)の画素値に近付ける(画素値を上げる)。
このような補正条件とすることで、解像度変換を行った画像における周囲より明るい一画素ピッチの画像のピーク(白線等)を判定することができる。
Here, C1, C2, C3, C4, A3, B3, D3, and E3 are as shown in FIG. 2, and C3 is a correction target pixel. a and b are correction conditions and correction formulas in the horizontal direction, and c and d are correspondence relations between correction conditions and correction formulas in the vertical direction. When the correction conditions on the left side are satisfied, the corresponding correction formula on the right side is applied. Thus, the pixel value of the correction target pixel C3 is brought close to the pixel value of the first reference pixel (C2, C4, B3, or D3) (the pixel value is increased).
By setting such a correction condition, it is possible to determine a peak (white line or the like) of an image having a pixel pitch that is brighter than the surroundings in the resolution-converted image.

図24の処理フローは、図9の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。入力画像データの各画素毎に、該画素を補正対象画素C3として、表9のa〜dの順番で左側の補正条件を満たすか判定し、満たした場合、その時点で左側の補正式を色成分の数だけ繰り返し演算して、補正対象画素C3の画素値を補正する(画素値を上げる)。また、表9のa〜dの全ての補正条件が満たさない場合には、補正対象画素C3について補正処理を行わない(C3=C3)。これを入力画像データがなくなるまで繰り返す。   The processing flow of FIG. 24 is an extension of the processing flow of FIG. 9 when each display pixel is composed of a plurality of color components, and the processing is basically the same. For each pixel of the input image data, it is determined whether or not the left correction condition is satisfied in the order of “a” to “d” in Table 9 with this pixel as the correction target pixel C3. The calculation is repeated by the number of components to correct the pixel value of the correction target pixel C3 (increase the pixel value). If all the correction conditions a to d in Table 9 are not satisfied, the correction process is not performed on the correction target pixel C3 (C3 = C3). This is repeated until there is no input image data.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表9のaの補正条件を判定し(ステップ2101〜2104)、満たした場合、対応する右側の補正式を色成分の数だけ繰り返し演算して(ステップ2105〜2107)、補正対象画素C3の画素値を第1の参照画素C2の画素値に近付けるように補正する(画素値を上げる)。   For example, the correction conditions of a in Table 9 are determined based on C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) in the horizontal direction (steps 2101 to 2104) and satisfied. In this case, the corresponding correction formula on the right side is repeatedly calculated by the number of color components (steps 2105 to 2107), and correction is performed so that the pixel value of the correction target pixel C3 approaches the pixel value of the first reference pixel C2 ( Increase the pixel value).

図24のように補正処理を行うことで、解像度変換処理を行った後の画像でも、隣接画素の表示への影響を最も受ける一画素ピッチの画像を補正することができ、暗い補正対象画素の明るい隣接画素の表示への影響による画像の沈み込みを押さえ、しかも、全色成分を補正条件の判定に用いることにより、色ずれが発生せず、色バランスがとれ、コントラストが向上した見易い画像を表示することができる。   By performing the correction process as shown in FIG. 24, it is possible to correct an image of one pixel pitch that is most affected by the display of adjacent pixels even in an image after performing the resolution conversion process. By suppressing the sinking of the image due to the effect on the display of bright neighboring pixels, and using all the color components for the determination of the correction condition, an easy-to-view image with no color shift, color balance, and improved contrast can be obtained. Can be displayed.

図25は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たすか判定し、満たした場合には、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が小さい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図24と同じである。   FIG. 25 determines whether or not the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), and if satisfied, the pixel values of the correction target pixels and the horizontal and vertical directions satisfying the correction condition are determined. Using the correction formula with the smaller difference from the pixel value of one reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (the pixel value is increased). is there. The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図25における補正条件と補正式との対応関係は、先の図24の場合の表9と同じであるので省略する。また、図25の処理フローは、図10の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。   The correspondence between the correction condition and the correction formula in FIG. 25 is the same as that in Table 9 in FIG. The processing flow of FIG. 25 is an extension of the processing flow of FIG. 10 when each display pixel is composed of a plurality of color components, and the processing is basically the same.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表9のaの補正条件を満たすか判定し(ステップ2201〜2204)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表9のcの補正条件を満たすか判定する(ステップ2205〜2208)。表9のaとcの補正条件が満たした場合、各色成分について、C2とB3の画素値を比較し、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ2209,2210又は2211、2212、2213)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を上げる)。   For example, whether or not the correction condition of a in Table 9 is satisfied is determined based on horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 2201 to 2204). If satisfied, it is determined whether the correction condition of c in Table 9 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 2205). ~ 2208). When the correction conditions a and c in Table 9 are satisfied, the pixel values of C2 and B3 are compared for each color component, and the right correction equation corresponding to the larger one (the difference from C3 is small) is calculated ( Step 2209, 2210 or 2211, 2122, 2213), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is increased).

表9のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表9のdの補正条件を判定する(ステップ2214〜2216)。表9のaとdの補正条件が満たした場合、各色成分について、C2とD3の画素値を比較し、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ2217、2218又は2219、2220、2221)、補正対象画素C3の画素値をC2あるいはD3の画素値に近付ける(画素値を上げる)。   When the correction condition a in Table 9 is satisfied and the correction condition c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3) Then, the correction condition of d in Table 9 is determined (steps 2214 to 2216). When the correction conditions of a and d in Table 9 are satisfied, the pixel values of C2 and D3 are compared for each color component, and the right-side correction equation corresponding to the larger one (the difference from C3 is small) is calculated ( Step 2217, 2218 or 2219, 2220, 2221), the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 or D3 (the pixel value is increased).

このように水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、各色成分について、補正対象画素C3と第1の参照画素と差が小さい方の補正式を用いて補正対象画素C3の画素値を補正する(画素値を上げる)ことで、効果が大きくなりすぎることなく、色バランスがとれ、表示画像のコントラストを向上させることができる。   As described above, when the correction condition is satisfied in both the horizontal and vertical directions (generally, in a plurality of directions), for each color component, the correction formula with the smaller difference between the correction target pixel C3 and the first reference pixel is used. By correcting the pixel value of the correction target pixel C3 (increasing the pixel value), it is possible to achieve color balance and improve the contrast of the display image without increasing the effect.

図26は、図25とは逆に、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が大きい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図24と同じである。   In contrast to FIG. 25, when the correction conditions are satisfied in both the horizontal and vertical directions (generally a plurality of directions), FIG. 26 shows the horizontal and vertical directions that satisfy the pixel values of the correction target pixels and the correction conditions. Using the correction formula having the larger difference from the pixel value of the first reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (the pixel value is increased). It is. The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図26における補正条件と補正式との対応関係は、先の図24の場合の表9と同じであるので省略する。また、図26の処理フローは、図11の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。   The correspondence relationship between the correction condition and the correction formula in FIG. 26 is the same as that in Table 9 in FIG. The processing flow of FIG. 26 is an extension of the processing flow of FIG. 11 when each display pixel is composed of a plurality of color components, and the processing is basically the same.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表9のaの補正条件を満たすか判定し(ステップ2301〜2304)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表9のcの補正条件を満たすか判定する(ステップ2305〜2308)。表9のaとcの補正条件が満たした場合、各色成分について、C2とB3の画素値を比較し、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ2309、2310又は2311、2312、2313)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を上げる)。   For example, whether or not the correction condition of a in Table 9 is satisfied is determined based on horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 2301 to 2304). If satisfied, it is determined whether the correction condition of c in Table 9 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 2305). ~ 2308). When the correction conditions of a and c in Table 9 are satisfied, the pixel values of C2 and B3 are compared for each color component, and the right correction equation corresponding to the smaller one (the difference from C3 is large) is calculated ( Step 2309, 2310 or 2311, 2312, 2313), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is increased).

また、表9のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表9のdの補正条件を判定する(ステップ2314〜2316)。表9のaとdの補正条件が満たした場合、各色成分について、C2とD3の画素値を比較し、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ2317、2318又は2319、2320、2321)、補正対象画素C3の画素値をC2あるいはD3の画素値に近付ける(画素値を上げる)。   If the correction condition a in Table 9 is satisfied and the correction condition c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3 ) To determine the correction condition of d in Table 9 (steps 2314 to 2316). When the correction conditions of a and d in Table 9 are satisfied, the pixel values of C2 and D3 are compared for each color component, and the correction formula on the right side corresponding to the smaller one (the difference from C3 is large) is calculated ( Steps 2317, 2318 or 2319, 2320, 2321), the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 or D3 (the pixel value is increased).

このように、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、補正対象画素C3と第1の参照画素と差が大きい方の補正式を用いて補正対象画素C3の画素値を補正する(画素値を上げる)ことで、同様にコントラストが向上し、色バランスがとれた、見易い画像を表示することができる。   As described above, when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), the correction target pixel is calculated using the correction formula having the larger difference between the correction target pixel C3 and the first reference pixel. By correcting the pixel value of C3 (increasing the pixel value), it is possible to display an easy-to-view image with improved contrast and color balance.

図27は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、満たした方向の組合せにより、あらかじめ定めた補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図24と同じである。   In FIG. 27, when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), the pixel value of the correction target pixel is calculated by using a predetermined correction formula depending on the combination of the satisfied directions. The correction is performed so as to approach the pixel value of the first reference pixel (the pixel value is increased). The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図27における補正条件と補正式との対応関係は、先の図24の場合の表9と同じであるので省略する。また、図27の処理フローは、図12の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。   The correspondence between the correction condition and the correction formula in FIG. 27 is the same as that in Table 9 in FIG. The processing flow of FIG. 27 is an extension of the processing flow of FIG. 12 when each display pixel is composed of a plurality of color components, and the processing is basically the same.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表9のaの補正条件を満たすか判定し(ステップ2401〜2404)、満たした場合、全色成分がD3≦C3か判定し(ステップ2405)、判定結果がYRSならば、すなわち、表9のaの補正条件が満たし、cの補正条件も満たす場合(cの補正条件も満たされる可能性がある場合)、各色成分について、表9のaの右側の補正式を演算して(ステップ2406〜2408)、補正対象画素C3の画素値をC2の画素値に近付ける(画素値を上げる)。   For example, it is determined whether the correction condition of a in Table 9 is satisfied based on horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 2401 to 2404). If satisfied, it is determined whether all the color components are D3 ≦ C3 (step 2405). If the determination result is YRS, that is, if the correction condition a in Table 9 is satisfied and the correction condition c is also satisfied (c correction) If there is a possibility that the condition is also satisfied), the correction expression on the right side of a in Table 9 is calculated for each color component (steps 2406 to 2408), and the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 ( Increase the pixel value).

また、D3≦C3の判定結果がNOならば、表9のdの補正条件を判定し(ステップ2409〜2411)、満たした場合には、すなわち、表9のaとdの補正条件が満たした場合、各色成分について、表9のdの右側の補正式を演算して(ステップ2412〜2414)、補正対象画素C3の画素値をD3の画素値に近付ける(画素値を上げる)。   If the determination result of D3 ≦ C3 is NO, the correction condition for d in Table 9 is determined (steps 2409 to 2411), and if satisfied, that is, the correction conditions for a and d in Table 9 are satisfied. In this case, the correction formula on the right side of d in Table 9 is calculated for each color component (steps 2412 to 2414), and the pixel value of the correction target pixel C3 is brought close to the pixel value of D3 (the pixel value is increased).

図27の処理フローを図25や図26のそれとを比較すれば明らかであるように、複数方向にて補正条件を満たした場合、満たした方向の組み合わせにより、予め定めた補正式を用いて補正対象画素の画素値を補正するようにすることにより、処理が簡略となる。このことから補正処理を行う回路規模が小さくなり、低コスト化することができる。また、複数方向にて補正条件を満たし、且つ参照画素値と補間画素の画素値の差が複数方向で異なることは、画像全体から見ると少なく、画質への影響は少ないことが多いので、画質の差が少ないのに低コストで、色バランスがとれ、コントラストが向上した、見易い画像を表示することができる。   As is clear when comparing the processing flow of FIG. 27 with that of FIG. 25 or FIG. 26, when the correction conditions are satisfied in a plurality of directions, correction is performed using a predetermined correction formula depending on the combination of the satisfied directions. By correcting the pixel value of the target pixel, the process is simplified. Therefore, the circuit scale for performing the correction process can be reduced and the cost can be reduced. In addition, since the correction conditions are satisfied in multiple directions and the difference between the pixel value of the reference pixel value and the interpolated pixel is different in the multiple directions, it is small when viewed from the whole image, and the influence on the image quality is often small. However, it is possible to display an easy-to-see image with low color, good color balance and improved contrast.

図28は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満した場合に、補正条件を満たした各々の第1の参照画素の画素値間の値(ここでは平均値)と補正対象画素の画素値との差を用いて、補正対象画素の画素値を補正する(画素値を上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図24と同じである。   FIG. 28 shows values (here, average values) between the pixel values of the first reference pixels that satisfy the correction condition when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). The pixel value of the correction target pixel is corrected (the pixel value is increased) using the difference between the correction value and the pixel value of the correction target pixel. The processing when the correction condition is satisfied in one direction is the same as that in FIG.

表10に水平及び垂直方向の両方で補正条件が満たした場合の、満たした方向の補正条件の組み合わせと適用する補正式との対応関係を示す。一つの方向で補正条件が満たした場合の補正条件と補正式との対応関係は、先の図24の場合の表9同じであるので省略する。   Table 10 shows a correspondence relationship between a combination of correction conditions in the satisfied direction and a correction formula to be applied when the correction conditions are satisfied in both the horizontal and vertical directions. The correspondence between the correction condition and the correction formula when the correction condition is satisfied in one direction is the same as in Table 9 in FIG.

Figure 0005293923
Figure 0005293923

図28の処理フローは、図13の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、処理は基本的に同じである。   The processing flow of FIG. 28 is an extension of the processing flow of FIG. 13 when each display pixel is composed of a plurality of color components, and the processing is basically the same.

例えば、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、表9のaの補正条件を満たすか判定し(ステップ2501〜2504)、満たした場合、垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により、表9のcの補正条件を満たすか判定する(ステップ2505〜2508)。そして、表9のaとcの補正条件が満たした場合、各色成分について、表10の1の補正式を演算して(ステップ2509〜2511)、補正対象画素C3の画素値を補正する(画素値を上げる)。すなわち、第1の参照画素C2とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   For example, whether or not the correction condition of a in Table 9 is satisfied is determined based on horizontal C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) (steps 2501 to 2504). If satisfied, it is determined whether the correction condition of c in Table 9 is satisfied by A3 to D3 (first reference pixel; B3, second reference pixel; A3, third reference pixel; D3) in the vertical direction (step 2505). ~ 2508). When the correction conditions a and c in Table 9 are satisfied, the correction formula 1 in Table 10 is calculated for each color component (Steps 2509 to 2511), and the pixel value of the correction target pixel C3 is corrected (pixels). Increase the value). That is, the correction process is performed using the difference between the average value of the first reference pixels C2 and B3 and the pixel value of the correction target pixel C3.

また、表9のaの補正条件が満たし、cの補正条件が満たさない場合には、垂直方向のB3〜E3(第1参照画素;D3、第2参照画素;E3、第3参照画素;B3)により、表3のdの補正条件を判定する(ステップ2512〜2514)。そして、表3のaとdの補正条件が満たした場合、各色成分について、表10の2の補正式を演算して(ステップ2517〜2517)、補正対象画素C3の画素値を補正する(画素値を上げる)。すなわち、第1の参照画素C2とD3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。   If the correction condition a in Table 9 is satisfied and the correction condition c is not satisfied, B3 to E3 in the vertical direction (first reference pixel; D3, second reference pixel; E3, third reference pixel; B3 ) To determine d correction conditions in Table 3 (steps 2512 to 2514). When the correction conditions of a and d in Table 3 are satisfied, the two correction expressions in Table 10 are calculated for each color component (steps 2517 to 2517), and the pixel value of the correction target pixel C3 is corrected (pixels). Increase the value). That is, the correction process is performed using the difference between the average value of the first reference pixels C2 and D3 and the pixel value of the correction target pixel C3.

図28の場合、例えば、図25と比較して処理が簡略になることから補正処理を行う回路規模が小さくなり、低コスト化することができる。また補正条件が複数方向で満たされた場合に、各々の参照画素値と補正対象画素値との差を用いて補正量をバランスを取りながら画像処理をすることとなり、低コストでコントラストが向上した、色バランスのとれた見易い画像を表示することができるようになる。   In the case of FIG. 28, for example, the processing is simplified as compared with FIG. 25, so that the circuit scale for performing the correction processing is reduced and the cost can be reduced. In addition, when correction conditions are satisfied in multiple directions, image processing is performed while balancing the correction amount using the difference between each reference pixel value and the correction target pixel value, thereby improving contrast at low cost. This makes it possible to display an easy-to-view image with a well-balanced color.

本実施例は先の実施例4及び実施例5を組み合わせたものである。すなわち、各表示画素が複数の色成分で構成された画像において、明るいあるいは暗い補正対象画素の暗いあるいは明るい隣接画素の表示への影響による画像の沈み込み及び浮き上がりを押さえることで、複数の色成分の表示において色バランスがとれ、カラー黒及びカラー白のコントラストが向上した見易い画像を表示するものである。   This embodiment is a combination of the previous embodiment 4 and embodiment 5. In other words, in an image in which each display pixel is composed of a plurality of color components, a plurality of color components are suppressed by suppressing the sinking and floating of the image due to the influence of the bright or dark correction target pixels on the display of dark or bright adjacent pixels. In this display, an easy-to-see image with a good color balance and improved contrast between color black and color white is displayed.

図29乃至図33に本実施例の処理フローチャートを示す。処理は図1の画像処理部20が司る。図32と図33が補正式選択部24も使用する例である。なお、図29乃至図33では、図の煩雑化を避けるため、判定ブロック内の色成分に関する記述は省略している。以下、各処理フローチャートについて説明する。   29 to 33 show processing flowcharts of the present embodiment. The image processing unit 20 in FIG. 32 and 33 are examples in which the correction formula selection unit 24 is also used. In FIG. 29 to FIG. 33, the description regarding the color components in the determination block is omitted in order to avoid complication of the drawing. Hereinafter, each processing flowchart will be described.

図29は、各表示画素が複数の色成分で構成された画像において、水平または垂直方向に対して補正対象画素に隣接する一方の画素を第1の参照画素、他方の画素を第3の参照画素、補正対象画素から第1の参照画素を挟んだ位置に位置する画素を第2の参照画素としたとき、少なくとも水平または垂直方向に対して全ての色成分の第1の参照画素の画素値が第2の参照画素の画素値未満で、第3の参照画素の画素値が補正対象画素の画素値以上であり、かつ少なくとも一つの色成分で第1の参照画素の画素値が補正対象画素の画素値未満(他の色成分の第1の参照画素の画素値と補正対象画素値は等しい)であるか、あるいは、全ての色成分にて第2の参照画素の画素値が第1の参照画素の画素値未満で、第3の参照画素が補正対象画素の画素値以下であり、かつ少なくとも一つの色成分で補正対象画素の画素値が第1の参照画素の画素値未満(他の色成分の第1の参照画素の画素値と補正対象画素値は等しい)である補正条件を満たす場合に、補正対象画素の画素値を第1の参照画素の画素値に近付けるように補正する(画素値を下げるか上げる)ものである。
図29に処理フローにおける補正条件と補正式との対応関係をまとめると表11のようになる。
FIG. 29 shows, in an image in which each display pixel is composed of a plurality of color components, one pixel adjacent to the correction target pixel in the horizontal or vertical direction is a first reference pixel, and the other pixel is a third reference. When a pixel located at a position sandwiching the first reference pixel from the pixel to be corrected is the second reference pixel, the pixel values of the first reference pixels of all color components at least in the horizontal or vertical direction Is less than the pixel value of the second reference pixel, the pixel value of the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and the pixel value of the first reference pixel is the correction target pixel with at least one color component (The pixel value of the first reference pixel of the other color component is equal to the correction target pixel value) or the pixel value of the second reference pixel is the first pixel value in all color components. If the third reference pixel is less than the pixel value of the reference pixel, The pixel value of the correction target pixel is less than the prime value and is less than the pixel value of the first reference pixel in at least one color component (the pixel value of the first reference pixel of the other color component is equal to the correction target pixel value) ) Is corrected so as to bring the pixel value of the correction target pixel closer to the pixel value of the first reference pixel (lower or increase the pixel value).
FIG. 29 summarizes the correspondence between the correction conditions and the correction formulas in the processing flow, as shown in Table 11.

Figure 0005293923
Figure 0005293923

表11は先の表7と表9を一緒にしたもので、a1,b1,c1,d1が表7に対応し、
a2,b2,c2,d2が表9にそれぞれ対応する。すなわち、a1,b1,c1,d1
のいずれかの補正条件が満たした場合には、補正対象画素C3の画素値を下げ、a2,b2,c2,d2のいずれかの補正条件が満たした場合には上げることで、補正対象画素C3の画素値を第1の参照画素(C2,C4,B3又はD3)の画素値に近付ける。このような2種類の補正条件を用いることで、解像度変換を行った画像における一画素ピッチの画像のカラー白黒ピークを判定することができる。
Table 11 is a combination of Table 7 and Table 9, and a1, b1, c1, and d1 correspond to Table 7,
a2, b2, c2, and d2 correspond to Table 9, respectively. That is, a1, b1, c1, d1
If any of the correction conditions is satisfied, the pixel value of the correction target pixel C3 is decreased, and if any of the correction conditions a2, b2, c2, d2 is satisfied, the correction target pixel C3 is increased. Is made closer to the pixel value of the first reference pixel (C2, C4, B3 or D3). By using these two types of correction conditions, it is possible to determine the color black-and-white peak of an image having a single pixel pitch in an image subjected to resolution conversion.

図29の処理フローは、図14の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、基本的に図19と図24の処理フローを一緒したものである。図14と同様に、入力画像データの各画素毎に、該画素を補正対象画素C3として、表11のa1〜d2の順番で左側の補正条件を満たすか判定し、満たした場合、その時点で右側の補正式を色成分の数だけ繰り返し演算して、補正対象画素C3の画素値を補正する(画素値を下げるか上げる)。また、a1〜d2の全ての補正条件が満たさない場合には、補正対象画素C3について補正処理を行わない(C3=C3)。これを入力画像データがなくなるまで繰り返す。   The processing flow of FIG. 29 is an extension of the processing flow of FIG. 14 when each display pixel is composed of a plurality of color components, and is basically a combination of the processing flows of FIG. 19 and FIG. As in FIG. 14, for each pixel of the input image data, it is determined whether the correction condition on the left side is satisfied in the order of a1 to d2 in Table 11 with this pixel as the correction target pixel C3. The correction formula on the right side is repeatedly calculated for the number of color components to correct the pixel value of the correction target pixel C3 (lower or increase the pixel value). When all the correction conditions a1 to d2 are not satisfied, the correction process is not performed on the correction target pixel C3 (C3 = C3). This is repeated until there is no input image data.

一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)により、補正条件を判定する場合を説明する。C1〜C4により、表11のa1の補正条件を判定し(ステップ2601〜2604)、満たした場合、対応する右側の補正式を色成分の数だけ繰り返し演算して(ステップ2605〜2607)、補正対象画素C3の画素値を下げて、第1の参照画素C2の画素値に近付ける。表11のa1の補正条件が満たさない場合には、C1〜C4により、表11のa2の補正条件を判定して(ステップ2608〜2612)、満たした場合には、同じく対応する右側の補正式を色成分の数だけ繰り返し演算して(ステップ2605〜2607)、補正対象画素C3の画素値を上げて、第1の参照画素C2の画素値に近付ける。   As an example, a case will be described in which correction conditions are determined based on C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) in the horizontal direction. Based on C1 to C4, the correction condition of a1 in Table 11 is determined (steps 2601 to 2604), and if satisfied, the corresponding correction formula on the right side is repeatedly calculated by the number of color components (steps 2605 to 2607) to correct. The pixel value of the target pixel C3 is lowered to approach the pixel value of the first reference pixel C2. When the correction condition of a1 in Table 11 is not satisfied, the correction condition of a2 in Table 11 is determined by C1 to C4 (Steps 2608 to 2612). Is repeatedly calculated for the number of color components (steps 2605 to 2607), and the pixel value of the correction target pixel C3 is increased to approach the pixel value of the first reference pixel C2.

本実施例によれば、解像度変換処理を行った後の画像でも、隣接画素の表示への影響を最も受ける一画素ピッチの画像を補正することができ、補正対象画素の隣接画素の表示への影響を押さえ、色バランスがとれ、コントラストが向上した見易い画像を表示することができる。   According to the present embodiment, even in the image after the resolution conversion processing, an image with one pixel pitch that is most affected by the display of the adjacent pixels can be corrected, and the display of the adjacent pixels of the correction target pixel can be corrected. It is possible to display an easy-to-view image with suppressed influence, color balance, and improved contrast.

図30は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たすか判定し、満たした場合には、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が小さい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げるか上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図29と同じである。   FIG. 30 determines whether or not the correction condition is satisfied in both the horizontal and vertical directions (generally a plurality of directions), and if satisfied, the pixel values of the correction target pixels and the horizontal and vertical directions satisfying the correction condition are determined. Using the correction formula having the smaller difference from the pixel value of one reference pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel (lowering or raising the pixel value). Is. The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図30における補正条件と補正式との対応関係は、先の図29の場合の表11と同じであるので省略する。また、図30の処理フローは、図15の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、基本的に図20と図25の処理フローを一緒にしたものである。なお、図30では、水平方向a1,a2,b1,b2の補正条件が満たされない場合以降の垂直方向c1,c2,d1,d2の補正条件を判定する処理は、図29と同じであるため、省略している。これは図31乃至図33でも同様である。   The correspondence relationship between the correction condition and the correction formula in FIG. 30 is the same as in Table 11 in FIG. The processing flow of FIG. 30 is an extension of the processing flow of FIG. 15 when each display pixel is composed of a plurality of color components. Basically, the processing flow of FIGS. 20 and 25 is combined. It is. In FIG. 30, the processing for determining the correction conditions in the vertical directions c1, c2, d1, d2 after the correction conditions in the horizontal directions a1, a2, b1, b2 are not satisfied is the same as in FIG. Omitted. The same applies to FIGS. 31 to 33.

一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)と垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により補正条件を判定する場合を説明する。C1〜C4により、表11のa1の補正条件を判定し(ステップ2701〜2704)、満たした場合、A3〜D3により、表11のc1の補正条件を満たすか判定する(ステップ2705〜2708)。そして、表11のa1とc1の補正条件が満たした場合、色成分について、C2とB3の画素値を比較し、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ2709、2710又は2711、2712、2713)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を下げる)。表11のa1の補正条件を満たさない場合には、C1〜C4により、表11のa2の補正条件を判定し(ステップ2714〜2718)、満たした場合、表11のc2の補正条件を判定する(ステップ2719〜2722)。そして、表11のa2とc2の補正条件が満たした場合、各色成分について、C2とB3の画素値を比較し、大きい方(C3との差が小さい)に対応する右側の補正式を演算して(ステップ2723、2724又は2725、2726、2727)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を上げる)。   As an example, C1 to C4 (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) in the horizontal direction and A3 to D3 (first reference pixel; B3, second reference pixel) in the vertical direction. A3, third reference pixel; D3) will be described for determining the correction condition. The correction conditions for a1 in Table 11 are determined from C1 to C4 (steps 2701 to 2704). If satisfied, the correction conditions for c1 in Table 11 are determined from A3 to D3 (steps 2705 to 2708). When the correction conditions of a1 and c1 in Table 11 are satisfied, the pixel values of C2 and B3 are compared for the color component, and the right correction equation corresponding to the larger one (the difference from C3 is small) is calculated. (Steps 2709, 2710 or 2711, 2712, 2713), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is lowered). If the correction condition of a1 in Table 11 is not satisfied, the correction condition of a2 in Table 11 is determined by C1 to C4 (steps 2714 to 2718). If satisfied, the correction condition of c2 in Table 11 is determined. (Steps 2719-2722). If the correction conditions of a2 and c2 in Table 11 are satisfied, the pixel values of C2 and B3 are compared for each color component, and the right correction equation corresponding to the larger one (the difference from C3 is small) is calculated. (Steps 2723, 2724 or 2725, 2726, 2727), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is increased).

図31は、図30とは逆に、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満すか判定して、満たした場合には、補正対象画素の画素値と補正条件を満たした水平及び垂直方向の第1の参照画素の画素値との差が大きい方の補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げるか上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図29と同じである。   In contrast to FIG. 30, in FIG. 31, it is determined whether the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). If the correction condition is satisfied, the pixel value of the correction target pixel and the correction condition are determined. Correction is performed so that the pixel value of the correction target pixel approaches the pixel value of the first reference pixel by using a correction formula having a larger difference from the pixel value of the filled first and second reference pixels in the horizontal and vertical directions. (Pixel value is lowered or raised). The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図31における補正条件と補正式との対応関係は、先の図29の場合の表11と同じであるので省略する。また、図31の処理フローは、図16の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、基本的に図21と図26の処理フローを一緒したものである。   The correspondence between the correction condition and the correction formula in FIG. 31 is the same as that in Table 11 in FIG. Further, the processing flow of FIG. 31 is an extension of the processing flow of FIG. 16 when each display pixel is composed of a plurality of color components, and is basically a combination of the processing flows of FIG. 21 and FIG. is there.

ここでも、一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)と垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により補正条件を判定する場合を説明する。C1〜C4により、表11のa1の補正条件を満たすか判定し(ステップ2801〜2804)、満たした場合、A3〜D3により、表11のc1の補正条件を満たすか判定する(ステップ2805〜2808)。そして、表11のa1とc1の補正条件が満たした場合、各色成分について、C2とB3の画素値を比較し、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ2809、2810又は2811、2912、2813)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を下げる)。表11のa1の補正条件を満たさない場合には、C1〜C4により、表11のa2の補正条件を判定し(ステップ2814〜2818)、満たした場合、A3〜D3により、表11のc2の補正条件を判定する(ステップ2819〜2822)。そして、表11のa2とc2の補正条件を満たした場合、各色成分について、C2とB3の画素値を比較し、小さい方(C3との差が大きい)に対応する右側の補正式を演算して(ステップ2823,2824又は2825、2826、2827)、補正対象画素C3の画素値をB3あるいはC2の画素値に近付ける(画素値を上げる)。   Here, as an example, C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) and A3 to D3 in the vertical direction (first reference pixel; B3, first) The case where the correction condition is determined by 2 reference pixels; A3, the third reference pixel; D3) will be described. Whether or not the correction condition of a1 in Table 11 is satisfied is determined by C1 to C4 (steps 2801 to 2804). If satisfied, the correction condition of c1 of Table 11 is determined from A3 to D3 (steps 2805 to 2808). ). When the correction conditions of a1 and c1 in Table 11 are satisfied, the pixel values of C2 and B3 are compared for each color component, and the right correction equation corresponding to the smaller one (the difference from C3 is large) is calculated. (Step 2809, 2810 or 2811, 2912, 2813), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is lowered). If the correction condition of a1 in Table 11 is not satisfied, the correction condition of a2 in Table 11 is determined by C1 to C4 (steps 2814 to 2818), and if satisfied, the correction condition of c2 in Table 11 is determined by A3 to D3. Correction conditions are determined (steps 2819 to 2822). When the correction conditions of a2 and c2 in Table 11 are satisfied, the pixel values of C2 and B3 are compared for each color component, and the correction formula on the right side corresponding to the smaller one (the difference from C3 is large) is calculated. (Steps 2823, 2824 or 2825, 2826, 2827), the pixel value of the correction target pixel C3 is brought close to the pixel value of B3 or C2 (the pixel value is increased).

図32は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満たした場合に、満たした方向の組合せにより、あらかじめ定めた補正式を用いて、補正対象画素の画素値を当該第1の参照画素の画素値に近付けるように補正する(画素値を下げるか上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図29と同じである。   FIG. 32 shows that when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions), the pixel value of the correction target pixel is determined by using a predetermined correction formula depending on the combination of the satisfied directions. The correction is performed so as to approach the pixel value of the first reference pixel (the pixel value is decreased or increased). The processing when the correction condition is satisfied in one direction is the same as that in FIG.

図32における補正条件と補正式との対応関係は、先の図29の場合の表11と同じであるので省略する。また、図32の処理フローは、図17の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、基本的に図22と図27の処理フローを一緒にしたものである。   The correspondence relationship between the correction condition and the correction formula in FIG. 32 is the same as that in Table 11 in FIG. The processing flow of FIG. 32 is an extension of the processing flow of FIG. 17 when each display pixel is composed of a plurality of color components, and is basically a combination of the processing flows of FIG. 22 and FIG. It is.

ここでも、一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)垂直方向のA3〜D3(第1参照画素;B2、第2参照画素;A3、第3参照画素;D3)により補正条件を判定する場合を説明する。C1〜C4により、表11のa1の補正条件を判定し(ステップ2901〜2904)、満たした場合、全色成分がB3≧C3か判定し(ステップ2905)、判定結果がNOならば(表11のc1の補正条件も満たされる可能性がある)、表11のa1の補正式を色成分の数だけ繰り返し演算して(ステップ2906〜2908)、補正対象画素C3の画素値をC2の画素値に近付ける(画素値を下げる)。表11のa1の補正条件が満たさない場合には、C1〜C4により、表11のa2の補正条件を判定する(ステップ2909〜2913)。表11のa2の補正条件が満たした場合、全色成分がB3≧C3か判定し(ステップ2914)、判定結果がYESならば(表11のc2の補正条件も満たされる可能性がある)、表11のa2の補正式を色成分の数だけ演算して(ステップ2915〜2917)、補正対象画素C3の画素値をC2の画素値に近付ける(画素値を上げる)。   Here, as an example, C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) A3 to D3 in the vertical direction (first reference pixel; B2, second The case where the correction condition is determined by the reference pixel; A3, the third reference pixel; D3) will be described. Based on C1 to C4, the correction condition of a1 in Table 11 is determined (Steps 2901 to 2904), and if satisfied, it is determined whether all the color components are B3 ≧ C3 (Step 2905), and if the determination result is NO (Table 11) The correction condition of c1 of Table 11 may also be satisfied), and the correction formula of a1 of Table 11 is repeatedly calculated for the number of color components (Steps 2906 to 2908), and the pixel value of the correction target pixel C3 is set to the pixel value of C2. (Close the pixel value). If the correction condition for a1 in Table 11 is not satisfied, the correction condition for a2 in Table 11 is determined based on C1 to C4 (steps 2909 to 2913). When the correction condition of a2 in Table 11 is satisfied, it is determined whether all the color components are B3 ≧ C3 (step 2914). If the determination result is YES (the correction condition of c2 in Table 11 may also be satisfied), The correction formula a2 in Table 11 is calculated by the number of color components (steps 2915 to 2917), and the pixel value of the correction target pixel C3 is brought close to the pixel value of C2 (the pixel value is increased).

図32の処理フローを図30や図31のそれと比較すれば明らかであるように、複数方向にて補正条件を満たした場合、満たした方向の組み合わせにより、予め定めた補正式を用いて補正対象画素の画素値を補正するようにすることにより、処理が簡略となる。このことから補正処理を行う回路規模が小さくなり、低コスト化することができる。また、複数方向にて補正条件を満たし、且つ参照画素値と補間画素の画素値の差が複数方向で異なることは、画像全体から見ると少なく、画質への影響は少ないことが多いので、画質の差が少ないのに低コストで、色バランスがとれ、コントラストが向上した、見易い画像を表示することができる。   As is clear from comparing the processing flow of FIG. 32 with that of FIGS. 30 and 31, when the correction conditions are satisfied in a plurality of directions, the correction target is determined using a predetermined correction formula depending on the combination of the satisfied directions. By correcting the pixel value of the pixel, the process is simplified. Therefore, the circuit scale for performing the correction process can be reduced and the cost can be reduced. In addition, since the correction conditions are satisfied in multiple directions and the difference between the pixel value of the reference pixel value and the interpolated pixel is different in the multiple directions, it is small when viewed from the whole image, and the influence on the image quality is often small. However, it is possible to display an easy-to-see image with low color, good color balance and improved contrast.

図33は、水平及び垂直方向の両方(一般には複数方向)にて補正条件を満した場合に、補正条件を満たした各々の第1の参照画素の画素値間の値(ここでは平均値)と補正対象画素の画素値との差を用いて、補正対象画素の画素値を補正する(画素値を下げるか上げる)ものである。一つの方向にて補正条件が満たした場合の処理は図29と同じである。   FIG. 33 shows values (here, average values) between the pixel values of the first reference pixels that satisfy the correction condition when the correction condition is satisfied in both the horizontal and vertical directions (generally, a plurality of directions). And the pixel value of the correction target pixel are used to correct the pixel value of the correction target pixel (lower or increase the pixel value). The processing when the correction condition is satisfied in one direction is the same as that in FIG.

表12に水平及び垂直方向の両方で補正条件が満たした場合の、満たした方向の補正条件の組み合わせと適用する補正式との対応関係を示す。一つの方向で補正条件が満たした場合の補正条件と補正式との対応関係は、先の図29の場合の表11と同じであるので省略する。   Table 12 shows a correspondence relationship between a combination of correction conditions in the satisfied direction and a correction formula to be applied when the correction conditions are satisfied in both the horizontal and vertical directions. Since the correspondence relationship between the correction condition and the correction formula when the correction condition is satisfied in one direction is the same as that in Table 11 in FIG.

Figure 0005293923
Figure 0005293923

図33の処理フローは、図18の処理フローを各表示画素が複数の色成分で構成された場合に拡張したもので、基本的に図23と図28の処理フローを一緒にしたものである。
ここでも、一例として、水平方向のC1〜C4(第1参照画素;C2、第2参照画素;C1、第3参照画素;C4)と垂直方向のA3〜D3(第1参照画素;B3、第2参照画素;A3、第3参照画素;D3)により補正条件を判定する場合を説明する。C1〜C4により、表11のa1の補正条件を判定し(ステップ3001〜3004)、満たした場合、A3〜D3により、表11のc1の補正条件を判定する(ステップ3305〜3008)。そして、表11のa1とc1の補正条件が満たした場合、表12の1の補正式を色成分の数だけ演算して(ステップ3009〜3011)、補正対象画素C3の画素値を補正する(画素値を下げる)。すなわち各色成分について、第1の参照画素C2とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。表11のa1の補正条件が満たさない場合には、C1〜C4により、表11のa2の補正条件を判定し(ステップ3012〜3016)、満たした場合、A3〜D3により、表11のc2の補正条件を判定する(ステップ3017〜3020)。そして、表11のa2とc2の補正条件を満たした場合、表12の2の補正式を色成分の数だけ演算して(ステップ3021〜3023)、補正対象画素C3の画素値を補正する(画素値を上げる)。すなわち、各色成分について、第1の参照画C2とB3の平均値と補正対象画素C3の画素値との差を用いて補正処理を行う。
The processing flow of FIG. 33 is an extension of the processing flow of FIG. 18 when each display pixel is composed of a plurality of color components, and is basically a combination of the processing flows of FIG. 23 and FIG. .
Here, as an example, C1 to C4 in the horizontal direction (first reference pixel; C2, second reference pixel; C1, third reference pixel; C4) and A3 to D3 in the vertical direction (first reference pixel; B3, first) The case where the correction condition is determined by 2 reference pixels; A3, the third reference pixel; D3) will be described. The correction conditions for a1 in Table 11 are determined from C1 to C4 (Steps 3001 to 3004). If satisfied, the correction conditions for c1 in Table 11 are determined from A3 to D3 (Steps 3305 to 3008). When the correction conditions of a1 and c1 in Table 11 are satisfied, the correction expression of 1 in Table 12 is calculated by the number of color components (Steps 3009 to 3011), and the pixel value of the correction target pixel C3 is corrected ( Reduce the pixel value). That is, for each color component, correction processing is performed using the difference between the average value of the first reference pixels C2 and B3 and the pixel value of the correction target pixel C3. When the correction condition of a1 of Table 11 is not satisfied, the correction condition of a2 of Table 11 is determined by C1 to C4 (Steps 3012 to 3016). When satisfied, the correction condition of c2 of Table 11 is determined by A3 to D3. Correction conditions are determined (steps 3017 to 3020). When the correction conditions of a2 and c2 in Table 11 are satisfied, the two correction expressions in Table 12 are calculated by the number of color components (steps 3021 to 3023), and the pixel value of the correction target pixel C3 is corrected ( Increase the pixel value). That is, for each color component, correction processing is performed using the difference between the average value of the first reference images C2 and B3 and the pixel value of the correction target pixel C3.

図33の場合、例えば、図30と比較して処理が簡略になることから補正処理を行う回路規模が小さくなり、低コスト化することができる。また補正条件が複数方向で満たされた場合に、各々の参照画素値と補正対象画素値との差を用いて補正量をバランスを取りながら画像処理をすることとなり、低コストで色バランスがとれ、コントラストが向上した、見易い画像を表示することができるようになる。   In the case of FIG. 33, for example, the processing is simplified as compared with FIG. 30, so the circuit scale for performing the correction processing is reduced, and the cost can be reduced. In addition, when the correction conditions are satisfied in multiple directions, image processing is performed while balancing the correction amount using the difference between each reference pixel value and the correction target pixel value, so that color balance can be achieved at low cost. It is possible to display an easy-to-view image with improved contrast.

以上、種々の実施例について説明したが、各実施例で示した処理手順をコンピュータのプログラムで構成し、そのプログラムをコンピュータに実行させることができることは言うまでもなく、コンピュータにその処理手順を実行させるためのプログラムを、そのコンピュータが読み取り可能な記録媒体、例えば、FD、MO、ROM、メモリカード、CD、DVD、リムーバブルディスクなどに記録して、保存したり、提供したりすることができるとともに、インターネット等のネットワークを通してそのプログラムを配布したりすることが可能である。   Although various embodiments have been described above, it is needless to say that the processing procedure shown in each embodiment can be configured by a computer program, and the program can be executed by the computer. Can be recorded on a computer-readable recording medium, such as FD, MO, ROM, memory card, CD, DVD, removable disk, etc. It is possible to distribute the program through the network.

本発明が適用される画像表示装置の構成例を示すブロック図。1 is a block diagram illustrating a configuration example of an image display device to which the present invention is applied. 本発明の実施例で使用される補正対象画素と参照画素の位置関係を示す図。The figure which shows the positional relationship of the correction object pixel and reference pixel which are used in the Example of this invention. 本発明の原理を説明するための図。The figure for demonstrating the principle of this invention. 実施例1のケース1の処理フローチャート。5 is a process flowchart of case 1 of the first embodiment. 実施例1のケース2の処理フローチャート。6 is a process flowchart of case 2 of the first embodiment. 実施例1のケース3の処理フローチャート。6 is a process flowchart of case 3 of the first embodiment. 実施例1のケース4の処理フローチャート。6 is a process flowchart of case 4 of the first embodiment. 実施例1のケース5の処理フローチャート。9 is a process flowchart of case 5 of the first embodiment. 実施例2のケース1の処理フローチャート。9 is a process flowchart of case 1 of the second embodiment. 実施例2のケース2の処理フローチャート。9 is a process flowchart of case 2 of the second embodiment. 実施例2のケース3の処理フローチャート。10 is a process flowchart of case 3 of the second embodiment. 実施例2のケース4の処理フローチャート。10 is a process flowchart of case 4 of the second embodiment. 実施例2のケース5の処理フローチャート。10 is a process flowchart of case 5 of the second embodiment. 実施例3のケース1の処理フローチャート。10 is a processing flowchart of case 1 of the third embodiment. 実施例3のケース2の処理フローチャート。10 is a process flowchart of case 2 of the third embodiment. 実施例3のケース3の処理フローチャート。10 is a process flowchart of case 3 of the third embodiment. 実施例3のケース4の処理フローチャート。9 is a process flowchart of case 4 of the third embodiment. 実施例3のケース5の処理フローチャート。9 is a process flowchart of case 5 of the third embodiment. 実施例4のケース1の処理フローチャート。10 is a process flowchart of case 1 of the fourth embodiment. 実施例4のケース2の処理フローチャート。9 is a process flowchart of case 2 of the fourth embodiment. 実施例4のケース3の処理フローチャート。9 is a process flowchart of case 3 of the fourth embodiment. 実施例4のケース4の処理フローチャート。10 is a process flowchart of case 4 of the fourth embodiment. 実施例4のケース5の処理フローチャート。10 is a process flowchart of case 5 of the fourth embodiment. 実施例5のケース1の処理フローチャート。10 is a process flowchart of case 1 of the fifth embodiment. 実施例5のケース2の処理フローチャート。10 is a processing flowchart of case 2 of the fifth embodiment. 実施例5のケース3の処理フローチャート。10 is a process flowchart of case 3 of the fifth embodiment. 実施例5のケース4の処理フローチャート。10 is a process flowchart of case 4 of the fifth embodiment. 実施例5のケース5の処理フローチャート。10 is a process flowchart of case 5 of the fifth embodiment. 実施例6のケース1の処理フローチャート。10 is a process flowchart of case 1 of the sixth embodiment. 実施例6のケース2の処理フローチャート。10 is a process flowchart of case 2 of the sixth embodiment. 実施例6のケース3の処理フローチャート。10 is a process flowchart of case 3 of the sixth embodiment. 実施例6のケース4の処理フローチャート。10 is a process flowchart of case 4 of the sixth embodiment. 実施例6のケース5の処理フローチャート。10 is a process flowchart of case 5 of the sixth embodiment. 本発明の具体的処理例を示す図。The figure which shows the specific process example of this invention. 本発明の他の具体的処理例を示す図。The figure which shows the other specific process example of this invention. 画素ずらしによる表示の表示画素及び表示範囲例を示す図。The figure which shows the display pixel and display range example of the display by pixel shifting.

符号の説明Explanation of symbols

10 入力画像データ記憶部
20 画像処理部
22 補正条件判定部
24 補正式選択部
26 画素補正処理部
30 出力画像データ記憶部
40 表示部
DESCRIPTION OF SYMBOLS 10 Input image data memory | storage part 20 Image processing part 22 Correction condition determination part 24 Correction type selection part 26 Pixel correction process part 30 Output image data storage part 40 Display part

Claims (17)

入力された画像データについて、隣接する画素どうしの画素値を比較して、画素値が極小あるいは極大となる画素(以下、ピーク画素)を判定し、ピーク画素に隣接する画素の画素値を該ピーク画素の画素値に近付けるように補正する画像処理方法であって、
入力された画像データの各画素を補正対象画素とし、前記補正対象画素に隣接する一方の画素を第1の参照画素、他方の画素を第3の参照画素、前記補正対象画素から前記第1の参照画素を挟んだ位置に位置する画素を第2の参照画素として、
前記第1の参照画素と前記補正対象画素、前記補正対象画素と前記第3の参照画素、及び前記第1の参照画素と前記第2の参照画素の画素値を比較して、前記第1の参照画素がピーク画素とになるか判定し、ピーク画素と判定された場合に、前記補正対象画素の画素値を前記第1の参照画素の画素値に近付けるように補正することを特徴とする画像処理方法。
For the input image data, the pixel values of adjacent pixels are compared to determine the pixel having the minimum or maximum pixel value (hereinafter referred to as peak pixel), and the pixel value of the pixel adjacent to the peak pixel is the peak value. An image processing method for correcting a pixel value to approach a pixel value,
Each pixel of the input image data is set as a correction target pixel, one pixel adjacent to the correction target pixel is a first reference pixel, the other pixel is a third reference pixel, and the correction target pixel to the first correction pixel A pixel located at a position sandwiching the reference pixel as a second reference pixel,
The pixel values of the first reference pixel and the correction target pixel, the correction target pixel and the third reference pixel, and the first reference pixel and the second reference pixel are compared, and the first reference pixel and the correction target pixel are compared. It is determined whether the reference pixel is a peak pixel, and when it is determined that the pixel is a peak pixel, the pixel value of the correction target pixel is corrected so as to be close to the pixel value of the first reference pixel. Processing method.
少なくとも一方向に対して前記第1の参照画素の画素値が前記補正対象画素の画素値未満であり、前記第3の参照画素が前記補正対象画素の画素値以上であり、かつ、前記第1の参照画素の画素値が前記第2の参照画素の画素値未満である補正条件を満たす場合に、前記補正対象画素の画素値を前記第1の参照画素の画素値に近付けるように補正することを特徴とする請求項1記載の画像処理方法。   The pixel value of the first reference pixel is less than the pixel value of the correction target pixel in at least one direction, the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and the first When the correction condition that the pixel value of the reference pixel is less than the pixel value of the second reference pixel is satisfied, the pixel value of the correction target pixel is corrected to be close to the pixel value of the first reference pixel. The image processing method according to claim 1. 画像データの各画素が複数の原色成分(以下、色成分)で構成され、全ての色成分にて前記第3の参照画素が前記補正対象画素の画素値以上であり、前記第1の参照画素の画素値が前記第2の参照画素の画素値未満であり、かつ、少なくとも一つの色成分にて前記第1の参照画素の画素値が前記補正対象画素の画素値未満である補正条件を満たす場合に、前記補正対象画素の画素値を前記第1の参照画素の画素値に近付けるように補正することを特徴とする請求項2記載の画像処理方法。   Each pixel of the image data is composed of a plurality of primary color components (hereinafter referred to as color components), and the third reference pixel is greater than or equal to the pixel value of the correction target pixel in all color components, and the first reference pixel The pixel value of the first reference pixel is less than the pixel value of the second reference pixel, and the pixel value of the first reference pixel is less than the pixel value of the correction target pixel in at least one color component. 3. The image processing method according to claim 2, wherein the correction is performed so that a pixel value of the correction target pixel approaches a pixel value of the first reference pixel. 少なくとも一方向に対して前記補正対象画素の画素値が前記第1の参照画素の画素値未満であり、前記第3の参照画素が前記補正対象画素の画素値以下であり、かつ、前記第2の参照画素の画素値が前記第1の参照画素の画素値未満である補正条件を満たす場合に、前記補正対象画素の画素値を前記第1の参照画素の画素値に近付けるように補正することを特徴とする請求項1記載の画像処理方法。   The pixel value of the correction target pixel is less than the pixel value of the first reference pixel in at least one direction, the third reference pixel is less than or equal to the pixel value of the correction target pixel, and the second When the correction condition that the pixel value of the reference pixel is less than the pixel value of the first reference pixel is satisfied, the pixel value of the correction target pixel is corrected to be close to the pixel value of the first reference pixel. The image processing method according to claim 1. 画像データの各画素が複数の原色成分(以下、色成分)で構成され、全ての色成分にて前記第3の参照画素が前記補正対象画素の画素値以下であり、前記第2の参照画素の画素値が前記第1の参照画素の画素値未満であり、かつ、少なくとも一つの色成分にて前記補正対象画素の画素値が前記第1の参照画素の画素値未満である補正条件を満たす場合に、前記補正対象画素の画素値を前記第1の参照画素の画素値に近付けるように補正することを特徴とする請求項4記載の画像処理方法。   Each pixel of the image data is composed of a plurality of primary color components (hereinafter referred to as color components), and the third reference pixel is less than or equal to the pixel value of the correction target pixel in all color components, and the second reference pixel The pixel value of the correction target pixel is less than the pixel value of the first reference pixel and the pixel value of the correction target pixel is less than the pixel value of the first reference pixel in at least one color component. 5. The image processing method according to claim 4, wherein the correction is performed so that a pixel value of the correction target pixel approaches a pixel value of the first reference pixel. 少なくとも一方向に対して、前記第1の参照画素の画素値が前記補正対象画素の画素値未満で、前記第3の参照画素が前記補正対象画素の画素値以上で、かつ、前記第1の参照画素の画素値が前記第2の参照画素の画素値未満であるか、前記補正対象画素の画素値が前記第1の参照画素の画素値未満で、前記第3の参照画素が前記補正対象画素の画素値以下で、かつ、前記第2の参照画素の画素値が前記第1の参照画素の画素値未満である補正条件を満たす場合に、前記補正対象画素の画素値を前記第1の参照画素の画素値に近付けるように補正することを特徴とする請求項1記載の画像処理方法。   In at least one direction, the pixel value of the first reference pixel is less than the pixel value of the correction target pixel, the third reference pixel is greater than or equal to the pixel value of the correction target pixel, and the first The pixel value of the reference pixel is less than the pixel value of the second reference pixel, or the pixel value of the correction target pixel is less than the pixel value of the first reference pixel, and the third reference pixel is the correction target The pixel value of the correction target pixel is set to the first pixel value when the correction condition is less than the pixel value of the pixel and the pixel value of the second reference pixel is less than the pixel value of the first reference pixel. The image processing method according to claim 1, wherein the correction is performed so as to approach the pixel value of the reference pixel. 画像データの各画素が複数の原色成分(以下、色成分)で構成され、全ての色成分にて前記第3の参照画素が前記補正対象画素の画素値以上で、前記第1の参照画素の画素値が前記第2の参照画素の画素値未満で、かつ、少なくとも一つの色成分にて前記第1の参照画素の画素値が前記補正対象画素の画素値未満であるか、全ての色成分にて前記第3の参照画素が前記補正対象画素の画素値以下で、前記第2の参照画素の画素値が前記第1の参照画素の画素値未満で、かつ、少なくとも一つの色成分にて補正対象画素の画素値が前記第1の参照画素の画素値未満である補正条件を満たす場合に、前記補正対象画素の画素値を前記第1の参照画素の画素値に近付けるように補正することを特徴とする請求項6記載の画像処理方法。   Each pixel of the image data is composed of a plurality of primary color components (hereinafter referred to as color components), and the third reference pixel is equal to or greater than the pixel value of the correction target pixel in all color components, and the first reference pixel The pixel value is less than the pixel value of the second reference pixel, and the pixel value of the first reference pixel is less than the pixel value of the correction target pixel in at least one color component, or all color components The third reference pixel is less than or equal to the pixel value of the correction target pixel, the pixel value of the second reference pixel is less than the pixel value of the first reference pixel, and at least one color component When the correction condition that the pixel value of the correction target pixel is less than the pixel value of the first reference pixel is satisfied, the pixel value of the correction target pixel is corrected to be close to the pixel value of the first reference pixel. The image processing method according to claim 6. 複数の方向にて補正条件を満たした場合、補正対象画素の画素値と第1の参照画素の画素値との差が小さい方向の第1の参照画素の画素値に基づいて補正対象画素の画素値を補正することを特徴とする請求項2乃至7のいずれか1項に記載の画像処理方法。   When the correction conditions are satisfied in a plurality of directions, the pixel of the correction target pixel is based on the pixel value of the first reference pixel in the direction in which the difference between the pixel value of the correction target pixel and the pixel value of the first reference pixel is small. The image processing method according to claim 2, wherein the value is corrected. 複数の方向にて補正条件を満たした場合、補正対象画素の画素値と第1の参照画素の画素値との差が大きい方向の第1の参照画素の画素値に基づいて補正対象画素の画素値を補正することを特徴とする請求項2乃至7のいずれか1項に記載の画像処理方法。   When the correction conditions are satisfied in a plurality of directions, the pixel of the correction target pixel is based on the pixel value of the first reference pixel in the direction in which the difference between the pixel value of the correction target pixel and the pixel value of the first reference pixel is large. The image processing method according to claim 2, wherein the value is corrected. 複数の方向にて補正条件を満たした場合、満たした方向の組み合わせにより、予め定めた方向の第1の参照画素の画素値に基づいて補正対象画素の画素値を補正することを特徴とする請求項2乃至7のいずれか1項に記載の画像処理方法。   When the correction conditions are satisfied in a plurality of directions, the pixel value of the correction target pixel is corrected based on the pixel value of the first reference pixel in the predetermined direction by a combination of the satisfied directions. Item 8. The image processing method according to any one of Items 2 to 7. 前記補正対象画素の画素値から前記第1の参照画素の画素値を引いた値に1以下の定数を掛けた値を補正値とし、前記補正対象画素の画素値から前記補正値だけ引くことで、前記補正対象画素の画素値を補正することを特徴とする請求項2乃至10のいずれか1項に記載の画像処理方法。   By subtracting only the correction value from the pixel value of the correction target pixel, a value obtained by subtracting the pixel value of the first reference pixel from the pixel value of the correction target pixel and a constant of 1 or less is used as a correction value. The image processing method according to claim 2, wherein a pixel value of the correction target pixel is corrected. 複数の方向にて補正条件を満たした場合、満たした複数の方向の第1の参照画素の各画素値の中間の値に基づいて補正対象画素の画素値を補正することを特徴とする請求項2乃至7のいずれか1項に記載の画像処理方法。   The pixel value of the correction target pixel is corrected based on an intermediate value of the pixel values of the first reference pixels in the plurality of directions that are satisfied when the correction condition is satisfied in a plurality of directions. The image processing method according to any one of 2 to 7. 補正対象画素の画素値から前記中間の値を引いた値に1以下の定数を掛けた値を補正値とし、前記補正対象画素の画素値から前記補正値だけ引くことで、前記補正対象画素の画素値を補正することを特徴とする請求項12記載の画像処理方法。   By subtracting only the correction value from the pixel value of the correction target pixel, a value obtained by subtracting the intermediate value from the pixel value of the correction target pixel and a constant of 1 or less is used as the correction value. The image processing method according to claim 12, wherein the pixel value is corrected. 前記画像データは原画像データに対して解像度変換処理されたものであることを特徴とする請求項1乃至13のいずれか1項に記載の画像処理方法。   The image processing method according to claim 1, wherein the image data has been subjected to resolution conversion processing on the original image data. 入力された画像データを記憶する入力画像データ記憶手段と、前記入力画像データ記憶手段に記憶された画像データを処理する画像処理手段と、前記画像処理手段で処理された画像データを記憶する出力画像データ記憶手段を備え、前記画像処理手段は前記請求項1乃至14のいずれか1項に記載の画像処理方法を実施することを特徴とする画像処理装置。   Input image data storage means for storing input image data, image processing means for processing image data stored in the input image data storage means, and output image for storing image data processed by the image processing means 15. An image processing apparatus comprising data storage means, wherein the image processing means implements the image processing method according to any one of claims 1 to 14. 請求項15に記載の画像処理装置と、前記画像処理装置の出力画像データ記憶手段に記憶された画像データを表示する画像表示手段とを備えていることを特徴とする画像表示装置。   16. An image display device comprising: the image processing device according to claim 15; and image display means for displaying image data stored in output image data storage means of the image processing device. 請求項1乃至13のいずれか1項に記載の画像処理方法をコンピュータに実行させるためのプログラム。
A program for causing a computer to execute the image processing method according to any one of claims 1 to 13 .
JP2008002035A 2008-01-09 2008-01-09 Image processing method and apparatus, image display apparatus and program Expired - Fee Related JP5293923B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008002035A JP5293923B2 (en) 2008-01-09 2008-01-09 Image processing method and apparatus, image display apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008002035A JP5293923B2 (en) 2008-01-09 2008-01-09 Image processing method and apparatus, image display apparatus and program

Publications (2)

Publication Number Publication Date
JP2009163096A JP2009163096A (en) 2009-07-23
JP5293923B2 true JP5293923B2 (en) 2013-09-18

Family

ID=40965764

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008002035A Expired - Fee Related JP5293923B2 (en) 2008-01-09 2008-01-09 Image processing method and apparatus, image display apparatus and program

Country Status (1)

Country Link
JP (1) JP5293923B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6244542B2 (en) * 2013-07-12 2017-12-13 パナソニックIpマネジメント株式会社 Projection-type image display device and control method for projection-type image display device
JP6525853B2 (en) * 2015-11-02 2019-06-05 アルパイン株式会社 Electronic device, white line detection program and white line detection method
CN106898291B (en) * 2017-04-28 2019-08-02 武汉华星光电技术有限公司 The driving method and driving device of display panel
CN114387909B (en) * 2022-02-21 2023-11-24 北京京东方显示技术有限公司 Source driving device, control method thereof and display system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11119762A (en) * 1997-10-15 1999-04-30 Canon Inc Display control device, display control method, and storage medium
JP3807903B2 (en) * 2000-07-28 2006-08-09 三菱電機株式会社 Image display apparatus and image processing method
JP2003018408A (en) * 2001-07-04 2003-01-17 Nidec Copal Corp Image processor and image processing method
JP4864332B2 (en) * 2004-07-13 2012-02-01 株式会社リコー Resolution conversion interpolation method, image processing apparatus, image display apparatus, program, and recording medium
JP2006154759A (en) * 2004-10-29 2006-06-15 Fujitsu Ten Ltd Image interpolation device and display device
JP4777675B2 (en) * 2005-03-17 2011-09-21 株式会社リコー Image processing apparatus, image display apparatus, image processing method, program for causing computer to execute the method, and recording medium

Also Published As

Publication number Publication date
JP2009163096A (en) 2009-07-23

Similar Documents

Publication Publication Date Title
JP5911518B2 (en) Display device, display device control method, and program
EP2003614B1 (en) Method and apparatus for contrast enhancement
JP4577621B2 (en) Image correction processing system and image correction processing method
JP5302961B2 (en) Control device for liquid crystal display device, liquid crystal display device, control method for liquid crystal display device, program, and recording medium therefor
KR100916073B1 (en) Apparatus and method of stretching histogram for enhancing contrast of image
JPWO2009157224A1 (en) Control device for liquid crystal display device, liquid crystal display device, control method for liquid crystal display device, program, and recording medium
JP2011107702A (en) Image processing system of input image, image display system, and image processing method
JP5257108B2 (en) Projector, projection system, image display method, and image display program
JP5293923B2 (en) Image processing method and apparatus, image display apparatus and program
JP2010503896A (en) Masking visual defects
JP5487597B2 (en) Image processing apparatus, image display apparatus, and image processing method
KR101389359B1 (en) Display apparatus and method of adjusting brightness for the same
JP4872508B2 (en) Image processing apparatus, image processing method, and program
TWI542189B (en) Image display apparatus, method of driving image display apparatus, grayscale conversion conputer program product, and grayscale conversion apparatus
US20190139500A1 (en) Display apparatus and control method thereof
JP2006165828A (en) Gradation correcting device
JP2006086788A (en) Picture correction method, picture correction apparatus, projection type picture display device and brightness unevenness and/or color unevenness correction program
JP5141871B2 (en) Image processing method and image display apparatus
KR101357164B1 (en) Digital image processing apparatus, display method of the apparatus, and recording medium storing program to implement the display method
JP2008160607A (en) Gray level correction device and video display device having the same
JP5047700B2 (en) Image display apparatus, image processing method, and program
JP2015106318A (en) Image processor and image processing method
TWM448754U (en) Image contrast enhancement system
KR100994634B1 (en) Method and apparatus for enhancing image quality
JP2005123813A (en) Image processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101006

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121024

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130206

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130328

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: 20130515

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130528

R151 Written notification of patent or utility model registration

Ref document number: 5293923

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees