JP2011090221A - Microscope, focusing position detecting method, and focusing position detecting program - Google Patents

Microscope, focusing position detecting method, and focusing position detecting program Download PDF

Info

Publication number
JP2011090221A
JP2011090221A JP2009244734A JP2009244734A JP2011090221A JP 2011090221 A JP2011090221 A JP 2011090221A JP 2009244734 A JP2009244734 A JP 2009244734A JP 2009244734 A JP2009244734 A JP 2009244734A JP 2011090221 A JP2011090221 A JP 2011090221A
Authority
JP
Japan
Prior art keywords
sample
microscope
evaluation value
color
contrast
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
JP2009244734A
Other languages
Japanese (ja)
Inventor
Takashi Yamamoto
隆司 山本
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2009244734A priority Critical patent/JP2011090221A/en
Publication of JP2011090221A publication Critical patent/JP2011090221A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Focusing (AREA)
  • Microscoopes, Condenser (AREA)
  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a microscope, a focusing position detecting method and a focusing position detecting program capable of preventing a focusing position from being erroneously detected. <P>SOLUTION: The microscope 1 varies a distance between a stage 11 for holding a sample SP and an objective lens 15, and images the sample SP magnified by the objective lens 15. The microscope 1 calculates an AF evaluation value expressing the contrast based on a brightness signal Y in an AF detecting frame AA of a selected area selected partially in an image corresponding to an image picked-up imaging area CA. The microscope 1 lowly evaluates the contrast of an area having a color (color difference signal C) separated from a reference color (reference color difference signal CS) to be exhibited by the sample SP. The microscope 1 determines the focusing position where the objective lens 15 is focused to the sample SP based on the AF evaluation value. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は顕微鏡、合焦位置検出方法及び合焦位置検出プログラムに関し、例えば生体サンプルを拡大して観察する分野に適用して好適なものである。   The present invention relates to a microscope, an in-focus position detection method, and an in-focus position detection program.

生体サンプルは、組織切片等をスライドガラスに固定し、必要に応じて染色を施した後に保管される。一般に、保管期間が長期間となると、組織切片の劣化や退色等により生体サンプルに対する顕微鏡での視認性が悪くなる。また、生体サンプルは、作成された病院等の施設以外の施設で診断されることもあるが、該生体サンプルの受け渡しは一般に郵送であり、一定の時間を要する。   The biological sample is stored after fixing a tissue section or the like on a slide glass and staining it as necessary. In general, when the storage period is long, visibility of the biological sample with a microscope is deteriorated due to deterioration or fading of the tissue section. In addition, the biological sample may be diagnosed at a facility other than the created facility such as a hospital. However, the delivery of the biological sample is generally mailed and requires a certain time.

このような実情等に鑑み、生体サンプルを画像データとして保存する装置が提案されている(例えば特許文献1参照)。   In view of such circumstances and the like, an apparatus for storing a biological sample as image data has been proposed (see, for example, Patent Document 1).

特表2003−222801公報Special table 2003-222801

ところで、この種の装置では、プレパラートを作製する際、又は作製後において、プレパラートの内部への気泡、塵及び異物など(以下、これらを異物類と呼ぶ)の混入又はプレパラート表面に対する異物類の付着が避けられない。   By the way, in this type of apparatus, when preparing the preparation, or after the preparation, mixing of bubbles, dust and foreign matters (hereinafter referred to as foreign matters) into the inside of the preparation or adhesion of foreign matters to the surface of the preparation. Is inevitable.

このような異物類が存在すると、サンプルに対する合焦位置を検出するオートフォーカス処理において、異物類に対する合焦位置を誤ってサンプル位置に対する合焦位置として誤検出してしまうという問題があった。   When such foreign matters are present, there is a problem in that in-focus processing for detecting the in-focus position with respect to the sample erroneously detects the in-focus position with respect to the foreign matters as the in-focus position with respect to the sample position.

本発明は以上の点を考慮してなされたもので、合焦位置の誤検出を抑制し得る顕微鏡、合焦位置検出方法及び合焦位置検出プログラムを提案しようとするものである。   The present invention has been made in view of the above points, and intends to propose a microscope, a focus position detection method, and a focus position detection program that can suppress erroneous detection of the focus position.

かかる課題を解決するため本発明の顕微鏡は、サンプルを拡大する対物レンズと、サンプルを保持する保持部と、保持部と対物レンズとの距離を変動させる距離変動部と、対物レンズにより拡大されるサンプルを撮像する撮像素子と、撮像される画像において、部分的に選択された選択領域における画素値から、コントラストを表すAF評価値を算出する際、サンプルが呈すべき基準色から乖離する色を有する領域のコントラストを低く評価する算出部と、AF評価値に基づいて、対物レンズがサンプルに対して合焦する合焦位置を決定する合焦位置決定部とを設けるようにした。   In order to solve such a problem, the microscope of the present invention is magnified by an objective lens for enlarging the sample, a holding unit for holding the sample, a distance varying unit for changing the distance between the holding unit and the objective lens, and the objective lens. When calculating an AF evaluation value representing contrast from an image sensor that captures a sample and a pixel value in a partially selected selection region in the captured image, the sample has a color that deviates from the reference color that the sample should exhibit A calculation unit that evaluates the contrast of the region low and a focus position determination unit that determines a focus position at which the objective lens focuses on the sample based on the AF evaluation value are provided.

これにより、顕微鏡は、サンプルとは異なる色を有する異物類についてのコントラストを低く評価できるため、AF評価値に対する異物類の影響を低減できる。   Thereby, since the microscope can evaluate the contrast of the foreign matters having a color different from that of the sample low, the influence of the foreign matters on the AF evaluation value can be reduced.

また本発明は、サンプルを保持する保持部と対物レンズとの距離を変動させながらサンプルを撮像する撮像ステップと、撮像された画像において、部分的に選択された選択領域における輝度信号から、コントラストを表すAF評価値を算出する際、サンプルが呈すべき基準色から乖離する色を有する領域のコントラストを低く評価する算出ステップと、AF評価値に基づいて、対物レンズがサンプルに対して合焦する合焦位置を決定する合焦位置決定ステップとを設けるようにした。   The present invention also provides an imaging step for imaging the sample while varying the distance between the holding unit for holding the sample and the objective lens, and a contrast from a luminance signal in a partially selected area in the captured image. When calculating the AF evaluation value to be expressed, a calculation step for evaluating the contrast of a region having a color that deviates from the reference color to be exhibited by the sample, and the focus on which the objective lens is focused on the sample based on the AF evaluation value. And a focus position determining step for determining a focus position.

これにより、合焦位置検出方法は、サンプルとは異なる色を有する異物類についてのコントラストを低く評価できるため、AF評価値に対する異物類の影響を低減できる。   Thereby, since the focus position detection method can evaluate the contrast about the foreign materials which have a color different from a sample low, it can reduce the influence of the foreign materials on AF evaluation value.

また本発明は、顕微鏡を制御するコンピュータに対して、サンプルを保持する保持部と対物レンズとの距離を変動させながらサンプルを撮像する撮像ステップと、撮像された画像において、部分的に選択された選択領域における輝度信号から、コントラストを表すAF評価値を算出する際、サンプルが呈すべき基準色から乖離する色を有する領域のコントラストを低く評価する算出ステップと、AF評価値に基づいて、対物レンズがサンプルに対して合焦する合焦位置を決定する合焦位置決定ステップとを設けるようにした。   Further, according to the present invention, a computer that controls the microscope is partially selected in an imaging step of imaging the sample while changing the distance between the holding unit that holds the sample and the objective lens, and the captured image. When calculating the AF evaluation value representing the contrast from the luminance signal in the selected region, a calculation step for evaluating the contrast of the region having a color deviating from the reference color to be exhibited by the sample, and the objective lens based on the AF evaluation value And a focus position determining step for determining a focus position for focusing on the sample.

これにより、合焦位置検出プログラムは、サンプルとは異なる色を有する異物類についてのコントラストを低く評価できるため、AF評価値に対する異物類の影響を低減できる。   Accordingly, the focus position detection program can evaluate the contrast of foreign matters having a color different from that of the sample to be low, so that the influence of foreign matters on the AF evaluation value can be reduced.

