Hello,<br><br>I have been trying to create a pipeline to visualize <b>ITK</b> data with <b>vtkTensorGlyph</b> in the same way defined in the example <b>TestPlaneWidget</b>.cxx. <br><br><div id="gwt-debug-file-name" class="gwt-Label G19n4oxmK">

But it seems <b>ITK</b> creates conflict with the <b>vtkProbeFilter</b> class, and I&#39;m wondering what will be best way to convert the <b>ITK</b> data so I can feed it into <b>vtkTensorGlyph</b>.<br><br></div>This is my code:<br>

<br>[...]<br><b>// ITK to VTK code</b><br>     vtkImageImport* vtkImporter = vtkImageImport::New();<br>     typedef itk::Image&lt; TensorPixelType, 3 &gt;    Vector3DImageType;<br>     typedef itk::VTKImageExport&lt;Vector3DImageType &gt; VTKexporterVectorType;<br>

     VTKexporterVectorType::Pointer VTKexporterVector = VTKexporterVectorType::New();<br>     VTKexporterVector-&gt;SetInput ( ITK_image ); <br>     ConnectPipelines(VTKexporterVector, vtkImporter);<br>     vtkImporter-&gt;GetOutput()-&gt;Update();<br>

     vtkImageData* data = vtkImporter-&gt;GetOutput();<br><br><b>//Glyph and probe filter</b><br>
            vtkPolyData* plane=vtkPolyData::New();<br>
            vtkTensorGlyph* g3d=vtkTensorGlyph::New();<br>
            vtkProbeFilter* probe=vtkProbeFilter::New();<br>
            probe-&gt;SetSource((vtkDataSet*)data);<br>
            probe-&gt;SetInput (plane);<br>
            probe-&gt;SpatialMatchOn();<br>
            probe-&gt;Update();            <br>
            g3d-&gt;SetInput(probe-&gt;GetOutput());<br>
            g3d-&gt;SetSource( cone-&gt;GetOutput());<br><br>        GCallback* glyphCallback=GCallback::New();<br>        glyphCallback-&gt;PolyData=plane;<br>        glyphCallback-&gt;Actor=m_Actor;<br>         m_planeWidget-&gt;SetInteractor(mRen-&gt;GetInteractor());<br>

        m_planeWidget-&gt;SetInput(data);<br>        m_planeWidget-&gt;PlaceWidget();<br>        m_planeWidget-&gt;On();<br>[...]<br><br><b>//Calback for filtering</b><br>
class GCallback : public vtkCommand<br>
{<br>
    public:<br>
    <br>
    static GCallback *New()<br>
    {return new GCallback;}<br>
    <br>
    virtual void Execute (vtkObject* caller, unsigned long, void*)<br>
    {<br>
        vtkPlaneWidget* planeWidget=reinterpret_cast&lt;vtkPlaneWidget*&gt;(caller);<br>
        planeWidget-&gt;GetPolyData(this-&gt;PolyData);<br>
        this-&gt;Actor-&gt;VisibilityOn();<br>
    }<br>
    <br>
    GCallback():PolyData(0),Actor(0){}<br>
    vtkPolyData* PolyData;<br>
    vtkActor* Actor;<br>
};<br><br><br>