<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Hi there,</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Sorry for re-activating an old thread, but this seems
to be exactly the subject I&#8217;m having problems with.&nbsp; </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I&#8217;ve been messing about with vtkdotnet and ManagedITK
for a couple of weeks now with C++/CLI and can read images into ITK, process
them and then send them to VTK using the vtkImageImport class as demonstrated
in the previous message.&nbsp; </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I&#8217;ve been trying the reverse recently, i.e.
writing out the data buffer from vtkImageData (using vtkImageExport) but have
been unable to pass it to a vtkImage instance. &nbsp;I&#8217;m able to extract
all the size, spacing, scalar type information fine, and create an empty itkImage,
just can&#8217;t figure out a way to transfer the pixel buffer.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Does anyone know how I might be able to do this?</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>From reading about, it seems that the native ImageToVTKImageFilter
and VTKImageToImageFilter are the easiest way of accomplishing this task. I
have no experience of wrapping itk classes (other than the little I have read
in the ManagedITK documentation and in compiling said software using the
supplied cMake files), but with a few pointers I am happy to dedicate some time
to trying to wrap these.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Many thanks, Gareth</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

</div>


<DIV><P><HR>
****************************************************************<BR>
This e-mail and any files transmitted with it are confidential<BR>
and solely for the use of the intended recipient. If you have<BR>
received this e-mail in error you should not disseminate,<BR>
distribute or copy it. Please notify the sender immediately and<BR>
delete this e-mail from your system.<BR>
****************************************************************<BR>

</P></DIV>
</body>

</html>