本発明では、サンプルとは異なる色を有する異物類についてのコントラストを低く評価できるため、AF評価値に対する異物類の影響を低減でき、かくして合焦位置の誤検出を抑制し得る顕微鏡、合焦位置検出方法及び合焦位置検出プログラムを実現できる。   In the present invention, since the contrast of foreign matter having a color different from that of the sample can be evaluated low, the influence of the foreign matter on the AF evaluation value can be reduced, and thus the erroneous detection of the focus position can be suppressed. A detection method and a focus position detection program can be realized.

顕微鏡の構成を示す略線図である。It is a basic diagram which shows the structure of a microscope. 撮像領域を示す写真である。It is a photograph which shows an imaging region. 合焦位置の探索の説明に供する略線図である。It is an approximate line figure used for explanation of search of a focus position. AF処理部の構成を示す略線図である。It is a basic diagram which shows the structure of AF process part. 異物類の混入の説明に供する略線図である。It is a basic diagram with which it uses for description of mixing of a foreign material. 異物類の影響によるAF評価値の変化の説明に供する略線図である。It is a basic diagram with which it uses for description of the change of AF evaluation value by the influence of foreign materials. 撮像処理手順の説明に供するフローチャートである。It is a flowchart with which it uses for description of an imaging process procedure.

以下、発明を実施するための形態について説明する。なお、説明は以下の順序とする。
1.実施の形態(異物類の影響を低減した合焦位置の検出)
2.他の実施の形態
Hereinafter, modes for carrying out the invention will be described. The description will be in the following order.
1. Embodiment (Focus position detection with reduced influence of foreign substances)
2. Other embodiments

<1.実施の形態>
[1−1.顕微鏡の構成]
図1において、本実施の形態による顕微鏡1を示す。この顕微鏡1は、プレパラートPRTが配される板状のステージ11を有する。
<1. Embodiment>
[1-1. Microscope configuration]
In FIG. 1, the microscope 1 by this Embodiment is shown. This microscope 1 has a plate-like stage 11 on which a preparation PRT is arranged.

プレパラートPRTは、血液等の結合組織、上皮組織又はそれらの双方の組織などの組織の切片を、所定の固定手法によりスライドガラスSGに固定し封入したものであり、該組織切片には必要に応じて染色が施される。この染色には、HE(ヘマトキシリン・エオジン)染色、ギムザ染色又はパパニコロウ染色等に代表される一般染色と呼ばれる染色などが含まれる。   The preparation PRT is a section of tissue such as connective tissue such as blood, epithelial tissue, or both of them, which is fixed and enclosed in a glass slide SG by a predetermined fixing method. Is dyed. This staining includes staining called general staining represented by HE (hematoxylin and eosin) staining, Giemsa staining, Papanicolaou staining, and the like.

ステージ11にはステージ駆動機構12が設けられる。このステージ駆動機構12は、ステージ面に対して平行となる方向(X軸−Y軸方向)と、直交する方向(Z軸方向)にステージ11を駆動するものとされる。ちなみに、プレパラートPRTが配される側のステージ面(以下、これをプレパラート配置面とも呼ぶ)には、一般に、プレパラートPRTを定位置に抑止する抑止部(図示せず)が設けられる。   The stage 11 is provided with a stage drive mechanism 12. The stage drive mechanism 12 drives the stage 11 in a direction (X axis-Y axis direction) parallel to the stage surface and a direction (Z axis direction) orthogonal to the stage surface. Incidentally, a stage surface on which the preparation PRT is arranged (hereinafter also referred to as a preparation arrangement surface) is generally provided with a deterring unit (not shown) that inhibits the preparation PRT at a fixed position.

ステージ11のプレパラート配置面とは逆の面側には光源13が配される。光源13は、一般染色が施された組織切片を照明する光(以下、これを明視野照明光とも呼ぶ)を照射可能なものとされる。ただし、明視野照明光及び特殊染色が施された組織切片を照明する光(以下、これを暗視野照射光と呼ぶ)を切り換えて照射可能なものであってもよい。光源13とステージ11との間には、プレパラート配置面における基準位置の法線を光軸とするコンデンサレンズ14が配される。   A light source 13 is disposed on the side of the stage 11 opposite to the preparation arrangement surface. The light source 13 can irradiate light that illuminates a tissue section subjected to general staining (hereinafter also referred to as bright field illumination light). However, light that illuminates a tissue section subjected to bright field illumination light and special staining (hereinafter referred to as dark field illumination light) may be switched and irradiated. A condenser lens 14 is disposed between the light source 13 and the stage 11 with the normal line of the reference position on the preparation arrangement surface as the optical axis.

ステージ11のプレパラート配置面側には、ステージ面における基準位置の法線を光軸とする対物レンズ15が配される。対物レンズ15は、倍率の異なる複数の対物レンズのなかからレンズ切換機構又は手動により選択される。この対物レンズ15の後方には、該対物レンズ15の結像面を撮像面とする撮像素子16が配される。   On the preparation arrangement surface side of the stage 11, an objective lens 15 having a normal line of a reference position on the stage surface as an optical axis is disposed. The objective lens 15 is selected by a lens switching mechanism or manually from a plurality of objective lenses having different magnifications. Behind the objective lens 15, an image sensor 16 having an imaging surface of the objective lens 15 as an imaging surface is disposed.

この顕微鏡1における制御系として、ステージ駆動機構12にはステージ駆動制御部21が、光源13には照明制御部22が、撮像素子16には撮像制御部23がデータ通信路を介して接続される。   As a control system in the microscope 1, a stage drive control unit 21 is connected to the stage drive mechanism 12, an illumination control unit 22 is connected to the light source 13, and an imaging control unit 23 is connected to the image sensor 16 through a data communication path. .

これら制御系は、CPU(Central Processing Unit)、ROM(Read Only Memory)、CPUのワークメモリとなるRAM(Random Access Memory)及び演算回路などを含むコンピュータとされる。   These control systems are computers including a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM) serving as a work memory of the CPU, an arithmetic circuit, and the like.

ステージ駆動制御部21は、ステージ駆動機構12を駆動制御し、コンデンサレンズ14によって集められる集光部分にプレパラートPRTの組織切片が割り当てられるようステージ面方向(X軸−Y軸方向)にステージ11を移動させる。   The stage drive control unit 21 drives and controls the stage drive mechanism 12, and moves the stage 11 in the stage surface direction (X-axis-Y-axis direction) so that the tissue section of the preparation PRT is assigned to the condensing portion collected by the condenser lens 14. Move.

またステージ駆動制御部21は、ステージ駆動機構12を駆動制御し、集光部分に割り当てられる組織切片の部位が対物レンズ15の焦点に合うようステージ面の直交方向(Z軸方向(つまり組織切片の厚み方向))にステージ11を移動させる。   Further, the stage drive control unit 21 controls the drive of the stage drive mechanism 12 so that the region of the tissue section allocated to the condensing portion is in the direction orthogonal to the stage surface (Z-axis direction (that is, the tissue section of the tissue section). The stage 11 is moved in the thickness direction)).

照明制御部22は、明視野像を取得すべきモード(以下、これを明視野モードとも呼ぶ)に応じたパラメータを光源13に設定し、該光源13から照明光を照射させる。このパラメータは例えば照明光の強度や光源の切り換えなどである。なお、明視野モードにおける照射光は一般に可視光とされる。   The illumination control unit 22 sets a parameter corresponding to a mode in which a bright field image is to be acquired (hereinafter also referred to as a bright field mode) to the light source 13 and irradiates illumination light from the light source 13. This parameter is, for example, illumination light intensity or light source switching. Note that the irradiation light in the bright field mode is generally visible light.

光源13から照明光が照射された場合、その照明光はコンデンサレンズ14によって、ステージ11におけるプレパラート配置面の基準位置に集められる。対物レンズ15の結像面には、プレパラートPRTにおける組織切片のうち、コンデンサレンズ14によって集光される集光部分の像が拡大されて結像され、その拡大像が対物レンズ15によって撮像素子16の撮像面に被写体像として結像される。   When illumination light is emitted from the light source 13, the illumination light is collected by the condenser lens 14 at a reference position on the preparation arrangement surface of the stage 11. On the imaging surface of the objective lens 15, an image of a condensing portion condensed by the condenser lens 14 in the tissue section in the preparation PRT is enlarged and formed, and the enlarged image is formed by the objective lens 15 and the imaging element 16. Is formed as a subject image.

撮像制御部23は、明視野モードに応じたパラメータを撮像素子16に設定し、該撮像素子16の撮像面に結像される被写体像のデータを取得する。このパラメータは例えば露光の開始タイミング及び終了タイミングなどである。   The imaging control unit 23 sets parameters according to the bright field mode in the imaging device 16 and acquires data of a subject image formed on the imaging surface of the imaging device 16. This parameter is, for example, the exposure start timing and end timing.

