-
Notifications
You must be signed in to change notification settings - Fork 1
/
unufo_patch.h
36 lines (28 loc) · 1.18 KB
/
unufo_patch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <vector>
#include "unufo_types.h"
namespace unufo {
void transfer_patch(const Bitmap<uint8_t>& data, int bpp,
const Bitmap<uint8_t>& confidence_map,
const Matrix<Coordinates>& transfer_map,
const Matrix<int>& transfer_belief,
const Coordinates& position, const Coordinates& source,
int belief, const std::vector<int>& best_color_diff);
int get_difference_color_adjustment(const Bitmap<uint8_t>& data,
const Matrix<int>& transfer_belief,
int comp_patch_radius,
const Coordinates& candidate,
const Coordinates& position,
std::vector<int>& best_color_diff,
int best, int bpp,
int max_adjustment, bool equal_adjustment);
int get_difference(const Bitmap<uint8_t>& data,
const Matrix<int>& transfer_belief,
int comp_patch_radius,
const Coordinates& candidate,
const Coordinates& position, int best);
/// return structural complexity of point's neighbourhood
int get_complexity(const Bitmap<uint8_t>& data,
const Bitmap<uint8_t>& confidence_map,
const Matrix<int>& transfer_belief,
const Coordinates& point, int comp_patch_radius, int bpp);
}