CloneImagesOrVideos
class CloneImagesOrVideos extends Job implements ShouldQueue
Traits
Properties
| Project | $project | The target project. |
|
| Volume | $copy | ||
| Volume | $volume | The volume to clone. |
|
| array | $onlyFiles | Array containing file ids. |
|
| bool | $cloneAnnotations | Boolean for cloning annotation labels. |
|
| array | $onlyAnnotationLabels | Array containing annotation label ids. |
|
| bool | $cloneFileLabels | Boolean for cloning file labels. |
|
| array | $onlyFileLabels | Array containing file label ids. |
|
| protected array | $uuidMap | Array mapping original image uuids to cloned image uuids |
|
| protected bool | $deleteWhenMissingModels | Ignore this job if the project or volume does not exist any more. |
Methods
No description
Copies (selected) images from given volume to volume copy.
Copies (selected) image annotation and annotation labels from volume to volume copy.
Copies (selected) image labels from given volume to volume copy.
Copies (selected) videos from given volume to volume copy.
Copies (selected) video annotations and annotation labels from given volume to volume copy.
Copies (selected) video labels from volume to volume copy.
Details
at line 102
void
__construct(CloneVolume|Request $request, $copy)
Create a new job instance.
at line 116
handle()
No description
at line 173
private
copyImages(Volume $volume, Volume $copy, int[] $selectedImageIds)
Copies (selected) images from given volume to volume copy.
at line 202
private
copyImageAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) image annotation and annotation labels from volume to volume copy.
at line 284
private
copyImageLabels(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) image labels from given volume to volume copy.
at line 319
private
copyVideos(Volume $volume, Volume $copy, int[] $selectedVideoIds)
Copies (selected) videos from given volume to volume copy.
at line 348
private
copyVideoAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) video annotations and annotation labels from given volume to volume copy.