またこの顕微鏡1における制御系として、該顕微鏡1の全体の制御を司る制御部(以下、これを統括制御部とも呼ぶ)30があり、これはステージ駆動制御部21、照明制御部22及び撮像制御部23それぞれにデータ通信路を介して接続される。この統括制御部30は、CPU、ROM、RAM、演算回路及び記憶媒体などを含むコンピュータとされる。   As a control system in the microscope 1, there is a control unit (hereinafter also referred to as a general control unit) 30 that controls the entire microscope 1, which is a stage drive control unit 21, an illumination control unit 22, and an imaging control. Each unit 23 is connected via a data communication path. The overall control unit 30 is a computer including a CPU, a ROM, a RAM, an arithmetic circuit, a storage medium, and the like.

統括制御部30は、明視野モードの開始命令を待ち受け、該開始命令を受けた場合、撮像処理を開始し、制御を開始すべき指令をステージ駆動制御部21、照明制御部22及び撮像制御部23に与える。   The overall control unit 30 waits for a bright field mode start command. When the start command is received, the overall control unit 30 starts an imaging process, and commands to start control are a stage drive control unit 21, an illumination control unit 22, and an imaging control unit. 23.

このとき、図2に示すように、統括制御部30は、プレパラートPRTを複数の撮像領域CAに分割し、当該撮像領域CAごとに検出合焦位置を検出するオートフォーカス処理を実行する。統括制御部30は、撮像領域CAごとに決定された検出合焦位置において撮像を繰り返すことにより、プレパラートPRTのほぼ全域に亘って撮像する。   At this time, as shown in FIG. 2, the overall control unit 30 divides the preparation PRT into a plurality of imaging areas CA, and executes an autofocus process for detecting a detection focus position for each imaging area CA. The overall control unit 30 captures an image over almost the entire area of the preparation PRT by repeating the imaging at the detection focus position determined for each imaging area CA.

また統括制御部30は、ステージ駆動制御部21においてプレパラートPRTの組織切片部位が割り当てるたびに、撮像素子16によって取得される組織切片部位における拡大像のデータを記憶媒体に記憶する。   In addition, each time the stage drive control unit 21 assigns a tissue section site of the preparation PRT, the overall control unit 30 stores the enlarged image data in the tissue section site acquired by the imaging element 16 in the storage medium.

そして統括制御部30は、表示命令を待ち受け、該表示命令を受けた場合、その表示命令で指定される拡大像に対応するデータを記憶媒体から読み出し、これを表示命令の送出元に与える。   The overall control unit 30 waits for a display command. When the display command is received, the overall control unit 30 reads data corresponding to the enlarged image designated by the display command from the storage medium, and gives this to the transmission source of the display command.

このようにこの顕微鏡1は、プレパラートPRTの組織切片を鏡検状態の画像として記憶することで、プレパラートPRT自体を保存する場合に比べて、固定や染色等の状態を劣化させることなく長期にわたって組織切片を保存できるようになされている。   As described above, the microscope 1 stores the tissue section of the preparation PRT as an image in a microscopic state, so that the tissue can be maintained for a long period of time without deteriorating the state of fixation, staining, or the like as compared with the case of storing the preparation PRT itself. The section can be stored.

[1−2.オートフォーカス処理]
次に、合焦位置を自動的に検出するオートフォーカス処理について説明する。
[1-2. Autofocus processing]
Next, an autofocus process for automatically detecting the focus position will be described.

具体的に、図3に示すように、顕微鏡1の統括制御部30は、顕微鏡1における各部を制御することにより、撮像領域CAごとに複数の焦点位置で画像を撮像する。このときの、光軸方向の撮像間隔は、例えば被写界深度と同程度、又は被写界深度未満に設定される。   Specifically, as shown in FIG. 3, the overall control unit 30 of the microscope 1 captures images at a plurality of focal positions for each imaging region CA by controlling each unit in the microscope 1. At this time, the imaging interval in the optical axis direction is set to, for example, the same depth as the depth of field or less than the depth of field.

統括制御部30は、撮像領域CAにおける部分的な領域(例えば中心部分)をAF検波枠AAとする。統括制御部30は、AF検波枠AAにおけるコントラスト(画像における明暗の強度)などをAF評価値として比較し、当該AF評価値の最も高い焦点位置を合焦位置FPとして検出する。   The overall control unit 30 sets a partial area (for example, the central part) in the imaging area CA as the AF detection frame AA. The overall control unit 30 compares the contrast (brightness and darkness in the image) in the AF detection frame AA as an AF evaluation value, and detects the focal position with the highest AF evaluation value as the in-focus position FP.

一般的に、AF評価値は、AF検出枠AA内のすべての画素についての和として、輝度信号Yを用いた2次微分(ラプラシアン)によって算出される。例えば、(1)式に示すように、画像の任意の点(x,y)における上下左右の隣接する画素の輝度値Y同士の2次微分値L(x,y)が算出される。   In general, the AF evaluation value is calculated by secondary differentiation (Laplacian) using the luminance signal Y as the sum of all the pixels in the AF detection frame AA. For example, as shown in equation (1), the secondary differential value L (x, y) between the luminance values Y of the adjacent pixels in the vertical and horizontal directions at an arbitrary point (x, y) of the image is calculated.

Figure 2011090221
Figure 2011090221

そして、(2)式に従って、AF検出枠AA内のすべての画素についての2次微分値L(x,y)の和として、AF評価値が算出される。   Then, the AF evaluation value is calculated as the sum of the secondary differential values L (x, y) for all the pixels in the AF detection frame AA according to the equation (2).

Figure 2011090221
Figure 2011090221

一般的に、画像では、合焦していれば隣接画素間の輝度信号Yの差分が大きくなり、コントラストが大きくなる。このため、統括制御部30は、AF評価値が最大となる焦点位置を検出合焦位置として検出する。   Generally, in an image, if the image is in focus, the difference in the luminance signal Y between adjacent pixels increases, and the contrast increases. For this reason, the overall control unit 30 detects the focal position where the AF evaluation value is maximized as the detected in-focus position.

図4に示すように、細胞組織でなるサンプルSPは、一般的に、スライドガラスSGとカバーガラスCGとの間に挟まれ、包理剤LQによって固定されたスライドSGとして顕微鏡1のステージ11上に設置される。   As shown in FIG. 4, a sample SP made of a cell tissue is generally sandwiched between a slide glass SG and a cover glass CG, and is placed on the stage 11 of the microscope 1 as a slide SG fixed by a packing agent LQ. Installed.

このとき、スライドガラスSGの表面やカバーガラスCGの表面には、肉眼では確認できない微細な塵が多数付着している。また、包理剤LQの内部にも、スライドSDの作成時に混入した気泡や微細な塵、異物など(以下、これらをまとめて異物類ODと呼ぶ)が混入してしまう。   At this time, many fine dusts that cannot be confirmed with the naked eye adhere to the surface of the slide glass SG and the surface of the cover glass CG. In addition, bubbles, fine dust, foreign matters and the like (hereinafter collectively referred to as foreign matters OD) mixed in the creation of the slide SD are also mixed inside the packing material LQ.

図5に示すように、AF検波枠AA内に異物類ODが混入していた場合、異物類ODによりAF評価値が上昇し、合焦位置を誤検出する可能性が生じる。   As shown in FIG. 5, when the foreign object OD is mixed in the AF detection frame AA, the AF evaluation value increases due to the foreign object OD, and there is a possibility that the in-focus position is erroneously detected.

ところで、一般的に、細胞組織をサンプルSPとして顕微鏡観察を行う場合、当該サンプルSPに対して染色処理が施されていることが多い。このため、観察対象となるサンプルSPそのものを撮像した場合、染色に応じた限定された色域において像が変化する画像となる。   By the way, generally, when performing microscopic observation using a cell tissue as a sample SP, the sample SP is often subjected to a staining process. For this reason, when the sample SP itself to be observed is imaged, the image changes in a limited color gamut according to staining.

一方で、異物類ODは、ほとんど染色されないことから、サンプルSPとは異なる色域において像が変化する画像となる。   On the other hand, since the foreign matter OD is hardly dyed, the image changes in a color gamut different from that of the sample SP.

