ICEINSPACE
Moon Phase
CURRENT MOON
Waning Crescent 6.9%
|
|

08-05-2006, 02:56 PM
|
Registered User
|
|
Join Date: May 2006
Location: Los Angeles, CA, USA
Posts: 8
|
|
Splitting BMPs
This is my first post and I am afraid it is a bleg.
Iceman posted some excellent Jupiter photos at the Bad Astronomy/Universe Today forum, and followed up with great advice on processing.
I am stuck on the step of splitting the BMPs from the AVI into separate R/G/B images. I took an admittedly quick view through the archives here and did not find the gem of knowledge on how to do this.
I apologize in advance if this is an easy question, and thank everyone (also in advance) for any help on this.
--Andy
Observatorio de la Ballona
|

08-05-2006, 04:40 PM
|
 |
lots of eyes on you!
|
|
Join Date: Jun 2005
Location: Launceston Tasmania
Posts: 7,381
|
|
gday mate, where the bloody hell are ya!!!
enough aussie lingo.
i use aviraw to split my avi into separate colour r,g,b. from there I convert those separate r.g.b avis into bmps with bink and smacker. virtual dub would work too.
ppmcentre then crops and centres the bmps and does a pre quality sort if needed.
then into registax.
Mike (Iceman) has a script setup where he converts first from avi to bmps via virtual dub and then runs the script to convert bmps into split colours and then also run ppmcente.
My dos is not great, so i have not had a chance to do the same thing via scripts.
aviraw is the first step i would think. The only quirk is that the program needs you to convert to a rgb first or convert a raw in to a rgb first before trying to split the avi's into colours.
http://arnholm.org/astro/software/aviraw/
come back and ask any questions at any time, the lights are always on in australia, the country that never sleeps!
|

