RapidLib  v2.2.0
A simple library for interactive machine learning
warpPath.h
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include <vector>
12 
14 struct warpPath
15 {
16  std::vector<std::pair<std::size_t, std::size_t>> indices{};
17 
23  void add(const std::size_t x, const std::size_t y)
24  {
25  indices.insert(indices.begin(), std::make_pair(x, y));
26  };
27 };
28 
30 template <typename T> struct warpInfo
31 {
33  T cost{};
34 };
Definition: warpPath.h:31
warpPath path
Definition: warpPath.h:32
T cost
Definition: warpPath.h:33
Definition: warpPath.h:15
std::vector< std::pair< std::size_t, std::size_t > > indices
Definition: warpPath.h:16
void add(const std::size_t x, const std::size_t y)
Definition: warpPath.h:23