JPH0973535A - Image processor and image processing method - Google Patents

Image processor and image processing method

Info

Publication number
JPH0973535A
JPH0973535A JP7230110A JP23011095A JPH0973535A JP H0973535 A JPH0973535 A JP H0973535A JP 7230110 A JP7230110 A JP 7230110A JP 23011095 A JP23011095 A JP 23011095A JP H0973535 A JPH0973535 A JP H0973535A
Authority
JP
Japan
Prior art keywords
image
color
principal component
component analysis
emphasis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7230110A
Other languages
Japanese (ja)
Inventor
Masahide Nishiura
正英 西浦
Mutsumi Watanabe
睦 渡辺
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP7230110A priority Critical patent/JPH0973535A/en
Publication of JPH0973535A publication Critical patent/JPH0973535A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute color emphasis for setting the fluctuation of emphasis effect owing to an object and the change of illumination light at the time of picking up an image to be small and for arbitrarily setting an emphasis color while the difference of the colors is clearly emphasized in a color image processing emphasizing the slight difference of the objective image. SOLUTION: A main component analysis part 2 analyzing a main component for the color density of the inputted image and deciding a threshold surface from an obtained result, an emphasis color setting part 4 setting a color emphasis vector E deciding the color after emphasis, a change chromaticity calculation part 3 calculating the change chromaticity of the respective image elements of image data by the threshold surface obtained by the main component analysis part 2 and the color emphasis vector E and a color emphasis part 5 emphasizing the colors of the respective image elements by using change chromaticity are provided.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像中の特
定対象部分に対して色強調を行なう画像処理装置及び方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and method for performing color enhancement on a specific target portion in a color image.

【0002】[0002]

【従来の技術】従来より、カラー画像による表面欠陥の
検査、医用画像診断等では、画像中のわずかな色の違い
を識別することが重要であった。例えば、果物等の傷の
検査では、傷の部分の色が異なっていることを利用して
傷の有無を判断している。また、内視鏡装置などを用い
た医用画像診断においては、医師は色調の微妙な変化に
注目している。
2. Description of the Related Art Conventionally, it has been important to identify slight color differences in images in the inspection of surface defects by color images, medical image diagnosis and the like. For example, in the inspection of scratches on fruits and the like, the presence or absence of scratches is judged by utilizing the fact that the color of the scratches is different. In addition, in medical image diagnosis using an endoscope device or the like, doctors pay attention to subtle changes in color tone.

【0003】そのため、視認性を向上させるべく色強調
を施す方法がこれまで多々提案されてきた。例えば、内
視鏡画像処理装置に関する色強調では、特開平2−11
4931のようにRGB画像をHSV空間に変換した後
にヒストグラム平坦化を行なう色強調方法や、特開昭6
2−266028のように色の3要素である色相、彩
度、明度各々に対して強調処理を施す方法等が挙げられ
ている。
Therefore, many methods have been proposed so far in which color enhancement is performed in order to improve the visibility. For example, in color enhancement related to an endoscopic image processing device, Japanese Patent Laid-Open No. 2-11
4931, a color enhancement method for converting an RGB image into an HSV space and then performing histogram flattening;
A method of performing emphasis processing for each of the three elements of color, such as hue, saturation, and lightness, like 2-266028 is mentioned.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記ヒ
ストグラム平坦化を行なう方法では、入力画像と比較し
て色調が不自然に異なった画像となってしまうという不
具合を生じていた。例えば、彩度についてヒストグラム
平坦化処理を施すと、原画像において彩度の比較的低い
部分はより彩度が低く強調されてしまうため、強調後の
画像では同部分が変に白っぽくなってしまうなど、医師
が判断を行なう上でこのような極端な色の変化を生じる
ことは不都合となる。
However, the above method of flattening the histogram has a disadvantage that the image has an unnaturally different color tone compared to the input image. For example, if the histogram flattening process is applied to the saturation, the relatively low-saturation portion of the original image is emphasized with a lower saturation, so that the emphasized image becomes strangely whitish. However, it is inconvenient for a doctor to make such an extreme color change.

【0005】また、対象物や撮像時の照明等の変化によ
ってその効果が異なることも問題となっており、強調部
分の色を任意に可変設定することも困難であるという実
用度の低いものであった。
Another problem is that the effect varies depending on the change of the object and the illumination at the time of image pickup, and it is difficult to set the color of the emphasized part arbitrarily and variably. there were.

【0006】本発明は上記のような実情に鑑みてなされ
たもので、その目的とするところは、対象画像のわずか
な色の違いを強調するカラー画像処理において、色の違
いを明確に強調しながらも、対象物や撮像時の照明灯の
変化による強調効果の変動を小さくし、強調色を任意に
設定し得る色強調を実施可能な画像処理装置及び方法を
提供することにある。
The present invention has been made in view of the above situation, and an object of the present invention is to clearly emphasize color differences in color image processing for emphasizing a slight color difference of a target image. However, it is still another object of the present invention to provide an image processing apparatus and method capable of reducing the variation of the enhancement effect due to the change of the object or the illumination lamp at the time of image pickup and performing the color enhancement in which the enhancement color can be arbitrarily set.

【0007】[0007]

【課題を解決するための手段】すなわち本発明は、 (1) 入力された少なくとも対象部分を含む画像の色
濃度に対して主成分分析を行なう主成分分析手段と、こ
の主成分分析手段で得た結果からしきい面を決定する決
定手段と、この決定手段で得たしきい面で分割された領
域の上記画像中の対象部分に対して色濃度の分離強調を
行なう強調手段とを備えたものである。
Means for Solving the Problems That is, the present invention is as follows: (1) A principal component analysis unit for performing a principal component analysis on the color density of an input image containing at least a target portion; The determination means for determining the threshold plane from the result and the emphasis means for separating and enhancing the color density for the target portion in the image of the region divided by the threshold plane obtained by this determination means are provided. It is a thing.

【0008】このようにすれば、主成分分析手段によっ
て画像中の最も代表的な色成分が第1主成分として抽出
され、その代表的な色成分からのずれは第2主成分、第
3主成分で表わされる。したがって、これらの主成分ベ
クトルを利用して色空間内にしきい面を設定させること
で、しきい値等を設定することなしに、平均的な色とは
異なった色を画像に応じて分離強調させることができ
る。
In this way, the principal component analysis unit extracts the most representative color component in the image as the first principal component, and the deviation from the representative color component is the second principal component and the third principal component. It is represented by a component. Therefore, by setting a threshold plane in the color space using these principal component vectors, colors different from the average color can be separated and emphasized according to the image without setting a threshold value. Can be made.

【0009】(2) 上記(1)項において、上記強調
手段は、上記主成分分析で得られる特徴空間における上
記画像を構成する各画素位置からしきい面までの距離と
して、しきい面への垂線の長さを算出する距離算出手段
と、上記特徴空間における任意の変換ベクトルを入力す
るベクトル入力手段と、上記垂線の上記曲面との交点座
標を上記変換ベクトル方向にある点位置へ座標変換する
座標変換手段とを備えるようにしたものである。
(2) In the above item (1), the emphasizing means defines the distance from each pixel position forming the image in the feature space obtained by the principal component analysis to the threshold plane as the distance to the threshold plane. Distance calculation means for calculating the length of the perpendicular, vector input means for inputting an arbitrary transformation vector in the feature space, and coordinate transformation of the intersection coordinates of the curved surface of the perpendicular to the point position in the transformation vector direction. The coordinate conversion means is provided.

