【0001】
【発明の属する技術分野】
本発明は、文字や数字,キャラクタ等のカラーオンスクリーンディスプレイ(以下、OSDという。)を行う画像処理方法及びその装置に係り、特に、背景色が如何なる色であってもOSD用の文字等を見やすく表示させることができる画像処理方法及びその装置に関する。
【0002】
【従来の技術】
デジタルスチルカメラやデジタルビデオカメラ等の電子機器には、撮像した画像をその場で見ることができるように、液晶等の表示装置が搭載されている。この表示装置には、撮像画像が表示される一方、電子機器の操作メニュー等もOSD機能によって撮像画像に重ねて表示される。
【0003】
斯かる操作メニュー等のOSD用のデータは、例えば特開平5―347767号公報(特許文献1)に記載されている様に、予め決められた文字やキャラクタ等で構成され、その表示色データも予め決められメモリに登録されている。そして、OSDを行うときにメモリからOSD用データが読み出され、表示装置に表示される。例えば、図3に示す様に、画面1の中にOSD用データ2(図示の例では文字「A」)が背景色中に表示される。
【0004】
【特許文献1】
特開平5―347767号公報
【0005】
【発明が解決しようとする課題】
OSD用データを背景色となる撮像画像に重畳表示したとき、OSD用データが背景色と異なる色であればOSD用データを画面上で識別可能である。しかし、背景色は決まった色ではなく、撮像画像の様にその時々で違う色となる場合には、背景色とOSD用データとが同一色や同系色となることがあり、見づらくなってしまう。また、撮像画像の様な背景色では、画面中の場所毎に背景色が異なるため、OSD用データの色と背景色とが所々で同一色になることがあり、OSD用データの表示が所々途切れて見づらくなることもある。
【0006】
斯かる事態を回避するには、OSD用データの表示色を多数用意してメモリに登録しておき、場所毎の背景色を検出して画面上で見やすい色のOSD用データの表示色を選択し表示すればよいことになる。しかし、この様なOSDを実現するには、OSD用の表示色データのデータ量が膨大になってしまい、メモリ容量が嵩み電子機器のコスト増になってしまうという問題が生じる。
【0007】
本発明の目的は、OSD用データを背景色にかかわらず見やすく表示することができ、しかも表示色データのデータ量を削減してメモリ容量を低減できる画像処理方法及びその装置を提供することにある。
【0008】
【課題を解決するための手段】
上記目的は、背景色が表示されている画面に所望データをカラーオンスクリーンディスプレイにより重畳表示する画像処理において、前記画面に前記所望データを重畳表示するに際し、該画面の前記所望データ表示位置の背景色の色信号を反転させた補色によって前記所望データを表示することで、達成される。
【0009】
この構成により、所望データの表示色を予め決めておかなくても、背景色から識別できる補色で画面に所望データが表示されるため、背景色にかかわらず所望データが識別可能に表示され、しかも表示色データの登録が不要なため、メモリ容量が削減できる。
【0010】
上記目的は更に、前記所望データを前記補色で表示するとき前記所望データ表示位置の背景色輝度と異なる輝度で該所望データを表示することで、達成される。この構成により、背景色が無色であっても輝度の違いにより所望データを識別可能に表示することができる。
【0011】
【発明の実施の形態】
以下、本発明の一実施形態について、図面を参照して説明する。
【0012】
図1は、本発明の第1実施形態に係るOSD用画像処理装置の構成図である。このOSD用画像処理装置10には、背景色のデータとして輝度信号Y,色差信号Cr,Cbが表示画面のピクセル毎に入力し、その他に、OSD用の輝度データYosdと、OSDスイッチ信号(OSD‐SW)とが入力される。
【0013】
OSDスイッチ信号とは、図3の画面1においてピクセル単位にオン/オフとなる信号であり、そのピクセルがOSD用データ2の領域中のピクセルを示す場合に「オン」、OSD用データ2の外部領域のピクセルを示す場合に「オフ」となる信号である。
【0014】
OSD用画像処理装置10は、輝度切替手段として機能するスイッチ手段11と符号反転/非反転手段12とを備える。スイッチ手段11には、OSD用輝度データYosdと背景色データ中の輝度信号Yとが入力され、OSDスイッチ信号が「オン」のときOSD用輝度データYosdが選択され、OSDスイッチ信号が「オフ」のとき背景色データ中の輝度信号Yが選択され、画像処理装置10から輝度信号Y’として出力される。
【0015】
符号反転/非反転手段12には、色差信号Cr,Cbが入力され、OSDスイッチ信号が「オン」のとき色差信号Cr,Cbが共に符号反転され、OSDスイッチ信号が「オフ」のとき色差信号Cr,Cbが非反転され、画像処理装置10から色差信号Cr’,Cb’として出力される。
【0016】
斯かる構成の画像処理装置において、背景色として撮像画像が表示されており、今、図3に示す様に、OSD用データとして文字Aを表示する場合を説明する。
【0017】
画面1の水平走査方向(矢印H方向)にOSD用画像処理がピクセル単位に進み、OSDスイッチ信号の示すピクセルがOSD用データである文字Aの領域内に入らない領域では、OSDスイッチ信号は「オフ」となっている。このため、スイッチ手段11は背景色データの輝度信号Yを選択し、符号反転/非反転手段12は背景色データの色差信号Cr,Cbをそのまま出力し、これが画面1に表示されるため、背景色(撮像画像等)がそのまま表示される。
【0018】
OSDスイッチ信号の示すピクセルがOSDで表示したい文字Aの領域内に入ると、スイッチ手段11はOSD用輝度データYosdを選択し、符号反転/非反転手段12は背景色データの色差信号Cr,Cbを夫々符号反転して出力する。これにより、画面1には、文字Aが背景色に対する補色で表示され、文字Aの識別が容易となる。また、このとき背景色が無色であると色による文字Aの識別はできないが、文字Aの輝度(Yosd)が周りの輝度(Y)と異なるため、識別が容易となる。
【0019】
この様に、本実施形態に係る画像処理装置10では、背景色の色を使ってOSD用データの色を定めるため、背景色にかかわらずOSD用データの画面上の識別が容易となり、また、予めOSD用データの表示色を決めておく必要がないため、表示色データ用のメモリも不要となる。
【0020】
尚、本実施形態では、OSD用データの色差信号Cr,Cbを共に符号反転したが、いずれか一方の色差信号だけを反転し他方の色差信号を固定値にするだけでも、容易にOSD用データの画面上での識別が可能となる。
【0021】
図2は、本発明の第2実施形態に係るOSD用画像処理装置の構成図である。OSD機能を搭載した電子機器によっては、色差信号がテレビジョンのセパレート信号の様に平衡変調されている場合がある。本実施形態は、この様な電子機器に搭載されるOSD用画像処理装置の構成図である。
【0022】
本実施形態に係るOSD用画像処理装置20は、スイッチ手段21と、符号反転/非反転手段22とを備え、これらは、OSDスイッチ信号にて制御される。スイッチ手段21には、OSD用輝度データYosdと、背景色データの輝度信号Yとが入力され、OSDスイッチ信号のオンオフ状態によって第1実施形態と同様に一方が選択され、出力される。
【0023】
符号反転/非反転手段22の前段には、平衡変調器23が置かれ、この平衡変調器23に、背景色データの色差信号Cr,Cbが入力される。平衡変調器23は、サブキャリア信号SCを受けて色差信号Cr,Cbを1つのクロマ信号Cに変調し、符号反転/非反転手段22に出力する。符号反転/非反転手段22は、OSDスイッチ信号が「オン」のときクロマ信号Cを反転して出力させ、OSDスイッチ信号が「オフ」のときクロマ信号Cを非反転して出力させる。
【0024】
この様に構成されたOSD用画像処理装置20では、OSDスイッチ信号の示すピクセルがOSD用データである図3の文字Aの領域内に入らない領域では、OSDスイッチ信号は「オフ」となっている。このため、スイッチ手段21は背景色データの輝度信号Yを選択し、符号反転/非反転手段22は背景色データのクロマ信号Cをそのまま出力し、これが画面1に表示されるため、背景色がそのまま表示される。
【0025】
OSDスイッチ信号の示すピクセルが文字Aの領域内に入ると、スイッチ手段21はOSD用輝度データYosdを選択し、符号反転/非反転手段22は背景色データのクロマ信号Cを符号反転して出力する。これにより、画面1には、文字Aが背景色に対する補色で表示され、文字Aの識別が容易となる。また、このとき背景色が無色であると色による文字Aの識別はできないが、文字Aの輝度(Yosd)が周りの輝度(Y)と異なるため、識別が容易となる。
【0026】
この様に、本実施形態に係るOSD用画像処理装置20でも、背景色の色を使ってOSD用データの色を定めるため、背景色にかかわらずOSD用データの画面上の識別が容易となり、また、予めOSD用データの表示色を決めておく必要がないため、表示色データ用のメモリも不要となる。
【0027】
【発明の効果】
本発明によれば、OSD用データの表示色を予め決めておく必要がなく、このため、表示色用データが不要となってメモリ容量が削減でき、しかも、背景色にかかわらずOSD用データを容易に背景色から識別表示させることができる。
【図面の簡単な説明】
【図1】本発明の第1実施形態に係るOSD用画像処理装置の構成図である。
【図2】本発明の第2実施形態に係るOSD用画像処理装置の構成図である。
【図3】画面にOSD用データである文字Aを表示した説明図である。
【符号の説明】
10,20 OSD用画像処理装置
11,21 スイッチ手段(輝度切替手段)
12,22 符号反転/非反転手段
Yosd OSD用輝度データ
Y 背景色の輝度信号
Cr,Cb 背景色の色差信号
C 平衡変調後のクロマ信号
Y’ OSD用画像処理装置から出力される輝度信号
Cr’,Cb’ OSD用画像処理装置から出力される色差信号
C’ OSD用画像処理装置から出力されるクロマ信号[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and apparatus for performing color on-screen display (hereinafter referred to as OSD) of letters, numbers, characters, and the like, and in particular, for OSD characters and the like regardless of the background color. The present invention relates to an image processing method and apparatus capable of being displayed in an easily viewable manner.
[0002]
[Prior art]
Electronic devices such as digital still cameras and digital video cameras are equipped with a display device such as a liquid crystal so that captured images can be viewed on the spot. On this display device, a captured image is displayed, and an operation menu of the electronic device is displayed on the captured image by the OSD function.
[0003]
Such OSD data such as operation menus are composed of predetermined characters, characters, etc., as described in, for example, Japanese Patent Laid-Open No. 5-347767 (Patent Document 1), and the display color data is also displayed. It is determined in advance and registered in the memory. When OSD is performed, the OSD data is read from the memory and displayed on the display device. For example, as shown in FIG. 3, OSD data 2 (character “A” in the illustrated example) is displayed in the background color in the screen 1.
[0004]
[Patent Document 1]
JP-A-5-347767
[Problems to be solved by the invention]
When the OSD data is superimposed on the captured image as the background color, the OSD data can be identified on the screen if the OSD data is a color different from the background color. However, if the background color is not a fixed color and is different from time to time as in a captured image, the background color and the OSD data may be the same color or similar colors, making it difficult to see. . In addition, in the background color such as a captured image, the background color is different for each place on the screen, so the color of the OSD data and the background color may be the same in some places, and the display of the OSD data is in some places. Sometimes it becomes interrupted and difficult to see.
[0006]
To avoid such a situation, prepare many OSD data display colors and register them in memory, detect the background color for each location, and select the OSD data display color that is easy to see on the screen. And display it. However, in order to realize such an OSD, there is a problem that the amount of display color data for OSD becomes enormous, the memory capacity increases, and the cost of the electronic device increases.
[0007]
An object of the present invention is to provide an image processing method and apparatus that can display OSD data in an easy-to-view manner regardless of the background color, and reduce the amount of display color data to reduce the memory capacity. .
[0008]
[Means for Solving the Problems]
In the image processing in which desired data is superimposed and displayed on a screen on which a background color is displayed by a color on-screen display, when the desired data is superimposed and displayed on the screen, the background of the desired data display position on the screen is displayed. This is achieved by displaying the desired data with a complementary color obtained by inverting the color signal of the color.
[0009]
With this configuration, since the desired data is displayed on the screen in a complementary color that can be identified from the background color without determining the display color of the desired data in advance, the desired data is displayed in an identifiable manner regardless of the background color. Since the display color data need not be registered, the memory capacity can be reduced.
[0010]
The object is further achieved by displaying the desired data with a luminance different from the background color luminance of the desired data display position when the desired data is displayed in the complementary color. With this configuration, even if the background color is colorless, desired data can be displayed in an identifiable manner due to the difference in luminance.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0012]
FIG. 1 is a configuration diagram of an OSD image processing apparatus according to the first embodiment of the present invention. The OSD image processing apparatus 10 receives a luminance signal Y and color difference signals Cr and Cb as background color data for each pixel of the display screen. In addition, the OSD luminance data Yosd and an OSD switch signal (OSD -SW).
[0013]
The OSD switch signal is a signal that is turned on / off in units of pixels in the screen 1 of FIG. 3. When the pixel indicates a pixel in the area of the OSD data 2, the OSD switch signal is “ON”. This signal is “off” when indicating a pixel in a region.
[0014]
The OSD image processing apparatus 10 includes a switch unit 11 that functions as a luminance switching unit and a sign inversion / non-inversion unit 12. The switch means 11 receives the OSD luminance data Yosd and the luminance signal Y in the background color data. When the OSD switch signal is “ON”, the OSD luminance data Yosd is selected and the OSD switch signal is “OFF”. At this time, the luminance signal Y in the background color data is selected and output from the image processing apparatus 10 as the luminance signal Y ′.
[0015]
The color inversion / non-inversion means 12 receives the color difference signals Cr and Cb. When the OSD switch signal is “ON”, the color difference signals Cr and Cb are both inverted in sign and when the OSD switch signal is “OFF”. Cr and Cb are non-inverted and output from the image processing apparatus 10 as color difference signals Cr ′ and Cb ′.
[0016]
In the image processing apparatus having such a configuration, a captured image is displayed as a background color, and now a case where a character A is displayed as OSD data as shown in FIG. 3 will be described.
[0017]
In the area where the OSD image processing proceeds in units of pixels in the horizontal scanning direction (arrow H direction) of the screen 1 and the pixel indicated by the OSD switch signal does not fall within the area of the character A which is the OSD data, the OSD switch signal is “ "Off". Therefore, the switch means 11 selects the luminance signal Y of the background color data, and the sign inversion / non-inversion means 12 outputs the color difference signals Cr and Cb of the background color data as they are and are displayed on the screen 1, so that the background The color (captured image or the like) is displayed as it is.
[0018]
When the pixel indicated by the OSD switch signal enters the area of the character A to be displayed by the OSD, the switch means 11 selects the OSD luminance data Yosd, and the sign inversion / non-inversion means 12 selects the color difference signals Cr, Cb of the background color data. Are inverted and output. As a result, the character A is displayed on the screen 1 in a complementary color to the background color, and the character A can be easily identified. At this time, if the background color is colorless, the character A cannot be identified by the color, but the luminance (Yosd) of the character A is different from the surrounding luminance (Y), so that the identification is easy.
[0019]
As described above, in the image processing apparatus 10 according to the present embodiment, the color of the OSD data is determined using the background color, so that the OSD data can be easily identified on the screen regardless of the background color. Since it is not necessary to determine the display color of the OSD data in advance, a memory for display color data is also unnecessary.
[0020]
In the present embodiment, the OSD data color difference signals Cr and Cb are both inverted in sign, but the OSD data can be easily obtained by inverting only one of the color difference signals and setting the other color difference signal to a fixed value. Can be identified on the screen.
[0021]
FIG. 2 is a configuration diagram of an OSD image processing apparatus according to the second embodiment of the present invention. Depending on the electronic device having the OSD function, the color difference signal may be balanced and modulated like a television separate signal. The present embodiment is a configuration diagram of an OSD image processing apparatus mounted on such an electronic apparatus.
[0022]
The OSD image processing apparatus 20 according to the present embodiment includes a switch unit 21 and a sign inversion / non-inversion unit 22, which are controlled by an OSD switch signal. The OSD luminance data Yosd and the background color data luminance signal Y are input to the switch means 21, and one of them is selected and output according to the on / off state of the OSD switch signal as in the first embodiment.
[0023]
A balanced modulator 23 is placed in front of the sign inverting / non-inverting means 22, and color difference signals Cr and Cb of background color data are input to the balanced modulator 23. The balanced modulator 23 receives the subcarrier signal SC, modulates the color difference signals Cr and Cb into one chroma signal C, and outputs it to the sign inversion / non-inversion means 22. The sign inversion / non-inversion means 22 inverts and outputs the chroma signal C when the OSD switch signal is “ON”, and outputs the chroma signal C by non-inversion when the OSD switch signal is “OFF”.
[0024]
In the OSD image processing apparatus 20 configured as described above, the OSD switch signal is “OFF” in the area where the pixel indicated by the OSD switch signal does not fall within the area of the letter A in FIG. Yes. For this reason, the switch means 21 selects the luminance signal Y of the background color data, and the sign inversion / non-inversion means 22 outputs the chroma signal C of the background color data as it is and is displayed on the screen 1, so that the background color is changed. It is displayed as it is.
[0025]
When the pixel indicated by the OSD switch signal enters the area of the letter A, the switch means 21 selects OSD luminance data Yosd, and the sign inversion / non-inversion means 22 inverts and outputs the chroma signal C of the background color data. To do. As a result, the character A is displayed on the screen 1 in a complementary color to the background color, and the character A can be easily identified. At this time, if the background color is colorless, the character A cannot be identified by the color, but the luminance (Yosd) of the character A is different from the surrounding luminance (Y), so that the identification is easy.
[0026]
As described above, the OSD image processing apparatus 20 according to the present embodiment also uses the background color to determine the color of the OSD data. Therefore, the OSD data can be easily identified on the screen regardless of the background color. In addition, since it is not necessary to determine the display color of the OSD data in advance, a memory for display color data is also unnecessary.
[0027]
【The invention's effect】
According to the present invention, there is no need to predetermine the display color of the OSD data, so that the display color data is not required, the memory capacity can be reduced, and the OSD data can be reduced regardless of the background color. It can be easily identified and displayed from the background color.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an OSD image processing apparatus according to a first embodiment of the present invention.
FIG. 2 is a configuration diagram of an OSD image processing apparatus according to a second embodiment of the present invention.
FIG. 3 is an explanatory diagram in which a character A which is OSD data is displayed on a screen.
[Explanation of symbols]
10,20 OSD image processing apparatus 11, 21 switch means (luminance switching means)
12, 22 Sign Inversion / Non-Inversion Means Yosd OSD Luminance Data Y Background Color Luminance Signals Cr, Cb Background Color Color Difference Signal C Chroma Signal Y ′ After Balanced Modulation Y ′ OSD Luminance Signal Cr ′ Output from Image Processing Device , Cb ′ OSD image processing apparatus, color difference signal C ′ OSD image processing apparatus, chroma signal