Dear David<div>Thanks for your reply.First of all I would like to explain my problem.I have written .mhd rgb file in .vtk format using itk. I'm now able to open rgb image.Now I want get a copy of it.I used deep copy. My codes are as follows.</div>
<div><br></div><div><div>#include <vtkPolyData.h></div><div>#include <vtkSmartPointer.h></div></div><div><div>int main(unsigned int argc, char *argv[])</div><div>{</div></div><div><br></div><div>vtkSmartPointer<vtkPolyData> polyData = vtkSmartPointer<vtkPolyData>::New();</div>
<div> vtkSmartPointer<vtkPolyData> polyDataCopy = vtkSmartPointer<vtkPolyData>::New();</div><div> polyDataCopy->DeepCopy ( "D:\\rgbabdomen\\Debug\\output.vtk" );</div><div><div> </div><div>return 0;</div>
<div>}</div></div><div>My program is built with zero errors.But unable to open it.Do I have to include visualization par.I am very much thankful to you if you can help me.</div><div><br></div><div>regards </div><div>Shirani</div>
<div><br></div><div><br><br><div class="gmail_quote">On Fri, Sep 21, 2012 at 4:50 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><div class="h5">On Thu, Sep 20, 2012 at 11:46 PM, shirani kannangara <span dir="ltr"><<a href="mailto:mangalika673@gmail.com" target="_blank">mangalika673@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<div>I want to copy vtk image.Please direct me to get that.</div><div>I will appreciate your help.</div><span><font color="#888888"><div>Shirani</div></font></span></blockquote><div><br></div></div></div>newImage->DeepCopy(oldImage);<br clear="all">
<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/DeepCopy" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/DeepCopy</a></div><span class="HOEnZb"><font color="#888888"><div class="gmail_quote">
<br>David</div>
</font></span></blockquote></div><br></div>