Group Abstract Group Abstract

Message Boards Message Boards

Superpose subimages obtained by clustering?

Posted 9 years ago
Attachments:
POSTED BY: Claude Mante
3 Replies

Fine! Thank you very much.

Claude

POSTED BY: Claude Mante

"MaskedImage" isn't quite the right property you should use for this purpose. Try instead to extract the mask for each component, as done with the code below:

SetOptions[Image, ImageSize -> 200];

masks = Image /@ 
  ComponentMeasurements[{Degrad, TrucMed}, "Mask"][[All, 2]];
GraphicsRow@masks

ImageAdd @@ Map[ImageMultiply[#, Degrad] &, masks]

You should get these masks:

enter image description here

and this recombination: enter image description here

POSTED BY: massimo fazio

Dear @Claude Mante, it is great that you added images. But you do not need to make a new comment with the almost same content. You can just edit the original post. Please also make sure that you code is formatted properly as described here: https://wolfr.am/READ-1ST

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