5 #ifndef VIL_NITF2_DATA_MASK_TABLE_H 6 #define VIL_NITF2_DATA_MASK_TABLE_H 12 #include <vxl_config.h> 14 # include <vcl_msvc_warnings.h> 28 unsigned int numBands,
const std::string& imode );
43 vxl_uint_32
block_band_present(
unsigned int block_x,
unsigned int block_y,
int band = -1)
const;
49 vxl_uint_32
block_band_offset(
unsigned int block_x,
unsigned int block_y,
int band = -1)
const;
53 vxl_uint_32
pad_pixel(
unsigned int block_x,
unsigned int block_y,
int band )
const;
55 vxl_uint_32
block_band_has_pad(
unsigned int block_x,
unsigned int block_y,
int band = -1)
const;
58 static void maybe_endian_swap(
char* a,
unsigned sizeOfAInBytes,
unsigned int bytesPerSample );
74 #endif //VXL_HAS_INT_64 79 std::vector< std::vector< std::vector< vxl_uint_32 > > >
BMR_n_BND_m;
83 std::vector< std::vector< std::vector< vxl_uint_32 > > >
TMR_n_BND_m;
91 #endif // VIL_NITF2_DATA_MASK_TABLE_H
bool has_offset_table() const
If this function returns true, then you may call.
This class is responsible for parsing a NITF 2.1 data mask table.
vxl_uint_32 blocked_image_data_offset() const
std::vector< std::vector< std::vector< vxl_uint_32 > > > BMR_n_BND_m
static void maybe_endian_swap(char *a, unsigned sizeOfAInBytes, vil_pixel_format pixFormat)
vil_nitf2_data_mask_table(unsigned int numBlocksX, unsigned int numBlocksY, unsigned int numBands, const std::string &imode)
Stream interface for VIL image loaders.
bool has_pad_pixel_table() const
If this function returns true, then you may call.
unsigned int num_blocks_x
vxl_uint_32 block_band_has_pad(unsigned int block_x, unsigned int block_y, int band=-1) const
unsigned int num_blocks_y
vxl_uint_32 block_band_offset(unsigned int block_x, unsigned int block_y, int band=-1) const
if imode == "S", then the band argument is used and I will return the offset to 'band' if imode !...
std::vector< std::vector< std::vector< vxl_uint_32 > > > TMR_n_BND_m
bool parse(vil_stream *stream)
vxl_uint_32 pad_pixel(unsigned int block_x, unsigned int block_y, int band) const
band argument is ignored if imode != "S"...
vxl_uint_32 block_band_present(unsigned int block_x, unsigned int block_y, int band=-1) const
Returns true iff this block is present in the data. False otherwise.