Author Topic: Batch Debayer Script Missing  (Read 3651 times)

Offline wildbillinMT

  • Newcomer
  • Posts: 7
Batch Debayer Script Missing
« on: 2017 October 17 13:37:26 »
I have not processed images for a couple of months.  I finally was able to get out last evening and captured some images.
Today I went though the normal routine of preprocessing images from my QHY 183C single shot color camera.   
After calibrating the light frames, I went to SCRIPTS, and for some reason I could no longer find the Batch Debayer routine.   It is no longer there.  What happened to it?
Now I am stuck with greyscale images and unable to proceed with processing. 
I have PI version 1.08.05.1353.
How can I batch debayer my calibrated images?
Please help.

Bill
Dead in the water in Montanahttps://pixinsight.com/forum/Smileys/default/cry.gif

Offline John Massey

  • Newcomer
  • Posts: 46
Re: Batch Debayer Script Missing
« Reply #1 on: 2017 October 17 13:46:20 »
Under the pre-processing module use the debayer function. Multiple files can be debayered there.

Offline wildbillinMT

  • Newcomer
  • Posts: 7
Re: Batch Debayer Script Missing
« Reply #2 on: 2017 October 17 14:20:18 »
OK tried that, but with no success in getting to work in a batch mode.

Questions:

1.  What Bayer/Mosaic pattern should I use for a single shot color CCD?
2. What Demosaic Method?


I load the images and select a destination folder.  I press execute and get an error message that says:

"Couldn't execute debayer instance:  There is no active image window."

So I load the images onto the workspace, then execute, but then the files still do not populate the destination folder.

This is so much more complicated than the original Batch Debayer routine.  Who changed it?  Why is it not there?

Please help.

Bill

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Batch Debayer Script Missing
« Reply #3 on: 2017 October 17 14:44:18 »
you need to understand the difference between executing a process against a view, and executing a process in the global context.

in short, you need to press the round button at the bottom, then Debayer (or any other process, like ImageIntegration) will operate on the file list rather than on a view, as that's what they do when run in the global context.

rob

Offline wildbillinMT

  • Newcomer
  • Posts: 7
Re: Batch Debayer Script Missing
« Reply #4 on: 2017 October 17 15:01:34 »
OK

Thanks Rob & John.  This is just now beginning to make sense on the batch processing side.   I got it to work in the global context. 

Now, can either of you please answer questions 1 and 2 in the previous message?

I want to be sure I am using the correct settings in this routine for a single shot color CCD.

Thanks!

Bill

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Batch Debayer Script Missing
« Reply #5 on: 2017 October 17 15:29:15 »
#1 depends on the sensor in the camera. based on google search for the sony IMX183, it looks to me like it's GBRG, or GRBG. if your input files are fits files, then due to an ambiguity in the fits spec, it could be either pattern depending on what direction the fits file was written out in. the easiest thing to do is to try to take a picture of a terrestrial scene for which you know the colors, then load and debayer the image and see if it looks right.

#2 is entirely up to you. superpixel debayering makes an image that's 1/2 the size of the sensor in each dimension; it does not try to interpolate pixels but instead just puts all the red pixels next to one another, all the blues next to one another, and averages the two greens and puts the result next together. the other methods are different variants of interpolation, where the software "makes up" a red value for each blue pixel and green pixel, a blue value for each green and red pixel, etc. so that the resultant image is the same size as the sensor.

rob

Offline Warhen

  • PTeam Member
  • PixInsight Old Hand
  • ****
  • Posts: 490
    • Billions and Billions
Re: Batch Debayer Script Missing
« Reply #6 on: 2017 October 20 04:51:39 »
The new version of the Debayer process in 1.8.5 can a. auto-detect the Bayer pattern b. apply debayering in batch.
Best always, Warren

Warren A. Keller
www.ip4ap.com