• Welcome to Orpington Astronomical Society.
 

News:

New version SMF 2.1.4 installed. You may need to clear cookies and login again...

Main Menu

Star colours - test image

Started by MarkS, Oct 24, 2012, 01:06:39

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkS

OK - so it took longer than I expected to produce this test image - but I'm pleased with the result.

You can find it here:
http://www.markshelley.co.uk/webdisk/star_colour_test_image.tif
Right click the link and save on your local drive

You'll find it contains 3 sets of stars white, orange and blue.  Each star is 1.4x brighter than its neighbour.  There is a muddy sky background and the RGB balance needs adjusting - as is typical for a DSLR.

In IRIS, the processing is really straightforward:
1) Open star_colour_test_image.tif
2) Hit "Auto" on the threshold dialog just to get a good idea of what's in the image.  If you don't have a threshold dialog then go to the menu View|Threshold to make it appear.  You will see a typical "muddy" colour background.
3) With the mouse draw a small rectangle on the muddy background and type "black" [return] in a command dialog. If you don't have a command line dialog then hit the icon that has the symbols "> > ====" on it to make one appear.  The "black" command sets the black point and hence removes the background colour.  Hit "Auto" on the threshold dialog again (this doesn't alter the image - it just changes the way it is displayed on the screen).  The threshold box is probably now displaying a range from 1000 to -200 and you should be able to make out all the stars and the faint "Can you read this?" boxes in the image.
4) We now need to correct the colour balance.  Draw a rectangle inside one of the unsaturated white stars at the top or inside part of the white label boxes.  Type "white" [return].  If you now hover the mouse over the white stars you will see they have a neutral mix (you can see the RGB vlaues in the bottom right of the main IRIS window).  More importantly the colour ratios for the unsaturated orange stars are R:G:B = 4:2:1 and the blue stars are 1:2:4.
5) Now we do the asinh stretching.  Go to the menu View|ColourStretching and give it a stretch of .0040.  With the threshold dialog displaying a range of up to 1000 you should now see a set of uniformly saturated white, orange and blue stars.  Very importantly, if you hover your mouse over the orange or blue stars then the colour ratios are still correct for the unsaturatd stars i.e. 1:2:4 or 4:2:1.  The asinh has not altered the colour balance of the stars.

If you prefer, at the colour stretching stage you could instead have tried a more severe stretch of .0200.  The threshold dialog wants to be around 360 to display this well.  Or enter the command "visu 360 -20" [return] in the command line dialog box.

Have fun.

Interested to know how this works in other processing suites.
I'll try PixInsight next.

For info, here's the result I got from IRIS:



Mark

MarkS

I've now tried PixInsight, and can't make it do what I want.

I do the following:
1) Open the image in PixInsight.  The ScreenTransferFunction does a good job of showing me what's in the image.
2) I use the BackgroundNeutralisation tool to set the background to black.
3) I use the ColorCalibration tool to fix the RGB balance.  I haven't quite sussed this tool so I do a Manual White Balance of  0.85:0.72:1.0

So far, so good - if I hover the mouse over the white unsaturated stars I get the correct color ratios of 1:1:1
But already the ratios for the brighter (but previously unsaturated) orange and blue stars are drifting away from or 4:2:1 or 1:2:4 They are becoming more white.

Anyway I need to do a stretch to make the fainter stars appear.  CurvesTransformation seems to be the most likely tool
so I give it a whirl in RGB/K mode.  Yes the fainter stars begin to appear but even more of the brighter stars are turning to white.  OK, ditch that, I'll try it in L (luminance) mode instead.  Similar result - the fainter stars are appearing but more and more of the others are becoming whiter and whiter.

Gave up with CurveTransformation and tried DigitalDevelopment (DDP Filter) instead.  Very similar results.

Time to give up and go to bed.




JonH

Think I'm going to give this a pop in ImageJ. Yet another piece of software I have been recommended, is free and has full 32bit capabilitys! Plus there is a Mac version! :)
Haven't a clue how to use it so this will be ideal to learn with!
Shoot for the stars, reach the tree tops!

The Thing

I've looked at this, there are astro plugins. Never could fathom it out though, it's aimed at scientists with microscopes.

