Author Topic: PCL: CosmeticCorrection module  (Read 8557 times)

DarrenS

  • Journeyman
  • *
  • Posts: 32
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #15 on: 2011 October 29 09:22:48 »
Thanks Nikolay,
real time preview is a nice addition.  :)

NKV

  • PixInsight Old Hand
  • ****
  • Posts: 561
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #16 on: 2011 November 11 16:53:22 »
Module updated to ver 1.0.3.0002.
Not important changes. Log in post #1.

Best regards,
Nikolay.

jtheios

  • Newbie
  • Posts: 20
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #17 on: 2011 November 12 01:22:47 »
Thanks Nikolay,
real time preview is a nice addition.  :)
Absolutely. A very nice piece of work. Thanks!

oldwexi

  • PixInsight Addict
  • ***
  • Posts: 168
    • View Profile
    • Astronomy Pages G.W.
Re: PCL: CosmeticCorrection module
« Reply #18 on: 2011 November 14 14:50:19 »
Hi Nikolay!
I dont have darks with my QHY8. It has only a few hotpixels so no dark processing
needed only hotpixel removal.
Your routine looks great but does not allow me to work without darks.
I created in PI  a fake dark (black image). Now it runs,  but does
only softening of the image -  CFA checked or unchecked.

Is this again a user error or is working with no dark or fake dark a nogo?

Aloha
Gerald

NKV

  • PixInsight Old Hand
  • ****
  • Posts: 561
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #19 on: 2011 November 14 16:39:58 »
Hello Gerald,
It's because absolute zero pixel (value 0.0) interpreted as Bad pixel.
Just add some pedestal in each pixel of the "fake dark". You can do it via PixelMath $T+0.1.
Don't forget to disable "Rescale result".

Also, for "fake dark" there are special tool "DefectMap".

Best regards,
Nikolay.

oldwexi

  • PixInsight Addict
  • ***
  • Posts: 168
    • View Profile
    • Astronomy Pages G.W.
Re: PCL: CosmeticCorrection module
« Reply #20 on: 2011 November 14 22:30:39 »
Thanks Nikolay!
Thanks for a great tool and your fast help!
Aloha
Gerald

Philippe B.

  • PixInsight Addict
  • ***
  • Posts: 263
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #21 on: 2012 February 03 16:36:15 »
Dear PI develop team

This PCL cosmetic correction module is better than the script included in actual PI release  because we can see the effect by moving the cursors in preview mode.
I tested it on my win 32 bits computer but at home, all my process are done under OSX 64 bits PI version.
Is it possible to include this module in the next release version (all platform) or sooner by an update ?

Thank you very much

Cheers
Philippe
 

http://www.pixinsight.fr : my french Pixinsight tutorial website
http://www.astroccd.eu : my website

NKV

  • PixInsight Old Hand
  • ****
  • Posts: 561
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #22 on: 2012 February 07 19:38:40 »
v.1.1.0
+Auto Detect hot/cold defective pixel without MasterDark. PixelMath RemoveBadPixels.xpsm in attachment.
+Show DefectivMap in Real-Time Preview. And Show Inverted DefectivMap.
+Snapshot of Real-Time Preview in real size of sources image or defined Preview. Useful for generate DefectiveMap file.

Note: you can use both method ( with and without MasterDark ) in one pass.
So, if you have fresh MasterDark - use MasterDark.
If you have old MasterDark and you think in your CCD there are new defective pixels, which not so bright in the old MasterDark  - use the MasterDark plus Auto Detect method.

Anyway, you can control all process in Real-Time Preview and via Snapshot.

Best regards,
Nikolay.

NKV

  • PixInsight Old Hand
  • ****
  • Posts: 561
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #23 on: 2012 February 08 10:36:02 »
I found much better PixelMath method. See attachment.

Philippe B.

  • PixInsight Addict
  • ***
  • Posts: 263
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #24 on: 2012 February 08 13:22:42 »
I found much better PixelMath method. See attachment.


Thanks !!!

Made some tests but on small stars (fwhm = 1.0 to 1.1 pixels), the PixelMath removes center pixel  :'(

Best
« Last Edit: 2012 February 08 13:43:21 by Philippe B. »
http://www.pixinsight.fr : my french Pixinsight tutorial website
http://www.astroccd.eu : my website

NKV

  • PixInsight Old Hand
  • ****
  • Posts: 561
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #25 on: 2012 February 13 06:27:26 »
Made some tests but on small stars (fwhm = 1.0 to 1.1 pixels), the PixelMath removes center pixel  :'(
You are right. A under-sampled images is big problem. Some times very difficult to understand which pixel are star and which are hot pixel.

Anyway, I write more complex method to sort star/hot pixels. The method is very slowly. Sorry for that.
The method avoids to search a bad pixels in center of stellar object.

Please test attached PixelMach with your images.

Best regards,
Nikolay.

Philippe B.

  • PixInsight Addict
  • ***
  • Posts: 263
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #26 on: 2012 February 13 13:14:43 »
Thanks Nikolay
Result is much better but less pixel defect are corrected

In fact, I really like your PCL version of CosmeticCorrection
There is source code but as I'm not programmer, it is difficult for me to include it for OSX 64 version

Maybe we could ask Juan to include it in the next release ?  Juan, if you listen to us  :angel:
http://www.pixinsight.fr : my french Pixinsight tutorial website
http://www.astroccd.eu : my website

NKV

  • PixInsight Old Hand
  • ****
  • Posts: 561
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #27 on: 2012 February 13 14:57:10 »
Maybe we could ask Juan to include it in the next release ?  Juan, if you listen to us  :angel:
First, I should solve a under-sampled images problem. After that, I will ask Juan to test the code.

But current version is not ready to be in standard PI distribution. Sorry for that, and please wait.

Best regards,
Nikolay.

NKV

  • PixInsight Old Hand
  • ****
  • Posts: 561
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #28 on: 2012 February 20 16:15:13 »
Next one.
v 1.1.0. build 2
+ STF Inverted together with image. Explanation in the thread PCL: STF in RTP
+ Calculate Hot/Cold in RTP area.
+ AutoDetection threshold slider in Average Deviation.

RTP and main Engine rewritten. Now Auto Detection method more stable detect hot/cold pixels, especially in under sampled images. ;)
Of course  much slowly... because Auto Detection calculate local background, average neighbor and median neighbor data for every pixel. All calculation doing via MorphologicalTransformation with BitmapStructure.

Best regards,
Nikolay.

Philippe B.

  • PixInsight Addict
  • ***
  • Posts: 263
    • View Profile
Re: PCL: CosmeticCorrection module
« Reply #29 on: 2012 February 21 13:58:22 »
Nikolay
I just tested your new x86/x64 version !
I really love it  :-*

In fact, "autodetect defective pixels" only selected with sigma of 3.0 does the job at 99%  :D
RTP is a "plus" to see what are the best settings
I will try to do more tests on other images (but I really prefer working under OSX64  >:D )

Very nice work, thank you very much !

http://www.pixinsight.fr : my french Pixinsight tutorial website
http://www.astroccd.eu : my website