Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.9K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Manipulation and removal of Morphological Components from an Image?

Posted 9 years ago
POSTED BY: B M
2 Replies
Posted 9 years ago

Marcus, this is very helpful, but I'm still having some issues. I think maybe I do not fully understand the "Count" criteria. Why is "Count" -1 the largest ? In a ComponentsMeasure[Image, "Count"] what is the order of the output?

Additionally, what type of value is the "Count" Property? Some of the sample output for my image is: 34 -> 109, 35 -> 115, 36 -> 110 . But I am unsure of what the 109, 115 and 110 represent.

When I do a SelectComponents[segments, "Count", 34] on my provided sample image It actually selects components labled 14, 25, and 27. Why is that?

Here is my workbook.

Thank you for the assistance.

Attachments:
POSTED BY: B M

Here are a few hints on how to implement your workflow:

  1. Select morphological components via SelectComponents. You can specify any kind of criteria.
  2. Remove a morphological component via Inpaint. The result of (1) would function as a mask.
  3. Rotate a morphological component via ImagePerspectiveTransformation. The "Centroid" could be the center of rotation.
  4. Insert a transformed morphological component back into the original image via morphological ImageCompose.

See attached notebook for details.

Hope this helps to get you started.

Attachments:
POSTED BY: Markus van
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard