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

Reply
 
Thread Tools Rate Thread
  #1  
Old 08-05-2006, 02:56 PM
andyschlei
Registered User

andyschlei is offline
 
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
Reply With Quote
  #2  
Old 08-05-2006, 04:40 PM
davidpretorius's Avatar
davidpretorius
lots of eyes on you!

davidpretorius is offline
 
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!
Reply With Quote
  #3  
Old 08-05-2006, 04:42 PM
[1ponders]'s Avatar
[1ponders] (Paul)
Retired, damn no pension

[1ponders] is offline
 
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
Reply With Quote
  #4  
Old 08-05-2006, 04:43 PM
[1ponders]'s Avatar
[1ponders] (Paul)
Retired, damn no pension

[1ponders] is offline
 
Join Date: Nov 2004
Location: Obi Obi, Qld
Posts: 18,778
Damn that DPs quick
Reply With Quote
  #5  
Old 08-05-2006, 04:43 PM
davidpretorius's Avatar
davidpretorius
lots of eyes on you!

davidpretorius is offline
 
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
Reply With Quote
  #6  
Old 09-05-2006, 01:52 AM
andyschlei
Registered User

andyschlei is offline
 
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.
Reply With Quote
  #7  
Old 10-05-2006, 03:13 PM
andyschlei
Registered User

andyschlei is offline
 
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.
Reply With Quote
  #8  
Old 10-05-2006, 03:24 PM
iceman's Avatar
iceman (Mike)
Sir Post a Lot!

iceman is offline
 
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
Reply With Quote
  #9  
Old 10-05-2006, 03:37 PM
andyschlei
Registered User

andyschlei is offline
 
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?
Reply With Quote
  #10  
Old 10-05-2006, 03:45 PM
andyschlei
Registered User

andyschlei is offline
 
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
Reply With Quote
  #11  
Old 10-05-2006, 03:46 PM
iceman's Avatar
iceman (Mike)
Sir Post a Lot!

iceman is offline
 
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.
Reply With Quote
  #12  
Old 10-05-2006, 03:50 PM
iceman's Avatar
iceman (Mike)
Sir Post a Lot!

iceman is offline
 
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.
Reply With Quote
  #13  
Old 10-05-2006, 03:56 PM
andyschlei
Registered User

andyschlei is offline
 
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!
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 03:29 PM.

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