[go: up one dir, main page]

JP2976796B2 - A method of determining the threshold of an area by image analysis - Google Patents

A method of determining the threshold of an area by image analysis

Info

Publication number
JP2976796B2
JP2976796B2 JP6024993A JP2499394A JP2976796B2 JP 2976796 B2 JP2976796 B2 JP 2976796B2 JP 6024993 A JP6024993 A JP 6024993A JP 2499394 A JP2499394 A JP 2499394A JP 2976796 B2 JP2976796 B2 JP 2976796B2
Authority
JP
Japan
Prior art keywords
histogram
image
threshold value
threshold
area
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
JP6024993A
Other languages
Japanese (ja)
Other versions
JPH07234942A (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.)
NIREKO KK
Original Assignee
NIREKO KK
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 NIREKO KK filed Critical NIREKO KK
Priority to JP6024993A priority Critical patent/JP2976796B2/en
Publication of JPH07234942A publication Critical patent/JPH07234942A/en
Application granted granted Critical
Publication of JP2976796B2 publication Critical patent/JP2976796B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Investigating Or Analysing Materials By Optical Means (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、複数の領域を表す画像
の各領域に対応する濃度範囲の閾値を定める画像解析に
よる領域の閾値決定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of determining a threshold value of a region by image analysis for determining a threshold value of a density range corresponding to each region of an image representing a plurality of regions.

【0002】[0002]

【従来の技術】複数の組織を有する合成物質の断面の画
像を組織分別のため2値化し、所望の組織に関する2値
画像を抽出し、その面積を求める解析が行われている。
特開昭60−100032号公報および特開平2−23
2550号公報には画像を組織分別のため2値画像又は
数段の濃度段階の領域とする場合、画像を予め設定した
濃淡段階に応じて濃淡分布面積のヒストグラムを作成
し、基準となる画像についてこのヒストグラムに対して
各対象組織に対する濃度範囲を定める閾値を検査者が入
力すると、基準となる画像に類似する類似画像について
ヒストグラムを作成し、基準となる画像の閾値にならっ
て類似画像のヒストグラムの閾値を自動的に決定する方
法が開示されている。
2. Description of the Related Art Analyzes are performed to binarize an image of a cross section of a synthetic substance having a plurality of tissues for tissue discrimination, extract a binary image relating to a desired tissue, and obtain the area thereof.
JP-A-60-1000032 and JP-A-2-23
Japanese Patent No. 2550 discloses that when an image is a binary image or a region of several levels of density for tissue classification, a histogram of a density distribution area is created for the image according to a preset density level, and a reference image is obtained. When the examiner inputs a threshold value for determining the density range for each target tissue with respect to this histogram, a histogram is created for a similar image similar to the reference image, and the histogram of the similar image is calculated according to the threshold value of the reference image. A method for automatically determining a threshold is disclosed.

【0003】[0003]

【発明が解決しようとする課題】しかし、上述の閾値は
ヒストグラムのボトム位置(極小値の表れる位置)に設
定されるようになっており、明確なボトムが表れないヒ
ストグラムの場合、閾値を自動的に決定することが困難
であった。
However, the above-mentioned threshold value is set at the bottom position of the histogram (the position where the minimum value appears). In the case of a histogram where a clear bottom does not appear, the threshold value is automatically set. It was difficult to determine.

【0004】本発明は上述の問題点に鑑みてなされたも
ので、基準画像の濃淡階調と基準画像に類似する類似画
像の濃淡階調を整合させるか、または基準画像のヒスト
グラムの特徴位置と類似画像の特徴位置の差に基づき、
類似画像の閾値を基準画像の閾値から定めるようにする
ことにより明確なボトムを有しないヒストグラムでも閾
値を決定できるようにすることを目的とする。また、基
準画像のヒストグラムの特徴位置と類似画像のヒストグ
ラムの特徴位置を、照明を調整することにより一致さ
せ、基準画像の閾値から類似画像の閾値をハードウェア
を用いて決定できるようにすることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and is intended to match the gray scale of a reference image with the gray scale of a similar image similar to the reference image, or to match the characteristic position of the histogram of the reference image. Based on the difference between the feature positions of similar images,
An object of the present invention is to determine a threshold value of a similar image based on a threshold value of a reference image even in a histogram having no clear bottom. In addition, the feature position of the histogram of the reference image and the feature position of the histogram of the similar image are matched by adjusting the illumination so that the threshold value of the similar image can be determined from the threshold value of the reference image using hardware. Aim.

【0005】[0005]

【0006】[0006]

【課題を解決するための手段】 上記目的を達成するた
め、 複数の領域を表す画像を予め設定した濃淡段階に応
じて濃淡分布面積のヒストグラムを作成し、該ヒストグ
ラムに対して各対象領域に対応する濃度範囲を表す閾値
を定める画像解析による領域の閾値決定方法において、
基準画像のヒストグラムの特徴を表す特徴位置を定め、
該ヒストグラムに各対象領域に対応する濃度範囲を表す
閾値を定め、基準画像に類似する類似画像についてその
ヒストグラムの特徴位置を求め、基準画像のヒストグラ
ムの特徴位置と類似画像のヒストグラムの特徴位置との
差分を基準画像のヒストグラムの閾値に加算した位置を
類似画像のヒストグラムの閾値とする。
Means for Solving the Problems To achieve the above object,
For example, a histogram of a grayscale distribution area is created from images representing a plurality of regions in accordance with a predetermined grayscale level, and a threshold value of a region by image analysis that defines a threshold value representing a density range corresponding to each target region with respect to the histogram. In the decision method,
Determining a feature position representing a feature of the histogram of the reference image;
A threshold value representing a density range corresponding to each target area is determined in the histogram, and a characteristic position of the histogram is obtained for a similar image similar to the reference image. The characteristic position of the histogram of the reference image and the characteristic position of the histogram of the similar image are calculated. The position where the difference is added to the threshold value of the histogram of the reference image is set as the threshold value of the histogram of the similar image.

【0007】また、試料に照明を当ててテレビカメラで
撮像した複数の領域を表す画像より予め設定した濃淡段
階に応じて濃淡分布面積のヒストグラムを作成し、該ヒ
ストグラムに対して各対象領域に対応する濃度範囲を表
す閾値を定める画像解析による領域の閾値決定方法にお
いて、基準画像のヒストグラムとその特徴位置を求め、
該ヒストグラムに各対象領域に対応する濃度範囲を表す
閾値を定め、基準画像に類似する類似画像についてヒス
トグラムとその特徴位置を求め、類似画像のヒストグラ
ムの特徴位置が基準画像のヒストグラムの特徴位置と一
致するよう照明を調整し、基準画像のヒストグラムの閾
値を類似画像のヒストグラム閾値とする。
[0007] A histogram of the distribution area of the gray scale is created in accordance with a predetermined gray scale from images representing a plurality of regions captured by the television camera by illuminating the sample, and the histogram corresponds to each target region. In a method of determining a threshold value of an area by image analysis that determines a threshold value representing a density range to be obtained, a histogram of a reference image and a characteristic position thereof are obtained,
A threshold value representing a density range corresponding to each target region is determined in the histogram, and a histogram and a characteristic position of the similar image similar to the reference image are obtained. The characteristic position of the histogram of the similar image matches the characteristic position of the histogram of the reference image. Lighting is adjusted so that the threshold of the histogram of the reference image is set as the histogram threshold of the similar image.

【0008】また、前記特徴位置をヒストグラムの面積
重心の濃度の値とする。
The feature position is defined as a density value of the area centroid of the histogram.

【0009】また、前記特徴位置をヒストグラムの濃度
の上限値と下限値との中央値とする。
The characteristic position is a median between an upper limit value and a lower limit value of the density of the histogram.

【0010】また、前記特徴位置をヒストグラムの濃度
の下限値とする。
Further, the characteristic position is set as a lower limit value of the density of the histogram.

【0011】[0011]

【作用】基準画像の濃淡分布面積のヒストグラムと基準
画像に類似する類似画像のヒストグラムは画像が類似し
ているため、形状も類似するが、試料を照射する照明の
明るさの相違などにより平均の濃度などが異なる場合が
多い。このためヒストグラムの特徴を表す特徴位置を求
め、基準画像のヒストグラムの特徴位置に類似画像のヒ
ストグラムの特徴位置を合致させれば、両ヒストグラム
の形状はかなりよく重なるようになり閾値も同じ位置と
なる。そこで基準画像のヒストグラムで定めた閾値に、
両ヒストグラムの特徴位置の差分を加算して基準画像に
類似する画像のヒストグラムの閾値を決定することがで
きる。また、基準画像のヒストグラムと、基準画像に類
似する画像のヒストグラムを重ねる方法として、類似画
像が得られる試料への照明を調整することにより、両ヒ
ストグラムの特徴位置を合わせて重ねることができる。
特徴位置を合わせた後、基準画像のヒストグラムの閾値
を類似画像のヒストグラムの閾値として使うことができ
る。特徴位置としては、ヒストグラムの面積重心の濃度
の値、ヒストグラムの濃度の下限値と上限値の中央値、
ヒストグラムの濃度の下限値がヒストグラムの特徴を表
しているので用いられる。このように定めたヒストグラ
ムの閾値は基準画像、類似画像の領域に対応する濃度範
囲を表す閾値である。
The histogram of the gray scale distribution area of the reference image and the histogram of the similar image similar to the reference image have similar shapes because the images are similar, but the average is due to the difference in the brightness of the illumination for irradiating the sample. Concentrations are often different. For this reason, if the characteristic position representing the characteristic of the histogram is obtained and the characteristic position of the histogram of the similar image is matched with the characteristic position of the histogram of the reference image, the shapes of both histograms overlap quite well and the threshold value is also at the same position. . Therefore, the threshold determined by the histogram of the reference image
The threshold value of the histogram of the image similar to the reference image can be determined by adding the difference between the feature positions of both histograms. In addition, as a method of superimposing the histogram of the reference image and the histogram of the image similar to the reference image, by adjusting the illumination of the sample from which the similar image is obtained, the feature positions of both histograms can be matched and superimposed.
After matching the feature positions, the threshold of the histogram of the reference image can be used as the threshold of the histogram of the similar image. As the characteristic position, the density value of the area centroid of the histogram, the median of the lower and upper limits of the density of the histogram,
The lower limit of the density of the histogram is used because it represents a feature of the histogram. The threshold value of the histogram thus determined is a threshold value representing a density range corresponding to the area of the reference image and the similar image.

【0012】[0012]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は本実施例を実現する装置の構成を示
すブロック図である。顕微鏡1には接眼レンズ部に撮像
用レンズを取り付け、この撮像レンズを通して撮像する
撮像装置20が取り付けられている。測定試料を載せる
ステージ21はY,X方向に移動し、測定試料の測定位
置領域の設定を行う。制御は後述するオートステージ装
置15により行われる。なお、オートステージ装置は本
出願人による特公平1−28992号、特公平5−70
126号で詳細説明がなされている。またスタンドに設
けたパルスモータで上下方向に移動させる移動機構22
により位置調整が行われ、位置信号を後述するオートフ
ォーカス装置16に送信し、移動制御信号を受信してス
テージ21の上下方向の移動を行う。照明装置23は測
定試料の照明を行い、後述する照明自動調節装置17に
より照明の強度を調整する。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an apparatus for realizing this embodiment. The microscope 1 is provided with an imaging lens attached to an eyepiece and an imaging device 20 for taking an image through the imaging lens. The stage 21 on which the measurement sample is placed moves in the Y and X directions to set a measurement position area of the measurement sample. The control is performed by an auto stage device 15 described later. The auto stage device is disclosed in Japanese Patent Publication No. 1-28992 and Japanese Patent Publication No. 5-70 by the present applicant.
No. 126 provides a detailed description. Also, a moving mechanism 22 for moving up and down by a pulse motor provided on the stand
, The position signal is transmitted to the autofocus device 16 described later, and the movement control signal is received to move the stage 21 in the vertical direction. The illumination device 23 illuminates the measurement sample, and adjusts the intensity of the illumination by the automatic illumination adjustment device 17 described later.

【0013】A/D変換器2は撮像装置20からの入力
データをアナログからディジタルに変換し、入力バッフ
ァ3はこのディジタルデータを一時的に格納する。バス
4は信号の伝達を行い、プログラムメモリ5は本装置の
動作を規定するプログラムを格納し、CPU6はこのプ
ログラムに従い装置全体の制御を行う。
The A / D converter 2 converts input data from the imaging device 20 from analog to digital, and the input buffer 3 temporarily stores the digital data. The bus 4 transmits signals, the program memory 5 stores a program that defines the operation of the apparatus, and the CPU 6 controls the entire apparatus according to the program.

【0014】画像処理プロセッサ7は入力した画像デー
タの濃淡処理、2値化処理、画像解析などを行い、濃淡
画像メモリ8は濃淡画像データを格納し、2値化メモリ
9は2値画像データを格納する。出力バッファ10は出
力するデータを一旦格納し、D/A変換器11はこの出
力データをディジタルよりアナログに変換し、CRT1
2はこの出力データを画面に表示する。バス4にはイン
タフェース13を介して制御管理用コンピュータ14が
接続され、オートステージ装置15、オートフォーカス
装置16、照明自動調節装置17、プリンタ18、モニ
タ19を制御する。オートステージ装置15は制御管理
用コンピュータ14により決められた測定試料の測定位
置、領域が撮像装置20の視野が所定の測定点になるよ
うステージ21をX,Y方向に移動させる。オートフォ
ーカス装置16は撮像装置20に鮮明な画像が得られる
ように移動機構22を制御してステージ21を上下方向
に移動し焦点の自動合わせをする。照明自動調節装置1
7は画像処理プロセッサ7の画像解析により照明装置2
3の照明強度を制御して画像濃度の調節を行う。
An image processor 7 performs density processing, binarization processing, image analysis, and the like on the input image data. A density image memory 8 stores density image data, and a binarization memory 9 stores binary image data. Store. The output buffer 10 temporarily stores the data to be output, and the D / A converter 11 converts the output data from digital to analog.
2 displays this output data on the screen. A control management computer 14 is connected to the bus 4 via an interface 13, and controls the autostage device 15, the autofocus device 16, the automatic lighting adjustment device 17, the printer 18, and the monitor 19. The auto stage device 15 moves the stage 21 in the X and Y directions so that the measurement position and region of the measurement sample determined by the control management computer 14 are at predetermined measurement points in the field of view of the imaging device 20. The autofocus device 16 controls the moving mechanism 22 so as to obtain a clear image on the imaging device 20, moves the stage 21 in the vertical direction, and automatically focuses. Automatic lighting adjustment device 1
Reference numeral 7 denotes a lighting device 2 based on image analysis of the image processor 7.
The image density is adjusted by controlling the illumination intensity of No. 3.

【0015】図2は金属表面組織または生体組織の濃淡
画像(多値画像)を示す。濃淡画像は撮像装置20から
入力された画像データを予め定めた濃淡レベル(グレー
レベル)例えば256レベルで表現したもので、画像処
理プロセッサ7により処理され濃淡画像メモリ8に格納
された後、CRT12に表示される。この濃淡画像によ
って表された組織を検査するため、各組織または所望の
組織を抽出し、その面積を計算する方法があるが、その
場合、各組織を区分するため閾値を設定し、この閾値に
より2値化して所望の組織の2値画像を抽出し、その面
積を計算する。
FIG. 2 shows a grayscale image (multi-valued image) of a metal surface tissue or a living tissue. The grayscale image is a representation of image data input from the imaging device 20 at a predetermined grayscale level (gray level), for example, 256 levels. The grayscale image is processed by the image processor 7, stored in the grayscale image memory 8, and then stored in the CRT 12. Is displayed. In order to inspect the tissue represented by this grayscale image, there is a method of extracting each tissue or a desired tissue and calculating its area.In this case, a threshold is set to classify each tissue, and this threshold is used. Binarization is performed to extract a binary image of a desired tissue, and the area is calculated.

【0016】金属表面組織や生体組織の組成を測定する
場合、同一試料または同一系列の試料から多数のサンプ
ルを取り出すことが多く、類似した組織を多数検査する
場合が多いので、基準となる画像について検査員が画面
を見ながら閾値を設定し、以降は基準画像と対象の画像
との相違を適切なパラメータで表示し、そのパラメータ
を用いて基準画像で設定した閾値に基づいて対象画像の
閾値を自動的に設定する。
When measuring the composition of a metal surface tissue or a living tissue, a large number of samples are often taken from the same sample or a sample of the same series, and many similar tissues are often examined. The inspector sets the threshold while looking at the screen, and thereafter displays the difference between the reference image and the target image with appropriate parameters, and uses the parameters to set the threshold of the target image based on the threshold set in the reference image. Set automatically.

【0017】図3は濃淡画像の濃度分布を表すヒストグ
ラムで横軸に濃度レベルを表し、縦軸に頻度を表す。頻
度としては検査対象として切り出した画面の全面積に占
める該当する濃度を有する面積の比で表す。図2で示し
た濃淡画像はa,b,c,dの4つの領域より成ってお
り、aが最も暗く、dが最も明るい濃度を表す。図3は
図2の濃淡画像のヒストグラムであり、領域aの面積が
最も小さく、領域dの面積が最も大きく表示されてい
る。ヒストグラム曲線は図2に示した濃淡画像から予め
プログラムメモリ5に記憶されたプログラムに従って、
画像処理プロセッサ7により作成され、CPU6により
CRT12に画面表示される。
FIG. 3 is a histogram showing the density distribution of the gray image, where the horizontal axis represents the density level and the vertical axis represents the frequency. The frequency is represented by the ratio of the area having the corresponding density to the entire area of the screen cut out as the inspection target. The grayscale image shown in FIG. 2 is composed of four regions a, b, c, and d, where a represents the darkest and d represents the brightest. FIG. 3 is a histogram of the grayscale image of FIG. 2, in which the area a is the smallest and the area d is the largest. The histogram curve is obtained from the grayscale image shown in FIG. 2 according to a program stored in the program memory 5 in advance.
It is created by the image processor 7 and displayed on the screen of the CRT 12 by the CPU 6.

【0018】図2の濃淡画像を基準画像とし、検査員は
図2と図3のヒストグラムを見ながら組織の境界(即ち
閾値)を設定する。この場合4つの領域から構成されて
いるので3つの閾値T1,T2,T3を設定する。この
基準画像のヒストグラムの閾値T1〜T3に基づき、基
準画像に類似する画像のヒストグラムの閾値を画像処理
プロセッサ7により自動的に設定する方法を以下に説明
する。なお、ヒストグラムの閾値により画像を2値化す
るので、ヒストグラムの閾値は画像の閾値と同じ意味で
ある。
Using the grayscale image of FIG. 2 as a reference image, the inspector sets a tissue boundary (that is, a threshold) while looking at the histograms of FIGS. 2 and 3. In this case, three thresholds T1, T2, and T3 are set because the region is composed of four regions. A method for automatically setting the threshold value of the histogram of an image similar to the reference image by the image processor 7 based on the threshold values T1 to T3 of the histogram of the reference image will be described below. Note that since the image is binarized by the threshold of the histogram, the threshold of the histogram has the same meaning as the threshold of the image.

【0019】次に図1に示した装置により測定試料の画
像を2値化するまでの動作を図4,図5のフロー図を用
いて説明する。光学顕微鏡により目的とする画像を得る
場合、まず、試料の測定対象位置を決定し(ST1)、
次にその位置の中から測定領域を抽出して(ST2)、
撮像する。測定対象の位置決め、領域決定はオートステ
ージ装置15により行われる。対象領域の画像を入力し
た後(ST3)、照明不均一などによる画像の濃淡のむ
らを補正するシェーディング補正を行い(ST4)、画
像を構成する各画素の濃度を求めて、濃度の分布頻度を
表す濃度ヒストグラムを作成する(ST5)。次に濃度
の分布範囲を求める(ST6)。濃度ヒストグラムは図
3に示すように横軸を濃度としているので分布する濃度
範囲は容易に求められる。この濃度範囲から画像の濃度
レベルを正規化する(ST7)。例えば濃度を0〜25
5の範囲で表すようにした場合、上限、下限の余裕を持
たせて、ヒストグラムの濃度範囲を50〜200の範囲
に割付ける。なお、濃度分布範囲を求める(ST6)
と、正規化する(ST7)の段階は後述するST12に
のみ必要でST11,ST13の閾値決定法を用いる場
合には不要である。次に一つの画像を基準画像として取
り出し、基準画像の閾値を検査員がヒストグラムを参照
して決定する(ST8)。図3はこのように決定された
閾値を示す。次に濃度ヒストグラムの特徴位置を求める
(ST9)。特徴位置としてはヒストグラムの重心の濃
度値、ヒストグラムの上限と下限の中央値の濃度、下限
の濃度を用いる。
Next, the operation until the image of the measurement sample is binarized by the apparatus shown in FIG. 1 will be described with reference to the flowcharts of FIGS. When an intended image is obtained by an optical microscope, first, a measurement target position of a sample is determined (ST1),
Next, a measurement area is extracted from the position (ST2),
Take an image. The positioning of the measurement target and the determination of the area are performed by the auto stage device 15. After the image of the target area is input (ST3), shading correction for correcting unevenness of the image density due to uneven lighting or the like is performed (ST4), the density of each pixel constituting the image is obtained, and the density distribution frequency is represented. A density histogram is created (ST5). Next, a density distribution range is obtained (ST6). Since the density histogram has the horizontal axis as the density as shown in FIG. 3, the density range to be distributed can be easily obtained. The density level of the image is normalized from this density range (ST7). For example, a concentration of 0 to 25
In the case where the histogram is expressed in the range of 5, the density range of the histogram is allocated to the range of 50 to 200 with a margin of an upper limit and a lower limit. Note that a density distribution range is obtained (ST6).
The step of normalizing (ST7) is necessary only for ST12, which will be described later, and is unnecessary when using the threshold determination method of ST11 and ST13. Next, one image is taken out as a reference image, and the inspector determines the threshold value of the reference image by referring to the histogram (ST8). FIG. 3 shows the threshold values thus determined. Next, the characteristic position of the density histogram is obtained (ST9). As the characteristic position, the density value of the center of gravity of the histogram, the density of the median of the upper and lower limits of the histogram, and the density of the lower limit are used.

【0020】次に類似画像の閾値を決定する方法を選択
する(ST10)。類似画像の閾値は基準画像の閾値に
基づいて決定するが、その決定方法はいくつかあり、測
定対象を考慮して検査員が方法を指定すると、それに応
じた方法で類似画像の閾値を装置が自動的に決定する。
第1の方法は類似画像の閾値は基準画像の閾値と同じ値
とし、基準画像と類似画像の特徴位置の濃度レベルが一
致するように類似画像の濃度の割付けを移動するもの
で、第1実施例で示す方法である(ST11)。第2の
方法は基準画像と類似画像の閾値と特徴位置の差が共に
同じになるように類似画像の閾値を決める方法で第2〜
第4実施例で示す方法である(ST12)。第3の方法
は類似画像の閾値は基準画像の閾値と同じ値とし、特徴
位置の濃度が基準画像と類似画像で同じとなるように試
料への照明を調整する方法で第5実施例で示す方法であ
る(ST13)。このようにして定めた閾値によって基
準画像、類似画像の2値化を行う(ST14)。
Next, a method for determining a threshold value of a similar image is selected (ST10). The threshold value of the similar image is determined based on the threshold value of the reference image.There are several methods for determining the threshold value, and when the inspector specifies the method in consideration of the measurement target, the apparatus sets the threshold value of the similar image according to the method. Determined automatically.
In the first method, the threshold value of the similar image is set to the same value as the threshold value of the reference image, and the assignment of the density of the similar image is moved so that the density levels of the characteristic positions of the reference image and the similar image match. This is the method shown in the example (ST11). The second method is to determine the threshold value of the similar image such that the difference between the threshold value and the feature position of the reference image and the similar image is the same, and
This is the method shown in the fourth embodiment (ST12). The third method is a method in which the threshold value of the similar image is set to the same value as the threshold value of the reference image, and the illumination of the sample is adjusted so that the density of the feature position is the same in the reference image and the similar image. The method is (ST13). The reference image and the similar image are binarized based on the threshold value thus determined (ST14).

【0021】第1実施例を図6を用いて説明する。本実
施例は類似画像の閾値を基準画像の閾値と同じ値とし、
基準画像と類似画像の特徴位置の濃度が一致するように
類似画像の濃度レベルを移動させるものであり、特徴位
置としてはヒストグラムの重心を用いた場合について説
明する。重心の代わりに濃度の中央値、下限値を用いた
場合も同様にして閾値を決めることができる。
The first embodiment will be described with reference to FIG. This embodiment sets the threshold value of the similar image to the same value as the threshold value of the reference image,
The density level of the similar image is moved so that the density of the feature position of the reference image and that of the similar image match, and the case where the center of gravity of the histogram is used as the feature position will be described. The threshold value can be determined in the same manner when the median value and the lower limit value of the density are used instead of the center of gravity.

【0022】図6(A)は基準画像のヒストグラムを示
し、(B)の実線は類似画像のヒストグラムを示す。基
準画像のヒストグラムの面積重心をG1とし、その横座
標(濃度)をX1とする。また類似画像のヒストグラム
の面積重心をG2とし、その横座標をX2とする。両重
心の差ΔX=X2−X1を求め、この値を類似画像の各
画素の濃度より減算する。なおΔXが正の場合は減算
し、負の値のときはΔXの絶対値を加算する。これによ
り類似画像の濃度を差ΔXだけ移動して両ヒストグラム
の重心G1とG2を一致させることができる。(B)の
破線は類似画像の各画素の濃度を差ΔX移動してG1と
G2を一致させた状態を示す。
FIG. 6A shows a histogram of a reference image, and the solid line in FIG. 6B shows a histogram of a similar image. Let G1 be the area centroid of the histogram of the reference image, and X1 be its abscissa (density). Also, let the area centroid of the histogram of the similar image be G2 and its abscissa be X2. The difference ΔX = X2−X1 between the two centroids is obtained, and this value is subtracted from the density of each pixel of the similar image. If ΔX is positive, subtraction is performed, and if ΔX is negative, the absolute value of ΔX is added. As a result, the densities of similar images can be shifted by the difference ΔX so that the centers of gravity G1 and G2 of both histograms can be matched. The broken line in (B) indicates a state where the density of each pixel of the similar image is shifted by ΔX to make G1 and G2 coincide.

【0023】第2実施例を図7を用いて説明する。本実
施例はヒストグラムの特徴位置としてその重心の値を用
いたもので、まず基準画像についてヒストグラムを作成
し、このヒストグラムに閾値を検査員が設定した後、ヒ
ストグラムの重心を求め、重心と閾値との横座標の距離
が、基準画像とこの類似画像のヒストグラム上で同じと
なるように設定する。図7(A)は基準画像のヒストグ
ラムを示し、(B)は類似画像のヒストグラムを示す。
基準画像のヒストグラムの面積重心をG1とし、その横
座標(濃度)をX1とする。また、類似画像のヒストグ
ラムの面積重心をG2とし、その横座標をX2とする。
両重心の差ΔX=X2−X1を求め、これを基準画像の
ヒストグラムに設定された各閾値T1〜T3の横座標に
加算することにより類似画像のヒストグラム上に閾値T
1〜T3を設定することができる。以上の演算はCPU
6,画像処理プロセッサ7等により行われる。
A second embodiment will be described with reference to FIG. In the present embodiment, the value of the center of gravity is used as the feature position of the histogram. First, a histogram is created for the reference image, and the inspector sets a threshold value for this histogram. Then, the center of gravity of the histogram is obtained. Are set so that the distance on the abscissa is the same on the histogram of the reference image and the similar image. FIG. 7A shows a histogram of a reference image, and FIG. 7B shows a histogram of a similar image.
Let G1 be the area centroid of the histogram of the reference image, and X1 be its abscissa (density). Also, let G2 be the area centroid of the histogram of the similar image, and let X2 be its abscissa.
The difference ΔX = X2−X1 between the two centroids is obtained, and this is added to the abscissa of each of the thresholds T1 to T3 set in the histogram of the reference image.
1 to T3 can be set. The above operation is performed by CPU
6, which is performed by the image processor 7 or the like.

【0024】次に第3実施例を図8を用いて説明する。
本実施例はヒストグラムの特徴位置を表すものとして、
ヒストグラム下限値(暗い方)と上限値(明るい方)の
中央値を求め、この中央値と閾値との横座標の距離が基
準画像と類似画像のヒストグラム上で同じとなるように
類似画像の閾値を設定する。図8(A)は基準画像のヒ
ストグラムを示し、(B)は類似画像のヒストグラムを
示す。基準画像のヒストグラムの上限値と上限値とから
中央値(X1)を求め、同様にして求めた類似画像のヒ
ストグラムの中央値(X2)を求め、これらの差ΔX=
X2−X1を基準画像のヒストグラムに設定された閾値
T1〜T3の横座標に加算することにより、類似画像の
ヒストグラム上に閾値T1〜T3を設定することができ
る。この設定もCPU6,画像処理プロセッサ7等によ
り行われる。
Next, a third embodiment will be described with reference to FIG.
In this embodiment, the characteristic position of the histogram is represented as
The median between the lower limit (darker) and the upper limit (brighter) of the histogram is obtained, and the threshold value of the similar image is set such that the distance between the median value and the threshold value on the abscissa is the same on the histograms of the reference image and the similar image. Set. FIG. 8A shows a histogram of a reference image, and FIG. 8B shows a histogram of a similar image. The median (X1) is calculated from the upper limit and the upper limit of the histogram of the reference image, and the median (X2) of the histogram of the similar image obtained in the same manner is calculated.
By adding X2-X1 to the abscissa of the threshold values T1 to T3 set in the histogram of the reference image, the threshold values T1 to T3 can be set on the histogram of the similar image. This setting is also performed by the CPU 6, the image processor 7, and the like.

【0025】次に第4実施例を図9を用いて説明する。
本実施例はヒストグラムの特徴位置を表すものとしてヒ
ストグラムの下限値(暗い方)を求め、この下限値と閾
値との横座標の距離が基準画像と類似画像のヒストグラ
ム上で同じになるよう類似画像の閾値を設定する。図9
(A)は基準画像のヒストグラムを示し、(B)は類似
画像のヒストグラムを示す。基準画像のヒストグラムの
下限値(X1)と類似画像のヒストグラムの下限値(X
2)との差ΔX=X2−X1を基準画像のヒストグラム
に設定された閾値T1〜T3の横座標に加算することに
より、類似画像のヒストグラム上に閾値T1〜T3を設
定することができる。この設定もCPU6,画像処理プ
ロセッサ7等により行われる。
Next, a fourth embodiment will be described with reference to FIG.
In this embodiment, the lower limit (darker) of the histogram is obtained as representing the characteristic position of the histogram, and the similar image is set so that the distance of the abscissa between the lower limit and the threshold is the same on the histogram of the reference image and the similar image. Set the threshold of. FIG.
(A) shows the histogram of the reference image, and (B) shows the histogram of the similar image. The lower limit (X1) of the histogram of the reference image and the lower limit (X1) of the histogram of the similar image
By adding the difference ΔX = X2−X1 to 2) to the abscissa of the threshold values T1 to T3 set in the histogram of the reference image, the threshold values T1 to T3 can be set on the histogram of the similar image. This setting is also performed by the CPU 6, the image processor 7, and the like.

