|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.video.VideoServerConnection
public class VideoServerConnection
VideoServerConnection provides the interface for accessing video analysis server.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_A_IMAGE
|
static java.lang.String |
PROPERTY_BACKGROUND
|
static java.lang.String |
PROPERTY_PRECISE_BACKGROUND
|
static java.lang.String |
PROPERTY_PRECISE_BACKGROUND_WIDTH
|
Constructor Summary | |
---|---|
VideoServerConnection()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for the specified propertyName. |
void |
connect()
Connects this VideoServerConnection to video analysis server. |
void |
disconnect()
Disconnects this VideoServerConnection from video analysis server. |
int |
getAccessRate()
Gets the selected access rate. |
AImage |
getAImage()
Gets current AImage. |
de.desy.tine.types.IMAGE |
getBackground()
Gets the background image from analysis server. |
int |
getBackgroundId()
|
double[] |
getPreciseBackground()
Returns the precise background array. |
int |
getPreciseBackgroundWidth()
Returns the precise background width. |
static void |
main(java.lang.String[] args)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for the specified propertyName. |
void |
setAccessRate(int accessRate)
|
void |
setAnalysisParameters(double threshold,
int roiX,
int roiY,
int roiW,
int roiH,
int roi2X,
int roi2Y,
int roi2W,
int roi2H,
boolean calculateThreshold,
boolean performFit)
Sets the analysis parameters (threshold and region of interest) to analysis server. |
void |
setBackground(de.desy.tine.types.IMAGE background)
Sets the background image to analysis server. |
void |
setConnectionParameters(ConnectionParameters cp)
|
void |
setPreciseBackground(double[] background,
int width)
Sets the precise background image array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_A_IMAGE
public static final java.lang.String PROPERTY_BACKGROUND
public static final java.lang.String PROPERTY_PRECISE_BACKGROUND
public static final java.lang.String PROPERTY_PRECISE_BACKGROUND_WIDTH
Constructor Detail |
---|
public VideoServerConnection()
Method Detail |
---|
public void setAnalysisParameters(double threshold, int roiX, int roiY, int roiW, int roiH, int roi2X, int roi2Y, int roi2W, int roi2H, boolean calculateThreshold, boolean performFit) throws ConnectionFailed
threshold
- the thresholdroiX
- the region's starting X coordinateroiY
- the region's starting Y coordinateroiW
- the region's widthroiH
- the region's heightcalculateThreshold
- true if the threshold should be calculated by the server or false otherwise
ConnectionFailed
- if unable to connectpublic void setBackground(de.desy.tine.types.IMAGE background) throws ConnectionFailed
background
- the background image to set
ConnectionFailed
- if unable to connectpublic de.desy.tine.types.IMAGE getBackground()
ConnectionFailed
public void setPreciseBackground(double[] background, int width) throws ConnectionFailed
background
- the image arraywidth
- the width of the image
ConnectionFailed
public int getPreciseBackgroundWidth()
public double[] getPreciseBackground()
public int getBackgroundId()
public void connect() throws ConnectionFailed
ConnectionFailed
- if unable to connectpublic void disconnect()
public void setConnectionParameters(ConnectionParameters cp)
public int getAccessRate()
public void setAccessRate(int accessRate)
public AImage getAImage()
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- the name of the propertylistener
- the PropertyChangeListener to addpublic void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- the name of the propertylistener
- the PropertyChangeListener to removepublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener to addpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener to removepublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |