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