[Insight-users] How can I clone an image ?
Remi Vieux
revieux at yahoo.fr
Sun Sep 24 05:51:07 EDT 2006
When you read an image you copy (clone) its data in memory from the
original image, and the original image will remain unchanged unless you
save your modifications in an file with exactly the same name.
If you mean that you need in the memory of your program a copy which
must remain unchanged and another that you will process, then I guess
you could save the output of the itk::reader in 2 differents itk::image,
or something like that.
Hope that helps,
Remi.
Le dimanche 24 septembre 2006 à 12:18 +0300, Cem DEMiRKIR a écrit :
> Thanks for your interest in problem, if I'm not wrong from your reply this
> may not be exactly what I meant. For example I need to create an exact copy
> of an itk::Image, i.e. A clone of it, and change its data content. I'd like
> to know If there is a method to make a clone of an image for example like
> the folllowing
>
> ImageType::Pointer cloneImage = sourceImage->Clone();
>
> Thanks
> Sincerely
> Cem DEMiRKIR
>
> -----Original Message-----
> From: Alexandre.Gouaillard at Sun.COM [mailto:Alexandre.Gouaillard at Sun.COM]
> Sent: Sunday, September 24, 2006 11:52 AM
> To: Cem DEMiRKIR
> Cc: ITK Mailing List
> Subject: Re: [Insight-users] How can I clone an image ?
>
> hi cem,
>
> any filter will keep the original image untouched. This includes readers.
> Don't be afraid and play with itk.
> otherwise, for the copy, you have the ctrl+C / ctrl+V under windows, and
> other cp under unixes :-D
>
> alex.
>
> Cem DEMiRKIR wrote:
> > Hi all ITK community members,
> > I'd like to clone an itk image because I need to change its
> > content but I don't wanto to loose the original one. How can I
> > construct a copy of an image ?
> >
> > Sincerely
> > Cem DEMiRKIR
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.com
More information about the Insight-users
mailing list