08-05-2006, 04:42 PM
|
![[1ponders]'s Avatar](../vbiis/customavatars/avatar45_9.gif) |
Retired, damn no pension
|
|
Join Date: Nov 2004
Location: Obi Obi, Qld
Posts: 18,778
|
|
Welcome Andy. Slitting can be done a couple of ways.
If you are going to split your inital Avi then use Aviraw to do that. If you are going to split a final image after running through Registax then use Astro image to so that.
There are a couple of discussions going on atm I see if I can dig them up
The main discussion of splitting is going on here atm
|

08-05-2006, 04:43 PM
|
![[1ponders]'s Avatar](../vbiis/customavatars/avatar45_9.gif) |
Retired, damn no pension
|
|
Join Date: Nov 2004
Location: Obi Obi, Qld
Posts: 18,778
|
|
Damn that DPs quick
|

08-05-2006, 04:43 PM
|
 |
lots of eyes on you!
|
|
Join Date: Jun 2005
Location: Launceston Tasmania
Posts: 7,381
|
|
welcome by the way,
nice website you have got running there and great observatory setup!
well done
|

09-05-2006, 01:52 AM
|
Registered User
|
|
Join Date: May 2006
Location: Los Angeles, CA, USA
Posts: 8
|
|
Thanks for the quick responses. I'm looking forward to trying the software out tonight.
And thanks DP for the kind comments about my site.
|

10-05-2006, 03:13 PM
|
Registered User
|
|
Join Date: May 2006
Location: Los Angeles, CA, USA
Posts: 8
|
|
Well I have all of the software in place. I have used virtual dub to split the avi into individual BMPs, and am trying to process them with ppmcentre. However, I got the following error:
Quote:
Saturn f40 060408 03x0000.bmp: (640x480x24) Warning: image data found near edge (row 0, 196 pixels). Procesing cancelled
|
To fix it, I set the threshold to 65 (after looking at the image in PS). I took me a while to understand the error message, but I finally got it.
I am on the second pass through the bmps with ppmcentre as I forgot the -qestimator and -renumber on the first pass.
|

10-05-2006, 03:24 PM
|
 |
Sir Post a Lot!
|
|
Join Date: Sep 2004
Location: Gosford, NSW, Australia
Posts: 36,799
|
|
Nice work Andy..
That threshhold parameter is needed if the image is inherintly grainy from high gain (in poor transparency).
The command line I use for ppmcentre (in a script called "image_ppm_script.sh" is:
Code:
#!/bin/sh
image_dir=$1
./ppmcentre -width=400 -height=400 -cutx=400 -cuty=400 -overwrite -inputfilter -qestimator -renumber $image_dir
I run mine through a unix emulator "cygwin" on Windows.
So if I've got several bmp directories, eg:
images/jup1bmp
images/jup2bmp
images/jup3bmp
I run the command:
Code:
for i in `ls -d images/jup*bmp`
do
./image_ppm_script.sh $i
done;
That runs the ppmcentre command through all bmp directories one after the other. So I can kick it off before I go to bed and it's done when I wake up in the morning
|

10-05-2006, 03:37 PM
|
Registered User
|
|
Join Date: May 2006
Location: Los Angeles, CA, USA
Posts: 8
|
|
One last note before I call it a night. It seems that Registax has a limit on the number of BMPs that it can handle. There is no message, but I was able to load 200, but not 300 BMPs for processing.
Does anyone know of a hard limit?
|

10-05-2006, 03:45 PM
|
Registered User
|
|
Join Date: May 2006
Location: Los Angeles, CA, USA
Posts: 8
|
|
Quote:
Originally Posted by iceman
That threshhold parameter is needed if the image is inherintly grainy from high gain (in poor transparency).
<snip>
I run mine through a unix emulator "cygwin" on Windows.
So if I've got several bmp directories, eg:
images/jup1bmp
images/jup2bmp
images/jup3bmp
<...>
|
I was processing an image at f40, so the gain was very high. I've got a fair amount of light pollution, and as I recall the transparency wasn't great either, so there was a lot of background noise.
In my searches for programs to split files, I came across a Linux program that will break an AVI into BMPs in batch. It is called mplayer. I might run under cygwin and help you to extend what can be done in batch mode.
I am trying a parallel path for processing on my Linux machines, we'll see how it goes. I will try to get XP to work first.
Thanks for the help.
--Andy
|

10-05-2006, 03:46 PM
|
 |
Sir Post a Lot!
|
|
Join Date: Sep 2004
Location: Gosford, NSW, Australia
Posts: 36,799
|
|
Quote:
One last note before I call it a night. It seems that Registax has a limit on the number of BMPs that it can handle. There is no message, but I was able to load 200, but not 300 BMPs for processing.
Does anyone know of a hard limit?
|
Don't use "open" - instead, drag'n'drop the BMP's into registax. Then you can drag thousands in there.
|

10-05-2006, 03:50 PM
|
 |
Sir Post a Lot!
|
|
Join Date: Sep 2004
Location: Gosford, NSW, Australia
Posts: 36,799
|
|
Quote:
In my searches for programs to split files, I came across a Linux program that will break an AVI into BMPs in batch. It is called mplayer. I might run under cygwin and help you to extend what can be done in batch mode.
|
yeh if I could batch up the splitting of avi's into BMP's, that'd be great - cause that manual step in VirtualDub is quite frustrating.
I usually do it while capturing avi's.. that is, after i've finished capturing one avi, i'll open it in virtual dub and start saving the BMP's. I've found that I can still capture the next avi while VirtualDub is saving the previous as BMP's.
The only problem with batching that step, is that sometimes the planet runs off the frame slightly during part of the AVI because my tracking isn't very good. I use virtualdub to delete those bad frames where part of the planet is outside the FOV, so registax doesn't think it's "sharp". To be able to batch it, I'd need to much more careful about keeping the planet in the FOV during the whole capture.
|

10-05-2006, 03:56 PM
|
Registered User
|
|
Join Date: May 2006
Location: Los Angeles, CA, USA
Posts: 8
|
|
Quote:
Originally Posted by iceman
Don't use "open" - instead, drag'n'drop the BMP's into registax. Then you can drag thousands in there.
|
Thanks!
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +10. The time is now 03:29 PM.
|
|