【0026】次に第5実施例を説明する。本実施例は基
準画像のヒストグラムの特徴位置として重心を用い、重
心と類似画像のヒストグラムの重心位置とを測定対象物
への照明強度を調整することにより一致させ、基準画像
のヒストグラムの閾値を類似画像のヒストグラムの閾値
として用いるものであり、第1実施例と原理は同じなの
で、図6を用いて説明する。まず、基準画像のヒストグ
ラムの重心X1と類似画像のヒストグラムの重心X2を
求め、図1に示す照明自動調節装置17により照明装置
23の照明電流を制御して重心X2が重心X1に一致す
る(X2=X1)ように照明強度を調節する。両重心を
一致させた後、基準画像のヒストグラム上に設定された
閾値T1〜T3の位置を類似画像のヒストグラムに設定
する。重心X1,X2の算出および一致の判定は画像処
理プロセッサ7により行い、照明自動調節装置17の制
御は制御管理用コンピュータ14が行う。特徴位置とし
て重心を用いたが、重心の代わりに濃度の中央値、下限
値を用いた場合も同様にして閾値を決定することができ
る。
Next, a fifth embodiment will be described. In this embodiment, the center of gravity is used as the feature position of the histogram of the reference image, the center of gravity and the center of gravity of the histogram of the similar image are matched by adjusting the illumination intensity on the measurement object, and the threshold of the histogram of the reference image is similar. It is used as a threshold value of an image histogram, and has the same principle as that of the first embodiment. First, the center of gravity X1 of the histogram of the reference image and the center of gravity X2 of the histogram of the similar image are obtained, and the lighting current of the lighting device 23 is controlled by the automatic lighting control device 17 shown in FIG. 1 so that the center of gravity X2 matches the center of gravity X1 (X2 = X1) to adjust the illumination intensity. After matching both centroids, the positions of the threshold values T1 to T3 set on the histogram of the reference image are set in the histogram of the similar image. The calculation of the centroids X1 and X2 and the determination of coincidence are performed by the image processor 7, and the control of the automatic lighting adjustment device 17 is performed by the control management computer 14. Although the center of gravity is used as the feature position, the threshold can be determined in the same manner when a median or lower limit of density is used instead of the center of gravity.

