44 template<
typename dtype>
48 STATIC_ASSERT_ARITHMETIC(dtype);
102 return !(*
this == rhs);
124 return static_cast<bool>(
col < rhs.col);
136 [[nodiscard]] std::string
str()
const
162 inStream << inPixel.
str();
Holds the information for a single pixel.
Definition: Pixel.hpp:46
constexpr bool operator==(const Pixel< dtype > &rhs) const noexcept
Definition: Pixel.hpp:86
constexpr Pixel()=default
dtype intensity
Definition: Pixel.hpp:55
friend std::ostream & operator<<(std::ostream &inStream, const Pixel< dtype > &inPixel)
Definition: Pixel.hpp:160
void print() const
Definition: Pixel.hpp:147
constexpr bool operator!=(const Pixel< dtype > &rhs) const noexcept
Definition: Pixel.hpp:100
constexpr Pixel(uint32 inRow, uint32 inCol, dtype inIntensity) noexcept
Definition: Pixel.hpp:71
bool operator<(const Pixel< dtype > &rhs) const noexcept
Definition: Pixel.hpp:116
uint32 col
Definition: Pixel.hpp:54
uint32 row
Definition: Pixel.hpp:53
int32 clusterId
Definition: Pixel.hpp:52
std::string str() const
Definition: Pixel.hpp:136
Definition: applyThreshold.hpp:34
std::string num2str(dtype inNumber)
Definition: num2str.hpp:44
bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept
Definition: essentiallyEqual.hpp:49
std::int32_t int32
Definition: Types.hpp:36
std::uint32_t uint32
Definition: Types.hpp:40