class StoreMaiaJob extends FormRequest

Traits

Properties

Volume $volume

The volume to create the MAIA job for.

Methods

Builder
getExistingAnnotationsQuery(int $volumeId, array $restrictLabels = [])

Get the query for the annotations to convert.

bool
authorize()

Determine if the user is authorized to make this request.

array
rules()

Get the validation rules that apply to the request.

void
withValidator(Validator $validator)

Configure the validator instance.

bool
hasNoExistingAnnotations()

Determine if there are existing annotations that can be used as training data.

bool
hasNoKnowledgeTransferAnnotations()

Determine if there are existing annotations in the volume chosen for knowledge transfer.

bool
hasSmallImages(Volume $volume)

Determine whether the volume contains images smaller than 512px.

void
failedAuthorization()

Handle a failed authorization attempt.

Details

protected Builder getExistingAnnotationsQuery(int $volumeId, array $restrictLabels = [])

Get the query for the annotations to convert.

Parameters

int $volumeId
array $restrictLabels

Return Value

Builder

at line 31
bool authorize()

Determine if the user is authorized to make this request.

Return Value

bool

at line 47
array rules()

Get the validation rules that apply to the request.

Return Value

array

at line 83
void withValidator(Validator $validator)

Configure the validator instance.

Parameters

Validator $validator

Return Value

void

at line 129
protected bool hasNoExistingAnnotations()

Determine if there are existing annotations that can be used as training data.

Return Value

bool

at line 141
protected bool hasNoKnowledgeTransferAnnotations()

Determine if there are existing annotations in the volume chosen for knowledge transfer.

Return Value

bool

at line 155
protected bool hasSmallImages(Volume $volume)

Determine whether the volume contains images smaller than 512px.

Parameters

Volume $volume

Return Value

bool

at line 174
protected void failedAuthorization()

Handle a failed authorization attempt.

Return Value

void

Exceptions

AuthorizationException