fabio.bruker100image
index
/usr/lib/python2.5/site-packages/fabio/bruker100image.py

## Automatically adapted for numpy.oldnumeric Oct 05, 2007 by alter_code1.py

 
Modules
       
PIL.Image
numpy
fabio.brukerimage
math

 
Classes
       
fabio.brukerimage.brukerimage(fabio.fabioimage.fabioimage)
bruker100image

 
class bruker100image(fabio.brukerimage.brukerimage)
    
Method resolution order:
bruker100image
fabio.brukerimage.brukerimage
fabio.fabioimage.fabioimage

Methods defined here:
read(self, fname)
toPIL16(self, filename=None)

Methods inherited from fabio.brukerimage.brukerimage:
write(self, fname)
Writes the image as EDF
FIXME - this should call edfimage.write if that is wanted?
eg:     obj = edfimage(data = self.data, header = self.header)
        obj.write(fname)
        or maybe something like: edfimage.write(self, fname)
write2(self, fname)
FIXME: what is this?

Data and other attributes inherited from fabio.brukerimage.brukerimage:
__headerstring__ = ''

Methods inherited from fabio.fabioimage.fabioimage:
__init__(self, data=None, header=None)
Set up initial values
add(self, other)
Add another Image - warnign, does not clip to 16 bit images by default
getheader(self)
returns self.header
getmax(self)
Find max value in self.data, caching for the future
getmean(self)
return the mean
getmin(self)
Find min value in self.data, caching for the future
getstddev(self)
return the standard deviation
integrate_area(self, coords)
Sums up a region of interest 
if len(coords) == 4 -> convert coords to slices
if len(coords) == 2 -> use as slices
floor -> ? removed as unused in the function.
make_slice(self, coords)
Convert a len(4) set of coords into a len(2) 
tuple (pair) of slice objects
the latter are immutable, meaning the roi can be cached
readheader(self, filename)
Call the _readheader function...
rebin(self, x_rebin_fact, y_rebin_fact)
Rebin the data and adjust dims
resetvals(self)
Reset cache - call on changing data
update_header(self, **kwds)
update the header entries
by default pass in a dict of key, values.