changed memory allocation in matcher (#27)
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#include <vikit/abstract_camera.h>
|
||||
#include <vikit/vision.h>
|
||||
#include <vikit/math_utils.h>
|
||||
#include <vikit/aligned_mem.h>
|
||||
#include <vikit/patch_score.h>
|
||||
#include <svo/matcher.h>
|
||||
#include <svo/frame.h>
|
||||
@@ -107,19 +106,6 @@ void warpAffine(
|
||||
|
||||
} // namespace warp
|
||||
|
||||
|
||||
Matcher::Matcher()
|
||||
{
|
||||
patch_ = vk::aligned_mem::aligned_alloc<uint8_t>(patch_size_*patch_size_, 16);
|
||||
patch_with_border_ = vk::aligned_mem::aligned_alloc<uint8_t>((patch_size_+2)*(patch_size_+2), 16);
|
||||
}
|
||||
|
||||
Matcher::~Matcher()
|
||||
{
|
||||
free(patch_);
|
||||
free(patch_with_border_);
|
||||
}
|
||||
|
||||
bool depthFromTriangulation(
|
||||
const SE3& T_search_ref,
|
||||
const Vector3d& f_ref,
|
||||
|
||||
Reference in New Issue
Block a user