【0010】このようにすれば、任意に入力設定した色
強調ベクトルを用いて変色度に応じた強調処理を行なう
ことで、平均的な色からの差を任意の色に強調すること
ができる。
In this way, the difference from the average color can be emphasized to an arbitrary color by performing the emphasizing process according to the degree of color change using the color emphasizing vector that is arbitrarily input and set.

【0011】(3) 上記(1)項において、上記強調
手段は、上記主成分分析で得られる特徴空間において上
記しきい面あるいは予め設定した分割面により分割され
た領域のうち、ある特定の領域に属する画素のみに対し
て色強調処理を施すようにしたものである。
(3) In the above item (1), the emphasizing means is a specific region among regions divided by the threshold plane or a preset division plane in the feature space obtained by the principal component analysis. The color enhancement processing is applied only to the pixels belonging to.

【0012】このようにすれば、しきい面によって分割
された特定の領域に属さない他の領域の画素に対して不
要な色強調処理を施してしまうことがなく、任意の色強
調のみを選択的に行なうことができる。
In this way, only the arbitrary color enhancement is selected without performing unnecessary color enhancement processing on pixels in other regions which do not belong to the specific region divided by the threshold plane. You can

【0013】(4) 上記(1)項において、上記入力
された画像中の濃度値が予め設定された条件に適合する
画素のみを処理対象とする濃度判定を前処理として実施
し、実施後の画像を上記主成分分析手段あるいは上記強
調手段に提供する濃度値判定手段をさらに備えるように
したものである。
(4) In the above item (1), the density determination in which only the pixels whose density value in the input image meets the preset condition is processed as the preprocessing is executed, and A density value determination means for providing an image to the principal component analysis means or the enhancement means is further provided.

【0014】このようにすれば、前処理の段階で濃度判
定手段により予め設定した条件に適合する、色強調を行
なうのに適した画素と、対象物の正常な色を反映してい
ないと思われる画素とを知ることができ、対象物の正常
な色を反映していないと思われる画素に関しては処理の
対象から除外することで、照明状態の影響をより受けに
くい強調処理を実現することができる。
In this way, it is considered that the pixels suitable for color enhancement that meet the conditions preset by the density determination means in the preprocessing stage and the normal color of the object are not reflected. It is possible to realize the enhancement processing that is less affected by the lighting condition by excluding the pixels that do not reflect the normal color of the target object from the processing target. it can.

【0015】(5) 上記(4)項において、上記濃度
値判定手段が処理対象と判定した画素が予め設定された
条件に適合する場合にのみその画像を後段に提供して処
理を実行させる処理実行判定手段をさらに備えるように
したものである。
(5) In the above item (4), a process of providing the image to the subsequent stage and executing the process only when the pixel determined to be processed by the density value determining means meets a preset condition. The execution determination means is further provided.

【0016】このようにすれば、処理実行判定手段で予
め設定した条件に適合する画素のみを選択して後段の上
記主成分分析手段あるいは上記強調手段に提供すること
で、後段の上記主成分分析手段あるいは上記強調手段で
の処理を効率化することができる。
In this way, by selecting only the pixels which meet the preset conditions by the processing execution determination means and providing them to the subsequent principal component analysis means or the emphasis means, the latter principal component analysis. The processing by the means or the emphasizing means can be made efficient.

【0017】(6) 上記(5)項において、上記処理
実行判定手段は、処理対象となる画素数が上記画像の全
画素数に比べて一定の割合に達した場合にのみその画像
データ画素を後段に提供して処理を実行させるようにし
たものである。
(6) In the above item (5), the processing execution determining means selects the image data pixel only when the number of pixels to be processed reaches a certain ratio as compared with the total number of pixels of the image. It is provided at a later stage to execute processing.

【0018】このようにすれば、処理対象となる画素数
が上記画像の全画素数に比べて一定の割合に達しない場
合に当該画素の後段への供給を停止するため、強調を行
なう必要がないと判定したごく少数の画素についてはそ
の後段での処理を省略し、後段の上記主成分分析手段あ
るいは上記強調手段での処理をより効率化することがで
きる。
With this configuration, when the number of pixels to be processed does not reach a certain ratio compared to the total number of pixels of the image, the supply of the pixel to the subsequent stage is stopped, so that it is necessary to emphasize. For a very small number of pixels determined not to exist, the processing in the subsequent stage can be omitted, and the processing in the subsequent principal component analysis means or the emphasis means can be made more efficient.

【0019】(7) 入力された少なくとも対象部分を
含む画像の色濃度に対して主成分分析を行なう主成分分
析処理と、この主成分分析処理で得た結果からしきい面
を決定する決定処理と、この決定処理で得たしきい面で
分割された領域の上記画像中の対象部分に対して色濃度
の分離強調を行なう強調処理とを有するようにしたもの
である。
(7) Principal component analysis processing for performing principal component analysis on the color density of the input image containing at least the target portion, and determination processing for determining the threshold plane from the results obtained by this principal component analysis processing. And an emphasizing process for separating and emphasizing the color density with respect to a target portion in the image in the region divided by the threshold plane obtained by the determining process.

【0020】このようにすれば、主成分分析処理によっ
て画像中の最も代表的な色成分が第1主成分として抽出
され、その代表的な色成分からのずれは第2主成分、第
3主成分で表わされる。したがって、これらの主成分ベ
クトルを利用して色空間内にしきい面を設定すること
で、しきい値等を設定することなしに、平均的な色とは
異なった色を画像に応じて分離強調することができる。
In this way, the most representative color component in the image is extracted as the first principal component by the principal component analysis processing, and the deviation from the representative color component is the second principal component and the third principal component. It is represented by a component. Therefore, by setting the threshold plane in the color space using these principal component vectors, the color different from the average color can be separated and emphasized according to the image without setting the threshold value. can do.

【0021】(8) 上記(7)項において、上記強調
処理は、上記主成分分析で得られる特徴空間における上
記画像を構成する各画素位置からしきい面までの距離と
して、しきい面への垂線の長さを算出する距離算出処理
と、上記特徴空間における任意の変換ベクトルを入力す
るベクトル入力処理と、上記垂線の上記曲面との交点座
標を上記変換ベクトル方向にある点位置へ座標変換する
座標変換処理とを有するようにしたものである。
(8) In the above item (7), the emphasizing process is defined as the distance from each pixel position forming the image in the feature space obtained by the principal component analysis to the threshold plane, to the threshold plane. A distance calculation process for calculating the length of a perpendicular line, a vector input process for inputting an arbitrary transformation vector in the feature space, and coordinate conversion of intersection coordinates of the perpendicular line with the curved surface to a point position in the transformation vector direction. It has a coordinate conversion process.

【0022】このようにすれば、任意に入力設定した色
強調ベクトルを用いて変色度に応じた強調処理を行なう
ことで、平均的な色からの差を任意の色に強調すること
ができる。
In this way, the difference from the average color can be emphasized to an arbitrary color by performing the emphasizing process according to the degree of color change by using the color emphasizing vector arbitrarily input and set.

