JP2008298706A - Shape determination method - Google Patents

Shape determination method Download PDF

Info

Publication number
JP2008298706A
JP2008298706A JP2007147664A JP2007147664A JP2008298706A JP 2008298706 A JP2008298706 A JP 2008298706A JP 2007147664 A JP2007147664 A JP 2007147664A JP 2007147664 A JP2007147664 A JP 2007147664A JP 2008298706 A JP2008298706 A JP 2008298706A
Authority
JP
Japan
Prior art keywords
thickness
calculating
inspection object
length
shape
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
JP2007147664A
Other languages
Japanese (ja)
Inventor
Fumio Fujimura
文男 藤村
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.)
Panasonic Corp
Original Assignee
Panasonic 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 Panasonic Corp filed Critical Panasonic Corp
Priority to JP2007147664A priority Critical patent/JP2008298706A/en
Publication of JP2008298706A publication Critical patent/JP2008298706A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a shape determination method capable of determining bacteria accurately, even when two bacteria are in contact with each other, and when fluorescence-labeled bacteria are bent. <P>SOLUTION: A shape of an inspected object is determined from the thickness average value, thickness variation degree, and length of the inspected object, by extracting a region of the inspected object for determining a shape from an image photographed (S102), computing a contour of the inspected object (S103), calculating the center line of the inspected object (S104), detecting a bent part of the inspected object from a shape of the center line (S107), calculating the thickness of the inspected object in a region except for the bent part from the contour calculated in the contour calculation process (S109), calculating the thickness average value (S111), calculating the thickness variation degree (S114), and calculating the length of the inspected object from the length of the center line (S116). <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は形状判定方法に係り、特に検査対象物の長さ、太さ等の形状から細菌の判定を行う方法に関する。   The present invention relates to a shape determination method, and more particularly to a method for determining bacteria from shapes such as length and thickness of a test object.

従来、抗酸菌の検査方法として蛍光法が一般的に用いられている。蛍光法は喀痰等の検体の一部を採取して直接スライドガラスに塗抹し、乾燥、熱固定して蛍光染色を施し、顕微鏡下で抗酸菌の存在を観察者が探す方法である。近年では喀痰中に抗酸菌がばらつきに分布していない場合でも検査の精度を保つようにするため、直接スライドガラスに塗抹するのではなく、喀痰を遠心分離機で均等化した遠心集菌材料をスライドガラスに塗抹して観察する集菌法が主に用いられている。   Conventionally, a fluorescence method is generally used as a method for testing acid-fast bacteria. The fluorescence method is a method in which a part of a specimen such as sputum is collected, smeared directly on a slide glass, dried, heat-fixed and fluorescently stained, and an observer searches for the presence of acid-fast bacteria under a microscope. In recent years, in order to maintain the accuracy of the test even if the acid-fast bacteria are not distributed in the cocoon, instead of smearing directly on the slide glass, the centrifuge collection material that equalizes the cocoon with a centrifuge A method of collecting bacteria is mainly used, which is smeared on a slide glass and observed.

蛍光染色としてはオーラミン染色が代表的であり、オーラミンで染色した後に塩酸アルコールで脱色し、さらにメチレン青液で後染色することで染色を行う。染色後に紫外線を照射することにより、抗酸菌が蛍光発光し、オレンジ色に光った状態を観察者が顕微鏡を用いて観察して検査を行う。蛍光法では抗酸菌以外にごみ等もオレンジ色に光っている場合があるため、形状を見て観察者が抗酸菌かどうかを判断する必要がある。   Fluorine staining is typically auramine staining, and staining is performed by staining with auramine, decolorizing with hydrochloric acid alcohol, and then post-staining with methylene blue liquor. By irradiating with ultraviolet rays after dyeing, the acid-fast bacterium emits fluorescence, and an observer observes the state of shining orange using a microscope for inspection. In the fluorescent method, in addition to acid-fast bacteria, dust and the like may be shining orange, so it is necessary for the observer to determine whether or not it is acid-fast bacteria by looking at the shape.

また、顕微鏡で観察者が観察する代わりに、カメラなど撮影手段を用いて自動で各視野を撮影し、撮影した画像から抗酸菌を自動で検出する方法が提案されている(例えば、特許文献1参照)。この方法では検査対象物の面積、縦横比等により抗酸菌かどうかの判断を行う。   Also, a method has been proposed in which each field of view is automatically photographed using a photographing means such as a camera instead of being observed by an observer, and acid-fast bacteria are automatically detected from the photographed image (for example, Patent Documents). 1). In this method, whether or not it is an acid-fast bacterium is determined based on the area and aspect ratio of the test object.

しかし、検査の主流となりつつある集菌法で遠心分離機による処理を行った場合には、細菌が曲がることがあるため、曲がりを考慮して形状を判定する必要がある。曲がりがあるような長尺状の対象物の太さを計測する方法として、次のような方法が知られている(例えば、特許文献2参照)。この方法では長尺状の対象物の画像を撮影し、対象の輪郭と外接長方形の長手方向を算出し、長手方向の片側部分で外接長方形を等分する直線と輪郭が交わる点において、距離が最小となる輪郭上の点を算出し、算出した距離の平均を太さとして算出する。
特開2004−333151号公報 特開平11−194014号公報
However, when processing with a centrifuge is performed by the method of collecting bacteria, which is becoming the mainstream of inspection, bacteria may be bent, and thus it is necessary to determine the shape in consideration of bending. The following method is known as a method for measuring the thickness of a long object with a bend (see, for example, Patent Document 2). In this method, an image of a long target object is taken, the longitudinal direction of the contour of the target and the circumscribed rectangle is calculated, and the distance between the straight line and the contour that equally divides the circumscribed rectangle at one side in the longitudinal direction is The minimum point on the contour is calculated, and the average of the calculated distances is calculated as the thickness.
JP 2004-333151 A JP-A-11-194014

しかしながら、前記従来の方法では、細菌同士が接触している場合や細菌の曲がりが極端に大きい場合にはそれらを認識することが出来ないため、細菌として判定することが出来ないという課題を有していた。   However, the conventional method has a problem in that it cannot be determined as bacteria because bacteria cannot be recognized when bacteria are in contact with each other or when the bending of bacteria is extremely large. It was.

本発明は、前記従来の課題を解決するもので、細菌に曲がりが生じた場合や細菌同士が接触している場合でも細菌として判定することが出来るように、検査対象物の形状を判定する形状判定方法を提供することを目的とする。   The present invention solves the above-mentioned conventional problems, and is a shape for determining the shape of an inspection object so that it can be determined as bacteria even when the bacteria are bent or when the bacteria are in contact with each other. An object is to provide a determination method.

前記従来の課題を解決するために、本発明の形状判定方法は、撮像した画像から形状判定を行う検査対象物の領域を抽出する領域抽出工程と、前記検査対象物の輪郭を算出する輪郭算出工程と、前記検査対象物の中心線を算出する中心線算出工程と、前記中心線の形状から前記検査対象物の曲がり部分を検出する曲がり部分検出工程と、前記曲がり部分を除く領域の前記検査対象物の太さを、前記輪郭算出工程で算出した輪郭から算出する太さ算出工程と、前記太さの平均値を算出する太さ平均値算出工程と、前記太さのばらつき度合いを算出する太さばらつき度合い算出工程と、前記中心線の長さから前記検査対象物の長さを算出する長さ算出工程と、前記太さ平均値と、前記太さばらつき度合いと、前記検査対象物の長さから前記検査対象物の形状を判定する形状判定工程を含むことを特徴とするものである。   In order to solve the above-described conventional problems, the shape determination method of the present invention includes a region extraction step of extracting a region of an inspection target for which shape determination is performed from a captured image, and contour calculation for calculating the contour of the inspection target. A center line calculating step of calculating a center line of the inspection object, a bent portion detecting step of detecting a bent portion of the inspection object from the shape of the center line, and the inspection of the region excluding the bent portion A thickness calculating step for calculating the thickness of the object from the contour calculated in the contour calculating step, a thickness average value calculating step for calculating an average value of the thicknesses, and a degree of variation in the thickness. A thickness variation degree calculating step, a length calculating step of calculating a length of the inspection object from the length of the center line, the thickness average value, the thickness variation degree, and the inspection object The length of the test pair It is characterized in that includes determining the shape determination step the shape of the object.

