Hi,<br>regarding the vtkImageSlice exposition in ParaView, you should take<br>a look at these threads:<br>- issue report: <br>   <a href="http://www.mail-archive.com/paraview@paraview.org/msg02225.html">http://www.mail-archive.com/paraview@paraview.org/msg02225.html</a><br>
   <a href="http://www.mail-archive.com/paraview@paraview.org/msg08260.html">http://www.mail-archive.com/paraview@paraview.org/msg08260.html</a><br>- issue deep explanation:<br>   <a href="http://www.cmake.org/pipermail/paraview/2010-June/017738.html">http://www.cmake.org/pipermail/paraview/2010-June/017738.html</a><br>
<br>regarding the segfault, I feel surprise ! I use Median and Gradient very<br>often, and I never noticed a bug. Can you give the step to reproduce ?<br><br>Best regards,<br>Jerome<br><br><br><div class="gmail_quote">2011/5/19 Dominik Szczerba <span dir="ltr">&lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I think my theory that it has to do with threading may be correct...<br>
<br>
I just tried instead of my custom plugin to run the built-in Gradient<br>
or Median on my vtkImageData and Paraview (3.11) silently segfaults.<br>
Both these built-in filters derive from vtkThreadedImageAlgorithm.<br>
Built-in vtkExtractVOI. however, works correctly, just as my other<br>
custom plugins deriving from vtkImageAlgorithm.<br>
<br>
Any pointers in this bug hunting are appreciated.<br>
<font color="#888888"><br>
Dominik<br>
</font><div><div></div><div class="h5"><br>
On Thu, May 19, 2011 at 9:30 PM, Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt; wrote:<br>
&gt; So far I was able to add a few simple custom plugins, but am slowly<br>
&gt; losing the grip.<br>
&gt; I am trying to resample an image like this:<br>
&gt;<br>
&gt; &lt;SourceProxy name=&quot;ImageResample&quot; class=&quot;vtkImageResample&quot;<br>
&gt; label=&quot;ImageResample&quot;&gt;<br>
&gt; &lt;InputProperty name=&quot;Input&quot; command=&quot;SetInputConnection&quot;&gt;<br>
&gt;        &lt;ProxyGroupDomain name=&quot;groups&quot;&gt;<br>
&gt;                &lt;Group name=&quot;sources&quot;/&gt;<br>
&gt;                &lt;Group name=&quot;filters&quot;/&gt;<br>
&gt;        &lt;/ProxyGroupDomain&gt;<br>
&gt;        &lt;DataTypeDomain name=&quot;input_type&quot;&gt;<br>
&gt;                &lt;DataType value=&quot;vtkImageData&quot;/&gt;<br>
&gt;        &lt;/DataTypeDomain&gt;<br>
&gt; &lt;/InputProperty&gt;<br>
&gt; &lt;DoubleVectorProperty name=&quot;Magnification Factor&quot;<br>
&gt; command=&quot;SetAxisMagnificationFactor&quot; number_of_elements=&quot;3&quot;<br>
&gt; number_of_elements_per_command=&quot;1&quot; repeat_command=&quot;1&quot; use_index=&quot;1&quot;<br>
&gt; default_values=&quot;1 1 1&quot;/&gt;<br>
&gt;<br>
&gt; I get these 2 problems:<br>
&gt;<br>
&gt; 1) There appear two (!) outputs (named Output-0 and Output-1). I get<br>
&gt; this message:<br>
&gt;<br>
&gt; ERROR: In /home/dsz/pack/ParaView/VTK/Filtering/vtkDemandDrivenPipeline.cxx,<br>
&gt; line 827<br>
&gt; vtkPVPostFilterExecutive (0x3aa4f60): Input for connection index 0 on<br>
&gt; input port index 0 for algorithm vtkPVPostFilter(0x2cfb850) is of type<br>
&gt; vtkImageStencilData, but a vtkDataSet is required.<br>
&gt;<br>
&gt; 2) The first output has the expected Spacing, but it does not contain<br>
&gt; the same scalar array as in the input. Instead, it contains a new<br>
&gt; array ImageScalars ranging [0,0]. I get this message:<br>
&gt;<br>
&gt; Warning: In /home/dsz/pack/ParaView/ParaViewCore/VTKExtensions/vtkTexturePainter.cxx,<br>
&gt; line 179<br>
&gt; vtkTexturePainter (0x339fa70): Failed to locate selected scalars. Will<br>
&gt; use image scalars by default.<br>
&gt;<br>
&gt; I have been so far successful with other image algorithms, however<br>
&gt; they were all deriving from vtkImageAlgorithm. This one derives from<br>
&gt; vtkThreadedImageAlgorithm - could this have anything to do here?<br>
&gt; Could anyone point me into the right direction? After inspection of<br>
&gt; the xml files in the ParaView source tree I am still clueless.<br>
&gt;<br>
&gt; Thanks and regards,<br>
&gt; Dominik<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>