[Radiance-general] pinterp on a rectangle image

Ery Djunaedy ery.mailinglist at gmail.com
Sun Feb 12 05:16:15 PST 2012


Thanks Greg,

The view is:
VIEW= -vtv -vh 132.125290 -vv 112.682388

Ery


On 02/11/2012 09:48 PM, Greg Ward wrote:
> Hi Ery,
>
> Pcompos isn't smart enough to adjust the view after cropping, so it doesn't write it into the header in a way that pinterp can use it.
>
> The image may be coming out square because a hemispherical fisheye can encompass at most 180 degrees vertically and horizontally, whereas an angular fisheye can be up to 360 degrees.  You can of course specify a different horizontal and vertical size with the -vh and -vv options, but both must be less than 180.
>
> What is the view in your original fish.hdr file?
>
> -Greg
>
>> From: Ery Djunaedy<ery.mailinglist at gmail.com>
>> Date: February 11, 2012 4:54:07 PM PST
>>
>> Folks,
>>
>> I want to convert an angular fisheye to a hemispherical fisheye, like the example in pinterp man page.
>>
>> pinterp -vf fish.hdr -vth -ff fish.hdr 1>  hemi.hdr
>>
>> My concern is that pinterp force the result image to be a square. The image that I have is a rectangular image, with the fisheye circle in the middle. When I use the above command, the result is always a square.
>>
>> My question: is the interpolation also applied to the black region on the left and right side of the fisheye circle?
>>
>> I tried to crop the input hdr to square with the following command (from 5616x3744 to 3744x3744 pixels):
>>
>> ra_xyze -r -u -o fisheye.hdr | pcompos -x 3744 - -936 0>  fisheye_crop.hdr
>>
>> But when I use fisheye_crop.hdr as an input to the pinterp command, it gives a "bad view file"error. Does this simply confirm that man page that the output of pcompos cannot be used with pinterp?
>>
>> Thanks,
>>
>> Ery
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general




More information about the Radiance-general mailing list