Is it possible to apply imdilate and imerode to a signal and not an image?
Mostrar comentarios más antiguos
The question is exactly the topic name. I want to apply morphological gradient to a current signal, so I would like to know if it is possible to apply imdilate and imerode to this signal, or is it necessary to create another function for this?
The signal is a 15385x1 vector.
Respuesta aceptada
Más respuestas (1)
Benjamin Thompson
el 25 de Feb. de 2022
1 voto
Yes, it is. As shown here, the flag structuring element adds a value of one on each side of the pulse in this test:
>> se1 = strel('line',3,0);
>> figure, plot(imdilate([0 0 0 1 1 0 0 0 0], se1))
1 comentario
Luccas S.
el 25 de Feb. de 2022
Categorías
Más información sobre Morphological Operations en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!