【0023】(9) 上記(7)項において、上記入力
された画像中の濃度値が予め設定された条件に適合する
画素のみを処理対象とする濃度判定を前処理として実施
し、実施後の画像を上記主成分分析処理あるいは上記強
調処理に提供する濃度値判定処理をさらに有するように
したものである。このようにすれば、前処理として濃度
判定処理により予め設定した条件に適合する、色強調を
行なう可能性のある画素を知ることができる。
(9) In the above item (7), the density determination in which only the pixels whose density value in the input image meets the preset condition is processed as the preprocessing is executed, and The image is further provided with a density value determination process for providing the principal component analysis process or the enhancement process. By doing this, it is possible to know the pixels that are likely to be color-emphasized and that meet the conditions preset by the density determination processing as preprocessing.

【0024】[0024]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(第1の実施の形態)以下図面を参照して本発明の第1
の実施の形態を説明する。図1はその回路構成を示すも
ので、本装置は、図示しない他の撮像装置から画像デー
タを入力する画像入力部1、入力された画像データのR
GB空間において主成分分析を行ない、得られた主成分
を用いてしきい面を決定する主成分分析部2、この主成
分分析部2から得られるしきい面を用いて画像データを
構成する各画素データの平均的な色からのずれを算出す
る変色度算出部3、強調後の色を決定する色強調ベクト
ルを設定する強調色設定部4、変色度に応じて色強調を
行なう色強調部5、色強調された画像データを出力する
画像出力部6、上記画像入力部1、主成分分析部2、変
色度算出部3、色強調部5及び画像出力部6にバス接続
されて画像データの転送を行なうデータバス7、他の各
回路を統括制御する制御部8、上記データバス7に接続
され、制御部8の制御の下に画像データを複数フレーム
分記憶可能な画像メモリ9を有する。
(First Embodiment) A first embodiment of the present invention will now be described with reference to the drawings.
An embodiment will be described. FIG. 1 shows the circuit configuration of the apparatus. This apparatus includes an image input unit 1 for inputting image data from another image pickup apparatus (not shown), and an R for input image data.
A principal component analysis unit 2 that performs a principal component analysis in the GB space and determines a threshold plane using the obtained principal components, and image data is configured using the threshold plane obtained from the principal component analysis unit 2. A color change degree calculation unit 3 that calculates a deviation of the pixel data from an average color, an emphasis color setting unit 4 that sets a color emphasis vector that determines the color after emphasis, and a color emphasis unit that performs color emphasis according to the degree of color change. 5, image output unit 6 for outputting color-enhanced image data, image input unit 1, principal component analysis unit 2, color change degree calculation unit 3, color enhancement unit 5, and image output unit 6 by bus connection to image data Has a data bus 7 for transferring data, a controller 8 for overall control of other circuits, and an image memory 9 connected to the data bus 7 and capable of storing image data for a plurality of frames under the control of the controller 8. .

【0025】次いで上記構成に基づいた動作について説
明する。図2は主として上記制御部8により制御される
全体の処理動作の流れを示すもので、その当初には、ま
ず図示しない他の撮像装置からの画像データを画像入力
部1で入力する(ステップA1)。
Next, the operation based on the above configuration will be described. FIG. 2 mainly shows the flow of the entire processing operation controlled by the control unit 8, and at the beginning thereof, image data from another image pickup device (not shown) is first input to the image input unit 1 (step A1). ).

【0026】ここで、入力画像を得るための撮像装置に
特に制限はなく、テレビカメラ、赤外線カメラ等であっ
てもよいし、超音波診断装置、MRI装置、内視鏡装置
等の医用撮像装置であってもよい。画像入力部1では、
入力された画像データを各画素単位でA/D変換してデ
ジタル化した後に、原画像データとしてデータバス7を
介して画像メモリ9に格納させる。
Here, the image pickup device for obtaining the input image is not particularly limited, and may be a television camera, an infrared camera or the like, or a medical image pickup device such as an ultrasonic diagnostic device, an MRI device or an endoscope device. May be In the image input unit 1,
The input image data is A / D-converted for each pixel and digitized, and then stored as original image data in the image memory 9 via the data bus 7.

【0027】この画像メモリ9に格納された原画像デー
タに対して、次に主成分分析部2が主成分分析を行なう
(ステップA2)。この主成分分析部2が行なう主成分
分析は、対象とする情報がもつ最も代表的な成分を抽出
する方法であって、その詳細な処理内容は図3に示すよ
うになる。
The principal component analysis unit 2 then performs principal component analysis on the original image data stored in the image memory 9 (step A2). The principal component analysis performed by the principal component analysis unit 2 is a method of extracting the most representative component of the target information, and the detailed processing contents are as shown in FIG.

【0028】すなわち主成分分析部2は、まず画像デー
タの各画素のRGB濃度値の共分散行列を計算し(ステ
ップB1)、次に計算した共分散行列の固有値及び固有
ベクトルを算出する(ステップB2)。RGB濃度値の
共分散行列は次式
That is, the principal component analysis unit 2 first calculates a covariance matrix of RGB density values of each pixel of image data (step B1), and then calculates an eigenvalue and an eigenvector of the calculated covariance matrix (step B2). ). The covariance matrix of RGB density values is

【0029】[0029]

【数1】 で表わされるもので、この式中のE(・)は平均値を表
わす。得られた共分散行列の固有値及び固有ベクトル
は、それぞれ次の(2)式を満たすλi とυi である。
[Equation 1] And E (·) in this equation represents an average value. The eigenvalues and eigenvectors of the obtained covariance matrix are λi and υi that satisfy the following equation (2), respectively.

【0030】[0030]

【数2】 [Equation 2]

【0031】上記共分散行列は(1)式に示す如く3×
3の行列であるので、得られる固有値、固有ベクトルは
3種類あることになる。共分散行列の固有値はすべて正
の実数であることが知られており、このうち、最大の固
有値に対応する固有ベクトルが第1主成分である。同様
に、2番目に大きい固有値に対応する固有ベクトルが第
2主成分、最も小さい固有値に対応する固有ベクトルが
第3主成分である。
The above covariance matrix is 3 × as shown in equation (1).
Since it is a matrix of 3, there are three types of eigenvalues and eigenvectors obtained. It is known that the eigenvalues of the covariance matrix are all positive real numbers, of which the eigenvector corresponding to the largest eigenvalue is the first principal component. Similarly, the eigenvector corresponding to the second largest eigenvalue is the second principal component, and the eigenvector corresponding to the smallest eigenvalue is the third principal component.

【0032】各主成分の意味は画像データの種類により
様々であるが、例えば消化器内視鏡画像のように対象物
が消化管の内壁である場合には、第1主成分の方向が画
像データ全体の平均的な色を表わし、原点に近いほど暗
く、原点から遠ざかるほど明るいことになる。そして、
第2主成分、第3主成分は平均的な色からのずれを表わ
すことが多い。
The meaning of each principal component varies depending on the type of image data, but when the object is the inner wall of the digestive tract, for example, as in a digestive endoscopy image, the direction of the first principal component is the image. It represents the average color of the whole data, and the closer it is to the origin, the darker it is. And
The second principal component and the third principal component often represent a deviation from an average color.