【0027】以上5通りの閾値決定方法を説明したが、
何れの方法を採用するかは、測定対象によって決定す
る。しかし、何れにするか決め兼ねることもあり、この
ような場合、トライアンドエラーで適した方法を決定す
るのがよい。以上のようにして各画像の閾値を決定した
後、各領域の面積を演算し、各組織の定量測定が行われ
る。
The five threshold value determination methods have been described above.
Which method is to be adopted depends on the object to be measured. However, it is not always possible to determine which one to use. In such a case, it is better to determine an appropriate method by trial and error. After determining the threshold value of each image as described above, the area of each region is calculated, and quantitative measurement of each tissue is performed.

【0028】上記の実施例では顕微鏡で組織を観察して
同定する例について述べたが、金属組織、生物組織の同
定だけでなく、印刷結果の検査、温度分布画像の温度領
域の識別、さらに衛星写真や航空写真による地上の領域
分布計測にも活用できる。
In the above embodiment, an example in which the tissue is observed and identified by using a microscope has been described. However, not only the identification of the metal tissue and the biological tissue, but also the inspection of the printing result, the identification of the temperature region of the temperature distribution image, and the satellite It can also be used to measure ground area distribution using photographs and aerial photographs.

【0029】[0029]

【発明の効果】以上の説明から明らかなように、本発明
は、基準画像のヒストグラム上で閾値を設定すれば、基
準画像と類似画像のヒストグラムの特徴に基づき、基準
画像の閾値から類似画像の閾値を自動的に設定できる。
これにより類似画像のヒストグラムに明確なボトムが表
れていない場合でも閾値を設定することができる。
As is clear from the above description, according to the present invention, if a threshold value is set on the histogram of the reference image, the similarity image of the similar image is determined based on the characteristics of the histogram of the reference image and the similar image. The threshold can be set automatically.
Thus, a threshold can be set even when a clear bottom does not appear in the histogram of a similar image.

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

