Git Product home page Git Product logo

Comments (3)

rouault avatar rouault commented on June 9, 2024

The issue is that the value of the EnumCS of the colr box is 17=GreyScale. It should rather be 16=sRGB

    <JP2Box name="colr" box_offset="66" box_length="15" data_offset="74" data_length="7">
      <BinaryContent>01000000000011</BinaryContent>
      <DecodedContent>
        <Field name="METH" type="uint8" description="Enumerated Colourspace">1</Field>
        <Field name="PREC" type="uint8">0</Field>
        <Field name="APPROX" type="uint8">0</Field>
        <Field name="EnumCS" type="uint32" description="greyscale">17</Field>
      </DecodedContent>
    </JP2Box>

from openjpeg.

rouault avatar rouault commented on June 9, 2024

by the way recent versions of Kakadu also complain about that file: "Looks like the file contains an illegal channel definitions (cdef) box; trying to fix the problem so that content can still be rendered."

from openjpeg.

fmw42 avatar fmw42 commented on June 9, 2024

Agreed. It likely needs to be coded as RGB not grayscale. Also the 4th channel is coded as alpha and I think it might be an IR channel. The files are likely miscoded or they were created under an earlier definition of the format, though I suspect the former is the issue.

from openjpeg.

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.