MantisBT - ParaView
View Issue Details
0008162ParaView(No Category)public2008-11-25 06:322016-08-12 09:57
F Wheeler 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0008162: float to Calculator to double to Median problem
[FYI, I have sent this as an email to the paraview list several times over the past week without it appearing in the archives. I even sent it once or twice after I subscribed to the list.]

I'm using Paraview 3.4.0 in Windows to process and view a float attribute of a Uniform Rectilinear Grid. I'm able to apply a Median filter to the float attribute and view the result, which is also floats. However, when I use the Calculator filter, the calculator output is of type double. It looks like the Median filter will not operate on doubles. I get the following error:

ERROR: In ..\..\..\ParaView3\VTK\Imaging\vtkImageMedian3D.cxx, line 395 vtkImageMedian3D (06B19448): Execute: input data type, 11, must match out ScalarType 10

Is this a limitation/bug in ParaView? Is there a way to get the calculator to produce floats as its output? Is there a way to tell the Median filter that its output should be doubles so the input and output types match up?

I'm using abs(11000-ImageFile) in the calculator now. I've tried fabs(11000-ImageFile), float(abs(11000-ImageFile)), and (float)abs(11000-ImageFile), but no joy.

Paraview is a fine tool - many thanks.

Regards,
Fred Wheeler
No tags attached.
Issue History
2008-11-25 06:32F WheelerNew Issue
2009-12-09 14:49Berk GeveciProject@3@ => ParaView
2011-06-16 13:10Zack GalbreathCategory => (No Category)
2016-08-12 09:57Kitware RobotNote Added: 0037610
2016-08-12 09:57Kitware RobotStatusexpired => closed
2016-08-12 09:57Kitware RobotResolutionopen => moved
2016-08-12 09:57Kitware RobotAssigned To => Kitware Robot

Notes
(0037610)
Kitware Robot   
2016-08-12 09:57   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.