Skip to content

animate

xvr.cli.commands.animate

animate

animate(inpath, outpath, skip, dpi, fps)

Animate the trajectory of iterative optimization.

Source code in src/xvr/cli/commands/animate.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@click.command(cls=CategorizedCommand)
@categorized_option(
    "-i",
    "--inpath",
    required=True,
    type=click.Path(exists=True),
    help="Saved registration result from <xvr register>",
)
@categorized_option(
    "-o",
    "--outpath",
    required=True,
    type=click.Path(),
    help="Savepath for iterative optimization animation",
)
@categorized_option(
    "--skip",
    default=1,
    type=int,
    help="Animate every <skip> frames of the optimization",
)
@categorized_option(
    "--dpi",
    default=192,
    type=int,
    help="DPI of individual animation frames",
)
@categorized_option(
    "--fps",
    default=30,
    type=int,
    help="FPS of animation",
)
def animate(inpath, outpath, skip, dpi, fps):
    """Animate the trajectory of iterative optimization."""

    from ...visualization import animate as _animate

    _animate(inpath, outpath, skip, dpi, fps)