Blender V4.3
intern/reconstruction.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#ifndef LIBMV_C_API_RECONSTRUCTION_H_
6#define LIBMV_C_API_RECONSTRUCTION_H_
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12struct libmv_Tracks;
15
17
18enum {
21
29
34};
35
41
42typedef void (*reconstruct_progress_update_cb)(void* customdata,
43 double progress,
44 const char* message);
45
47 const struct libmv_Tracks* libmv_tracks,
48 const struct libmv_CameraIntrinsicsOptions* libmv_camera_intrinsics_options,
49 libmv_ReconstructionOptions* libmv_reconstruction_options,
50 reconstruct_progress_update_cb progress_update_callback,
51 void* callback_customdata);
52
54 const struct libmv_Tracks* libmv_tracks,
55 const struct libmv_CameraIntrinsicsOptions* libmv_camera_intrinsics_options,
56 const libmv_ReconstructionOptions* libmv_reconstruction_options,
57 reconstruct_progress_update_cb progress_update_callback,
58 void* callback_customdata);
59
60int libmv_reconstructionIsValid(libmv_Reconstruction* libmv_reconstruction);
61
62void libmv_reconstructionDestroy(libmv_Reconstruction* libmv_reconstruction);
63
65 const libmv_Reconstruction* libmv_reconstruction, int track, double pos[3]);
66
68 const libmv_Reconstruction* libmv_reconstruction, int track);
69
71 const libmv_Reconstruction* libmv_reconstruction, int image);
72
74 const libmv_Reconstruction* libmv_reconstruction,
75 int image,
76 double mat[4][4]);
77
79 const libmv_Reconstruction* libmv_reconstruction);
80
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif // LIBMV_C_API_RECONSTRUCTION_H_
struct libmv_CameraIntrinsics libmv_CameraIntrinsics
void(* reconstruct_progress_update_cb)(void *customdata, double progress, const char *message)
libmv_Reconstruction * libmv_solveModal(const struct libmv_Tracks *libmv_tracks, const struct libmv_CameraIntrinsicsOptions *libmv_camera_intrinsics_options, const libmv_ReconstructionOptions *libmv_reconstruction_options, reconstruct_progress_update_cb progress_update_callback, void *callback_customdata)
double libmv_reprojectionErrorForImage(const libmv_Reconstruction *libmv_reconstruction, int image)
double libmv_reprojectionError(const libmv_Reconstruction *libmv_reconstruction)
struct libmv_ReconstructionOptions libmv_ReconstructionOptions
void libmv_reconstructionDestroy(libmv_Reconstruction *libmv_reconstruction)
struct libmv_CameraIntrinsics * libmv_reconstructionExtractIntrinsics(libmv_Reconstruction *libmv_Reconstruction)
int libmv_reconstructionIsValid(libmv_Reconstruction *libmv_reconstruction)
@ LIBMV_REFINE_TANGENTIAL_DISTORTION
@ LIBMV_REFINE_RADIAL_DISTORTION_K2
@ LIBMV_REFINE_FOCAL_LENGTH
@ LIBMV_REFINE_TANGENTIAL_DISTORTION_P1
@ LIBMV_REFINE_RADIAL_DISTORTION
@ LIBMV_REFINE_RADIAL_DISTORTION_K3
@ LIBMV_REFINE_TANGENTIAL_DISTORTION_P2
@ LIBMV_REFINE_RADIAL_DISTORTION_K4
@ LIBMV_REFINE_PRINCIPAL_POINT
@ LIBMV_REFINE_RADIAL_DISTORTION_K1
int libmv_reprojectionCameraForImage(const libmv_Reconstruction *libmv_reconstruction, int image, double mat[4][4])
int libmv_reprojectionPointForTrack(const libmv_Reconstruction *libmv_reconstruction, int track, double pos[3])
libmv_Reconstruction * libmv_solveReconstruction(const struct libmv_Tracks *libmv_tracks, const struct libmv_CameraIntrinsicsOptions *libmv_camera_intrinsics_options, libmv_ReconstructionOptions *libmv_reconstruction_options, reconstruct_progress_update_cb progress_update_callback, void *callback_customdata)
double libmv_reprojectionErrorForTrack(const libmv_Reconstruction *libmv_reconstruction, int track)
struct libmv_Tracks libmv_Tracks