Author Topic: Splotchy background after Batch Preprocessing and DBE or ABE  (Read 7356 times)

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
I've got an image which seems to resist all my attempts with DBE to get an even background. I am pretty new to PI and am wondering if I could get some help with this. The image was taken with a ZWI OSC camera and I have applied flats, darks, and bias frames. The lights are 600 seconds ea and there were 14 of them. It's an RGGB camera, and the image has an obvious green color cast to it, but that's rather easy to remove, however, after running it through DBE or ABE, the resulting image is very splotchy and I cannot seem to flatten out the background. Any tips would be appreciated.
« Last Edit: 2018 August 20 07:35:09 by alanrock »

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Splotchy background after DBE
« Reply #1 on: 2018 August 15 20:18:10 »
you'll have to upload the xisf to google drive or similar and post a link here, the only way to give advice is to work the image...

rob

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Re: Splotchy background after DBE
« Reply #2 on: 2018 August 15 20:20:55 »
Is there someplace where I can upload the image, or do I need to share it some other way?

https://drive.google.com/file/d/1ds08Rk-6CszPcTOVoKNjBAWf-9gWm0k3/view?usp=sharing
« Last Edit: 2018 August 15 20:34:24 by alanrock »

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Splotchy background after DBE
« Reply #3 on: 2018 August 15 21:33:34 »
part of the problem here is that you seem to have skipped the debayering step - you need to check "CFA images" in the BPP interface.

rob

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Re: Splotchy background after DBE
« Reply #4 on: 2018 August 16 04:03:42 »
I have not skipped that step—it’s been debayered.

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Re: Splotchy background after DBE
« Reply #5 on: 2018 August 16 06:44:50 »
Here's what the image looks like after a dynamic crop to clean up the edges and one pass of ABE.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Splotchy background after DBE
« Reply #6 on: 2018 August 16 08:32:38 »
someone else has to check me then - there's something wrong here; the image has a screen-door look which is characteristic of some kind of debayering problem.

rob

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Splotchy background after DBE
« Reply #7 on: 2018 August 16 11:27:55 »
rob

I've got the same thing as you. It looks like a debayer problem. I zoomed in 3:1 on the original and channel separated images and they all show the same thing which was expected. I also opened 2 of my own integrations with no other processing and the same zoom level. No screen-door. I tried a number of different debayering parameters on my own raw images and could not replicate the screen-door effect.

Could this be a split cfa type issue or drizzle cfa maybe? Another thought was all calibration and integration done in PI? Just throwing question out there.


Mike

Offline sharkmelley

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 241
    • Mark Shelley Astrophotography
Re: Splotchy background after DBE
« Reply #8 on: 2018 August 16 11:43:08 »
It's definitely using the wrong debayer mask for the files you have, that's why you seeing that blocky effect.  What format are your original files?  For instance with FITS there is always the confusion about whether or not the acquisition software saves them as "bottom-up" or not.  The "Up-bottom FITS" flag in the BatchPreprocessingScript can take care of that.  If you are not using BatchPreprocessing then try different combinations of debayer mask - I suggest GBRG first of all (the up-bottomed version of RGGB), then maybe GRBG, then perhaps BGGR.

Mark
« Last Edit: 2018 August 16 13:18:35 by sharkmelley »
Takahashi Epsilon 180ED
H-alpha modified Sony A7S
http://www.markshelley.co.uk/Astronomy/

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Re: Splotchy background after DBE
« Reply #9 on: 2018 August 16 13:49:29 »
Well, the camera reports it’s RGGB, so that should be correct. I’m not seeing the screen door effect that you folks are seeing. Do you see the splotchy effect I’m talking about? Some areas in the image have a red/pink tint to them.

Offline sharkmelley

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 241
    • Mark Shelley Astrophotography
Re: Splotchy background after DBE
« Reply #10 on: 2018 August 16 14:07:33 »
Quote from: alanrock
Well, the camera reports it’s RGGB, so that should be correct. I’m not seeing the screen door effect that you folks are seeing. Do you see the splotchy effect I’m talking about? Some areas in the image have a red/pink tint to them.

Yes the camera might report it is RGGB but this only works if the acquisition software has not flipped the raw data before saving it into the file.  FITS, for instance, is notorious for being flipped by some software.

What acquisition software are you using and what file format does it use?

To see the screen door effect perform a ChannelExtraction then do a ScreenTransferFunction on each channel - view them at a scale of 2:1 or more to make it more visually obvious.

Until you debayer correctly then the colours will be incorrect.  This is the problem that needs to be fixed before anything else.

Mark


« Last Edit: 2018 August 16 14:19:30 by sharkmelley »
Takahashi Epsilon 180ED
H-alpha modified Sony A7S
http://www.markshelley.co.uk/Astronomy/

Offline srecaldin

  • Newcomer
  • Posts: 7
Re: Splotchy background after DBE
« Reply #11 on: 2018 August 16 15:22:10 »
The debayer pattern for zwo cameras, I think is GRBG.

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Re: Splotchy background after DBE
« Reply #12 on: 2018 August 16 18:14:02 »
I'm using Sequence Generator Pro and it's producing FITS files.

Offline bulrichl

  • PixInsight Guru
  • ****
  • Posts: 524
Re: Splotchy background after DBE
« Reply #13 on: 2018 August 17 01:57:34 »
According to the pixel resolution (w=5496 h=3672) the camera seems to be a ASI183MC. The bayer pattern for this camera model is RGGB ( https://astronomy-imaging-camera.com/product/asi183mc-pro-color , Tab 'Specification').

I guess Mark is perfectly right: if the image is flipped vertically for some reason, the bayer pattern changes from RGGB to GBRG:

Code: [Select]
R G        G B
      ->
G B        R G

SGP was used for image acquisition(FITS files). So the correct setting in PixInsight would be 'Coordinate origin': 'Upper left corner (up-bottom)'. This has to be set in FITS format preferences (Format Explorer/FITS) and in BatchPreprocessing, if used.

Bernd


Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Re: Splotchy background after DBE
« Reply #14 on: 2018 August 17 06:10:20 »
I’ve used the up-bottom choice in Batchpreprocessing (I already was, that is). When I turned it off and left the debayering at RGGB, I got a very BLUE image, and the darks didn’t do their thing, so that wasn’t a good choice. I also switched it to GRGB and got the same as my original result. No luck here.