Class Algorithm

java.lang.Object
  extended by Algorithm

public class Algorithm
extends java.lang.Object

Class that contains all the algorithm functionality for video shot detection.

Version:
1.0 01.06.06
Author:
Vegard Kosmo
See Also:
Videosegmenter, GlobalHistogram, LocalHistogram, EdgeDetector, EdgeHistogram, ResizedImageObject

Field Summary
 double edgeColorThreshold
           
 double globalColorThreshold
           
 double localColorThreshold
           
 
Constructor Summary
Algorithm(Videosegmenter main)
          Standard constructor.
 
Method Summary
 double getEdgeThreshold()
          Method that returns the local color histogram threshold
 double getGlobalThreshold()
          Method that returns the global color histogram threshold
 double getLocalThreshold()
          Method that returns the local color histogram threshold
 void runAlgorithm()
          Method to run one of the algorithms, boolean values decide which one to be run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

globalColorThreshold

public double globalColorThreshold

localColorThreshold

public double localColorThreshold

edgeColorThreshold

public double edgeColorThreshold
Constructor Detail

Algorithm

public Algorithm(Videosegmenter main)
Standard constructor. Creates histograms and structures for storing the results.

Parameters:
main - Main class reference
Method Detail

runAlgorithm

public void runAlgorithm()
Method to run one of the algorithms, boolean values decide which one to be run


getGlobalThreshold

public double getGlobalThreshold()
Method that returns the global color histogram threshold

Returns:
globalColorThreshold The global color histogram algorithm threshold

getLocalThreshold

public double getLocalThreshold()
Method that returns the local color histogram threshold

Returns:
localColorThreshold The local color histogram algorithm threshold

getEdgeThreshold

public double getEdgeThreshold()
Method that returns the local color histogram threshold

Returns:
edgeColorThreshold The edge chasing algorithm color threshold