In the image processing method of the present invention, the region of the pedicle with a higher pixel value than the periphery is detected by the ABC 3 classification (pedicle detection) in step S 2. Then, when the intervertebral space can not be detected due to a crushed intervertebral space or the like, the boundary line touching the cervical spine side of the pedicle detected in ABC 3 classification (pedicle detection) in step S 2 is set to It draws in ABC 3 classification (boundary line drawing) in step S 2. Thus, even when the intervertebral space is collapsed or the intervertebral space can not be detected, the boundary line between the vertebral bodies can be accurately detected. Therefore, the detection performance of the correct boundary line is improved, the frequency of manual correction by the user is reduced, and the throughput is also improved.この発明の画像処理方法は、周辺に比べ画素値の高い椎弓根の領域をステップS2のABC3分類(椎弓根検出)では検出する。そして、椎間が潰れている場合などにより椎間を検出することができない場合に、上述したステップS2のABC3分類(椎弓根検出)で検出された椎弓根の頸椎側に接する境界線をステップS2のABC3分類(境界線描画)では引く。これにより、椎間が潰れている場合、あるいは椎間を検出することができない場合であっても、椎体間の境界線を正確に検出することができる。よって、正しい境界線の検出性能が向上し、ユーザの手動による修正頻度が減少し、スループットが向上するという効果をも奏する。