<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Hi,<div><br><div>I'm using managedITK v 3.14.0.0 and vtkDotnet v 5.0.1</div><div><br></div><div>I have a problem with managedITK and vtkDotnet when passing an itkImage to Vtkimage by using itkImageToVTKImageFilter.</div>
<div><br></div><div>I searched for the possible solutions and then I saw this link "<a href="http://www.itk.org/pipermail/insight-users/2008-April/025400.html" target="_blank" style="color: rgb(0, 101, 204); ">http://www.itk.org/pipermail/insight-users/2008-April/025400.html</a>"</div>
<div><br></div><div>I completely understood the problem is about between the const pointers and native classes.</div><div><br></div><div>However, though it is said that this problem will have been fixed in the next version of managed ITK, I'm still getting the same error.</div>
<div><br></div><div>I also tried vtkImageImport and vtkImageExport to convert itkImage by using its NativePointer (itkImage.NativePointer) but I always got the same error "<b>AccessViolationException</b>".</div>
<div><br></div><div><br></div><div>I just want to know if managedITK and vtkDotnet is still being supported or am I missing something ?</div><div><br></div><div><br></div><div><b>For example:</b></div><div><div> itkImage_US3 itkImageData = itkImage_US3.New();</div>
<div> itkImageData.Read(imagePath);</div><div> itkImageData.DisconnectPipeline();</div></div><div><br></div><div> itkImageToVTKImageFilter_ISS3 connector = itkImageToVTKImageFilter_ISS3.New(); <b>-->warning itkProcessObject.cxx line 520</b></div>
<div><br></div><div> connector.SetInput(itkImageData); --> no problem</div><div><div> imageData = connector.GetOutput(); --> no problem</div><div> imageData.Update(); ---> <b>AccessViloationException </b></div>
</div><div><br></div><div><b>The same problem continue if I try to access itkImage again:</b></div><div><b><br></b></div><div><div> vtkImageExport vtkExport = new vtkImageExport();</div><div> vtkImageImport vtkImport = new vtkImageImport();</div>
</div><div><br></div><div><div> vtkExport.SetNativePointer(itkImageData.NativePointer);</div><div> vtkImport.SetDataOrigin(vtkExport.GetDataOrigin()); ----> <b>AccessViloationException</b></div>
</div></div></span>