class ProcessVolumeAutomaticJob extends Job

Traits

Batchable
InteractsWithQueue
SerializesModels
Queueable
Dispatchable

Properties

$tries

Methods

void
__construct(Volume $volume, float $distance, int $numLaserpoints = 2, string|null $channelMode = null)

Create a new job instance.

void
handle()

Execute the job.

?string
detectChannelMode()

Detect the channel mode on a random sample of images of the volume.

?string
performColorDetection(array $images, array $paths)

Execute the color detection.

Details

at line 35
void __construct(Volume $volume, float $distance, int $numLaserpoints = 2, string|null $channelMode = null)

Create a new job instance.

Parameters

Volume $volume

The volume to process the images of.

float $distance

Distance between laser points im cm to use for computation.

int $numLaserpoints

Number of laser points to search for.

string|null $channelMode

Channel mode override (red/green/blue/gray). If null, the channel mode is detected automatically.

Return Value

void

at line 50
void handle()

Execute the job.

Return Value

void

at line 75
protected ?string detectChannelMode()

Detect the channel mode on a random sample of images of the volume.

Return Value

?string

at line 106
protected ?string performColorDetection(array $images, array $paths)

Execute the color detection.

Parameters

array $images

Cached image models

array $paths

Cached image file paths

Return Value

?string