【0033】主成分分析を行なうことの利点は、対象物
の色が変化したり、撮像時の照明が変化した場合でも、
最も代表的な成分を抽出することができ、且つ絶対的な
値を用いて色強調を行なう場合に比して対象物の色の変
化、撮像時の照明の変化による影響が少ないことであ
る。
The advantage of performing the principal component analysis is that even if the color of the object changes or the illumination at the time of imaging changes,
The most representative component can be extracted, and the influence of the change of the color of the object and the change of the illumination at the time of image pickup is less than that in the case where the color enhancement is performed using the absolute value.

【0034】さて、共分散行列の固有値、固有ベクトル
の計算を終えると、次に算出された主成分を用いてしき
い面を決定する(ステップB3)。本実施の形態では、
図5に示す如く第2主成分を法線ベクトルとする平面を
しきい面とする。このようにしきい面を決定すること
で、平均的な色からのずれを分離強調することができ
る。このしきい面の方程式は、第2主成分を(υR ,υ
G ,υB )とすると、次の(3)式で表わされる。
When the calculation of the eigenvalues and eigenvectors of the covariance matrix is completed, the threshold plane is determined using the calculated principal components (step B3). In this embodiment,
As shown in FIG. 5, a plane whose normal vector is the second principal component is a threshold surface. By determining the threshold plane in this way, the deviation from the average color can be separated and emphasized. This threshold surface equation defines the second principal component as (υ R , υ
G , υ B ) is expressed by the following equation (3).

【0035】[0035]

【数3】 (Equation 3)

【0036】処理の目的と画像の性質によって、第1主
成分または第3主成分を法線ベクトルとする平面をしき
い面としてもよい。例えば第1主成分を法線ベクトルと
するような平面をしきい面として決定した場合、明るさ
に関する強調を行なうことができる。
Depending on the purpose of processing and the nature of the image, a plane having the first principal component or the third principal component as a normal vector may be used as the threshold surface. For example, when a plane in which the first principal component is the normal vector is determined as the threshold surface, brightness enhancement can be performed.

【0037】また、しきい面として必ずしも平面を用い
る必要はなく、放物面、双曲面等の曲面を用いてもよ
い。しかるに、上記ステップA2によるしきい面を決定
した後、強調色設定部4が強調後の色を決めるための色
強調ベクトルEを設定する(ステップA3)。この色強
調ベクトルEは、処理を開始する前に一度だけ設定すれ
ばよいが、画像毎に設定値を変化させることも可能であ
る。
Further, it is not always necessary to use a flat surface as the threshold surface, and a curved surface such as a parabolic surface or a hyperboloid may be used. However, after the threshold plane is determined in step A2, the emphasis color setting unit 4 sets the color emphasis vector E for determining the color after emphasis (step A3). The color emphasis vector E may be set only once before the processing is started, but the set value can be changed for each image.

【0038】次いで、変色度算出部3が画像データの各
画素の変色度を算出し(ステップA4)、算出した変色
度を用いて色強調部5が色強調を行なう(ステップA
5)。図4は上記ステップA4,A5での変色度算出部
3と色強調部5による処理の内容を示すもので、まず変
色度算出部3が図6に示すように、各画素値に対応する
RGB空間内での点から、上記決定したしきい面に降ろ
した垂線の「足」に該当する座標位置を計算し(ステッ
プC1)、この2点間の距離、すなわち垂線の長さを計
算してこれを変色度dと定義する(ステップC2)。す
なわち、変色度dは次の(4)式
Next, the color change degree calculating section 3 calculates the color change degree of each pixel of the image data (step A4), and the color enhancing section 5 performs color enhancement using the calculated color change degree (step A).
5). FIG. 4 shows the contents of the processing by the color change degree calculating unit 3 and the color emphasizing unit 5 in steps A4 and A5. First, as shown in FIG. 6, the color change degree calculating unit 3 converts the RGB values corresponding to the pixel values. From the points in space, calculate the coordinate position corresponding to the "foot" of the perpendicular line that has been dropped on the determined threshold surface (step C1), and calculate the distance between these two points, that is, the length of the perpendicular line. This is defined as the discoloration degree d (step C2). That is, the degree of color change d is expressed by the following equation (4).

【0039】[0039]

【数4】 で定義されるもので、この変色度dを用いて色強調部5
が色強調を行なう。
(Equation 4) The color emphasis part 5 is defined by using the discoloration degree d.
Color enhances.

【0040】本実施の形態での色強調処理は、図7に示
すようにRGB空間内の各画素の点からしきい面に降ろ
した垂線によって作られるベクトルV0 をその大きさに
したがって、強調色設定部4で設定された色強調ベクト
ルEの方向に変換することによって行なう(ステップC
3)。
In the color emphasizing process in this embodiment, as shown in FIG. 7, a vector V 0 formed by a vertical line drawn from the point of each pixel in the RGB space to the threshold plane is emphasized according to its size. This is performed by converting to the direction of the color emphasis vector E set by the color setting unit 4 (step C
3).

【0041】つまり、点(VR ,VG ,VB )からしき
い面に降ろした垂線の足の位置の座標を(pR ,pG
B )とすると、強調処理は次の(5)式のようにな
り、強調後の濃度値(V′R ,V′G ,V′B )が得ら
れるものである。すなわち、
[0041] That is, the point (V R, V G, V B) the position coordinates of the perpendicular foot dropping off from the threshold plane (p R, p G,
p B ), the emphasizing process is as in the following expression (5), and the density values (V ′ R , V ′ G , V ′ B ) after emphasizing are obtained. That is,

【0042】[0042]

【数5】 (但し、k:強調係数。kを大きくするとより強く強調
される。) こうして色強調のための色変換処理で得られた変換後の
各画素は、強調後の画像データを構成するものとして順
次画像メモリ9に格納される。
(Equation 5) (However, k: enhancement coefficient. When k is increased, the image is more strongly emphasized.) Each pixel after conversion obtained by the color conversion process for color emphasis in this way is sequentially formed as the image data after emphasis. It is stored in the image memory 9.

【0043】以上の色変換までの処理(ステップC1〜
C3)を、全画素について処理を終えたと判断するまで
(ステップC4)、繰返し実行することで、画像データ
の強調処理が実行される。
Processing up to the above color conversion (steps C1 to C1)
The image data enhancement process is performed by repeatedly performing C3) until it is determined that the process has been completed for all pixels (step C4).

【0044】ここで、RGB空間においてしきい面によ
り分割された領域のうち、どちらか1つの領域に属す画
素のみに強調処理を施すことも可能である。つまり、図
8に示すようにしきい面Sを境界として分割される領域
1と領域2のいずれか一方の領域に属する画素のみに強
調処理を施すこともできる。
Here, it is possible to perform emphasis processing only on pixels belonging to one of the areas divided by the threshold plane in the RGB space. That is, as shown in FIG. 8, it is also possible to perform emphasis processing only on pixels belonging to either one of the regions 1 and 2 divided with the threshold plane S as a boundary.

【0045】これは例えば、決定されたしきい面によっ
てRGB空間が、赤っぽい色の領域と、水色っぽい色の
領域とに分割された場合に、前者の赤っぽい色の領域に
属する画素のみを色強調し、水色っぽい色の領域に属す
る画素については色強調を行なわない、といった具合に
行なうもので、このような領域毎に色強調の実行の有無
を設定することで、不必要な色強調を避け、処理を効率
化すると共に、不自然な強調画像となってしまうのを防
止するものである。
This is because, for example, when the RGB space is divided into a reddish color region and a light blue color region by the determined threshold surface, the pixels belonging to the former reddish color region. Only the colors are emphasized, and the pixels belonging to the light blue color area are not emphasized. For example, by setting the presence / absence of the color emphasis for each area, it is unnecessary. Color enhancement is avoided, processing is made more efficient, and an unnatural enhanced image is prevented.

