float to Calculator to double to Median problem
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
[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