Beispiel #1
0
  public double fullFocus() throws MMException {
    if (core_ == null) return 0.0;

    try {
      core_.setAutoFocusDevice(devName_);
      core_.fullFocus();
    } catch (Exception e) {
      throw new MMException(e.getMessage());
    }

    try {
      return core_.getLastFocusScore();
    } catch (Exception e) {
      ReportingUtils.showError(e);
      return 0.0;
    }
  }