【0046】この場合、強調を行なわない領域に属する
画素については、画像メモリ9に記憶されている原画像
データのものをそのまま同画像メモリ9に記憶されてい
る強調後の画像データに転送するものである。また、上
記(5)式の強調処理に代えて、次の(6)式、すなわ
ち、
In this case, for the pixels belonging to the non-emphasized area, the original image data stored in the image memory 9 is directly transferred to the emphasized image data stored in the image memory 9. Is. Further, instead of the emphasizing process of the above formula (5), the following formula (6), that is,

【0047】[0047]

【数6】 で定義される強調処理を施すことにより、平均的な色に
近い色はあまり強調されない反面、平均的な色と大きく
異なる色はより強く強調されることとなる。さらに、よ
り一般的に次の(7)式、すなわち、
(Equation 6) By performing the emphasis process defined by, the color close to the average color is not emphasized so much, while the color greatly different from the average color is emphasized more strongly. Furthermore, more generally, the following equation (7), that is,

【0048】[0048]

【数7】 で定義される強調処理を施して、f(d,k)を適切な
関数とすることで、様々な強調効果を得ることもでき
る。
(Equation 7) Various enhancement effects can also be obtained by applying the enhancement processing defined by and making f (d, k) an appropriate function.

【0049】しかして、上記のようなステップA5での
色強調処理を終えた後、強調された画像データを画像出
力部6が画像メモリ9から読出してD/A変換によりア
ナログ値とし、画像信号として出力して(ステップA
6)、以上でこの一連の処理を終了するものである。
After the color enhancement processing in step A5 as described above is completed, the image output unit 6 reads the enhanced image data from the image memory 9 and converts it into an analog value by D / A conversion. Output as (Step A
6) The above is the end of this series of processing.

【0050】以上、第1の実施の形態においては、入力
された画像に対して、その画像に応じたしきい面を決定
し、強調色を任意に設定することで、平均的な色との差
を効果的に強調する色強調処理を実現することができ
る。
As described above, in the first embodiment, the threshold value corresponding to the input image is determined for the input image, and the emphasized color is arbitrarily set to obtain the average color. It is possible to realize color enhancement processing that effectively enhances the difference.

【0051】(第2の実施の形態)以下図面を参照して
本発明の第2の実施の形態を説明する。図9はその回路
構成を示すもので、基本的には上記図1で示したものと
同様であるので、同一部分には同一符号を付してその説
明は省略する。
(Second Embodiment) A second embodiment of the present invention will be described below with reference to the drawings. FIG. 9 shows the circuit configuration thereof, which is basically the same as that shown in FIG. 1 described above, and therefore, the same reference numerals are given to the same portions and the description thereof will be omitted.

【0052】しかして、データバス7には、上記画像入
力部1、主成分分析部2、変色度算出部3、色強調部
5、画像出力部6、画像メモリ9の他に濃度値判定部1
0が接続され、画像データの送受を行なう。そして、こ
れら各回路を統括制御するものとして制御部8′を設け
る。
In addition to the image input unit 1, the principal component analysis unit 2, the color change degree calculation unit 3, the color enhancement unit 5, the image output unit 6, the image memory 9, and the density value determination unit, the data bus 7 is connected to the data bus 7. 1
0 is connected to send and receive image data. A control unit 8'is provided to integrally control each of these circuits.

【0053】次いで上記構成に基づいた動作について説
明する。図10は主として上記制御部8′により制御さ
れる全体の処理動作の流れを示すもので、その当初に
は、まず図示しない他の撮像装置からの画像データを画
像入力部1で入力する(ステップD1)。
Next, the operation based on the above configuration will be described. FIG. 10 mainly shows the flow of the entire processing operation controlled by the control unit 8 ', and at the beginning, image data from another image pickup device (not shown) is input to the image input unit 1 (step D1).

【0054】ここで、入力画像を得るための撮像装置に
特に制限はなく、テレビカメラ、赤外線カメラ等であっ
てもよいし、超音波診断装置、MRI装置、内視鏡装置
等の医用撮像装置であってもよい。画像入力部1では、
入力された画像データを各画素単位でA/D変換してデ
ジタル化した後に、原画像データとしてデータバス7を
介して画像メモリ9に格納させる。
Here, the image pickup device for obtaining the input image is not particularly limited, and may be a television camera, an infrared camera or the like, or a medical image pickup device such as an ultrasonic diagnostic device, an MRI device or an endoscope device. May be In the image input unit 1,
The input image data is A / D-converted for each pixel and digitized, and then stored as original image data in the image memory 9 via the data bus 7.

【0055】この画像メモリ9に格納された原画像デー
タに対して、次に濃度値判定部10が濃度値判定を行な
う(ステップD2)。この濃度値判定部10が行なう濃
度値判定は、画像データ中の画素の濃度値が最大値に近
い値以上となっているか否かを判定するものである。も
し画素の濃度値が最大値に近い値以上となっていた場合
には、その画像データの撮像時に、照明が対象物に近す
ぎるために飽和しているか、反射光により飽和している
ことが考えられ、対象物の正常な色を反映していないも
のと考えられる。したがって、このような画素を処理の
対象から除外することで、照明状態の影響をより受けに
くい強調処理を実現することができるものである。
For the original image data stored in the image memory 9, the density value determination unit 10 next makes a density value determination (step D2). The density value determination performed by the density value determination unit 10 is to determine whether or not the density value of the pixel in the image data is a value close to the maximum value or more. If the pixel density value is greater than or equal to the maximum value, it may be saturated when the image data is captured because the illumination is too close to the object or due to reflected light. It is considered that it does not reflect the normal color of the object. Therefore, by excluding such pixels from the processing target, it is possible to realize the enhancement processing that is less affected by the illumination state.

【0056】この濃度値判定の具体的な処理は図11に
示すように実行する。すなわち、まずその画素のRGB
の各濃度値がそれぞれすべてそのしきい値「Vr_ma
x,Vg_max,Vb_max」を下回っていること
を確認した上で(ステップE1)、確認のとれた画素の
みを強調処理の対象の画素として設定する(ステップE
2)という処理を、画像データを構成する全画素につい
て行なったと判断するまで(ステップE3)、繰返し実
行するもので、全画素の判定を終えた時点で、次に主成
分分析部2が主成分分析を行なう(ステップD3)。
The specific processing of this density value determination is executed as shown in FIG. That is, first the RGB of that pixel
Of the respective concentration values of "Vr_ma"
x, Vg_max, Vb_max ”(step E1), and only the confirmed pixels are set as the pixels to be emphasized (step E).
The process 2) is repeatedly executed until it is determined that all the pixels forming the image data have been processed (step E3). Analysis is performed (step D3).

