名前
BottomHat — は形態学のボットム・ハット・フィルタを画像に適用する
呼び出し
ResultImage = BottomHat(Image, StructureElement);
引数
- Image
2次元の行列で、型はuint8、uint16、uint32、double又はbooleanである
- StructureElement
「Width」、「Height」と「Data」という項目を含む構造体で、CreateStructureElementで生成される
- ResultImage
行列で、次元と型はImageと同じである
説明
本関数は形態学のボットム・ハット・フィルタを画像に適用する。
例
Image = 0.8 * ones(9, 9) // generate a light image
Image(:, 5) = 0 // draw a dark line
StructureElement = CreateStructureElement('square', 3) // create structuring element
ResultImage = BottomHat(Image, StructureElement)