Giter Site home page Giter Site logo

Comments (3)

mlnoga avatar mlnoga commented on August 15, 2024

Hi Jörg, nightlight is a stacker at heart. So the current process is to 1. extract and stack the R channel, 2. same for G, 3. same for B, and then 4. combine the mono channels into an RGB image.

./nightlight -out outR.fits -debayer R -cfa RGGB -align 0 stack ../images/ccd_image25.fits does the first step. Then ./nightlight -out outG.fits -debayer G -cfa RGGB -align 0 stack ../images/ccd_image25.fits and ./nightlight -out outB.fits -debayer B -cfa RGGB -align 0 stack ../images/ccd_image25.fits.

Where RGGB is the color filter array sequence for your camera. If you're not sure about sequence, look at the debayered green channel first. If it still shows a mosaic, or two background histogram peaks, try another value. Once that works, look at the stacked picture and see if known red stars are indeed red. if they are blue, swap R and B in the cfa. Once you know the value for your camera, you know it for all future runs.

Finally ./nightlight -out out.fits rgb outR.fits outG.fits outB.fits.

If you regularly need this, might want to add a command like rgbsingle. However, most people tend to want to stack multiple exposures for each color channel.

Hope this helps!

from nightlight.

jkoenig72 avatar jkoenig72 commented on August 15, 2024

I understand, maybe I should have explained why I'm asking... :-)

There is this nice allsky cam project by Thomas:

https://github.com/thomasjacquin/allsky.git

Sadly this is only for ZWO cams from now, by using their SDK. I would like to replace that with some indilib client. But here you get "only" fits - mostly debayered. So I was trying to get a nice easy way of debayering those fits into good quality jpeg or png. Actually I find it hard to get some good debayering tools / examples, working on command line. Its not only the debayering, its also the histogram stretching.

Just getting an image as a fits, run some python opencv script or your tool convert into a good quality jpg - then all the rest of Thomas scrips etc. can stay same, just replacing image capturing.

So what if I take the same image 3 times? Debayermask is GBRG... would that work? I will give it a try later today.

Thanks!

Very nice project you have here.

from nightlight.

mlnoga avatar mlnoga commented on August 15, 2024

Closing due to lack of activity.

from nightlight.

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.