cinemaIO.raster_wrangler Module
Module that uses one of the available back end libraries to write out image
files for cinema’s file store class.
-
class
paraview.cinemaIO.raster_wrangler.
RasterWrangler
[source]
Bases: object
Isolates the specifics of raster file formats from the cinema store.
In particular this delegates the task to one or more subsidiary modules.
The choice of which is open to facilitate packaging in different
places, i.e. PIL for desktop and small packages, VTK for HPC contexts.
-
assertvalidimage
(filename)[source]
tests that a given file is syntactically correct
-
enableOpenEXR
()[source]
Try to turn on OpenEXR file IO support
-
enablePIL
()[source]
Try to turn on PIL file IO support
-
enableVTK
()[source]
Try to turn on VTK file IO support
-
floatExtension
()[source]
determine file extension for depth images
-
genericreader
(fname)[source]
read generic binary data dump
-
genericwriter
(imageslice, fname)[source]
write generic binary data dump
-
rgbreader
(fname)[source]
opens a color image file and returns it as a color buffer
-
rgbwriter
(imageslice, fname)[source]
takes in a color buffer and writes it as an image file
-
valuereader
(fname)[source]
Opens a value image file and returns it as either a color buffer
or a floating point array (depending on how the image was exported).
-
valuewriter
(imageSlice, fname, vrange)[source]
Takes in either a (1C) float or a RGB (3C) buffer and writes it as
an image file.
-
zreader
(fname)[source]
reads a depth file to make a depth buffer
-
zwriter
(imageslice, fname)[source]
takes in a depth buffer and writes it as a depth file