32 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
53 std::stringstream str;
65 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
66 bool Init(
int dim,
int gpu_id = 0,
int init_size = 128) {
75 for (
int i = 0; i <
dim; ++i) {
77 for (
int j = 0; j <
dim; ++j) {
79 map_sim[i][j]->Reshape({init_size, init_size});
92 const std::shared_ptr<base::Blob<float>>
get(
int frame1,
int frame2)
const {
101 std::vector<std::vector<std::shared_ptr<base::Blob<float>>>>
map_sim;
A wrapper around SyncedMemory holders serving as the basic computational unit for images,...
static bool set_device_id(int device_id)
for dynamic models (perfect model excluded)
PatchIndicator(int frame_id, int patch_id, const std::string &sensor_name)
EIGEN_MAKE_ALIGNED_OPERATOR_NEW PatchIndicator()
bool operator==(const PatchIndicator &indicator)
std::string to_string() const
PatchIndicator(int frame_id, int patch_id)
void set(int frame1, int frame2, std::shared_ptr< base::Blob< float > > sim)
std::vector< std::vector< std::shared_ptr< base::Blob< float > > > > map_sim
float sim(const PatchIndicator &p1, const PatchIndicator &p2) const
const std::shared_ptr< base::Blob< float > > get(int frame1, int frame2) const
EIGEN_MAKE_ALIGNED_OPERATOR_NEW bool Init(int dim, int gpu_id=0, int init_size=128)