class DetectColor extends LaserpointsScript

Methods

array|string
exec(array $command, bool $decode = true)

Execute a laser point detection command.

?string
execute(array $input, int $numLaserpoints = 2)

Execute the laser point color detection on a subset of images.

Details

in LaserpointsScript at line 20
array|string exec(array $command, bool $decode = true)

Execute a laser point detection command.

Parameters

array $command

Command to execute as array of the executable and its arguments

bool $decode

Whether to decode the JSON output of the script

Return Value

array|string

The JSON object returned by the detection script as array

Exceptions

Exception

at line 17
?string execute(array $input, int $numLaserpoints = 2)

Execute the laser point color detection on a subset of images.

Parameters

array $input

Map of image IDs to cached file paths.

int $numLaserpoints

Number of laser points to search for

Return Value

?string

The detected channel mode (red/green/blue/gray)