class DetectManual

Computation of the image footprint area based on manually annotated laser points.

The computation is purely geometric and requires nothing but the image dimensions, the real world distance of the laser points and their pixel coordinates. In particular it does not require access to the image file.

Constants

METHOD

Name of the detection method that is stored with the results.

Methods

array
execute(int $width, int $height, float $distance, array $points)

Execute a new manual laser point detection.

float
distance(array $a, array $b)

Euclidean distance between two points.

array
pairwiseDistances(array $points)

Euclidean distances between all pairs of the given points.

array
error(string $message)

Assemble an error result.

Details

at line 32
array execute(int $width, int $height, float $distance, array $points)

Execute a new manual laser point detection.

Parameters

int $width

Width of the image in pixels

int $height

Height of the image in pixels

float $distance

Distance of the laser points in cm

array $points

Coordinates of all manually annotated laser points on the image as array of [x, y] pairs (like [[100, 100], [200, 200]])

Return Value

array

The detection result

at line 108
protected float distance(array $a, array $b)

Euclidean distance between two points.

Parameters

array $a

Point as [x, y] pair

array $b

Point as [x, y] pair

Return Value

float

at line 120
protected array pairwiseDistances(array $points)

Euclidean distances between all pairs of the given points.

Parameters

array $points

Points as array of [x, y] pairs

Return Value

array

at line 141
protected array error(string $message)

Assemble an error result.

Parameters

string $message

Return Value

array