Class StereoDiskPGMToFeatureConverter


public class StereoDiskPGMToFeatureConverter
extends StereoDiskFeatureConverter

Converts a directory of PGM files to a multi image TIFF file with a specific order (depends on directory.list) Copyright (c) 1999-2004, Michael Abramoff. All rights reserved.

Fields inherited from class stereodisk.StereoDiskFeatureConverter
fDirectory, list, scaling
Constructor Summary
Method Summary
protected static float[] filter(float[] original, int width, int binning)
          Filter a depth map original.
static void main(java.lang.String[] args)
Methods inherited from class stereodisk.StereoDiskFeatureConverter
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public StereoDiskPGMToFeatureConverter()
Method Detail


public static void main(java.lang.String[] args)


protected static float[] filter(float[] original,
                                int width,
                                int binning)
Filter a depth map original. Original may contain 0, which should be considered NaN and converted to the closest neighbor. Equalize the original with respect to the average border, which is supposedly 0. Everything with a lower z value is then made -, everythign above it is positive.