vamtoolbox.dlp.players#
Module Contents#
Classes#
[1]: pyglet/pyglet#152 |
|
Functions#
|
|
|
|
|
- class vamtoolbox.dlp.players.SequencePlayer(*args, **kwargs)#
Bases:
pyglet.sprite.Sprite[1]: pyglet/pyglet#152
- property frame_index#
- pauseSequence()#
- resumeSequence()#
- onAnimationEnd()#
- class vamtoolbox.dlp.players._Process(*args, **kwargs)#
Bases:
pyglet.window.Window- run()#
- on_draw()#
- on_key_press(symbol, modifiers)#
- vamtoolbox.dlp.players._worker(*args, **kwargs)#
- vamtoolbox.dlp.players.player(*args, **kwargs)#
- Parameters:
rot_vel (float) – rotation velocity in degrees per second
start_index (int, optional) – starting index of image sequence, default is 0
image_seq (imagesequence.ImageSeq, optional) – imagesequence.ImageSeq object
sinogram (geometry.Sinogram, optional) – geometry.Sinogram object
image_config (imagesequence.ImageConfig, optional) – imagesequence.ImageConfig object defining sinogram to image transformation
images_dir (str, optional) – file directory to saved images
screen_num (int, optional) – number of the screen to display onto, default -1 (last screen)
windowed (bool, optional) – bordered window, default False
duration (float, optional) – duration of sequence or video playback, default None (infinite playback)
pause_bg_color (tuple, optional) – color to be shown when playback is paused, default (0,0,0) (black background)
debug_fps (bool, optional) – display estimated fps on the displayed window, default False
Examples
Press spacebar to start playback. During playback, press spacebar to pause or resume playback.
Specifying ImageSeq object
>>> I = ImageSeq() >>> player(image_seq=I,rot_vel=12)
Specifying Sinogram object
>>> sino = loadVolume("C:\mysinogram.sino") >>> player(sinogram=sino,rot_vel=12)
Specifying images directory
>>> dir = "C:\images" >>> player(rot_vel=12,images_dir=dir)
Specifying video file
>>> path = "C:\video.mp4" >>> player(rot_vel=12,video=path)
- vamtoolbox.dlp.players.preview(image_seq)#