motris.data
Class ImageSequenceData

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bymotris.data.ImageSequenceData
All Implemented Interfaces:
ParameterizedObject

public class ImageSequenceData
extends ParameterizedObjectAdaptor

Describes the properties of an image sequence (storage location, camera calibration, interlacing etc). Note that the actual images are not handled by ImageSequenceData but by DataManager

Author:
dahlkamp, ottlik

Nested Class Summary
static interface ImageSequenceData.TimeChangedListener
           
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
private  double beta
           
private  Camera cam
           
private  java.lang.String cameraParameterFileName
           
private  int currentTime
           
private  DataManager dataManager
           
private  double deltaT
           
private  java.lang.String dirName
           
private  double[] expDeltaIToTheBeta
           
private  java.lang.String fileNameMask
           
private  int firstImageNumber
           
private  boolean firstRowFirstHalfFrame
           
private  boolean interlaced
           
private  boolean interpolateInterlaced
           
private  int lastImageNumber
           
private  int maxD
           
private  int previousTime
           
private  java.util.Vector timeChangedNotifyList
           
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
ImageSequenceData(DataManager _dm)
           
 
Method Summary
 boolean addTimeChangedListener(ImageSequenceData.TimeChangedListener l)
           
private  void computeFirstAndLastImageNumber()
           
private  boolean doesImageNumberExist(int time)
           
private  int findFirstImageNumber(int lowerBound, int upperBound)
           
private  int findLastImageNumber(int lowerBound, int upperBound)
           
 void fireTimeChanged()
           
 Camera getCamera()
           
 java.lang.String getCameraParameterFileName()
           
 int getCurrentTime()
           
 double getDeltaT()
           
 double[] getExpDeltaIToTheBeta(double _beta, int _maxD)
           
 java.lang.String getFilename(int time)
           
 int getFirstImageNumber()
           
 int getLastImageNumber()
           
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
 int getPreviousTime()
           
 boolean isFirstRowFirstHalfFrame()
           
 boolean isInterlaced()
           
 boolean isInterpolateInterlaced()
           
 boolean isRemotelyStoredImageSequence()
           
 boolean removeTimeChangedListener(ImageSequenceData.TimeChangedListener l)
           
 boolean setCurrentTime(int _currentTime)
           
 void setInterpolateInterlaced(boolean b)
           
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 
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

cameraParameterFileName

private java.lang.String cameraParameterFileName

fileNameMask

private java.lang.String fileNameMask

dirName

private java.lang.String dirName

interlaced

private boolean interlaced

firstRowFirstHalfFrame

private boolean firstRowFirstHalfFrame

interpolateInterlaced

private boolean interpolateInterlaced

dataManager

private DataManager dataManager

currentTime

private int currentTime

previousTime

private int previousTime

firstImageNumber

private int firstImageNumber

lastImageNumber

private int lastImageNumber

deltaT

private double deltaT

expDeltaIToTheBeta

private double[] expDeltaIToTheBeta

beta

private double beta

maxD

private int maxD

timeChangedNotifyList

private java.util.Vector timeChangedNotifyList

cam

private Camera cam
Constructor Detail

ImageSequenceData

public ImageSequenceData(DataManager _dm)
Method Detail

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

getFilename

public java.lang.String getFilename(int time)

getCurrentTime

public int getCurrentTime()

getPreviousTime

public int getPreviousTime()

setCurrentTime

public boolean setCurrentTime(int _currentTime)

getLastImageNumber

public final int getLastImageNumber()

getFirstImageNumber

public final int getFirstImageNumber()

computeFirstAndLastImageNumber

private void computeFirstAndLastImageNumber()

findFirstImageNumber

private int findFirstImageNumber(int lowerBound,
                                 int upperBound)

findLastImageNumber

private int findLastImageNumber(int lowerBound,
                                int upperBound)

doesImageNumberExist

private boolean doesImageNumberExist(int time)

getCameraParameterFileName

public java.lang.String getCameraParameterFileName()

getCamera

public Camera getCamera()

getDeltaT

public double getDeltaT()

addTimeChangedListener

public boolean addTimeChangedListener(ImageSequenceData.TimeChangedListener l)

fireTimeChanged

public void fireTimeChanged()

removeTimeChangedListener

public boolean removeTimeChangedListener(ImageSequenceData.TimeChangedListener l)

isFirstRowFirstHalfFrame

public boolean isFirstRowFirstHalfFrame()

isInterlaced

public boolean isInterlaced()

getExpDeltaIToTheBeta

public double[] getExpDeltaIToTheBeta(double _beta,
                                      int _maxD)

isInterpolateInterlaced

public boolean isInterpolateInterlaced()

setInterpolateInterlaced

public void setInterpolateInterlaced(boolean b)

isRemotelyStoredImageSequence

public boolean isRemotelyStoredImageSequence()