Package boofcv.alg.structure
Class LookUpCameraInfo
java.lang.Object
boofcv.alg.structure.LookUpCameraInfo
Used to retrieve information about a view's camera. Can be used to figure out if the same camera captured all
the views
-
Field Summary
Modifier and TypeFieldDescriptionfinal gnu.trove.map.TObjectIntMap<String>
Look up from view id to view indexfinal DogArray_B
If true then a camera is known and should not be estimatedfinal DogArray<CameraPinholeBrown>
List of calibration information for each camerafinal DogArray_I32
Lookup table from view to camera that captured the view -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCameraCanonical
(int width, int height, double hfov) Adds a default camera with no lens distortion with the specified field of viewvoid
Adds a new view and maps it to a cameraboolean
isCameraKnown
(int cameraIdx) Returns true if the camera's calibration is known and can be assumed ot be fixedvoid
lookupCalibration
(int cameraIdx, CameraPinholeBrown calibration) Returns the camera's calibration.void
lookupCalibration
(String viewID, CameraPinholeBrown calibration) void
lookupViewShape
(String viewID, ImageDimension shape) int
Total number of unique camerasint
Total number of viewsint
viewToCamera
(String viewID) Which camera took the image at this view
-
Field Details
-
idToView
Look up from view id to view index -
viewToCamera
Lookup table from view to camera that captured the view -
listCalibration
List of calibration information for each camera -
knownCameras
If true then a camera is known and should not be estimated
-
-
Constructor Details
-
LookUpCameraInfo
public LookUpCameraInfo()
-
-
Method Details
-
totalViews
public int totalViews()Total number of views -
totalCameras
public int totalCameras()Total number of unique cameras -
viewToCamera
Which camera took the image at this view -
lookupCalibration
Returns the camera's calibration. This could be a crude estimate- Parameters:
cameraIdx
- (Input) which cameracalibration
- (Output) Storage for the retrieved calibration data
-
lookupCalibration
-
isCameraKnown
public boolean isCameraKnown(int cameraIdx) Returns true if the camera's calibration is known and can be assumed ot be fixed -
lookupViewShape
-
addCameraCanonical
public void addCameraCanonical(int width, int height, double hfov) Adds a default camera with no lens distortion with the specified field of view- Parameters:
width
- (Input) Image widthheight
- (Input) Image heighthfov
- (Input) Horizontal field-of-view in degrees
-
addView
Adds a new view and maps it to a camera
-