Jump to content

SkySurveyBanner.jpg.21855908fce40597655603b6c9af720d.jpg

Experiments with unsharp masking on data from the 22nd


Recommended Posts

I have just tried some variants of unsharp masking. In my more recent processing, I seem to have settled on a very narrow sigma, and fairly large strength in ImPPG, but others I have seen use much larger sigma, and lower strength. I tried such settings, with and without a second stage with my usual low sigma but smaller sigma than usual. The results are the following:

My standard process: sigma 1.15, strength=4.75

file.php?id=16606&mode=view

Sigma= 26.0, strength=2.5

file.php?id=16607&mode=view

Two step process: sigma= 26.0, strength=2.5, followed by sigma 1.15, strength=2.

file.php?id=16608&mode=view

The first has definitely got finer detail than the second. The third is also good, and has a bit more contrast on medium scales, but might look a bit overcooked. Not sure which is best. Opinions and comments very welcome.

Just spotted this: The latter two do have a ringing artefact along the limb. Not pleased with that, and wonder if it could be prevented easily

Link to comment
Share on other sites

I prefer the first to both of the others.  The AR looks much better to my eye, and just below the lower of the two large proms there's a tiny little prom feature that shows up much more clearly in the first than in the other two.

James

Link to comment
Share on other sites

I've cropped down the images to the feature I was talking about which is in the centre of these three (in the same order as the originals)

post-10871-0-20049200-1440493686.png   post-10871-0-68932300-1440493685.png   post-10871-0-19209600-1440493685.png

I'd say that despite the slightly reduced contrast the definition is without doubt better in the first image.

James

Link to comment
Share on other sites

It is also a setting that allows processing of surface and prom detail without change. We are currently looking into various kinds of adaptive filter at work (including variants of Perona and Malik's anisotropic diffusion) which might improve matters further. The idea is to smooth/sharpen in such a way that the signal to noise ratio is roughly constant. At the moment we are focusing on radio and optical images of galaxies, but I can foresee extensions to solar and planetary

Link to comment
Share on other sites

This is the point at which my brain starts to dribble out of my ears...

https://en.wikipedia.org/wiki/Anisotropic_diffusion#Formal_definition

James

The principle is simple enough, but the Wikipedia article dives in at the deep end a bit too much. Put FAR more simply, we can interpret the grey levels in an image as the distribution of some substance (say a luminous ink). High grey level equates to a high concentration, low grey level to a low concentration. Gaussian blurring can be seen as the result you would get if you let this luminous ink diffuse in the image plane. The longer you wait, the higher the blur factor. Apart from convolution with a Gaussian (which is the quick way to compute the result), you could compute the same result by simulating the diffusion process. This is defined by a so-called partial differential equation which states that the rate of change of the brightness of each pixel depends linearly on the second spatial derivative (or Laplacian) of the image. The Laplacian has a high magnitude near peaks and valleys, and a low magnitude in smooth regions. The strength of the diffusion is determined by the diffusion constant, which is fixed. We start with the original image and then simulate the diffusion process, getting more and more blurry images.

What Perona and Malik proposed was to replace the fixed diffusion constant with a function that is low near strong edges in the image, and high where the image shows little detail. This means flat areas with noise are smoothed rapidly, but sharp edges are left more-or-less intact.

Link to comment
Share on other sites

Ah!  It's all so obvious now :D

Actually, that does make more sense to me.  I've never been scared of maths, but I think I've reached a point where not having done any formal mathematics for (ahem) years has resulted in me being unable to follow a lot of stuff when it's just written out in symbols.

James

Link to comment
Share on other sites

I tend to agree, my older version is better. Now to get a decent GUI around my adaptive version :D

I seem to recall that you wrote it in some version of C.  If so then the Qt toolkit is worth a look, particularly because it is available on Windows, OSX and Linux.

James

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.