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

Offline Duncan

  • Member
  • *
  • Posts: 53
Re: New script for denoising linear monochannel images
« Reply #120 on: 2016 December 25 17:22:17 »
With everything in my installation straightened out, I've been playing with this script for a few days.

Really pretty awesome! After extracting parameters from flats and darks, it was really easy to set up and get running, and I'm extremely happy with the results. Many thanks for this...

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: New script for denoising linear monochannel images
« Reply #121 on: 2016 December 26 07:03:18 »
Thank you,
Mike

Offline samlising

  • Newcomer
  • Posts: 9
Re: New script for denoising linear monochannel images
« Reply #122 on: 2016 December 28 10:07:21 »
Mike.
I've found this script to be really useful, especially when creating large format prints. One thing I have noticed is that the script can not be used with an "image container" for batch processing. I did a little digging around in your script and found a very simple solution to add a couple of lines to MureDenoise.js file.

   if (Parameters.isViewTarget) {
      controller.setImageView(Parameters.targetView);
      controller.denoise();
      return;

   }

It seems to work, but not knowing enough about the inner workings of your script I was wondering if you could check to see if this is a good solution. If possible, it would be great to add this functionality to a future build.

Thanks for the great work.

Sam

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: New script for denoising linear monochannel images
« Reply #123 on: 2016 December 28 11:52:00 »
Hi Sam,

Thank you. Your solution seems OK for you to use as long as you are careful. Parameter sanity checking is bypassed and this could lead to trouble (e.g. if target image size doesn't match flatfield image size, etc). There might also be issues with GUI messages pausing the container processing. There may also be problems if you try to abort the processing. I will investigate and see if I can find a solution.

Thanks,
Mike

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: New script for denoising linear monochannel images
« Reply #124 on: 2016 December 29 10:04:38 »
Sam,

The next release will use your solution, along with additions to handle errors and process abort correctly. You will be able to use the script with an image container (be sure to check the process log for errors). You will also be able to drag a script instance icon directly onto a view, with one known exception (dragging the instance icon directly out of the dialog onto a view will not work due to a script API limitation).

Thanks,
Mike

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: New script for denoising linear monochannel images
« Reply #125 on: 2016 December 29 20:59:34 »
MureDenoise Version 1.19 soon to be released as an update with several usability improvements.

• "Load variance scale..." loads variance scale directly from the image selected for denoising using metadata produced by the recent ImageIntegration update. No need now for a process log .txt file, except for a legacy integration that lacks the metadata. Thank you Juan Conejero for your help.

• The script now works with image containers. Create a script instance on the workspace and drag it to an image container instance or vice versa. You may also drag the script instance on the workspace to a view. Be sure to check the process log for errors, as no GUI error messages will appear. Abort processing by clicking "Pause/Abort" in the console. Thank you Sam Lising for your solution.

• If "Generate method noise image" is enabled, the log will contain an estimate of component Poisson and Gaussian noise variance in the sky background, defined by the 10th percentile exposure. If the Gaussian noise variance contribution is less than 10%, the image can be considered "sky background noise limited".

• Improved messaging, documentation, and tooltips.

Offline samlising

  • Newcomer
  • Posts: 9
Re: New script for denoising linear monochannel images
« Reply #126 on: 2016 December 29 23:16:22 »
Hi Mike.

That was fast!!! I knew it wasn't as simple as 2 lines. Thanks very much for your support.

Sam

Offline chris.bailey

  • PixInsight Addict
  • ***
  • Posts: 235
Re: New script for denoising linear monochannel images
« Reply #127 on: 2017 January 03 05:10:41 »
The load Variance Scale from Metadata is great work Mike/Juan. A great de-noise tool just got heaps better still.

Chris

Offline hansheiser

  • Newcomer
  • Posts: 6
Re: New script for denoising linear monochannel images
« Reply #128 on: 2017 January 14 13:11:00 »
Maybe I'm blind but I can't find any file attachment or download link in the forum?

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: New script for denoising linear monochannel images
« Reply #129 on: 2017 January 14 13:40:23 »
Mure Denoise is now part of the normal PI distrubution. It was updated around the 2nd of this month with a normal PI update. There is nothing download from the forum. You can check the installed updates within PI.


Mike

Offline hansheiser

  • Newcomer
  • Posts: 6
Re: New script for denoising linear monochannel images
« Reply #130 on: 2017 January 14 13:42:01 »
Ah, okay. My last update of pixinsight was long ago ... Thank you !

Hannes

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: New script for denoising linear monochannel images
« Reply #131 on: 2017 January 26 10:50:36 »
MureDenoise Version 1.20 soon to be released as an update.

• Enabling the use gradient/noise thresholds parameter increases the adaptivity of the denoising process by incorporating interscale gradient to local noise ratio relationships into the thresholding functions. Increasing the adaptivity of the denoising process improves output quality, but also increases processing time by about 40%.

• Performance optimizations, documentation updates, stability improvements, and bug fixes.

Expect subtle quality improvements with gradient/noise thresholding, in both small gradient, non-edge and large gradient, edge regimes as well as in the transitions between them. The increase in processing time is noticable. With the option disabled expect a 10% processing time decrease in comparison to the prior released version.

Thanks,
Mike
« Last Edit: 2017 February 17 08:22:43 by mschuster »

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Re: New script for denoising linear monochannel images
« Reply #132 on: 2017 January 28 17:37:04 »
Mike,

Looking forward to the update.  Didn't comment earlier but the new "load variance scale" is a great add and has really improved the noise reduction on my images.

Thanks,

Jim
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: New script for denoising linear monochannel images
« Reply #133 on: 2017 January 29 03:06:11 »
Hi Mike and Jim,

The updates are now available, sorry for the delay. Excellent work as usual, Mike!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline mar504

  • Newcomer
  • Posts: 17
Re: New script for denoising linear monochannel images
« Reply #134 on: 2017 February 09 14:00:42 »
This script is so awesome, wonderful work!!!!