[Radiance-general] how to pipe the output of pcompos as input for pflip
Greg Ward
gregoryjward at gmail.com
Thu May 17 11:03:29 PDT 2012
You should get a usage error. The 4.1 version of pflip needs the input file on the command line, so it can seek on it for the -v option. While technically not necessary for the -h option by itself, this is how I wrote it figuring it was not worth the effort for the corner case of someone wanting on pflip -h to read from stdin.
I have modified the code and uploaded a new version that works in your scenario. I will e-mail you the C file separately.
Cheers,
-Greg
> From: Ji Zhang <hope.zh at gmail.com>
> Date: May 17, 2012 9:33:44 AM PDT
>
> Dear list,
>
> I can use two separate commands to crop and flip an .hdr image:
>
> pcompos -x 800 -y 800 ./sky.hdr -100 0 > ./sky_clipped.hdr
> pflip -h ./sky_clipped.hdr > ./sky_flipped.hdr
>
>
> However, I don't seem to be able to "pipe" the output of pcompos as input for pflip using the following script:
> pcompos -x 800 -y 800 ./sky.hdr -100 0 | pflip -h > ./sky_flipped.hdr
>
> I'm sure I missed something here, so please kindly advise!
>
> Thanks a lot!
>
> - Ji
More information about the Radiance-general
mailing list