public class AutoFocusProvider extends java.lang.Object implements FocusProvider
Constructor and Description |
---|
AutoFocusProvider() |
Modifier and Type | Method and Description |
---|---|
Location |
autoFocus(Camera camera,
HeadMountable movable,
Length subjectMaxSize,
Location location0,
Location location1)
Focus the camera to the subject by moving the movable (this might move the subject or the camera).
|
protected double |
focusScore(java.awt.image.BufferedImage image,
int diameter,
java.awt.image.BufferedImage filteredImage)
The focus score is computed by detecting the hardest edges in the camera image for a specific fraction of the pixels
and then returning the lowest edge hardness of that group (fractile).
|
int |
getAveragedFrames() |
Wizard |
getConfigurationWizard(Camera camera) |
Length |
getFocalResolution() |
double |
getFocusSpeed() |
boolean |
isShowDiagnostics() |
void |
setAveragedFrames(int averagedFrames) |
void |
setFocalResolution(Length focalResolution) |
void |
setFocusSpeed(double focusSpeed) |
void |
setShowDiagnostics(boolean showDiagnostics) |
public Length getFocalResolution()
public void setFocalResolution(Length focalResolution)
public int getAveragedFrames()
public void setAveragedFrames(int averagedFrames)
public double getFocusSpeed()
public void setFocusSpeed(double focusSpeed)
public boolean isShowDiagnostics()
public void setShowDiagnostics(boolean showDiagnostics)
public Location autoFocus(Camera camera, HeadMountable movable, Length subjectMaxSize, Location location0, Location location1) throws java.lang.Exception
FocusProvider
autoFocus
in interface FocusProvider
java.lang.Exception
protected double focusScore(java.awt.image.BufferedImage image, int diameter, java.awt.image.BufferedImage filteredImage)
image
- diameter
- filteredImage
- public Wizard getConfigurationWizard(Camera camera)
getConfigurationWizard
in interface FocusProvider