Author Topic: Deconvolution  (Read 6411 times)

Offline ajbarr

  • PixInsight Old Hand
  • ****
  • Posts: 390
Deconvolution
« on: 2012 March 19 17:06:14 »
Has anyone come up with some relatively simple to follow steps to use the deconvolution tool? I've read a lot about it and I am not particularly technical. I have been experimenting with it and I either get dark rings and distortion or it doesn't seem to do the job. I've tried star masks and close masks and I am just not sure what's the best direction.

Has someone published anything at all about this for beginners?

Many thanks

Albert

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: Deconvolution
« Reply #1 on: 2012 March 19 17:14:19 »
My personal experience with decon has always been better with lunar or planetary images. Although I do know folks who can do a great job with starry fields, I am not one of those... I think that requires a lot of experience in the use of the tool.
Philip de Louraille

Offline ajbarr

  • PixInsight Old Hand
  • ****
  • Posts: 390
Re: Deconvolution
« Reply #2 on: 2012 March 19 17:22:47 »
Thanks Philip

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Deconvolution
« Reply #3 on: 2012 March 19 18:16:25 »

Offline JGMoreau

  • PixInsight Addict
  • ***
  • Posts: 131
Re: Deconvolution
« Reply #4 on: 2012 March 19 18:31:32 »
Hi Albert, i am having good results with a dynamic PSF, and a mask to protect the background.
Also on deringing part, the default 0.1 for global dark is way to high, more like 0.02 with my images.
Hope this helps.

JG Moreau

Offline ajbarr

  • PixInsight Old Hand
  • ****
  • Posts: 390
Re: Deconvolution
« Reply #5 on: 2012 March 19 18:42:48 »
JG how many samples to you usually take from dynamic psf and what settings do you use?

Thanks

Offline ajbarr

  • PixInsight Old Hand
  • ****
  • Posts: 390
Re: Deconvolution
« Reply #6 on: 2012 March 19 18:57:27 »
No matter what I try I still get black rings around the stars

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Deconvolution
« Reply #7 on: 2012 March 19 20:56:13 »
even with deringing turned on???

Offline ajbarr

  • PixInsight Old Hand
  • ****
  • Posts: 390
Re: Deconvolution
« Reply #8 on: 2012 March 20 05:35:03 »
Yes even with deringing turned on. I am sure I must have an incorrect setting but I am not quite sure what to change.

Offline ManuelJ

  • PixInsight Enthusiast
  • **
  • Posts: 88
    • ManuelJ Photography
Re: Deconvolution
« Reply #9 on: 2012 March 20 07:04:47 »
Yes even with deringing turned on. I am sure I must have an incorrect setting but I am not quite sure what to change.

Hi,

I'm in the process of writing a deconvolution tutorial. I think that it'll solve all your doubts.

Stay tunned,
Manuel.

Offline darkownt

  • PixInsight Enthusiast
  • **
  • Posts: 92
Re: Deconvolution
« Reply #10 on: 2012 March 20 07:52:09 »
Hi:

I always find it useful to experiment with the restoration tool first (which applies different kinds of deconvolution algorithms which are VERY fast) in order to get an idea what PSF to use with the deconvolution tool.

The easiest way to start is to frame a small preview of an area of interest of the main image, and use the restoration tool on the preview to experiment.  I always start with deconvolution kernals smaller than what is really needed (small standard deviations for the parametric PSF) and with a shape of 2.0.  If you start "over deconvolving" (specifying a spread which is much more than the actual spread in your image) you will get bad results from the get go, so I always start smaller than what actually is probably needed and creep up until artifacts start to appear.  A good deal of improvement can be made before artifacting.  Once you get a sense for the size and shape you can use the similar parameters in the decon tool. 

Note, varying the shape often requires variation of the standard deviation parameter, i.e. these cannot be "optimised" independently of one another...
For the restoration tool the measures of error ranges I find useful are 5 x 10e-3 to 5 x 10e-5 although this depends on the noise in your image.

Please note, for decon and restoration to work properly you should apply them on linear images before any intensity scaling for viewability.  Ideally it also should be applied to images without oversaturation of brightness (clipping).  I also find converting into 64 bit provides better results (higher precision).

When you finally go to the deconvoution tool, regularisation is very useful.

Just my 2 cents.

PS if you decide to measure the PSf with the dynamic PSF generation tool, one way to massage the generated synthetic PSF to avoid over deconvolution is to scale it slightly smaller (resize it to 100x then scale by 90% 80% 70% 60% etc. and shrink back down to 1/100).


cheers
Colin

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Deconvolution
« Reply #11 on: 2012 March 20 08:49:26 »
those are good tips. one other thing that always hits me - when using an OSC it's usually the case that your focus is not perfectly the same across all 3 channels. for me it seems that the red channel is always slightly out of focus. i need to do the DynamicPSF separately on the red channel since the PSF is obviously different. using a wrong-sized PSF on the other channels can lead to ringing problems, etc.

usually the PSF for green is good for the blue channel as well, but that's just me.

Offline ajbarr

  • PixInsight Old Hand
  • ****
  • Posts: 390
Re: Deconvolution
« Reply #12 on: 2012 March 20 09:12:51 »
Thanks guys. Manuel I can't wait to see your tutorial.

Offline JGMoreau

  • PixInsight Addict
  • ***
  • Posts: 131
Re: Deconvolution
« Reply #13 on: 2012 March 20 09:32:43 »
"JG how many samples to you usually take from dynamic psf and what settings do you use?"

15-20 samples for PSF, default values.

Lots of help on the way, great :)

JG