Package boofcv.alg.distort.spherical
Class CylinderToEquirectangular_F64
java.lang.Object
boofcv.alg.distort.spherical.EquirectangularDistortBase_F64
boofcv.alg.distort.spherical.CylinderToEquirectangular_F64
- All Implemented Interfaces:
PixelTransform<Point2D_F64>
Renders a cylindrical view from an equirectangular image. With zero rotation applied to it the image center
has the pointing vector = (1,0,0).
r = atan(vfov/2) // implicit cylinder radius of 1 theta = 2*PI*pixelX/width - PI x = cos(theta) y = sin(theta) z = 2*r*pixelY/(height - 1) - r
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(int width, int height, double vfov) Configures the rendered cylinderCreates a copy of this transform for use in concurrent application.Methods inherited from class boofcv.alg.distort.spherical.EquirectangularDistortBase_F64
compute, declareVectors, getRotation, getTools, setConcurrent, setDirection, setDirection, setEquirectangularShape
-
Constructor Details
-
CylinderToEquirectangular_F64
public CylinderToEquirectangular_F64()
-
-
Method Details
-
configure
public void configure(int width, int height, double vfov) Configures the rendered cylinder- Parameters:
width
- Cylinder width in pixelsheight
- Cylinder height in pixelsvfov
- vertical FOV in radians
-
copyConcurrent
Description copied from interface:PixelTransform
Creates a copy of this transform for use in concurrent application. What that means is that any variable which might be modified by a concurrent call toPixelTransform.compute(int, int, T)
is not passed to the 'copied' output. Expensive to compute models might be passed in as a reference.
-