Coder Social home page Coder Social logo

Comments (6)

rouault avatar rouault commented on August 26, 2024

@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.

chuck1987 avatar chuck1987 commented on August 26, 2024

@rouault

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.

rouault avatar rouault commented on August 26, 2024

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.

chuck1987 avatar chuck1987 commented on August 26, 2024

@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.

rouault avatar rouault commented on August 26, 2024

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.

chuck1987 avatar chuck1987 commented on August 26, 2024

The file can be downloaded from here.

https://hawk.compusult.net/gdal_jpeg12_issue.zip

from gdal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.