名前
SearchBlobs — は2値の画像におけるブロブを探索する
呼び出し
BlobImage = SearchBlobs(Image);
引数
- Image
2次元の行列で、型はbooleanである
- BlobImage
2次元の行列で、型はint32(Scilab 5.2.0が使用されるとき)又はuint32(Scilab
5.2.1が使用されるとき)である
説明
本関数は2値の画像におけるつながれている領域を探索する。同じ領域に所属する画素は同じ整数に写像され、この整数は1以上である。領域に所属しない画素へ0に写像される。
例
Image = rand(9, 9) // generate random image
Threshold = CalculateOtsuThreshold(Image); // calculate a threshold
BinaryImage = SegmentByThreshold(Image, Threshold) // segment image
BlobImage = SearchBlobs(BinaryImage)