stereodisk
Class StereoDiskGroundTruthAnalyzer

java.lang.Object
  |
  +--stereodisk.StereoDiskAnalyzer
        |
        +--stereodisk.StereoDiskGroundTruthAnalyzer

public class StereoDiskGroundTruthAnalyzer
extends StereoDiskAnalyzer

Analyzes performance of different observers verus ground truth. Copyright (c) 1999-2004, Michael Abramoff. All rights reserved.


Fields inherited from class stereodisk.StereoDiskAnalyzer
height, PIXEL_SAMPLING, testing, training, width
 
Constructor Summary
StereoDiskGroundTruthAnalyzer()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void showStatisticsPerClass(java.lang.String[] basenames, float[][][] experiments, float[][] gt, int c, java.lang.String cName)
          Show the statistics for the class c and ground truths gt.
static float[] takeVotes(float[][] 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.
 
Methods inherited from class stereodisk.StereoDiskAnalyzer
analyzeProbabilities, buildString, createBalancedSampleBlock, createBalancedSampleBlocks, createSampleBlock, createSampleBlocks, imageFeaturePixels, loadFeatures, loadFloatImage, loadFloatImages, min, pixelsToDataset, plotProbs, sampleEvenImages, sampleFeatureImagePixels, sampleFeatureImagePixels, sampleImages, sampleOddImages, showAccuracies, subsample, subsample, subset, subset, testKNN, trainKNN
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StereoDiskGroundTruthAnalyzer

public StereoDiskGroundTruthAnalyzer()
Method Detail

main

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

takeVotes

public static float[] takeVotes(float[][] 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.

showStatisticsPerClass

public static void showStatisticsPerClass(java.lang.String[] basenames,
                                          float[][][] experiments,
                                          float[][] gt,
                                          int c,
                                          java.lang.String cName)
Show the statistics for the class c and ground truths gt.