-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathutils.hpp
27 lines (21 loc) · 843 Bytes
/
utils.hpp
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
//
// Created by Nicola Pierazzo on 21/10/15.
//
#ifndef IMGUTILS_UTILS_HPP
#define IMGUTILS_UTILS_HPP
#include "Image.hpp"
#include <string>
#include <vector>
namespace imgutils {
std::pair<int, int> ComputeTiling(int rows, int columns, int tiles);
std::vector<Image> SplitTiles(const Image &src, int pad_before, int pad_after,
std::pair<int, int> tiling);
Image MergeTiles(const std::vector<std::pair<Image, Image>> &src,
std::pair<int, int> shape, int pad_before, int pad_after,
std::pair<int, int> tiling);
void dct_inplace(Image &img);
void idct_inplace(Image &img);
std::vector<Image> decompose(const Image &img, int levels);
Image recompose(const std::vector<Image> &pyramid, float recompose_factor);
} // namespace imgutils
#endif //IMGUTILS_UTILS_HPP