JonH

Yea it's main aim is for processing images taken threw microscopes for the medical industry and analysing them, but apparently the processing technics are very similar if not the same. I'm going to be getting a lesson in using it tomorrow from a guy at work who used to teach image processing! :)

The main reason i have been pointed towards ImageJ is because you can write your own script for it in java and make it do pretty much anything you want, something else i might be getting some lessons in. Me thinks i have bitten off more than i can chew here!  :-?
Shoot for the stars, reach the tree tops!

The Thing

We'll expect a full exposition of all it's features at a future Imaging Evening  :evil:

JonH

You also wont like it when i also tell you i'm being put in touch with a guy who works up a Essex university who does this kind of stuff profecinally!  8)

Don't worry you'll all get a full story of anything useful i learn, including a copy of any code i use if wanted. I am determined to find the perfect piece of software that will do the HDR stuff i'm trying to get my head around plus all the other processing without naffing the data!
ImageJ isn't perfect, but it can be made into anything you want so i'm saying it's a good start!

The problem i have at the moment is i'm not as smart as what i am trying to do  :!
Shoot for the stars, reach the tree tops!

Mike

Mark any chance you could provide that image in an uncompressed TIFF format please?

We live in a society exquisitely dependent on science and technology, in which hardly anyone knows anything about science and technology. Carl Sagan

MarkS

Quote from: Mike
Mark any chance you could provide that image in an uncompressed TIFF format please?

Sorry - I didn't realise it was compressed!
Try this:
http://www.markshelley.co.uk/webdisk/star_colour_test_image_uncompressed.tif

Mark

RobertM

Were some of the artificial coloured stars intentionally clipped ?

MarkS

Quote from: RobertM
Were some of the artificial coloured stars intentionally clipped ?

Yes - to more closely replicate what happens in real life!

MarkS

PixInsight can now do this successfully!

Once you have performed BackgroundNeutralisation followed by ColorClibration, the trick is to use PixelMath to exactly duplicate what the IRIS asinh (colour stretch) function does.

Explanation here:
http://forum.orpington-astronomy.org.uk/index.php?topic=8723.msg60393

For this particular image I used a colour stretch parameter of "a=0.0400" which is very strong.  Followed by a rescale of 2.0 with "Rescale result" unticked.

Hovering the mouse over the unsaturated stars gives RGB readouts in the correct proportions i.e. 1:1:1 (white), 4:2:1 (orange), 1:2:4 (blue)

Result can be seen here:
http://www.markshelley.co.uk/webdisk/star_colour_pixinsight_result.jpg

Mark

RobertM

I can see what's wrong in PI.  It seems to have scaled the data incorrectly.  Taking for example the 6th brightest red star:

Before PI: R=65534, G=44228, B=15988
After Color calibration using a range of the white stars: R=53531, G=31121, B=15530 (notice the reduction in red signal.

Now after careful selection of a star with non saturated pixel values for the white reference (9th brightest white) I get R=65534,G=42526,B=15404 which looks a lot more sensible.  It's a similar story for Blue.

I think this proves that PI can do the colour calibration step properly but that is does depend a lot on having the correct information from which to do it's calculation.  Trouble is it's telling when it's correct !  This is a bit of an eye opener and means I'll have to carefully select a portion of the image with no saturated stars, either that or start using either G2V images or eXcalibrator for colour calibration in future  :-?

I'll have another go at one of my recent images based on this info and try the asinh code too (thanks for that).

Robert




MarkS

Robert,

Interesting observations on your colour calibration.

I managed to get mine to work by cheating slightly - selecting an area on one of the white text boxes!  I'll try it on one of the white unsaturated stars and see what happens (both in PI and in Iris).

It's interesting to experiment when you already know in advance what the true result should be - it does highlight limitations in process flow.

Mark

RobertM

I also used one of the white text boxes when I realised what was happening before switching over to one of the unsaturated stars and getting the same result.

I've also been comparing your Soul nebula image to mine and while I'm convinced I have more data I still can't get the richness of your star colours without making the nebula appear artificial.  This is really bugging me so I'm going back to the stacking yet again to see what's going on then follow it through step by step.

Robert