【図1】本発明の実施例を実現する構成の一例を示す図
である。
FIG. 1 is a diagram showing an example of a configuration for realizing an embodiment of the present invention.

【図2】金属表面組織の一例を示す図である。FIG. 2 is a diagram showing an example of a metal surface structure.

【図3】図2に示す組織の濃度ヒストグラムを示す図で
ある。
FIG. 3 is a diagram showing a density histogram of the tissue shown in FIG. 2;

【図4】本発明の実施例の動作フロー図である。FIG. 4 is an operation flowchart of the embodiment of the present invention.

【図5】図4に続く動作フロー図である。FIG. 5 is an operation flowchart following FIG. 4;

【図6】第1実施例の閾値を設定する説明図である。FIG. 6 is an explanatory diagram for setting a threshold value in the first embodiment.

【図7】第2実施例の重心を合わせることにより閾値を
設定する方法を説明する図である。
FIG. 7 is a diagram illustrating a method of setting a threshold value by adjusting the center of gravity of the second embodiment.

【図8】第3実施例の中央値を合わせることにより閾値
を設定する方法を説明する図である。
FIG. 8 is a diagram illustrating a method of setting a threshold value by adjusting a median value according to the third embodiment.

【図9】第4実施例の下限値を合わせることにより閾値
を設定する方法を説明する図である。
FIG. 9 is a diagram illustrating a method of setting a threshold value by adjusting a lower limit value according to the fourth embodiment.

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

