Blender  V2.93
intern/reconstruction.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2011 Blender Foundation.
17  * All rights reserved.
18  */
19 
20 #ifndef LIBMV_C_API_RECONSTRUCTION_H_
21 #define LIBMV_C_API_RECONSTRUCTION_H_
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 struct libmv_Tracks;
30 
32 
33 enum {
36 
44 
49 };
50 
56 
57 typedef void (*reconstruct_progress_update_cb)(void* customdata,
58  double progress,
59  const char* message);
60 
62  const struct libmv_Tracks* libmv_tracks,
63  const struct libmv_CameraIntrinsicsOptions* libmv_camera_intrinsics_options,
64  libmv_ReconstructionOptions* libmv_reconstruction_options,
65  reconstruct_progress_update_cb progress_update_callback,
66  void* callback_customdata);
67 
69  const struct libmv_Tracks* libmv_tracks,
70  const struct libmv_CameraIntrinsicsOptions* libmv_camera_intrinsics_options,
71  const libmv_ReconstructionOptions* libmv_reconstruction_options,
72  reconstruct_progress_update_cb progress_update_callback,
73  void* callback_customdata);
74 
75 int libmv_reconstructionIsValid(libmv_Reconstruction* libmv_reconstruction);
76 
77 void libmv_reconstructionDestroy(libmv_Reconstruction* libmv_reconstruction);
78 
80  const libmv_Reconstruction* libmv_reconstruction, int track, double pos[3]);
81 
83  const libmv_Reconstruction* libmv_reconstruction, int track);
84 
86  const libmv_Reconstruction* libmv_reconstruction, int image);
87 
89  const libmv_Reconstruction* libmv_reconstruction,
90  int image,
91  double mat[4][4]);
92 
94  const libmv_Reconstruction* libmv_reconstruction);
95 
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif // LIBMV_C_API_RECONSTRUCTION_H_
uint pos
struct libmv_CameraIntrinsics libmv_CameraIntrinsics
void(* reconstruct_progress_update_cb)(void *customdata, double progress, const char *message)
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_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_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_reprojectionErrorForTrack(const libmv_Reconstruction *libmv_reconstruction, int track)
struct libmv_Tracks libmv_Tracks
Definition: intern/tracks.h:27