そこで本実施の形態による顕微鏡1では、色差信号C(Cr及びCb)を用いて2次微分値L(x,y)を重み付けすることにより、AF評価値における異物類ODの影響を低減させるようになされている。   Therefore, in the microscope 1 according to this embodiment, the influence of the foreign matter OD on the AF evaluation value is reduced by weighting the secondary differential value L (x, y) using the color difference signals C (Cr and Cb). Has been made.

顕微鏡1の統括制御部30は、ユーザの操作入力に応じて基準色の設定要求がなされると、基準色設定部44(図1)に予め記憶されている色テーブルを読み出し、想定される染色種類の一覧を表示部(図示しない)に表示する。この色テーブルには、染色種類と対応づけて色差信号が記憶されている。この色差信号は、染色種類における平均的な色を表すものである。   When a reference color setting request is made in response to a user operation input, the overall control unit 30 of the microscope 1 reads a color table stored in advance in the reference color setting unit 44 (FIG. 1), and assumes an assumed staining. A list of types is displayed on a display unit (not shown). In this color table, a color difference signal is stored in association with the staining type. This color difference signal represents an average color of the staining type.

基準色設定部44は、ユーザによって染色種類が選択されると、当該染色種類に対応付けられた色差信号Cを基準色差信号CS(CbS及びCrS)に決定し、これをAF処理部41の補正部45に供給する。   When the staining type is selected by the user, the reference color setting unit 44 determines the color difference signal C associated with the staining type as the reference color difference signal CS (CbS and CrS), and this is corrected by the AF processing unit 41. To the unit 45.

図6に示すように、補正部45は、(3)式に従って、各画素のコントラストを表す2次微分値L(x,y)を算出する。すなわち、補正部45は、色差信号Cb及びCrから基準色差信号CbS及びCrSを減算した差分値を2乗して加算し、平方根をとることにより、差分値を加重し、加重差分値を算出する。色差信号Cb及びCrの最高値が255であることから、当該加重差分値を2×255の平方根で除算して正規化して正規化値を算出する。当該正規化値を1から減算して補正係数を算出し、算出された補正係数に対し、2次微分値L(x,y)を乗算する。   As shown in FIG. 6, the correction unit 45 calculates a secondary differential value L (x, y) representing the contrast of each pixel according to the equation (3). That is, the correction unit 45 squares and adds the difference value obtained by subtracting the reference color difference signals CbS and CrS from the color difference signals Cb and Cr, and calculates the weighted difference value by weighting the difference value by taking the square root. . Since the maximum value of the color difference signals Cb and Cr is 255, the normalized difference value is calculated by dividing the weighted difference value by the square root of 2 × 255. The correction coefficient is calculated by subtracting the normalized value from 1, and the calculated correction coefficient is multiplied by the secondary differential value L (x, y).

Figure 2011090221
Figure 2011090221

2次微分値L(x,y)に乗算される補正係数は、基準色差信号CbS及びCrSを減算した差分値が大きいほど小さくなり、「1」よりも小さくなる。一方、差分値が小さいほど大きくなり、「1」に近づく。すなわち、染色された領域では「1」に近い補正係数が乗算されて補正2次微分値Lc(x,y)が算出されるのに対し、異物では「1」よりもかなり小さい補正係数が乗算され、補正2次微分値Lc(x,y)が算出される。   The correction coefficient multiplied by the secondary differential value L (x, y) becomes smaller as the difference value obtained by subtracting the reference color difference signals CbS and CrS becomes larger, and becomes smaller than “1”. On the other hand, the smaller the difference value, the larger the value, and the value approaches “1”. That is, the corrected secondary differential value Lc (x, y) is calculated by multiplying the stained area by a correction coefficient close to “1”, whereas the foreign substance is multiplied by a correction coefficient considerably smaller than “1”. Then, the corrected secondary differential value Lc (x, y) is calculated.

補正部45は、補正2次微分値Lc(x,y)をAF評価値算出部46に供給する。AF評価値算出部46は、(4)式に従って、AF評価値を算出する。なお、(4)式は、(2)式の2次微分値L(x,y)を補正2次微分値Lc(x,y)に置き換えたものである。   The correction unit 45 supplies the corrected secondary differential value Lc (x, y) to the AF evaluation value calculation unit 46. The AF evaluation value calculation unit 46 calculates an AF evaluation value according to equation (4). In addition, (4) Formula replaces the secondary differential value L (x, y) of Formula (2) with the corrected secondary differential value Lc (x, y).

Figure 2011090221
Figure 2011090221

すなわち、染色されたサンプルSPでは、補正2次微分値Lc(x,y)の和であるAF評価値が殆ど補正されない一方、異物類ODの領域では、AF評価値が小さくなるように補正される。   That is, in the stained sample SP, the AF evaluation value that is the sum of the corrected secondary differential values Lc (x, y) is hardly corrected, while in the region of foreign matter OD, the AF evaluation value is corrected to be small. The

合焦位置決定部47は、AF評価値の最も高い画像の撮像された焦点位置を検出合焦位置に決定する。このとき、合焦位置決定部47は、異物類ODの領域ではAF評価値が小さく補正されているため、サンプルSPに対する合焦位置を検出号証位置として適切に決定することができる。   The focus position determination unit 47 determines the focus position where the image with the highest AF evaluation value is captured as the detected focus position. At this time, since the AF evaluation value is corrected to be small in the foreign matter OD region, the focus position determination unit 47 can appropriately determine the focus position with respect to the sample SP as the detection sign position.

このように、顕微鏡1は、染色に使用された色から乖離する色を有する領域を異物類ODとみなし、当該異物類ODに対するAF評価値の値を低減することにより、異物類ODがAF評価値に与える影響を小さくすることができる。この結果、顕微鏡1は、異物類ODに合焦したことによってAF評価値が上昇することによる検出合焦位置の誤検出を防止し得るようになされている。   As described above, the microscope 1 regards a region having a color deviating from the color used for staining as the foreign matter OD, and reduces the value of the AF evaluation value for the foreign matter OD so that the foreign matter OD is evaluated by the AF. The influence on the value can be reduced. As a result, the microscope 1 can prevent erroneous detection of the detected focus position due to the AF evaluation value increasing due to focusing on the foreign matter OD.

[1−3.処理手順]
次に、撮像プログラムに従って実行される撮像処理手順について、図7のフローチャートを用いて説明する。
[1-3. Processing procedure]
Next, an imaging processing procedure executed according to the imaging program will be described with reference to the flowchart of FIG.

顕微鏡1は、ユーザの操作入力に応じた明視野モードの開始命令を認識すると、撮像処理手順RT1を開始し、ステップSP1へ移る。   When the microscope 1 recognizes a bright field mode start command in accordance with a user operation input, the microscope 1 starts an imaging processing procedure RT1 and proceeds to step SP1.

ステップSP1において、顕微鏡1は、一の撮像領域CAにおいて複数の焦点位置で撮像を実行すると、次のステップSP2へ移る。   In step SP1, when the microscope 1 performs imaging at a plurality of focal positions in one imaging area CA, the microscope 1 proceeds to the next step SP2.

ステップSP2において、顕微鏡1は、(3)式に従って色差信号Cによる重み付けを行い、補正2次微分値Lc(x,y)を算出すると、次のステップSP3へ移る。   In step SP2, the microscope 1 performs weighting by the color difference signal C according to the equation (3) and calculates the corrected secondary differential value Lc (x, y), and then proceeds to the next step SP3.

ステップSP3において、顕微鏡1は、(4)式に従って、AF検出枠AA内についてのコントラストの大きさを表すAF評価値を算出すると、次のステップSP4へ移る。   In step SP3, when the microscope 1 calculates an AF evaluation value representing the magnitude of contrast in the AF detection frame AA according to the equation (4), the microscope 1 proceeds to the next step SP4.

ステップSP4において、顕微鏡1は、AF評価値に基づいて検出合焦位置を決定すると、次のステップSP5へ移る。   In step SP4, when the microscope 1 determines the detection focus position based on the AF evaluation value, the microscope 1 proceeds to the next step SP5.

ステップSP5において、顕微鏡1は、検出合焦位置において撮像を実行すると、次のステップSP6へ移る。   In step SP5, when the microscope 1 executes imaging at the detection focus position, the microscope 1 proceeds to the next step SP6.

ステップSP6において、顕微鏡1は、すべての撮像領域CAに対して撮像処理を実行したか否かについて判別する。ここで否定結果が得られると、顕微鏡1は、ステップSP1へ戻り、次の撮像領域CAに対する処理を実行する。   In step SP6, the microscope 1 determines whether or not the imaging process has been executed for all the imaging areas CA. If a negative result is obtained here, the microscope 1 returns to step SP1 and executes processing for the next imaging area CA.