【0057】この主成分分析部2が行なう主成分分析
は、対象とする情報がもつ最も代表的な成分を抽出する
方法であって、その詳細な処理内容は上記図3と同様で
ある。この場合に主成分分析部2は、上記濃度判定処理
で処理対象として設定された画素についてのみ主成分分
析の処理を実行するもので、共分散行列は上記(1)式
に代えて、次式
The principal component analysis performed by the principal component analysis unit 2 is a method of extracting the most representative component of the target information, and the detailed processing contents are the same as in FIG. In this case, the principal component analysis unit 2 executes the principal component analysis processing only for the pixels set as the processing target in the density determination processing, and the covariance matrix is expressed by the following equation instead of the equation (1).

【0058】[0058]

【数8】 で定義される。(Equation 8) Is defined by

【0059】しかるに、上記ステップD3によるしきい
面を決定した後、強調色設定部4が強調後の色を決める
ための色強調ベクトルEを設定する(ステップD4)。
この色強調ベクトルEは、処理を開始する前に一度だけ
設定すればよいが、画像毎に設定値を変化させることも
可能である。
However, after the threshold plane is determined in step D3, the emphasis color setting unit 4 sets the color emphasis vector E for determining the color after emphasis (step D4).
The color emphasis vector E may be set only once before the processing is started, but the set value can be changed for each image.

【0060】次いで、変色度算出部3が画像データの各
画素の変色度を算出し(ステップD5)、算出した変色
度を用いて色強調部5が色強調を行なう(ステップD
6)。図12は上記ステップD5,D6での変色度算出
部3と色強調部5による処理の内容を示すもので、まず
変色度算出部3がその画素が処理対象であることを確認
した上で(ステップF1)、上記図6に示したように画
素値に対応するRGB空間内での点から、上記決定した
しきい面に降ろした垂線の「足」に該当する座標位置を
計算し(ステップF2)、この2点間の距離、すなわち
垂線の長さを計算してこれを変色度dと定義する(ステ
ップF3)。変色度dは上記(4)式で定義されるもの
で、この変色度dを用いて色強調部5が色強調を行な
う。
Next, the color change degree calculating section 3 calculates the color change degree of each pixel of the image data (step D5), and the color enhancing section 5 performs color enhancement using the calculated color change degree (step D).
6). FIG. 12 shows the contents of the processing by the color change degree calculation unit 3 and the color emphasis unit 5 in steps D5 and D6. First, the color change degree calculation unit 3 confirms that the pixel is a processing target ( Step F1), as shown in FIG. 6, from the points in the RGB space corresponding to the pixel values, the coordinate position corresponding to the "foot" of the perpendicular drawn to the determined threshold surface is calculated (Step F2 ), The distance between these two points, that is, the length of the perpendicular line is calculated and defined as the discoloration degree d (step F3). The degree of color change d is defined by the above equation (4), and the color emphasis unit 5 performs color emphasis using this degree of color change d.

【0061】本実施の形態での色強調処理は、上記図7
に示したようにRGB空間内の各画素の点からしきい面
に降ろした垂線によって作られるベクトルV0 をその大
きさにしたがって、強調色設定部4で設定された色強調
ベクトルEの方向に変換することによって行なう(ステ
ップF4)。
The color emphasizing process in this embodiment is the same as that shown in FIG.
In the direction of the color emphasis vector E set in the emphasis color setting unit 4, the vector V 0 formed by the perpendicular line drawn from the point of each pixel in the RGB space to the threshold plane as shown in FIG. The conversion is performed (step F4).

【0062】つまり、点(VR ,VG ,VB )からしき
い面に降ろした垂線の足の位置の座標を(pR ,pG
B )とすると、強調処理は上記(5)式に示したよう
になり、強調後の濃度値(V′R ,V′G ,V′B )が
得られるものである。
That is, the coordinates of the position of the foot of the perpendicular line drawn from the point (V R , V G , V B ) to the threshold plane are (p R , p G ,
p B ), the emphasizing process is as shown in the above equation (5), and the density values (V ′ R , V ′ G , V ′ B ) after emphasizing are obtained.

【0063】こうして色強調のための色変換処理で得ら
れた変換後の各画素は、強調後の画像データを構成する
ものとして順次画像メモリ9に格納される。なお、上記
ステップF1で処理対象として設定されていないと判断
された画素については、上記ステップF2〜F4の処理
は行なわず、原画像データにおける濃度値をそのまま強
調語の濃度値として保持設定するものである。
The converted pixels obtained by the color conversion process for color enhancement in this way are sequentially stored in the image memory 9 as the constituents of the image data after enhancement. It should be noted that the processing of steps F2 to F4 is not performed for the pixels determined not to be processed in step F1 and the density value of the original image data is retained and set as the density value of the emphasized word. Is.

【0064】以上の色変換までの処理(ステップF1〜
F4)を、全画素について処理を終えたと判断するまで
(ステップF5)、繰返し実行することで、画像データ
の強調処理が実行される。
The processing up to the above color conversion (steps F1 to F1)
The image data enhancement process is performed by repeatedly performing F4) until it is determined that all pixels have been processed (step F5).

【0065】ここで、RGB空間においてしきい面によ
り分割された領域のうち、どちらか1つの領域に属す画
素のみに強調処理を施すことも可能である。つまり、上
記図8に示したようにしきい面Sを境界として分割され
る領域1と領域2のいずれか一方の領域に属する画素の
みに強調処理を施すこともできる。
Here, it is possible to perform emphasis processing only on pixels belonging to one of the areas divided by the threshold plane in the RGB space. That is, as shown in FIG. 8, it is also possible to perform emphasis processing only on pixels that belong to either one of the regions 1 and 2 which are divided with the threshold surface S as a boundary.

【0066】これは例えば、決定されたしきい面によっ
てRGB空間が、赤っぽい色の領域と、水色っぽい色の
領域とに分割された場合に、前者の赤っぽい色の領域に
属する画素のみを色強調し、水色っぽい色の領域に属す
る画素については色強調を行なわない、といった具合に
行なうもので、このような領域毎に色強調の実行の有無
を設定することで、不必要な色強調を避け、処理を効率
化すると共に、不自然な強調画像となってしまうのを防
止するものである。
This is because, for example, when the RGB space is divided into a reddish color region and a light blue color region by the determined threshold surface, the pixels belonging to the former reddish color region. Only the colors are emphasized, and the pixels belonging to the light blue color area are not emphasized. For example, by setting the presence / absence of the color emphasis for each area, it is unnecessary. Color enhancement is avoided, processing is made more efficient, and an unnatural enhanced image is prevented.

【0067】この場合、強調を行なわない領域に属する
画素については、画像メモリ9に記憶されている原画像
データのものをそのまま同画像メモリ9に記憶されてい
る強調後の画像データに転送するものである。
In this case, for the pixels belonging to the non-emphasized area, the original image data stored in the image memory 9 is directly transferred to the emphasized image data stored in the same image memory 9. Is.

【0068】また、上記(5)式の強調処理に代えて、
上記(6)式で定義される強調処理を施すことにより、
平均的な色に近い色はあまり強調されない反面、平均的
な色と大きく異なる色はより強く強調されることとな
る。
Further, instead of the emphasizing process of the equation (5),
By applying the emphasis processing defined by the above equation (6),
Colors close to the average color are not emphasized so much, while colors greatly different from the average color are emphasized more strongly.

