Comments (6)
@chuck1987 What are the minimum and maximum values reported by the -mm
option:
gdalinfo.exe -mm .\11JAN15WV010400015JAN11050953-P1BS-500827961040_01_P005_________AAE_0AAAAEAQABC9.NTF
from gdal.
Band 1 Block=256x256 Type=UInt16, ColorInterp=Gray
Computed Min/Max=0.000,1268.000
Overviews: 8704x12800, 4352x6400, 2176x3200, 1088x1600, 544x800, 272x400, 136x200
Metadata:
NITF_ISUBCAT=651
Image Structure Metadata:
NBITS=11
from gdal.
Weird, the min/max reported is fine. I can't make sense why you get the "One or more pixels clipped to fit 12bit domain for jpeg output." warning. I'd need access to the input file to investigate further
from gdal.
@rouault That was the first thing I found strange, I even went as far as converting the NITF to a Byte data-type and then trying this, but I get the same warning and error. I assumed by looking at the source, that even if the maximum was greater then 12bit, then we would just clamp the value and it should still work? I was able to get the JPEG 12-bit conversion to work for more basic Single Band Byte NITFs. Any NITF I have with 11-bit JPEG2000 compression however, will not work. The file is to large to add through github, what would be the most convenient way for you to get the file?
from gdal.
The file is to large to add through github, what would be the most convenient way for you to get the file?
dropbox or equivalent file sharing services
from gdal.
The file can be downloaded from here.
https://hawk.compusult.net/gdal_jpeg12_issue.zip
from gdal.
Related Issues (20)
- Support for GML ArcByCenterPoint tag HOT 7
- Option to set CRS of an OGR Layer HOT 1
- Warning 1: PROJ: proj_create_from_database: C:\Program Files\GDAL\projlib\proj.db contains DATABASE.LAY OUT.VERSION.MINOR = 2 whereas a number >= 3 is expected. It comes from another PROJ installation. HOT 2
- Update gdalinfo -json output to support STAC EO extension 2.0
- gdalwarp and vertical transform with Nodata in the transform grid HOT 4
- DXF: cannot read SPLINE without control points HOT 6
- Date type NULL values are treated as '0000/00/00' on PostgreSQL COPY import
- SpatialReference.EPSGTreatsAsNorthingEasting missing from Java bindings HOT 6
- Issue with construction of server path on the OAPIF driver HOT 3
- OGR SQL dialect: it is not possible to set the `\` (backslash) char as the escape char with the `ESCAPE` clause
- GDAL-3.9.1 compilation error
- PDS4 files disp:horizontal_display_direction label should be taken into account.
- C++ API documentation doesn't say which header files to include HOT 1
- cmake --install installs Python bindings without RUNPATH set HOT 4
- libgdal.so.35.3.9.0: undefined reference to `PoDoFo… HOT 2
- PDF driver add trailer/EOF instructions that make them PDF/X invalid HOT 4
- NBIT creation option support for NITF JPEG2000 compression
- Heap corruption in shapefile driver HOT 1
- gdal.VectorTranslate: "No such file or directory" when converting from PostgreSQL HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdal.