photogrammetry_importer.importers.camera_utility

Module Contents

photogrammetry_importer.importers.camera_utility.compute_principal_point_shift(camera, relativ_to_largest_extend)

Return the shift of the principal point in the 3D view port.

photogrammetry_importer.importers.camera_utility.adjust_render_settings_if_possible(cameras, op=None)

Adjust the render settings according to the camera parameters.

photogrammetry_importer.importers.camera_utility.add_camera_object(camera, camera_name, camera_collection, copy_matrix_world=True)

Add a camera as Blender object.

photogrammetry_importer.importers.camera_utility.invert_y_and_z_axis(input_matrix_or_vector)

Invert the y and z axis of a given matrix or vector.

Many SfM / MVS libraries use coordinate systems that differ from Blender’s coordinate system in the y and the z coordinate. This function inverts the y and the z coordinates in the corresponding matrix / vector entries, which is equivalent to a rotation by 180 degree around the x axis.

photogrammetry_importer.importers.camera_utility.compute_camera_matrix_world(camera, convert_coordinate_system=True)

Compute Blender’s matrix_world for a given camera.

photogrammetry_importer.importers.camera_utility.add_cameras(cameras, parent_collection, add_background_images=False, add_image_planes=False, add_depth_maps_as_point_cloud=True, convert_camera_coordinate_system=True, camera_collection_name='Cameras', image_plane_collection_name='Image Planes', depth_map_collection_name='Depth Maps', camera_scale=1.0, image_plane_transparency=0.5, add_image_plane_emission=True, depth_map_point_size=1, use_default_depth_map_color=False, depth_map_default_color=(1.0, 0.0, 0.0), depth_map_display_sparsity=10, depth_map_id_or_name_str='', op=None)

Add a set of reconstructed cameras to Blender’s 3D view port.

photogrammetry_importer.importers.camera_utility.add_camera_image_plane(matrix_world, blender_image, camera, name, transparency, add_image_plane_emission, image_planes_collection, op=None)

Add an image plane corresponding to a reconstructed camera.