|
facebook360_dep
Facebook360 Depth Estimation Pipeline
|
Functions | |
| def | get_frame_path (src_dir, camera, frame) |
| def | resize_camera (src_dir, dst_dir, camera, rig_resolution, frame, threshold) |
| def | verify_frame (src_dir, camera, frame) |
| def | resize_frames (src_dir, dst_dir, rig, first, last, threshold=None) |
| def | main (argv) |
Variables | |
| FLAGS = flags.FLAGS | |
| def scripts.render.resize.get_frame_path | ( | src_dir, | |
| camera, | |||
| frame | |||
| ) |
| def scripts.render.resize.main | ( | argv | ) |
Validates flags and resizes the frame pointed at by them if determined to be valid.
Args:
argv (list[str]): List of arguments (used interally by abseil).
| def scripts.render.resize.resize_camera | ( | src_dir, | |
| dst_dir, | |||
| camera, | |||
| rig_resolution, | |||
| frame, | |||
| threshold | |||
| ) |
Resizes a frame for a given camera to the appropriate pyramid level sizes.
Files are saved in level_0/[camera], ..., level_9/[camera] in the destination directory.
Args:
src_dir (str): Path to the source directory.
dst_dir (str): Path to the destination directory.
camera (str): Name of the camera to be resized.
rig_resolution (int): Width of the resize. Aspect ratio is maintained.
frame (str): Name of the frame to render.
threshold (int): Threshold to be used for binary thresholding. No thresholding
is performed if None is passed in.
| def scripts.render.resize.resize_frames | ( | src_dir, | |
| dst_dir, | |||
| rig, | |||
| first, | |||
| last, | |||
threshold = None |
|||
| ) |
Resizes a frame to the appropriate pyramid level sizes. Files are saved in
level_0/[camera], ..., level_9/[camera] in the destination directory.
Args:
src_dir (str): Path to the source directory.
dst_dir (str): Path to the destination directory.
rig (dict[str, _]): Rig descriptor object.
first (str): Name of the first frame to render.
last (str): Name of the last frame to render.
threshold (int): Threshold to be used for binary thresholding. No thresholding
is performed if None is passed in.
| def scripts.render.resize.verify_frame | ( | src_dir, | |
| camera, | |||
| frame | |||
| ) |
| scripts.render.resize.FLAGS = flags.FLAGS |
1.8.15