さらに形状判定方法において、前記形状判定工程において、前記太さ平均値と、前記太さばらつき度合いが所定値であり、かつ前記検査対象物の長さが所定値の場合に、前記検査対象物を細菌であると判定することを特徴とするものである。   Further, in the shape determination method, in the shape determination step, when the thickness average value and the thickness variation degree are predetermined values, and the length of the inspection target is a predetermined value, the inspection target is It is characterized by determining that it is bacteria.

さらに形状判定方法において、細菌の長さの平均値を算出する長さ平均値算出工程をさらに備え、前記形状判定工程において、前記曲がり部分検出工程で曲がり部分が検出され、前記太さ平均値と、前記太さばらつき度合いが所定値であり、検査対象物の長さが前記長さ平均値算出工程で算出した長さ平均値の2倍程度である場合には2つの細菌が接触しているものとして形状を判定することを特徴とするものである。   Furthermore, the shape determination method further includes a length average value calculating step of calculating an average value of the length of bacteria, and in the shape determination step, a bent portion is detected in the bent portion detection step, and the thickness average value When the thickness variation degree is a predetermined value and the length of the test object is about twice the length average value calculated in the length average value calculation step, two bacteria are in contact with each other. It is characterized by determining the shape as a thing.

さらに形状判定方法において、撮像した画像から形状判定を行う検査対象物の領域を抽出する検査領域抽出工程と、前記検査対象物の中心線を算出する中心線算出工程と、前記検査対象物の輪郭を算出する輪郭算出工程と、前記中心線の形状から対象物の接触を検出する接触検出工程と、前記接触検出工程にて接触を検出した場合に、前記輪郭の形状から検査対象物を2つの領域に分離する分離工程と、検査対象物の太さを、前記輪郭算出工程で算出した輪郭から算出する太さ算出工程と、前記中心線から前記検査対象物の長さを算出する長さ算出工程と、前記太さの平均値を算出する太さ平均値算出工程と、前記太さのばらつき度合いを算出する太さのばらつき度合い算出工程と、前記太さの平均値と、前記太さのばらつき度合いと、前記検査対象物の長さから検査対象物の形状を判定する形状判定工程を含む形状判定方法。   Further, in the shape determination method, an inspection region extraction step of extracting a region of the inspection target for which shape determination is performed from the captured image, a center line calculation step of calculating a center line of the inspection target, and an outline of the inspection target The contour calculation step for calculating the contact, the contact detection step for detecting the contact of the object from the shape of the center line, and when the contact is detected in the contact detection step, Separation step for separating into regions, thickness calculation step for calculating the thickness of the inspection object from the contour calculated in the contour calculation step, and length calculation for calculating the length of the inspection object from the center line A thickness average value calculating step for calculating an average value of the thickness, a thickness variation degree calculating step for calculating the thickness variation degree, the average value of the thickness, and the thickness Variation degree and the above Shape determination method comprising determining the shape determination step the shape of the test object from the length of 査 object.

さらに形状判定方法において、前記形状判定工程において、前記太さ平均値と、前記太さばらつき度合いが所定値であり、かつ前記検査対象物の長さが所定値の場合に、前記検査対象物を細菌であると判定することを特徴とするものである。   Further, in the shape determination method, in the shape determination step, when the thickness average value and the thickness variation degree are predetermined values, and the length of the inspection target is a predetermined value, the inspection target is It is characterized by determining that it is bacteria.

さらに形状判定方法において、前記太さばらつき度合い算出工程において、太さのばらつき度合いを太さの標準偏差により算出することを特徴とするものである。   Furthermore, in the shape determination method, the thickness variation degree is calculated based on a standard deviation of the thickness in the thickness variation degree calculation step.

さらに形状判定方法において、前記太さばらつき度合い算出工程において、太さのばらつき度合いを太さの最大値と最小値の差により算出することを特徴とするものである。   Furthermore, in the shape determination method, the thickness variation degree calculation step calculates the thickness variation degree by a difference between a maximum value and a minimum value of the thickness.

本発明の形状判定方法によれば、検査対象物が重なっている場合や極端に曲がっている場合でも検査対象物の形状を判定し細菌を検出することが出来る。   According to the shape determination method of the present invention, bacteria can be detected by determining the shape of the inspection object even when the inspection objects overlap or are extremely bent.

以下に、本発明の形状判定方法の実施の形態を図面とともに詳細に説明する。   Embodiments of the shape determination method of the present invention will be described below in detail with reference to the drawings.

(実施の形態1)
図1は、本発明の実施の形態1における形状判定方法の前提となる形状検査装置のブロック図である。図1において、プレート105は検査対象物を塗抹したものである。光学手段101からプレート105に励起光を照射すると共に、プレート105上の検査対象物が励起されて発した蛍光を光学手段101で捕らえ、撮像手段102へ導く。撮像手段102は蛍光観察している領域を撮影して画像を生成し、画像を画像処理手段103へ出力する。画像処理手段103は撮影した画像から細菌を検出し、その検出結果を表示手段104へ出力する。表示手段104は検出結果を表示する。
(Embodiment 1)
FIG. 1 is a block diagram of a shape inspection apparatus as a premise of a shape determination method according to Embodiment 1 of the present invention. In FIG. 1, a plate 105 is obtained by smearing an inspection object. The optical means 101 irradiates the plate 105 with excitation light, and the optical means 101 captures the fluorescence emitted when the inspection object on the plate 105 is excited and guides it to the imaging means 102. The imaging unit 102 shoots the area under fluorescence observation, generates an image, and outputs the image to the image processing unit 103. The image processing means 103 detects bacteria from the photographed image and outputs the detection result to the display means 104. The display means 104 displays the detection result.

まず、プレート105について詳細に説明する。プレート105は、スライドガラスを用いており、乾燥、熱固定して蛍光染色を施した検体が塗布されている。検体としては例えば人の喀痰や便などである。なお、プレート105として、シャーレなどの任意のプレートを採用してもよい。   First, the plate 105 will be described in detail. The plate 105 uses a slide glass, and is coated with a sample that has been dried, heat-fixed, and fluorescently stained. Examples of the specimen include human sputum and stool. Note that any plate such as a petri dish may be adopted as the plate 105.

