はスレショールドを用いて画像を分割する
SegmentedImage = SegmentByThreshold(Image, Threshold);
2次元の行列で、型はuint8、uint16、uint32又はdoubleである
スカーラルである
次元はImageと同じで、型はbooleanである
本関数はスレショールドを用いて画像を分割する。スレショールド以上のグレイ値は%tに写像され、スレショールド未満のグレイ値は%fに写像される。
Image = rand(3, 3) // generate random image Threshold = CalculateOtsuThreshold(Image) // determine a threshold SegmentedImage = SegmentByThreshold(Image, Threshold) | ![]() | ![]() |