stereodisk
Class StereoDiskGroundTruthConverter

java.lang.Object
  |
  +--stereodisk.StereoDiskFeatureConverter
        |
        +--stereodisk.StereoDiskGroundTruthConverter

public class StereoDiskGroundTruthConverter
extends StereoDiskFeatureConverter

Saves the ground truth classification images as a stack with name -. for each observer. Also saves the ground truth winner take all with name gt-.. The directory should contain all observations for each base image, otherwise errors may result. Copyright (c) 1999-2004, Michael Abramoff. All rights reserved.


Fields inherited from class stereodisk.StereoDiskFeatureConverter
fDirectory, list, scaling
 
Constructor Summary
StereoDiskGroundTruthConverter()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static byte[] takeVotes(byte[][] truths)
          From an array of image classifications, take the votes for each pixel and return a single image with each pixel classified as the class that had the most votes.
static byte[] takeVotes(byte[][] truths, int width, int binning)
          From an array of image classifications, take the votes for each pixel and return a single image with the binned pixel classified as the class that had the most votes.
 
Methods inherited from class stereodisk.StereoDiskFeatureConverter
postprocess
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StereoDiskGroundTruthConverter

public StereoDiskGroundTruthConverter()
Method Detail

main

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

takeVotes

public static byte[] takeVotes(byte[][] truths)
From an array of image classifications, take the votes for each pixel and return a single image with each pixel classified as the class that had the most votes. Cannot classify images with more than 10 classes!
Parameters:
votes - a float[][] bunch of ground truth images.
Returns:
truth a float[] containing the best vote class for each element.

takeVotes

public static byte[] takeVotes(byte[][] truths,
                               int width,
                               int binning)
From an array of image classifications, take the votes for each pixel and return a single image with the binned pixel classified as the class that had the most votes. Cannot classify images with more than 10 classes!
Parameters:
truths - a float[][] bunch of ground truth images.
binning - the amount of binning in x and y dimension
Returns:
truth a float[] containing the best vote class for each element.