[vtkusers] vtkImageDilateErode3D

Konstantin dmitrievko at gmail.com
Thu Apr 9 13:44:51 EDT 2015


Hi, everyone,

I have a problem with vtkImageDilateErode3D filter. For some reasons it
doesn't return the processed volume.
Here is the information about the input volume:
/vtkImageData (0x7fa15adf57d0)
  Debug: Off
  Modified Time: 1042
  Reference Count: 3
  Registered Events: (none)
  Information: 0x7fa15e60f5e0
  Data Released: False
  Global Release Data: Off
  UpdateTime: 1043
  Field Data:
    Debug: Off
    Modified Time: 1000
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Number Of Points: 165937152
  Number Of Cells: 165028472
  Cell Data:
    Debug: Off
    Modified Time: 1008
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 1 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
    EdgeFlag: (none)
  Point Data:
    Debug: Off
    Modified Time: 1029
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 1
    Array 0 name = scalars
    Number Of Components: 1
    Number Of Tuples: 165937152
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 1 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 1 )
    Scalars: 
      Debug: Off
      Modified Time: 1029
      Reference Count: 1
      Registered Events: (none)
      Name: scalars
      Data type: double
      Size: 165937152
      MaxId: 165937151
      NumberOfComponents: 1
      Information: 0x0
      Name: scalars
      Number Of Components: 1
      Number Of Tuples: 165937152
      Size: 165937152
      MaxId: 165937151
      LookupTable: (none)
      Array: 0x1cba4a000
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
    EdgeFlag: (none)
  Bounds: 
    Xmin,Xmax: (-165.66, 181.66)
    Ymin,Ymax: (-341.16, 6.16016)
    Zmin,Zmax: (-1425, -1109)
  Compute Time: 1056
  Spacing: (0.679688, 0.679688, 0.5)
  Origin: (-165.66, -341.16, -1425)
  Dimensions: (512, 512, 633)
  Increments: (0, 0, 0)
  Extent: (0, 511, 0, 511, 0, 632)/


Here is what I got as the output:
/vtkImageData (0x7fa15ec99280)
  Debug: Off
  Modified Time: 1336
  Reference Count: 1
  Registered Events: (none)
  Information: 0x7fa15e73ac90
  Data Released: False
  Global Release Data: Off
  UpdateTime: 0
  Field Data:
    Debug: Off
    Modified Time: 1333
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Number Of Points: 0
  Number Of Cells: 0
  Cell Data:
    Debug: Off
    Modified Time: 1336
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 1 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
    EdgeFlag: (none)
  Point Data:
    Debug: Off
    Modified Time: 1335
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 1 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
    EdgeFlag: (none)
  Bounds: 
    Xmin,Xmax: (1, -1)
    Ymin,Ymax: (1, -1)
    Zmin,Zmax: (1, -1)
  Compute Time: 1365
  Spacing: (1, 1, 1)
  Origin: (0, 0, 0)
  Dimensions: (0, 0, 0)
  Increments: (0, 0, 0)
  Extent: (0, -1, 0, -1, 0, -1)/

Here is the code:
            /
            connector->GetOutput()->Print(std::cout); //before
            vtkSmartPointer<vtkImageDilateErode3D> dilateErode =
            vtkSmartPointer<vtkImageDilateErode3D>::New();
            dilateErode->SetInputData(connector->GetOutput());
            dilateErode->SetDilateValue(0);
            dilateErode->SetErodeValue(255);
            dilateErode->SetKernelSize(5, 5, 3);
            dilateErode->GetOutput()->Print(std::cout); //after/

Could you point me in the right direction?



--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageDilateErode3D-tp5731422.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list