Coder Social home page Coder Social logo

Improve Science Camera Image Quality about isaac HOT 4 CLOSED

nasa avatar nasa commented on September 2, 2024
Improve Science Camera Image Quality

from isaac.

Comments (4)

kbrowne15 avatar kbrowne15 commented on September 2, 2024

Programmatically, the camera supports the following formats:

  • RAW_SENSOR (32)
  • JPEG (256)
  • PRIVATE (34)
  • YUV_420_888 (35)
  • RAW_PRIVATE (36)
  • RAW10 (37)

More information on formats can be found here

The only size supported by RAW10 is the full size images.

from isaac.

kbrowne15 avatar kbrowne15 commented on September 2, 2024

Further Trey thoughts:

My initial thought is it would be good to:

  • Set the image format to be a run-time configuration option between JPEG and RAW10, defaulting to RAW10. I don’t fully understand how DNG wrapper files work, but that seems to be the way to go for Android RAW image data.
  • Output the part of the Android CameraDevice information relevant for RAW10 data interpretation in some way (like console output). Otherwise the Bayer pattern is annoying to figure out.
  • Verify we can decode the RAW images on the ground before merging the change. (I have no doubt we can eventually figure out decoding as long as the saved images aren’t garbage. Unfortunately, I don’t trust the saved images to not be garbage, between questionable quality of the camera driver and lack of clarity on how to use the API.)

Here’s some context logic:

  • I think support for RAW10 probably implies > 8 bit depth per color channel, as we suspected, so immediately that suggests a benefit to working with RAW images in low light, if nothing else.
  • On RAW10 vs. RAW_SENSOR or RAW_PRIVATE: I assume these would all contain identical data, just possibly with different byte-order/padding. Among them, RAW10 is densely packed, which should equate to marginally smaller files.
  • On default format: Default to RAW to minimize the chance of accidentally degrading image data due to a legacy config file that doesn’t specify.

from isaac.

kbrowne15 avatar kbrowne15 commented on September 2, 2024

I decide to try RAW10 since it seemed like an easy change. However, when I ran it, an exception occurred when creating the capture builder. I didn't look into the error but my theory is Android needs a surface to display the image on and it is probably unable to display the raw image.

from isaac.

marinagmoreira avatar marinagmoreira commented on September 2, 2024

seems like this is not an easy change. closing this issue for now and possibly re-opening this later in the future

from isaac.

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.