Problem to be solved: to create mask data easily.Image acquisition means 10 for acquiring a plurality of tomographic imagesFault imageAn object region calculating means for calculating the subject area based on the signal values of the respective pixels and 20, andFault imageThe outer shape of the calculated object region is approximated by a second geometric shape having a predetermined two geometrical shapes and a second geometry with a smaller area than the first geometry.An object shape calculating means 40 for calculating the first geometric shape and the parameter of the second geometric shapeFault imageA mask value defining whether or not each pixel of the tomographic image is included in the interior of the first and second geometries of the first geometry is calculatedMask data generating means 50 for generating mask data for holding mask values for each pixel andA mask generating apparatus having the same.Diagram【課題】マスクデータを容易に作成すること。【解決手段】複数の断層画像を取得する画像取得手段10と、断層画像毎に、各画素の信号値に基づいて被写体領域を算出する被写体領域算出手段と20、断層画像毎に、算出された被写体領域の外郭を所定の2つの幾何形状である第1の幾何形状と第1の幾何形状より面積が小さい第2の幾何形状で近似し、当該第1の幾何形状および当該第2の幾何形状のパラメータを算出する被写体形状算出手段40と、断層画像毎に、断層画像の各画素が第1の幾何形状の内部かつ第2の幾何形状の外部に含まれるか否かを定義したマスク値を算出し、各画素に対するマスク値を保持するマスクデータを生成するマスクデータ生成手段50と、を備えるマスク生成装置。【選択図】図3