GithubHelp home page GithubHelp logo

Comments (6)

KelSolaar avatar KelSolaar commented on June 15, 2024

Hi @jiawen,

I could not reproduce the issue:

import colour
import colour_demosaicing

RGB = colour_demosaicing.demosaicing_CFA_Bayer_Menon2007(
    colour.read_image('mandi.tif'), 'BGGR')

colour.write_image(RGB, 'mandi_Menon2007.jpg')

Malvar (2004)
image

Menon (2007)
image

How are you invoking the function(s)?

from colour-demosaicing.

jiawen avatar jiawen commented on June 15, 2024

My apologies for the delay as I got distracted by other stuff at work. Maybe it's because I'm reading the input using skimage.io.imread() instead of colour.read_image()?

Anyway, here's the IPython notebook I was using, and this is the output from Malvar.

from colour-demosaicing.

jiawen avatar jiawen commented on June 15, 2024

I'm using colour-demosaicing 0.1.2 installed from pip on Python 3.6.

I'm not using colour.read_image() mainly because I have no idea how to easily install OpenImageIO into Anaconda without installing it system-wide.

from colour-demosaicing.

jiawen avatar jiawen commented on June 15, 2024

Output from Menon

from colour-demosaicing.

KelSolaar avatar KelSolaar commented on June 15, 2024

@jiawen : I will try to look at that over the weekend, by the mean time can you try converting the array you get from skimage.io.imread to float and maybe divide it by 255 or 65535 before passing it to demosaicing_CFA_Bayer_Menon2007?

Cheers,

Thomas

from colour-demosaicing.

KelSolaar avatar KelSolaar commented on June 15, 2024

Hi @jiawen,

I'm closing this for now, feel free to continue the discussion though.

Cheers,

Thomas

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.