1 顕微鏡 6 CPU 7 画像処理プロセッサ 8 濃淡画像メモリ 9 2値化メモリ 15 オートステージ装置 16 オートフォーカス装置 17 照明自動調節装置 20 撮像装置 23 照明装置 DESCRIPTION OF SYMBOLS 1 Microscope 6 CPU 7 Image processor 8 Grayscale image memory 9 Binary memory 15 Autostage device 16 Autofocus device 17 Automatic lighting adjustment device 20 Imaging device 23 Illumination device

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の領域を表す画像を予め設定した濃
淡段階に応じて濃淡分布面積のヒストグラムを作成し、
該ヒストグラムに対して各対象領域に対応する濃度範囲
を表す閾値を定める画像解析による領域の閾値決定方法
において、基準画像のヒストグラムの特徴を表す特徴位
置を定め、該ヒストグラムに各対象領域に対応する濃度
範囲を表す閾値を定め、基準画像に類似する類似画像に
ついてそのヒストグラムの特徴位置を求め、基準画像の
ヒストグラムの特徴位置と類似画像のヒストグラムの特
徴位置との差分を基準画像のヒストグラムの閾値に加算
した位置を類似画像のヒストグラムの閾値とすることを
特徴とする画像解析による領域の閾値決定方法。
1. A histogram of a grayscale distribution area is created for an image representing a plurality of regions according to a predetermined grayscale level,
In the method for determining a threshold value of an area by image analysis that defines a threshold value representing a density range corresponding to each target area with respect to the histogram, a characteristic position indicating a characteristic of a histogram of a reference image is determined, and the histogram is associated with each target area. A threshold representing the density range is determined, and a feature position of the histogram is obtained for a similar image similar to the reference image, and a difference between the feature position of the histogram of the reference image and the feature position of the histogram of the similar image is set as a threshold of the histogram of the reference image. A method for determining a threshold value of a region by image analysis, wherein the added position is used as a threshold value of a histogram of a similar image.
【請求項2】 試料に照明を当ててテレビカメラで撮像
した複数の領域を表す画像より予め設定した濃淡段階に
応じて濃淡分布面積のヒストグラムを作成し、該ヒスト
グラムに対して各対象領域に対応する濃度範囲を表す閾
値を定める画像解析による領域の閾値決定方法におい
て、基準画像のヒストグラムとその特徴位置を求め、該
ヒストグラムに各対象領域に対応する濃度範囲を表す閾
値を定め、基準画像に類似する類似画像についてヒスト
グラムとその特徴位置を求め、類似画像のヒストグラム
の特徴位置が基準画像のヒストグラムの特徴位置と一致
するよう照明を調整し、基準画像のヒストグラムの閾値
を類似画像のヒストグラム閾値としたことを特徴とする
画像解析による領域の閾値決定方法。
2. A histogram of a distribution area of shades is created in accordance with a preset shade level from an image representing a plurality of areas taken by a television camera by illuminating a sample, and the histogram corresponds to each target area. In a method of determining a threshold value of an area by image analysis that defines a threshold value representing a density range to be obtained, a histogram of a reference image and its characteristic position are obtained, a threshold value representing a density range corresponding to each target area is determined in the histogram, and a similarity to the reference image is determined. The histogram and the feature position of the similar image to be obtained are obtained, the illumination is adjusted so that the feature position of the histogram of the similar image matches the feature position of the histogram of the reference image, and the threshold of the histogram of the reference image is set as the histogram threshold of the similar image. A method for determining a threshold value of an area by image analysis.
【請求項3】 前記特徴位置がヒストグラムの面積重心
の濃度の値であることを特徴とする請求項1または2に
記載の画像解析による領域の閾値決定方法。
3. A threshold determination method in the region by the image analysis of <br/> claim 1 or 2, characterized in that the characteristic position is the value of the concentration of the area center of gravity of the histogram.
【請求項4】 前記特徴位置がヒストグラムの濃度の上
限値と下限値との中央値であることを特徴とする請求項
1または2に記載の画像解析による領域の閾値決定方
法。
4. The method according to claim 1, wherein the characteristic position is a median between an upper limit value and a lower limit value of the density of the histogram.
3. The method for determining a threshold value of an area by image analysis according to 1 or 2 .
【請求項5】 前記特徴位置がヒストグラムの濃度の下
限値であることを特徴とする請求項1または2に記載の
画像解析による領域の閾値決定方法。
5. The threshold determination process area by image analysis according to claim 1 or 2, characterized in that the characteristic position is the lower limit value of the density of the histogram.
JP6024993A 1994-02-23 1994-02-23 A method of determining the threshold of an area by image analysis Expired - Fee Related JP2976796B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6024993A JP2976796B2 (en) 1994-02-23 1994-02-23 A method of determining the threshold of an area by image analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6024993A JP2976796B2 (en) 1994-02-23 1994-02-23 A method of determining the threshold of an area by image analysis

Publications (2)

Publication Number Publication Date
JPH07234942A JPH07234942A (en) 1995-09-05
JP2976796B2 true JP2976796B2 (en) 1999-11-10

Family

ID=12153510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6024993A Expired - Fee Related JP2976796B2 (en) 1994-02-23 1994-02-23 A method of determining the threshold of an area by image analysis

Country Status (1)

Country Link
JP (1) JP2976796B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100356018B1 (en) * 1999-12-06 2002-10-18 한국전자통신연구원 Method for Image Indexing and Retrieval By Using Color Information
KR100609178B1 (en) * 2000-03-13 2006-08-02 엘지전자 주식회사 Content-based Multimedia Data Retrieval Method Using Color Distortion Information
JP4634324B2 (en) * 2006-03-07 2011-02-16 株式会社日立ハイテクノロジーズ Transmission electron microscope

Also Published As

Publication number Publication date
JPH07234942A (en) 1995-09-05

Similar Documents

Publication Publication Date Title
CN107451998B (en) Fundus image quality control method
CN110389127B (en) System and method for identifying metal ceramic parts and detecting surface defects
EP2188779B1 (en) Extraction method of tongue region using graph-based approach and geometric properties
US7141773B2 (en) Image focusing in fluorescent imaging
US4413279A (en) Method for contact-free determination of quality features of a test subject of the meat goods class
US9305343B2 (en) Observation device and observation method
US6531707B1 (en) Machine vision method for the inspection of a material for defects
CN117115153B (en) Intelligent printed circuit board quality detection method based on visual assistance
KR20130046515A (en) Color lighting control method for improving image quality of vision system
KR20160108644A (en) Device for detecting defect of device
JP2001184510A (en) Defect detecting method
US6765224B1 (en) Machine vision method and system for the inspection of a material
JP2976796B2 (en) A method of determining the threshold of an area by image analysis
JP2008249413A (en) Defect detection method and device
JP3860540B2 (en) Entropy filter and region extraction method using the filter
JP2001021332A (en) Surface inspection device and surface inspection method
JPH06116914A (en) Method and apparatus for diagnosing coating film deterioration
JPH1062134A (en) Illumination adjustment method for recognition inspection
CN108205798A (en) The MIcrosope image illumination compensation method of robust
JPH05164703A (en) Inspecting method for surface of workpiece
JP2021189238A (en) Belt inspection system and belt inspection program
CN117495984B (en) An intelligent calibration method for coaxial hybrid optical zoom pinhole lens
CN118379300B (en) Coated plate defect detection method for image processing
JPH08159712A (en) Pattern recognition method
CN118691615B (en) Osteoporosis screening system and method based on AI algorithm using X-rays

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees