# getMaximumIod method

int getMaximumIod()

Gets the maximum interocular distance (IOD), in pixels. This parameter is used to prevent the subject from being too close to the camera. Hint: Default value is 512.

return Maximum interocular distance (IOD), in pixels. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getMaximumIod() {
      Pointer<Int> pMaximumIod = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetMaximumIod(_pHandle.value, pMaximumIod);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vMaximumIod = pMaximumIod.value;
        return vMaximumIod;
      } finally {
        calloc.free(pMaximumIod);
      }
    }