-
Notifications
You must be signed in to change notification settings - Fork 38
NITRO Code Snippets
anna-dodd edited this page Jun 3, 2015
·
18 revisions
This page contains snippets of code, and sometimes mini-tutorials showing how to use portions of the NITRO API. The snippets are not necessarily full programs, but they are chunks of code that developers can use to learn the basic functionality. The page is divided into sections for each released binding (currently C and Java) and for each version of the library.
- Writing a NITF file from scratch (New)
- 1.5/2.0 C
- Reading an image using Java imageio code
- 1.5/2.0 Java
- Getting and manipulating fields
- Setting and manipulating Fields
- Iterating ImageSegments
- Iterating Extensions segments
- Explicitly Loading the PluginRegistry
- Writing out a file from raw DataSources
- Writing out a file using Java imageio
- 1.5/2.0 Java
- Writing GraphicsSegments using CGM
- Writing your own DataSource for writes
- Deferring Tagged Record Extension processing (XML example)
- ImageReader Optimizations
- 2.0 C
- C
- a JPEG and putting it into an image segment as compressed data
- Our test cases currently serve the dual-purpose of also being examples for how to use the library
- Java
- You can find Java samples in the repository here∞:
- Python
- nitf_print.py∞
- Shows how to access different components of the NITF Record
- Prints all header metadata to stdout
- nitf_extract.py∞
- Shows how to read image data and save to a file
- nitf_print.py∞