PrepareExistingAnnotations
class PrepareExistingAnnotations extends PrepareAnnotationsJob
Traits
Properties
protected bool | $deleteWhenMissingModels | Ignore this job if the MAIA job does not exist any more. |
from PrepareAnnotationsJob |
protected bool | $selectTrainingProposals | Set newly converted training proposals as selected. |
from PrepareAnnotationsJob |
Methods
Get the query for the annotations to convert.
Get the query for the annotations to convert.
Convert all matching annotations to training proposals.
Convert a chunk of annotations to training proposals.
Convert the points of an annotation to the points of a circle.
Determine the points of a circle from the points of a polygon.
Execute the job.
Details
in
QueriesExistingAnnotations at line 16
protected Builder
getExistingAnnotationsQuery(int $volumeId, array $restrictLabels = [])
Get the query for the annotations to convert.
in
PrepareAnnotationsJob at line 43
__construct(MaiaJob $job)
Create a new instance
at line 48
protected Builder
getAnnotationsQuery()
Get the query for the annotations to convert.
in
PrepareAnnotationsJob at line 60
protected bool
hasAnnotations()
Determine if there are any annotations to convert.
in
PrepareAnnotationsJob at line 68
protected
convertAnnotations()
Convert all matching annotations to training proposals.
in
PrepareAnnotationsJob at line 87
convertAnnotationChunk(Collection $chunk)
Convert a chunk of annotations to training proposals.
Must be public to be used as callable.
in
PrepareAnnotationsJob at line 112
protected string
convertAnnotationPointsToCircle(ImageAnnotation $annotation)
Convert the points of an annotation to the points of a circle.
in
PrepareAnnotationsJob at line 133
protected array
convertPolygonToCirlce(array $points)
Determine the points of a circle from the points of a polygon.
at line 18
void
handle()
Execute the job.