<< SearchBlobs IPD - Image Processing Design SeparableFilter >>

IPD - Image Processing Design >> IPD - Image Processing Design > SegmentByThreshold

SegmentByThreshold

はスレショールドを用いて画像を分割する

呼び出し

SegmentedImage = SegmentByThreshold(Image, Threshold);

引数

Image

2次元の行列で、型はuint8、uint16、uint32又はdoubleである

Threshold

スカーラルである

SegmentedImage

次元はImageと同じで、型はbooleanである

説明

本関数はスレショールドを用いて画像を分割する。スレショールド以上のグレイ値は%tに写像され、スレショールド未満のグレイ値は%fに写像される。

Image = rand(3, 3) // generate random image

Threshold = CalculateOtsuThreshold(Image) // determine a threshold

SegmentedImage = SegmentByThreshold(Image, Threshold)

参考

<< SearchBlobs IPD - Image Processing Design SeparableFilter >>