Coder Social home page Coder Social logo

Comments (4)

KelSolaar avatar KelSolaar commented on May 23, 2024

Hi @song4me,

How are you reading the image? Is it a linear floating-point image in [0, 1] range?

Cheers,

Thomas

from colour-demosaicing.

song4me avatar song4me commented on May 23, 2024

Hi Thomas,
Thanks for your quick reply.
I read the image using colour.io.read_image and indeed got a linear floating-point image in the range of [0, 1].
I disabled the eotf_inverse_sRGB function (which was causing some of the brightness change and is not needed for me), but there's still a slight change in colors which I can't trace.

The code I'm using is the one below

IMAGE = colour.io.read_image('in.bmp')
im_out = colour_demosaicing.demosaicing_CFA_Bayer_Malvar2004(IMAGE, pattern='RGGB')
colour.io.write_image(im_out, 'out.bmp')

Thanks,
Shirley

from colour-demosaicing.

KelSolaar avatar KelSolaar commented on May 23, 2024

Hello,

Would you have an example and/or the source image?

Cheers,

Thokas

from colour-demosaicing.

song4me avatar song4me commented on May 23, 2024

Hi,
I'm attaching the input :
in
Result with opencv (for color comparison)
dbyr_opencv
Results with Malvar from the colour demosaicing lib:
dbyr_malvar
thanks

from colour-demosaicing.

Related Issues (17)

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.