opiInitialise_for_Compass: Implementation of opiInitialise for the ImoVifa machine.

View source: R/Compass.r

opiInitialise_for_CompassR Documentation

Implementation of opiInitialise for the ImoVifa machine.

Description

This is for internal use only. Use opiInitialise() with these Arguments and you will get the Value back.

Arguments

ip

IP address on which server is listening as a string

port

Port number on which server is listening

...

Could be used for fake compass, simulations, etc

Details

Warning: this returns a list, not a single error code.

Value

A list with elements:

  • err NULL if successful, not otherwise.

  • prl A pair giving the (x,y) in degrees of the Preferred Retinal Locus detected in the initial alignment.

  • onh a pair giving the (x,y) in degrees of the ONH as selected by the user.

  • image raw bytes being the JPEG compressed infra-red image acquired during alignment.

Examples

## Not run: 
  # Set up the Compass
  chooseOpi("Compass")
  result <- opiInitialize(ip = "192.168.1.7", port = 44965)
  if (is.null(result$err))
    print(result$prl)

## End(Not run)

OPI documentation built on April 12, 2025, 1:24 a.m.