vamtoolbox.imagesequence#
Module Contents#
Classes#
Functions#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- class vamtoolbox.imagesequence.ImageConfig(image_dims, **kwargs)#
- class vamtoolbox.imagesequence.ImageSeq(image_config, sinogram)#
- __getstate__()#
Helper for pickle.
- __setstate__(d)#
- save(name: str)#
save imagesequence.ImageSeq as ‘name.imgseq’
- preview()#
Preview an animated image sequence
- saveAsVideo(save_path: str, rot_vel: float, num_loops: float = 1, mode: str = 'conventional', angle_increment_per_image: float = None, preview: bool = False)#
- Parameters:
save_path (str) – filename of output video e.g. “video.mp4”
rot_vel (float) – rotation velocity (deg/s)
num_loops (float, optional) – number of times to loop the images in playback. In conventional mode, num_loops is equivalent to the number of rotations because the image set is assumed to span a full rotation.
mode (str, optional) –
- ‘conventional’ mode: angle_increment_per_image is derived from number of images, assuming the image set span a full rotation.
Video duration is proportional to num_loops. The argument angle_increment_per_image is ignored in this mode.
- ’prescribed’ mode: angle_increment_per_image is prescribed. Assuming the video plays back the image set exactly once, regardless whether the image set span less or more than one rotation.
The argument num_loops is ignored in this mode.
angle_increment_per_image (float, optional) – spacing of images (deg)
preview (bool, optional) – preview the video while the function exports the video
- saveAsImages(save_dir: str, image_prefix: str = 'image', image_type: str = '.png')#
- vamtoolbox.imagesequence.loadImageSeq(file_name: str)#
- vamtoolbox.imagesequence._insertImage(image, image_out, image_config, v_offset, **kwargs)#
- vamtoolbox.imagesequence._arrayInsertImage(image, image_out, image_config)#
- vamtoolbox.imagesequence._invertU(sinogram)#
- vamtoolbox.imagesequence._invertV(sinogram)#
- vamtoolbox.imagesequence._scaleSize(sinogram, scale_factor)#
- vamtoolbox.imagesequence._scaleIntensity(sinogram, intensity_scalar)#
- vamtoolbox.imagesequence._truncateIntensity(sinogram, maximum_intensity)#
- vamtoolbox.imagesequence._rotate(sinogram, angle_deg)#