abstract class Job extends Job implements ShouldQueue

Traits

InteractsWithQueue
Queueable
Dispatchable

Properties

protected float $distance

Distance between laser points im cm to use for computation.

protected int $labelId

ID of the laser point label.

Methods

Filtered
filterInvalidLaserPoints(Collection $annotations)

Removes items from the annotations array if the laser point annotations are invalid.

void
__construct(float $distance, int $labelId)

Create a new job instance.

void
handle()

Execute the job.

Collection
getLaserpointsForVolume(int $id)

Collects all images of a volume that contain laser point annotations.

string
gather(Collection $points)

Perform the gather step.

Details

Filtered filterInvalidLaserPoints(Collection $annotations)

Removes items from the annotations array if the laser point annotations are invalid.

Parameters

Collection $annotations

Annotations grouped by image

Return Value

Filtered

points array

at line 46
void __construct(float $distance, int $labelId)

Create a new job instance.

Parameters

float $distance
int $labelId

Return Value

void

at line 57
abstract void handle()

Execute the job.

Return Value

void

at line 66
protected Collection getLaserpointsForVolume(int $id)

Collects all images of a volume that contain laser point annotations.

Parameters

int $id

Volume ID

Return Value

Collection

Laser point coordinates indexed by image ID

at line 89
protected string gather(Collection $points)

Perform the gather step.

Parameters

Collection $points

Points Collection returned from getLaserpointsForVolume.

Return Value

string

Path to the gather file in the storage disk.