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 101
void
__construct(CloneVolume|Request $request, $copy)
Create a new job instance.
at line 115
handle()
No description
at line 167
private
copyImages(Volume $volume, Volume $copy, int[] $selectedImageIds)
Copies (selected) images from given volume to volume copy.
at line 196
private
copyImageAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) image annotation and annotation labels from volume to volume copy.
at line 278
private
copyImageLabels(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) image labels from given volume to volume copy.
at line 313
private
copyVideos(Volume $volume, Volume $copy, int[] $selectedVideoIds)
Copies (selected) videos from given volume to volume copy.
at line 342
private
copyVideoAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) video annotations and annotation labels from given volume to volume copy.