Author Topic: Do I need to crop before integration ?  (Read 1842 times)

Offline Julien

  • Newcomer
  • Posts: 19
Do I need to crop before integration ?
« on: 2018 December 08 07:42:52 »
Hi,

Do I need to crop (to remove black border) my aligned images before integration ? I mean, does this have any influence in the integration computations ?

Regards

Julien
« Last Edit: 2018 December 08 09:04:23 by Julien »
Julien
------------------------------------------------
www.elendil.software

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Do I need to crop before integration ?
« Reply #1 on: 2018 December 08 08:57:31 »
no - i think ImageIntegration completely ignores black pixels when computing image statistics for integration.

rob

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Do I need to crop before integration ?
« Reply #2 on: 2018 December 08 09:55:17 »
Hi Julien,

I have always considered Crop to be the first post-processing step after pre-processing. I wouldn't waste the time needed to crop individual frames - after all, if you have aligned these, then ctop them you lose the alignment anyway, and if you crop before aligning and integrating, you will syill need to crop again afterwards.

Hope this helps.
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 Julien

  • Newcomer
  • Posts: 19
Re: Do I need to crop before integration ?
« Reply #3 on: 2018 December 08 23:46:54 »
no - i think ImageIntegration completely ignores black pixels when computing image statistics for integration.

rob

That would be nice to have confirmation of that.
Julien
------------------------------------------------
www.elendil.software

Offline Julien

  • Newcomer
  • Posts: 19
Re: Do I need to crop before integration ?
« Reply #4 on: 2018 December 08 23:52:01 »
if you have aligned these, then ctop them you lose the alignment anyway

No, the alignment is not lost if I crop them with the same coordinates. On some images I will crop more than the black border, but at the end I will have no black border at all on any image
Julien
------------------------------------------------
www.elendil.software

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Do I need to crop before integration ?
« Reply #5 on: 2018 December 08 23:57:43 »
i think for sure with respect to rejection, the way II is configured by default (like when resetting the process) 0 valued pixels are rejected in the outlier algorithms. i have to read the code to find out if the normalization process ignores 0-valued pixels though. the code is on github (search pcl imageintegration).

you are right that alignment is not lost if you apply the same crop to all registered images.

in all my years of doing AP i've never heard of someone pre-cropping their subs to eliminate registration artifacts, so i tend to think it's unnecessary, but just because everyone does something one way does not necessarily make it right...

rob

Offline Julien

  • Newcomer
  • Posts: 19
Re: Do I need to crop before integration ?
« Reply #6 on: 2018 December 09 00:02:01 »
i think for sure with respect to rejection, the way II is configured by default (like when resetting the process) 0 valued pixels are rejected in the outlier algorithms.

Yes, your right. I just done a test and I can clearly see a white border on the low rejection image.
Julien
------------------------------------------------
www.elendil.software

Offline chris.bailey

  • PixInsight Addict
  • ***
  • Posts: 235
Re: Do I need to crop before integration ?
« Reply #7 on: 2018 December 09 00:35:02 »
Rather than pre-crop you can set a region of interest in II. One of my CCD's has distinct edge artefacts with narrowband filters (so called wet edges) so I tend to do II with a region of interest to remove these. Also useful when you are combining data from multiple nights or different camera setups which don't align properly. You can define the ROI from a preview so its quick and easy to see if it makes a difference. I tend to do a preliminary II run with no rejection and define the ROI on based on that.