[Paraview] Erode and Dilate filters?

Berk Geveci berklist at nycap . rr . com
29 Oct 2003 09:35:30 -0500


I guess this is a good way of finding who uses which filters :-)
Seriously, I removed the XML for those two filters because they
were put there as a test and I didn't believe that they were
used. You can add them back by loading a package. Here is
what it should look like:

<ModuleInterfaces>
<Module name="Dilate"  root_name="Dilate"  module_type="Filter">
  <Filter class="vtkPVImageContinuousDilate3D">
    <Input name="Input" class="vtkImageData">
      <ArrayRequirement attribute="Point" components="1"/>
    </Input>
  </Filter>
  <InputMenu id="im" label="Input" help="Set the input to this filter."
input_name="Input"/>
  <ArrayMenu input_name="Input" attribute_type="Scalars" label="Scalars"
input_menu="im" number_of_components="1" help="Select the input scalars
to process."/>
  <VectorEntry label="Kernel Size" variable="KernelSize" type="int"
length="3" help="Determines the dilation neighborhood." default_value="1
1 1"/>
</Module>
                                                                                          <Module name="Erode"  root_name="Erode" module_type="Filter">
  <Filter class="vtkPVImageContinuousErode3D">
    <Input name="Input" class="vtkImageData">
      <ArrayRequirement attribute="Point" components="1"/>
    </Input>
  </Filter>
  <InputMenu id="im" label="Input" help="Set the input to this filter."
input_name="Input"/>
  <ArrayMenu input_name="Input" attribute_type="Scalars" label="Scalars"
input_menu="im" number_of_components="1" help="Select the input scalars
to process."/>
  <VectorEntry label="Kernel Size" variable="KernelSize" type="int"
length="3" help="Determines the erosion neighborhood." default_value="1
1 1"/>
</Module>
</ModuleInterfaces>

Create an .xml file and add a PV_INTERFACE_PATH variable that points to
the directory where that file is to your environment. ParaView will try
to load all .xml files in that directory.

By the way, why are you using the CVS development version? If you are
using ParaView for production work, you should use the 1.0.3 release.
We are doing some serious overhaul and the development tree might not 
be always stable.

-Berk

On Wed, 2003-10-29 at 08:24, Bruno Jobard wrote:
> 
> Hello,
>  
> Some weeks ago, it was possible to apply erode and dilate filters to
> volumes of scalars. These filters was accessible from the menu but
> they are no more visible... Is it a particular reason for this
> disappearance? How could I expose them again in the gui? (I am using
> the cvs version of paraview).
>  
> Thank you,
>  
> Bruno.
>  
-- 
Berk Geveci <berklist at nycap . rr . com>