It is currently Mon Jul 22, 2024 2:38 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: startrail plugin
PostPosted: Wed Apr 20, 2011 2:12 am  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
a new stairtrail python plugin , the author would be glad to have some feedback l
for the the code and more info
http://code.google.com/p/gimp-startrail-compositor/

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: startrail plugin
PostPosted: Wed Apr 20, 2011 10:37 am  (#2) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
I don't know what to use as frames. I made two, one for the light folder and one for the dark folder using a gradient. The images are the same. I got a black image.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: startrail plugin
PostPosted: Wed Apr 20, 2011 11:54 am  (#3) 
Offline
New Member

Joined: Apr 20, 2011
Posts: 4
Location: Surrey UK
Hi the plug-ins goal is to auto stack star trail images so you get a nice streak across the sky. The Light frames are added using lighten and dark frames using difference. The light frames are the shots of the sky with long exposure times of around 30s. Over this amount of time you can start to see the rotation of the earth, so the stars appears as short lines. Dark frames are taken with the same settings and in the same ambient conditions as the light but with the lens cap on so as to create an image of the sensor noise. By stacking 139 of them all you get something like:

Image

The plugin first creates a black image so when you layer over the light frames with lighten you are starting from nothing as it where. The dark frames are then differenced to help reduce the noise and any hot pixels from the image.

If no images are found to layer you just get the black starter image. One of my todos is to count layers as they are added and then warn if none are found. What image extensions did you use as there's a white list of image types so I don't try open a non image file and crash out. The list is currently jpg, jpeg, tiff, tif, bmp and png.


Top
 Post subject: Re: startrail plugin
PostPosted: Wed Apr 20, 2011 1:37 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14715
Location: USA
Very cool - thanks for sharing the script with us.
Welcome to Gimp Chat by the way. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: startrail plugin
PostPosted: Wed Apr 20, 2011 3:56 pm  (#5) 
Offline
New Member

Joined: Apr 20, 2011
Posts: 4
Location: Surrey UK
Thanks, while the actual code is fairly simple and didn't take long it took me hours to get it working at all as the main python documentation register command simply didn't work. It was only once I found the templates I got it working then added in all my code. Seems the documentation is due an update.


Top
 Post subject: Re: startrail plugin
PostPosted: Thu Apr 21, 2011 3:11 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14715
Location: USA
Now i just have to get off my lazy hind end and take some night images. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: startrail plugin
PostPosted: Thu Apr 21, 2011 10:02 am  (#7) 
Offline
New Member

Joined: Apr 20, 2011
Posts: 4
Location: Surrey UK
After spending my lunch reading up I have realised I am dealing with the dark frames completely wrong :oops:

Made a start on updating the code to do it properly and also had a go at removing the need to specify width and height.

Question: how do I average a set of frames? Do I just add each new layer at half the opacity of the last? So 1st 100% 2nd 50% 3rd 25 etc. Ideally I'd use median to bin outliers but that's more complex than I fancy working out!


Top
 Post subject: Re: startrail plugin
PostPosted: Thu Apr 21, 2011 1:37 pm  (#8) 
Offline
New Member

Joined: Apr 20, 2011
Posts: 4
Location: Surrey UK
All done, 1.2 release now on google code :bigthup


Top
 Post subject: Re: startrail plugin
PostPosted: Thu Apr 21, 2011 3:14 pm  (#9) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
cpearson wrote:
Question: how do I average a set of frames? Do I just add each new layer at half the opacity of the last? So 1st 100% 2nd 50% 3rd 25 etc. Ideally I'd use median to bin outliers but that's more complex than I fancy working out!


not sure but if to add white frames lighten only works well, it was no possible do the opposite for the darkframes using darken only ?

I hope is not a too dumb question i found hard read the code (not your in particular , just in general :roll: ) where maybe is evident why is needed another solution

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: startrail plugin
PostPosted: Thu Apr 21, 2011 5:42 pm  (#10) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
cpearson wrote:
It was only once I found the templates I got it working then added in all my code. Seems the documentation is due an update.


I'll say! I had to search the information around the web from different sources... The official gimp python documentation is quite lacking. I had to patch together stuff from the script-fu specs, procedure database, other scripts, etc. before I got a good understanding of gimp-python...


Top
 Post subject: Re: startrail plugin
PostPosted: Thu Apr 21, 2011 6:31 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
cpearson wrote:
After spending my lunch reading up I have realised I am dealing with the dark frames completely wrong :oops:

Made a start on updating the code to do it properly and also had a go at removing the need to specify width and height.

Question: how do I average a set of frames? Do I just add each new layer at half the opacity of the last? So 1st 100% 2nd 50% 3rd 25 etc. Ideally I'd use median to bin outliers but that's more complex than I fancy working out!


Have you looked at this: http://hennigbuam.de/georg/gimp.html

Anyway, to stack all at equal resultant opacity is 1/L for each susequent layer:

1/n.
.
1/5 (20%)
1/4 (25%)
1/3 (33.333%)
1/2 (50%)
1/1 (100%)

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Baby's first GEGL plugin - a very basic GEGL plugin anyone can make.

9

No new posts Can't get plugin to appear (mostly)

3

No new posts Attachment(s) Plugin superxBR

7

No new posts Attachment(s) Help! What's the plugin called?

7

No new posts Attachment(s) create_stars_and_planet plugin

12



* Login  



Powered by phpBB3 © phpBB Group