は画素数が最小値未満であるブロブ又は画素数が最大値を超えるブロブを除去する
FilteredImage = FilterBySize(Image, MinArea); FilteredImage = FilterBySize(Image, MinArea, MaxArea);
SearchBlobsで生成された2次元の行列で、型はint32又はuint32である
ブロブの画素数の最小値である
ブロブの画素数の最大値である。本引数はオプショナルである
本関数は画素数が最小値未満であるブロブ又は画素数が最大値を超えるブロブを除去する。画像はSearchBlobsで生成される。
Image = rand(9, 9) // generate random image Threshold = CalculateOtsuThreshold(Image); // calculate a threshold BinaryImage = SegmentByThreshold(Image, Threshold) // segment image BlobImage = SearchBlobs(BinaryImage) // blob image is generated FilteredBlobImage = FilterBySize(BlobImage, 3, 60) | ![]() | ![]() |