public class MultiCameraToEquirectangular<T extends boofcv.struct.image.ImageBase<T>>
extends java.lang.Object
| Constructor and Description |
|---|
MultiCameraToEquirectangular(boofcv.alg.distort.ImageDistort<T,T> distort,
int equiWidth,
int equiHeight,
boofcv.struct.image.ImageType<T> imageType)
Configuration constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCamera(georegression.struct.se.Se3_F64 cameraToCommon,
LensDistortionWideFOV factory,
boofcv.struct.image.GrayU8 camMask)
Adds a camera and attempts to compute the mask from the provided distortion model.
|
void |
addCamera(georegression.struct.se.Se3_F64 cameraToCommon,
LensDistortionWideFOV factory,
int width,
int height)
Adds a camera and attempts to compute the mask from the provided distortion model.
|
boofcv.struct.image.GrayF32 |
getMask(int which)
Returns the mask for a specific camera
|
float |
getMaskToleranceAngle() |
T |
getRenderedImage() |
void |
render(java.util.List<T> cameraImages)
Provides recent images from all the cameras (should be time and lighting synchronized) and renders them
into an equirectangular image.
|
void |
setMaskToleranceAngle(float maskToleranceAngle)
Specify the tolerance that the circle normal angle must be invertible in radians
|
public MultiCameraToEquirectangular(boofcv.alg.distort.ImageDistort<T,T> distort, int equiWidth, int equiHeight, boofcv.struct.image.ImageType<T> imageType)
distort - Used to apply image distortion from different input imagesequiWidth - Width of output equirectangular imageequiHeight - Height of output equirectangular imageimageType - Type of image it processes and outputs. Must be floating point. Hmm why isn't this fixed?public void addCamera(georegression.struct.se.Se3_F64 cameraToCommon,
LensDistortionWideFOV factory,
int width,
int height)
cameraToCommon - Rigid body transform from this camera to the common frame the equirectangular image
is infactory - Distortion modelwidth - Input image widthheight - Input image heightpublic void addCamera(georegression.struct.se.Se3_F64 cameraToCommon,
LensDistortionWideFOV factory,
boofcv.struct.image.GrayU8 camMask)
cameraToCommon - Rigid body transform from this camera to the common frame the equirectangular image
is infactory - Distortion modelcamMask - Binary mask with invalid pixels marked as not zero. Pixels are in camera image frame.public void render(java.util.List<T> cameraImages)
cameraImages - List of camera imagespublic T getRenderedImage()
public boofcv.struct.image.GrayF32 getMask(int which)
which - index of the camerapublic float getMaskToleranceAngle()
public void setMaskToleranceAngle(float maskToleranceAngle)
maskToleranceAngle - tolerance in radians