24 #if defined (INCLUDE_PVL)
74 static const char*
const
78 static const char*
const
125 static const char*
const
129 static const char*
const
137 static const unsigned int
163 explicit LUT (std::istream& stream);
173 LUT (
const LUT& component,
bool data_duplicate =
true);
191 std::string
id ()
const;
198 const char*
name ()
const;
284 (std::ostream& stream = std::cout,
bool verbose =
false)
const;
306 #if defined (INCLUDE_PVL)
384 #if defined (INCLUDE_PVL)
A Data_Component provides a common, virtual interface for all HiRISE Observation data blocks.
Definition: Data_Component.hh:124
A LUT contains the lookup table used to map 14-bit CCD sensor values to 8-bit image pixel values.
Definition: LUT.hh:68
static const char *const PVL_NODES_NAME
The Parameter name of the PVL LUT nodes table.
Definition: LUT.hh:126
std::ostream & print(std::ostream &stream=std::cout, bool verbose=false) const
Prints the component structure and contents.
Definition: LUT.cc:337
std::string id() const
Provides the class ID on a line followed by the base Data_Component::id.
Definition: LUT.cc:203
static const Index OFFSETS[]
Data_Block data storage address offset for each Element.
Definition: LUT.hh:87
unsigned int width() const
Gets the table print listing width.
Definition: LUT.hh:291
const char * name() const
Gets the NAME of this class.
Definition: LUT.cc:207
static const double DEFAULT_PUKOOL_OFFSET
The default pukool_table reverse mapping offset.
Definition: LUT.hh:134
bool is_valid() const
Tests if the component data is valid.
Definition: LUT.cc:771
static const char *const PVL_PDS_TABLE_NAME
The Parameter name of the PVL_PDS LUT conversion table.
Definition: LUT.hh:130
LUT & width(unsigned int groups)
Sets the table print listing width.
Definition: LUT.hh:303
Pixel_type * pukool_table(Pixel_type *maping_table, double offset_percentage=DEFAULT_PUKOOL_OFFSET)
Gets the reverse lookup (pukool) table.
Definition: LUT.cc:228
LUT & operator=(const LUT &component)
Assigns another LUT to this one.
Definition: LUT.cc:187
static const Index ARRAY_COUNTS[][2]
Data_Block array element value counts each keyed to an Element Index.
Definition: LUT.hh:107
LUT()
Constructs an empty LUT.
Definition: LUT.cc:148
static const char * TYPE_NAMES[]
The name of each LUT type.
Definition: LUT.hh:122
idaeim::PVL::Aggregate * PVL_PDS() const
Provides a PDS label representation of the LUT values.
Definition: LUT.cc:451
u_int_8 operator[](Index index) const
Gets a table entry using array notation.
Definition: LUT.cc:212
static const unsigned int DEFAULT_WIDTH
The default width, in value groups, of a table print listing.
Definition: LUT.hh:138
static const char *const ID
Class identification name with source code version and date.
Definition: LUT.hh:75
static const char *const NAME
The component name.
Definition: LUT.hh:79
idaeim::PVL::Aggregate * PVL_description() const
Produces a PVL description of the component for a PDS label.
Definition: LUT.cc:707
idaeim::PVL::Aggregate * PVL() const
Produces a PVL rendition of the component.
Definition: LUT.cc:409
static const Index COMPONENT_BYTES
Total number of bytes in the Data_Block.
Definition: LUT.hh:83
LUT_Type
The LUT types available for use.
Definition: LUT.hh:111
@ Linear
Definition: LUT.hh:114
@ Total_LUT_Types
Definition: LUT.hh:117
@ Stored
Definition: LUT.hh:115
@ None
Definition: LUT.hh:112
@ Square_Root
Definition: LUT.hh:113
U_INT_8_TYPE u_int_8
8-bit unsigned integer type.
Definition: Data_Component.hh:56
PIRL::Data_Block::Index Index
Data_Block element index type.
Definition: Data_Component.hh:95
u_int_16 Pixel_type
The type of a generic pixel value.
Definition: Data_Component.hh:98
Pixel_type * pukool_table(const Value &conversion_table, Pixel_type *mapping_table, double offset_percentage)
Generates a reverse lookup (pukool) table from a LUT PVL_PDS LOOKUP_CONVERSION_TABLE Parameter Value.
Definition: LUT.cc:539