Something like:
pcomb -e 'Cx:xmax/2;Cy:ymax/2;R:if(Cx-Cy,Cy,Cx);sq(x):x*x' -e
'inC=sq(R)-sq(x-Cx)-sq(y-Cy)' \
-e
'ro=if(inC,ri(1),0);go=if(inC,gi(1),0);bo=if(inC,bi(1),0)' -o input.hdr >
cropped.hdr
You may have to adjust the definitions of R and/or Cx and Cy if your circle
doesn't completely fill one dimension of the image.
Best,
-Greg
> From: Leyla Sanati <[email protected]>
> Date: February 19, 2013 9:51:12 AM PST
>
> Hi,
>
> I have some HDR images captured by a fisheye lens, and I want to clean it up
> to only show the circular image in a black background.
> Can anyone help me with the pcomb command to mask off the circular image.
>
> Thanks,
> Leyla
_______________________________________________
HDRI mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/hdri