<div>Hello everybody, </div><div><br></div><div>I am trying to modify the example given here: </div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageNonMaximumSuppression">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageNonMaximumSuppression</a></div>
<div>so that it uses a different &quot;magnitude image&quot; and a </div><div>different &quot;vector field&quot; for performing the maximum</div><div>suppression and edge linking. That is, I have my own </div><div>image to be suppressed instead of the gradient magnitude, </div>
<div>and I would like to give my own vector field where the </div><div>suppression should take place. I am working in 3D. </div><div>I use the vtkMetaImageReader to read in the magnitude</div><div>and the vector images without a problem and connected </div>
<div>these to the nonmax filter successfully. </div><div><br></div><div>Now my questions are:</div><div><br></div><div>1) Do the filters used in the example all work in 3D ?</div><div>My understanding is that vtkLinkEdgels is 2D. </div>
<div><br></div><div>2) If so, how do I write the result after  edge linking and thresholding?</div><div>I tried vtkMetaImageWriter </div><div>(writer-&gt;SetInputConnection(thresholdEdgels-&gt;GetOutputPort());)</div><div>
but that failed. I guess I need to a mechanism to like structured point </div><div>to image ? </div><div><br></div><div>Thanks in advance,</div><div>Cagatay</div><div><br></div>