Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2021-03-10 02:59:23 +0300
committerYimingWu <xp8110@outlook.com>2021-03-10 02:59:23 +0300
commit9166075cbeb4163566bf943f7844759702147a8a (patch)
tree1109502274df385ceabfbb3707a56e164c121edc /intern/libmv/libmv/tracking/track_region.h
parent10c097eff0416368bf769c3349e9c81c12f19d5f (diff)
parent53b82efed66baddff3b7ef6c93a919ef10f4ef42 (diff)
Merge remote-tracking branch 'origin/master' into lanpr-under-gp
Diffstat (limited to 'intern/libmv/libmv/tracking/track_region.h')
-rw-r--r--intern/libmv/libmv/tracking/track_region.h34
1 files changed, 20 insertions, 14 deletions
diff --git a/intern/libmv/libmv/tracking/track_region.h b/intern/libmv/libmv/tracking/track_region.h
index 61dce22bcb8..7868e3b8b77 100644
--- a/intern/libmv/libmv/tracking/track_region.h
+++ b/intern/libmv/libmv/tracking/track_region.h
@@ -19,6 +19,7 @@
// IN THE SOFTWARE.
#ifndef LIBMV_TRACKING_TRACK_REGION_H_
+#define LIBMV_TRACKING_TRACK_REGION_H_
#include "libmv/image/image.h"
#include "libmv/image/sample.h"
@@ -107,7 +108,7 @@ struct TrackRegionOptions {
// If non-null, this is used as the pattern mask. It should match the size of
// image1, even though only values inside the image1 quad are examined. The
// values must be in the range 0.0 to 0.1.
- FloatImage *image1_mask;
+ FloatImage* image1_mask;
};
struct TrackRegionResult {
@@ -128,8 +129,7 @@ struct TrackRegionResult {
Termination termination;
bool is_usable() {
- return termination == CONVERGENCE ||
- termination == NO_CONVERGENCE;
+ return termination == CONVERGENCE || termination == NO_CONVERGENCE;
}
int num_iterations;
@@ -140,12 +140,14 @@ struct TrackRegionResult {
};
// Always needs 4 correspondences.
-void TrackRegion(const FloatImage &image1,
- const FloatImage &image2,
- const double *x1, const double *y1,
- const TrackRegionOptions &options,
- double *x2, double *y2,
- TrackRegionResult *result);
+void TrackRegion(const FloatImage& image1,
+ const FloatImage& image2,
+ const double* x1,
+ const double* y1,
+ const TrackRegionOptions& options,
+ double* x2,
+ double* y2,
+ TrackRegionResult* result);
// Sample a "canonical" version of the passed planar patch, using bilinear
// sampling. The passed corners must be within the image, and have at least two
@@ -156,11 +158,15 @@ void TrackRegion(const FloatImage &image1,
// the size of image.
// Warped coordinates of marker's position would be returned in
// warped_position_x and warped_position_y
-bool SamplePlanarPatch(const FloatImage &image,
- const double *xs, const double *ys,
- int num_samples_x, int num_samples_y,
- FloatImage *mask, FloatImage *patch,
- double *warped_position_x, double *warped_position_y);
+bool SamplePlanarPatch(const FloatImage& image,
+ const double* xs,
+ const double* ys,
+ int num_samples_x,
+ int num_samples_y,
+ FloatImage* mask,
+ FloatImage* patch,
+ double* warped_position_x,
+ double* warped_position_y);
} // namespace libmv