From e5c3b5117c2f3936967319223e353ac6c7a0b1ca Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Sun, 9 Apr 2017 13:25:13 -0500 Subject: warp source and reflection patches --- src/feature.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/feature.cpp') diff --git a/src/feature.cpp b/src/feature.cpp index 66b0677..fbb1376 100644 --- a/src/feature.cpp +++ b/src/feature.cpp @@ -1119,3 +1119,15 @@ Feature::patch ( ) return _patch ; } /* ----- end of method Feature::patch ----- */ +Mat +Feature::warpedPatch ( const Camera &cam, const Quaterniond &q1 ) +{ + return cam.warpPatch(_patch, q0, q1); +} /* ----- end of method Feature::warpedPatch ----- */ + +Mat +Feature::reflectedPatch( const Camera &cam, const Quaterniond &q1 ) +{ + return cam.reflectPatch(_patch, q0, q1); +} + -- cgit v1.1