【0069】さらに、より一般的に上記(7)式で定義
される強調処理を施して、f(d,k)を適切な関数と
することで、様々な強調効果を得ることもできる。しか
して、上記のようなステップD6での色強調処理を終え
た後、強調された画像データを画像出力部6が画像メモ
リ9から読出してD/A変換によりアナログ値とし、画
像信号として出力して(ステップD7)、以上でこの一
連の処理を終了するものである。
Further, various emphasizing effects can be obtained by applying emphasizing processing more generally defined by the above equation (7) to make f (d, k) an appropriate function. Then, after the color enhancement processing in step D6 as described above is finished, the image output unit 6 reads the enhanced image data from the image memory 9, converts it into an analog value by D / A conversion, and outputs it as an image signal. (Step D7), the series of processing is completed.

【0070】また、この図10の処理に代えて、図13
に示すようにステップD2の濃度値判定とステップD3
の主成分分析の処理の間に、画像データ中で処理対象と
して設定された画素の総数が予め設定されるしきい値T
hを上回るか否かの処理実行判定を行なうことで(ステ
ップD11)、処理対象となった画素数が画像全体に対
してあまりに少ないと判定した場合にはステップD3〜
D6の強調処理を行なわず、原画像データをそのまま出
力させるようにしてもよい。
Further, instead of the processing of FIG. 10, FIG.
, The density value determination in step D2 and step D3
During the processing of the principal component analysis of, the total number of pixels set as the processing target in the image data is set to a threshold value T
If it is determined that the number of pixels to be processed is too small for the entire image by performing the process execution determination as to whether or not h is exceeded (step D11), the process starts from step D3.
The original image data may be output as it is without performing the enhancement processing of D6.

【0071】以上、第2の実施の形態においては、濃度
値判定部10により主成分分析の対象となる画素に条件
を設けることで、撮像条件の悪い部分の悪影響を取り除
くことができ、さらに処理実行判定を行なうことで、撮
像時に対象部全体に照明が近すぎた場合等のように処理
対象となる画素があまりに少なく、対象物が正常に撮像
されていないと判定した場合に強調処理を行なわせない
ようにすることが可能となる。
As described above, in the second embodiment, the density value determination unit 10 sets the conditions for the pixels to be subjected to the principal component analysis, whereby the adverse effects of the bad imaging conditions can be eliminated, and further processing is performed. By performing the execution determination, the enhancement processing is performed when it is determined that the target object is not normally imaged because the number of pixels to be processed is too small, such as when the illumination is too close to the entire target portion during imaging. It is possible to prevent it.

【0072】なお、上記第1及び第2の実施の形態で
は、特徴空間としてRGB色空間を用いたが、HSV空
間、L* u* v* 空間、xyz空間等の他の色空間を用
いてもよい。その他、本発明はその要旨を逸脱しない範
囲で種々変形が可能であるものとする。
Although the RGB color space is used as the feature space in the first and second embodiments, other color spaces such as HSV space, L * u * v * space, and xyz space are used. Good. In addition, the present invention can be variously modified without departing from the scope of the invention.

【0073】[0073]

【発明の効果】以上詳記した如く本発明によれば、対象
画像のわずかな色の違いを強調するカラー画像処理にお
いて、色の違いを明確に強調しながらも、対象物や撮像
時の照明灯の変化による強調効果の変動を小さくし、強
調色を任意に設定し得る色強調を実施可能な画像処理装
置及び方法を提供することができる。
As described above in detail, according to the present invention, in the color image processing for emphasizing the slight color difference of the target image, while clearly emphasizing the color difference, it is possible to illuminate the target object or the illumination at the time of imaging. It is possible to provide an image processing apparatus and method capable of reducing the variation of the enhancement effect due to the change of the lamp and performing the color enhancement capable of arbitrarily setting the enhancement color.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施の形態に係る回路構成を示
すブロック図。
FIG. 1 is a block diagram showing a circuit configuration according to a first embodiment of the present invention.

【図2】同実施の形態に係る全体処理を示すフローチャ
ート。
FIG. 2 is a flowchart showing overall processing according to the same embodiment.

【図3】図2の主成分分析処理のサブルーチンを示すフ
ローチャート。
FIG. 3 is a flowchart showing a subroutine of principal component analysis processing of FIG.

【図4】図2の変色度算出及び色強調処理のサブルーチ
ンを示すフローチャート。
FIG. 4 is a flowchart showing a subroutine of color change degree calculation and color enhancement processing of FIG.

【図5】同実施の形態に係る動作を説明する図。FIG. 5 is a diagram explaining an operation according to the embodiment.

【図6】同実施の形態に係る動作を説明する図。FIG. 6 is a diagram illustrating an operation according to the embodiment.

【図7】同実施の形態に係る動作を説明する図。FIG. 7 is a diagram explaining an operation according to the embodiment.

【図8】同実施の形態に係る動作を説明する図。FIG. 8 is a diagram illustrating an operation according to the embodiment.

【図9】本発明の第2の実施の形態に係る回路構成を示
すブロック図。
FIG. 9 is a block diagram showing a circuit configuration according to a second embodiment of the present invention.

【図10】同実施の形態に係る全体処理を示すフローチ
ャート。
FIG. 10 is a flowchart showing overall processing according to the same embodiment.

【図11】図10の濃度値判定処理のサブルーチンを示
すフローチャート。
11 is a flowchart showing a subroutine of the density value determination processing of FIG.

【図12】図10の変色度算出及び色強調サブルーチン
を示すフローチャート。
12 is a flowchart showing a color change degree calculation and color enhancement subroutine of FIG.

【図13】同実施の形態に係る他の全体処理を示すフロ
ーチャート。
FIG. 13 is a flowchart showing another overall process according to the embodiment.

【符号の説明】[Explanation of symbols]

