Package pyvision :: Package types :: Module RangeImage :: Class RangeImage
[hide private]
[frames] | no frames]

Class RangeImage

source code

This class is used to handle range images. Originally written to handle output from the Minolta Vivid sensors distributed with the Face Recognition Grand Challenge 2004

This implementation currently can parse range images in ".abs" or ".abs.gz" format.

Very little type checking is done during parsing so unexpected exception or unusual behavior may occur if the file is not formated properly.

This is a sample for the .abs file format: 480 rows 640 columns pixels (flag X Y Z): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... -999999.000000 -999999.000000 -999999.000000 -9999 ... -999999.000000 -999999.000000 -999999.000000 -9999 ... -999999.000000 -999999.000000 -999999.000000 -9999 ...

Author: David S. Bolme 2009

Instance Methods [hide private]
 
__init__(self, filename)
Reads a file containing range data.
source code
 
getRange(self)
Returns: xmin,xmax,ymin,ymax,zmin,zmax
source code
 
getXImage(self)
Returns: the x coordinates.
source code
 
getYImage(self)
Returns: the y coordinates.
source code
 
getZImage(self)
Returns: the z coordinates.
source code
 
getMaskImage(self)
Returns: the missing value mask.
source code
 
populateMissingData(self, approach='Smooth', ilog=None)
This function is used to interpolate missing data in the image.
source code
Method Details [hide private]

getRange(self)

source code 
Returns:
xmin,xmax,ymin,ymax,zmin,zmax

getXImage(self)

source code 
Returns:
the x coordinates.

getYImage(self)

source code 
Returns:
the y coordinates.

getZImage(self)

source code 
Returns:
the z coordinates.

getMaskImage(self)

source code 
Returns:
the missing value mask.