23 #ifndef _Image_Data_Block_
24 #define _Image_Data_Block_
51 static const char*
const ID;
54 static const char*
const
58 static const char*
const
62 static const char*
const
66 static const char*
const
70 static const char*
const
74 static const char*
const
80 static const char*
const
86 static const char*
const
92 static const char*
const
98 static const char*
const
102 static const char*
const
106 static const char*
const
124 std::ios::off_type file_offset
135 const std::string& filename
150 {
return Image_Bands;}
159 {
return Image_Width;}
168 {
return Image_Height;}
181 {
return Pixel_Bytes;}
210 {
return Signed_Data;}
230 {
return Line_Prefix_Bytes;}
239 {
return Line_Suffix_Bytes;}
An Image_Data_Block describes PDS image data.
Definition: Image_Data_Block.hh:45
static const char *const SIGNED_PIXEL_TYPE_IDENTIFIER
Substring of the PIXEL_DATA_TYPE_PARAMETER_NAME parameter that identifies a signed pixel value.
Definition: Image_Data_Block.hh:87
static const char *const IMAGE_BANDS_PARAMETER_NAME
The name of the parameter used to obtain the image bands value.
Definition: Image_Data_Block.hh:55
static const char *const PIXEL_BYTES_PARAMETER_NAME
The name of the parameter used to obtain the pixel storage bytes value.
Definition: Image_Data_Block.hh:67
std::string source_filename()
Definition: Image_Data_Block.cc:160
int MSB_data()
Determine if the pixel data is MSB ordered.
Definition: Image_Data_Block.hh:220
virtual unsigned long long data_block_size()
Calculate the size of the binary data block.
Definition: Image_Data_Block.cc:172
unsigned int image_bands()
Get the number of bands in the image.
Definition: Image_Data_Block.hh:149
static const char *const IMAGE_HEIGHT_PARAMETER_NAME
The name of the parameter used to obtain the image height value.
Definition: Image_Data_Block.hh:63
static const char *const LINE_SUFFIX_BYTES_PARAMETER_NAME
The name of the parameter used to obtain the line suffix bytes value.
Definition: Image_Data_Block.hh:107
static const char *const LINE_PREFIX_BYTES_PARAMETER_NAME
The name of the parameter used to obtain the line prefix bytes value.
Definition: Image_Data_Block.hh:103
unsigned int image_width()
Get the width of the image.
Definition: Image_Data_Block.hh:158
int signed_data()
Check if the pixel data is signed.
Definition: Image_Data_Block.hh:209
unsigned int pixel_bytes()
Get the storage size of a pixel in bytes.
Definition: Image_Data_Block.hh:180
static const char *const PIXEL_BITS_PARAMETER_NAME
The name of the parameter used to obtain the valid pixel bits value.
Definition: Image_Data_Block.hh:71
unsigned int line_suffix_bytes()
Get the number of line suffix bytes.
Definition: Image_Data_Block.hh:238
static const char *const PIXEL_DATA_TYPE_PARAMETER_NAME
The name of the parameter used to obtain the pixel data type values.
Definition: Image_Data_Block.hh:75
unsigned int line_prefix_bytes()
Get the number of line prefix bytes.
Definition: Image_Data_Block.hh:229
static const char *const LSB_PIXEL_TYPE_IDENTIFIER
Substring of the PIXEL_DATA_TYPE_PARAMETER_NAME parameter that identifies an LSB ordered pixel.
Definition: Image_Data_Block.hh:93
Image_Data_Block()
Constructs an empty Image_Data_Block.
Definition: Image_Data_Block.cc:94
static const char *const MSB_PIXEL_TYPE_IDENTIFIER
Substring of the PIXEL_DATA_TYPE_PARAMETER_NAME parameter that identifies an MSB ordered pixel.
Definition: Image_Data_Block.hh:99
static const char *const IMAGE_WIDTH_PARAMETER_NAME
The name of the parameter used to obtain the image width value.
Definition: Image_Data_Block.hh:59
static const char *const ID
Class identification name with source code version and date.
Definition: Image_Data_Block.hh:51
unsigned int pixel_bits()
Get the number valid bits (data precision) in a pixel.
Definition: Image_Data_Block.hh:198
static const char *const UNSIGNED_PIXEL_TYPE_IDENTIFIER
Substring of the PIXEL_DATA_TYPE_PARAMETER_NAME parameter that identifies an unsigned pixel value.
Definition: Image_Data_Block.hh:81
unsigned int image_height()
Get the height of the image.
Definition: Image_Data_Block.hh:167
A PDS_Data_Block describes a binary data block in a PDS label.
Definition: PDS_Data_Block.hh:56
virtual PDS_Data & parameters(const std::string &pathname)
Set the parameters from a source file.
Definition: PDS_Data.cc:305
std::string pathname(const Parameter *root=NULL) const
Definition: Dimensions.cc:30