Author Topic: Debayer doesn't find color information in Canon files captured with SkyX  (Read 1772 times)

Offline Steve G D

  • Newcomer
  • Posts: 6
    • View Profile
I captured many images with my Canon DSLR and the camera control feature of SkyX.
SkyX stores the DSLR images as FITS files.
I register these images with the star alignment process, which converts them to .xisf files
With 1.18.4 the single image Debayer process worked fine on these images. But in 1.18.5 it does not.
Neither will it debayer the original fits files.
Here is a copy of my process console:

Debayer: Global context

Demosaicing of 4 target files.
* Using 4 worker threads.
[000] C:/Users/SGDuffy/Pictures/Astronomy/QQQspace/Milky Way Likely/Light 1x1 00000042_r.xisf
[001] C:/Users/SGDuffy/Pictures/Astronomy/QQQspace/Milky Way Likely/Light 1x1 00000056_r.xisf
[002] C:/Users/SGDuffy/Pictures/Astronomy/QQQspace/Milky Way Likely/integration.xisf
[003] C:/Users/SGDuffy/Documents/Software Bisque/TheSkyX Professional Edition/Camera AutoSave/Imager/June 22 2017/ Light 1x1 00000042.fit

* Waiting for running tasks to terminate...

Loading target file:
C:/Users/SGDuffy/Pictures/Astronomy/QQQspace/Milky Way Likely/Light 1x1 00000042_r.xisf
Loading image: w=5202 h=3465 n=1 Gray UInt16

*** Error:
*** Error: Unable to acquire CFA pattern information: Unavailable or invalid image properties.

* Applying error policy: Continue on error.
Loading target file:
C:/Users/SGDuffy/Pictures/Astronomy/QQQspace/Milky Way Likely/Light 1x1 00000056_r.xisf
Loading image: w=5202 h=3465 n=1 Gray UInt16

*** Error:
*** Error: Unable to acquire CFA pattern information: Unavailable or invalid image properties.

* Applying error policy: Continue on error.
Loading target file:
C:/Users/SGDuffy/Pictures/Astronomy/QQQspace/Milky Way Likely/integration.xisf
Loading image: w=5202 h=3465 n=1 Gray Float32

*** Error:
*** Error: Unable to acquire CFA pattern information: Unavailable or invalid image properties.

* Applying error policy: Continue on error.
Loading target file:
C:/Users/SGDuffy/Documents/Software Bisque/TheSkyX Professional Edition/Camera AutoSave/Imager/June 22 2017/ Light 1x1 00000042.fit

*** Error:
*** Error: Unable to acquire CFA pattern information: Unavailable or invalid image properties.

* Applying error policy: Continue on error.
*** Error: No image could be demosaiced.
<* failed *>


Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4691
    • View Profile
you should be debayering the calibrated or uncalibrated images before registration. debayering after registration does not make sense...

rob

Offline Steve G D

  • Newcomer
  • Posts: 6
    • View Profile
If you look carefully at what I sent, it will not debayer the integration file, the single .xisf file, nor the original single .fit file.

Offline RobD

  • Newcomer
  • Posts: 20
    • View Profile
Is it the same problem as mine - see https://pixinsight.com/forum/index.php?topic=11308.0
Juan's suggestion worked for me.

Rob

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4691
    • View Profile
If you look carefully at what I sent, it will not debayer the integration file, the single .xisf file, nor the original single .fit file.

regardless, trying to debayer a registered+integrated file, or trying to debayer a single registered file do not make sense. no matter what you do you'll never be able to debayer those files properly.

thr problem could be as RobD says but just because debayer seemed to work on the registered files in the past does not make the output of Debayer in previous versions of PI against those files correct.

rob

Offline Steve G D

  • Newcomer
  • Posts: 6
    • View Profile
I guess I am not being clear. I can no longer debayer any image of any kind in Pixinsight 1.18.5

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7094
    • View Profile
    • http://pixinsight.com/
Hi Steve,

Quote
Neither will it debayer the original fits files.

FITS files cannot store information about CFA patterns in a standardized way. I see a 'DEBAYER' keyword in the screenshot you've posted, but this is a nonstandard keyword invented and used internally by a particular application. Our policy is to avoid relying on nonstandard metadata items generated by other applications.

So this is normal behavior. You have to select the appropriate Bayer pattern to debayer your FITS files, both in the BPP script and on the Debayer tool.

Quote
I register these images with the star alignment process, which converts them to .xisf files

As already noted on this thread, this is incorrect. Demosaicing can only be performed on calibrated raw frames.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/