次に光学手段101について詳細に説明する。光学手段101として蛍光顕微鏡を用いた場合の一例を図2に示す。光源201は検査対象物に励起光を照射するためのものであり、紫外線を含む光を照射するために水銀ランプなどを使用する。光源201からの光源光202は、励起フィルタ203を通る。励起フィルタ203は細菌が蛍光するのに必要な波長の光(以下、励起光204と称す)を透過し、不要な光を遮光する。次に、ダイクロイックミラー205にて励起光204を対物レンズ206に導き、対物レンズ206を経由してプレート105に照射される。ダイクロイックミラー205は光源光202に対して45度の角度で設置され、特定の波長のみ反射する。照射された励起光204で検体中の細菌が励起され蛍光207を発し、その蛍光207は対物レンズ206を経由して、吸収フィルタ208を通り、撮像手段102へ蛍光207を導く。吸収フィルタ208は蛍光207を透過し、反射した励起光204や外光などの蛍光207以外の光209を遮光する。なお、光学手段101として蛍光観察が可能なマイクロメータなど任意の光学手段101を採用してもよい。   Next, the optical means 101 will be described in detail. An example when a fluorescence microscope is used as the optical means 101 is shown in FIG. The light source 201 is for irradiating the inspection object with excitation light, and uses a mercury lamp or the like to irradiate light including ultraviolet rays. The light source light 202 from the light source 201 passes through the excitation filter 203. The excitation filter 203 transmits light having a wavelength necessary for the bacteria to fluoresce (hereinafter referred to as excitation light 204) and shields unnecessary light. Next, the excitation light 204 is guided to the objective lens 206 by the dichroic mirror 205 and irradiated onto the plate 105 via the objective lens 206. The dichroic mirror 205 is installed at an angle of 45 degrees with respect to the light source light 202 and reflects only a specific wavelength. Bacteria in the specimen are excited by the irradiated excitation light 204 and emit fluorescence 207, which passes through the absorption filter 208 via the objective lens 206 and guides the fluorescence 207 to the imaging means 102. The absorption filter 208 transmits the fluorescence 207 and blocks light 209 other than the fluorescence 207 such as reflected excitation light 204 and external light. Note that any optical means 101 such as a micrometer capable of fluorescence observation may be employed as the optical means 101.

次に撮像手段102について詳細に説明する。撮像手段102は、モノクロCCDカメラを用いており、光学手段101である蛍光顕微鏡にCマウントで接合している。光学手段101により導かれた検体からの蛍光207を、CCDカメラで撮影し、撮影した画像を画像処理手段103へ出力する。なお、撮像手段102として、カラーCCDカメラなど任意の撮像手段102を採用してもよい。   Next, the imaging unit 102 will be described in detail. The imaging unit 102 uses a monochrome CCD camera, and is joined to a fluorescence microscope as the optical unit 101 by a C mount. The fluorescence 207 from the specimen guided by the optical means 101 is photographed by a CCD camera, and the photographed image is output to the image processing means 103. Note that any imaging unit 102 such as a color CCD camera may be employed as the imaging unit 102.

次に画像処理手段103の構成について図3から図13を用いて詳細に説明する。図3は、画像処理手段103で行う形状判定方法における各ステップを示すフローチャートである。   Next, the configuration of the image processing means 103 will be described in detail with reference to FIGS. FIG. 3 is a flowchart showing each step in the shape determination method performed by the image processing means 103.

まず、ステップS101において、撮影した画像を二値化する。撮影した画像において、検査対象物は蛍光を発しているため、検査対象物の輝度値は背景部分の画素の輝度値より高くなる。そこで、注目している画素の輝度値が閾値よりも高ければ1とし、それ以外を0とすることで二値化を行う。閾値の決め方としては、例えば予め観察者が細菌と判断した領域の輝度値の平均値を算出し、さらに背景の輝度値の平均値も測定しておき、その中間値を閾値とするようにしてもよい。図5は撮影した画像を二値化した図である。斜線で示した領域が二値化により1とした領域であり、それ以外の領域は0の領域である。   First, in step S101, the captured image is binarized. In the photographed image, since the inspection object emits fluorescence, the luminance value of the inspection object is higher than the luminance value of the pixels in the background portion. Therefore, binarization is performed by setting 1 if the luminance value of the pixel of interest is higher than the threshold value and setting it to 0 otherwise. As a method of determining the threshold value, for example, an average value of luminance values of an area that is previously determined by the observer as bacteria is calculated, and an average value of luminance values of the background is also measured, and an intermediate value thereof is set as the threshold value. Also good. FIG. 5 is a diagram obtained by binarizing a photographed image. The hatched area is an area that is set to 1 by binarization, and the other areas are 0 areas.

次に、ステップS102は検査領域抽出工程であり、ステップS101の二値化工程で算出した二値化画像を用いて検査領域を抽出する。検査領域の抽出は、ニ値化した画像の全画素について1と判断された領域をラベリングすることで行う。ラベリングは注目画素の値が1の場合に周囲8近傍に1の値があればその画素も注目画素の領域と同じ領域であると識別し、同一領域に番号付けを行う作業である。検査領域内の画素がすべてラベリングされるまでこの作業を行う。図6はラベリングした結果を示しており、同一領域に601から606までの番号付けが行われている。   Next, step S102 is an inspection region extraction step, and an inspection region is extracted using the binarized image calculated in the binarization step of step S101. The inspection area is extracted by labeling areas determined to be 1 for all pixels of the binarized image. Labeling is an operation in which if the value of the pixel of interest is 1, if there is a value of 1 in the vicinity of the surrounding 8, that pixel is identified as the same region as the region of the pixel of interest, and the same region is numbered. This operation is performed until all the pixels in the inspection area are labeled. FIG. 6 shows the result of labeling, and the same area is numbered from 601 to 606.

次に、ステップS103は輪郭抽出工程であり、ステップS102で算出した検査領域について輪郭の抽出を行う。図7は、ステップS102で算出した図6中の検査領域601の輪郭抽出結果を表しており、輪郭701が抽出された輪郭である。輪郭の算出方法については様々な方法があるが、ラプラシアンフィルタ等の周知の輪郭抽出フィルタを用いることで輪郭701を抽出することができる。   Next, step S103 is a contour extraction step, in which a contour is extracted for the inspection region calculated in step S102. FIG. 7 shows the contour extraction result of the inspection region 601 in FIG. 6 calculated in step S102, and the contour 701 is extracted. Although there are various methods for calculating the contour, the contour 701 can be extracted by using a known contour extraction filter such as a Laplacian filter.

次に、ステップS104は中心線算出工程であり、ステップS102で算出した検査領域について中心線の算出を行う。中心線の算出方法については様々な方法があるが、例えば、Hilditch法のような周知の細線化処理方法を用いれば中心線を算出することができる。細線化処理では線幅1まで検査領域を細める処理が施され、図8の801に示すように検査領域601の中心を通る中心線を算出することができる。   Next, step S104 is a center line calculation step, and a center line is calculated for the examination region calculated in step S102. There are various methods for calculating the center line. For example, the center line can be calculated by using a well-known thinning method such as the Holditch method. In the thinning process, a process for narrowing the inspection area to line width 1 is performed, and a center line passing through the center of the inspection area 601 can be calculated as indicated by reference numeral 801 in FIG.

次に、ステップS105は太さ算出点選択工程であり、太さを算出する場所を中心線801上の点から太さ算出点として選択する。太さ算出点での検査対象物の太さを後工程で算出することになる。図8においては802、803、804が太さ算出点である。太さ算出点は、中心線801上の端から端までの点を順次選択することにより決定するが、後述するように太さ算出点の前後に曲がり量算出点を設けるため、802のように中心線の端から一定距離離れた点を太さ算出点として選択し、順次太さ算出点を移動させながら、中心線801の端から一定距離離れた点804までの中心線上点を選択する。   Next, step S105 is a thickness calculation point selection step, and a location for calculating the thickness is selected as a thickness calculation point from a point on the center line 801. The thickness of the inspection object at the thickness calculation point is calculated in a subsequent process. In FIG. 8, 802, 803, and 804 are thickness calculation points. The thickness calculation point is determined by sequentially selecting points from end to end on the center line 801. However, as will be described later, since a bending amount calculation point is provided before and after the thickness calculation point, as in 802 A point that is a certain distance away from the end of the center line is selected as a thickness calculation point, and points on the center line to a point 804 that is a certain distance away from the end of the center line 801 are selected while sequentially moving the thickness calculation points.

次に、ステップS106は曲がり量算出点設定工程であり、曲がり量を算出するための2つの曲がり量算出点を設定する。図8に曲がり量算出点の一例を表している。図8において、802a、802bは太さ算出点802における曲がり量を算出するための曲がり量算出点であり、中心線801上に太さ算出点802を中心として等距離でお互いに反対側に位置するように設定されている。同様にして太さ算出点803を中心にして曲がり量算出点803a、803bを設定する。この場合、曲がり量算出点803aからもう一方の曲がり量算出点803bまでの距離は検査対象物の太さ程度が望ましい。例えば、抗酸菌を検出する場合には抗酸菌の太さ0.3μmから0.6μmを曲がり量算出点からもう一方の曲がり量算出点までの距離とする。   Next, step S106 is a bending amount calculation point setting step, and two bending amount calculation points for calculating the bending amount are set. FIG. 8 shows an example of a bending amount calculation point. In FIG. 8, 802 a and 802 b are bending amount calculation points for calculating the bending amount at the thickness calculation point 802, and are positioned on opposite sides of each other at equal distances around the thickness calculation point 802 on the center line 801. It is set to be. Similarly, bending amount calculation points 803a and 803b are set around the thickness calculation point 803. In this case, the distance from the bending amount calculation point 803a to the other bending amount calculation point 803b is preferably about the thickness of the inspection object. For example, when detecting acid-fast bacteria, the thickness of the acid-fast bacteria is 0.3 μm to 0.6 μm as the distance from the bending amount calculation point to the other bending amount calculation point.

次に、ステップS107は曲がり量算出工程であり、ステップS105の太さ算出点選択工程で選択した太さ算出点での検査対象物の曲がり量を算出する。曲がり量はステップS106の曲がり量算出点設定工程で設定した曲がり量算出点と、太さ算出点とで形成される角度で算出する。具体的には、2つの曲がり量算出点から太さ算出点へそれぞれ直線を引いた時、2本の直線が太さ算出点上でなす角を曲がり量とする。例えば図8において、太さ算出点802における曲がり量は、太さ算出点802と曲がり量算出点802a、802bで形成される角度θ1であり、太さ算出点803における曲がり量は、太さ算出点803と曲がり量算出点803a、803bで形成される角度θ2で表される。   Next, step S107 is a bending amount calculation step, and the bending amount of the inspection object at the thickness calculation point selected in the thickness calculation point selection step of step S105 is calculated. The bending amount is calculated by an angle formed by the bending amount calculation point set in the bending amount calculation point setting step in step S106 and the thickness calculation point. Specifically, when a straight line is drawn from two bending amount calculation points to a thickness calculation point, the angle formed by the two straight lines on the thickness calculation point is defined as the bending amount. For example, in FIG. 8, the bending amount at the thickness calculation point 802 is an angle θ1 formed by the thickness calculation point 802 and the bending amount calculation points 802a and 802b, and the bending amount at the thickness calculation point 803 is the thickness calculation. It is represented by an angle θ2 formed by the point 803 and the bending amount calculation points 803a and 803b.

次に、ステップS108は曲がり部分かどうかの判定を行う工程であり、ステップS107にて算出した角度が所定値より小さい場合には検査対象物の曲がり部分であると判定する。例えば図8において太さ算出点802での曲がり量は約180度であり、曲がり部分でないと判定する。また太さ算出点803での曲がり量は約60度であり、曲がり部分であると判断する。曲がり部分かどうかの判定を行う角度の閾値としては例えば角度が120度より小さい場合には曲がり部分であると判定する。曲がり部分であると判定された場合には、ステップS110に移行し、その太さ算出点では太さの測定を行わないようにする。曲がり部分において図14に示すように、太さ算出点が中心線801の曲がり角になく、曲がり角に近い場所にある場合には、太さ算出点1401と曲がり量算出点1401a、1401bとで形成される角度θ3は約100度であり、120度より角度が小さいため、曲がり部分と判断される。このように曲がり角付近では角度が小さくなるため、曲がり部分と判断される。   Next, step S108 is a step of determining whether or not the portion is a bent portion. If the angle calculated in step S107 is smaller than a predetermined value, it is determined that the portion is a bent portion of the inspection object. For example, in FIG. 8, the amount of bending at the thickness calculation point 802 is about 180 degrees, and it is determined that the portion is not a bent portion. Further, the amount of bending at the thickness calculation point 803 is about 60 degrees, and it is determined that it is a bent portion. For example, if the angle is smaller than 120 degrees, it is determined that the portion is a bent portion. If it is determined that it is a bent portion, the process proceeds to step S110, and the thickness is not measured at the thickness calculation point. As shown in FIG. 14, in the bent portion, when the thickness calculation point is not at the bend corner of the center line 801 but at a place close to the bend corner, the thickness calculation point 1401 and the bend amount calculation points 1401a and 1401b are formed. Since the angle θ3 is about 100 degrees and is smaller than 120 degrees, it is determined to be a bent portion. As described above, since the angle becomes small in the vicinity of the corner, it is determined that the portion is a corner.

曲がり部分でないと判定された場合には、ステップS109の太さ算出工程に移行して太さ算出点での太さの測定を行う。図8においては、太さ算出点802では太さの測定を行い、太さ算出点803では太さの測定を行わないことになる。これにより図8において曲がり部分では太さの測定を行わないため、太さの誤測定を防止することができる。   If it is determined that the portion is not a bent portion, the process proceeds to the thickness calculation step in step S109, and the thickness is measured at the thickness calculation point. In FIG. 8, the thickness is measured at the thickness calculation point 802, and the thickness is not measured at the thickness calculation point 803. As a result, thickness measurement is not performed at the bent portion in FIG. 8, so that erroneous thickness measurement can be prevented.

次に、ステップS109は太さ算出工程であり、ステップS108にて曲がり部分でないと判断された場合、その場所の太さを算出する。太さの算出方法について図9を用いて説明する。図9において中心線801上にある太さ算出点802は曲がり部分ではないと判断された点であり、この点での太さを算出する。そのために太さ算出点802を通る直線のうち輪郭701に切り取られる線分の長さが最小となるものを検査対象物の太さ901とする。   Next, step S109 is a thickness calculating step. When it is determined in step S108 that the portion is not a bent portion, the thickness of the place is calculated. A method for calculating the thickness will be described with reference to FIG. In FIG. 9, a thickness calculation point 802 on the center line 801 is a point determined not to be a bent portion, and the thickness at this point is calculated. For this purpose, the line 901 having the minimum length of the line segment cut by the contour 701 among the straight lines passing through the thickness calculation point 802 is set as the thickness 901 of the inspection object.

ステップS105の太さ算出点選択工程からステップS109の太さ算出工程までの各工程を、中心線上の太さ算出点を順次選択しながら行い、太さ算出点の選択点がなくなるまでステップS110にて繰り返す。   Each step from the thickness calculation point selection step in step S105 to the thickness calculation step in step S109 is performed while sequentially selecting the thickness calculation points on the center line, and the process proceeds to step S110 until there are no selection points for the thickness calculation points. And repeat.

次に、ステップS111は太さ平均値算出工程であり、ステップS109の太さ算出工程で算出した太さの平均値を算出する。   Next, step S111 is a thickness average value calculation step, and the average value of the thicknesses calculated in the thickness calculation step of step S109 is calculated.

次に、ステップS112は太さ平均値が所定値の範囲内かどうかを判定する工程である。判定のための所定値としては、抗酸菌の太さである0.3μmから0.6μmの範囲を所定値とする。太さの平均値が所定値でない場合にはステップS113に移行し、細菌以外と判定する。太さの平均値が所定値の場合には、ステップS114のばらつき算出工程に移行する。   Next, step S112 is a step of determining whether or not the average thickness value is within a predetermined value range. As the predetermined value for determination, a range of 0.3 μm to 0.6 μm which is the thickness of the acid-fast bacterium is set as the predetermined value. If the average thickness is not a predetermined value, the process proceeds to step S113, where it is determined that the sample is not a bacterium. When the average value of the thickness is a predetermined value, the process proceeds to the variation calculating step in step S114.

次に、ステップS114はばらつき算出工程であり、ステップS109の太さ算出工程で算出した検査対象物の太さのばらつきを算出する。太さのばらつきについては、例えば標準偏差を算出してばらつきを算出する。ステップS111の太さ平均値算出工程にて算出した太さの平均値を用い、曲がり部分でない太さ算出点での太さと、平均値との差の二乗平均の平方根を算出することで標準偏差を算出することができる。   Next, step S114 is a variation calculation step, and the variation in the thickness of the inspection object calculated in the thickness calculation step in step S109 is calculated. For thickness variation, for example, the standard deviation is calculated to calculate the variation. By using the average value of the thickness calculated in the thickness average value calculating step of step S111, the standard deviation is calculated by calculating the root mean square of the difference between the thickness at the thickness calculation point that is not a bent portion and the average value. Can be calculated.

次に、ステップS115はばらつきが所定値の範囲内かどうかを判定する工程であり、ステップS114のばらつき算出工程で算出した値が所定値かどうかを判定する。抗酸菌は細長く一様な太さを持つ細菌であり、太さのばらつきを算出し、検査対象物が一様な太さかどうかで細菌の判定を行うことができる。太さのばらつきについてはステップS114のばらつき算出工程で算出した標準偏差値を用いる。ステップS115では標準偏差値が所定値かどうかで判定を行うが、所定値については、予め人が細菌と判定した検査対象物の太さの標準偏差値と、細菌でないと判定した検査対象物の太さの標準偏差値を算出し、それぞれの平均値を算出し、細菌と判定した場合の太さの標準偏差値と、細菌でないと判定した場合の太さの標準偏差値との中間値を所定値とし、所定値より検査対象物の太さの標準偏差値が大きい場合には細菌以外と判定してステップS113に移行し、小さい場合には、ステップS116の長さ算出工程に移行する。   Next, step S115 is a step of determining whether or not the variation is within a predetermined value range, and it is determined whether or not the value calculated in the variation calculation step of step S114 is a predetermined value. The acid-fast bacterium is a long and thin bacterium having a uniform thickness. The variation in thickness can be calculated, and the bacterium can be determined based on whether the test object has a uniform thickness. For the thickness variation, the standard deviation value calculated in the variation calculation step in step S114 is used. In step S115, determination is made based on whether or not the standard deviation value is a predetermined value. For the predetermined value, the standard deviation value of the thickness of the inspection object that has been previously determined as a bacterium by the person and the inspection object that has been determined as not being a bacterium Calculate the standard deviation value of the thickness, calculate the average value of each, and calculate the intermediate value between the standard deviation value of the thickness when judged as bacteria and the standard deviation value of the thickness when judged as non-bacteria If the standard deviation value of the thickness of the test object is larger than the predetermined value, it is determined that the sample is not a bacterium and the process proceeds to step S113. If the standard deviation value is smaller than the predetermined value, the process proceeds to the length calculation process in step S116.

なおステップS114、ステップS115にてばらつきを標準偏差を用いて算出しばらつき度合いを判定したが、簡易的に太さのばらつきを太さの最大値と最小値の差で数値化し、ばらつき度合いを判定してもよい。処理が簡単なため、高速にばらつき度合いの算出を行うことができる。   In step S114 and step S115, the variation is calculated using the standard deviation and the degree of variation is determined. However, the variation in thickness is simply quantified by the difference between the maximum value and the minimum value, and the degree of variation is determined. May be. Since the processing is simple, the degree of variation can be calculated at high speed.

次に、ステップS116は長さ算出工程であり、検査対象物の長さを算出する。長さについては中心線801の長さから値を算出する。なお、長さの算出の際に中心線801が輪郭701に接していない場合には、図10に示すように中心線801の両端を輪郭701まで延長し、輪郭701に接したところまでの長さを検査対象物の長さとして算出する。   Next, step S116 is a length calculation step, in which the length of the inspection object is calculated. The length is calculated from the length of the center line 801. If the center line 801 is not in contact with the contour 701 when calculating the length, both ends of the center line 801 are extended to the contour 701 as shown in FIG. Is calculated as the length of the inspection object.

次に、ステップS117は長さが所定値かどうかを判定する工程であり、ステップS116の長さ算出工程で算出した検査対象物の長さが所定値かどうかを判定する。判定のための所定値としては、抗酸菌の長さが1μmから4μmの範囲であるためこの範囲を所定値とする。検査対象物の長さが所定値でない場合にはステップS113に移行し、細菌以外と判定する。長さが所定値の場合にはステップS118に移行して細菌と判定する。   Next, step S117 is a step of determining whether or not the length is a predetermined value, and it is determined whether or not the length of the inspection object calculated in the length calculation step of step S116 is a predetermined value. As the predetermined value for determination, since the length of the acid-fast bacterium is in the range of 1 μm to 4 μm, this range is set as the predetermined value. If the length of the inspection object is not a predetermined value, the process proceeds to step S113, where it is determined that the sample is not bacteria. If the length is a predetermined value, the process proceeds to step S118 and is determined to be bacteria.

ここまでは簡単のために1つの検査領域に対する処理を詳細に記載したが、ステップS103からステップS118まではステップS102で抽出された検査領域全てに対して同時に処理が行われる。   Up to this point, the processing for one inspection region has been described in detail for the sake of simplicity, but from step S103 to step S118, the processing is simultaneously performed for all the inspection regions extracted in step S102.

次に、ステップS119は細菌個数カウント工程であり、ステップS118で細菌と判定された個数をカウントする。   Next, step S119 is a bacteria count process, and the number of bacteria determined in step S118 is counted.

以上のようにステップS101からステップS119までの工程を行うことにより、検査対象物を細菌か、細菌以外かの判定を行うことができる。   By performing the processes from step S101 to step S119 as described above, it is possible to determine whether the inspection target is a bacterium or a non-bacteria.

次に図1の表示手段104について説明する。表示手段104としては、例えば液晶モニタを用いる。表示手段104は画像処理手段103から出力された検出結果を表示する。検出結果としてはステップS119にてカウントした細菌個数を表示してもよいし、日本結核病学会から出されている検査指針に基づき、細菌個数毎の記載法の記号を表示するようにしてもよい。その他にも細菌と判定した画像等を表示するようにしてもよい。   Next, the display means 104 in FIG. 1 will be described. For example, a liquid crystal monitor is used as the display unit 104. The display unit 104 displays the detection result output from the image processing unit 103. As the detection result, the number of bacteria counted in step S119 may be displayed, or a description symbol for each number of bacteria may be displayed based on the examination guidelines issued by the Japanese Tuberculosis Society. In addition, an image or the like determined as bacteria may be displayed.

以上のように、実施の形態1では細菌が曲がっている場合でも、曲がり部分を検出して曲がり部分以外の場所の太さを算出できるため、検査対象物の太さの平均値、太さのばらつき、長さから正確に細菌の判定を行うことができる。   As described above, in the first embodiment, even when the bacteria are bent, it is possible to detect the bent portion and calculate the thickness of a place other than the bent portion. Bacteria can be accurately determined from variation and length.

