Go Back   IceInSpace > Equipment > Software and Computers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 14-11-2014, 03:39 PM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Wrote my first PixInsight script

I just released my first PI script. It's called ColorMask (I figured that most PI users expect US spelling) and is intended to simplify colour processing. It only takes a few fairly simple steps to go from Before:

http://rickstevenson.smugmug.com/pho.../i-dhJmdZC.jpg

to After:

http://rickstevenson.smugmug.com/pho.../i-DWsWZmJ.jpg

If you're a PI user interested in more details, I posted the script and the processing steps for this example at the PI forum: http://pixinsight.com/forum/index.php?topic=7751.0

It was good fun to exercise my programming muscles after many years in management

Cheers,
Rick.
Reply With Quote
  #2  
Old 14-11-2014, 03:43 PM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Hmmm... I have no idea why the images displayed in the preview but only show as links in the final post. Attaching them here instead...
Attached Thumbnails
Click for full-size image (SHO_combine_before.jpg)
176.7 KB82 views
Click for full-size image (SHO_combine_after.jpg)
150.9 KB75 views
Reply With Quote
  #3  
Old 14-11-2014, 03:46 PM
niharika
Registered User

niharika is offline
 
Join Date: Jun 2012
Location: melbourne
Posts: 216
Nice one Rick , will be trying it out over next few days for sure.
Reply With Quote
  #4  
Old 14-11-2014, 03:57 PM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Quote:
Originally Posted by niharika View Post
Nice one Rick , will be trying it out over next few days for sure.
I hope you find it useful. Let me know if you have any feedback.
Reply With Quote
  #5  
Old 14-11-2014, 05:22 PM
SimmoW's Avatar
SimmoW (SIMON)
Farting Nebulae

SimmoW is offline
 
Join Date: Jan 2014
Location: Tamleugh, Victoria, Australia
Posts: 1,412
No purple stars! Well done Rick, bookmarked for when I eventually try NB..
Reply With Quote
  #6  
Old 14-11-2014, 07:17 PM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Quote:
Originally Posted by SimmoW View Post
No purple stars! Well done Rick, bookmarked for when I eventually try NB..
Thanks, Simon. It sorts out the magenta curse pretty well.
Reply With Quote
  #7  
Old 14-11-2014, 07:39 PM
troypiggo's Avatar
troypiggo (Troy)
Bust Duster

troypiggo is offline
 
Join Date: Nov 2008
Location: Brisbane, Australia
Posts: 4,846
Awesome!
Reply With Quote
  #8  
Old 14-11-2014, 08:05 PM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Thanks, Troy. I have to say I'm not a huge fan of JavaScript. Hopefully, they'll finish Python support soon.
Reply With Quote
  #9  
Old 14-11-2014, 10:14 PM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,045
Looks great. I'll do some processing one day!

DT
Reply With Quote
  #10  
Old 14-11-2014, 10:15 PM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,045
Any news on the PI workshop for 2015?
Reply With Quote
  #11  
Old 14-11-2014, 10:26 PM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Quote:
Originally Posted by DavidTrap View Post
Any news on the PI workshop for 2015?
Vicent is still keen but it might be a little later in the year. He is free at Easter time but I told him that probably wouldn't work too well... His last suggestion was May.
Reply With Quote
  #12  
Old 14-11-2014, 10:29 PM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Quote:
Originally Posted by DavidTrap View Post
Looks great. I'll do some processing one day!
You'll have to stop collecting data and neglecting it, David
Reply With Quote
  #13  
Old 15-11-2014, 12:06 AM
ozstronomer's Avatar
ozstronomer (Geoff)
Registered User

ozstronomer is offline
 
Join Date: Jul 2007
Location: Brisbane
Posts: 965
Nice work Rick,

Does this only work with Narrow Band images?

Geoff
Reply With Quote
  #14  
Old 15-11-2014, 12:34 AM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,045
Quote:
Originally Posted by RickS View Post
Vicent is still keen but it might be a little later in the year. He is free at Easter time but I told him that probably wouldn't work too well... His last suggestion was May.
Phew - Feb was looking a bit busy for me!

DT
Reply With Quote
  #15  
Old 15-11-2014, 03:29 AM
lazjen's Avatar
lazjen (Chris)
PI cult member

lazjen is offline
 
Join Date: Dec 2012
Location: Flaxton, Qld
Posts: 2,078
Nice work, I'll have to give this a spin sometime.
Reply With Quote
  #16  
Old 15-11-2014, 09:43 AM
codemonkey's Avatar
codemonkey (Lee)
Lee "Wormsy" Borsboom

codemonkey is offline
 
