motris.gui
Class OpticalFlowDisplayLayer

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bymotris.gui.ColorizedLayer
              extended bymotris.gui.VectorFieldLayer
                  extended bymotris.gui.OpticalFlowDisplayLayer
All Implemented Interfaces:
Layer, ParameterizedObject

public class OpticalFlowDisplayLayer
extends VectorFieldLayer

Display Layer for computed Optical Flow

Author:
preuter, ottlik

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
private  java.awt.Color colorDGDOF
           
private  java.awt.Color colorDGDPP
           
private  java.awt.Color colorOFDiscontinuity
           
private  java.awt.Color colorOFTooLarge
           
private  java.awt.Color colorOther
           
private  java.awt.Color colorRegularOpticalFlow
           
private  ExperimentViewController controller
           
private  DataManager dataManager
           
private  OFImage ofImage
           
(package private)  ImageSequenceData sequence
           
(package private)  int time
           
 
Fields inherited from class motris.gui.VectorFieldLayer
allowCustomDraw, ANGLEMODE, blackPointsTransparent, CUSTOMMODE, D2, D3, displayImage, displayMode, maxValue, minValue, NORMMODE, opacity, vectorData, VECTORMODE, xoff, yoff
 
Fields inherited from class motris.gui.ColorizedLayer
color, strokeWidth
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
OpticalFlowDisplayLayer()
           
OpticalFlowDisplayLayer(DataManager _data, ExperimentViewController _controller)
           
 
Method Summary
 void drawCustom(java.awt.Graphics g, javax.swing.JPanel _c, double zoomFactor)
           
 java.lang.String getCustomDrawName()
           
 java.lang.String getDisplayedName()
           
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 void setVectorData()
           
 
Methods inherited from class motris.gui.VectorFieldLayer
colorizedDraw, drawAngle, drawArrow, drawArrows, drawNorm, getColor, getNormalizedValue, getPixelDetails, getPreferedDimension
 
Methods inherited from class motris.gui.ColorizedLayer
draw, getIdentification
 
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
 
Methods inherited from interface parameter.ParameterizedObject
addParameterChangedListener, parameterEdited, removeParameterChangedListener
 

Field Detail

ofImage

private OFImage ofImage

dataManager

private DataManager dataManager

controller

private ExperimentViewController controller

sequence

ImageSequenceData sequence

time

int time

colorRegularOpticalFlow

private java.awt.Color colorRegularOpticalFlow

colorOFDiscontinuity

private java.awt.Color colorOFDiscontinuity

colorOFTooLarge

private java.awt.Color colorOFTooLarge

colorDGDOF

private java.awt.Color colorDGDOF

colorDGDPP

private java.awt.Color colorDGDPP

colorOther

private java.awt.Color colorOther
Constructor Detail

OpticalFlowDisplayLayer

public OpticalFlowDisplayLayer()

OpticalFlowDisplayLayer

public OpticalFlowDisplayLayer(DataManager _data,
                               ExperimentViewController _controller)
Method Detail

getDisplayedName

public java.lang.String getDisplayedName()

setVectorData

public void setVectorData()
Specified by:
setVectorData in class VectorFieldLayer

drawCustom

public void drawCustom(java.awt.Graphics g,
                       javax.swing.JPanel _c,
                       double zoomFactor)
Specified by:
drawCustom in class VectorFieldLayer

getCustomDrawName

public java.lang.String getCustomDrawName()
Specified by:
getCustomDrawName in class VectorFieldLayer

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 VectorFieldLayer

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 VectorFieldLayer