これに対して、ステップSP7において否定肯定結果が得られると、顕微鏡1は、終了ステップへ移り、撮像処理手順RT1を終了する。   On the other hand, if a negative result is obtained in step SP7, the microscope 1 moves to an end step and ends the imaging processing procedure RT1.

[1−4.動作及び効果]
以上の構成によれば、顕微鏡1は、サンプルSPを保持するステージ11と対物レンズ15との距離を変動させ、対物レンズ15により拡大されるサンプルSPを撮像する。顕微鏡1は、撮像される撮像領域CAに対応する画像において、部分的に選択された選択領域であるAF検出枠AAにおける輝度信号Yから、コントラストを表すAF評価値を算出する。このとき、顕微鏡1は、サンプルSPが呈すべき基準色(基準色差信号CS)から乖離する色(色差信号C)を有する領域のコントラストを低く評価する。そして、顕微鏡1は、AF評価値に基づいて、対物レンズ15がサンプルSPに対して合焦する合焦位置FPを検出合焦位置として決定する。
[1-4. Operation and effect]
According to the above configuration, the microscope 1 varies the distance between the stage 11 holding the sample SP and the objective lens 15 and images the sample SP enlarged by the objective lens 15. The microscope 1 calculates an AF evaluation value representing contrast from the luminance signal Y in the AF detection frame AA, which is a partially selected selection area, in an image corresponding to the imaging area CA to be imaged. At this time, the microscope 1 evaluates the contrast of a region having a color (color difference signal C) deviating from the reference color (reference color difference signal CS) to be exhibited by the sample SP to be low. Then, based on the AF evaluation value, the microscope 1 determines a focus position FP where the objective lens 15 is focused on the sample SP as a detection focus position.

これにより、顕微鏡1は、サンプルSPとは相違する色を呈する異物類ODのコントラストを低く評価することができるため、検出合焦位置の検出精度を向上させることができる。   Thereby, since the microscope 1 can evaluate the contrast of the foreign substances OD exhibiting a color different from that of the sample SP, the detection accuracy of the detection focus position can be improved.

顕微鏡1は、2次微分値を補正2次微分値Lc(x,y)として算出することにより、基準色差信号CSから乖離する色差信号Cを有する画素の2次微分値L(x,y)の値を小さくして補正2次微分値Lc(x,y)を算出する。これにより、顕微鏡1は、基準色差信号CSから乖離する色差信号Cを有する領域のコントラストを低く評価する。   The microscope 1 calculates the secondary differential value as the corrected secondary differential value Lc (x, y), thereby obtaining the secondary differential value L (x, y) of the pixel having the color difference signal C that deviates from the reference color difference signal CS. Is corrected to calculate a corrected secondary differential value Lc (x, y). Thereby, the microscope 1 evaluates the contrast of the area having the color difference signal C deviating from the reference color difference signal CS low.

これにより、顕微鏡1は、異物類ODを表す2次微分値L(x,y)の値を小さくできるため、異物類ODのAF評価値を低減することができる。また、顕微鏡1は、2次微分値L(x,y)を補正するだけの簡易な処理で基準色差信号YSから乖離する色差信号Cを有する領域のコントラストを低く評価することができる。   Thereby, since the microscope 1 can reduce the value of the secondary differential value L (x, y) representing the foreign matter OD, the AF evaluation value of the foreign matter OD can be reduced. Further, the microscope 1 can evaluate the contrast of the region having the color difference signal C deviating from the reference color difference signal YS with a simple process that only corrects the secondary differential value L (x, y).

顕微鏡1は、基準色差信号CSからの色差信号Cの乖離度合いに応じて、対応する画素の補正2次微分値Lc(x,y)の値を小さくする。これにより、顕微鏡1は、異物類ODか否かを検出することなく、異物類ODである可能性に応じてAF評価値の値を調整でき、AF評価値の信頼性を向上させることができる。また、顕微鏡1は、2次微分値L(x,y)に対して補正係数を乗算するだけの簡易な計算により、補正2次微分値Lc(x,y)を算出できる。   The microscope 1 reduces the value of the corrected secondary differential value Lc (x, y) of the corresponding pixel in accordance with the degree of deviation of the color difference signal C from the reference color difference signal CS. Thereby, the microscope 1 can adjust the value of the AF evaluation value according to the possibility of the foreign matter OD without detecting whether or not the foreign matter is OD, and can improve the reliability of the AF evaluation value. . Further, the microscope 1 can calculate the corrected secondary differential value Lc (x, y) by a simple calculation by simply multiplying the secondary differential value L (x, y) by the correction coefficient.

顕微鏡1は、ユーザによる操作入力に応じて、基準色差信号CSを設定する。これにより、顕微鏡1は、染色方法に応じた適切な基準色差信号CSを設定することができる。   The microscope 1 sets the reference color difference signal CS according to the operation input by the user. Thereby, the microscope 1 can set an appropriate reference color difference signal CS according to the staining method.

以上の構成によれば、顕微鏡1は、サンプルを保持するステージ11と対物レンズ15との距離を変動させながらサンプルSPを撮像する。顕微鏡1は、撮像された画像において、部分的に選択されたAF検出枠AAにおける輝度信号Yから、コントラストを表すAF評価値を算出する際、サンプルSPが呈すべき基準色差信号CSから乖離する色差信号Cを有する画素に隣接する領域のコントラストを低く評価する。そして、顕微鏡1は、AF評価値に基づいて、対物レンズ15がサンプルSPに対して合焦する検出合焦位置を決定する。   According to the above configuration, the microscope 1 images the sample SP while changing the distance between the stage 11 holding the sample and the objective lens 15. When the microscope 1 calculates an AF evaluation value representing contrast from the luminance signal Y in the partially selected AF detection frame AA in the captured image, the microscope 1 deviates from the reference color difference signal CS to be presented by the sample SP. The contrast of the area adjacent to the pixel having the signal C is evaluated low. Then, the microscope 1 determines a detection focus position at which the objective lens 15 is focused on the sample SP based on the AF evaluation value.

これにより、顕微鏡1は、異物類ODに起因するAF評価値を低く設定できるため、異物類ODに対する合焦位置OPをサンプルSPに対する検出合焦位置として検出することを極力防止できる。かくして、本発明は、合焦位置FPの誤検出を抑制し得る顕微鏡、合焦位置検出方法及び合焦位置検出プログラムを実現できる。   Thereby, since the microscope 1 can set the AF evaluation value caused by the foreign matter OD to be low, it is possible to prevent the focus position OP with respect to the foreign matter OD from being detected as the detected focus position with respect to the sample SP as much as possible. Thus, the present invention can realize a microscope, a focus position detection method, and a focus position detection program that can suppress erroneous detection of the focus position FP.

<2.他の実施の形態>
なお、上述した実施の形態においては、ユーザによる操作入力に応じて、基準色差信号CSを設定するようにした場合について述べた。本発明はこれに限らず、顕微鏡1が基準色差信号CSを設定するようにしても良い。例えば、顕微鏡1が、サンプルSP1における少なくとも一部の領域の色差信号CSの平均値を算出し、これを基準色差信号CSとして設定するようにとしてもよい。例えば一つの焦点位置において複数の撮像領域CAを撮像し、基準色差信号CSが算出されても良い。
<2. Other embodiments>
In the above-described embodiment, the case where the reference color difference signal CS is set according to the operation input by the user has been described. The present invention is not limited to this, and the microscope 1 may set the reference color difference signal CS. For example, the microscope 1 may calculate an average value of the color difference signals CS of at least a part of the region in the sample SP1 and set this as the reference color difference signal CS. For example, a plurality of imaging areas CA may be imaged at one focal position, and the reference color difference signal CS may be calculated.

これにより、顕微鏡1は、ユーザに染色方法などを指定させるなどの操作をさせることなく、基準色差信号CSを設定でき、ユーザの利便性を向上させ得る。   Accordingly, the microscope 1 can set the reference color difference signal CS without causing the user to designate a staining method or the like, and can improve the convenience for the user.

また、プレパラートの上に貼り付けられたラベルやバーコード情報、もしくはRFチップなどから染色種類を自動的に読取り、基準色差信号CSを自動的に設定することも可能である。これにより、プレパラートの経年劣化や退色による影響を基準色差信号CSに対して自動的に反映させることができる。   It is also possible to automatically read the staining type from the label or bar code information affixed on the slide or from the RF chip, and to set the reference color difference signal CS automatically. As a result, it is possible to automatically reflect the effects of the aging deterioration and fading of the preparation on the reference color difference signal CS.