Join Date: Jul 2013
Location: Kilcoy, QLD
Posts: 2,058
Nice work Rick! Good to see another coder here too.

Quote:
Originally Posted by RickS View Post
Thanks, Troy. I have to say I'm not a huge fan of JavaScript. Hopefully, they'll finish Python support soon.
I develop web apps, and my 9-5 is entirely JS these days. Well, actually, CoffeeScript (not my decision--I wouldn't have chosen to use it, but now that I am, it does make JS feel a tiny bit less ugly). We use Angular + a touch of Node. I've never been a big fan of JS either, but you gotta pay the bills.

I like python as a language, but I can't get past __init__.py. Small thing, but it makes me feel a little dirty inside.

I've been enjoying playing around with Java lately, which I hadn't done since uni.
Reply With Quote
  #17  
Old 15-11-2014, 10:56 AM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Quote:
Originally Posted by ozstronomer View Post
Nice work Rick,

Does this only work with Narrow Band images?

Geoff
Ta, Geoff. No, it will work with any colour image. You can use the masks to create more sophisticated ones too. As an example, PixelMath star_mask*blue_mask would give you a mask targeting blue stars.

Quote:
Originally Posted by lazjen View Post
Nice work, I'll have to give this a spin sometime.
Let me know if you have any feedback, Chris.

Quote:
Originally Posted by codemonkey View Post
Nice work Rick! Good to see another coder here too.

I develop web apps, and my 9-5 is entirely JS these days. Well, actually, CoffeeScript (not my decision--I wouldn't have chosen to use it, but now that I am, it does make JS feel a tiny bit less ugly). We use Angular + a touch of Node. I've never been a big fan of JS either, but you gotta pay the bills.

I like python as a language, but I can't get past __init__.py. Small thing, but it makes me feel a little dirty inside.

I've been enjoying playing around with Java lately, which I hadn't done since uni.
I have a system & embedded programming background, Lee. C was about as high level as I used to go on a regular basis The lads at work are looking at new scripting languages and seem quite excited by Lua.

Cheers,
Rick.
Reply With Quote
  #18  
Old 15-11-2014, 11:17 AM
RobF's Avatar
RobF (Rob)
Mostly harmless...

RobF is offline
 
Join Date: Jul 2008
Location: Brisbane, Australia
Posts: 5,735
Glad to hear you've got it out Rick.
Have the PI boys discussed making it part of future distributions? (I'll have to get back on the PI forums. Expect you've outlined progress there?).

Thanks for putting this up. NB is a tall slippery mountain and I've never been able to get anywhere near the beautiful hues in your images posted in past abortive attempts in PI, and it seems to be getting progressively harder to go back into PS nowadays.
Reply With Quote
  #19  
Old 15-11-2014, 12:01 PM
RickS's Avatar
RickS (Rick)
PI cult recruiter

RickS is offline
 
Join Date: Apr 2010
Location: Brisbane
Posts: 10,584
Quote:
Originally Posted by RobF View Post
Glad to hear you've got it out Rick.
Have the PI boys discussed making it part of future distributions? (I'll have to get back on the PI forums. Expect you've outlined progress there?).

Thanks for putting this up. NB is a tall slippery mountain and I've never been able to get anywhere near the beautiful hues in your images posted in past abortive attempts in PI, and it seems to be getting progressively harder to go back into PS nowadays.
Rob,

I only just posted it to the PI Forum last night so not much feedback yet apart from a couple of folks who said they'd try it. Some of my SRO colleagues are also giving it a whirl. I'd like to think it is useful enough to include in the PI distribution but I guess we'll see.

PI already has some powerful tools for playing with colour but they are tricky to use. Being able to isolate colour ranges and work on them separately makes it a lot simpler, IMHO. The preset buttons for individual colours are intended to select a range of colours roughly approximating what Selective Color in Photoshop does.

Cheers,
Rick.
Reply With Quote
  #20  
Old 15-11-2014, 10:36 PM
lazjen's Avatar
lazjen (Chris)
PI cult member

lazjen is offline
 
Join Date: Dec 2012
Location: Flaxton, Qld
Posts: 2,078
I had a go at using the script tonight on this: http://www.iceinspace.com.au/forum/s....php?p=1133497

In particular, I used the Magenta, Cyan and Yellow masks in a similar manner to your PI forum post. Although I messed around with the options while experimenting, I think the masks used had default values (or close) in the final image process.

Overall I think it's worked well and will be something I regularly use. In fact I may revisit some of my older images and see if using this script may help.

Last edited by lazjen; 16-11-2014 at 08:05 AM. Reason: typos
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 04:21 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Advertisement
Astrophotography Prize
Advertisement
Bintel
Advertisement