The following question is similar, and shows how to do translation from PNG to NITF on the linux command line using GDAL:
Performing gdal translate to png/jpeg?
I need to do something similar in C++. I have thought about using Nitro, but the licensing may not be compatible with my use case. GDAL's licensing is compatible with our use case, but I cannot find anything similar to
gdal_translate in the GDAL C++ libraries. Can anyone shed some light on how I would do this?
The actual use case: Package JPEG image as NITF, and then unpackage the NITF image back to JPEG or other easily displayable format.