さらに、上述した実施の形態においては、サンプルSPが染色されているようにした場合について述べた。本発明はこれに限らず、均一な色の特徴を有するようなすべてのサンプルについて、本発明を適用することができる。もちろん、サンプルとして生体サンプル以外のサンプルを撮像することも可能である。   Furthermore, in the above-described embodiment, the case where the sample SP is stained is described. The present invention is not limited to this, and the present invention can be applied to all samples having uniform color characteristics. Of course, it is also possible to image samples other than biological samples as samples.

また、上述した実施の形態においては、オートフォーカス処理の後、検出合焦位置において、サンプルSPを撮像するようにした場合について述べた。本発明はこれに限らず、少なくともオートフォーカス処理を実行すれば良く、必ずしも撮像する必要はない。   In the above-described embodiment, the case where the sample SP is imaged at the detection focus position after the autofocus process has been described. The present invention is not limited to this, and it is sufficient to execute at least an autofocus process, and it is not always necessary to perform imaging.

さらに、上述の実施の形態では、生体サンプルSPLにおける所望の部位を撮像範囲に移動させる場合、ステージ11が追従された。しかしながら追従させるべき対象は、対物レンズ15とするようにしてもよい。このようにしても上述の実施の形態と同様の効果を得ることができる。   Furthermore, in the above-described embodiment, the stage 11 is followed when a desired part of the biological sample SPL is moved to the imaging range. However, the object to be followed may be the objective lens 15. Even if it does in this way, the effect similar to the above-mentioned embodiment can be acquired.

さらに、上述した実施の形態においては、画素ごとに2次微分値L(x,y)を補正するようにした場合について述べた。本発明はこれに限らず、例えばAF検出枠AAごとにAF評価値を補正しても良い。例えば、AF検出枠AAにおける基準色差信号CSと色差信号Cとの差分の最大値に応じてAF評価値を補正しても良い。   Furthermore, in the above-described embodiment, the case where the secondary differential value L (x, y) is corrected for each pixel has been described. The present invention is not limited to this. For example, the AF evaluation value may be corrected for each AF detection frame AA. For example, the AF evaluation value may be corrected according to the maximum value of the difference between the reference color difference signal CS and the color difference signal C in the AF detection frame AA.

さらに、上述した実施の形態においては、画素値が輝度信号Y及び色差信号Cで表されるようにした場合について述べた。本発明はこれに限らず、信号SR、SG及びSBからなるRGB信号についても本発明を適用することが可能である。   Furthermore, in the above-described embodiment, the case where the pixel value is expressed by the luminance signal Y and the color difference signal C has been described. The present invention is not limited to this, and the present invention can also be applied to RGB signals including signals SR, SG, and SB.

この場合、AF検波枠AA内で(5)式に従ってRGB各信号の相関係数Cを算出する。この相関係数Cは、AF検波枠AA内でのRGB信号間の相関を表している。次式において、A及びBはRGB各信号(SR、SG及びSB)の値であり、AS及びBSは、基準色の値であり、例えばAF検波枠AA内でのRGB信号の平均値である。すなわち、相関係数Cは、各信号(SR、SG及びSB)をA及びBにそれぞれ代入した3つの組み合わせそれぞれについて算出される。   In this case, the correlation coefficient C of each RGB signal is calculated according to the equation (5) within the AF detection frame AA. This correlation coefficient C represents the correlation between the RGB signals within the AF detection frame AA. In the following equation, A and B are values of RGB signals (SR, SG, and SB), and AS and BS are reference color values, for example, average values of RGB signals within the AF detection frame AA. . That is, the correlation coefficient C is calculated for each of the three combinations obtained by substituting each signal (SR, SG, and SB) for A and B, respectively.

Figure 2011090221
Figure 2011090221

相関係数Cは、AF検波枠AA内でのRGB各信号間の変化(すなわち平均値からの分散度合い)がどの程度の相関関係にあるかを示している。染色されたサンプルSPは、特有の色相における濃淡の変化を伴う情報になるため、RGB各信号間の変化は相関が弱くなり、相関係数Cが小さくなる。   The correlation coefficient C indicates how much the change between the RGB signals within the AF detection frame AA (that is, the degree of dispersion from the average value) is correlated. Since the stained sample SP becomes information accompanied by a change in shading in a specific hue, the change between RGB signals has a weak correlation, and the correlation coefficient C becomes small.

一般に、染色されていない異物類ODによる画像信号間は、濃淡(白黒)の変化を伴うため、RGB各信号が強い相関となり、相関値Cが大きくなる。   In general, the image signals due to the unstained foreign matter OD are accompanied by a change in shading (black and white), so that the RGB signals have a strong correlation and the correlation value C increases.

例えば顕微鏡1は、各RGB信号間の相関係数Cが高くなる場合において、AF評価値が小さくなるように補正をかけることで、AF評価値における異物類ODによる影響を軽減できる。顕微鏡1は、例えば2つ又は3つの相関値Cの平均値が閾値以上であればAF評価値を補正する。   For example, the microscope 1 can reduce the influence of the foreign substance OD on the AF evaluation value by correcting the AF evaluation value to be small when the correlation coefficient C between the RGB signals is high. The microscope 1 corrects the AF evaluation value if, for example, the average value of two or three correlation values C is equal to or greater than a threshold value.

さらに、上述した実施の形態においては、基準色からの乖離に応じてAF評価値を補正するようにした場合について述べた。本発明はこれに限らず、例えば補正された輝度信号Ycに基づいてAF評価値を算出しても良い。   Furthermore, in the above-described embodiment, the case where the AF evaluation value is corrected according to the deviation from the reference color has been described. The present invention is not limited to this. For example, the AF evaluation value may be calculated based on the corrected luminance signal Yc.

この場合、補正部は、基準色差信号CSを(6)式に従って重み付けし、補正輝度信号Ycを算出する。(6)式において、基準色差信号CSと色差信号Cの差分を1から引いた値を輝度信号Yに乗算するため、基準色差信号CSと異なる色差信号Cほど、補正輝度信号Ycが小さくなる。すなわち、染色されている領域については、輝度信号Yが殆ど補正されないまま補正輝度信号Ycとして算出される。一方、染色されていない異物類ODについては、輝度信号Yが大きく補正され、補正輝度信号Ycの値が小さくなる。   In this case, the correction unit calculates the corrected luminance signal Yc by weighting the reference color difference signal CS according to the equation (6). In equation (6), the luminance signal Y is multiplied by a value obtained by subtracting the difference between the reference color difference signal CS and the color difference signal C from 1. Therefore, the corrected luminance signal Yc is smaller as the color difference signal C is different from the reference color difference signal CS. That is, for the stained region, the luminance signal Y is calculated as the corrected luminance signal Yc with almost no correction. On the other hand, for the unstained foreign matter OD, the luminance signal Y is greatly corrected, and the value of the corrected luminance signal Yc is decreased.

Figure 2011090221
Figure 2011090221

補正部は、補正輝度信号YcをAF評価値算出部46に供給する。AF評価値算出部46は、(7)式に従って、AF検出枠AAについてのAF評価値を算出し、合焦位置決定部47に供給する。なお、(7)式は、(1)式の輝度信号Yを補正輝度信号Ycに置き換えたものである。   The correction unit supplies the corrected luminance signal Yc to the AF evaluation value calculation unit 46. The AF evaluation value calculation unit 46 calculates an AF evaluation value for the AF detection frame AA according to the equation (7), and supplies it to the in-focus position determination unit 47. Equation (7) is obtained by replacing the luminance signal Y in equation (1) with the corrected luminance signal Yc.

Figure 2011090221
Figure 2011090221

合焦位置決定部47は、AF評価値の最も高い画像の撮像された焦点位置を検出合焦位置に決定する。   The focus position determination unit 47 determines the focus position where the image with the highest AF evaluation value is captured as the detected focus position.

