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
|
__init__(self,
filename)
Reads a file containing range data. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
populateMissingData(self,
approach=' Smooth ' ,
ilog=None)
This function is used to interpolate missing data in the image. |
source code
|
|
- Returns:
- xmin,xmax,ymin,ymax,zmin,zmax
|
- Returns:
- the x coordinates.
|
- Returns:
- the y coordinates.
|
- Returns:
- the z coordinates.
|
- Returns:
- the missing value mask.
|