LaserpointsController
class LaserpointsController extends Controller
Traits
Methods
Determines if the request was done by an automated script (with API token or ajax).
Redirects to the _redirect URL, to a route or else back.
Compute distance between laser points for an image with manual annotations.
Compute distance between laser points for an image with automatic detection.
Compute distance between laser points for a volume with manual annotations.
Compute distance between laser points for a volume with automatic detection.
Dispatch a volume job as a batch that releases the volume lock when it's finished. The volume job adds the image jobs to the same batch in chunks. The batch can't finish before all image jobs were added because the volume job is part of it.
Prevent a new volume detection while another detection runs in the volume.
Prevent a new image detection while a volume detection or another detection of the same image runs.
Details
in
Controller at line 21
bool
isAutomatedRequest(Request|null $request = null)
Determines if the request was done by an automated script (with API token or ajax).
in
Controller at line 15
protected RedirectResponse
fuzzyRedirect()
Redirects to the _redirect URL, to a route or else back.
at line 39
Response
imageManual(Request $request, int $id)
Compute distance between laser points for an image with manual annotations.
at line 88
Response
imageAutomatic(Request $request, int $id)
Compute distance between laser points for an image with automatic detection.
at line 131
Response
volumeManual(Request $request, int $id)
Compute distance between laser points for a volume with manual annotations.
at line 183
Response
volumeAutomatic(Request $request, int $id)
Compute distance between laser points for a volume with automatic detection.
at line 225
protected
dispatchVolumeBatch(Volume $volume, object $job, string $queue)
Dispatch a volume job as a batch that releases the volume lock when it's finished. The volume job adds the image jobs to the same batch in chunks. The batch can't finish before all image jobs were added because the volume job is part of it.
at line 249
protected
acquireVolumeLock(Volume $volume)
Prevent a new volume detection while another detection runs in the volume.
at line 266
protected
acquireImageLock(Image $image)
Prevent a new image detection while a volume detection or another detection of the same image runs.