Go to the documentation of this file.
7 #include "../../cosine.h"
25 ARMARX_WARNING <<
"Trying to calculate similarity with unspecified similarity measurement";
42 return "No similarity type information";
49 for(
auto& image: images){
54 return sim / (images.size() + 1);
double compute_similarity(const aron::data::NDArrayPtr p1, const aron::data::NDArrayPtr p2)
std::shared_ptr< NDArray > NDArrayPtr
double compute_similarity(const aron::data::NDArrayPtr p1, const aron::data::NDArrayPtr p2)
std::string to_string(Type t)
double compute_similarity(const aron::data::NDArrayPtr p1, const aron::data::NDArrayPtr p2)
double calculate_similarity_multi(std::vector< armarx::aron::data::NDArrayPtr > images, armarx::aron::data::NDArrayPtr p, Type type)
calculate_similarity_multi compares the image p with all images from the images vector,...
double calculate_similarity(armarx::aron::data::FloatPtr f1, armarx::aron::data::FloatPtr f2, Type t)
double calculate_similarity(armarx::aron::data::NDArrayPtr p1, armarx::aron::data::NDArrayPtr p2, Type type)
double compute_similarity(const data::NDArrayPtr p1, const data::NDArrayPtr p2)