PDA

View Full Version here: : Lagoon Nebula comparison


sjastro
10-09-2013, 08:10 PM
While working on processing the Trifid Nebula in PixInsight I came up with a new pixel mapping function.
It is a mathematical function based on a dampened sine wave which only maps pixels in the shadow and mid tone range.

I tried it out on a luminance image of the Lagoon Nebula and the results look encouraging. Compared to an unmapped image its looks like a much deeper exposure without the star bloat and excessive noise if the image were simply over stretched.

The unmapped image is here.
http://members.iinet.net.au/~sjastro/lagoonHaNormal.jpg

The mapped image is here.
http://members.iinet.net.au/~sjastro/lagoonHa_Pixelmath.jpg

Regards

Steven

multiweb
11-09-2013, 07:04 AM
A very nice M8 with sharp details. Nice stretch too. :thumbsup:

LightningNZ
11-09-2013, 08:25 AM
I think the original is far superior sorry (as Marc said, very nice M8). The core looks all burnt out to me in the pixel mapped version and you can clearly see the background noise now coming through - at least in the JPEG anyway. Perhaps you could use it at half-strength or something so it wasn't quite so pronounced?

Cheers,
Cam

sjastro
11-09-2013, 09:40 AM
Thanks for your feedback Cam.
Here is the application of the maths at varoius iterations.

Original image.
http://members.iinet.net.au/~sjastro/LagoonPixMath/lagoonHa.jpg

One iteration.
http://members.iinet.net.au/~sjastro/LagoonPixMath/lagoonHaIt1.jpg

Two iterations.
http://members.iinet.net.au/~sjastro/LagoonPixMath/lagoonHaIt2.jpg

Three iterations.
http://members.iinet.net.au/~sjastro/LagoonPixMath/lagoonHaIt3.jpg

Regards

Steven

White Rabbit
11-09-2013, 01:38 PM
Very nice, the result looks similar to the HDR multiscale Transform module in the Pixinsight.

I like the way it makes the dark nebula pop out more.

Nice work.

LightningNZ
11-09-2013, 02:54 PM
Thanks Steven. That's a really interesting progression. Is there a way to set the sine cutoff point? The core of the lagoon and two of the "walls" of gas are quite bright compared to everything else in the image (other than the stars) and I've found the burn out very easily - as is seen with this progression.

Anything to preserve the dynamic range in the top part of the histogram.

PRejto
11-09-2013, 06:08 PM
Nice image! I think 1 iteration is quite enough - and makes the image pop just the right amount without it looking overcooked.

Peter

strongmanmike
11-09-2013, 06:19 PM
They all still look like Hommer Simpson though :question:

Great bit of tinkering Steve :thumbsup:

Mike

Bassnut
11-09-2013, 06:36 PM
1 iteration is more than fine. After that it just blows out to hell. Of the 1st 2 pics, the original is far better, the "mapped " version albiet deeper, is awefull. Im not sure this fancy mapping gear is that flash really, is it that special?.

sjastro
11-09-2013, 08:33 PM
Fred it's the challenge of doing something different.
I've never heard of type of function being used in processing and there is always the scope for improvement.



Very imaginative Mike. Homer is very apparent.
Do you see Homer in ink blot tests.:P



Thanks Peter.



Unfortunately working on the maths function won't improve the dynamic range as I can only use a narrow range of values by either by changing the multiplier of the angle in the sine term and/or altering the exponential term. The function needs to map each individual pixel to either zero or a positive value. If the mapped value is negative PixInsight will invert the pixel. When I was developing the function I had some bizarre cases where parts of the image were inverted.:)

There is a solution however. I have a developed a function where the sine term has been replaced by a -tan function. The image needs to be subjected to an even number of iterations otherwise the image is inverted. The resultant mapped image is a low contrast version that retains the information of the unmapped image.

Merging 6 iterations using this function with 3 iterations of the overcooked version with the original function, and using PixelInsights Local Histogram Equalization seems to do the trick.
The faint nebula in the background is revealed without burning out the Lagoon.

http://members.iinet.net.au/~sjastro/LagoonPixMath/lagoonHaS_Tmerge.jpg




Thanks for your comment.


I must admit as others have mentioned Marc, the number of iterations was a bit excessive.

Clear skies

Steven

White Rabbit
11-09-2013, 10:44 PM
The new one you've posted is really good.:thumbsup:

White Rabbit
11-09-2013, 10:47 PM
What was them nm of the Ha filter you used?

sjastro
12-09-2013, 12:54 AM
I used a 7 nm Ha filter.

Regards

Steven

sjastro
12-09-2013, 10:35 AM
If anyone is interested here is the summary of events.

(1) Process image normally in PixelInsight.
(2) Create a clone image.
(3) Apply 3 iterations of exp(-0.15)*sin(pi/3)x to original image.
This produces a high contrast overcooked image.
(4) Apply 6 iterations of exp(-0.15)*-tan(pi/3)x to the clone image. An even number of iterations is required otherwise the image is inverted.
This produces a very low contrast undercooked image.
(5) Merge the high and low contrast images.
(6) Apply Local Histogram Equalization (LHE) to the merged image.

The original and final image are attached.

Regards

Steven

LightningNZ
12-09-2013, 02:00 PM
Your new method is quite impressive. I think you've convinced me to buy a copy of PixelInsight!

Cheers,
Cam

sjastro
13-09-2013, 09:30 AM
Thanks Cam.

PixInsight is good enough even without the pixel maths options.

Regards

Steven

A23649
14-09-2013, 09:54 PM
Steven,

What is the actual formula you insert into Pixelmath? Is it where you have an x that you include either the normal or cloned image? And how do you set up the iteration amount? I can only really invert the clone image and then bring it back to normal. Looks like a very interesting method and I wanted to give it a go but so far I have had no success with it. If you could point me in the right direction I would really appreciate it.

Cheers,
Nathan

sjastro
15-09-2013, 08:15 AM
Hello Nathan,

I've come up with an improved formula which no longer requires the use of clone images nor two formulas.

Cut and paste the following formula into the RGB/K section of the pixel math dialogue box.

$target*exp(-0.2*$target).

$target allows you to apply pixel maths to any image opened in PixInsight.

The number of iterations is the number of times you apply the triangle icon in the dialogue box to the image.
When finished apply LHE (Local Histogram Equalization).

The following example is applying 4 iterations of the new formula followed by LHE to a previously stretched image of the Lagoon.

Regards

Steven

LewisM
18-09-2013, 05:15 PM
I tried your pixel math equation in PI on my reprocessed M8, and I do like the result.

sjastro
19-09-2013, 08:57 AM
Good to see it works for you Lewis.

Regards

Steven