armarx::aron::similarity::NDArraySimilarity Namespace Reference

Enumerations

enum  Type {
  MSE, MAE, CHERNOFF, COSINE,
  NONE
}
 

Functions

double calculate_similarity (armarx::aron::data::NDArrayPtr p1, armarx::aron::data::NDArrayPtr p2, Type type)
 
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, the dissimilarity values are simply summed up More...
 
std::string to_string (Type t)
 

Enumeration Type Documentation

◆ Type

enum Type
Enumerator
MSE 
MAE 
CHERNOFF 
COSINE 
NONE 

Definition at line 8 of file NDArraySimilarity.h.

Function Documentation

◆ calculate_similarity()

double calculate_similarity ( armarx::aron::data::NDArrayPtr  p1,
armarx::aron::data::NDArrayPtr  p2,
Type  type 
)

Definition at line 12 of file NDArraySimilarity.cpp.

+ Here is the call graph for this function:

◆ calculate_similarity_multi()

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, the dissimilarity values are simply summed up

Parameters
imagesvector of images that are compared to p
pmain image that you want to know the dissimilarity from
typeType of dissimilarity measure used
Returns
dissimilarity

Definition at line 46 of file NDArraySimilarity.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ to_string()

std::string to_string ( Type  t)

Definition at line 30 of file NDArraySimilarity.cpp.