Comments (3)
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.
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.
Closing due to lack of activity.
from nightlight.
Related Issues (20)
- Mask out detected stars in background extraction
- Batch randomization is broken
- Alignment aborts with error if no stars are present, instead of skipping the frame
- HFR sometimes printed without trailing digits, making data import harder
- Export statistics as interactive HTML view
- Statistics export overwrites previous batch files in multibatch mode
- Median is off for even array sizes
- RGB color balance is off
- De-banding causes dark streaks if bright stars are present
- Add filters to remove a fraction of brightest or dimmest stars for color calibration
- Debanding still leaves some residual banding if bright stars are present; try a star mask
- Playing with datasets don’t work
- Zero values in the flat file lead to NaNs in the image, which break further processing
- New blockly version is breaking the build
- Github actions @2 failing
- Add TIFF import to allow easy integration of Starnet++ into workflows
- Allow separate reference images for alignment and for histogram matching
- Change TIFF output to uncompressed because Starnet++ cannot read compressed data
- Add gaussian blur function to smooth R, G, and B images before LRGB composition
- stack memory option disregarded
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightlight.