Skip to main content

morph_blackhat

Function morph_blackhat 

Source
pub fn morph_blackhat(input: &Tensor) -> Result<Tensor, ImgProcError>
Expand description

Morphological black-hat transform (closing - input). Black-hat transform: closing(input) - input.

Extracts dark features smaller than the 3x3 structuring element.