Description Usage Arguments Details Value Methods (by class) See Also Examples
Helper function to generate a
RelativeRadiusImage
. Compute relative radius for each
pixes needed to represent a circular hemispherical image with a 180
degrees field of view and a given diameter, expressed in pixels. For
definition of relative radius see details of lensPolyCoef
.
1 2 3 4 5 6 7 | makeRimage(x, y)
## S4 method for signature 'numeric,missing'
makeRimage(x)
## S4 method for signature 'numeric,LensPolyCoef'
makeRimage(x, y)
|
x |
numeric. Diameter of the circle in pixels expressed as one-length even integer. |
y |
|
Most digital cameras take photos with an aspect ratio of 3:4, which
means a rectangular frame. If all the circle area is in the picture frame,
hundreds of pixels will have no-data. RelativeRadiusImage
has 1:1 aspect
ratio to minimize no-data pixels, so the circle is inscribed in a square.
The size of the square equals the diameter of the circle. To represent the
zenith as a point between pixels, the diameter of the circle must be even.
In a high resolution image this restriction of snapping the zenith between
pixels does not affect accuracy because half-pixel is less than the
uncertainty in localizing the circle in the frame.
RelativeRadiusImage
.
x = numeric,y = missing
: Assuming a polar projection.
x = numeric,y = LensPolyCoef
: Used to specified a projection different from the polar.
1 2 3 | x <- makeRimage(480)
plot(x)
x
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.