Colour distortion through not applying SC flats properly

Anything that doesn't fit into any of the other forums
Post Reply
timh
Posts: 691
Joined: Mon Aug 26, 2019 5:50 pm

Colour distortion through not applying SC flats properly

#1

Post by timh »

PS. JUST FOR CLARITY AND IN THE INTEREST OF REMOVING MISLEADING INFORMATION I WOULD LIKE TO RETRACT THE CLAIM BELOW THAT - DURING CALIBRATION IN PIXINSIGHT USING GRAY-SCALE OSC FLATS GENERATED IN SC - TICKING THE BOX IN PI TO SEPARATE OUT OSC FLATS INTO CHANNELS MAKES A SIGNIFICANT DIFFERENCE TO THE COLOUR CAST OF THE EVENTUAL IMAGE OBTAINED EVEN POST COLOUR CALIBRATION. IT DOESN'T.

Several more careful experiments and reading of threads on the topic have since convinced me that (at least for several sets of my data) ticking the box or not actually makes no discernible difference. The green caste of the picture below must have been because of some unrelated undefined mistake in my processing. cf


PixInsight's Flat field correction with data of OSC cameras | PixInsight Forum


There is no harm in ticking the box and having it ticked is the default option in PI -- but neither is it really a mistake to untick it.

-----------------------------------------------------------------------------------------------------

I normally prepare master flats for my OSC camera using Sharpcap because it is convenient and works well. However I learned yesterday through a conversation with Andrea Tasselli on Astrobin that I had been applying these flats incorrectly during calibration.

I just thought that I would post this story up in case anyone else has been making the same error.

In PixInsight - and doubtless in other equivalent programs there is a tick box option for whether the master flat should be split into the 3 channels (according to the CFA). I had not ticked it which is a mistake. Herewith two pictures of M33 --one with a decidedly green cast still and even after applying background correction spectrophotometric colour correction and the other - done correctly - with the box ticked.

The effect of 'doing it wrong' is not always quite so noticeable -- but on this occasion with my flat made under a rather blue sky it really was.
Attachments
RECAL_M33_drizzle_X1_integration_GRAD_model1_DBE_SPCC_BTXCORR_S0.5_NS0.5_tran_EXP_arcsinh_curves_NoiseXt0.36_affinity_small.jpg
RECAL_M33_drizzle_X1_integration_GRAD_model1_DBE_SPCC_BTXCORR_S0.5_NS0.5_tran_EXP_arcsinh_curves_NoiseXt0.36_affinity_small.jpg (861.62 KiB) Viewed 715 times
M33drizzle_integration_GRad_model2_DBE_SPCC_crop1_BXTCORR_S0.5_NS0.5_tran_arcsinh_curves_noiseXtgreen_small.jpg
M33drizzle_integration_GRad_model2_DBE_SPCC_crop1_BXTCORR_S0.5_NS0.5_tran_arcsinh_curves_noiseXtgreen_small.jpg (795.25 KiB) Viewed 715 times
Last edited by timh on Mon Jan 20, 2025 5:13 pm, edited 3 times in total.
User avatar
admin
Site Admin
Posts: 17592
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Colour distortion through not applying SC flats properly

#2

Post by admin »

Hi Tim,

interesting - not something I knew about. Out of interest, how do you create your flats in SharpCap? There is a checkbox in the flat tool to create a monochrome flat when using a colour camera, and I usually would recommend using that option. I was thinking that if the flat has been converted to mono in SharpCap then the PixInsight option would have no effect (probably) since all 3 channels would be basically the same.

cheers,

Robin
timh
Posts: 691
Joined: Mon Aug 26, 2019 5:50 pm

Re: Colour distortion through not applying SC flats properly

#3

Post by timh »

Hi Robin,

I usually use a white shirt stretched over the tube and pick a high azimuth spot in in the sky that looks homogenous and likely to stay that way for a while.

I then use the histogram to set a suitable gain and exposure (short - don't bother with bias or darks for flats usually) - go into capture menu - set Sharpcap to collect say 500 x 20ms flats and then just let it average them and produce a grey-scale master flat (i.e. I do tick the Sharpcap box). Flats produced this way from an OSC camera seem to work fine in PixInsight = but with the caveat that you tick the box to separate out the CFA scaling factors. I hadn't thought about this aspect at all before but I suppose that as long as the matrix - RGGB - is defined then PI knows which particular pixels of the grey-scale master flat belong to which channel. Ticking the box certainly made a difference to the eventual result after calibration. I suspect --and looking at the 3 colour positions on the histogram confirmed - that last time I made a flat there was a preponderance of blue and so in this particular case the correct scaling for blue was likely significantly different than for red and green - and so the effect of only using an average rather than channel differentiated scaling greater than usual on this occasion?
User avatar
admin
Site Admin
Posts: 17592
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Colour distortion through not applying SC flats properly

#4

Post by admin »

Hi,

ah, OK, thanks.

So since you have ticked the SharpCap mono box there is no colour information in the flat frame, but maybe (speculation here) PixInsight is doing something clever to try to reduce the effect of noise in the flat frames on the final image - that would require separate processing of the CFA colours even with a monochrome flat I think.

Anyway, even if we don't know the exact reason, knowing that it works is good enough :)

cheers,

Robin
timh
Posts: 691
Joined: Mon Aug 26, 2019 5:50 pm

Re: Colour distortion through not applying SC flats properly

#5

Post by timh »

Hmm.. you have now though made me wonder what would happen if I didn't tick the Sharpcap box? I never trust experiments that I have only carried out once although this did look like a clear result so I might try looking at it more systematically
timh
Posts: 691
Joined: Mon Aug 26, 2019 5:50 pm

Re: Colour distortion through not applying SC flats properly

#6

Post by timh »

Hi Robin, I have amended my statement at the top of the thread since my original claim was plain wrong - on careful reinvestigation and further reading it is not correct that splitting out the gray-scale flat into channels during calibration should or does have an impact on the final colour balance of images after colour calibration. Maybe the thread could be removed?

Tim
User avatar
admin
Site Admin
Posts: 17592
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Colour distortion through not applying SC flats properly

#7

Post by admin »

Hi Tim,

thanks for updating the first post with your latest findings - let's leave the thread in place as it now makes it very clear that this particular option isn't key to the processing, so might just help someone trying to work out flat related problems at a later data.

cheers,

Robin
Post Reply