[Paraview] I can't read a binary 'raw' data image file

Cory Quammen cquammen at cs.unc.edu
Tue Nov 6 09:00:19 EST 2012


Hi Robert,

On Tue, Nov 6, 2012 at 8:37 AM,  <Robert.Atwood at diamond.ac.uk> wrote:
> Dear List
>
> I hope it's some silly 'newbie' issue, but I find myself completely unable to read a raw binary data file using the raw binary data file reader. I have saved a data file as 'raw data' from ImageJ to try, and loaded that same file in ImageJ to verify that data is present. I have saved two versions: 8 bit [0-255] binary data and floating point 32-bit data in little-endian format.
>
> Then in Paraview I try to open the file, then select
> File prefix : this contains the correct file name it appears to me
> C:\Documents and Settings\kny48981\My Documents\Experiments\snail\snail_partial_348x250x348_float32.raw
> Data Scalar Type: Float (or Unsigned char for the other version)
> Data Byte Order: LittleEndian
> File Dimensionality: 3
> Data Origin 0 0 0
> Data Spacing 1 1 1
> Data Extent 0 348
>             0 250
>             0 348
> Number of Scalar Components: 1
> Scalar Array Name: ImageFile
> File Lower Left (ticked)

It looks like the image you are reading has the size 348x250x348. A
definite gotcha in the RAW file reader is that the maximum extent in
x, for example, has to be one less than the size of the image in x.
The same is true for the y and z dimensions.

Hope that helps,
Cory

-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill


More information about the ParaView mailing list