Author Topic: Gaussian Blur  (Read 8670 times)

Offline roberthurt

  • Newcomer
  • Posts: 3
Gaussian Blur
« on: 2009 July 16 09:21:53 »
I'm relatively new to Pixinsight but am starting to use it on our public affairs imagery for NASA's Spitzer Space Telescope in conjunction with Photoshop/FITS Liberator plugin.

One tool that I use regularly that seems to be missing from the arsenal is a simple image convolution function. Gaussians are of particular utility, as often working with infrared data it is useful to degrade the resolution of higher-res images to better match composite overlays. There are real advantages to doing this before stretching the image (which is generally not feasible in Photoshop, but would be perfect in PixInsight).

Unless there is a way to do this that I've missed, consider this my wish list item!  :)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Gaussian Blur
« Reply #1 on: 2009 July 16 09:54:22 »

Hi Robert,

welcome to PixInsight! I've never had the luxury problem of wanting to soften my image so I haven't looked for this feature yet :) There are two processes under 'Convolution', could these do what you need? I'm sure Juan or someone else with more knowledge of this subject than me will answer soon.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Gaussian Blur
« Reply #2 on: 2009 July 16 10:41:53 »
If your goal is to "soften" the image, using the ATrousWaveletTransform with layers 1+2 or so disabled is also an option.

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Gaussian Blur
« Reply #3 on: 2009 July 16 12:46:49 »
Now Thats just showing off :P

Regards Harry
Harry Page

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Gaussian Blur
« Reply #4 on: 2009 July 16 17:54:21 »
Hi Robert,

Welcome to PixInsight Forum!

Indeed we lack a basic deconvolution tool. I plan on writing one after Summer. It will be similar to the current MorphologicalTransformation tool, i.e. it will include a graphical kernel filter designer interface.

As Georg has pointed out, a wavelet transform can be used to implement an efficient low-pass filter, and is much more flexible and controllable than a convolution.

The tool of choice is ATrousWaveletTransform. Just disable several small-scale wavelet layers, as required. If you need more control, you can vary the scaling function used to perform the wavelet transform. Peaked functions (3x3 linear interpolation, 3x3 Gaussian) are better at isolating small-scale structures, so they can be used to control the achieved smoothing effect. Smooth functions (B3 Spline for example) can be used to apply more aggressive low-pass filtering.

An alternative is a script to implement a convolution, either in the spatial domain or in the Fourier domain. This is very easy to do with JavaScript in PixInsight. I'll try to write a simple script tomorrow, which can be an excellent programming example by the way.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: Gaussian Blur
« Reply #5 on: 2009 July 16 19:25:48 »
I have softened some of my images by setting the first and second tier of Atrous Wavelets ot a negative number like -0.1 or -0.2.  Do not know the math but this appears to give a gaussian type blur to my images.  Have to admit I rarely use it, sometimes with a star mask to soften the stars.
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline vicent_peris

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 988
    • http://www.astrofoto.es/
Re: Gaussian Blur
« Reply #6 on: 2009 July 17 05:34:44 »
Hi Robert,

instead of convolving your data... if you have high SNR you can try to deconvolve the lower resolution images. :)



Regards,
Vicent.

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Gaussian Blur
« Reply #7 on: 2009 September 14 06:51:47 »
See at the announcements section. GaussianBlur has been released as a new module. It is a very simple implementation, but useful. :)
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline darkownt

  • PixInsight Enthusiast
  • **
  • Posts: 92
Re: Gaussian Blur
« Reply #8 on: 2009 November 17 05:44:35 »
I'd like the "basic" convolution tool to include (in addition to the core kernal editor/matrix dialog etc.) the same tabs as the deconvolution/restoration tools.

1. Gaussian Convolution (size and shape settings etc.)
2. Motion simulation convolution... (linear)
3. External file (greyscale or color image? used to convolve the target)

I'm particularly interested in the external file capability since it allows for experimentation with various measured and simulated PSFs and thier effects on simulated or true images, and could help greatly for learning how to tune deconvolution using the same PSFs.  etc.

This also opens up the possibility of non-linear (arbitrary path) motion convolution/deconvolution testing.  Not that it matters for long exposure astronomical pics which are done right but... interesting and possibly useful.

On a side note it would really be cool to use "star test" simulated images generated from aberrator (http://aberrator.astronomy.net) on "true" images (hubble etc.), scale them down to sub million dollar astronomy magnifications and see what can be done using deconvolution and what settings are best for what kinds of aberrations (inside focus vs outside focus etc)

cheers

Colin

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Gaussian Blur
« Reply #9 on: 2009 November 17 08:15:06 »
I think that the Convolution tool will be less complex in the interphase as the other tools, so you'll have a process for each task. Gaussian blur has been already done (1.6 release will include the oficial module). Motion blur may be the next addition along with the external file one... Count with them for the next release too. I'll work again on code development this december.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: Gaussian Blur
« Reply #10 on: 2010 May 02 00:10:27 »
Gaussian blur has been already done (1.6 release will include the oficial module).

It didn't, AFAIK.    :police:  ;)


Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Gaussian Blur
« Reply #11 on: 2010 May 02 08:12:55 »
As you know, there were several things that had been left in the 1.6.0 release. Some of those finished modules, and a pair of two new ones (I already wrote and send Juan one) are supposed to be included in the 1.6.1 release. If not, prepare the flames for the riot.  >:D ;) ;)
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com