Registry / Framework

framework · v0.1.2
Panorama Stitch
Track overlapping frame pairs and require a solved alignment before blending.
Use Panorama Stitch
use vendor::panorama_stitch::panorama_stitch;
Run the example
nest demo panorama_stitch@0.1.2
blyxc native-run panorama_stitch-demo/main.blyx
Example source and expected output
use std::cli;
use std::text;
use vendor::panorama_stitch::panorama_stitch;
fn main() {
let arguments = cli_args();
if args_len(arguments) > 0 {
if args_len(arguments) % 2 != 0 {
stderr_line("Expected event and value pairs");
process_exit(2);
}
let mut live = panorama_stitch_start();
let mut i = 0;
while i < args_len(arguments) {
let input = args_at(arguments, i + 1);
if !text_is_number(input) {
stderr_line("Expected a whole numeric event value");
process_exit(2);
}
live = panorama_stitch_step(live, args_at(arguments, i), text_number(input));
let command = panorama_stitch_command(live);
println!(command);
if command == "reject" { process_exit(1); }
i += 2;
}
return;
}
let mut state = panorama_stitch_start();
state = panorama_stitch_step(state, "pairs", 2.0);
println!(panorama_stitch_command(state));
state = panorama_stitch_step(state, "pair", 2.0);
println!(panorama_stitch_command(state));
state = panorama_stitch_step(state, "solve", 0.0);
println!(panorama_stitch_command(state));
state = panorama_stitch_step(state, "aligned", 0.0);
println!(panorama_stitch_command(state));
state = panorama_stitch_step(state, "finish", 0.0);
println!(panorama_stitch_command(state));
}
Expected output
match_pairs
mark_matched
fit_transform
blend_tiles
publish_panorama
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.2 | Download ZIP · Browse files | 9c86e39173 | a10eaa5dc0eed8a48d92f676b35c7da2404f8d33e5d8d0990570e35796940b4b |
| 0.1.1 | Download ZIP · Browse files | 11523f95f3 | b20bbb86c07479576a70138ce8cb9e91208f6498b6c757f58930ccdef6a28f06 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 2c1b8e22d99e61645bc2d10202f3809dc71f43065998802d7fdc2a705f866023 |