1…画像入力部 2…主成分分析部 3…変色度算出部 4…強調色設定部 5…色強調部 6…画像出力部 7…データバス 8,8′…制御部 9…画像メモリ 10…濃度値判定部 1 ... Image input unit 2 ... Principal component analysis unit 3 ... Discoloration degree calculation unit 4 ... Enhancement color setting unit 5 ... Color enhancement unit 6 ... Image output unit 7 ... Data bus 8, 8 '... Control unit 9 ... Image memory 10 ... Concentration value determination unit

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 入力された少なくとも対象部分を含む画
像の色濃度に対して主成分分析を行なう主成分分析手段
と、 この主成分分析手段で得た結果からしきい面を決定する
決定手段と、 この決定手段で得たしきい面で分割された領域の上記画
像中の対象部分に対して色濃度の分離強調を行なう強調
手段とを具備したことを特徴とする画像処理装置。
1. A principal component analysis means for performing a principal component analysis on the color density of an input image including at least a target portion, and a determination means for determining a threshold plane from a result obtained by the principal component analysis means. An image processing apparatus, comprising: an emphasizing unit for separating and emphasizing color density with respect to a target portion in the image of the region divided by the threshold plane obtained by the determining unit.
【請求項2】 上記強調手段は、 上記主成分分析で得られる特徴空間における上記画像を
構成する各画素位置からしきい面までの距離として、し
きい面への垂線の長さを算出する距離算出手段と、 上記特徴空間における任意の変換ベクトルを入力するベ
クトル入力手段と、 上記垂線の上記曲面との交点座標を上記変換ベクトル方
向にある点位置へ座標変換する座標変換手段とを具備し
たことを特徴とする請求項1記載の画像処理装置。
2. The emphasizing means calculates a length of a perpendicular to the threshold plane as a distance from each pixel position forming the image in the feature space obtained by the principal component analysis to the threshold plane. A calculation means; a vector input means for inputting an arbitrary transformation vector in the feature space; and a coordinate transformation means for transforming the coordinates of the intersection of the perpendicular line with the curved surface into a point position in the transformation vector direction. The image processing apparatus according to claim 1, wherein:
【請求項3】 上記強調手段は、上記主成分分析で得ら
れる特徴空間において上記しきい面あるいは予め設定し
た分割面により分割された領域のうち、ある特定の領域
に属する画素のみに対して色強調処理を施すことを特徴
とする請求項1記載の画像処理装置。
3. The emphasizing means applies color only to pixels belonging to a specific area among areas divided by the threshold plane or a preset division plane in the feature space obtained by the principal component analysis. The image processing apparatus according to claim 1, wherein the image processing apparatus performs enhancement processing.
【請求項4】 上記入力された画像中の濃度値が予め設
定された条件に適合する画素のみを処理対象とする濃度
判定を前処理として実施し、実施後の画像を上記主成分
分析手段あるいは上記強調手段に提供する濃度値判定手
段をさらに具備したことを特徴とする請求項1記載の画
像処理装置。
4. The density determination in which only the pixels whose density value in the input image meets a preset condition is processed as preprocessing, and the image after execution is subjected to the main component analysis means or The image processing apparatus according to claim 1, further comprising density value determination means provided to the enhancement means.
【請求項5】 上記濃度値判定手段が処理対象と判定し
た画素が予め設定された条件に適合する場合にのみその
画像を後段に提供して処理を実行させる処理実行判定手
段をさらに具備したことを特徴とする請求項4記載の画
像処理装置。
5. The method further comprises a process execution determining unit that provides the image to a subsequent stage to execute the process only when the pixel determined to be processed by the density value determining unit meets a preset condition. The image processing apparatus according to claim 4, wherein
【請求項6】 上記処理実行判定手段は、処理対象とな
る画素数が上記画像の全画素数に比べて一定の割合に達
した場合にのみその画像データ画素を後段に提供して処
理を実行させることを特徴とする請求項5記載の画像処
理装置。
6. The processing execution determination means provides the image data pixel to the subsequent stage to execute the processing only when the number of pixels to be processed reaches a certain ratio as compared with the total number of pixels of the image. The image processing device according to claim 5, wherein
【請求項7】 入力された少なくとも対象部分を含む画
像の色濃度に対して主成分分析を行なう主成分分析処理
と、 この主成分分析処理で得た結果からしきい面を決定する
決定処理と、 この決定処理で得たしきい面で分割された領域の上記画
像中の対象部分に対して色濃度の分離強調を行なう強調
処理とを有したことを特徴とする画像処理方法。
7. A principal component analysis process for performing a principal component analysis on the color density of an input image including at least a target portion, and a determination process for determining a threshold plane from the result obtained by this principal component analysis process. An image processing method comprising: an emphasizing process for separating and emphasizing color density for a target portion in the image of the region divided by the threshold surface obtained by the determining process.
【請求項8】 上記強調処理は、 上記主成分分析で得られる特徴空間における上記画像を
構成する各画素位置からしきい面までの距離として、し
きい面への垂線の長さを算出する距離算出処理と、 上記特徴空間における任意の変換ベクトルを入力するベ
クトル入力処理と、 上記垂線の上記曲面との交点座標を上記変換ベクトル方
向にある点位置へ座標変換する座標変換処理とを有した
ことを特徴とする請求項7記載の画像処理方法。
8. The emphasis processing is a distance for calculating a length of a perpendicular to the threshold plane as a distance from each pixel position forming the image in the feature space obtained by the principal component analysis to the threshold plane. It has a calculation process, a vector input process for inputting an arbitrary transformation vector in the feature space, and a coordinate transformation process for transforming the coordinates of the intersection of the perpendicular line with the curved surface to a point position in the transformation vector direction. The image processing method according to claim 7, wherein
【請求項9】 上記入力された画像中の濃度値が予め設
定された条件に適合する画素のみを処理対象とする濃度
判定を前処理として実施し、実施後の画像を上記主成分
分析処理あるいは上記強調処理に提供する濃度値判定処
理をさらに有したことを特徴とする請求項7記載の画像
処理方法。
9. A density determination targeting only pixels whose density values in the input image meet a preset condition is performed as preprocessing, and the image after execution is subjected to the principal component analysis processing or The image processing method according to claim 7, further comprising a density value determination process provided for the enhancement process.
JP7230110A 1995-09-07 1995-09-07 Image processor and image processing method Pending JPH0973535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7230110A JPH0973535A (en) 1995-09-07 1995-09-07 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7230110A JPH0973535A (en) 1995-09-07 1995-09-07 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JPH0973535A true JPH0973535A (en) 1997-03-18

Family

ID=16902726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7230110A Pending JPH0973535A (en) 1995-09-07 1995-09-07 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JPH0973535A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1316430C (en) * 2003-03-28 2007-05-16 松下电器产业株式会社 Apparatus and method for processing image
CN100458910C (en) * 2003-10-28 2009-02-04 松下电器产业株式会社 Image display device and image display method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1316430C (en) * 2003-03-28 2007-05-16 松下电器产业株式会社 Apparatus and method for processing image
US7356192B2 (en) 2003-03-28 2008-04-08 Matsushita Electric Industrial Co., Ltd. Apparatus and method for processing an image
CN100458910C (en) * 2003-10-28 2009-02-04 松下电器产业株式会社 Image display device and image display method

Similar Documents

Publication Publication Date Title
CN110505459B (en) Image color correction method, device and storage medium suitable for endoscope
AU2018282455B2 (en) Diagnosis assisting device, and image processing method in diagnosis assisting device
JP3769487B2 (en) Blond Pixel Removal Method for Image Skin Color Detection
US11087461B2 (en) Image processing device, image processing method, medical imaging system
US6728401B1 (en) Red-eye removal using color image processing
JP5094036B2 (en) Endoscope insertion direction detection device
US8036438B2 (en) Outline detection apparatus, outline detection method, and program thereof
JP2004326805A (en) Method of detecting and correcting red-eye in digital image
WO2016136442A1 (en) Image processing device
US20210133473A1 (en) Learning apparatus and learning method
EP2188779A1 (en) Extraction method of tongue region using graph-based approach and geometric properties
JPH09322192A (en) Detection and correction device for pink-eye effect
JP6818463B2 (en) Image processing equipment, image processing methods and programs
WO2020224153A1 (en) Nbi image processing method based on deep learning and image enhancement, and application thereof
CN110866932A (en) Multi-channel tongue edge detection device and method and storage medium
JP7087390B2 (en) Diagnostic support device, image processing method and program
US20080165247A1 (en) Image processing apparatus and method
CN112288697B (en) Method, apparatus, electronic device and readable storage medium for quantifying degree of abnormality
KR101063343B1 (en) Color Information Segmentation Method Using Tongue Image
JPH01138876A (en) Color picture processing unit
JP5453796B2 (en) Image processing apparatus, electronic camera, and image processing program
JP5203159B2 (en) Image processing method, image processing system, and image processing program
JPH0973535A (en) Image processor and image processing method
JP2005346474A (en) Image processing method and image processor and program and storage medium
JP4742068B2 (en) Image processing method, image processing system, and image processing program