ここで、補正輝度信号Ycは、異物類ODの値が小さくなるように算出されている。従って、AF評価値算出部46は、異物類ODに関する隣接画素間の差分をも小さくすることができるため、異物類ODに関するAF評価値を全体として小さくすることができる。このため、合焦位置決定部47は、異物類ODに合焦したときの焦点位置ではなく、サンプルSPに合焦したときの焦点位置を検出合焦位置に高い精度で決定することができる。   Here, the corrected luminance signal Yc is calculated so that the value of the foreign matter OD becomes small. Therefore, since the AF evaluation value calculation unit 46 can reduce the difference between adjacent pixels related to the foreign matter OD, the AF evaluation value related to the foreign matter OD can be reduced as a whole. For this reason, the focus position determination unit 47 can determine the focus position when the sample SP is focused, not the focus position when the foreign object OD is focused, as the detected focus position with high accuracy.

さらに、上述した実施の形態においては、(4)式に従ってAF評価値を算出するようにした場合について述べた。本発明はこれに限らず、AF評価値の算出方法に制限はない。例えば、隣接する上下左右の画素に加えて、斜め上下左右の画素についても差分をとるようにしても良い。この場合であっても、上述した実施の形態と同様の効果を得ることができる。   Further, in the above-described embodiment, the case where the AF evaluation value is calculated according to the equation (4) has been described. The present invention is not limited to this, and the AF evaluation value calculation method is not limited. For example, in addition to the adjacent upper, lower, left, and right pixels, a difference may be calculated for diagonally upper, lower, left, and right pixels. Even in this case, the same effects as those of the above-described embodiment can be obtained.

さらに、上述した実施の形態においては、複数の撮像領域CAごとにオートフォーカス処理が実行されるようにした場合について述べた。本発明はこれに限らず、プレパラートPRTを1回で撮像する場合についても、本発明を適用することができる。また、撮像領域CAの全域をAF検出枠AAとしても良い。   Furthermore, in the above-described embodiment, the case where the autofocus process is executed for each of the plurality of imaging areas CA has been described. The present invention is not limited to this, and the present invention can also be applied to a case where the preparation PRT is imaged once. Further, the entire imaging area CA may be used as the AF detection frame AA.

また上述の実施の形態では、1つの対物レンズ15が用いられた。しかしながら対物レンズは複数であってもよい。また、複数の対物レンズを、レボルバー等を適用して倍率が可変できるようにしてもよい。さらに、対物レンズに加えて、接眼レンズを設けることもできる。   In the above-described embodiment, one objective lens 15 is used. However, there may be a plurality of objective lenses. Further, the magnification of the plurality of objective lenses may be made variable by applying a revolver or the like. Furthermore, an eyepiece lens can be provided in addition to the objective lens.

さらに、上述した実施の形態においては、撮像プログラム等をROM又はハードディスクドライブなどに予め格納しているが、本発明はこれに限らず、メモリースティック(ソニー株式会社の登録商標)などの外部記憶媒体からフラッシュメモリなどにインストールするようにしても良い。また、撮像プログラムなどをUSB(Universal Serial Bus)やEthernet(登録商標)(Institute of Electrical and Electronics Engineers)802.11a/b/gなどの無線LAN(Local Area Network)を介して外部から取得し、さらに、は地上ディジタルテレビジョン放送やBSディジタルテレビジョン放送により配信されるようにしても良い。   Furthermore, in the above-described embodiment, the imaging program or the like is stored in advance in a ROM or a hard disk drive. However, the present invention is not limited to this, and an external storage medium such as a memory stick (registered trademark of Sony Corporation) can be used. You may make it install in flash memory etc. Also, an imaging program or the like is acquired from the outside via a wireless LAN (Local Area Network) such as USB (Universal Serial Bus) or Ethernet (registered trademark) (Institute of Electrical and Electronics Engineers) 802.11a / b / g, Furthermore, it may be distributed by digital terrestrial television broadcasting or BS digital television broadcasting.

また上述の実施の形態では、撮像処理により得られるサンプルデータは、例えば、ローカルエリアネットワークやインターネット、ディジタル衛星放送等の有線又は無線の通信媒体としてもよい。   In the above-described embodiment, the sample data obtained by the imaging process may be a wired or wireless communication medium such as a local area network, the Internet, or digital satellite broadcasting.

さらに、上述した実施の形態においては、対物レンズとしての対物レンズ15と、位置変動部としてのステージ11と、撮像素子としての撮像素子16と、算出部としての補正部45及びAF評価値算出部46と、合焦位置決定部としての合焦位置決定部47とによって顕微鏡としての顕微鏡1を構成するようにした場合について述べた。本発明はこれに限らず、その他種々の構成でなる対物レンズと、位置変動部と、撮像素子と、算出部と、合焦位置決定部とによって本発明の顕微鏡を構成するようにしても良い。   Further, in the above-described embodiment, the objective lens 15 as the objective lens, the stage 11 as the position changing unit, the imaging device 16 as the imaging device, the correction unit 45 and the AF evaluation value calculation unit as the calculation unit. The case where the microscope 1 as a microscope is configured by 46 and the focus position determination unit 47 as the focus position determination unit has been described. The present invention is not limited to this, and the microscope of the present invention may be configured by an objective lens having various other configurations, a position variation unit, an image sensor, a calculation unit, and a focus position determination unit. .

本発明は、生物実験、医薬の創製又は患者の経過観察などのバイオ産業上において利用可能である。   The present invention can be used in the bio-industry such as biological experiments, creation of medicines or patient follow-up.

1……顕微鏡、11……ステージ、13……光源、15……対物レンズ、16……撮像素子、30……統括制御部、41……AF処理部、44……基準色設定部、45……輝度補正部、46……AF値算出部、47……合焦位置決定部、PRT……プレパラート、SG……スライドガラス、SP……サンプル。   DESCRIPTION OF SYMBOLS 1 ... Microscope, 11 ... Stage, 13 ... Light source, 15 ... Objective lens, 16 ... Image sensor, 30 ... General control part, 41 ... AF processing part, 44 ... Standard color setting part, 45 ... Luminance correction unit, 46... AF value calculation unit, 47... Focus position determination unit, PRT... Preparation, SG.

Claims (14)

