Package fabio :: Module pnmimage :: Class pnmimage
[hide private]
[frames] | no frames]

Class pnmimage

source code

           object --+    
                    |    
fabioimage.fabioimage --+
                        |
                       pnmimage

Instance Methods [hide private]
 
__init__(self, *arg, **kwargs)
Set up initial values
source code
 
_readheader(self, f)
Must be overridden in classes
source code
 
read(self, fname, frame=None)
try to read PNM images
source code
 
write(self, filename)
To be overwritten - write the file
source code

Inherited from fabioimage.fabioimage: add, convert, getclassname, getframe, getheader, getmax, getmean, getmin, getstddev, integrate_area, load, make_slice, next, previous, readROI, readheader, rebin, resetvals, save, toPIL16, update_header

Inherited from fabioimage.fabioimage (private): _compressed_stream, _open

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
P1dec(buf, bytecode) source code
 
P4dec(buf, bytecode) source code
 
P2dec(buf, bytecode) source code
 
P5dec(buf, bytecode) source code
 
P3dec(buf, bytecode) source code
 
P6dec(buf, bytecode) source code
 
P7dec(buf, bytecode) source code
 
checkData(data=None)
Empty for fabioimage but may be populated by others classes, especially for format accepting only integers
source code

Inherited from fabioimage.fabioimage: checkHeader

Class Variables [hide private]
Properties [hide private]

Inherited from fabioimage.fabioimage: classname

Inherited from object: __class__

Method Details [hide private]

__init__(self, *arg, **kwargs)
(Constructor)

source code 

Set up initial values

Overrides: object.__init__
(inherited documentation)

_readheader(self, f)

source code 

Must be overridden in classes

Overrides: fabioimage.fabioimage._readheader
(inherited documentation)

read(self, fname, frame=None)

source code 

try to read PNM images

Parameters:
  • fname - name of the file
  • frame - not relevant here! PNM is always single framed
Overrides: fabioimage.fabioimage.read

write(self, filename)

source code 

To be overwritten - write the file

Overrides: fabioimage.fabioimage.write
(inherited documentation)

checkData(data=None)
Static Method

source code 

Empty for fabioimage but may be populated by others classes, especially for format accepting only integers

Overrides: fabioimage.fabioimage.checkData
(inherited documentation)