[Radiance-general] Create constant radiance image

Marija Velickovic maricanis at gmail.com
Tue Jan 5 07:21:48 PST 2010


Hi Dave,

Thanks for idea!

I'm in fact using Python and trying to include in my code, generation of
such images.
I didn't know that command:
print "a" * X
in Python, will print string "a", X times; so your idea will help me a lot.

Thanks again,
Marija


On Tue, Jan 5, 2010 at 4:07 PM, David Smith <dbs176 at gmail.com> wrote:

> This script below may be on the right track. Save it as "pblank", make
> it executable, and put it in /usr/bin or wherever. It'll make a X by Y
> image with all pixels having value of VALUE. It requires Python to be
> installed, by the way.
>
> --Dave
>
>
> #! /bin/bash
>
> # pblank - make an X by Y Radiance HDR image with all pixels having
> values of VALUE
> #
> # Usage:
> #
> # pblank [x] [y] [value] > outfile
> #
> # by David Smith, July 2009
>
> echo "print('$3 $3 $3 \n' * $1 * $2)" | python | pvalue -di -d -r -h
> -H -y $2 +x $1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20100105/34236dee/attachment.htm


More information about the Radiance-general mailing list