ProcessImageAutomaticJob
class ProcessImageAutomaticJob extends Job implements ShouldQueue
Traits
Batchable
InteractsWithQueue
Queueable
Dispatchable
Properties
| $tries | |||
| int | $imageId | ID of the image to process. |
|
| int | $volumeId | ID of the volume of the image. Required to release the lock if the image was deleted. |
Methods
void
__construct(Image $image, float $distance, string|null $channelMode = null, int $numLaserpoints = 2, bool $batch = false)
Create a new job instance.
void
handle()
Execute the job.
void
releaseLock()
Release the lock of a single image detection. The lock of a volume detection is released by the batch.
Details
at line 55
void
__construct(Image $image, float $distance, string|null $channelMode = null, int $numLaserpoints = 2, bool $batch = false)
Create a new job instance.
at line 72
void
handle()
Execute the job.
at line 91
void
failed(Throwable|null $exception)
Handle a job failure.
at line 103
protected void
detect(Image $image)
Perform the laser point detection.
at line 134
protected void
releaseLock()
Release the lock of a single image detection. The lock of a volume detection is released by the batch.