サンプルを拡大する対物レンズと、
上記サンプルを保持する保持部と、
上記保持部と上記対物レンズとの距離を変動させる距離変動部と、
上記対物レンズにより拡大されるサンプルを撮像する撮像素子と、
上記撮像される画像において、部分的に選択された選択領域における画素値から、コントラストを表すAF評価値を算出する際、上記サンプルが呈すべき基準色から乖離する色を有する領域のコントラストを低く評価する算出部と、
上記AF評価値に基づいて、上記対物レンズが上記サンプルに対して合焦する合焦位置を決定する合焦位置決定部と
を有する顕微鏡。
An objective lens to enlarge the sample;
A holding unit for holding the sample;
A distance varying unit that varies the distance between the holding unit and the objective lens;
An image sensor for imaging a sample enlarged by the objective lens;
In the captured image, when calculating an AF evaluation value representing contrast from pixel values in a partially selected selection area, the contrast of an area having a color deviating from the reference color to be exhibited by the sample is evaluated low A calculating unit to
And a focusing position determination unit that determines a focusing position at which the objective lens is focused on the sample based on the AF evaluation value.
上記算出部は、
輝度信号から上記AF評価値を算出する
請求項1に記載の顕微鏡。
The calculation unit is
The microscope according to claim 1, wherein the AF evaluation value is calculated from a luminance signal.
上記算出部は、
隣接する画素間における上記輝度信号の2次微分値を上記AF評価値として算出する
請求項2に記載の顕微鏡。
The calculation unit is
The microscope according to claim 2, wherein a second-order differential value of the luminance signal between adjacent pixels is calculated as the AF evaluation value.
上記算出部は、
上記基準色から乖離する色を有する画素の上記2次微分値をを小さくすることにより、上記基準色から乖離する色を有する領域のコントラストを低く評価する
請求項3に記載の顕微鏡。
The calculation unit is
The microscope according to claim 3, wherein the contrast of a region having a color deviating from the reference color is evaluated low by reducing the secondary differential value of a pixel having a color deviating from the reference color.
上記算出部は、
上記基準色からの色の乖離度合いに応じて、対応する画素の上記2次微分値を小さくする
請求項4に記載の顕微鏡。
The calculation unit is
The microscope according to claim 4, wherein the second-order differential value of the corresponding pixel is reduced in accordance with the degree of color deviation from the reference color.
上記算出部は、
上記AF評価値の算出単位ごとに、上記コントラストを補正する
請求項5に記載の顕微鏡。
The calculation unit is
The microscope according to claim 5, wherein the contrast is corrected for each calculation unit of the AF evaluation value.
ユーザによる操作入力に応じて、上記基準色を設定する基準色設定部
をさらに有する請求項6に記載の顕微鏡。
The microscope according to claim 6, further comprising a reference color setting unit that sets the reference color in response to an operation input by a user.
上記サンプルにおける少なくとも一部の領域の色差信号の平均値を上記基準色として設定する基準色設定部
をさらに有する請求項7に記載の顕微鏡。
The microscope according to claim 7, further comprising: a reference color setting unit that sets an average value of color difference signals of at least a part of the sample as the reference color.
上記合焦位置において、上記サンプルを撮像する撮像部と
をさらに有する請求項6に記載の顕微鏡。
The microscope according to claim 6, further comprising: an imaging unit that images the sample at the in-focus position.
上記算出部は、
RGB信号から上記AF評価値を算出する
請求項1に記載の顕微鏡。
The calculation unit is
The microscope according to claim 1, wherein the AF evaluation value is calculated from RGB signals.
上記算出部は、
上記RGB信号の上記基準色からの差分の分散度合いの相関値に応じて上記コントラストを低く評価するよう補正することにより、上記サンプルが呈すべき基準色から乖離する色を有する領域のコントラストを低く評価する
請求項10に記載の顕微鏡。
The calculation unit is
The contrast of a region having a color deviating from the reference color to be exhibited by the sample is evaluated low by correcting the contrast to be evaluated low according to the correlation value of the variance degree of the difference from the reference color of the RGB signal. The microscope according to claim 10.
上記算出部は、
上記基準色から乖離する色を有する画素の輝度信号の値を小さくすることにより、上記基準色から乖離する色を有する領域のコントラストを低く評価する
請求項2に記載の顕微鏡。
The calculation unit is
The microscope according to claim 2, wherein the contrast of a region having a color deviating from the reference color is evaluated by reducing a value of a luminance signal of a pixel having a color deviating from the reference color.
サンプルを保持する保持部と対物レンズとの距離を変動させながら上記サンプルを撮像する撮像ステップと、
撮像された画像において、部分的に選択された選択領域における輝度信号から、コントラストを表すAF評価値を算出する際、上記サンプルが呈すべき基準色から乖離する色を有する領域のコントラストを低く評価する算出ステップと、
上記AF評価値に基づいて、上記対物レンズがサンプルに対して合焦する合焦位置を決定する合焦位置決定ステップと
を有する合焦位置検出方法。
An imaging step of imaging the sample while varying the distance between the holding unit that holds the sample and the objective lens;
In the captured image, when calculating the AF evaluation value representing the contrast from the luminance signal in the partially selected selection area, the contrast of the area having a color deviating from the reference color to be exhibited by the sample is evaluated low. A calculation step;
And a focus position determining step of determining a focus position at which the objective lens is focused on the sample based on the AF evaluation value.
顕微鏡を制御するコンピュータに対して、
サンプルを保持する保持部と対物レンズとの距離を変動させながら上記サンプルを撮像する撮像ステップと、
撮像された画像において、部分的に選択された選択領域における輝度信号から、コントラストを表すAF評価値を算出する際、上記サンプルが呈すべき基準色から乖離する色を有する領域のコントラストを低く評価する算出ステップと、
上記AF評価値に基づいて、上記対物レンズがサンプルに対して合焦する合焦位置を決定する合焦位置決定ステップと
を実行させる合焦位置検出プログラム。
For the computer that controls the microscope,
An imaging step of imaging the sample while varying the distance between the holding unit that holds the sample and the objective lens;
In the captured image, when calculating the AF evaluation value representing the contrast from the luminance signal in the partially selected selection area, the contrast of the area having a color deviating from the reference color to be exhibited by the sample is evaluated low. A calculation step;
An in-focus position detection program for executing an in-focus position determining step for determining an in-focus position for focusing on the sample based on the AF evaluation value.
JP2009244734A 2009-10-23 2009-10-23 Microscope, focusing position detecting method, and focusing position detecting program Pending JP2011090221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009244734A JP2011090221A (en) 2009-10-23 2009-10-23 Microscope, focusing position detecting method, and focusing position detecting program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009244734A JP2011090221A (en) 2009-10-23 2009-10-23 Microscope, focusing position detecting method, and focusing position detecting program

Publications (1)

Publication Number Publication Date
JP2011090221A true JP2011090221A (en) 2011-05-06

Family

ID=44108514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009244734A Pending JP2011090221A (en) 2009-10-23 2009-10-23 Microscope, focusing position detecting method, and focusing position detecting program

Country Status (1)

Country Link
JP (1) JP2011090221A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013183233A1 (en) * 2012-06-07 2013-12-12 ソニー株式会社 Image processing apparatus, image processing program, and image processing method
JP2015006259A (en) * 2013-06-25 2015-01-15 朝日レントゲン工業株式会社 X-ray machine and x-ray image selection method
JP2017056364A (en) * 2017-01-06 2017-03-23 朝日レントゲン工業株式会社 X-ray imaging apparatus and X-ray image selection method
CN111183385A (en) * 2017-09-29 2020-05-19 徕卡生物***成像股份有限公司 Real-time autofocus scanning
WO2021100328A1 (en) * 2019-11-22 2021-05-27 ソニーグループ株式会社 Image processing method, image processing device, and image processing system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013183233A1 (en) * 2012-06-07 2013-12-12 ソニー株式会社 Image processing apparatus, image processing program, and image processing method
JPWO2013183233A1 (en) * 2012-06-07 2016-01-28 ソニー株式会社 Image processing apparatus, image processing program, and image processing method
EP2860568A4 (en) * 2012-06-07 2016-04-13 Sony Corp Image processing apparatus, image processing program, and image processing method
CN104603668B (en) * 2012-06-07 2017-03-15 索尼公司 Image processing apparatus, image processing program and image processing method
US9930241B2 (en) 2012-06-07 2018-03-27 Sony Corporation Image processing apparatus, image processing program, and image processing method
JP2015006259A (en) * 2013-06-25 2015-01-15 朝日レントゲン工業株式会社 X-ray machine and x-ray image selection method
JP2017056364A (en) * 2017-01-06 2017-03-23 朝日レントゲン工業株式会社 X-ray imaging apparatus and X-ray image selection method
CN111183385A (en) * 2017-09-29 2020-05-19 徕卡生物***成像股份有限公司 Real-time autofocus scanning
CN111183385B (en) * 2017-09-29 2022-04-08 徕卡生物***成像股份有限公司 Real-time autofocus scanning
US11422351B2 (en) 2017-09-29 2022-08-23 Leica Biosystems Imaging, Inc. Real-time autofocus scanning
WO2021100328A1 (en) * 2019-11-22 2021-05-27 ソニーグループ株式会社 Image processing method, image processing device, and image processing system

Similar Documents

Publication Publication Date Title
US7417213B2 (en) Apparatus and method for rapid microscopic image focusing having a movable objective
US20170031146A1 (en) Imaging Assemblies With Rapid Sample Auto-Focusing
US11156823B2 (en) Digital microscope apparatus, method of searching for in-focus position thereof, and program
US20190268573A1 (en) Digital microscope apparatus for reimaging blurry portion based on edge detection
KR20120099011A (en) Focusing device, focusing method, focusing program and microscope
JP6146265B2 (en) Microscope system and autofocus method
US20120002032A1 (en) Information processing apparatus, stage-undulation correcting method, program therefor
US20190072751A1 (en) Systems and methods for detection of blank fields in digital microscopes
JP6448996B2 (en) Microscope system
JP2012237693A (en) Image processing device, image processing method and image processing program
JP2008020498A (en) Automatic focus detection device
JP2011090221A (en) Microscope, focusing position detecting method, and focusing position detecting program
US9482855B2 (en) Microscope system
JP2016125913A (en) Image acquisition device and control method of image acquisition device
JP4847101B2 (en) Microscope system
WO2015037387A1 (en) Imaging device, microscope system, imaging method, and imaging program
CN114241066A (en) Microscope system and method for generating HDR images
US20130076886A1 (en) Automatic Focus and Sample Detection
US20220082808A1 (en) Method of adjusting optical apparatus, adjustment support method, optical system, and optical apparatus
JP2011197283A (en) Focusing device, focusing method, focusing program, and microscope
US9575305B2 (en) Digital microscope apparatus, information processing method, and information processing program
JP2011209573A (en) Focusing device, focusing method, focusing program and microscope
US11256078B2 (en) Continuous scanning for localization microscopy
JP2014149381A (en) Image acquisition apparatus and image acquisition method
JP5197246B2 (en) Microscope system