Code Monkey home page Code Monkey logo

Comments (4)

graeme-winter avatar graeme-winter commented on September 3, 2024

Solved myself - should have remembered numpy array syntax:

    raw.raw_image[:,:] = raw.raw_image + black[0] - dark

from rawpy.

letmaik avatar letmaik commented on September 3, 2024

Good that you solved it. If dark is also just a scalar, then you can simply do:

raw.raw_image[:] += black[0] - dark

from rawpy.

graeme-winter avatar graeme-winter commented on September 3, 2024

Dark here is an array of same size as raw_image.

You have a place where things like this could be documented? I am happy to do so...

from rawpy.

letmaik avatar letmaik commented on September 3, 2024

Currently the place for more tutorial-like examples would be https://github.com/letmaik/rawpy-notebooks. There's no place currently for shorter code snippets. So, if you have a nice use case that involves modifying the raw bayer data, then that could become a Jupyter notebook. Before starting on that, please open an issue in that repo to discuss what it is about and whether it fits.

from rawpy.

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.