Img2Num C++ (Internal Developer Docs) dev
API Documentation
Loading...
Searching...
No Matches
Pixel.h
1#ifndef PIXEL_H
2#define PIXEL_H
3
4#include <type_traits>
5
6namespace ImageLib {
7template <typename NumberT>
8struct Pixel {
9 static_assert(std::is_arithmetic<NumberT>::value,
10 "Pixel<NumberT>: NumberT must be a numeric type");
11
12 using value_type = NumberT;
13
14 ~Pixel() = default;
15};
16} // namespace ImageLib
17
18#endif // PIXEL_H