Learn R Programming

OPI (version 3.0.4)

opiInitialise_for_Compass: 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.

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.

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.

Examples

Run this code
if (FALSE) {
  # Set up the Compass
  chooseOpi("Compass")
  result <- opiInitialize(ip = "192.168.1.7", port = 44965)
  if (is.null(result$err))
    print(result$prl)
}

Run the code above in your browser using DataLab