Author Topic: Batch Preprocessing not selecting correct debayer matrix  (Read 5331 times)

Offline blinky

  • Member
  • *
  • Posts: 67
I have a QHY8 and have confirmed that GBRG is the correct debayer matrix by doing a debayer on a single FIT from the camera.  If I select this as the debayer method in the Batch Preprocessing script it does not produce the correct output.

Offline blinky

  • Member
  • *
  • Posts: 67
Re: Batch Preprocessing not selecting correct debayer matrix
« Reply #1 on: 2012 August 15 15:41:39 »
It seems as though it is ignoring the selection and is always selecting the first option in the debayer list - RGGB

Offline blinky

  • Member
  • *
  • Posts: 67
Re: Batch Preprocessing not selecting correct debayer matrix
« Reply #2 on: 2012 August 21 04:48:08 »
Is there no feedback on this bug report? I would have expected some form of awknoledgement or workaround if it's not a bug. As far as I know there is still no official user manual for Pixinsight so this forum is the only official way to get help, when posting a potential bug I would have thought a reply would have been in order?

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Batch Preprocessing not selecting correct debayer matrix
« Reply #3 on: 2012 August 21 09:19:50 »
i think juan may have been on vacation, hopefully he will notice the thread having new replies.

Offline blinky

  • Member
  • *
  • Posts: 67
Re: Batch Preprocessing not selecting correct debayer matrix
« Reply #4 on: 2012 August 21 10:49:19 »
Ah, OK np, will hopefully get a reply soon then. :)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Batch Preprocessing not selecting correct debayer matrix
« Reply #5 on: 2012 August 21 10:52:43 »
This is probably a FITS orientation issue. If you haven't changed it, the default FITS orientation is bottom-up in PixInsight: The origin of coordinates is at the bottom left corner of the image, X coordinates grow from left to right, and Y coordinates grow from bottom to top. This is the standard orientation used for FITS images generated with professional equipment and acquisition software.

Unfortunately, most amateur image acquisition software generates FITS images with the up-bottom orientation: Origin at the top left corner, X grows from left to right and Y grows from top to bottom. If the orientation that you have selected for FITS images is not up-bottom, then your CFA raw frames won't be deBayered correctly.

To select the up-bottom FITS orientation:

1. Open the Format Explorer window.

2. Double click the FITS item on the left panel.

3. On the FITS Format Preferences dialog, Miscellaneous Options section, select Coordinate origin = Upper left corner.

4. Click OK.

Now open one of your raw frames and find the correct Bayer pattern to deBayer it. This is the same pattern that you should select in the BatchPreprocessing script. Note that the BatchPreprocessing script automatically forces the up-bottom FITS orientation by default (irrespective of the global FITS Preferences).

Let me know if it works as expected this time. The FITS support module included in the incoming version 1.8 of PixInsight uses the up-bottom orientation by default. Hopefully this will prevent these problems in the future (but then all professionals will complain, of course...).

Rob: Actually, I am working on PI 1.8 full time during my (supposed) vacation time. We *really* need a 1.8 release in September, so no vacation this year.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Batch Preprocessing not selecting correct debayer matrix
« Reply #6 on: 2012 August 21 12:13:28 »
Hi

the short answer is
1) de select the "up bottom" box in the script and all will be ok as long as you have not altered the default in the fits preferance  :-*

As I have said many many times  >:D I do not understand why Pi would use 2 different default settings --- I know its just to keep up the " Pixinsight is difficult to use " rumour  :o :yell: and confuse us all ( well me any way )

Regards Harry
Harry Page

Offline blinky

  • Member
  • *
  • Posts: 67
Re: Batch Preprocessing not selecting correct debayer matrix
« Reply #7 on: 2012 August 29 12:42:03 »
Thanks for that guys - got it working now!