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> struct Pixel {
8 static_assert(
9 std::is_arithmetic<NumberT>::value, "Pixel<NumberT>: NumberT must be a numeric type"
10 );
11
12 using value_type = NumberT;
13
14 ~Pixel() = default;
15};
16} // namespace ImageLib
17
18#endif // PIXEL_H