![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Darren New wrote:
> Kevin Wampler wrote:
>> the trick was to average pairs of images in a binary tree pattern
>
> I think that's only going to work if you have a number of images that's
> a power of two. Certainly merging 3 images this way isn't going to
> balance them.
>
I think I also kept track of a weight for each image to account for
that, but it's a good point that I should have mentioned.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
clipka wrote:
> Am 02.07.2010 18:26, schrieb Shay:
>> Using Linux?
>>
>> A BIT on-topic; Pictures produced using POV animation.
>>
>> composite frame0.png frame1.png ...... frame9.png merged.png
>> gives a poor result.
>
> Why not use POV-Ray for the job?
A dedicated tool wouldn't need to load all images into RAM before starting.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 07/02/2010 01:16 PM, Darren New wrote:
> Darren New wrote:
>> If you use the textual version of PPM, you can open it in a text editor
>
> convert xyz.png -compress None xyz.ppm
>
> Then edit xyz.ppm in a text editor. You'll get a header (P3), the X, Y,
> and maximum data value, then X*Y ascii integers.
>
> Read em, average em, convert em back.
>
I should have thought of this; I have written code in Python for
handling PPMs. Only problem is that I have to make and format a list of
the files so that Python can read the list. My Python skills are not
such that I can call a Python program with program(args). Still, a Vim
script should make quick work of that.
Shouldn't need longs. Hope not, at least, I've got no idea how to deal
with them in Python.
-Shay
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> I should have thought of this; I have written code in Python for
> handling PPMs. Only problem is that I have to make and format a list of
> the files so that Python can read the list. My Python skills are not
> such that I can call a Python program with program(args). Still, a Vim
> script should make quick work of that.
>
> Shouldn't need longs. Hope not, at least, I've got no idea how to deal
> with them in Python.
>
> -Shay
import os
import sys
path=sys.argv[1]
filelist=os.listdir(path)
#print the file list:
print "\n".join(filelist)
for filename in filelist:
if os.path.isfile(filename):
#do whatever
and start your script with the folder as a parameter, e.g. ./foo.py
/home/usr/blah
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Shay
Subject: Re: Merge hundreds of images together?
Date: 7 Jul 2010 13:50:26
Message: <4C34BE74.3080803@n.n>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thank you.
On 07/07/2010 10:49 AM, Aydan wrote:
> import os
> import sys
> path=sys.argv[1]
> filelist=os.listdir(path)
> #print the file list:
> print "\n".join(filelist)
> for filename in filelist:
> if os.path.isfile(filename):
> #do whatever
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |