#include <vil_nitf2_image_subheader.h>
It is used by vil_nitf_image for this purpose. You can access any of the information in the header via the appropriate get_property() function. There are also some shortcut functions for getting commonly needed data like nplanes() etc.
Definition at line 24 of file vil_nitf2_image_subheader.h.
Public Member Functions | |
| vil_nitf2_image_subheader (vil_nitf2_classification::file_version version) | |
| virtual | ~vil_nitf2_image_subheader () |
| virtual bool | read (vil_stream *stream) |
| Read the image header starting at stream's current position. | |
| template<class T> | |
| bool | get_property (vcl_string tag, T &out_value) const |
| Sets out_value to the value of field specified by tag. | |
| template<class T> | |
| bool | get_property (vcl_string tag, int i, T &out_value) const |
| Sets out_value to the value of vcl_vector field element specified by tag and index. | |
| unsigned int | nplanes () const |
| unsigned int | get_pixels_per_block_x () const |
| unsigned int | get_pixels_per_block_y () const |
| unsigned int | get_num_blocks_x () const |
| unsigned int | get_num_blocks_y () const |
| bool | has_data_mask_table () const |
| const vil_nitf2_data_mask_table * | data_mask_table () const |
| bool | get_lut_info (unsigned int band, int &n_luts, int &ne_lut, vcl_vector< vcl_vector< unsigned char > > &lut_d) const |
| Returns true if the ith image band in this image subheader has LUT info and false otherwise. | |
| virtual vil_nitf2_field::field_tree * | get_tree (int i=0) const |
| bool | get_rpc_params (vcl_string &rpc_type, vcl_string &image_id, vcl_string &image_corner_geo_locations, double *rpc_data) |
| Get RPC parameters, if present. User provides rpc_data array. | |
Static Protected Member Functions | |
| static const vil_nitf2_field_definitions * | get_field_definitions_21 () |
| static const vil_nitf2_field_definitions * | get_field_definitions_20 () |
Protected Attributes | |
| vil_nitf2_field_sequence | m_field_sequence |
| vil_nitf2_data_mask_table * | m_data_mask_table |
| vil_nitf2_classification::file_version | m_version |
Static Private Member Functions | |
| static void | add_shared_field_defs_1 (vil_nitf2_field_definitions *defs) |
| static void | add_shared_field_defs_2 (vil_nitf2_field_definitions *defs) |
| static void | add_geo_field_defs (vil_nitf2_field_definitions *defs, const vil_nitf2_classification::file_version &version) |
| static void | add_shared_field_defs_3 (vil_nitf2_field_definitions *defs) |
| static void | add_rpc_definitions () |
Static Private Attributes | |
| static vil_nitf2_field_definitions * | s_field_definitions_21 = 0 |
| static vil_nitf2_field_definitions * | s_field_definitions_20 = 0 |
Friends | |
| void | vil_nitf2::cleanup_static_members () |
|
|
Definition at line 21 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 29 of file vil_nitf2_image_subheader.cxx. |
|
||||||||||||
|
Definition at line 202 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 437 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 331 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 253 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 84 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 57 of file vil_nitf2_image_subheader.h. |
|
|
Definition at line 70 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 57 of file vil_nitf2_image_subheader.cxx. |
|
||||||||||||||||||||
|
Returns true if the ith image band in this image subheader has LUT info and false otherwise. If it returns true, then all the out parameters will be populated from the header data.
Definition at line 399 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 381 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 390 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 363 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 372 of file vil_nitf2_image_subheader.cxx. |
|
||||||||||||||||||||
|
Sets out_value to the value of vcl_vector field element specified by tag and index.
Definition at line 46 of file vil_nitf2_image_subheader.h. |
|
||||||||||||||||
|
Sets out_value to the value of field specified by tag.
Definition at line 38 of file vil_nitf2_image_subheader.h. |
|
||||||||||||||||||||
|
Get RPC parameters, if present. User provides rpc_data array. The parameters describe a camera projection based on the ratio of cubic polynomials in (lon, lat, ele). All variables are normalized to the range [-1, 1] using scale and offset parameters. For further definition of parameters see http://www.ismc.nima.mil/ntb/superceded/vimas/vimas.pdf The returned rpc_data vector is encoded as: rpc_data[0]-rpc_data[19] Line Numerator Cubic Coefficients rpc_data[20]-rpc_data[39] Line Denominator Cubic Coefficients rpc_data[40]-rpc_data[59] Sample Numerator Cubic Coefficients rpc_data[60]-rpc_data[79] Sample Denominator Cubic Coefficients rpc_data[80] Line Offset rpc_data[81] Sample Offset rpc_data[82] Latitude Offset rpc_data[83] Longitude Offset rpc_data[84] Elevation Offset rpc_data[85] Line Scale rpc_data[86] Sample Scale rpc_data[87] Latitude Scale rpc_data[88] Longitude Scale rpc_data[89] Elevation Scale The ordering of coefficients can vary as indicated by rpc_type Defined extensions are RPC00A and RPC00B. Definition at line 523 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 425 of file vil_nitf2_image_subheader.cxx. |
|
|
Definition at line 56 of file vil_nitf2_image_subheader.h. |
|
|
Definition at line 346 of file vil_nitf2_image_subheader.cxx. |
|
|
Read the image header starting at stream's current position.
Definition at line 37 of file vil_nitf2_image_subheader.cxx. |
|
|
|
|
|
Definition at line 113 of file vil_nitf2_image_subheader.h. |
|
|
Definition at line 112 of file vil_nitf2_image_subheader.h. |
|
|
Definition at line 115 of file vil_nitf2_image_subheader.h. |
|
|
Definition at line 127 of file vil_nitf2_image_subheader.h. |
|
|
Definition at line 126 of file vil_nitf2_image_subheader.h. |
1.4.4