Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7197316B2 - Image processing method, computer program and recording medium - Google Patents
[go: Go Back, main page]

JP7197316B2 - Image processing method, computer program and recording medium - Google Patents

Image processing method, computer program and recording medium Download PDF

Info

Publication number
JP7197316B2
JP7197316B2 JP2018177298A JP2018177298A JP7197316B2 JP 7197316 B2 JP7197316 B2 JP 7197316B2 JP 2018177298 A JP2018177298 A JP 2018177298A JP 2018177298 A JP2018177298 A JP 2018177298A JP 7197316 B2 JP7197316 B2 JP 7197316B2
Authority
JP
Japan
Prior art keywords
image
colony
sphere
region
displacement
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.)
Active
Application number
JP2018177298A
Other languages
Japanese (ja)
Other versions
JP2020043842A (en
Inventor
智靖 古田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Screen Holdings Co Ltd
Original Assignee
Screen Holdings Co Ltd
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 Screen Holdings Co Ltd filed Critical Screen Holdings Co Ltd
Priority to JP2018177298A priority Critical patent/JP7197316B2/en
Publication of JP2020043842A publication Critical patent/JP2020043842A/en
Application granted granted Critical
Publication of JP7197316B2 publication Critical patent/JP7197316B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Apparatus Associated With Microorganisms And Enzymes (AREA)
  • Measuring Or Testing Involving Enzymes Or Micro-Organisms (AREA)

Description

この発明は、培養された心筋細胞のコロニーを撮像した画像から拍動の有無を判定する画像処理技術に関するものである。 The present invention relates to an image processing technique for determining the presence or absence of pulsation from an image of cultured myocardial cell colonies.

再生医療や創薬などの分野においては、例えばiPS細胞(induced Pluripotent Stem Cell)やES細胞(Embryonic
Stem Cell)などの多能性幹細胞を分化培養し、心筋細胞を人工的に作製する技術が研究されている。良好に培養された心筋細胞では周期的な拍動運動がみられることから、培養状態を評価するために、心筋細胞のコロニーを含む試料を顕微鏡等で観察し拍動の有無を判定することが行われる。目視による判定は観察者の主観により結果が変動し、また多数のコロニーを観察することは観察者の負担となるため、試料を撮像した画像のデータ解析処理によって拍動の有無を自動的に検出する方法が提案されている。
In fields such as regenerative medicine and drug discovery, for example, iPS cells (induced Pluripotent Stem Cells) and ES cells (Embryonic
Techniques for artificially producing cardiomyocytes by differentiating and culturing pluripotent stem cells such as stem cells are being studied. Since well-cultured cardiomyocytes exhibit periodic beating motion, the presence or absence of beating can be determined by observing samples containing cardiomyocyte colonies under a microscope or the like in order to evaluate the culture state. done. Since the results of visual judgment vary depending on the subjectivity of the observer, and observing a large number of colonies is a burden on the observer, the presence or absence of pulsation is automatically detected by data analysis processing of the image of the sample. A method to do so is proposed.

例えば特許文献1に記載の技術では、所定の時間間隔で撮像された時系列画像から動きベクトルが検出され、動きベクトルが検出された領域のうち内部構造の顕著な変化が見られるものが拍動領域として検出される。 For example, in the technique described in Patent Document 1, a motion vector is detected from time-series images captured at predetermined time intervals, and among the regions in which the motion vector is detected, those in which a significant change in the internal structure is observed are pulsations. Detected as a region.

特開2014-075999号公報JP 2014-075999 A

分化培養の初期段階にある試料では、幹細胞から分化した心筋細胞により形成される小さなコロニーが試料中に多数分散した状態にある。より具体的には、いくつかの心筋細胞が球状に集まってスフェアとも呼ばれる細胞コロニーを形成し、そのようなコロニーが試料内に散在する。それらのコロニーは互いに独立した周期で拍動し、また拍動しないものも含まれ得る。また拍動時のコロニーの動きは必ずしも収縮・弛緩ではなく、画像内では周期的な振動として現れることも多い。さらに、コロニーが高密度で存在する試料の画像では、コロニー同士が接触している場合が多い。 In a sample at the initial stage of differentiation culture, a large number of small colonies formed by cardiomyocytes differentiated from stem cells are dispersed in the sample. More specifically, some cardiomyocytes aggregate spherically to form cell colonies, also called spheres, and such colonies are scattered within the sample. Those colonies beat in mutually independent cycles, and colonies that do not beat may also be included. In addition, the movement of the colony during pulsation is not necessarily contraction/relaxation, and often appears as periodic vibration in the image. Furthermore, in images of specimens in which colonies are present at a high density, the colonies are often in contact with each other.

上記従来技術は、比較的大きなコロニーにおける律動的な拍動を検出することに適している。しかしながら、上記したように小さなコロニーが多数分散し、個々のコロニーが個別に拍動する試料において、それを撮像した画像から個々のコロニーの拍動の有無を判定するのには必ずしも向いていないと考えられる。このため、このような小さなコロニーが多数ある場合に好適な拍動検出のための画像処理技術の確立が望まれる。 The prior art described above is suitable for detecting rhythmic beats in relatively large colonies. However, as described above, in a sample in which a large number of small colonies are scattered and individual colonies beat individually, it is not necessarily suitable for determining the presence or absence of individual colony beats from the captured image. Conceivable. Therefore, it is desired to establish an image processing technique for pulsation detection that is suitable when there are many such small colonies.

この発明は上記課題に鑑みなされたものであり、培養された心筋細胞のコロニーを複数含む画像から、個々のコロニーの拍動の有無を判定するのに好適な画像処理技術を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing technique suitable for determining the presence or absence of pulsation in individual colonies from an image containing a plurality of colonies of cultured cardiomyocytes. and

この発明に係る画像処理方法は、上記目的を達成するため、培養された心筋細胞のコロニーを含む試料を異なる撮像時刻に撮像した複数の原画像を取得する工程と、前記原画像のうち互いに異なる第1画像と第2画像とのそれぞれから前記コロニーに対応するコロニー領域を抽出する工程と、前記第1画像と前記第2画像との間における前記コロニー領域の変位を検出しその検出結果に基づき前記コロニーの拍動の有無を判定する工程とを備えている。 In order to achieve the above object, an image processing method according to the present invention provides a step of acquiring a plurality of original images obtained by imaging a sample containing colonies of cultured cardiomyocytes at different imaging times; a step of extracting a colony region corresponding to the colony from each of the first image and the second image; detecting a displacement of the colony region between the first image and the second image; and based on the detection result. and determining whether or not the colony pulsates.

本発明の一の態様では、前記コロニー領域のうち一の対象コロニー領域について、所定の探索範囲内における前記第1画像と前記第2画像との差分の大きさを前記対象コロニー領域の前記変位の大きさとして検出し、前記探索範囲は、前記第1画像における前記対象コロニー領域の輪郭を所定幅に膨張させた環状の領域と、前記第2画像における前記対象コロニー領域の輪郭を前記所定幅に膨張させた環状の領域との論理和に相当する領域である。 In one aspect of the present invention, for one target colony region among the colony regions, the magnitude of the difference between the first image and the second image within a predetermined search range is the displacement of the target colony region. The search range is an annular area obtained by expanding the outline of the target colony area in the first image to a predetermined width, and the outline of the target colony area in the second image to the predetermined width. This area corresponds to the logical sum with the expanded annular area.

また、本発明の他の一の態様では、前記コロニー領域のうち一の対象コロニー領域について、所定の探索範囲内における前記第1画像と前記第2画像との差分の大きさを前記対象コロニー領域の前記変位の大きさとして検出し、前記探索範囲は、前記第1画像における前記対象コロニー領域の内部領域と、前記第2画像における前記対象コロニー領域の内部領域との排他的論理和に相当する領域を少なくとも含む環状の領域である。 In another aspect of the present invention, for one target colony region among the colony regions, the magnitude of the difference between the first image and the second image within a predetermined search range is calculated as the target colony region. and the search range corresponds to the exclusive OR of the internal area of the target colony area in the first image and the internal area of the target colony area in the second image. It is an annular region that includes at least the region.

このように構成された発明では、異なる時刻に撮像された第1画像と第2画像とのそれぞれにおいてコロニー領域が抽出され、両画像間におけるコロニー領域の変位が検出される。この変位は、第1画像および第2画像において抽出されたコロニー領域の差分として検出される。ただし、コロニー領域同士の単純な差分ではなく、抽出されたコロニー領域の輪郭に基づき設定される探索範囲内での差分が求められる。 In the invention configured as described above, the colony area is extracted in each of the first image and the second image captured at different times, and the displacement of the colony area between the two images is detected. This displacement is detected as the difference between the colony regions extracted in the first image and the second image. However, instead of a simple difference between colony regions, a difference within a search range set based on the contours of the extracted colony regions is obtained.

詳しくは後述するが、上記した2つの態様のいずれにおいても、第1画像および第2画像でそれぞれ検出されたコロニー領域の輪郭の周囲に探索範囲が設定される。したがって、求められる差分の大きさは、コロニー領域の輪郭部分の動きの大きさを強く反映したものとなる。その一方、輪郭部分から遠く探索範囲に含まれないコロニー内部やコロニー外の変位は差分の値に影響を与えない。したがって、1つの探索範囲について求められる差分の大きさは、1つのコロニーの変位の大きさを表すものとなる。 Although details will be described later, in both of the above-described two modes, a search range is set around the contours of the colony areas detected in the first image and the second image. Therefore, the magnitude of the calculated difference strongly reflects the magnitude of movement of the contour portion of the colony region. On the other hand, the displacement inside or outside the colony, which is far from the outline portion and is not included in the search range, does not affect the value of the difference. Therefore, the size of the difference obtained for one search range represents the size of displacement of one colony.

本願発明者の知見によれば、心筋細胞によるスフェアのような小さなコロニーについては、こうして求められる差分の大きさを当該コロニーの変位の大きさの指標とすることで試料中の各コロニーの変位を個別に、かつ的確に把握することができる。そして、こうして把握される変位の大きさから、当該コロニーの拍動の有無を判定することができる。原画像中に多数のコロニーがある場合であっても、各コロニーについてその輪郭周辺の変位のみが検出されるため、他のコロニーの挙動に影響されることなく拍動の有無を判定することが可能である。 According to the findings of the inventors of the present application, for small colonies such as cardiomyocyte spheres, the displacement of each colony in the sample can be estimated by using the magnitude of the difference obtained in this way as an index of the magnitude of displacement of the colony. It can be grasped individually and accurately. Then, it is possible to determine the presence or absence of pulsation of the colony from the magnitude of the displacement grasped in this way. Even if there are many colonies in the original image, only the displacement around the contour of each colony is detected, so the presence or absence of pulsation can be determined without being affected by the behavior of other colonies. It is possible.

本発明に係る画像処理方法は、コンピュータをその実行主体とすることが可能なものである。この意味において、本発明は、コンピュータに上記処理を実行させるためのコンピュータプログラムとして実現することが可能である。また、当該コンピュータプログラムを記録した記録媒体として実現することも可能である。 The image processing method according to the present invention can be executed by a computer. In this sense, the present invention can be implemented as a computer program for causing a computer to execute the above processes. Moreover, it is also possible to implement it as a recording medium recording the computer program.

以上のように、本発明によれば、培養された心筋細胞のコロニーを複数含む画像から特定される各コロニーの輪郭の周辺における画像の差分が当該コロニーの変位の大きさの指標とされる。このため、画像に多数のコロニーが含まれる場合でも、他のコロニーの挙動に影響されることなく、個々のコロニーの拍動の有無を適切に判定することができる。 As described above, according to the present invention, the image difference around the contour of each colony identified from an image containing a plurality of colonies of cultured myocardial cells is used as an index of the displacement of the colony. Therefore, even if an image contains a large number of colonies, the presence or absence of pulsation of individual colonies can be appropriately determined without being affected by the behavior of other colonies.

本実施形態の画像処理を示すフローチャートである。4 is a flowchart showing image processing according to the embodiment; 1つのフレーム画像を模式的に例示する図である。FIG. 4 is a diagram schematically illustrating one frame image; 前処理工程を示すフローチャートである。It is a flow chart which shows a pretreatment process. スフェア抽出工程を示すフローチャートである。It is a flow chart which shows a sphere extraction process. 画像端補正工程を説明するための図である。FIG. 10 is a diagram for explaining an image edge correction process; エッジ検出処理後の画像の例を示す図である。It is a figure which shows the example of the image after edge detection processing. 輪郭領域画像の一例を示す図である。FIG. 4 is a diagram showing an example of a contour area image; 2値化画像の一例を示す図である。It is a figure which shows an example of a binarized image. 論理積合成画像の一例を示す図である。It is a figure which shows an example of a logical product composite image. 距離画像の一例を示す図である。It is a figure which shows an example of a distance image. 距離変換結果に基づく不要オブジェクト消去の概念を示す図である。FIG. 10 is a diagram showing the concept of unnecessary object elimination based on distance transform results; 中心画像の一例を示す図である。FIG. 4 is a diagram showing an example of a central image; オブジェクト分割の概念を示す図である。FIG. 4 is a diagram showing the concept of object division; 異なるフレーム間でのスフェアの対応関係を示す図である。FIG. 4 is a diagram showing the correspondence of spheres between different frames; 間引き処理の原理を示す図である。FIG. 4 is a diagram showing the principle of thinning processing; 動き検出工程を示すフローチャートである。4 is a flow chart showing a motion detection process; 基準画像と比較画像との関係を示す図である。FIG. 4 is a diagram showing the relationship between a reference image and a comparison image; 基準画像と比較画像との差分を示す画像の例である。It is an example of an image showing a difference between a reference image and a comparative image. 探索範囲設定方法の第1の態様を示す図である。It is a figure which shows the 1st aspect of the search range setting method. 探索範囲設定方法の第2の態様を示す図である。It is a figure which shows the 2nd aspect of the search range setting method. 収縮膨張画像と探索範囲画像との論理積合成画像を示す図である。FIG. 10 is a diagram showing a logical product synthesized image of an eroded and expanded image and a search range image; 拍動判定工程を示すフローチャートである。It is a flow chart which shows a pulsation judging process. 動き方向の判断例を示す図である。It is a figure which shows the determination example of a motion direction. この実施形態の画像処理を実行するコンピュータ装置の構成例である。It is a configuration example of a computer device that executes the image processing of this embodiment.

<概要の説明>
以下、本発明に係る画像処理方法の一実施形態について説明する。この実施形態における画像処理は、培養された心筋細胞のコロニーを含む試料を撮像した画像から細胞コロニーを検出し、さらには各細胞コロニーの拍動の有無を判定するための処理である。例えば適宜の培地中でiPS細胞(induced Pluripotent Stem Cell)やES細胞(Embryonic
Stem Cell)などの多能性幹細胞から分化培養された心筋細胞のコロニーを含む試料を、本実施形態の処理対象物とすることができる。
<Description of overview>
An embodiment of the image processing method according to the present invention will be described below. The image processing in this embodiment is processing for detecting cell colonies from an image of a sample containing cultured myocardial cell colonies and determining whether or not each cell colony is beating. For example, iPS cells (induced Pluripotent Stem Cells) and ES cells (Embryonic
A sample containing colonies of myocardial cells differentiated and cultured from pluripotent stem cells such as Stem Cells can be used as an object to be processed in this embodiment.

このような培養の初期段階では、幹細胞から分化した心筋細胞がいくつか集まって概ね球状のスフェアと呼ばれる小さなコロニーを形成する。試料には多数のスフェアが含まれ得るが、それらは互いに独立に拍動し、また中には拍動しないものもある。その他、未分化の細胞や細胞の代謝に伴い排出される老廃物等も試料には含まれ得る。以下に説明する本実施形態の画像処理は、このような画像から個々のスフェアを検出し、それらの拍動の有無を個別に判定することを目的とするものである。 At the initial stage of such culture, several cardiomyocytes differentiated from stem cells aggregate to form small colonies called roughly spherical spheres. A sample can contain a large number of spheres that beat independently of each other and some do not. In addition, the sample may also contain undifferentiated cells, waste products excreted in the course of cell metabolism, and the like. The image processing of this embodiment, which will be described below, aims to detect individual spheres from such an image and individually determine the presence or absence of pulsation.

この画像処理は、心筋細胞スフェアを含む試料が、所定の時間間隔で繰り返し撮像する動画撮像機能を備えた撮像装置によって撮像された画像に対してなされる。撮像装置が撮像後の画像データに対する後処理の1つとして本画像処理を実行してもよく、また撮像装置あるいは適宜の記憶手段から撮像画像に対応する画像データを受け取ったコンピュータ装置が、本画像処理を実行してもよい。 This image processing is performed on images captured by an imaging device having a moving image capturing function that repeatedly captures images of a sample containing myocardial cell spheres at predetermined time intervals. The image processing may be performed as one of the post-processing of the image data after the imaging by the imaging device, and the computer device that receives the image data corresponding to the captured image from the imaging device or appropriate storage means processes the main image. processing may be performed.

ここでは、汎用のコンピュータ装置が公知の撮像装置を制御して画像を取得し、該画像に対し本実施形態の画像処理を実行する態様を例示して説明する。撮像装置の構成については特に限定されず、培養された細胞等を含む試料を培地とともに動画撮像し、デジタル画像データとして出力する機能を有するものであればよい。例えば顕微鏡にデジタルビデオカメラを組み合わせた撮像装置を用いることができる。画像としては例えば明視野画像を好適に用いることができる。また、コンピュータ装置についても、例えばパーソナルコンピュータとして製品化されている一般的なハードウェア構成を有するものを利用可能である。 Here, a mode in which a general-purpose computer device controls a known imaging device to acquire an image and executes the image processing of the present embodiment on the image will be described as an example. The configuration of the imaging device is not particularly limited, and any device may be used as long as it has a function of capturing a moving image of a sample containing cultured cells or the like together with a culture medium and outputting it as digital image data. For example, an imaging device in which a digital video camera is combined with a microscope can be used. A bright field image, for example, can be preferably used as the image. As for the computer device, for example, a computer having a general hardware configuration commercialized as a personal computer can be used.

図1は本実施形態の画像処理を示すフローチャートである。まず、図1を参照してこの実施形態における画像処理の各工程の概略について説明し、その後で各工程における処理の具体的内容について詳しく説明する。なお、この画像処理は、撮像した画像からスフェアを検出するスフェア検出処理(ステップS101~S103)と、検出された各スフェアの拍動を検出する拍動検出処理(ステップS105~S107)との2つの処理に大別することができる。また、これらの間に、それぞれの処理に適したフレームレートを実現するための間引き処理が設けられる。 FIG. 1 is a flowchart showing image processing according to this embodiment. First, the outline of each step of image processing in this embodiment will be described with reference to FIG. 1, and then the specific contents of the processing in each step will be described in detail. Note that this image processing includes two processes: a sphere detection process (steps S101 to S103) for detecting spheres from the captured image, and a pulsation detection process (steps S105 to S107) for detecting the pulsation of each detected sphere. It can be roughly divided into two types of processing. In addition, a thinning process is provided between these to achieve a frame rate suitable for each process.

コンピュータ装置は、培地中で培養された心筋細胞のコロニーを含む試料を適宜のフレームレートで動画撮像する(ステップS101)。フレームレートとしては、心筋細胞の拍動周期として想定される周期よりは十分に短い撮像周期となることが好ましく、例えば一般的な動画撮像におけるフレームレートである30ないし60FPS(Frame Per Second)程度とすることができる。また、撮像の継続時間としては、拍動する細胞コロニーの動きを1周期以上にわたり確実に捉えることのできる時間、例えば数秒とすることができる。 The computer device captures a moving image of a sample containing colonies of myocardial cells cultured in a medium at an appropriate frame rate (step S101). As for the frame rate, it is preferable that the imaging cycle is sufficiently shorter than the cycle assumed to be the cardiac muscle cell beating cycle. can do. In addition, the duration of imaging can be set to a time, for example, several seconds, during which the movement of the pulsating cell colony can be reliably captured over one or more cycles.

図2は1つのフレーム画像を模式的に例示する図である。フレーム画像Ifでは、略一様かつ低濃度(高輝度)である背景BGの中に、心筋細胞が略球状に集まって形成されたスフェアSpに対応するオブジェクトが背景より高い濃度を有して多数分布している。この他に、未分化細胞、遊離細胞、細胞から排出された老廃物の塊等、スフェア以外の物体Deに対応するオブジェクトも画像内には存在する。なお、背景とオブジェクトとの濃度の関係が上記と逆である場合には、以下の説明における濃淡についても逆に読み替えればよい。なお、図を見やすくするために、全てのオブジェクトに符号を付すことをせず、代表的な一部のオブジェクトにのみ符号を付している。以下の各図においても同様である。 FIG. 2 is a diagram schematically illustrating one frame image. In the frame image If, a large number of objects corresponding to spheres Sp, which are formed by gathering cardiomyocytes in a substantially spherical shape, have a higher density than the background in a substantially uniform and low-density (high-brightness) background BG. distributed. In addition, objects corresponding to objects De other than spheres, such as undifferentiated cells, free cells, and clumps of waste excreted from cells, also exist in the image. If the density relationship between the background and the object is opposite to that described above, the gradation in the following description should also be read in reverse. In order to make the drawing easier to see, not all objects are labeled, but only some typical objects are labeled. The same applies to each of the following figures.

図2に符号A~Dを付して例示するように、複数のオブジェクトが画像内で互いに接し結合していることがある。このような結合が見られる理由としては、試料中で実際にオブジェクト同士が接触している場合と、試料内では離れているが画像内では接しているように見える場合とがある。 Multiple objects may be in contact with each other in the image, as exemplified by reference numerals AD in FIG. The reason for such coupling is that the objects are actually touching each other in the sample, or they are separated in the sample but appear to be touching in the image.

こうして撮像された画像については、フレームごとに、画像の微小な乱れを是正するための前処理工程が実行される(ステップS102)。そして、前処理後のフレーム画像に対してスフェア抽出工程が実行される(ステップS103)。この処理は、画像内に点在するオブジェクトの中からスフェアとみられるものを抽出し、その輪郭位置を特定するための処理である。これにより、スフェアが画像中でどの領域を占めているかが特定される。画像に複数のスフェアが含まれる場合、それらの輪郭が個別に特定される。 A preprocessing step for correcting minute disturbances in the image is executed for each frame of the image captured in this way (step S102). Then, a sphere extraction step is performed on the preprocessed frame image (step S103). This processing is processing for extracting what appears to be a sphere from among the objects scattered in the image and specifying the contour position of the object. This identifies which area the sphere occupies in the image. If the image contains multiple spheres, their contours are identified individually.

続いてフレーム間引きが行われる(ステップS104)。後述するように、本実施形態におけるスフェアの拍動検出は、フレーム画像間におけるスフェアの変位の大きさに基づいて行われる。ここで、試料の撮像はスフェアの拍動周期に対して十分に短い周期で実行されるが、撮像時刻の差が小さすぎる画像間ではスフェアの変位が小さくその検出が難しくなる。したがって全てのフレーム画像を用いてスフェアの動きを検出しようとすることは必ずしも現実的ではない。 Subsequently, frame thinning is performed (step S104). As will be described later, the pulsation detection of the sphere in this embodiment is performed based on the magnitude of displacement of the sphere between frame images. Here, imaging of the sample is performed at a sufficiently short period with respect to the pulsation period of the sphere, but the displacement of the sphere is small between images with a too small difference in imaging time, making it difficult to detect it. Therefore, it is not always realistic to try to detect the motion of the sphere using all frame images.

一方で、撮像時刻の差が大きすぎると周期的な変位を見落とすおそれがある。拍動周期を考慮した適宜の間隔で画像を間引くことで、スフェアの変位をより確実に捕捉することが可能となる。また、画像処理のための演算量を大きく低減させることにも寄与する。この目的のために、撮像されたフレーム画像の中から所定のサンプリング間隔で一部を選択するフレーム間引きが行われる。 On the other hand, if the difference in imaging time is too large, there is a risk of overlooking the periodic displacement. By thinning out the images at appropriate intervals in consideration of the pulsation cycle, it becomes possible to more reliably capture the displacement of the sphere. It also contributes to greatly reducing the amount of calculation for image processing. For this purpose, frame thinning is performed to select a part of the picked-up frame images at a predetermined sampling interval.

次に、画像間でのスフェアの動きが検出される(ステップS105)。上記したように、撮像時刻の異なる2つの画像間でのスフェアの変位から、当該スフェアの動きが検出される。そして、こうして検出された変位量から、各スフェアの拍動の有無が判定される(ステップS106)。画像内でのオブジェクトの変位は拍動によるものに限らない。検出された変位が拍動に起因するものであるか否かにより、拍動の有無が判定される。判定結果については適宜の形式で出力されユーザに提示される(ステップS107)。以上が本実施形態の画像処理の全体の流れである。以下、各処理の具体的内容につき順次説明する。 Next, motion of the sphere between images is detected (step S105). As described above, the movement of the sphere is detected from the displacement of the sphere between two images captured at different times. Then, the presence or absence of pulsation of each sphere is determined from the amount of displacement thus detected (step S106). Displacement of an object in an image is not limited to pulsation. The presence or absence of pulsation is determined based on whether the detected displacement is caused by pulsation. The determination result is output in an appropriate format and presented to the user (step S107). The above is the overall flow of image processing according to this embodiment. Specific contents of each process will be described below in sequence.

<スフェア検出処理>
図3は前処理工程を示すフローチャートである。撮像された各フレームの画像に対し、後述の画像処理の条件を一定とするためのコントラスト補正(ステップS201)およびノイズ除去(ステップS202)が行われる。これらの処理としては公知のものを適用可能であり、ここでは説明を省略する。例えばノイズ除去処理としてはバイラテラルフィルタ等の空間フィルタリング技術を用いることができる。なお、撮像条件によってはこれらの前処理を省くことができる場合がある。
<Sphere detection processing>
FIG. 3 is a flow chart showing the pretreatment process. Contrast correction (step S201) and noise removal (step S202) are performed on the captured image of each frame in order to make the conditions for image processing, which will be described later, constant. Known processes can be applied as these processes, and the description thereof is omitted here. For example, a spatial filtering technique such as a bilateral filter can be used as noise removal processing. Depending on the imaging conditions, these preprocessing may be omitted.

次に、スフェア抽出工程(ステップS103)について説明する。スフェア抽出工程では、画像内に存在する各種オブジェクトの領域を特定し、それらの中からスフェアSpであるものを選択し、画像内で結合しているスフェアSpについては適切な境界で区分することで、個々のスフェアに対応する画像内のオブジェクトを特定する。この処理は撮像により得られたフレーム画像Ifの全てについて実行される。 Next, the sphere extraction step (step S103) will be described. In the sphere extraction step, regions of various objects existing in the image are identified, spheres Sp are selected from among them, and the spheres Sp that are combined in the image are separated by appropriate boundaries. , to identify objects in the image that correspond to individual spheres. This processing is executed for all frame images If obtained by imaging.

図4はスフェア抽出工程を示すフローチャートである。最初に1つのフレーム画像を選択し(ステップS301)、選択されたフレーム画像Ifに対し画像端補正を行う(ステップS302)。図2に示すように、画像内のオブジェクトのうちフレーム画像Ifの端部付近にあるものでは、その一部が画像端にかかり、全体が画像内に収まっていない場合がある。後述する処理においては輪郭とみなせる閉曲線で囲まれた領域を抽出する工程があるが、このように画像端で輪郭が途切れているオブジェクトの抽出漏れを回避するために、画像端補正が実行される。 FIG. 4 is a flow chart showing the sphere extraction process. First, one frame image is selected (step S301), and image edge correction is performed on the selected frame image If (step S302). As shown in FIG. 2, an object in the image near the edge of the frame image If may be partly over the edge of the image and not entirely within the image. In the processing to be described later, there is a step of extracting an area surrounded by a closed curve that can be regarded as a contour, but in order to avoid missing an object whose contour is interrupted at the edge of the image, image edge correction is performed. .

図5は画像端補正工程を説明するための図である。図5(a)に示すように、フレーム画像Ifの周縁部を取り囲むように、1画素分の幅を有する額縁状の領域Rfを設ける。この領域の画素値(輝度値)は背景BGと同程度、またはこれより低濃度(高輝度)となるように設定される。例えば濃度0(すなわち最大輝度の白色)とすることができる。この領域Rfは、画像の端部に相当する画素の画素値を上記値に転換することによって設けられてもよく、また画像の端部の外側に上記画素値を有する仮想的な画素を付加することにより設けられてもよい。 FIG. 5 is a diagram for explaining the image edge correction process. As shown in FIG. 5A, a frame-shaped region Rf having a width of one pixel is provided so as to surround the peripheral portion of the frame image If. The pixel value (luminance value) of this area is set to be approximately the same as or lower in density (higher luminance) than the background BG. For example, the density can be 0 (ie, white with maximum brightness). This region Rf may be provided by converting the pixel values of pixels corresponding to the edges of the image to the above values, and adding virtual pixels having the above pixel values outside the edges of the image. may be provided by

処理後のフレーム画像Ifでは、図5(b)に示すように、画像端部の画素は全て背景濃度と同じまたはこれより低濃度となっている。このため、画像端にかかる(例えば図中に符号A、Bで示す)オブジェクトも、画像内で閉じた輪郭を有することになる。これにより、輪郭の途切れに起因するオブジェクトの抽出漏れが回避される。なお図5(b)では、画像端の様子を見やすくするためにフレーム画像Ifの周縁部を点線で示している。 In the processed frame image If, as shown in FIG. 5(b), all the pixels at the edges of the image have the same or lower density than the background density. For this reason, objects (for example, indicated by symbols A and B in the figure) that overlap the edges of the image also have closed contours in the image. This avoids the omission of object extraction due to the discontinuity of the contour. Note that in FIG. 5B, the peripheral edge of the frame image If is indicated by a dotted line in order to make it easier to see the edge of the image.

図4に戻って、こうして画像端が補正されたフレーム画像Ifに対して、輝度値の変化が大きな箇所を検出するエッジ検出処理が実行される(ステップS303)。エッジ検出処理としては公知の方法、例えばSobelフィルタに代表される空間フィルタ処理を適用することができる。 Returning to FIG. 4, edge detection processing is executed to detect portions where luminance values change significantly on the frame image If whose image edges have been corrected in this way (step S303). As the edge detection processing, a known method such as spatial filtering represented by a Sobel filter can be applied.

図6はエッジ検出処理後の画像の例を示す図である。図2に示すフレーム画像Ifに対応するエッジ検出処理後の画像(エッジ画像)Ieでは、画像内のオブジェクトと背景との境界、つまりオブジェクトの外周部に相当する部分が強調されエッジとして検出される。図に符号Aを付して例示するように、オブジェクトの内部テクスチャに起因するエッジも含まれ得る。また、図に符号Bを付して例示するように、予め画像端補正を行っているため、画像端にかかるオブジェクトについても閉じた輪郭が形成される。なお、検出された輪郭の微小な欠落を補償するために適宜の補正処理、例えば膨張収縮処理がさらに実行されてもよい。 FIG. 6 is a diagram showing an example of an image after edge detection processing. In the image (edge image) Ie after edge detection processing corresponding to the frame image If shown in FIG. 2, the boundary between the object and the background in the image, that is, the portion corresponding to the outer periphery of the object is emphasized and detected as an edge. . Edges due to internal textures of the object may also be included, as exemplified by the letter A in the figure. In addition, since the image edge correction is performed in advance, as exemplified by the symbol B in the figure, a closed contour is also formed for the object at the image edge. Appropriate correction processing, such as expansion and contraction processing, may be further performed to compensate for minute omissions in the detected contour.

こうして検出されたエッジが閉曲線をなすとき、該閉曲線は画像中のオブジェクトの輪郭である可能性が高い。そこで、エッジ画像Ieにおいて閉曲線で囲まれた輪郭の内部領域を抽出しこれを塗りつぶすことで(ステップS304)、輪郭の内部と外部とを区分する。ここでは、塗りつぶされた輪郭内部の領域を「輪郭領域」と称し、塗りつぶし後の画像を「輪郭領域画像」と称することとする。 When the edges thus detected form a closed curve, the closed curve is highly likely to be the contour of an object in the image. Therefore, by extracting the inner region of the contour surrounded by the closed curve in the edge image Ie and painting it (step S304), the inside and the outside of the contour are distinguished. Here, the region inside the filled contour is called "contour region", and the image after filling is called "contour region image".

図7は輪郭領域画像の一例を示す図である。この輪郭領域画像Irは、図6のエッジ画像Ieにおいて閉曲線で囲まれた領域を淡色(白)で、それ以外の領域を濃色(黒)で塗り分けた画像に相当する。なお、ここでは一般的な画像処理の例に倣いこのような塗り分けとしているが、濃淡が逆であってもよい。以下の処理においても同様である。 FIG. 7 is a diagram showing an example of a contour area image. This contour area image Ir corresponds to an image in which the area surrounded by the closed curve in the edge image Ie of FIG. Here, the colors are divided according to the example of general image processing, but the shading may be reversed. The same applies to the following processing.

輪郭領域画像Irでは、閉曲線で囲まれたオブジェクトの内部が全て塗りつぶされるため、オブジェクトの内部テクスチャに対応する情報は失われる。また、図2に示す元のフレーム画像Ifと対比すると、図7に符号A、Bを付して例示するように、本来は背景部分であるが、周囲全てをオブジェクトによって取り囲まれているために塗りつぶされてしまう領域も生じる。すなわち、本来はオブジェクトの外部とされるべき背景領域がオブジェクトの内部として扱われることとなってしまう。 In the contour area image Ir, the inside of the object surrounded by the closed curve is completely painted out, so the information corresponding to the internal texture of the object is lost. Also, when compared with the original frame image If shown in FIG. 2, as illustrated with reference numerals A and B in FIG. Some areas will be filled in. That is, the background area, which should be outside the object, is treated as inside the object.

この問題を回避するための処理が次に実行される。すなわち、元のフレーム画像Ifを適宜の閾値により2値化した画像が生成され(ステップS305)、さらにこの2値化画像と輪郭領域画像Irとを論理積合成した合成画像が生成される(ステップS306)。2値化されるフレーム画像Ifとしては、前処理後のものが用いられることが好ましい。なお2値化のための閾値については固定値とせず、例えばユーザ設定パラメータとして設定変更が可能な状態としてもよい。 Actions are then taken to avoid this problem. That is, an image is generated by binarizing the original frame image If using an appropriate threshold value (step S305), and a composite image is generated by logically synthesizing the binarized image and the contour area image Ir (step S305). S306). As the frame image If to be binarized, one after preprocessing is preferably used. Note that the threshold value for binarization may not be a fixed value, but may be changed as a user setting parameter, for example.

図8は2値化画像の一例を示す図である。より具体的には、図8は、図2のフレーム画像Ifに前処理を施した画像を適宜の閾値で2値化し、閾値より高濃度の領域を淡色(白)で、より低濃度の領域を濃色(黒)で塗り分けることで得られる2値化画像Ibを示している。2値化画像Ibでは、オブジェクトの輪郭部分およびその内部の高濃度領域が白色で表される一方、元のフレーム画像Ifにおいて低濃度であった、背景領域やオブジェクト内の一部の低濃度領域が黒色で表される。図8に符号A、Bを付して例示するように、周囲をオブジェクトで囲まれた背景部分も黒色で表される。なお、画像Ibの左上隅および右上隅の本来は背景である部分に現れている白色の領域は、背景濃度のムラが2値化の結果に影響を及ぼす可能性があることを象徴的に示したものである。 FIG. 8 is a diagram showing an example of a binarized image. More specifically, in FIG. 8, the image obtained by preprocessing the frame image If in FIG. is shown in a dark color (black). In the binarized image Ib, the contour portion of the object and the high-density area inside it are represented in white, while the background area and some low-density areas inside the object, which were low-density in the original frame image If, are represented in white. is represented in black. As illustrated with symbols A and B in FIG. 8, the background portion surrounded by objects is also represented in black. Note that the white areas appearing in the upper left corner and upper right corner of image Ib, which are originally the background, symbolically indicate that background density unevenness may affect the result of binarization. It is a thing.

図9は論理積合成画像の一例を示す図である。図7に示す輪郭領域画像Irと図8に示す2値化画像Ibとを論理積合成すると、図9に示す合成画像Isのように、元の両画像においてともに白色であった領域は白色で、それ以外の領域は黒色で表されることになる。これにより、図7の輪郭領域画像Irでは白色に塗りつぶされていた、オブジェクトで囲まれた背景領域が、他の背景部分と同じ黒色で表されることになる。一方で、2値化画像Ibに含まれていたオブジェクトの内部テクスチャに起因する黒色領域は合成画像Isにおいても保存されている。 FIG. 9 is a diagram showing an example of a logical product synthesized image. If the contour area image Ir shown in FIG. 7 and the binarized image Ib shown in FIG. , and other areas are represented in black. As a result, the background area surrounded by the object, which was filled in white in the outline area image Ir of FIG. 7, is represented in the same black color as the other background portions. On the other hand, the black area due to the internal texture of the object contained in the binarized image Ib is also preserved in the synthesized image Is.

したがって、図9に示す合成画像Isは、オブジェクトに囲まれた背景を正しく背景として認識するという意味において、またオブジェクトの内部テクスチャに関する情報を保存するという意味において、図7の輪郭領域画像Irよりも有効なものであるといえる。また、合成画像Isは、明確なエッジとして検出された輪郭によって、背景の濃度ムラの影響を受けずオブジェクトと背景との境界が画定されるという意味において、図8の2値化画像Ibよりも有効なものであるといえる。つまり、合成画像Isは、画像中のオブジェクトと背景とを区分するという目的において、輪郭抽出に基づく方法の持つ利点と、2値化に基づく方法の持つ利点とを併せ持ったものである。 Therefore, the synthesized image Is shown in FIG. 9 is more accurate than the outline region image Ir shown in FIG. It can be said that it is effective. In addition, the synthesized image Is is more accurate than the binarized image Ib in FIG. 8 in the sense that the contours detected as clear edges define the boundary between the object and the background without being affected by the density unevenness of the background. It can be said that it is effective. In other words, the composite image Is combines the advantages of the contour extraction-based method and the binarization-based method for the purpose of separating the object and the background in the image.

ここまでの処理により、画像内でオブジェクトが占める領域と背景領域とが的確に区別される。しかしながら、前述したように、画像内のオブジェクトには、本実施形態の処理対象であるスフェア以外の不要なオブジェクトも含まれ、また複数のオブジェクトが画像内で接触、結合している場合がある。このため、不要オブジェクトの除去および結合したオブジェクトの分割のための処理が必要である。 Through the processing up to this point, the area occupied by the object in the image and the background area are accurately distinguished. However, as described above, the objects in the image include unnecessary objects other than the sphere, which is the object of processing in this embodiment, and there are cases where a plurality of objects are in contact with each other and combined in the image. Therefore, processing for removing unnecessary objects and dividing combined objects is required.

この目的のために、画像内の各オブジェクトの構造解析を行う。具体的には、ステップS306で生成された合成画像Isに対し距離変換が実行される(ステップS307)。2次元2値画像における距離変換は、汎用の画像処理ソフトウェアでも実行可能な一般的な画像処理であり、画像内の各画素を当該画素から最も近い黒色画素までの距離によって表すというものである。 For this purpose, a structural analysis of each object in the image is performed. Specifically, distance conversion is performed on the synthesized image Is generated in step S306 (step S307). Distance transform in a two-dimensional binary image is general image processing that can be executed even with general-purpose image processing software, and represents each pixel in the image by the distance from the pixel in question to the nearest black pixel.

この実施形態において処理対象となる合成画像Isでは、背景に対応する画素において距離値0、背景画素に隣接しオブジェクトの輪郭に対応する画素において距離値1を取り、オブジェクト内部の画素ほど背景領域から遠ざかるため距離値は大きくなる。画像内の各画素の画素値を距離値に置き換え、例えば距離値が大きい画素ほど高い輝度値によって表すようにすれば、背景からの距離を濃淡で表した距離画像が得られる。 In the synthesized image Is to be processed in this embodiment, a pixel corresponding to the background has a distance value of 0, a pixel adjacent to the background pixel and corresponding to the contour of the object has a distance value of 1, and pixels inside the object have a distance value of 1. As it moves away, the distance value increases. If the pixel value of each pixel in the image is replaced with a distance value and, for example, a pixel with a larger distance value is represented by a higher luminance value, a distance image can be obtained in which the distance from the background is represented by gradation.

図10は距離画像の一例を示す図であり、この距離画像Idは図9に示す合成画像Isを距離変換した結果を示すものである。距離変換により、合成画像Isは、背景からの距離が各画素の輝度値に反映された距離画像Idが得られる。距離画像Idは、背景部分が暗く、オブジェクトの周縁部から内部に向かうにつれて高輝度となるグレースケール画像である。したがって、面積が大きく円形に近いオブジェクトでは中央部の距離値が大きく、距離画像では輝度が高く(明るく)なる。一方、面積の小さいオブジェクトや細いオブジェクト、周囲の凹凸の大きいオブジェクト等では中央部の距離値は小さく、したがって輝度値が低く(暗く)なる。 FIG. 10 is a diagram showing an example of a distance image, and this distance image Id shows the result of distance transforming the synthesized image Is shown in FIG. Through distance conversion, a distance image Id in which the distance from the background is reflected in the luminance value of each pixel is obtained for the synthetic image Is. The distance image Id is a grayscale image in which the background portion is dark and the luminance increases from the periphery of the object toward the inside. Therefore, an object that has a large area and is nearly circular has a large distance value in the center, and the luminance of the distance image is high (bright). On the other hand, an object with a small area, a thin object, or an object with large unevenness in the surrounding area has a small distance value in the central portion, so the luminance value is low (dark).

処理対象物であるスフェアSpは、画像内で比較的大きく円形に近い形状を有する。したがって当該オブジェクトの内部には比較的大きな距離値を有する画素が存在する。一方、浮遊細胞等の小さなオブジェクトでは、オブジェクト内の各画素の距離値はより小さい。このことを利用して、画像内の各オブジェクトはスフェアSpとそれ以外の不要オブジェクトとに区別され、不要オブジェクトは距離画像Idおよび合成画像Isから消去される(ステップS308)。 The sphere Sp, which is the object to be processed, has a relatively large shape close to a circle in the image. Therefore, there are pixels with relatively large distance values inside the object. On the other hand, for small objects such as floating cells, the distance value for each pixel within the object is smaller. Using this fact, each object in the image is classified into the sphere Sp and other unnecessary objects, and the unnecessary objects are deleted from the range image Id and the synthesized image Is (step S308).

図11は距離変換結果に基づく不要オブジェクト消去の概念を示す図である。図11(a)に示すように、距離画像Idの各画素の位置を座標(X,Y)で表し、各画素の距離値を座標平面に対しプロットした場合を考える。なお、図ではX座標およびY座標を1つの座標軸で表しているが、より厳密にはXY座標平面に対し距離値の軸が直交する形態となる。 FIG. 11 is a diagram showing the concept of removing unnecessary objects based on distance transform results. As shown in FIG. 11A, the position of each pixel in the distance image Id is represented by coordinates (X, Y), and the distance value of each pixel is plotted on the coordinate plane. In the drawing, the X coordinate and the Y coordinate are represented by one coordinate axis, but more strictly, the distance value axis is perpendicular to the XY coordinate plane.

このように表現したとき、距離値0の領域は背景に対応し、背景内で孤立した1つのオブジェクトは、0より大きい距離値を有する画素が連続する領域として表される。図11(a)の例では、2つのオブジェクトObj1、Obj2が互いに孤立して存在する。比較的サイズが大きく、また凹凸の少ないまとまった形状を有するオブジェクトObj1では距離値のピークが大きく、より小さい細いオブジェクトObj2ではピークが小さくなる。このことから、距離値に対し適宜の閾値Vthを設定し、距離値のピーク値が閾値Vthより大きいオブジェクトObj1についてはスフェアとみなして画像に残す一方、距離値のピーク値が閾値Vthより小さいオブジェクトObj2については不要オブジェクトとみなして画像から消去する。 When expressed in this way, a region with a distance value of 0 corresponds to the background, and one isolated object in the background is represented as a region in which pixels having a distance value greater than 0 are continuous. In the example of FIG. 11A, two objects Obj1 and Obj2 are isolated from each other. The object Obj1, which is relatively large in size and has a uniform shape with few unevenness, has a large peak of the distance value, and the smaller, thin object Obj2 has a small peak. For this reason, an appropriate threshold Vth is set for the distance value, and the object Obj1 whose peak distance value is greater than the threshold Vth is regarded as a sphere and left in the image. Obj2 is regarded as an unnecessary object and deleted from the image.

このようにすれば、比較的大きなオブジェクト、円形に近いオブジェクト等は画像に残る一方、小さなオブジェクトや細いオブジェクト、周囲の凹凸の激しいオブジェクト等については画像から消去される。図11(b)は不要オブジェクト消去後の距離画像Idaの一例を示している。符号A~Dを付した位置では、図10に現れていた小さなオブジェクトや細長いオブジェクトが現れていない。すなわち、このようなオブジェクトは消去されている。画像の状態に応じた的確な不要オブジェクト除去を可能とするために、上記閾値Vthについては固定値とせず、例えばユーザ設定パラメータとして設定変更が可能な状態としておくことが好ましい。 In this way, relatively large objects, nearly circular objects, etc. remain in the image, while small objects, thin objects, and objects with sharply uneven surroundings are erased from the image. FIG. 11(b) shows an example of the distance image Ida after removing unnecessary objects. At the positions labeled A to D, the small objects and elongated objects that appeared in FIG. 10 do not appear. That is, such objects have been erased. In order to enable accurate unnecessary object removal according to the state of the image, it is preferable that the threshold value Vth is not set to a fixed value, but set to be changeable as a user setting parameter, for example.

このようにして、不要オブジェクトを除外した距離画像とこれに対応する中心画像Icaとを作成することができる(ステップS309)。ここでいう中心画像Icaは、距離画像Idaにおいて、距離値が極大となり、かつその極大値が所定値より大きい画素の位置を表す画像である。 In this way, a distance image from which unnecessary objects are excluded and a central image Ica corresponding thereto can be created (step S309). The central image Ica here is an image representing the position of a pixel having a maximum distance value and having a maximum value larger than a predetermined value in the distance image Ida.

図12は中心画像の一例を示す図である。より具体的には、図12(a)は図11(b)に示す距離画像Idaに対応する中心画像Icaである。また、図12(b)は、図12(a)の中心画像Icaを、図9に示す合成画像Isに重畳した参考図である。なお、図12(b)においては、中心画像Icaにより示される各点の視認性を高めるため、その位置を黒丸印で示す。 FIG. 12 is a diagram showing an example of a central image. More specifically, FIG. 12(a) is the central image Ica corresponding to the distance image Ida shown in FIG. 11(b). 12(b) is a reference diagram in which the central image Ica of FIG. 12(a) is superimposed on the synthesized image Is shown in FIG. In addition, in FIG. 12(b), in order to enhance the visibility of each point indicated by the central image Ica, the position is indicated by a black circle mark.

これらの図からわかるように、また図12(b)に符号A,Bを付して例示したように、円形に近いオブジェクトにあっては、このような画素は当該オブジェクトの中心に近い位置にある。この意味において、中心画像は各オブジェクトの中心位置を表しているといえる。そこで、中心画像Icaに現れる点を「中心点」と称することとする。図12(b)の画像には中心点を含まないオブジェクトも含まれているが、これらは不要オブジェクトとみなされるものであり、中心点の導出対象から除外されている。 As can be seen from these figures, and as exemplified with symbols A and B in FIG. be. In this sense, the central image can be said to represent the central position of each object. Therefore, a point appearing in the central image Ica is called a "central point". Although the image in FIG. 12(b) also includes objects that do not include the center point, these are considered unnecessary objects and are excluded from targets for deriving the center point.

図12(b)に符号C,Dを付して例示するように、複数のオブジェクトが結合しているとみられる複雑な形状のオブジェクトや、符号Eを付した顕著なくびれを有するオブジェクトでは、1つのオブジェクトに複数の中心点が存在する。言い換えれば、このように複数の中心点が存在するオブジェクトは、中心点の数に対応する複数のオブジェクトが結合したものと考えられる。 As exemplified by symbols C and D in FIG. An object has multiple center points. In other words, an object having multiple center points is considered to be a combination of multiple objects corresponding to the number of center points.

そこで、複数の中心点が存在するオブジェクトについては、それらの中心点の間に適宜の境界線を設定することで、それぞれ中心点を1つずつ有するオブジェクトに分割する。こうすることで、結合したオブジェクトを分割することができる。このような考え方は、「分水嶺(Watershed)法」と呼ばれるオブジェクト分割のための画像処理のものに他ならない。すなわち、距離変換と不要オブジェクト消去とにより得られた距離画像Idaおよび中心画像Icaの情報に基づき、合成画像Isに対し分水嶺法によるオブジェクト分割を実行することで(ステップS310)、画像内で結合するオブジェクトが分割される。 Therefore, an object having a plurality of center points is divided into objects each having one center point by setting appropriate boundary lines between the center points. By doing this, you can split a combined object. Such a concept is nothing but an image processing for object segmentation called "watershed method". That is, based on the information of the distance image Ida and the central image Ica obtained by distance transformation and elimination of unnecessary objects, object division is performed on the composite image Is by the watershed method (step S310), and the images are combined within the image. Object is split.

図13はオブジェクト分割の概念を示す図である。図13(a)に模式的に示すように、2つの中心点C1、C2を有するオブジェクトObj3は、それらの中心点C1、C2の間に、破線で例示する境界線を設定することで2つに分割される。この境界線を適切に設定するための画像処理アルゴリズムの1つが分水嶺法である。3以上の中心点を含むオブジェクトについても同様にすることができる。 FIG. 13 is a diagram showing the concept of object division. As schematically shown in FIG. 13(a), an object Obj3 having two center points C1 and C2 is divided into two by setting a boundary line illustrated by a dashed line between the center points C1 and C2. divided into One image processing algorithm for properly setting this boundary is the watershed method. The same can be done for objects containing more than two center points.

図13(b)はオブジェクト分割後の画像の例であり、より具体的には、図11(b)の距離画像Idaおよび図12(a)の中心画像Icaの情報に基づく分水嶺法により、図9に示す合成画像Isをオブジェクト分割して得られたオブジェクトの輪郭を示す画像Ioである。ただし、予め合成画像Isから不要オブジェクトは消去されているものとする。符号A~Cを付して例示するように、合成画像Isでは結合していた複数のオブジェクトが分離され、また符号Dを付して例示するように、顕著なくびれを有するオブジェクトもそのくびれ部分から2つに分割される。こうして得られた1つ1つのオブジェクトは、それぞれ1つのスフェアとみなすことができる。 FIG. 13(b) is an example of an image after object division. 9 is an image Io showing the outline of an object obtained by dividing the composite image Is shown in FIG. 9 into objects. However, it is assumed that unnecessary objects have been previously deleted from the synthesized image Is. As exemplified by symbols A to C, a plurality of objects that were combined in the synthesized image Is are separated, and as exemplified by symbol D, an object having a conspicuous constriction is also separated from its constricted portion. is divided into two from Each object thus obtained can be regarded as one sphere.

このようにして1つのフレーム画像Ifから抽出されたスフェアSpについてはインデックスが作成される(ステップS311)。例えば各スフェアSpに付した固有の識別記号と、その代表点(例えば中心)の位置を表す情報とを関連付けたインデックスを作成することができる。その他にも、例えば各スフェアSpの面積や輪郭の形状、周囲長などを表す情報をインデックスに含めてもよい。 An index is created for the spheres Sp extracted from one frame image If in this way (step S311). For example, it is possible to create an index that associates a unique identification symbol attached to each sphere Sp with information indicating the position of its representative point (for example, center). In addition, the index may include information representing, for example, the area of each sphere Sp, the contour shape, the perimeter, and the like.

こうして1つのフレーム画像Ifについてスフェア抽出が終了する。次に処理すべきフレーム画像がある場合には(ステップS312においてYES)、ステップS301からの処理を繰り返すことで、各フレーム画像が順次処理される。最後のフレーム画像まで処理が終了すれば(ステップS312においてNO)、フレーム抽出処理は完了する。 In this way, sphere extraction is completed for one frame image If. If there is a frame image to be processed next (YES in step S312), each frame image is sequentially processed by repeating the process from step S301. If the processing is completed up to the last frame image (NO in step S312), the frame extraction processing is completed.

上記したステップS301~S311の処理を各フレーム画像Ifについて一律に実行することで、当該フレーム画像If中のスフェアSpを抽出することが可能である。この場合、複数のフレーム画像からそれぞれ抽出されるスフェアの間に何ら関連付けはなされない。しかしながら、実際には、小さな時間差で撮像された2つの画像でそれぞれ抽出されるスフェアは、ほぼ1対1の関係で関連付けることができる。言い換えれば、1つの画像に含まれるスフェアの各々は、多少の位置や形状の変化はあるとしても、他の1つの画像にもほぼ同様の位置に同じような形状で存在しているはずである。 By uniformly executing the processing of steps S301 to S311 for each frame image If, it is possible to extract the sphere Sp in the frame image If. In this case, no association is made between spheres extracted from a plurality of frame images. However, in practice, spheres extracted from two images captured with a small time difference can be associated in a substantially one-to-one relationship. In other words, each of the spheres contained in one image should be present in the other image at approximately the same position and in the same shape, even if there are some changes in position and shape. .

スフェアの拍動を検出するという目的に鑑みれば、1つのスフェアの位置が経時的にどう変化するかを追跡する必要がある。したがって、1つの画像に含まれるスフェアが他の画像中のどのスフェアに対応するかを把握しなければならない。このような観点から、第2フレーム以降の画像に対する処理は以下のように改変することができる。 For the purpose of detecting sphere beats, it is necessary to track how the position of a single sphere changes over time. Therefore, it is necessary to know which sphere in one image corresponds to which sphere in the other image. From this point of view, the processing for the images of the second and subsequent frames can be modified as follows.

すなわち、改変されたスフェア抽出処理において、第2フレームの画像に対する処理では、ステップS309として記載された距離画像および中心画像の生成が省略される。そして、ステップS310の分水嶺法によるオブジェクト分割においては、第1フレームの画像に対する処理で生成された距離画像および中心画像の情報が使用される。つまり、第2フレームの画像中の各オブジェクトについては、その中心点が第1フレーム画像中のオブジェクトと同じ位置にあるものとみなされる。このようにする理由につき以下に説明する。 That is, in the modified sphere extraction process, the process for the image of the second frame omits the generation of the distance image and the center image described as step S309. Then, in object division by the watershed method in step S310, the information of the distance image and the center image generated by the processing of the image of the first frame is used. That is, each object in the image of the second frame is assumed to have its center point at the same position as the object in the image of the first frame. The reason for doing so will be described below.

図14は異なるフレーム間でのスフェアの対応関係を示す図である。図14(a)は画像中で孤立したスフェアの例を示している。なお、図14(a)はフレーム画像の一部のみを示しており、また点線による格子は画像内でのスフェアの位置を把握しやすくするために加えた仮想的なものである。図左に示す第Nフレームの画像に含まれるスフェアSpは、図右に示す第(N+1)フレームの画像では少し変位した位置に現れる。このため、第(N+1)フレーム画像におけるスフェアSpの中心点C(N+1)は、第Nフレーム画像におけるスフェアSpの中心点C(N)の位置から少し移動していることがある。 FIG. 14 is a diagram showing the correspondence of spheres between different frames. FIG. 14(a) shows an example of isolated spheres in the image. It should be noted that FIG. 14(a) shows only a part of the frame image, and the grid of dotted lines is a virtual one added to make it easier to grasp the position of the sphere in the image. The sphere Sp included in the N-th frame image shown on the left side of the figure appears at a slightly displaced position in the (N+1)-th frame image shown on the right side of the figure. Therefore, the center point C(N+1) of the sphere Sp in the (N+1)th frame image may be slightly displaced from the position of the center point C(N) of the sphere Sp in the Nth frame image.

しかしながら、短い撮像間隔の間での変位量は限定的であり、第Nフレーム画像における中心点C(N)は、第(N+1)フレーム画像におけるスフェアSpの内部に含まれている、またはそれに極めて近い位置にあると予想される。したがって、第(N+1)フレーム画像において中心点C(N)を含むスフェアが、または第(N+1)フレーム画像において中心点C(N)に最も近い位置にあるスフェアが、第Nフレーム画像におけるスフェアと同一であるといえる。このことから、異なるフレーム間で対応するスフェアを相互に関連付けることができる。 However, the amount of displacement during a short imaging interval is limited, and the center point C(N) in the N-th frame image is contained within, or extremely close to, the sphere Sp in the (N+1)-th frame image. expected to be in close proximity. Therefore, the sphere containing the center point C(N) in the (N+1)th frame image or the sphere closest to the center point C(N) in the (N+1)th frame image is the sphere in the Nth frame image. It can be said that they are identical. This allows correlating corresponding spheres between different frames.

図14(b)は画像中で結合したスフェアの例を示している。第Nフレームの画像に2つのスフェアSp1,Sp2が含まれ、これらが画像内で結合しているとする。スフェアSp1,Sp2それぞれの中心点をC1(N),C2(N)とする。また、このときにオブジェクト分割により画定されるスフェア境界線を破線Aによって表す。 FIG. 14(b) shows an example of spheres combined in an image. Assume that the image of the N-th frame contains two spheres Sp1 and Sp2, which are combined within the image. Let C1(N) and C2(N) be the center points of the spheres Sp1 and Sp2, respectively. Also, the dashed line A represents the sphere boundary defined by the object division at this time.

第(N+1)フレームの画像において、図に点線で示すように、スフェアSp2が右方向に変位したとする。このときのスフェアSp2の中心点をC2(N+1)とすると、スフェアSp2の動きに対応して中心点C2(N+1)も右方向に変位していると考えられる。一方、スフェアSp1はほとんど動かず、第(N+1)フレームにおける中心点C1(N+1)は、第Nフレームにおける中心点C1(N)とほぼ同じである。 Assume that the sphere Sp2 is displaced to the right in the image of the (N+1)th frame, as indicated by the dotted line in the drawing. Assuming that the center point of the sphere Sp2 at this time is C2(N+1), it is considered that the center point C2(N+1) is also displaced to the right in response to the movement of the sphere Sp2. On the other hand, the sphere Sp1 hardly moves, and the center point C1(N+1) in the (N+1)th frame is almost the same as the center point C1(N) in the Nth frame.

第(N+1)フレームの画像において、検出される中心点C1(N+1),C2(N+1)の位置に基づきオブジェクト分割を行ったとき、破線Bで示すように、中心点間の距離の増大に起因して境界線も右方向にシフトすることになる。これにより、スフェアSp1が右方向に広がったように見える。しかしながら、実際にはスフェアSp2が動いたのであって、スフェアSp1が占める領域はほぼ変わらない。このようなオブジェクト分割の結果と実態との乖離を抑えるには、第(N+1)フレームにおいても、第Nフレームで特定された中心点C1(N),C2(N)の情報を用いるようにすればよい。 In the image of the (N+1)th frame, when object division is performed based on the positions of the detected center points C1(N+1) and C2(N+1), as indicated by the dashed line B, the distance between the center points increases. As a result, the boundary is also shifted to the right. As a result, the sphere Sp1 appears to spread rightward. However, the sphere Sp2 actually moved, and the area occupied by the sphere Sp1 remained almost unchanged. In order to suppress the divergence between the object division result and the actual state, the information of the center points C1(N) and C2(N) specified in the Nth frame should be used also in the (N+1)th frame. Just do it.

第(N+2)フレーム以降の画像についてオブジェクト分割を行う際に、どのフレームで特定された中心画像の情報を用いるかについてはいくつかの考え方があり得る。例えば、全てのフレームの処理に対して単一のフレーム、例えば第1フレームにおける中心画像の情報を適用することが考えられる。また、第(N+1)フレームの処理に対してその直前に撮像された第Nフレームにおける中心画像の情報を適用することが考えられる。さらに、一定のフレーム数ごとに中心画像を更新し、次の更新までは同じ情報を用いて各フレームの処理を行うようにしてもよい。 There are several possible ways of thinking about which frame to use the information of the central image specified in when object segmentation is performed on the images after the (N+2)th frame. For example, it is conceivable to apply the central image information in a single frame, eg the first frame, to the processing of all frames. Also, it is conceivable to apply the information of the center image in the N-th frame imaged immediately before to the processing of the (N+1)-th frame. Furthermore, the central image may be updated every fixed number of frames, and each frame may be processed using the same information until the next update.

このように、一のフレーム画像に対するオブジェクト分割に際し、異なる時刻に撮像されたフレーム画像の距離情報および中心情報を用いて分水嶺法を実行することにより、それらのフレーム画像間において対応するスフェアの関連付けを行うことができる。例えば各フレーム画像で検出されたスフェアにつきインデックスを作成する際に、対応するスフェアに共通の識別記号を付すようにすれば、画像間でのスフェアの対応関係を明確に記録することができる。 In this way, when segmenting an object for one frame image, by executing the watershed method using the distance information and the center information of the frame images captured at different times, the corresponding spheres can be associated between those frame images. It can be carried out. For example, when creating an index for the spheres detected in each frame image, if a common identification symbol is attached to the corresponding spheres, it is possible to clearly record the correspondence of the spheres between images.

以上のように、本実施形態のスフェア検出処理では、連続撮像された各フレーム画像からスフェアを検出するのに際して、次のような要素技術を含んでいる。まず、画像端にかかるオブジェクトが除外されるのを防止するために、画像の周縁部を背景とみなせる濃度に設定し、画像端にかかるオブジェクトが閉じた輪郭で囲まれるようにする。 As described above, the sphere detection processing of the present embodiment includes the following elemental techniques for detecting spheres from each frame image captured continuously. First, in order to prevent the objects at the edges of the image from being excluded, the peripheral edge of the image is set to a density that can be regarded as the background so that the objects at the edges of the image are surrounded by a closed contour.

また、エッジ検出により元のフレーム画像から抽出されたオブジェクトの輪郭に基づく輪郭領域画像と、フレーム画像を濃度(輝度)に基づいて2値化した2値化画像との論理積合成画像が、画像においてスフェア等のオブジェクトと背景との境界を示すものとされる。これにより、オブジェクトに取り囲まれた背景領域が正しく背景として認識されるようになる。 In addition, a logical AND synthesized image of a contour region image based on the contour of an object extracted from the original frame image by edge detection and a binarized image obtained by binarizing the frame image based on density (luminance) is an image. indicates the boundary between an object such as a sphere and the background. As a result, the background area surrounded by the object can be correctly recognized as the background.

そして、距離変換の結果に基づきスフェアでない可能性の高いオブジェクトを消去し、残るオブジェクトに対し分水嶺法によるオブジェクト分割を実行することで、画像内で結合したスフェアをそれぞれ個別のオブジェクトとして特定することができる。このとき、撮像時刻の異なる画像における距離変換の結果を用いてオブジェクト分割を行うことで、経時的に動きのあるスフェアを画像間で関連付けることができ、また動きのないスフェアと動きのあるスフェアとが結合している場合でも、それらを的確にかつ安定的に分割することができる。 Then, by eliminating objects that are likely not to be spheres based on the results of the distance transformation and performing object segmentation using the watershed method on the remaining objects, it is possible to identify each of the combined spheres in the image as individual objects. can. At this time, by performing object segmentation using the results of distance transformation in images captured at different times, spheres that move over time can be associated between images, and spheres without motion and spheres with motion can be associated. are combined, they can be divided accurately and stably.

<間引き処理>
図15は間引き処理の原理を示す図である。図15(a)に示すように、試料を所定のフレームレートで連続撮像することにより、一定の時間間隔で撮像された複数の原画像Ig1,Ig2,…が取得される。例えばフレームレートが60FPSであるとき、時系列において隣り合う、つまり撮像時間間隔が最も小さい2つの原画像間の撮像時間間隔は(1/60)秒である。一方で、心筋細胞スフェアの拍動周期は概ね1秒程度であるため、隣り合う2つの原画像の間では拍動に起因するスフェアの変位は極めて小さい。拍動に起因するスフェアの変位を効率よくかつ確実に検出するためには、拍動周期を考慮して画像の間引きを行うことが有効である。
<Thinning process>
FIG. 15 is a diagram showing the principle of thinning processing. As shown in FIG. 15(a), a plurality of original images Ig1, Ig2, . For example, when the frame rate is 60 FPS, the imaging time interval between two original images that are adjacent in time series, that is, that have the shortest imaging time interval is (1/60) second. On the other hand, since the pulsation cycle of the myocardial cell sphere is approximately one second, the displacement of the sphere due to pulsation is extremely small between two adjacent original images. In order to efficiently and reliably detect the displacement of the sphere caused by the pulsation, it is effective to perform image thinning in consideration of the pulsation period.

例えば1秒の周期で振動するスフェアの変位を検出するためには、フレーム間の撮像時間間隔は1/6秒ないし1/3秒程度が好ましい。この場合、原画像を1/10ないし1/20程度に間引くことになる。この間引きの度合いを以下では「間引き率」と称する。種々の試料に柔軟に対応するために、間引き率については固定値とせず、例えばユーザ設定パラメータとして設定変更が可能な状態としておくことが好ましい。なお、この場合の原画像Ig1,Ig2,…としては、例えばスフェア検出工程における前処理後のフレーム画像を用いることができる。 For example, in order to detect the displacement of a sphere vibrating with a period of 1 second, the imaging time interval between frames is preferably about 1/6 second to 1/3 second. In this case, the original image is thinned out to about 1/10 to 1/20. The degree of this thinning is hereinafter referred to as "thinning rate". In order to flexibly deal with various samples, it is preferable that the thinning rate is not set to a fixed value, but set to be changeable as a user setting parameter, for example. In this case, the original images Ig1, Ig2, .

図15(b)に示すように、原画像Ig1,Ig2,…から、間引き率に応じた一定のサンプリング間隔でサンプリング抽出した画像を時系列に沿って再配置することで、間引きが実現される。間引き後の画像群If1,If2,If3,…は、元のフレームレートに間引き率の逆数を乗じた値を実効的なフレームレートとする連続画像とみなすことができる。以下の処理は、これらの各画像を実質的なフレーム画像として実行される。そこで、以下の処理の説明において単に「フレームレート」および「フレーム画像」というとき、これらは間引き後のものを指すこととする。 As shown in FIG. 15(b), thinning is realized by rearranging the images sampled from the original images Ig1, Ig2, . . A group of images If1, If2, If3, . The following processing is executed using each of these images as a substantial frame image. Therefore, in the following explanation of the processing, when simply referring to "frame rate" and "frame image", these refer to those after thinning.

<拍動検出処理>
次に、上記のようにして検出された各スフェアについての拍動検出処理について説明する。本実施形態の拍動検出処理は、図1に示すように、動き検出工程(ステップS105)および拍動判定工程(ステップS106)を備えている。これらの工程は、画像中のスフェアの各々について実行される。
<Beat detection processing>
Next, pulsation detection processing for each sphere detected as described above will be described. The pulsation detection process of this embodiment includes a motion detection step (step S105) and a pulsation determination step (step S106), as shown in FIG. These steps are performed for each sphere in the image.

図16は動き検出工程を示すフローチャートである。また、図17は基準画像と比較画像との関係を示す図である。この動き検出工程においては、間引き後のフレーム画像If1,If2,…から選択した1つの画像を基準画像とし(ステップS401)、これと撮像時刻が近いが異なる他の1つの画像を比較画像として(ステップS402)、両画像間におけるスフェアの変位を求め、その結果に基づき両画像の撮像時刻の間でのスフェアの動きを検出する。まず、基準画像と比較画像との関係につき、図17を参照して説明する。 FIG. 16 is a flow chart showing the motion detection process. Also, FIG. 17 is a diagram showing the relationship between the reference image and the comparison image. In this motion detection step, one image selected from frame images If1, If2, . Step S402), the displacement of the sphere between the two images is obtained, and based on the result, the movement of the sphere between the imaging times of the two images is detected. First, the relationship between the reference image and the comparison image will be described with reference to FIG.

スフェアの拍動周期に応じて適宜に間引かれたフレーム画像If1,If2,…における動き検出では、まず最初の画像If1が基準画像とされる。そして、これより後に撮像された画像If2,If3,If4を順次比較画像に設定し、それぞれ基準画像If1との間でスフェアの変位が求められる。 In the motion detection in the frame images If1, If2, . Then, images If2, If3, and If4 picked up after this are sequentially set as comparison images, and the displacement of the sphere between each image and the reference image If1 is obtained.

時系列において隣り合う画像間での比較により、フレーム画像間の撮像時間間隔に等しい時間におけるスフェアの動きがわかる。ただし、スフェアの拍動周期は必ずしも一定ではなく、またスフェアごとに独立である。このため、基準画像と比較画像との撮像時間の差が、拍動に起因するスフェアの動きを捕捉するのに最適なものでない場合があり得る。例えば、拍動するスフェアが2つの画像の間で偶然に同じ位置にあるということが起こり得る。このことに起因する検出漏れを回避するために、比較画像を順次入れ替え、数種類の時間間隔でスフェアの変位を検出する。そして、基準画像と比較画像とのいずれかの組み合わせにおいてスフェアの変位が認められると動きありと判断するようにすれば、より確実な動き検出が可能となる。 A comparison between adjacent images in time series reveals the movement of the sphere for a period of time equal to the imaging time interval between frame images. However, the beating period of the spheres is not necessarily constant, and is independent for each sphere. Therefore, the difference in imaging time between the reference image and the comparative image may not be optimal for capturing the motion of the sphere caused by the pulsation. For example, it may happen that the beating sphere happens to be in the same position between the two images. In order to avoid detection omissions caused by this, the comparison images are sequentially replaced, and the displacement of the sphere is detected at several kinds of time intervals. Then, if it is determined that there is motion when the displacement of the sphere is recognized in any combination of the reference image and the comparison image, more reliable motion detection becomes possible.

ここでは1つの基準画像に対し3つの比較画像を設定することとしているが、比較画像として用いる画像の数はこれに限定されず任意である。ただし、比較画像の数を増やすと演算処理量も増大し実行装置の負荷が大きくなる、そのため、試料の実状に応じて比較画像の数と間引き率とを適切に設定することで、上記のような検出漏れの防止を図ることが望まれる。 Here, three comparative images are set for one reference image, but the number of images used as comparative images is not limited to this and is arbitrary. However, if the number of comparison images is increased, the amount of calculation processing also increases and the load on the execution device increases. It is desirable to prevent such omissions in detection.

基準画像If1に対し3つの比較画像を適用した後、次に基準画像を画像If2に切り替え、これに対しても同様に3つの画像If3,If4,If5を順次比較画像に設定してスフェアの変位が求められる。その後も同様に、基準画像を画像If3,If4,…と順番に切り替えながら、その都度3つの比較画像を順次設定して変位を求める。図16のフローチャートでは、ループ処理によってこれが実現されている。このようにすることで、種々の周期で拍動するスフェアの動きを漏れなく検出することが可能となる。 After applying the three comparison images to the reference image If1, the reference image is then switched to the image If2, and similarly, the three images If3, If4, and If5 are sequentially set as the comparison images to perform the displacement of the sphere. is required. After that, similarly, while switching the reference image to the images If3, If4, . In the flowchart of FIG. 16, this is achieved by loop processing. By doing so, it is possible to detect the movement of the sphere that pulsates at various cycles without omission.

図16に戻り動き検出工程の処理内容についての説明を続ける。一の基準画像および一の比較画像が選出されると(ステップS401,S402)、両画像間のコントラストの違いに起因する検出誤差を低くするために、コントラスト補正が実行される(ステップS403)。補正処理としては公知のものを適用可能である。また、補正が必要なければ省くことも可能である。 Returning to FIG. 16, the description of the processing contents of the motion detection step is continued. When one reference image and one comparison image are selected (steps S401 and S402), contrast correction is performed to reduce detection errors due to differences in contrast between the two images (step S403). A known correction process can be applied. Also, if correction is not necessary, it can be omitted.

続いて、基準画像と比較画像との差分画像が生成される(ステップS404)。差分画像はさらに2値化される(ステップS405)。両画像間でスフェアに動きがなければ画像内容に変化はなく、差分はゼロとなるはずである。一方、変位が大きければ差分も大きくなる。したがって、差分画像を2値化した画像は変位の大きさを定量的に表すための情報を有している。 Subsequently, a difference image between the reference image and the comparison image is generated (step S404). The differential image is further binarized (step S405). If there is no motion in the sphere between the two images, there should be no change in image content and the difference should be zero. On the other hand, the larger the displacement, the larger the difference. Therefore, the binarized image of the difference image has information for quantitatively representing the magnitude of displacement.

図18は基準画像と比較画像との差分を示す画像の例である。互いに対応するスフェアSpを含む基準画像I1と比較画像I2とを考える。図において点線による格子は画像内でのスフェアの位置を把握しやすくするために加えた仮想的なものである。基準画像I1と比べると、比較画像I2におけるスフェアSpは、その外形形状を変化させながらわずかに右方向に変位している。これらの差分を求めると画像I3が得られる。差分画像I3では、スフェアSpの外周部の変位に起因する概ね環状の像と、その内部に含まれるスフェア内部のテクスチャの変化に起因する像とが現れている。実際の差分画像は多階調画像であり、定量的な取り扱いを容易にするために2値化することで、2値化画像I4が得られる。 FIG. 18 is an example of an image showing the difference between the reference image and the comparison image. Consider a reference image I1 and a comparison image I2 containing spheres Sp corresponding to each other. In the figure, the dotted grid is a virtual one added to make it easier to grasp the position of the sphere in the image. Compared to the reference image I1, the sphere Sp in the comparative image I2 is slightly displaced to the right while changing its outer shape. Finding the difference between these yields image I3. In the difference image I3, there appear an approximately annular image caused by the displacement of the outer periphery of the sphere Sp and an image caused by the change in the texture inside the sphere contained therein. An actual difference image is a multi-tone image, and is binarized to facilitate quantitative handling, thereby obtaining a binarized image I4.

2値化画像I4に対し、公知の収縮膨張処理が実行される(ステップS406)。これにより、2値化画像I4から微細な斑点状のノイズ成分が除去される。なお、以下ではノイズ除去後の2値化画像を「収縮膨張画像」と称し符号I4aにより表すこととする。この2値化画像I4aは、スフェアの外周部の変位に起因する差分像とスフェア内部のテクスチャ変化に起因する差分像とを含む。このうちテクスチャ変化に起因する像は、スフェアの変位量を定量的に求めるに当たっては誤差要因となるものである。その理由は以下の通りである。 A known contraction/expansion process is performed on the binarized image I4 (step S406). As a result, minute speck-like noise components are removed from the binarized image I4. Note that the binarized image after noise removal is hereinafter referred to as a "shrinkage/expansion image" and denoted by reference numeral I4a. This binarized image I4a includes a difference image resulting from the displacement of the outer periphery of the sphere and a difference image resulting from the texture change inside the sphere. Among them, the image caused by the texture change is a factor of error in quantitatively determining the amount of displacement of the sphere. The reason is as follows.

内部テクスチャの変化は、変位に直接関係のない細胞の活動によっても生じる。このため、スフェアが変位せず内部テクスチャのみが変化する場合がある。このような変化が変位と誤認されることがないようにする必要がある。また、仮に内部テクスチャに変化がないとしても、スフェア全体が変位することによって、同一位置の画素同士の差分を求めれば有意な差が現れることとなる。この差の大きさはスフェアの内部構造に依存するから、差分の値は変位量のみならずスフェア内部構造にも影響を受けていることになる。より具体的には、同量の変位であってもスフェアの内部構造によって差分の大きさが変わる。 Changes in internal texture are also caused by cellular activity that is not directly related to displacement. Therefore, the sphere may not be displaced and only the internal texture may change. It is necessary to prevent such changes from being mistaken for displacement. Also, even if the internal texture does not change, the entire sphere is displaced, and if the difference between the pixels at the same position is obtained, a significant difference will appear. Since the magnitude of this difference depends on the internal structure of the sphere, the value of the difference is affected not only by the amount of displacement but also by the internal structure of the sphere. More specifically, even with the same amount of displacement, the magnitude of the difference changes depending on the internal structure of the sphere.

したがって、スフェアの変位のみを定量的に求めるためには、スフェアの内部構造の影響を排除し、スフェア外周部の変位に起因する差分のみを抽出する必要がある。このために、本実施形態では、スフェア外周部の近傍に探索範囲を設定し(ステップS407)、この探索範囲内での画像間の差分を有意な値として求めるという手法が採用されている。以下、探索範囲設定方法の2つの態様につき説明するが、いずれの方法が適用されてもよい。 Therefore, in order to quantitatively obtain only the displacement of the sphere, it is necessary to eliminate the influence of the internal structure of the sphere and extract only the difference caused by the displacement of the outer periphery of the sphere. For this reason, in this embodiment, a method is adopted in which a search range is set in the vicinity of the outer periphery of the sphere (step S407), and the difference between images within this search range is obtained as a significant value. Two aspects of the search range setting method will be described below, but either method may be applied.

図19は探索範囲設定方法の第1の態様を示す図である。より具体的には、図19(a)は探索範囲設定方法の第1の態様を示すフローチャートであり、図19(b)は処理過程における画像の例を模式的に示す図である。図19(a)に示すように、基準画像中のスフェアおよび比較画像中のスフェアのそれぞれにつき輪郭描画が行われる(ステップS501、S502)。各フレーム画像におけるスフェアの輪郭は、先のスフェア抽出処理で既に求められている。こうして求められた輪郭情報に基づき輪郭描画が行われるが、その線幅は1画素より大きな値に設定される。つまり、輪郭を膨張させた状態で描画する。 FIG. 19 is a diagram showing a first mode of the search range setting method. More specifically, FIG. 19(a) is a flow chart showing the first aspect of the search range setting method, and FIG. 19(b) is a diagram schematically showing an example of images in the process. As shown in FIG. 19A, contour drawing is performed for each of the sphere in the reference image and the sphere in the comparison image (steps S501 and S502). The contour of the sphere in each frame image has already been obtained in the previous sphere extraction process. Contour drawing is performed based on the contour information obtained in this manner, and the line width is set to a value larger than one pixel. In other words, the outline is drawn in a dilated state.

輪郭描画の結果、図19(b)に示すように、基準画像および比較画像それぞれにおいて特定されたスフェアの輪郭(点線)を所定の線幅に膨張させて描画した輪郭画像I5、I6が得られる。これらを論理和合成すると(ステップS503)、図19(b)下部に示すように、合成された画像I7には、基準画像および比較画像それぞれにおけるスフェアの輪郭を共に含み、かつそれらの輪郭の周囲まで広がる環状の帯状領域が現れる。この帯状領域が探索範囲Rsとされる。ここでは画像I7を第1の態様における「探索範囲画像」と称することとする。 As a result of the contour drawing, as shown in FIG. 19B, contour images I5 and I6 are obtained by expanding the contours (dotted lines) of the spheres specified in the reference image and the comparative image to a predetermined line width and drawing them. . When these are OR-synthesized (step S503), as shown in the lower part of FIG. A ring-shaped band appears that extends to . This band-shaped area is set as the search range Rs. Here, the image I7 is called a "search range image" in the first mode.

外周部の位置の変化を確実に差分として捕捉するためには、膨張させる輪郭の線幅は太い方が望ましい。その一方で、そうして探索範囲を広くすると、スフェアの外周部の変化以外の変化、例えば外周部に近い領域の内部テクスチャの変化も検出されてしまうことになる。そこで、上記線幅については固定値とせず、例えばユーザ設定パラメータとして設定変更が可能な状態としておくことが好ましい。 In order to reliably capture the change in the position of the outer peripheral portion as a difference, it is desirable that the line width of the contour to be expanded is thick. On the other hand, if the search range is widened in this way, changes other than changes in the outer periphery of the sphere, such as changes in internal textures in regions close to the outer periphery, will also be detected. Therefore, it is preferable that the line width is not set to a fixed value, but set to be changeable as a user setting parameter, for example.

図20は探索範囲設定方法の第2の態様を示す図である。より具体的には、図20(a)は探索範囲設定方法の第2の態様を示すフローチャートであり、図20(b)は処理過程における画像の例を模式的に示す図である。なお、概念の理解を容易にするために、図20(b)ではスフェアの外形として単純な楕円形が用いられている。この方法では、先に求められている輪郭情報に基づき、基準画像、比較画像のそれぞれにつき、スフェアの輪郭内部を表す画像I8,I9を描画する(ステップS601、S602)。そして、それらの画像I8,I9は排他的論理和合成される(ステップS603)。 FIG. 20 is a diagram showing a second aspect of the search range setting method. More specifically, FIG. 20(a) is a flow chart showing the second aspect of the search range setting method, and FIG. 20(b) is a diagram schematically showing an example of images in the process. In order to facilitate understanding of the concept, a simple elliptical shape is used as the outer shape of the sphere in FIG. 20(b). In this method, images I8 and I9 representing the inside of the contour of the sphere are drawn for each of the reference image and the comparison image based on the previously obtained contour information (steps S601 and S602). These images I8 and I9 are subjected to exclusive OR synthesis (step S603).

これにより得られる画像I10では、2つの画像の一方でのみスフェアの輪郭内とされる領域のみが淡色(白)で表され、それ以外の領域は濃色(黒)で表される。この淡色領域を所定幅だけ膨張させる膨張処理を実行すると(ステップS604)、処理後の画像I11には、基準画像および比較画像それぞれにおけるスフェアの輪郭(点線)を共に含み、かつそれらの輪郭の周囲まで広がる環状の帯状領域が現れる。この帯状領域が探索範囲Rsとされる。ここでは画像I11を第2の態様における「探索範囲画像」と称することとする。 In the resulting image I10, only the area within the contour of the sphere in only one of the two images is represented in light color (white), and the other areas are represented in dark color (black). When dilation processing is performed to dilate this light-colored region by a predetermined width (step S604), the post-processing image I11 includes both the outlines (dotted lines) of the spheres in the reference image and the comparison image, and the outlines around those outlines. A ring-shaped band appears that extends to . This band-shaped area is set as the search range Rs. Here, the image I11 is called a "search range image" in the second mode.

こうしていずれかの態様の探索範囲設定方法により生成される、探索範囲Rsを表す探索範囲画像をマスクとして、収縮膨張画像I4aに作用させる。このことは、収縮膨張画像I4aと探索範囲画像I7または探索範囲画像I11とを論理積合成することと等価である(ステップS408)。 The search range image representing the search range Rs generated by any one of the search range setting methods is used as a mask to act on the eroded and expanded image I4a. This is equivalent to ANDing the eroded and expanded image I4a and the search range image I7 or search range image I11 (step S408).

図21は収縮膨張画像と探索範囲画像との論理積合成画像を示す図である。ここでは探索範囲画像として第1の態様の画像I7を用いて説明する。基準画像と比較画像との間におけるスフェアの外周部および内部の差分を表す収縮膨張画像I4aと、探索範囲画像Iとを論理積合成することで、合成画像I12では、スフェアの外周部の近傍における変化に対応する像のみが示され、収縮膨張画像I4aに存在していたスフェア内部の像はマスクされて合成画像には現れない。これにより、外周部の位置変化、つまりスフェアの変位のみを選択的に抽出することが可能になる。この合成画像I12を以下では「動き差分画像」と称する。 FIG. 21 is a diagram showing a logical product synthesized image of an erosion/expansion image and a search range image. Here, the image I7 of the first mode will be used as the search range image. By logically synthesizing the erosion/expansion image I4a representing the difference between the reference image and the comparison image in the outer periphery and inside of the sphere and the search range image I, the synthetic image I12 can be obtained in the vicinity of the outer periphery of the sphere. Only the image corresponding to the change is shown, and the image inside the sphere that existed in the eroded and expanded image I4a is masked and does not appear in the synthesized image. This makes it possible to selectively extract only the position change of the outer periphery, that is, the displacement of the sphere. This composite image I12 is hereinafter referred to as a "motion difference image".

変位の定量化は以下のようにして行われる。すなわち、動き差分画像I12から、動き差分面積が求められる(ステップS409)。動き差分面積は、動き差分画像I12における白色部分の面積として求められ、簡易的には該画像における白色画素の数により表すことができる。基準画像と比較画像との間におけるスフェアの変位が大きいほど動き差分面積は大きくなり、したがって動き差分面積は、変位の大きさを定量的に表す数値として利用可能である。 Quantification of displacement is performed as follows. That is, a motion difference area is obtained from the motion difference image I12 (step S409). The motion difference area is obtained as the area of the white portion in the motion difference image I12, and can be simply represented by the number of white pixels in the image. The larger the displacement of the sphere between the reference image and the comparative image, the larger the motion difference area. Therefore, the motion difference area can be used as a numerical value that quantitatively represents the magnitude of the displacement.

ただし、動き差分面積はスフェアの大きさの影響を受ける。すなわち、面積が大きく外周部の周囲長の長いスフェアとより小さいスフェアとでは、たとえ変位量が同じであったとしても、変位の結果として現れる動き差分面積は、大きいスフェアの方が当然に大きくなる。これを是正し、スフェアの大きさに関わらず変位の大きさを表すことのできる指標として、以下の式:
S=(動き差分面積)/(スフェアの平均輪郭長さ)
により、動きスコアSを定義する。ここに、「スフェアの平均輪郭長さ」は、基準画像におけるスフェアの輪郭長さと比較画像におけるスフェアの輪郭長さとの平均値である。スフェアの輪郭長さについては、スフェア抽出処理の結果から導出することができ、例えば輪郭に相当する画素の数により表すことができる。
However, the motion difference area is affected by the size of the sphere. That is, even if the amount of displacement is the same between a sphere with a large area and a long perimeter and a smaller sphere, the movement difference area that appears as a result of the displacement is naturally larger for the larger sphere. . As an index that can correct this and express the magnitude of displacement regardless of the size of the sphere, the following formula is used:
S = (motion differential area)/(average contour length of sphere)
defines a motion score S. Here, "average edge length of sphere" is the average value of the edge length of the sphere in the reference image and the edge length of the sphere in the comparison image. The contour length of the sphere can be derived from the result of the sphere extraction process, and can be represented, for example, by the number of pixels corresponding to the contour.

このように定義される動きスコアSは、スフェアの変位により画像間に生じる差分がスフェアのサイズで正規化されたものであり、スフェアの大小に関わりなくその変位の大きさを指標するものとなる。 The motion score S defined in this way is the difference between images due to the displacement of the sphere normalized by the size of the sphere, and is an index of the magnitude of the displacement regardless of the size of the sphere. .

基準画像と比較画像との一の組み合わせごとに、画像内の全てのスフェアにつき動きスコアSが算出される(ステップS410)。そして、上記したように、基準画像と比較画像との組み合わせを順次変化させながら(ステップS411、S412)、それぞれの組み合わせでスフェアの動きスコアSが算出される。このうち動きスコアSが予め定められた閾値より大きいものについては、当該スフェアが有意な動きを示したものとみなすことができる。動きの検出されたスフェアについては、その動きの方向とともに記録されることが望ましい。 For each combination of reference and comparison images, a motion score S is calculated for all spheres in the image (step S410). Then, as described above, while sequentially changing the combination of the reference image and the comparison image (steps S411 and S412), the motion score S of the sphere is calculated for each combination. If the motion score S is greater than a predetermined threshold, it can be considered that the sphere exhibits significant motion. Spheres for which movement is detected are preferably recorded along with the direction of movement.

図1に戻って、次に、動きスコアSが算出された各スフェアにつき、その算出結果に基づき拍動判定が行われる(ステップS106)。スフェアの拍動の有無については、例えば以下のようにして判定することができる。 Returning to FIG. 1, next, for each sphere for which the motion score S has been calculated, pulsation determination is performed based on the calculation result (step S106). The presence or absence of pulsation of the sphere can be determined, for example, as follows.

図22は拍動判定工程を示すフローチャートである。より具体的には、図22は1つのスフェアについて拍動の有無を判定するための処理を示している。各スフェアには固有の識別番号を含むインデックスが付されているので、各フレームでの検出結果から同一識別番号のものを抽出することにより、1つのスフェアの動きを把握することができる。動き検出工程で求められた1つのスフェアについての動き検出結果を時系列順に配列すると(ステップS701)、当該スフェアが経時的にどのような動きを示したかが明らかになる。 FIG. 22 is a flow chart showing the pulsation determination process. More specifically, FIG. 22 shows processing for determining the presence or absence of pulsation for one sphere. Since each sphere is assigned an index containing a unique identification number, the movement of one sphere can be grasped by extracting the spheres with the same identification number from the detection results in each frame. By arranging the motion detection results for one sphere obtained in the motion detection step in chronological order (step S701), it becomes clear what kind of motion the sphere exhibits over time.

拍動はスフェアの継続的かつ周期的な運動である。したがって、スフェアが拍動していれば、当該スフェアについては複数回の動きが検出され、かつそれらの中には変位方向が反対のものが含まれているはずである。そこで、判定対象のスフェアがこのような条件を満たしていれば(ステップS702およびステップS703においてともにYES)、当該スフェアは拍動していると判定される(ステップS704)。一方、動きの検出が1回のみである(ステップS702においてNO)、あるいは複数回の動きの方向が同じである(ステップS703においてNO)場合には、当該スフェアは拍動していないと判定される(ステップS705)。このようにして、各スフェアの拍動の有無を判定することができる。動き方向が反対であるか否かについては、例えば以下のようにして判断することができる。 Beating is the continuous and periodic motion of the sphere. Therefore, if the sphere is beating, multiple motions should be detected for the sphere, including those with opposite directions of displacement. Therefore, if the sphere to be determined satisfies these conditions (YES in both steps S702 and S703), it is determined that the sphere is beating (step S704). On the other hand, if the movement is detected only once (NO in step S702) or if the direction of movement is the same a plurality of times (NO in step S703), it is determined that the sphere is not beating. (step S705). In this way, it is possible to determine the presence or absence of pulsation in each sphere. Whether or not the motion directions are opposite can be determined, for example, as follows.

図23は動き方向の判断例を示す図である。検出された動きの方向をベクトル表示したとき、図23(a)に示すように、1つのベクトルV1の方向と、他の1つのベクトルV2の方向とのなす角θが90度より小さければ、これらの動きは同方向のものと判断することができる。このような動きは拍動によるものではなく、単にスフェアが一方向へ移動しているものと考えられる。一方、図23(b)に示すように、2つのベクトルV1,V2の角θが90度より大きいとき、これらの動きは反対方向のものと判断することができる。なおスフェアの動き方向については、上記した動き検出結果から求めてもよく、また例えばスフェアの重心位置の経時的な変化から求めてもよい。 FIG. 23 is a diagram showing an example of determination of the motion direction. When the direction of the detected motion is expressed as a vector, as shown in FIG. 23(a), if the angle θ between the direction of one vector V1 and the direction of the other vector V2 is smaller than 90 degrees, These movements can be judged to be in the same direction. Such movement is not due to pulsation, but simply unidirectional movement of the sphere. On the other hand, as shown in FIG. 23(b), when the angle .theta. The motion direction of the sphere may be obtained from the motion detection result described above, or may be obtained, for example, from the temporal change in the position of the center of gravity of the sphere.

各スフェアの拍動に関する判定結果は、任意の態様で出力される(ステップS107)。例えば図13(b)に示すスフェア輪郭の画像Ioにおいて、各スフェアの拍動の有無を識別できるような加工、例えば色分けを施して表示出力することが考えられる。また、図2に示すフレーム画像Ifに対して、拍動するスフェア、拍動しないスフェアおよびスフェア以外のオブジェクトを互いに区別する加工を施してもよい。また、各スフェアの拍動の有無やその振幅、周期などの詳細な情報をインデックス情報とともにリストとして出力する態様であってもよい。その他、用途に応じて種々の態様で判定結果を出力することが可能である。 The determination result regarding the pulsation of each sphere is output in an arbitrary manner (step S107). For example, in the sphere contour image Io shown in FIG. 13(b), it is conceivable to perform display output after processing such that the presence or absence of pulsation of each sphere can be identified, for example, by color coding. Further, the frame image If shown in FIG. 2 may be subjected to processing for distinguishing spheres that pulsate, spheres that do not pulsate, and objects other than spheres. Further, detailed information such as presence/absence of pulsation of each sphere, its amplitude, and cycle may be output as a list together with index information. In addition, it is possible to output the determination result in various modes depending on the application.

以上のように、この実施形態の拍動検出処理では、撮像時刻が異なる基準画像と比較画像との画像内容の差分に基づいてスフェアの変位が求められ、その結果からスフェアの動きが検出される。拍動に起因する変位はスフェアの外周部の近傍に現れる一方、スフェア内部のテクスチャ変化は必ずしも拍動の有無を反映しない。このため、本実施形態では、抽出されたスフェアの輪郭の近傍に探索範囲を設定し、該範囲内での画像の差分を変位の大きさの指標としている。このため、内部テクスチャの変化に影響されることなく、拍動に起因するスフェアの変位を効率よく求めることが可能である。 As described above, in the pulsation detection process of this embodiment, the displacement of the sphere is obtained based on the difference in image content between the reference image and the comparison image captured at different times, and the movement of the sphere is detected from the result. . Displacement due to pulsation appears near the outer periphery of the sphere, while texture change inside the sphere does not necessarily reflect the presence or absence of pulsation. For this reason, in this embodiment, a search range is set in the vicinity of the contour of the extracted sphere, and the image difference within this range is used as an index of the magnitude of displacement. Therefore, it is possible to efficiently obtain the displacement of the sphere due to pulsation without being affected by changes in the internal texture.

また、スフェアの拍動周期が必ずしも一定でなく、個体ばらつきもあることから、基準画像に組み合わせる比較画像については撮像時刻の異なる複数の画像を順次適用している。このため、種々の周期で生じ得るスフェアの拍動を確実に検出することが可能である。 In addition, since the pulsation period of the sphere is not necessarily constant and varies among individuals, a plurality of images captured at different times are sequentially applied as comparison images to be combined with the reference image. Therefore, it is possible to reliably detect the pulsation of the sphere that can occur in various cycles.

またスフェアの変位の大きさについては、変位によって差分画像に現れる領域の面積をスフェアの輪郭長さで正規化した動きスコアSを用いて評価する。このため、スフェアの大きさの違いに対してロバストな検出および判定が可能となっている。 The magnitude of sphere displacement is evaluated using a motion score S obtained by normalizing the area of the region appearing in the difference image due to the displacement by the contour length of the sphere. Therefore, robust detection and determination are possible with respect to differences in sphere size.

<装置構成例>
図24はこの実施形態の画像処理を実行可能なコンピュータ装置の構成例である。コンピュータ装置1は、例えばパーソナルコンピュータとして一般的な構成を有するものであり、CPU(Central Processing Unit)10、メモリ14、ストレージ15、入力デバイス16、表示部17、インターフェース18およびディスクドライブ19などを備えている。
<Device configuration example>
FIG. 24 is a configuration example of a computer device capable of executing the image processing of this embodiment. The computer device 1 has a general configuration as, for example, a personal computer, and includes a CPU (Central Processing Unit) 10, a memory 14, a storage 15, an input device 16, a display unit 17, an interface 18, a disk drive 19, and the like. ing.

CPU10は、予め用意された制御プログラムを実行することで、上記した画像処理を実行するための機能ブロックとしての画像処理部11をソフトウェア的に実現する。なお、画像処理部11を実現するための専用ハードウェアが設けられてもよい。メモリ14はCPU10の演算過程で生成される各種データを一時的に記憶する。ストレージ15は、CPU10が実行すべき制御プログラムのほか、原画像の画像データや処理後の画像データ等を長期的に記憶する。 The CPU 10 implements the image processing unit 11 as a functional block for executing the above-described image processing in software by executing a control program prepared in advance. Note that dedicated hardware for realizing the image processing unit 11 may be provided. A memory 14 temporarily stores various data generated in the process of calculation by the CPU 10 . The storage 15 stores the control program to be executed by the CPU 10 as well as the image data of the original image, the processed image data, and the like for a long period of time.

入力デバイス16は、オペレータからの指示入力を受け付けるためのものであり、例えばマウス、キーボードなどを含む。また、表示部17は画像を表示する機能を有する例えば液晶ディスプレイであり、原画像や処理後の画像、オペレータへのメッセージ等種々の情報を表示する。なお、入力デバイスと表示部とが一体化されたタッチパネルが設けられてもよい。 The input device 16 is for receiving instruction inputs from an operator, and includes, for example, a mouse and a keyboard. The display unit 17 is, for example, a liquid crystal display having an image display function, and displays various information such as original images, processed images, and messages to the operator. A touch panel in which an input device and a display unit are integrated may be provided.

インターフェース18は、電気通信回線を介して外部装置との間で各種データ交換を行う。ディスクドライブ19は、画像データや制御プログラム等各種のデータを記録した外部の記録ディスク2を受け入れる。記録ディスク2に記憶された画像データや制御プログラム等は、ディスクドライブ19により読み出され、ストレージ16に記憶される。ディスクドライブ19はコンピュータ装置1内で生成されたデータを記録ディスク2に書き込む機能を備えていてもよい。 The interface 18 exchanges various data with external devices via electric communication lines. A disk drive 19 receives an external recording disk 2 on which various data such as image data and control programs are recorded. Image data, control programs, and the like stored in the recording disk 2 are read by the disk drive 19 and stored in the storage 16 . The disk drive 19 may have a function of writing data generated within the computer device 1 onto the recording disk 2 .

本実施形態の画像処理をコンピュータ装置1に実行させるための制御プログラムについては、これを記録した記録ディスク2にディスクドライブ19がアクセスして読み出される態様であってもよく、インターフェース18を介して外部装置から与えられる態様であってもよい。原画像データについても同様である。 The control program for causing the computer device 1 to execute the image processing of the present embodiment may be read out by accessing the recording disk 2 on which it is recorded by the disk drive 19. It may be an aspect provided by a device. The same applies to the original image data.

<その他>
以上説明したように、本実施形態においては、スフェアSpが本発明の「心筋細胞のコロニー」および「コロニー領域」に相当している。また、連続撮像により取得される各フレーム画像Ifを適宜の間隔で間引いた画像If1,If2,…が、本発明の「原画像」に相当している。拍動検出処理における基準画像I1および比較画像I2が、原画像の一部であるととともに、それぞれ本発明の「第1画像」および「第2画像」に相当する。
<Others>
As described above, in the present embodiment, the sphere Sp corresponds to the "cardiomyocyte colony" and the "colony region" of the present invention. Further, the images If1, If2, . The reference image I1 and the comparison image I2 in the pulse detection process are part of the original image and correspond to the "first image" and the "second image" of the present invention, respectively.

なお、本発明は上記した実施形態に限定されるものではなく、その趣旨を逸脱しない限りにおいて上述したもの以外に種々の変更を行うことが可能である。例えば、上記実施形態では、試料の撮像、スフェアの抽出および拍動の判定までが一連の処理として記載されているが、常にこのような処理を要するものではない。例えば、過去に撮像された試料の画像を用いてスフェア抽出および拍動判定を行うようにしてもよい。また、スフェア抽出と拍動判定とについてもそれぞれ個別に実行されてもよい。 The present invention is not limited to the above-described embodiments, and various modifications other than those described above can be made without departing from the spirit of the present invention. For example, in the above embodiments, imaging of the sample, extraction of spheres, and determination of pulsation are described as a series of processes, but such processes are not always required. For example, sphere extraction and pulsation determination may be performed using an image of a sample captured in the past. Also, sphere extraction and beat determination may be performed separately.

また、上記実施形態では、画像内におけるスフェアの変位を求めることにより動き検出を行っているが、拍動によるスフェアの動きとしては周期的な収縮・弛緩として現れるものもある。上記実施形態は画像の差分の大きさから動きを検出するので、このような収縮・弛緩であっても検出可能である。 Further, in the above embodiment, motion detection is performed by obtaining the displacement of the sphere in the image, but the motion of the sphere due to pulsation may appear as periodic contraction/relaxation. Since the above-described embodiment detects motion from the magnitude of the image difference, it is possible to detect even such contraction and relaxation.

また例えば、上記実施形態におけるスフェア抽出処理は、撮像された1つ1つの画像からスフェアのような比較的円形に近いオブジェクトを特定する処理であり、単独の静止画に対しても適用可能なものである。また、その対象物や利用目的も、心筋細胞スフェアやその拍動判定に限定されるものではなく、種々の細胞コロニーを対象として適用することが可能である。 Further, for example, the sphere extraction process in the above embodiment is a process of identifying a relatively circular object such as a sphere from each captured image, and can also be applied to a single still image. is. In addition, the object and purpose of use are not limited to myocardial cell spheres and their pulsation determination, and can be applied to various cell colonies.

また例えば、上記実施形態における拍動判定処理を実行するのに際して、予め画像内のスフェアを特定しておく必要があるが、スフェアを特定するための処理については上記に限定されるものではなく、他の方法で特定されたスフェアの情報を用いて、上記の拍動判定処理を実行してもよい。 Further, for example, when executing the pulsation determination process in the above embodiment, it is necessary to specify the sphere in the image in advance, but the process for specifying the sphere is not limited to the above. The pulsation determination process described above may be performed using sphere information specified by other methods.

またたとえば、上記実施形態では、撮像された各フレーム画像に対しスフェア抽出処理が実行され、フレームの間引きを行った上で拍動検出処理が実行される。これに代えて、例えば撮像された原画像に対しフレームの間引きを行い、間引き後のフレーム画像を用いてスフェア抽出処理および拍動検出処理が実行されてもよい。 Further, for example, in the above-described embodiment, the sphere extraction process is executed for each captured frame image, and the pulsation detection process is executed after thinning out the frames. Alternatively, for example, the captured original image may be thinned out, and the thinned frame image may be used to perform the sphere extraction process and the pulsation detection process.

以上、具体的な実施形態を例示して説明してきたように、この発明に係る画像処理方法では、第1画像と第2画像との差分画像を2値化した2値化画像と、探索範囲に対応する探索範囲画像との論理積に相当する領域の面積に対応する値が、変位の大きさの指標値とされてもよい。このような構成によれば、コロニーの変位の大きさを差分として定量化することができ、しかも輪郭の近傍における変位のみを指標値に反映させることができるので、拍動を検出する目的に特に好適な指標値を得ることができる。 As described above with reference to specific embodiments, in the image processing method according to the present invention, the binarized image obtained by binarizing the difference image between the first image and the second image, and the search range A value corresponding to the area of the region corresponding to the logical product with the search range image corresponding to may be used as the index value of the magnitude of displacement. With such a configuration, the magnitude of colony displacement can be quantified as a difference, and only the displacement in the vicinity of the contour can be reflected in the index value. A suitable index value can be obtained.

この場合、第1画像における対象コロニー領域の輪郭長と第2画像における対象コロニー領域の輪郭長との平均値で面積を正規化した値が変位の大きさの指標値とされてもよい。このような構成によれば、変位量が同じでも面積の大きいコロニーほど差分が大きくなり指標値も大きくなるという問題を解消し、コロニーのサイズに対してロバストな判定が可能となる。 In this case, a value obtained by normalizing the area by the average value of the contour length of the target colony region in the first image and the contour length of the target colony region in the second image may be used as the index value of the displacement. According to such a configuration, even if the amount of displacement is the same, colonies with a larger area have a larger difference and a larger index value, which solves the problem.

また、複数の原画像から選択した一の第1画像に対し、撮像時刻が互いに異なる複数の原画像が1つずつ順に第2画像に設定され、それぞれの組み合わせについてコロニー領域の変位量が検出されてもよい。このような構成によれば、拍動周期が必ずしも一律でないスフェアについても、拍動の検出漏れを回避することができる。 For one first image selected from a plurality of original images, a plurality of original images captured at different times are sequentially set as second images one by one, and the amount of displacement of the colony region is detected for each combination. may According to such a configuration, it is possible to avoid omission of pulsation detection even for a sphere whose pulsation period is not necessarily uniform.

また、撮像時刻が互いに異なる複数の原画像が1つずつ順に第1画像に設定され、当該第1画像より後に撮像された原画像の一が第2画像として設定されてもよい。このような構成によれば、撮像中の任意のタイミングで生じるコロニー領域の動きを漏れなく検出することができる。 Alternatively, a plurality of original images captured at different times may be sequentially set as the first image, and one of the original images captured after the first image may be set as the second image. According to such a configuration, it is possible to detect without omission the movement of the colony region that occurs at any timing during imaging.

また、第1画像と第2画像との間における対象コロニー領域の重心の移動方向を変位の方向とし、対象コロニー領域について、所定の閾値より大きい変位が複数回検出され、かつそれらの変位に、方向が互いに反対であるものが含まれる場合に、当該対象コロニー領域に対応するコロニーについて拍動ありと判定されるようにしてもよい。このような構成によれば、拍動とは異なる一方向への移動を誤って拍動と判定することが防止される。例えば2つの変位について、それぞれの変位方向を示す方向ベクトルのなす角が90度より大きいときそれらの方向が反対であるとみなすことができる。 Further, the moving direction of the center of gravity of the target colony region between the first image and the second image is defined as the direction of displacement, and displacements larger than a predetermined threshold value are detected multiple times for the target colony region, and those displacements are: It may be determined that a colony corresponding to the target colony region has a pulsation when the directions are opposite to each other. According to such a configuration, it is possible to prevent erroneous determination of movement in one direction, which is different from pulsation, as pulsation. For example, two displacements can be regarded as having opposite directions when the angle formed by the direction vectors indicating the respective displacement directions is greater than 90 degrees.

また、原画像からコロニー領域を抽出する工程は、原画像から所定のエッジ強度を有する閉曲線を抽出する工程と、抽出された閉曲線で囲まれた領域を示す画像と原画像を2値化した画像との論理積に相当する合成画像を作成する工程と、合成画像に含まれるオブジェクトに対し分水嶺法によるオブジェクト分割を実行する工程とを含むように構成されてもよい。このような構成によれば、細胞のコロニーが高密度に含まれ互いに接触しているような試料においても、それらを的確に分離しつつ、それぞれのコロニーについて拍動の有無を個別に判定することが可能である。 Further, the step of extracting the colony region from the original image includes a step of extracting a closed curve having a predetermined edge strength from the original image, an image showing the area surrounded by the extracted closed curve, and a binarized image of the original image. and a step of performing object segmentation by the watershed method on objects included in the synthesized image. According to such a configuration, even in a sample in which cell colonies are contained in high density and are in contact with each other, the presence or absence of pulsation can be individually determined for each colony while accurately separating them. is possible.

本発明は、細胞を撮像し画像を評価する生化学や医療の分野に適用可能であり、例えばiPS細胞やES細胞から分化培養される心筋細胞の評価に特に好適である。 INDUSTRIAL APPLICABILITY The present invention is applicable to biochemical and medical fields in which cells are imaged and evaluated, and is particularly suitable for evaluation of cardiomyocytes differentiated and cultured from iPS cells or ES cells, for example.

1 コンピュータ装置
2 記録ディスク(記録媒体)
I1 原画像(第1画像)
I2 原画像(第2画像)
I3 差分画像
I4 2値化画像
I7,I11 探索範囲画像
Rs 探索範囲
Sp スフェア(コロニー、コロニー領域)
1 computer device 2 recording disk (recording medium)
I1 Original image (first image)
I2 Original image (second image)
I3 difference image I4 binarized image I7, I11 search range image Rs search range Sp sphere (colony, colony area)

Claims (11)

培養された心筋細胞のコロニーを含む試料を異なる撮像時刻に撮像した複数の原画像を取得する工程と、
前記原画像のうち互いに異なる第1画像と第2画像とのそれぞれから前記コロニーに対応するコロニー領域を抽出する工程と、
前記第1画像と前記第2画像との間における前記コロニー領域の変位を検出しその検出結果に基づき前記コロニーの拍動の有無を判定する工程と
を備え、
前記コロニー領域のうち一の対象コロニー領域について、所定の探索範囲内における前記第1画像と前記第2画像との差分の大きさを前記対象コロニー領域の前記変位の大きさとして検出し、
前記探索範囲は、前記第1画像における前記対象コロニー領域の輪郭を所定幅に膨張させた環状の領域と、前記第2画像における前記対象コロニー領域の輪郭を前記所定幅に膨張させた環状の領域との論理和に相当する領域である、画像処理方法。
acquiring a plurality of original images of a sample containing colonies of cultured myocardial cells at different imaging times;
a step of extracting a colony region corresponding to the colony from each of a first image and a second image that are different from each other among the original images;
detecting the displacement of the colony region between the first image and the second image, and determining the presence or absence of pulsation of the colony based on the detection result;
for one target colony region among the colony regions, detecting the magnitude of the difference between the first image and the second image within a predetermined search range as the magnitude of the displacement of the target colony region;
The search range includes an annular area obtained by expanding the outline of the target colony area in the first image to a predetermined width, and an annular area obtained by expanding the outline of the target colony area in the second image to the predetermined width. An image processing method, which is an area corresponding to the logical sum of .
培養された心筋細胞のコロニーを含む試料を異なる撮像時刻に撮像した複数の原画像を取得する工程と、
前記原画像のうち互いに異なる第1画像と第2画像とのそれぞれから前記コロニーに対応するコロニー領域を抽出する工程と、
前記第1画像と前記第2画像との間における前記コロニー領域の変位を検出しその検出結果に基づき前記コロニーの拍動の有無を判定する工程と
を備え、
前記コロニー領域のうち一の対象コロニー領域について、所定の探索範囲内における前記第1画像と前記第2画像との差分の大きさを前記対象コロニー領域の前記変位の大きさとして検出し、
前記探索範囲は、前記第1画像における前記対象コロニー領域の内部領域と、前記第2画像における前記対象コロニー領域の内部領域との排他的論理和に相当する領域を少なくとも含む環状の領域である、画像処理方法。
acquiring a plurality of original images of a sample containing colonies of cultured myocardial cells at different imaging times;
a step of extracting a colony region corresponding to the colony from each of a first image and a second image that are different from each other among the original images;
detecting the displacement of the colony region between the first image and the second image, and determining the presence or absence of pulsation of the colony based on the detection result;
for one target colony region among the colony regions, detecting the magnitude of the difference between the first image and the second image within a predetermined search range as the magnitude of the displacement of the target colony region;
The search range is an annular region including at least a region corresponding to the exclusive OR of the internal region of the target colony region in the first image and the internal region of the target colony region in the second image. Image processing method.
前記第1画像と前記第2画像との差分画像を2値化した2値化画像と、前記探索範囲に対応する探索範囲画像との論理積に相当する領域の面積に基づく値を、前記変位の大きさの指標値とする請求項1または2に記載の画像処理方法。 A value based on the area of the region corresponding to the logical product of the binarized image obtained by binarizing the difference image between the first image and the second image and the search range image corresponding to the search range is calculated as the displacement. 3. The image processing method according to claim 1, wherein the index value is a magnitude of . 前記第1画像における前記対象コロニー領域の輪郭長と前記第2画像における前記対象コロニー領域の輪郭長との平均値で前記面積を正規化した値を、前記面積に基づく値として前記変位の大きさの指標値とする請求項3に記載の画像処理方法。 A value obtained by normalizing the area with an average value of the contour length of the target colony region in the first image and the contour length of the target colony region in the second image is taken as a value based on the area. 4. The image processing method according to claim 3, wherein the index value of . 前記複数の原画像から選択した一の前記第1画像に対し、撮像時刻が互いに異なる複数の前記原画像を1つずつ順に前記第2画像に設定して、それぞれの組み合わせについて前記コロニー領域の前記変位量を検出する請求項1ないし4のいずれかに記載の画像処理方法。 For one of the first images selected from the plurality of original images, a plurality of the original images having different imaging times are sequentially set as the second image one by one, and the colony region is formed for each combination. 5. The image processing method according to any one of claims 1 to 4, wherein the amount of displacement is detected. 撮像時刻が互いに異なる複数の前記原画像を1つずつ順に前記第1画像に設定し、当該第1画像より後に撮像された前記原画像の一を前記第2画像として設定する請求項1ないしのいずれかに記載の画像処理方法。 5. A plurality of original images captured at different times are sequentially set as the first image one by one, and one of the original images captured after the first image is set as the second image. The image processing method according to any one of . 前記コロニーの拍動の有無を判定する工程では、
前記第1画像と前記第2画像との間における前記対象コロニー領域の重心の移動方向を前記変位の方向とし、
前記対象コロニー領域について、所定の閾値より大きい変位が複数回検出され、かつそれらの変位に、方向が互いに反対であるものが含まれる場合に、当該対象コロニー領域に対応する前記コロニーについて拍動ありと判定する請求項5または6に記載の画像処理方法。
In the step of determining the presence or absence of pulsation of the colony,
The movement direction of the center of gravity of the target colony region between the first image and the second image is the direction of the displacement,
When displacements larger than a predetermined threshold value are detected multiple times for the target colony region, and the displacements include displacements in opposite directions, the colony corresponding to the target colony region is pulsating. 7. The image processing method according to claim 5 or 6, wherein:
2つの変位について、それぞれの変位方向を示す方向ベクトルのなす角が90度より大きいときそれらの方向が反対であるとみなす請求項7に記載の画像処理方法。 8. The image processing method according to claim 7, wherein two displacements are regarded as opposite directions when an angle formed by directional vectors indicating respective displacement directions is greater than 90 degrees. 前記原画像から前記コロニー領域を抽出する工程は、
前記原画像から所定のエッジ強度を有する閉曲線を抽出する工程と、
抽出された前記閉曲線で囲まれた領域を示す画像と前記原画像を2値化した画像との論理積に相当する合成画像を作成する工程と、
前記合成画像に含まれるオブジェクトに対し分水嶺法によるオブジェクト分割を実行する工程と
を含む請求項1ないし8のいずれかに記載の画像処理方法。
The step of extracting the colony area from the original image includes:
extracting a closed curve having a predetermined edge strength from the original image;
creating a composite image corresponding to a logical product of an image showing the extracted area surrounded by the closed curve and an image obtained by binarizing the original image;
9. The image processing method according to any one of claims 1 to 8, further comprising the step of performing object segmentation by a watershed method for objects included in said synthesized image.
コンピュータに、請求項1ないし9のいずれかに記載の画像処理方法の各工程を実行させるためのコンピュータプログラム。 A computer program for causing a computer to execute each step of the image processing method according to any one of claims 1 to 9. 請求項10に記載のコンピュータプログラムを記録した、コンピュータ読み取り可能な記録媒体。 A computer-readable recording medium recording the computer program according to claim 10 .
JP2018177298A 2018-09-21 2018-09-21 Image processing method, computer program and recording medium Active JP7197316B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018177298A JP7197316B2 (en) 2018-09-21 2018-09-21 Image processing method, computer program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018177298A JP7197316B2 (en) 2018-09-21 2018-09-21 Image processing method, computer program and recording medium

Publications (2)

Publication Number Publication Date
JP2020043842A JP2020043842A (en) 2020-03-26
JP7197316B2 true JP7197316B2 (en) 2022-12-27

Family

ID=69900234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018177298A Active JP7197316B2 (en) 2018-09-21 2018-09-21 Image processing method, computer program and recording medium

Country Status (1)

Country Link
JP (1) JP7197316B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021192264A1 (en) * 2020-03-27 2021-09-30 Agc株式会社 Image processing method, image processing device, and motion analysis system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008076088A (en) 2006-09-19 2008-04-03 Foundation For Biomedical Research & Innovation Cell monitoring method and monitoring apparatus
WO2015041177A1 (en) 2013-09-18 2015-03-26 株式会社ニコン Image analysis device, image analysis method, image analysis program, cell manufacturing method, cell culturing method, and cell manufacturing device
JP2016041023A (en) 2014-08-14 2016-03-31 ソニー株式会社 Image processing apparatus, image processing method, and image processing program.
JP2016067287A (en) 2014-09-30 2016-05-09 富士フイルム株式会社 Cell imaging apparatus and method
WO2017154318A1 (en) 2016-03-09 2017-09-14 ソニー株式会社 Information processing device, information processing method, program, and information processing system
JP2020064349A (en) 2018-10-15 2020-04-23 Agc株式会社 Image processing method, image processing device, and motion analysis system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008076088A (en) 2006-09-19 2008-04-03 Foundation For Biomedical Research & Innovation Cell monitoring method and monitoring apparatus
WO2015041177A1 (en) 2013-09-18 2015-03-26 株式会社ニコン Image analysis device, image analysis method, image analysis program, cell manufacturing method, cell culturing method, and cell manufacturing device
JP2016041023A (en) 2014-08-14 2016-03-31 ソニー株式会社 Image processing apparatus, image processing method, and image processing program.
JP2016067287A (en) 2014-09-30 2016-05-09 富士フイルム株式会社 Cell imaging apparatus and method
WO2017154318A1 (en) 2016-03-09 2017-09-14 ソニー株式会社 Information processing device, information processing method, program, and information processing system
JP2020064349A (en) 2018-10-15 2020-04-23 Agc株式会社 Image processing method, image processing device, and motion analysis system

Also Published As

Publication number Publication date
JP2020043842A (en) 2020-03-26

Similar Documents

Publication Publication Date Title
JP7099923B2 (en) Image processing methods, computer programs and recording media
JP5422018B2 (en) Image processing method and image processing apparatus
US9064143B2 (en) System and method for determining motion of a biological object
JP5102302B2 (en) Data processing method, apparatus and computer program
CN105701806B (en) Parkinson&#39;s tremor motion feature detection method and system based on depth image
Dewan et al. Tracking biological cells in time-lapse microscopy: An adaptive technique combining motion and topological features
US10929985B2 (en) System and methods for tracking motion of biological cells
US11402918B2 (en) Method for controlling terminal apparatus, apparatus for controlling terminal apparatus, and computer-program product
JP6331761B2 (en) Determination device, determination method, and determination program
CN112070792B (en) An edge growing connection method and device for image segmentation
CN115641364A (en) Embryo division cycle intelligent prediction system and method based on embryo dynamics parameters
de Oliveira Feijó et al. An algorithm to track laboratory zebrafish shoals
CN112164026A (en) Endoscope polyp real-time detection method, system and terminal
WO2019181072A1 (en) Image processing method, computer program, and recording medium
JP7197316B2 (en) Image processing method, computer program and recording medium
VV et al. Significance of AI-assisted techniques for epiphyte plant monitoring and identification from drone images
JP6405603B2 (en) Information processing apparatus, information processing system, and program
WO2015107770A1 (en) Cell colony region identification device, cell colony region identification method, and recording medium
JP2019187551A5 (en)
JP7655375B2 (en) IMAGE PROCESSING METHOD, IMAGE PROCESSING APPARATUS AND PROGRAM
Cui et al. Zebrafish larva heart localization using a video magnification algorithm
JP6208019B2 (en) Cell colony region specifying device, cell colony region specifying method and program
Aly et al. Intelligent algorithms for cell tracking and image segmentation
Mylona et al. A computer-based technique for automated spot detection in proteomics images
Kaiyan et al. A real-time computer vision monitoring way for animal diversity

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220802

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220926

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20221206

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221215

R150 Certificate of patent or registration of utility model

Ref document number: 7197316

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250