Go Back   IceInSpace > Images > Deep Space
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 10-09-2013, 08:10 PM
sjastro's Avatar
sjastro
Registered User

sjastro is offline
 
Join Date: Jun 2007
Posts: 2,926
Lagoon Nebula comparison

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..._Pixelmath.jpg

Regards

Steven
Attached Thumbnails
Click for full-size image (lagoonHa_Normal.jpg)
195.0 KB76 views
Click for full-size image (lagoonHa_Pixelmath.jpg)
118.1 KB82 views
Reply With Quote
  #2  
Old 11-09-2013, 07:04 AM
multiweb's Avatar
multiweb (Marc)
ze frogginator

multiweb is offline
 
Join Date: Oct 2007
Location: Sydney
Posts: 22,062
A very nice M8 with sharp details. Nice stretch too.
Reply With Quote
  #3  
Old 11-09-2013, 08:25 AM
LightningNZ's Avatar
LightningNZ (Cam)
Registered User

LightningNZ is offline
 
Join Date: Oct 2011
Location: Canberra
Posts: 951
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
Reply With Quote
  #4  
Old 11-09-2013, 09:40 AM
sjastro's Avatar
sjastro
Registered User

sjastro is offline
 
Join Date: Jun 2007
Posts: 2,926
Quote:
Originally Posted by LightningNZ View Post
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
Thanks for your feedback Cam.
Here is the application of the maths at varoius iterations.

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

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

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

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

Regards

Steven
Attached Thumbnails
Click for full-size image (lagoonHaRed.jpg)
145.5 KB23 views
Click for full-size image (lagoonHaRedIt1.jpg)
180.5 KB30 views
Click for full-size image (lagoonHaRedIt2.jpg)
155.6 KB21 views
Click for full-size image (lagoonHaRedIt3.jpg)
172.9 KB17 views
Reply With Quote
  #5  
Old 11-09-2013, 01:38 PM
White Rabbit's Avatar
White Rabbit
Space Cadet

White Rabbit is offline
 
Join Date: Feb 2007
Location: Sydney
Posts: 1,411
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.
Reply With Quote
  #6  
Old 11-09-2013, 02:54 PM
LightningNZ's Avatar
LightningNZ (Cam)
Registered User

LightningNZ is offline
 
Join Date: Oct 2011
Location: Canberra
Posts: 951
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.
Reply With Quote
  #7  
Old 11-09-2013, 06:08 PM
PRejto's Avatar
PRejto (Peter)
Registered User

PRejto is offline
 
Join Date: Jan 2011
Location: Rylstone, NSW, Australia
Posts: 1,398
Nice image! I think 1 iteration is quite enough - and makes the image pop just the right amount without it looking overcooked.

Peter
Reply With Quote
  #8  
Old 11-09-2013, 06:19 PM
strongmanmike's Avatar
strongmanmike (Michael)
Highest Observatory in Oz

strongmanmike is offline
 
Join Date: May 2006
Location: Canberra
Posts: 17,175
They all still look like Hommer Simpson though

Great bit of tinkering Steve

Mike
Reply With Quote
  #9  
Old 11-09-2013, 06:36 PM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,064
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?.
Reply With Quote
  #10  
Old 11-09-2013, 08:33 PM
sjastro's Avatar
sjastro
Registered User

sjastro is offline
 
Join Date: Jun 2007
Posts: 2,926
Quote:
Originally Posted by Bassnut View Post
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?.
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.

Quote:
Originally Posted by strongmanmike View Post
They all still look like Hommer Simpson though

Great bit of tinkering Steve

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

Quote:
Originally Posted by PRejto View Post
Nice image! I think 1 iteration is quite enough - and makes the image pop just the right amount without it looking overcooked.

Peter
Thanks Peter.

Quote:
Originally Posted by LightningNZ View Post
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.
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...HaS_Tmerge.jpg


Quote:
Originally Posted by White Rabbit View Post
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.
Thanks for your comment.
Quote:
A very nice M8 with sharp details. Nice stretch too
I must admit as others have mentioned Marc, the number of iterations was a bit excessive.

