MCPcopy Create free account

hub / github.com/Kai-46/SatelliteSfM / functions

Functions78 in github.com/Kai-46/SatelliteSfM

↓ 13 callersFunctionread_next_bytes
Read and unpack the next bytes from a binary file. :param fid: :param num_bytes: Sum of combination of {2, 4, 8}, e.g. 2, 6, 16, 30, etc.
preprocess_sfm/colmap/read_model.py:71
↓ 8 callersFunctionarray_to_blob
(array)
preprocess_sfm/colmap/database.py:125
↓ 4 callersFunction_apply_poly
Evaluates a 3-variables polynom of degree 3 on a triplet of numbers. Args: poly: list of the 20 coefficients of the 3-variate degree
preprocess/rpc_model.py:1
↓ 4 callersMethodadd_image
(self, name, camera_id, prior_q=np.zeros(4), prior_t=np.zeros(3), image_id=None)
preprocess_sfm/colmap/database.py:173
↓ 4 callersMethodadd_keypoints
(self, image_id, keypoints)
preprocess_sfm/colmap/database.py:181
↓ 4 callersFunctionbash_run
(cmd)
preprocess_sfm/colmap_sfm_commands.py:17
↓ 4 callersFunctionblob_to_array
(blob, dtype, shape=(-1,))
preprocess_sfm/colmap/database.py:132
↓ 3 callersMethodadd_matches
(self, image_id1, image_id2, matches)
preprocess_sfm/colmap/database.py:196
↓ 3 callersFunctionimage_ids_to_pair_id
(image_id1, image_id2)
preprocess_sfm/colmap/database.py:113
↓ 3 callersFunctionread_model
(path, ext)
preprocess_sfm/colmap/read_model.py:261
↓ 2 callersFunction_read_camera_dict
(colmap_cameras, colmap_images)
preprocess_sfm/colmap_sfm_utils.py:98
↓ 2 callersMethodadd_camera
(self, model, width, height, params, prior_focal_length=False, camera_id=None)
preprocess_sfm/colmap/database.py:164
↓ 2 callersFunctionapproximate_rpc_locally
meta_dict: see parse_tiff.py for information about meta_dict lat_minmax, lon_minmax, alt_minmax: (2,) observer_lat, observer_
preprocess/approximate_rpc_locally.py:63
↓ 2 callersMethodconnect
(database_path)
preprocess_sfm/colmap/database.py:142
↓ 2 callersFunctioneastnorth_to_latlon
(east, north, zone_number, hemisphere)
preprocess_track3/preprocess_track3.py:41
↓ 2 callersFunctionlatlonalt_to_enu
preprocess/coordinate_system.py:7
↓ 2 callersFunctionparse_tif_image
(tiff_fpath)
preprocess/parse_tif_image.py:7
↓ 2 callersFunctionpreprocess_image_set
tif_image_folder: folder containing tif images for the site; see ../examples/dfc_data/inputs lat_minmax, lon_minmax, alt_minmax: (2,
preprocess/preprocess_image_set.py:70
↓ 2 callersMethodprojection
(self, lat, lon, alt)
preprocess/rpc_model.py:53
↓ 1 callersFunction_generate_samples
meta_dict: see parse_tiff.py for information about meta_dict lat_minmax, lon_minmax, alt_minmax: (2,) lat_N, lon_N, alt_N: in
preprocess/approximate_rpc_locally.py:10
↓ 1 callersFunction_read_tracks
(colmap_images, colmap_points3D)
preprocess_sfm/colmap_sfm_utils.py:60
↓ 1 callersFunction_solve_projection_matrix
x, y, z, col, row: [N, ]; numpy array return: P: 3x4 projection matrix
preprocess/approximate_rpc_locally.py:31
↓ 1 callersFunctionalign_vector_to_another
Aligns vector a to vector b with axis angle rotation
visualize_satellite_cameras.py:5
↓ 1 callersFunctioncenter_crop_tif_image
(in_tiff_fpath, out_tiff_fpath, trgt_h, trgt_w)
preprocess/parse_tif_image.py:51
↓ 1 callersFunctioncompute_homography
ref_P, src_P: 3x4 prjection matrix; numpy array plane_vec: (4,) vector; numpy array return: H: 3x3 homography to
preprocess/visual_inspect_camera.py:29
↓ 1 callersMethodcreate_line_mesh
(self)
visualize_satellite_cameras.py:51
↓ 1 callersFunctiondrawpointslines
(img1, pts1, img2, lines2, colors)
inspect_epipolar_geometry.py:24
↓ 1 callersFunctionexample_usage
()
preprocess_sfm/colmap/database.py:228
↓ 1 callersFunctionextract_all_to_dir
(sparse_dir, out_dir, ext='.txt')
preprocess_sfm/colmap_sfm_utils.py:143
↓ 1 callersFunctionextract_camera_dict
(sparse_dir, ext='.txt')
preprocess_sfm/colmap_sfm_utils.py:136
↓ 1 callersFunctionfactorize_projection_matrix
factorize a 3x4 projection matrix P to K, R, t P: [3, 4]; numpy array return: K: [3, 3]; numpy array
preprocess/factorize_projection_matrix.py:5
↓ 1 callersFunctioninit_posed_sfm
create cameras.txt, images.txt, points3D.txt from existing camera parameters make sure cameras are numbered in the same way as db_file
preprocess_sfm/colmap_sfm_utils.py:11
↓ 1 callersFunctioninspect
(img1, K1, W2C1, img2, K2, W2C2)
inspect_epipolar_geometry.py:39
↓ 1 callersFunctionlatlonalt_to_enu
(lat, lon, alt, lat0, lon0, alt0)
preprocess_track3/preprocess_track3.py:51
↓ 1 callersMethodlines_from_ordered_points
(points)
visualize_satellite_cameras.py:47
↓ 1 callersFunctionmain
()
preprocess_sfm/colmap/read_model.py:300
↓ 1 callersMethodmerge_cylinder_segments
(self)
visualize_satellite_cameras.py:96
↓ 1 callersFunctionmultiple_workers
(out_dir, dsm_tif_fpath_list, view_tif_fpath_list, max_processes=-1)
preprocess_track3/preprocess_track3.py:194
↓ 1 callersFunctionnormalized
Normalizes a numpy array of points
visualize_satellite_cameras.py:18
↓ 1 callersFunctionpair_id_to_image_ids
(pair_id)
preprocess_sfm/colmap/database.py:119
↓ 1 callersFunctionpreprocess_sfm
(out_folder, weight=0.01)
preprocess_sfm/preprocess_sfm.py:13
↓ 1 callersFunctionput_text
(im, text, color, bottom_left=[10, 50], fontScale=None)
preprocess/visual_inspect_camera.py:9
↓ 1 callersFunctionqvec2rotmat
(qvec)
preprocess_sfm/colmap/read_model.py:273
↓ 1 callersFunctionread_cameras_binary
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasBinary(const std::string& path) void Reconstruction::ReadCameras
preprocess_sfm/colmap/read_model.py:109
↓ 1 callersFunctionread_cameras_text
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasText(const std::string& path) void Reconstruction::ReadCamerasTe
preprocess_sfm/colmap/read_model.py:83
↓ 1 callersFunctionread_images_binary
see: src/base/reconstruction.cc void Reconstruction::ReadImagesBinary(const std::string& path) void Reconstruction::WriteImagesBi
preprocess_sfm/colmap/read_model.py:169
↓ 1 callersFunctionread_images_text
see: src/base/reconstruction.cc void Reconstruction::ReadImagesText(const std::string& path) void Reconstruction::WriteImagesText
preprocess_sfm/colmap/read_model.py:138
↓ 1 callersFunctionread_points3D_text
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DText(const std::string& path) void Reconstruction::WritePoints3D
preprocess_sfm/colmap/read_model.py:204
↓ 1 callersFunctionread_points3d_binary
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DBinary(const std::string& path) void Reconstruction::WritePoints
preprocess_sfm/colmap/read_model.py:231
↓ 1 callersFunctionskew
(x)
inspect_epipolar_geometry.py:7
↓ 1 callersFunctionskew_correct
(in_dir, out_dir)
skew_correct.py:87
↓ 1 callersFunctiontransform_pose
(W2C, translate, scale)
normalize_sfm_reconstruction.py:31
↓ 1 callersFunctiontwo_view_geometry
(intrinsics1, extrinsics1, intrinsics2, extrinsics2)
inspect_epipolar_geometry.py:13
↓ 1 callersFunctionvisualize_cameras
(colored_camera_dicts, camera_size=1., geometry_file=None, geometry_type='mesh',
visualize_satellite_cameras.py:113
↓ 1 callersFunctionwarp_affine
img_src: [H, W, 3] numpy array affine_matrix: [2, 3] numpy array
skew_correct.py:10
↓ 1 callersFunctionwarp_src_to_ref
sweep_plane_sequence: [N, 4] numpy array; each row is plane normal+plane constant ref_im, src_im: uint8 image ref_P, src_P: 3
preprocess/visual_inspect_camera.py:68
Method__init__
Creates a line represented as sequence of cylinder triangular meshes Arguments: points {ndarray} -- Numpy array of ponts Nx3.
visualize_satellite_cameras.py:26
Method__init__
(self, *args, **kwargs)
preprocess_sfm/colmap/database.py:146
Method__init__
(self, meta_dict)
preprocess/rpc_model.py:28
Function_pad_images_to_samesize
(in_folder, out_folder)
preprocess/preprocess_image_set.py:21
Function_preprocess_single_tif
(args)
preprocess/preprocess_image_set.py:50
Function_warp_src_to_ref_singleplane
warp src image to the ref image pixel grid [ul_x, ul_y, w, h]
preprocess/visual_inspect_camera.py:48
Methodadd_descriptors
(self, image_id, descriptors)
preprocess_sfm/colmap/database.py:190
Methodadd_line
Adds this line to the visualizer
visualize_satellite_cameras.py:86
Methodadd_two_view_geometry
(self, image_id1, image_id2, matches, F=np.eye(3), E=np.eye(3), H=np.eye(3), con
preprocess_sfm/colmap/database.py:209
Functionenu_to_latlonalt
(e, n, u, lat0, lon0, alt0)
preprocess_track3/preprocess_track3.py:56
Functionenu_to_latlonalt
(e, n, u, observer_lat, observer_lon, observer_alt)
preprocess/coordinate_system.py:16
Functionlatlon_to_eastnorh
(lat, lon)
preprocess_track3/preprocess_track3.py:26
Functionlatlon_to_utm
lat: [N, ]; numpy array lon: [N, ]; numpy array return: utm_e: [N, ]; numpy array utm_n: [N, ]; nump
preprocess/coordinate_system.py:22
Methodqvec2rotmat
(self)
preprocess_sfm/colmap/read_model.py:49
Methodremove_line
Removes this line from the visualizer
visualize_satellite_cameras.py:91
Functionrotmat2qvec
(R)
preprocess_sfm/colmap/read_model.py:286
Functionrun_global_ba
(in_dir, out_dir, weight, debug_folder=None)
preprocess_sfm/colmap_sfm_commands.py:89
Functionrun_point_triangulation
(img_dir, db_file, out_dir, cam_dict_file, tri_merge_max_reproj_error, tri_complet
preprocess_sfm/colmap_sfm_commands.py:52
Functionrun_sift_matching
note: on cluster without display, feature extraction and matching can only run in cpu mode
preprocess_sfm/colmap_sfm_commands.py:21
Functionsingle_worker
(out_dir, dsm_tif_fpath, view_tif_fpath)
preprocess_track3/preprocess_track3.py:62
Functionskew_correct_worker
(in_dir, img_name, out_dir, keep_img_size=True)
skew_correct.py:42
Functionutm_to_latlon
utm_e: [N, ]; numpy array utm_n: [N, ]; numpy array zone_number: integer is_north_hemi: true or false return
preprocess/coordinate_system.py:41