[Insight-users] transform two .mhd files in one?
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Thu Sep 6 10:43:22 EDT 2007
Hi,
Le 6 sept. 07 à 16:38, annelaure a écrit :
>
> 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.
You may want to look at the contribution http://hdl.handle.net/
1926/499 , which contain several classes made to do that job, and
perhaps submit a short review
http://insight-journal.org/InsightJournalManager/view_reviews.php?
back=publications.php%3Fjournalid%3D7%26order%3Drating%
26revision_display%3Dcombined&pubid=149
Gaëtan
> 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.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070906/d937e2dd/PGP.pgp
More information about the Insight-users
mailing list