This class is responsible for parsing a NITF 2.1 data mask table.
More...
#include <vil_nitf2_data_mask_table.h>
|
| | vil_nitf2_data_mask_table (unsigned int numBlocksX, unsigned int numBlocksY, unsigned int numBands, const std::string &imode) |
| |
| bool | parse (vil_stream *stream) |
| |
| bool | has_offset_table () const |
| | If this function returns true, then you may call. More...
|
| |
| bool | has_pad_pixel_table () const |
| | If this function returns true, then you may call. More...
|
| |
| vxl_uint_32 | blocked_image_data_offset () const |
| |
| 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. More...
|
| |
| 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 != "S", then the band argument is ignored, and I will return the offset to the beginning of the requested block More...
|
| |
| vxl_uint_32 | pad_pixel (unsigned int block_x, unsigned int block_y, int band) const |
| | band argument is ignored if imode != "S"... More...
|
| |
| vxl_uint_32 | block_band_has_pad (unsigned int block_x, unsigned int block_y, int band=-1) const |
| |
This class is responsible for parsing a NITF 2.1 data mask table.
When present, a vil_nitf2_image_subheader() will use this class to extract the table from the file. It reads a vil_stream, via the parse() method and will return false if it failed.
Definition at line 24 of file vil_nitf2_data_mask_table.h.
◆ vil_nitf2_data_mask_table()
| vil_nitf2_data_mask_table::vil_nitf2_data_mask_table |
( |
unsigned int |
numBlocksX, |
|
|
unsigned int |
numBlocksY, |
|
|
unsigned int |
numBands, |
|
|
const std::string & |
imode |
|
) |
| |
◆ block_band_has_pad()
| vxl_uint_32 vil_nitf2_data_mask_table::block_band_has_pad |
( |
unsigned int |
block_x, |
|
|
unsigned int |
block_y, |
|
|
int |
band = -1 |
|
) |
| const |
◆ block_band_offset()
| vxl_uint_32 vil_nitf2_data_mask_table::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 != "S", then the band argument is ignored, and I will return the offset to the beginning of the requested block
Definition at line 111 of file vil_nitf2_data_mask_table.cxx.
◆ block_band_present()
| vxl_uint_32 vil_nitf2_data_mask_table::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.
If this returns false, then there is not sense calling block_band_offset for this band/block combination. It will return 0xFFFFFFFF. If this returns false, then this entire block/band is considered to be blank.
Definition at line 202 of file vil_nitf2_data_mask_table.cxx.
◆ blocked_image_data_offset()
| vxl_uint_32 vil_nitf2_data_mask_table::blocked_image_data_offset |
( |
| ) |
const |
◆ has_offset_table()
| bool vil_nitf2_data_mask_table::has_offset_table |
( |
| ) |
const |
|
inline |
◆ has_pad_pixel_table()
| bool vil_nitf2_data_mask_table::has_pad_pixel_table |
( |
| ) |
const |
|
inline |
◆ maybe_endian_swap() [1/2]
| void vil_nitf2_data_mask_table::maybe_endian_swap |
( |
char * |
a, |
|
|
unsigned |
sizeOfAInBytes, |
|
|
vil_pixel_format |
pixFormat |
|
) |
| |
|
static |
◆ maybe_endian_swap() [2/2]
| void vil_nitf2_data_mask_table::maybe_endian_swap |
( |
char * |
a, |
|
|
unsigned |
sizeOfAInBytes, |
|
|
unsigned int |
bytesPerSample |
|
) |
| |
|
static |
◆ pad_pixel()
| vxl_uint_32 vil_nitf2_data_mask_table::pad_pixel |
( |
unsigned int |
block_x, |
|
|
unsigned int |
block_y, |
|
|
int |
band |
|
) |
| const |
◆ parse()
| bool vil_nitf2_data_mask_table::parse |
( |
vil_stream * |
stream | ) |
|
◆ BMR_n_BND_m
| std::vector< std::vector< std::vector< vxl_uint_32 > > > vil_nitf2_data_mask_table::BMR_n_BND_m |
|
protected |
◆ BMRLNTH
| vxl_uint_16 vil_nitf2_data_mask_table::BMRLNTH |
|
protected |
◆ i_mode
| std::string vil_nitf2_data_mask_table::i_mode |
|
protected |
◆ IMDATOFF
| vxl_uint_32 vil_nitf2_data_mask_table::IMDATOFF |
|
protected |
◆ num_bands
| unsigned int vil_nitf2_data_mask_table::num_bands |
|
protected |
◆ num_blocks_x
| unsigned int vil_nitf2_data_mask_table::num_blocks_x |
|
protected |
◆ num_blocks_y
| unsigned int vil_nitf2_data_mask_table::num_blocks_y |
|
protected |
◆ TMR_n_BND_m
| std::vector< std::vector< std::vector< vxl_uint_32 > > > vil_nitf2_data_mask_table::TMR_n_BND_m |
|
protected |
◆ TMRLNTH
| vxl_uint_16 vil_nitf2_data_mask_table::TMRLNTH |
|
protected |
◆ TPXCD
| vxl_uint_32 vil_nitf2_data_mask_table::TPXCD |
|
protected |
◆ TPXCDLNTH
| vxl_uint_16 vil_nitf2_data_mask_table::TPXCDLNTH |
|
protected |
The documentation for this class was generated from the following files: