SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
image_lut.h
1#pragma once
2#include "image.h"
3
4namespace satdump
5{
6 namespace image
7 { // TODOIMG maybe not a template?
8 template <typename T>
9 Image create_lut(int channels, int width, int points, std::vector<T> data);
10
11 template <typename T>
12 Image LUT_jet();
13
14 inline Image scale_lut(int width, int x0, int x1, Image in)
15 {
16 in.resize(x1 - x0, 1);
17 Image out(in.depth(), width, 1, 3);
18 out.fill(0);
19 out.draw_image(0, in, x0, 0);
20 return out;
21 }
22 } // namespace image
23} // namespace satdump
Definition image.h:17
void resize(int width, int height)
Resize image, using a simple pixel scaling attribution (not the best, but fast)
Definition image.cpp:319
Core Image class.