algorithm

Class FourStepSearchAlgorithm


public class FourStepSearchAlgorithm
extends MotionEstimationAlgorithm

Überschrift:

Beschreibung:

Copyright: Copyright (c) 2002

Organisation:

Field Summary

private int
docCounter
private Point
optPosOld
private Point[]
pointers
private int
searchCounter
private LinkedList
searchQueue

Fields inherited from class algorithm.MotionEstimationAlgorithm

NUM_STEPS, counter, docCounter, grid, gui, imageViewer, images, listenerList, maxError, minError, optPos, quietMode, searchRange, stepCounter, threshold

Constructor Summary

FourStepSearchAlgorithm(ImageHolder ih)

Method Summary

void
fillSearchCoordinatesQueue()
private int
getDistance(Point newPos, Point oldPos)
int
getDocCounter()
private LinkedList
getNewCoordinates(int dist)
URL
getNextExplenationURL()
boolean
hasUserDefinedSearchRange()
boolean
hasUserDefinedThreshold()
boolean
performNextComparison()
void
reset()
String
toString()

Methods inherited from class algorithm.MotionEstimationAlgorithm

addAlgorithmListener, fillSearchCoordinatesQueue, fireAlgorithmEvent, getDocCounter, getMaxError, getMinError, getNextExplenationURL, getNumComparisons, getOptimalPostion, getSearchRange, hasUserDefinedSearchRange, hasUserDefinedThreshold, incrementCounter, init, performNextComparison, removeAlgorithmListener, reset, setQuietMode, setSearchRange, setThreshold

Field Details

docCounter

private int docCounter

optPosOld

private Point optPosOld

pointers

private Point[] pointers

searchCounter

private int searchCounter

searchQueue

private LinkedList searchQueue

Constructor Details

FourStepSearchAlgorithm

public FourStepSearchAlgorithm(ImageHolder ih)

Method Details

fillSearchCoordinatesQueue

public void fillSearchCoordinatesQueue()
Overrides:
fillSearchCoordinatesQueue in interface MotionEstimationAlgorithm

getDistance

private int getDistance(Point newPos,
                        Point oldPos)
Parameters:
newPos - new optimal position
oldPos - old optimal position
Returns:
index represinting the distance vector in the array 'pointers'

getDocCounter

public int getDocCounter()
Overrides:
getDocCounter in interface MotionEstimationAlgorithm

getNewCoordinates

private LinkedList getNewCoordinates(int dist)

getNextExplenationURL

public URL getNextExplenationURL()
Overrides:
getNextExplenationURL in interface MotionEstimationAlgorithm

hasUserDefinedSearchRange

public boolean hasUserDefinedSearchRange()
Overrides:
hasUserDefinedSearchRange in interface MotionEstimationAlgorithm

hasUserDefinedThreshold

public boolean hasUserDefinedThreshold()
Overrides:
hasUserDefinedThreshold in interface MotionEstimationAlgorithm

performNextComparison

public boolean performNextComparison()
Overrides:
performNextComparison in interface MotionEstimationAlgorithm

reset

public void reset()
Overrides:
reset in interface MotionEstimationAlgorithm

toString

public String toString()