How can i extract vertical lines from the print given?

1 vue (au cours des 30 derniers jours)
PP
PP le 11 Fév 2017
Commenté : PP le 23 Fév 2017
I want to extract only the verticle lines which might be present in the lip print given using only morphological operations. Is there any preprocessing required before doing so?

Réponses (1)

Image Analyst
Image Analyst le 11 Fév 2017
You can use bwareaopen() to get rid of the large blobs. Then get rid of horizontal lines using
windowWidth = 5; % Whatever...some odd number.
verticalLines = imerode(binaryImage, ones(windowWidth, 1));
  7 commentaires
Image Analyst
Image Analyst le 23 Fév 2017
That's what the second, more general snippet of code does.
PP
PP le 23 Fév 2017
Thank you. That helped.

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by