なお、本実施の形態においては抗酸菌を例に説明を行ったが、他の桿菌においても同様に判定を行う事が出来、抗酸菌に限定するものではない。   In the present embodiment, the acid-fast bacterium has been described as an example. However, the determination can be similarly performed for other koji molds, and is not limited to the acid-fast bacterium.

また、本実施の形態では、同一検体内で細菌の長さの平均値を算出し、検査対象物の長さが同一検体内の細菌の長さの平均値の2倍程度であり、なおかつ曲がり部分がある場合には、2個の細菌が接触しているものとし細菌と判定するようにしてもよい。この場合のフローチャートを図4に示す。   In the present embodiment, the average value of the length of the bacteria in the same specimen is calculated, the length of the test object is about twice the average value of the length of the bacteria in the same specimen, and the curve is bent. When there is a portion, it may be determined that two bacteria are in contact with each other. A flowchart in this case is shown in FIG.

検査対象物が図7に示すような形状の場合、前述したように細菌が曲がっている場合もあるが、2個の細菌の先端が接触している場合もあり、このような場合でも正確に細菌の判定を行うことができる。2個の細菌の先端が接触している場合には検査対象物の長さは約2個分の長さとなるため、検査を行っている検体の細菌の長さを算出し、検査対象物の長さが細菌の長さの2倍程度かどうかを判定する必要がある。   When the test object has a shape as shown in FIG. 7, the bacteria may be bent as described above, but the tip of two bacteria may be in contact. Bacteria can be determined. When the tip of two bacteria are in contact with each other, the length of the test object is about two, so calculate the length of the test subject's bacteria, It is necessary to determine whether the length is about twice the length of the bacteria.

そこで、まず通常の桿菌の長さで細菌とされた測定対象物に対してステップS122にて長さの平均値を算出する。同一検体での細菌の長さはほぼ等しいため、長さの平均値を算出することで細菌の長さを決定することができる。そして算出された長さの平均値をステップS117の工程にフィードバックし、通常の長さ判定で細菌と判別されなかった測定対象物に対して再度細菌判定の処理を行うようにする。   Therefore, first, in step S122, an average length value is calculated for a measurement target that is a normal gonococcal length bacteria. Since the lengths of the bacteria in the same specimen are substantially equal, the length of the bacteria can be determined by calculating the average length. Then, the average value of the calculated length is fed back to the step S117, and the bacteria determination process is performed again on the measurement object that has not been determined as bacteria by the normal length determination.

ステップS117にて検査対象物の長さが所定値でないと判定された場合、ステップS120で検査対象物の長さが平均値の2倍程度かどうかの判定を行う。長さが2倍程度の場合にはステップS121移行し、そうでない場合にはステップS113に移行して細菌以外と判定する。   If it is determined in step S117 that the length of the inspection object is not a predetermined value, it is determined in step S120 whether the length of the inspection object is about twice the average value. If the length is about twice, the process proceeds to step S121. If not, the process proceeds to step S113 and it is determined that it is not a bacterium.

次に、ステップS121は検査対象物に曲がり部分が存在するかどうかの判定を行う工程であり、曲がり部分が存在する場合にはステップS118に移行して細菌と判定し、そうでない場合にはステップS113に移行して細菌以外と判定する。   Next, step S121 is a step of determining whether or not a bent portion exists in the inspection object. If there is a bent portion, the process proceeds to step S118, where it is determined as a bacterium, and if not, step S121 is performed. It transfers to S113 and it determines with other than bacteria.

以上のように、本実施の形態では、2個の細菌の先端が接触している場合でも細菌かどうかの判定をすることができ、細菌の判定の精度を向上させることができる。   As described above, in the present embodiment, even when the tips of two bacteria are in contact with each other, it can be determined whether the bacteria are bacteria, and the accuracy of the bacteria determination can be improved.

(実施の形態2)
図11は、本発明の実施の形態2における形状判定方法を示したフローチャート図である。実施の形態1と異なるところは中心線の交点から接触部分の有無を検出し、接触部分を検出した場合には検査対象物を2つの領域に分離し、各々の領域で形状を判定する点である。図12に2つの検査対象物が接触している場合の一例を示している。このような場合、CCDカメラで撮影すると、検査対象物が放つ蛍光でハレーションが生じ、境界がなくなり、一つの領域として認識される場合が多い。
(Embodiment 2)
FIG. 11 is a flowchart showing a shape determination method according to Embodiment 2 of the present invention. The difference from Embodiment 1 is that the presence or absence of a contact portion is detected from the intersection of the center lines, and when the contact portion is detected, the inspection object is separated into two regions and the shape is determined in each region. is there. FIG. 12 shows an example when two inspection objects are in contact with each other. In such a case, when photographing with a CCD camera, halation is caused by the fluorescence emitted from the inspection object, the boundary disappears, and it is often recognized as one area.

まず実施の形態1で説明したように、検査対象物に対してステップS101からステップS104までの工程を行い、中心線を算出する。   First, as described in the first embodiment, the process from step S101 to step S104 is performed on the inspection object, and the center line is calculated.

次に、ステップS201は中心線上に交点があるかどうかの判定を行う工程であり、中心線に交点がない場合にはステップS105の太さ算出点選択工程に移行する。中心線に交点がある場合には、接触部分があると判断し、検査対象物の分離工程に移行する。交点は中心線801の分岐状態を調査して算出することができ、図12においては1201が交点となる。   Next, step S201 is a step of determining whether or not there is an intersection on the center line. If there is no intersection on the center line, the process proceeds to the thickness calculation point selection step of step S105. If there is an intersection on the center line, it is determined that there is a contact portion, and the process proceeds to the inspection object separation step. The intersection can be calculated by investigating the branching state of the center line 801, and 1201 is the intersection in FIG.

次に、ステップS202は輪郭変曲点算出工程であり、ステップS103で抽出した輪郭701の変曲点を算出する。図12の場合には1202,1203が変曲点となる。変曲点は輪郭701上の注目点と前後の変曲点算出点の位置関係から算出することができ、例えば注目点が1202の場合、1202と前後の変曲点算出点1202aと1202bとの角度を調べ、所定の角度より小さければ変曲点と算出する。注目点としては例えば輪郭線上の全ての点を選択してサーチを行い、前後の変曲点算出点については、例えば注目点から5画素離れている点を選択する。注目点をサーチする毎に、変曲点算出点も注目点から5画素離れた点が選択され移動する。変曲点かどうかを算出する所定の角度としては、例えば120度より小さければ変曲点であると算出する。変曲点が連続して複数ある場合には、注目点と変曲点算出点のなす角度が最も小さくなる注目点を変曲点として算出する。   Next, step S202 is a contour inflection point calculation step, in which the inflection point of the contour 701 extracted in step S103 is calculated. In the case of FIG. 12, 1202 and 1203 are inflection points. The inflection point can be calculated from the positional relationship between the attention point on the contour 701 and the preceding and following inflection point calculation points. For example, when the attention point is 1202, 1202 and the preceding and following inflection point calculation points 1202a and 1202b. The angle is checked, and if it is smaller than a predetermined angle, it is calculated as an inflection point. For example, all the points on the contour line are selected as the attention point, and the search is performed. For the inflection point calculation points before and after, for example, a point that is 5 pixels away from the attention point is selected. Each time an attention point is searched, an inflection point calculation point is selected and moved by a point 5 pixels away from the attention point. As a predetermined angle for calculating whether the point is an inflection point, for example, if the angle is smaller than 120 degrees, the inflection point is calculated. When there are a plurality of inflection points in succession, the attention point having the smallest angle between the attention point and the inflection point calculation point is calculated as the inflection point.

