Author Topic: New script for denoising linear monochannel images  (Read 37728 times)

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 222
    • View Profile
    • Buckeyestargazer.net
Re: New script for denoising linear monochannel images
« Reply #105 on: 2016 February 17 16:10:38 »
Immediately after ImageIntegration, copy the info from the Process Console that ImageIntegration created.  Then open the Script Editor tab and click the "T" to create a new text file.  Paste the copied info in the right hand panel and then save it somewhere.  Very easy, even I figured it out. 
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 222
    • View Profile
    • Buckeyestargazer.net
Re: New script for denoising linear monochannel images
« Reply #106 on: 2016 February 17 16:11:26 »
A couple more screenshots
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4051
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #107 on: 2016 February 17 21:28:52 »
on osx, if you are comfortable with the terminal, you can highlight and copy what joel has shown above and then in the shell, issue the command: pbpaste > integration.txt

rob





Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1001
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #108 on: 2016 February 18 09:17:53 »
Joel and mmirot, thank you very much, Rob thanks also. Joel, I will implement your suggestion. mmirot, your suggestion remains a wish list item.

Regards,
Mike

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 864
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #109 on: 2016 February 18 19:03:06 »
Thanks Joel and Mike.

Offline dmcclain

  • PixInsight Addict
  • ***
  • Posts: 117
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #110 on: 2016 February 25 14:23:12 »
I know this isn't kosher from the math perspective... but I have had tremendous success going back over old images taken with an ATIK 490 OSC, already deBayered, registered, and integrated. Out of more than 100 such images, only one failed to show drastic improvement applying MURE denoising against the integrated stack image.

For parameters, I'm just putting in the measured gain and read noise of the sensor, treated as a mono sensor. So I'm probably not even using the correct noise setting, since you indicate earlier in the post that it should be the quadrature sum of read noise and dark current noise.

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1001
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #111 on: 2016 February 26 05:28:42 »
Ok, thanks, I recommend checking carefully for artifacts and loss of detail.

Also, version 1.15 just released as an auto update. Load button loads combination count also (thanks Joel). New note that flatfield must be bias or dark-subtracted. No other changes.

Regards,
Mike

Offline steveyzh

  • Newcomer
  • Posts: 1
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #112 on: 2016 March 11 08:28:00 »
Hello Mike,
I got this error msg, the script console shew running but no result after 15 mins.

Processing script file: C:/Users/Administrator/Desktop/MureDenoise.1.15/MureDenoise.1.15/MureDenoise/MureDenoise.js
*** Error [022]: C:/Users/Administrator/Desktop/MureDenoise.1.15/MureDenoise.1.15/MureDenoise/MainViewController.js, line 568: TypeError: console.beginLog is not a function

Steve

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1001
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #113 on: 2016 March 11 09:20:09 »
Hello Steve,

Sorry for the trouble.

This error likely is due to an attempt to run the script in an older version of PixInsight that does not support the console logging functions (beginLog/endLog/logText introduced in version 1115).

Please double check that you are running the latest version (1195 on Mac/Win, 1198 on Linux/FreeBSD). If you are running the latest version, then I am not sure what to suggest, other than to try a system reboot and a PixInsight software reinstall.

Thanks,
Mike
« Last Edit: 2016 March 11 10:07:53 by mschuster »

Offline gnomus

  • Newcomer
  • Posts: 13
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #114 on: 2016 July 10 08:02:11 »
This is a great script.  Thank you.  A friend suggested some settings for my KAF8300 chip, and these work well.  I now have a QSI 690.  Could anyone recommend some starting settings for that camera?

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1001
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #115 on: 2016 July 11 08:47:12 »
Thank you gnomus. The QSI spec here gives typical high gain 0.16 e-/DN (default), low gain 0.36 e-/DN, and read noise 3 e- RMS in high quality mode. For the script's gain value, specify one of these. For Gaussian noise in DN units, convert read noise in e- to DN by division by gain, eg either 3 / 0.16 = 18.8 DN or 3 / 0.36 = 8.3 DN.

To find a more accurate gain value for your camera, open a frame, choose File > FITS Header, choose the frame's view, and scroll through the list to find the EGAIN keyword. Use this value for the script's gain, and again divide 3 by this value to get Gaussian noise in DN.

To find a more accurate Gaussian noise value, open two good bias frames and run the script DarkBiasNoiseEstimator. Select the two views and click Estimate. Use the temporal noise value which is in DN.

As a sanity check, both EGAIN and the temporal noise value from DarkBiasNoiseEstimator should be roughly equal to the spec values (noise after division).

Best,
Mike

PS: Some vendor drivers do not include the EGAIN keyword, or the value may be generic and not specific for the camera. In this case, to find a more accurate gain value for your camera, open two well-exposed uncalibrated flat frames and one good bias (or flat-dark) frame and run the script FlatSNREstimator. Select the three views appropriately, select 20% as the foreground quantile, and click Estimate. Use the gain value which is in e-/DN units.
« Last Edit: 2016 August 01 19:21:55 by mschuster »

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1001
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #116 on: 2016 December 19 08:25:11 »
MureDenoise Version 1.18 soon to be released as an update with small denoising quality improvements.

• Exploits the decorrelation of noise at coarse wavelet scales.
• Refines the load variance scale calculation in some cases.

Thanks,
Mike

Offline Duncan

  • Member
  • *
  • Posts: 53
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #117 on: 2016 December 20 19:06:58 »
This looks great - but, dumb question: how do I install the script?

I've been searching the forum trying to figure this out but without any success. Any help much appreciated...

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1001
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #118 on: 2016 December 20 19:13:18 »
The script is part of the standard install, with the new version released in today's auto update.

In PI's menu bar Script > Noise Reduction > MureDenoise.

Thanks,
Mike

Offline Duncan

  • Member
  • *
  • Posts: 53
    • View Profile
Re: New script for denoising linear monochannel images
« Reply #119 on: 2016 December 20 19:28:21 »
Thanks for the super quick response! I guess I need to update my install...  ;)