Author Topic: Debayering of OSC raw images  (Read 18602 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Debayering of OSC raw images
« on: 2008 August 26 21:56:35 »
Hi,

right now I need to use Nebulosity or Fitswork to debayer raw images from my QHY-8. I would prefer if PI supported this so I can preview my images more efficiently. If I missed it somewhere please point the way :)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Debayering of OSC raw images
« Reply #1 on: 2008 August 27 12:37:25 »
Hi Sander,

Indeed we have no debayerization routine implemented in PixInsight, other than the one that has been included in the DSLR RAW file format module.

But this is going to change very soon (and you probably know why/how ;) ). Just a bit of patience...
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Debayering of OSC raw images
« Reply #2 on: 2008 August 27 13:27:07 »
That's terrific Juan!
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
deBayering for the MEade DSI-IIC
« Reply #3 on: 2009 March 28 09:28:46 »
Hi All,

If you are going to provide deBayering algorithms within PI, can you please consider also providing algorithms for the CMYG array devices, like the Meade DSI-IIC.

I have done extensive research on the problems associated with the DSI-IIC, and have an operational JavaScript routine that does work - but which needs to be 'polished' before submission.

Anyone working on this should be aware of some 'interesting' little problems presented to us by Meade - mostly due to non-conformance with the FITSIO 'standard'.

I would be happy to share information.

Regards,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Debayering of OSC raw images
« Reply #4 on: 2009 March 29 15:14:58 »
Quote
I have done extensive research on the problems associated with the DSI-IIC, and have an operational JavaScript routine that does work - but which needs to be 'polished' before submission.


Aha, now this answers my previous question in the Development forum  :lol:

I am glad to read this. You are addressing a very important task. If I can help you in any way, please let me know. I feel that you can help us more than we can help you :)

Quote
Anyone working on this should be aware of some 'interesting' little problems presented to us by Meade - mostly due to non-conformance with the FITSIO 'standard'.


This is indeed no surprise (Luc, are you reading? :) ). The FITS format has been so tortured that the words "FITS standard" often sound like an euphemism...
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Debayering of OSC raw images
« Reply #5 on: 2009 March 29 16:20:46 »
Hi Juan,

Yes, Meade 'screws up' when writing their FITS data from Envisage (ALL versions) by storing the data in the FITS file 'upside down' (i.e. they start writing from the 'top row' instead of the 'bottom row' - or vice versa, I don't have my notes to hand at the moment).

This is a CRUCIAL ERROR for anyone trying to write a deBayer routine for their RAW files - as the CFA matrix no longer corresponds with the data, unless you 'massage' the data before applying the deBayer routine.

Further, I think that there is also an issue about WHERE the CFA matrix 'starts' as far as the RAW image data is concerned - obviously one might assume that the 'top left' pixel in a RAW image corresponds to the 'top left' pixel in the CFA - but my experiments tonight (after months of suspicion) are beginning to suggest that this is NOT the case. Meade have screwed up here as well (or, at least, they have made things far more difficult for an EXTERNAL deBayer routine to be applied)

Which is a shame, because Envisage cannot reprocess RAW images whilst deBayering them at the same time, and Meade's other package, ASIP, in my experience, totally screws up the FITS header when it writes out a FITS file, rendering it all but useless for any kind of serious processing.

Like I said on my other post - the 'wheel', in this case, needs to be 'reinvented'.

I just hope I can get it done in time - before everyone abandons the otherwise very good DSI-IIC imager, in favour of the (hugely more expensive) modern devices.

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC