Class Videosegmenter

java.lang.Object
  extended by Videosegmenter

public class Videosegmenter
extends java.lang.Object

Main class for the video segmenter This class builds all the components of the video segmenter application

Version:
1.0 01.06.06
Author:
Vegard Kosmo
See Also:
GUI, Algorithm, Mediaplayer, FrameSelector

Field Summary
 Algorithm algorithm
           
 boolean algorithm1
           
 boolean algorithm2
           
 boolean algorithm3
           
 EdgeHistogramComparator edgeHistogramComparator
           
 FrameSelector frameSelector
           
 GlobalHistogramComparator globalHistogramComparator
           
 GUI gui
           
 ImageResizer imageResizer
           
 LocalHistogramComparator localHistogramComparator
           
 Mediaplayer mediaPlayer
           
 javax.swing.JFrame shotWindow
           
 double thresholdFactor
           
 javax.swing.JFrame videoWindow
           
 
Constructor Summary
Videosegmenter()
          Standard constructor Sets the algorithm variables and threshold factor
 
Method Summary
 void buildAlgorithm()
          Method to build the video shot detection algorithm
 void buildEdegHistogramComparator()
          Method to build the edge histogram comparator
 void buildFrameSelector()
          Method to build the frame selector
 void buildGlobalHistogramComparator()
          Method to build the global histogram comparator
 void buildLocalHistogramComparator()
          Method to build the local histogram comparator
 void changeThreshold(int id)
          Method to change the image comparing threshold value
 void changeValues(int id)
          Method to change the algorithm boolean value
 void exit()
          Method to shut down the application
 double getThresholdFactor()
          Method to return the threshold factor value
static void main(java.lang.String[] args)
          Main method to start the application
 void openFile()
          Method to open a video file and create a media player
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gui

public GUI gui

videoWindow

public javax.swing.JFrame videoWindow

shotWindow

public javax.swing.JFrame shotWindow

algorithm

public Algorithm algorithm

thresholdFactor

public double thresholdFactor

globalHistogramComparator

public GlobalHistogramComparator globalHistogramComparator

localHistogramComparator

public LocalHistogramComparator localHistogramComparator

edgeHistogramComparator

public EdgeHistogramComparator edgeHistogramComparator

imageResizer

public ImageResizer imageResizer

algorithm1

public boolean algorithm1

algorithm2

public boolean algorithm2

algorithm3

public boolean algorithm3

mediaPlayer

public Mediaplayer mediaPlayer

frameSelector

public FrameSelector frameSelector
Constructor Detail

Videosegmenter

public Videosegmenter()
Standard constructor Sets the algorithm variables and threshold factor

Method Detail

openFile

public void openFile()
Method to open a video file and create a media player


exit

public void exit()
Method to shut down the application


changeValues

public void changeValues(int id)
Method to change the algorithm boolean value

Parameters:
id - The id of the algorithm

changeThreshold

public void changeThreshold(int id)
Method to change the image comparing threshold value

Parameters:
id - The id of the threshold to be changed

getThresholdFactor

public double getThresholdFactor()
Method to return the threshold factor value

Returns:
The activated threshold factor

buildAlgorithm

public void buildAlgorithm()
Method to build the video shot detection algorithm


buildFrameSelector

public void buildFrameSelector()
Method to build the frame selector


buildGlobalHistogramComparator

public void buildGlobalHistogramComparator()
Method to build the global histogram comparator


buildLocalHistogramComparator

public void buildLocalHistogramComparator()
Method to build the local histogram comparator


buildEdegHistogramComparator

public void buildEdegHistogramComparator()
Method to build the edge histogram comparator


main

public static void main(java.lang.String[] args)
Main method to start the application

Parameters:
args - The standard args argument of the main method