[Insight-users] transform two .mhd files in one?

annelaure al_didier at yahoo.fr
Thu Sep 6 10:38:36 EDT 2007


Thank you for your reply,
In fact, I need  to keep that distinction between skin and ribs, but I want
to store them in a single file.
So, I'm going to use an image of label.
Thank you,
Anne-Laure

Luis Ibanez wrote:
> 
> 
> Hi Anne-Laure,
> 
> You could use the OrImageFilter.
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1OrImageFilter.html
> 
> Note that the fact that the segmentations are stored in MetaImages
> (files with .mhd extension) is irrelevant here.
> 
> You simply need two readers (on for each file), and to connect the 
> output of both readers as inputs to the OrImageFilter, then pass the
> output of the OrImageFilter to a writer.
> 
> Note that in this case, you get a single mask, where pixels ON are
> skin OR rib.  If you wanted to keep that distinction between skin
> and ribs, but stored in a single file, what you may want to do is
> to use an image of labels.
> 
> Please clarify what is your purpose,
> 
> 
>     Thanks
> 
> 
>        Luis
> 
> 
> ----------------------
> annelaure wrote:
>> Hi,
>> I wonder if it is possible to mix 2 .mhd in order to obtain one final
>> .mhd.
>> For example, I have a good skin segmentation (first .mhd) and a good ribs
>> segmentation (second .mhd). How can I obtain a .mhd where I would have
>> the
>> skin + the ribs? Is it possible?
>> Thank you so much,
>> Best regards,
>> Anne-Laure
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 

-- 
View this message in context: http://www.nabble.com/transform-two-.mhd-files-in-one--tf4391168.html#a12523961
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list