[Insight-users] Copying an Image Object
Puja Malik
puja.malik@MEMcenter.unibe.ch
Fri, 14 Mar 2003 16:18:23 +0100
--------------F8F26BBFF6C375EAD146AFF3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello,
I have a basic question. I would like to copy the information from one
image object to another. Is this the purpose for the
"CopyInformation()" function?
For Instance:
typedef itk::Image<PixelType, DIM> ImageType;
ImageType::Pointer im1 = ImageType::New();
//...here im1 acquires some data
//...now I want to copy the information from im1 to im2 so i can do some
of my
//own processing on the first image, without losing information.
ImageType::Pointer im2 = ImageType::New();
Thanks for any help!
Puja
--
---------------------------------------
Puja Malik
Surgical Instruments Group
MEM Research Center for Orthopaedic Surgery
Institute for Surgical Technology and Biomechanics
University of Bern
Murtenstrasse 35, P.O. Box 8354
3010 Bern, Switzerland
Phone: +41-31-632-8730
Fax: +41-31-632-4951
Email: Puja.Malik@MEMcenter.unibe.ch
http://www.MEMcenter.unibe.ch
---------------------------------------
--------------F8F26BBFF6C375EAD146AFF3
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello,
<br>I have a basic question. I would like to copy the information
from one image object to another. Is this the purpose for the "CopyInformation()" function?
<p>For Instance:
<p>typedef itk::Image<PixelType, DIM> ImageType;
<p>ImageType::Pointer im1 = ImageType::New();
<br>//...here im1 acquires some data
<p>//...now I want to copy the information from im1 to im2 so i can
do some of my
<br>//own processing on the first image, without losing information.
<br>ImageType::Pointer im2 = ImageType::New();
<pre>Thanks for any help!</pre>
<pre>Puja</pre>
<pre></pre>
<pre></pre>
<pre>--
---------------------------------------
Puja Malik
Surgical Instruments Group
MEM Research Center for Orthopaedic Surgery
Institute for Surgical Technology and Biomechanics
University of Bern
Murtenstrasse 35, P.O. Box 8354
3010 Bern, Switzerland
Phone: +41-31-632-8730
Fax: +41-31-632-4951
Email: Puja.Malik@MEMcenter.unibe.ch
<A HREF="http://www.MEMcenter.unibe.ch">http://www.MEMcenter.unibe.ch</A>
---------------------------------------</pre>
</html>
--------------F8F26BBFF6C375EAD146AFF3--