[Radiance-general] Image from text
dbs176 at gmail.com
dbs176 at gmail.com
Fri Jan 30 07:49:39 PST 2009
Ah, thanks, pvalue does the trick.
Two things of note though which I don't think are documented: It looks like
pvalue needs the ASCII input to have a Radiance header - at
least "#?RADIANCE" on the first line followed by a blank line. In the
command "pvalue -h image.hdr | pvalue -r > image2.hdr" the second pvalue
will not know what to do with the output from the first pvalue.
Also, the -d switch on pvalue works on the reverse operation as well. If
you do something like "pvalue -d image.hdr | pvalue -r > image2.hdr", the
second pvalue will use the header to determine the dimensions but ignore
the red and green columns (assuming they were supposed to be x and y), so
you'll get only the blue channel in image2.hdr. However, "pvalue -d
image.hdr | pvalue -r -d > image2.hdr" will reproduce the original image.
This behavior is noted in the Bugs section but not in the description for
the -d option.
--Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20090130/afcfc230/attachment.htm
More information about the Radiance-general
mailing list