Description Usage Arguments Value See Also Examples
Expand a full frame hemispherical photograph to get the
equivalent of a circular hemispherical photograph. Added
pixels will be 0
.
1 2 3 4 | expandFullframe(x, z, zenith_colrow)
## S4 method for signature 'CanopyPhoto,ZenithImage'
expandFullframe(x, z, zenith_colrow)
|
x |
|
z |
|
CanopyPhoto
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | x <- loadPhoto()
z <- makeZimage(ncol(x), lensPolyCoef(c(0.9192, -0.1792, -0.000443)))
m <- doMask(z, zlim = asAngle(c(30, 60)))
plot(m)
m <- doMask(z, zlim = asAngle(c(30, 60)), alim = asAngle(c(0, 90)))
plot(m)
plot(x[m, drop = FALSE])
# for fullframe hemispherical photos
path <- system.file("external/DSC_2881.jpg", package="caiman")
x <- loadPhoto(path)
### declaring it as a fullframe
fisheye(x) <- newFishEye(TRUE, TRUE, TRUE)
m <- doMask(x, z)
plot(m)
m <- doMask(z, previousMask = m, zlim = asAngle(c(30, 60)),
alim = asAngle(c(0, 90)))
plot(m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.