PCL
|
20-bit unsigned integer pixel traits. More...
#include <PixelTraits.h>
Public Types | |
using | component = sample |
using | sample = traits_type::sample |
using | traits_type = GenericPixelTraits< uint32 > |
Public Types inherited from pcl::GenericPixelTraits< uint32 > | |
using | sample = uint32 |
Static Public Member Functions | |
template<typename T > | |
static sample | FloatToSample (T x) noexcept |
template<typename T > | |
static void | FromSample (Complex< T > &a, sample b) noexcept |
static void | FromSample (double &a, sample b) noexcept |
static void | FromSample (float &a, sample b) noexcept |
static void | FromSample (int16 &a, sample b) noexcept |
static void | FromSample (int32 &a, sample b) noexcept |
static void | FromSample (int8 &a, sample b) noexcept |
static void | FromSample (uint16 &a, sample b) noexcept |
static void | FromSample (uint32 &a, sample b) noexcept |
static void | FromSample (uint8 &a, sample b) noexcept |
static constexpr sample | HighestSampleValue () noexcept |
static constexpr bool | IsComplexSample () noexcept |
static constexpr bool | IsFloatSample () noexcept |
static constexpr sample | LowestSampleValue () noexcept |
static constexpr sample | MaxSampleValue () noexcept |
static constexpr const char * | SampleFormat () noexcept |
template<typename T > | |
static constexpr sample | ToSample (const Complex< T > &x) noexcept |
static sample | ToSample (double x) noexcept |
static sample | ToSample (float x) noexcept |
static sample | ToSample (int16 x) noexcept |
static sample | ToSample (int32 x) noexcept |
static sample | ToSample (int8 x) noexcept |
static sample | ToSample (uint16 x) noexcept |
static sample | ToSample (uint32 x) noexcept |
static sample | ToSample (uint8 x) noexcept |
static sample | ToSampleConstrained (double x) noexcept |
static sample | ToSampleConstrained (float x) noexcept |
Static Public Member Functions inherited from pcl::GenericPixelTraits< uint32 > | |
static constexpr int | BitsPerSample () noexcept |
static constexpr int | BytesPerSample () noexcept |
static constexpr sample | MinSampleValue () noexcept |
UInt20PixelTraits is a template instantiation of GenericPixelTraits for unsigned 20-bit integers (stored as uint32
values).
This class does not represent an instantiable pixel sample type. It is used mainly for generation and management of 20-bit lookup tables (LUTs).
Definition at line 5652 of file PixelTraits.h.
Represents a component of a complex pixel sample, or a pixel sample value for real pixel sample types. For UInt20PixelTraits, this is equivalent to uint32
.
Definition at line 5671 of file PixelTraits.h.
Represents a pixel sample value.
Definition at line 5664 of file PixelTraits.h.
Represents this template instantiation.
Definition at line 5659 of file PixelTraits.h.
|
inlinestaticnoexcept |
Conversion of any floating point value to a pixel sample value.
Definition at line 5736 of file PixelTraits.h.
|
inlinestaticnoexcept |
Conversion of a pixel sample value to any complex type.
Definition at line 5955 of file PixelTraits.h.
|
inlinestaticnoexcept |
Conversion of a pixel sample value to a 64-bit floating point real.
Definition at line 5942 of file PixelTraits.h.
|
inlinestaticnoexcept |
Conversion of a pixel sample value to a 32-bit floating point real.
Definition at line 5930 of file PixelTraits.h.
Conversion of a pixel sample value to a 16-bit signed integer.
Definition at line 5894 of file PixelTraits.h.
Conversion of a pixel sample value to a 32-bit signed integer.
Definition at line 5918 of file PixelTraits.h.
Conversion of a pixel sample value to an 8-bit signed integer.
Definition at line 5870 of file PixelTraits.h.
Conversion of a pixel sample value to a 16-bit unsigned integer.
Definition at line 5882 of file PixelTraits.h.
Conversion of a pixel sample value to a 32-bit unsigned integer.
Definition at line 5906 of file PixelTraits.h.
Conversion of a pixel sample value to an 8-bit unsigned integer.
Definition at line 5858 of file PixelTraits.h.
|
inlinestaticconstexprnoexcept |
Returns the highest finite value representable by this pixel sample type.
For UInt20PixelTraits, this member function returns 1048576.
Definition at line 5727 of file PixelTraits.h.
References uint20_max.
|
inlinestaticconstexprnoexcept |
Returns true if this pixel traits class corresponds to a complex pixel sample type; false if it represents a real pixel sample type.
Definition at line 5686 of file PixelTraits.h.
|
inlinestaticconstexprnoexcept |
Returns true iff this pixel traits class corresponds to a floating point real pixel sample type.
Definition at line 5677 of file PixelTraits.h.
|
inlinestaticconstexprnoexcept |
Returns the lowest finite value representable by this pixel sample type.
For UInt20PixelTraits, this member function returns 0.
Definition at line 5717 of file PixelTraits.h.
|
inlinestaticconstexprnoexcept |
Returns the maximum valid pixel sample value.
For UInt20PixelTraits, this member function returns 1048576.
Definition at line 5707 of file PixelTraits.h.
References uint20_max.
|
inlinestaticconstexprnoexcept |
Returns the address of a static null-terminated string identifying the sample data type represented by this pixel traits class.
For UInt20PixelTraits, this member function returns "UInt20".
Definition at line 5697 of file PixelTraits.h.
|
inlinestaticconstexprnoexcept |
Conversion of any complex value to a pixel sample value.
Definition at line 5850 of file PixelTraits.h.
References pcl::Abs().
|
inlinestaticnoexcept |
Conversion of a 64-bit floating point value to a pixel sample value.
Definition at line 5831 of file PixelTraits.h.
References uint20_max.
|
inlinestaticnoexcept |
Conversion of a 32-bit floating point value to a pixel sample value.
Definition at line 5813 of file PixelTraits.h.
References uint20_max.
Conversion of a 16-bit signed integer value to a pixel sample value.
Definition at line 5785 of file PixelTraits.h.
References int16_min, pcl::RoundInt(), and uint16_to_uint20.
Conversion of a 32-bit signed integer value to a pixel sample value.
Definition at line 5805 of file PixelTraits.h.
References int32_min, pcl::RoundInt(), and uint32_to_uint20.
Conversion of an 8-bit signed integer value to a pixel sample value.
Definition at line 5761 of file PixelTraits.h.
References int8_min, pcl::RoundInt(), and uint8_to_uint20.
Conversion of a 16-bit unsigned integer value to a pixel sample value.
Definition at line 5773 of file PixelTraits.h.
References pcl::RoundInt(), and uint16_to_uint20.
Conversion of a 32-bit unsigned integer value to a pixel sample value.
Definition at line 5797 of file PixelTraits.h.
References pcl::RoundInt(), and uint32_to_uint20.
Conversion of an 8-bit unsigned integer value to a pixel sample value.
Definition at line 5749 of file PixelTraits.h.
References pcl::RoundInt(), and uint8_to_uint20.
|
inlinestaticnoexcept |
Conversion of a 64-bit floating point value to a pixel sample value. This function guarantees that the result will never overflow as a result of an out-of-range argument value.
Definition at line 5841 of file PixelTraits.h.
References pcl::Range(), and uint20_max.
|
inlinestaticnoexcept |
Conversion of a 32-bit floating point value to a pixel sample value. This function guarantees that the result will never overflow as a result of an out-of-range argument value.
Definition at line 5823 of file PixelTraits.h.
References pcl::Range(), and uint20_max.