motris.algorithm
Class OpticalFlow

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bymotris.algorithm.Algorithm
              extended bymotris.algorithm.OpticalFlow
All Implemented Interfaces:
ParameterizedObject

public class OpticalFlow
extends Algorithm

Computes optical flow.

Author:
Markus Middendorf, Hendrik Dahlkamp

Nested Class Summary
(package private)  class OpticalFlow.MyRectangle
          Convenience class used by OF Calculation
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
private  boolean abl_skaliert
           
private  boolean abl_skaliert_tp
           
private  int categorisationtype
           
private  int DEBUG_LEVEL
           
private  Derivative derivative
           
private  boolean disk_abh_mittelung
           
private  float disk_schwelle
           
private  int height
           
private  double kategDGDschwelle
           
private  double kategorisierung_dgd_spur_schwelle
           
private  double kategorisierung_maxoflaenge
           
private  double kategorisierung_schwelle_ev3_t
           
private  double kategorisierung_un_schwelle
           
private  double kategSchwelleSpurTNeutral
           
private  MaskComputation maskSettings
           
private  int max_it
           
private  boolean nur_xy_mittelung
           
private  java.lang.String outfileMask
           
private  java.lang.String outputdir
           
private static boolean preheated
           
private  double sigma_t
           
private  double sigma_x
           
private  double sigma_y
           
private  int width
           
private  int x
           
private  int y
           
 
Fields inherited from class motris.algorithm.Algorithm
dataManager, experiment
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
OpticalFlow(Experiment e)
           
 
Method Summary
 OFImage calculate(int frame)
           
 OFImage calculate(int bildnummer, int offset_x_gegeben, int offset_y_gegeben, int breite_gegeben, int hoehe_gegeben, boolean computeRescaleFactors)
           
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
private  int kategorie_und_of_aus_ew_und_ev(double spur, double[] ev1, double[] ev2, double[] ev3, double ew1, double ew2, double ew3)
           
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
private  void sortByEigenvalue(double[] values, double[] eigenVectorIn, double[][] eigenvectorOut)
           
 
Methods inherited from class motris.algorithm.Algorithm
deregisterLayers
 
Methods inherited from class parameter.ParameterizedObjectAdaptor
addParameterChangedListener, finalize, fireParameterChanged, parameterEdited, removeParameterChangedListener
 
Methods inherited from class motris.data.Description
getDescription, getIdentifier, getName, setDescription, setIdentifier, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_LEVEL

private int DEBUG_LEVEL

outfileMask

private java.lang.String outfileMask

outputdir

private java.lang.String outputdir

x

private int x

y

private int y

width

private int width

height

private int height

disk_schwelle

private float disk_schwelle

disk_abh_mittelung

private boolean disk_abh_mittelung

max_it

private int max_it

sigma_x

private double sigma_x

sigma_y

private double sigma_y

sigma_t

private double sigma_t

abl_skaliert

private boolean abl_skaliert

abl_skaliert_tp

private boolean abl_skaliert_tp

nur_xy_mittelung

private boolean nur_xy_mittelung

categorisationtype

private int categorisationtype

kategorisierung_maxoflaenge

private double kategorisierung_maxoflaenge

kategSchwelleSpurTNeutral

private double kategSchwelleSpurTNeutral

kategDGDschwelle

private double kategDGDschwelle

kategorisierung_un_schwelle

private double kategorisierung_un_schwelle

kategorisierung_dgd_spur_schwelle

private double kategorisierung_dgd_spur_schwelle

kategorisierung_schwelle_ev3_t

private double kategorisierung_schwelle_ev3_t

derivative

private Derivative derivative

maskSettings

private MaskComputation maskSettings

preheated

private static boolean preheated
Constructor Detail

OpticalFlow

public OpticalFlow(Experiment e)
Method Detail

calculate

public OFImage calculate(int frame)

calculate

public OFImage calculate(int bildnummer,
                         int offset_x_gegeben,
                         int offset_y_gegeben,
                         int breite_gegeben,
                         int hoehe_gegeben,
                         boolean computeRescaleFactors)

sortByEigenvalue

private void sortByEigenvalue(double[] values,
                              double[] eigenVectorIn,
                              double[][] eigenvectorOut)

getParameters

public ParameterSet getParameters()
Description copied from interface: ParameterizedObject
Get a Vector of Strings with a description of each Parameter

Specified by:
getParameters in interface ParameterizedObject
Overrides:
getParameters in class ParameterizedObjectAdaptor

setParameters

public boolean setParameters(ParameterSet _params)
Description copied from interface: ParameterizedObject
Set Parameters of this class

Specified by:
setParameters in interface ParameterizedObject
Overrides:
setParameters in class ParameterizedObjectAdaptor

kategorie_und_of_aus_ew_und_ev

private final int kategorie_und_of_aus_ew_und_ev(double spur,
                                                 double[] ev1,
                                                 double[] ev2,
                                                 double[] ev3,
                                                 double ew1,
                                                 double ew2,
                                                 double ew3)