NDArraySimilarity.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <vector>
4
#include "
RobotAPI/libraries/aron/core/data/variant/complex/NDArray.h
"
5
6
namespace
armarx::aron::similarity::NDArraySimilarity
{
7
8
enum
Type
{
9
MSE
,
10
MAE
,
11
CHERNOFF
,
12
COSINE
,
13
NONE
14
};
15
16
std::string
to_string
(
Type
t);
17
18
double
calculate_similarity
(
armarx::aron::data::NDArrayPtr
p1,
armarx::aron::data::NDArrayPtr
p2,
Type
type);
19
20
/**
21
* @brief calculate_similarity_multi compares the image p with all images from the images vector, the dissimilarity values are simply summed up
22
* @param images vector of images that are compared to p
23
* @param p main image that you want to know the dissimilarity from
24
* @param type Type of dissimilarity measure used
25
* @return dissimilarity
26
*/
27
double
calculate_similarity_multi
(std::vector<armarx::aron::data::NDArrayPtr> images,
armarx::aron::data::NDArrayPtr
p,
Type
type);
28
29
}
armarx::aron::similarity::NDArraySimilarity::CHERNOFF
@ CHERNOFF
Definition:
NDArraySimilarity.h:11
armarx::aron::similarity::NDArraySimilarity::MSE
@ MSE
Definition:
NDArraySimilarity.h:9
armarx::aron::data::NDArrayPtr
std::shared_ptr< NDArray > NDArrayPtr
Definition:
NDArray.h:46
armarx::aron::similarity::NDArraySimilarity
Definition:
NDArraySimilarity.h:6
armarx::aron::similarity::NDArraySimilarity::COSINE
@ COSINE
Definition:
NDArraySimilarity.h:12
armarx::aron::similarity::NDArraySimilarity::NONE
@ NONE
Definition:
NDArraySimilarity.h:13
armarx::aron::similarity::NDArraySimilarity::to_string
std::string to_string(Type t)
Definition:
NDArraySimilarity.cpp:30
armarx::aron::similarity::NDArraySimilarity::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,...
Definition:
NDArraySimilarity.cpp:46
armarx::aron::similarity::NDArraySimilarity::Type
Type
Definition:
NDArraySimilarity.h:8
armarx::aron::similarity::NDArraySimilarity::calculate_similarity
double calculate_similarity(armarx::aron::data::NDArrayPtr p1, armarx::aron::data::NDArrayPtr p2, Type type)
Definition:
NDArraySimilarity.cpp:12
NDArray.h
armarx::aron::similarity::NDArraySimilarity::MAE
@ MAE
Definition:
NDArraySimilarity.h:10
RobotAPI
libraries
aron
similarity
data
image
NDArraySimilarity.h
Generated on Sat Oct 12 2024 09:14:10 for armarx_documentation by
1.8.17