次に、ステップS203は領域分離線算出工程であり、検査領域を2つに分離する分離線を算出する。領域分離線はステップS202の輪郭変曲点算出工程で算出した輪郭点を結ぶ直線から算出することができ、図13において、変曲点1202と変曲点1203を結ぶ直線1204が領域分離線となる。   Next, step S203 is a region separation line calculation step, in which a separation line that separates the inspection region into two is calculated. The region separation line can be calculated from a straight line connecting the contour points calculated in the contour inflection point calculation step in step S202. In FIG. 13, a straight line 1204 connecting the inflection point 1202 and the inflection point 1203 is the region separation line. Become.

次に、ステップS204は検査領域分離工程であり、ステップS203の分離線算出工程で算出した領域分離線1204により、検査領域を分離する。図13において、分離線1204により領域1205と領域1206に分離する。なお中心線についても交点1201から領域分離線1204までの中心線を削除し、中心線の分離も行う。ステップS204の検査領域分割工程により領域の分離を行った後、分離した領域の各々においてステップS105以降の工程を行う。   Next, step S204 is an inspection region separation step, and the inspection region is separated by the region separation line 1204 calculated in the separation line calculation step of step S203. In FIG. 13, the region 1205 and the region 1206 are separated by a separation line 1204. As for the center line, the center line from the intersection 1201 to the region separation line 1204 is deleted, and the center line is also separated. After the regions are separated by the inspection region dividing step in step S204, the steps after step S105 are performed in each of the separated regions.

次に、ステップS105は太さ算出点選択工程であり、中心線に交点がない場合にはステップS102の検査領域抽出工程で抽出した検査領域の中心線上の太さ算出点を選択し、中心線に交点がある場合にはステップS204の検査領域分離工程で分離した各々の検査領域の中心線上の太さ算出点を選択する。   Next, step S105 is a thickness calculation point selection step, and when there is no intersection on the center line, a thickness calculation point on the center line of the inspection region extracted in the inspection region extraction step of step S102 is selected, and the center line If there is an intersection, a thickness calculation point on the center line of each inspection region separated in the inspection region separation step in step S204 is selected.

次に、ステップS109は太さ算出工程であり、太さ算出点での太さを算出する。ステップS105、ステップS109の工程を太さ算出点がなくなるまでステップS110にて繰り返す。   Next, step S109 is a thickness calculation step, in which the thickness at the thickness calculation point is calculated. Steps S105 and S109 are repeated in step S110 until there are no thickness calculation points.

太さ算出点での太さの算出が終了すると、実施の形態1と同様に、太さの平均値、太さのばらつき、長さを算出し、それぞれの値が所定値かどうかで細菌か細菌以外かを判定する。   When the calculation of the thickness at the thickness calculation point is completed, the average value of thickness, the variation in thickness, and the length are calculated as in the first embodiment, and whether each value is a predetermined value or not is a bacterium. Judge whether it is other than bacteria.

以上のように本実施の形態2においては、細菌の重なりを検出し重なり領域を分離してそれぞれの細菌を検出するようにしたため、細菌が接触している場合でも細菌かどうかの判定を正確に行うことが可能となる。   As described above, in the second embodiment, since the overlapping of bacteria is detected and the overlapping area is separated and each bacteria is detected, it is possible to accurately determine whether or not the bacteria are in contact with each other. Can be done.

本発明にかかる形状判定方法は、細菌が曲がっている状態や、細菌が接触している場合でも細菌を判定する機能を有し、細菌検査装置等として有用である。   The shape determination method according to the present invention has a function of determining bacteria even when the bacteria are bent or in contact with the bacteria, and is useful as a bacteria testing apparatus or the like.

本発明の実施の形態1及び実施の形態2における形状検査装置のブロック図The block diagram of the shape inspection apparatus in Embodiment 1 and Embodiment 2 of this invention 本発明の実施の形態1及び実施の形態2における蛍光顕微鏡の説明図Explanatory drawing of the fluorescence microscope in Embodiment 1 and Embodiment 2 of this invention 本発明の実施の形態1における形状判定方法のフローチャートThe flowchart of the shape determination method in Embodiment 1 of this invention 本発明の実施の形態1における別形態の形状判定方法のフローチャートFlowchart of another form determining method according to Embodiment 1 of the present invention 本発明の実施の形態1における二値化処理説明図Binarization explanatory drawing in Embodiment 1 of this invention 本発明の実施の形態1におけるラベリング処理説明図Explanatory drawing of the labeling process in Embodiment 1 of this invention 本発明の実施の形態1における輪郭抽出結果図Outline extraction result diagram according to Embodiment 1 of the present invention 本発明の実施の形態1における曲がり量算出のための説明図Explanatory drawing for calculation of the amount of bending in Embodiment 1 of the present invention 本発明の実施の形態1における検査対象物の太さ算出のための説明図Explanatory drawing for thickness calculation of a test subject in Embodiment 1 of the present invention 本発明の実施の形態1における検査対象物の長さ算出のための説明図Explanatory drawing for length calculation of the inspection subject in Embodiment 1 of the present invention 本発明の実施の形態2における形状判定方法のフローチャートFlowchart of shape determination method in Embodiment 2 of the present invention 本発明の実施の形態2における接触部分がある場合の検査対象物の説明図Explanatory drawing of a test subject when there is a contact part in Embodiment 2 of the present invention 本発明の実施の形態2における検査領域の分離の説明図Explanatory drawing of isolation | separation of the inspection area | region in Embodiment 2 of this invention 本発明の実施の形態1における曲がり量算出のための説明図Explanatory drawing for calculation of the amount of bending in Embodiment 1 of the present invention

符号の説明Explanation of symbols

101 光学手段
102 撮像手段
103 画像処理手段
104 表示手段
105 プレート
201 光源
202 光源光
203 励起フィルタ
204 励起光
205 ダイクロイックミラー
206 対物レンズ
207 蛍光
208 吸収フィルタ
209 蛍光以外の光
601、602、603、604、605、606 検査領域
701 輪郭
801 中心線
802、803、804 太さ算出点
802a、802b、803a、803b 曲がり量算出点
901 検査対象物の太さ
1201 交点
1202、1203 変曲点
1202a、1202b 変曲点算出点
1204 領域分離線
1205、1206 分割した領域
1401 太さ算出点
1401a、1401b 曲がり量算出点
DESCRIPTION OF SYMBOLS 101 Optical means 102 Imaging means 103 Image processing means 104 Display means 105 Plate 201 Light source 202 Light source light 203 Excitation filter 204 Excitation light 205 Dichroic mirror 206 Objective lens 207 Fluorescence 208 Absorption filter 209 Lights other than fluorescence 601, 602, 603, 604 605, 606 Inspection area 701 Outline 801 Center line 802, 803, 804 Thickness calculation point 802a, 802b, 803a, 803b Bending amount calculation point 901 Thickness of inspection object 1201 Intersection 1202, 1203 Inflection point 1202a, 1202b Inflection Point calculation point 1204 Area separation line 1205, 1206 Divided area 1401 Thickness calculation point 1401a, 1401b Bending amount calculation point

Claims (7)

