public interface AutofocusPlugin extends MMPlugin
| Modifier and Type | Method and Description |
|---|---|
void |
applySettings()
Pushes setting to the hardware or software autofocus.
|
double |
computeScore(ij.process.ImageProcessor impro)
Computes a focus score for the given image.
|
void |
enableContinuousFocus(boolean enable)
Turns on continuous autofocus.
|
double |
fullFocus()
Runs a full, one-shot autofocus protocol.
|
double |
getCurrentFocusScore()
Returns the current focus "score" (goodness of focus).
|
int |
getNumberOfImages()
Returns the number of images acquired.
|
org.micromanager.internal.utils.PropertyItem[] |
getProperties()
Returns an array of the properties for this autofocus plugin.
|
org.micromanager.internal.utils.PropertyItem |
getProperty(java.lang.String key)
Returns the name and value of properties for the autofocus plugin.
|
java.lang.String[] |
getPropertyNames()
Returns an array of the names of properties for this autofocus plugin.
|
java.lang.String |
getPropertyValue(java.lang.String name)
Gets the value of a named property.
|
java.lang.String |
getVerboseStatus()
Returns a detailed status of the autofocus plugin/device.
|
double |
incrementalFocus()
Runs a single, incremental focusing step.
|
void |
initialize()
Initializes the plugin.
|
boolean |
isContinuousFocusEnabled()
Returns true if continuous autofocus has been enabled.
|
boolean |
isContinuousFocusLocked()
Returns true if continuous autofocus is currently locked (successfully
following the specimen).
|
void |
saveSettings()
Stores settings.
|
void |
setProperty(org.micromanager.internal.utils.PropertyItem p)
Sets the value of a particular property.
|
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Sets the value of a named property.
|
getCopyright, getHelpText, getName, getVersion, setContextvoid initialize()
void applySettings()
void saveSettings()
double fullFocus()
throws java.lang.Exception
java.lang.Exception - Mainly exceptions coming from the hardware.double incrementalFocus()
throws java.lang.Exception
java.lang.Exception - Mainly exceptions coming from the hardware.int getNumberOfImages()
java.lang.String getVerboseStatus()
org.micromanager.internal.utils.PropertyItem[] getProperties()
java.lang.String[] getPropertyNames()
org.micromanager.internal.utils.PropertyItem getProperty(java.lang.String key)
throws java.lang.Exception
key - PropertyName for which we want the valuejava.lang.Exception - thrown by MMCore when key is not found.void setProperty(org.micromanager.internal.utils.PropertyItem p)
throws java.lang.Exception
p - Property to be setjava.lang.Exception - Not sure what this may bejava.lang.String getPropertyValue(java.lang.String name)
throws java.lang.Exception
name - named propertyjava.lang.Exception - Not sure what this may indicatevoid setPropertyValue(java.lang.String name,
java.lang.String value)
throws java.lang.Exception
name - PropertyNamevalue - PropertyValuejava.lang.Exception - by MMCoredouble getCurrentFocusScore()
void enableContinuousFocus(boolean enable)
throws java.lang.Exception
enable - Switch on when true, off otherwise.java.lang.Exception - Hardware may throw and exceptionboolean isContinuousFocusEnabled()
throws java.lang.Exception
java.lang.Exception - May be thrown by the hardwareboolean isContinuousFocusLocked()
throws java.lang.Exception
java.lang.Exception - thrown by MMCoredouble computeScore(ij.process.ImageProcessor impro)
impro - ImageProcessor to be used in the calculation.