Clear skies

Steven
Attached Thumbnails
Click for full-size image (lagoonHaS_Tmerge.jpg)
166.0 KB17 views

Last edited by sjastro; 12-09-2013 at 12:53 AM. Reason: More accurate description
Reply With Quote
  #11  
Old 11-09-2013, 10:44 PM
White Rabbit's Avatar
White Rabbit
Space Cadet

White Rabbit is offline
 
Join Date: Feb 2007
Location: Sydney
Posts: 1,411
The new one you've posted is really good.
Reply With Quote
  #12  
Old 11-09-2013, 10:47 PM
White Rabbit's Avatar
White Rabbit
Space Cadet

White Rabbit is offline
 
Join Date: Feb 2007
Location: Sydney
Posts: 1,411
What was them nm of the Ha filter you used?
Reply With Quote
  #13  
Old 12-09-2013, 12:54 AM
sjastro's Avatar
sjastro
Registered User

sjastro is offline
 
Join Date: Jun 2007
Posts: 2,926
Quote:
Originally Posted by White Rabbit View Post
What was them nm of the Ha filter you used?
I used a 7 nm Ha filter.

Regards

Steven
Reply With Quote
  #14  
Old 12-09-2013, 10:35 AM
sjastro's Avatar
sjastro
Registered User

sjastro is offline
 
Join Date: Jun 2007
Posts: 2,926
Summary

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
Attached Thumbnails
Click for full-size image (lagoonHaRed.jpg)
145.5 KB17 views
Click for full-size image (lagoonHaRedSin_Tan_merge.jpg)
197.7 KB21 views
Click for full-size image (dampening_curve4.jpg)
62.8 KB19 views
Reply With Quote
  #15  
Old 12-09-2013, 02:00 PM
LightningNZ's Avatar
LightningNZ (Cam)
Registered User

LightningNZ is offline
 
Join Date: Oct 2011
Location: Canberra
Posts: 951
Your new method is quite impressive. I think you've convinced me to buy a copy of PixelInsight!

Cheers,
Cam
Reply With Quote
  #16  
Old 13-09-2013, 09:30 AM
sjastro's Avatar
sjastro
Registered User

sjastro is offline
 
Join Date: Jun 2007
Posts: 2,926
Quote:
Originally Posted by LightningNZ View Post
Your new method is quite impressive. I think you've convinced me to buy a copy of PixelInsight!

Cheers,
Cam
Thanks Cam.

PixInsight is good enough even without the pixel maths options.

Regards

Steven
Reply With Quote
  #17  
Old 14-09-2013, 09:54 PM
A23649's Avatar
A23649 (Nathan)
I've told you once.

A23649 is offline
 
Join Date: Sep 2010
Location: Canberra, Australia
Posts: 133
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
Reply With Quote
  #18  
Old 15-09-2013, 08:15 AM
sjastro's Avatar
sjastro
Registered User

sjastro is offline
 
Join Date: Jun 2007
Posts: 2,926
Quote:
Originally Posted by A23649 View Post
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
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
Attached Thumbnails
Click for full-size image (lagoonHaRed_Before.jpg)
195.3 KB17 views
Click for full-size image (lagoonHaRed_After.jpg)
200.0 KB21 views
Click for full-size image (x_expx_curve.jpg)
47.2 KB13 views
Reply With Quote
  #19  
Old 18-09-2013, 05:15 PM
LewisM's Avatar
LewisM
Novichok test rabbit

LewisM is offline
 
Join Date: Aug 2012
Location: Somewhere in the cosmos...
Posts: 10,388
I tried your pixel math equation in PI on my reprocessed M8, and I do like the result.
Attached Thumbnails
Click for full-size image (M8 IIS.jpg)
160.3 KB24 views
Reply With Quote
  #20  
Old 19-09-2013, 08:57 AM
sjastro's Avatar
sjastro
Registered User

sjastro is offline
 
Join Date: Jun 2007
Posts: 2,926
Good to see it works for you Lewis.

Regards

Steven
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 07:55 PM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement
Testar
Advertisement