撮像した画像から形状判定を行う検査対象物の領域を抽出する領域抽出工程と、
前記検査対象物の輪郭を算出する輪郭算出工程と、
前記検査対象物の中心線を算出する中心線算出工程と、
前記中心線の形状から前記検査対象物の曲がり部分を検出する曲がり部分検出工程と、
前記曲がり部分を除く領域の前記検査対象物の太さを、前記輪郭算出工程で算出した輪郭から算出する太さ算出工程と、
前記太さの平均値を算出する太さ平均値算出工程と、
前記太さのばらつき度合いを算出する太さばらつき度合い算出工程と、
前記中心線の長さから前記検査対象物の長さを算出する長さ算出工程と、
前記太さ平均値と、前記太さばらつき度合いと、前記検査対象物の長さから前記検査対象物の形状を判定する形状判定工程を含む形状判定方法。
A region extraction step of extracting a region of the inspection object for which shape determination is performed from the captured image;
A contour calculating step for calculating a contour of the inspection object;
A center line calculating step for calculating a center line of the inspection object;
A bent portion detecting step of detecting a bent portion of the inspection object from the shape of the center line;
A thickness calculating step of calculating the thickness of the inspection object in the region excluding the bent portion from the contour calculated in the contour calculating step;
A thickness average value calculating step of calculating an average value of the thickness;
A thickness variation degree calculating step of calculating the thickness variation degree;
A length calculating step of calculating the length of the inspection object from the length of the center line;
A shape determination method including a shape determination step of determining a shape of the inspection object from the average thickness value, the thickness variation degree, and the length of the inspection object.
前記形状判定工程において、前記太さ平均値と、前記太さばらつき度合いが所定値であり、かつ前記検査対象物の長さが所定値の場合に、前記検査対象物を細菌であると判定する請求項1に記載の形状判定方法。 In the shape determination step, when the thickness average value and the thickness variation degree are predetermined values, and the length of the inspection object is a predetermined value, the inspection object is determined to be bacteria. The shape determination method according to claim 1. 細菌の長さの平均値を算出する長さ平均値算出工程をさらに備え、前記形状判定工程において、前記曲がり部分検出工程で曲がり部分が検出され、前記太さ平均値と、前記太さばらつき度合いが所定値であり、検査対象物の長さが前記長さ平均値算出工程で算出した長さ平均値の2倍程度である場合には2つの細菌が接触しているものとして形状を判定する請求項1に記載の形状判定方法。   A length average value calculating step for calculating an average value of the length of bacteria is further provided. In the shape determining step, a bent portion is detected in the bent portion detecting step, and the thickness average value and the thickness variation degree are detected. Is a predetermined value, and when the length of the test object is about twice the length average value calculated in the length average value calculation step, the shape is determined to be in contact with two bacteria. The shape determination method according to claim 1. 撮像した画像から形状判定を行う検査対象物の領域を抽出する検査領域抽出工程と、
前記検査対象物の中心線を算出する中心線算出工程と、
前記検査対象物の輪郭を算出する輪郭算出工程と、
前記中心線の形状から対象物の接触を検出する接触検出工程と、
前記接触検出工程にて接触を検出した場合に、前記輪郭の形状から検査対象物を2つの領域に分離する分離工程と、
検査対象物の太さを、前記輪郭算出工程で算出した輪郭から算出する太さ算出工程と、
前記中心線から前記検査対象物の長さを算出する長さ算出工程と、
前記太さの平均値を算出する太さ平均値算出工程と、
前記太さのばらつき度合いを算出する太さのばらつき度合い算出工程と、
前記太さの平均値と、前記太さのばらつき度合いと、前記検査対象物の長さから検査対象物の形状を判定する形状判定工程を含む形状判定方法。
An inspection area extraction step for extracting an area of an inspection object for which shape determination is performed from the captured image;
A center line calculating step for calculating a center line of the inspection object;
A contour calculating step for calculating a contour of the inspection object;
A contact detection step of detecting contact of the object from the shape of the center line;
A separation step of separating an inspection object into two regions from the shape of the contour when contact is detected in the contact detection step;
A thickness calculating step of calculating the thickness of the inspection object from the contour calculated in the contour calculating step;
A length calculating step of calculating the length of the inspection object from the center line;
A thickness average value calculating step of calculating an average value of the thickness;
A thickness variation degree calculating step for calculating the thickness variation degree;
A shape determination method including a shape determination step of determining the shape of the inspection object from the average value of the thickness, the variation degree of the thickness, and the length of the inspection object.
前記形状判定工程において、前記太さ平均値と、前記太さばらつき度合いが所定値であり、かつ前記検査対象物の長さが所定値の場合に、前記検査対象物を細菌であると判定する請求項4に記載の形状判定方法。 In the shape determination step, when the thickness average value and the thickness variation degree are predetermined values, and the length of the inspection object is a predetermined value, the inspection object is determined to be bacteria. The shape determination method according to claim 4. 前記太さばらつき度合い算出工程において、太さのばらつき度合いを太さの標準偏差により算出する請求項1または請求項4に記載の形状判定方法。 The shape determination method according to claim 1, wherein in the thickness variation degree calculation step, the thickness variation degree is calculated based on a standard deviation of the thickness. 前記太さばらつき度合い算出工程において、太さのばらつき度合いを太さの最大値と最小値の差により算出する請求項1または請求項4に記載の形状判定方法。 The shape determination method according to claim 1, wherein, in the thickness variation degree calculation step, the thickness variation degree is calculated based on a difference between a maximum value and a minimum value of the thickness.
JP2007147664A 2007-06-04 2007-06-04 Shape determination method Pending JP2008298706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007147664A JP2008298706A (en) 2007-06-04 2007-06-04 Shape determination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007147664A JP2008298706A (en) 2007-06-04 2007-06-04 Shape determination method

Publications (1)

Publication Number Publication Date
JP2008298706A true JP2008298706A (en) 2008-12-11

Family

ID=40172341

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007147664A Pending JP2008298706A (en) 2007-06-04 2007-06-04 Shape determination method

Country Status (1)

Country Link
JP (1) JP2008298706A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9709874B2 (en) 2010-05-10 2017-07-18 Fujitsu Limited Device and method for image processing used for tracking pursued subject

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9709874B2 (en) 2010-05-10 2017-07-18 Fujitsu Limited Device and method for image processing used for tracking pursued subject

Similar Documents

Publication Publication Date Title
TWI621849B (en) Computer-implemented method, non-transitory computer-readable medium, and system for detecting defects on a wafer
KR101832081B1 (en) Surface defect detection method and surface defect detection device
US10248838B2 (en) Method and device for single molecule imaging
JP6594294B2 (en) Image quality evaluation of microscopic images
US9293298B2 (en) Defect discovery and inspection sensitivity optimization using automated classification of corresponding electron beam images
US20100220185A1 (en) Object Inspection System
WO2014205385A1 (en) Wafer inspection using free-form care areas
JP5538220B2 (en) Non-uniformity inspection method for polarizing plate using image analysis, and automatic non-uniformity inspection system for polarizing plate using the same
US10921252B2 (en) Image processing apparatus and method of operating image processing apparatus
JP2015197396A (en) Image inspection method and image inspection device
JP2007292704A (en) Method for automatic measurement of foreign substance in injection liquid drug by raman spectrometry, and device therefor
JP5487534B2 (en) Image analysis method and fluorescence detection apparatus
WO2017175811A1 (en) Cancer detection method, cancer detection device, and cancer detection program
JP2008139143A (en) Method and apparatus for forming specimen image
JP2008298706A (en) Shape determination method
JP2017224108A (en) Data restoration device, microscopic system, and data restoration method
JP2003014580A (en) Inspection device and inspection method
JP2008301737A (en) Apparatus and method for distinguishing bacteria
JP2004108902A (en) Method and system for classifying defect of color display screen
JP2008304298A (en) Device and method for discriminating germ
JP5998691B2 (en) Inspection method, inspection apparatus, and glass plate manufacturing method
JP2007033327A (en) Flaw detecting method and flaw detector
JP2007271410A (en) Flaw detection method, flaw detector, and flaw detection program
JP4426080B2 (en) Method and apparatus for detecting dirt on ophthalmic lens
JP2019090612A (en) Cancer inspection method