Package boofcv.io.calibration
Class CalibrationIO
java.lang.Object
boofcv.io.calibration.CalibrationIO
Functions for loading and saving camera calibration related data structures from/to disk
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.yaml.snakeyaml.Yaml
static <T> T
static <T> T
static <T> T
Loads intrinsic parameters from diskstatic <T> T
static <T> T
static double[]
loadCoefficients
(Map<String, Object> map, String name) static CalibrationObservation
loadLandmarksCsv
(InputStream input) Reads in a CSV that encodesCalibrationObservation
.static CameraPinholeBrown
loadOpenCV
(Reader reader) Loads intrinsic parameters in OpenCV format.static CameraPinholeBrown
loadOpenCV
(String path) static CameraPinholeBrown
loadOpenCV
(URL path) static void
loadPinhole
(Map<String, Object> map, CameraPinhole parameters) static Se3_F64
putKannalaBrandt
(CameraKannalaBrandt parameters, @Nullable Map<String, Object> map) putModel
(CameraModel parameters, @Nullable Map<String, Object> map) putModelBrown
(CameraPinholeBrown parameters, @Nullable Map<String, Object> map) putModelPinhole
(CameraPinhole parameters, @Nullable Map<String, Object> map) putModelUniversalOmni
(CameraUniversalOmni parameters, @Nullable Map<String, Object> map) putParamsPinhole
(CameraPinhole parameters) putParamsRadialTangent
(CameraPinholeBrown parameters) static void
save
(MonoPlaneParameters parameters, Writer outputWriter) static void
save
(MultiCameraCalibParams parameters, Writer outputWriter) SavesMultiCameraCalibParams
to diskstatic void
save
(MultiCameraCalibParams parameters, String outputPath) static void
save
(StereoParameters parameters, File filePath) static void
save
(StereoParameters parameters, Writer outputWriter) Saves stereo camera model to diskstatic void
save
(StereoParameters parameters, String outputPath) static void
save
(VisualDepthParameters parameters, File filePath) static void
save
(VisualDepthParameters parameters, Writer outputWriter) static void
save
(VisualDepthParameters parameters, String outputPath) static void
static void
static void
static <T extends CameraModel>
voidstatic <T extends CameraModel>
voidSaves intrinsic camera model to diskstatic <T extends CameraModel>
voidstatic void
saveLandmarksCsv
(String inputFile, String detector, CalibrationObservation landmarks, File outputFile) static void
saveLandmarksCsv
(String inputFile, String detector, CalibrationObservation landmarks, OutputStream outputStream) Saves detected landmarks from calibration in a CSV file formatstatic void
saveOpencv
(CameraPinholeBrown intrinsics, Writer outputWriter) Saves the calibration in OpenCV yaml format.static void
saveOpencv
(CameraPinholeBrown intrinsics, String path)
-
Field Details
-
MODEL_PINHOLE
-
MODEL_BROWN
-
MODEL_OMNIDIRECTIONAL_UNIVERSAL
-
MODEL_KANNALA_BRANDT
-
MODEL_STEREO
-
MODEL_MULT_CAMERA
-
MODEL_RIGID_BODY
-
MODEL_VISUAL_DEPTH
-
MODEL_MONO_PLANE
-
VERSION
-
-
Constructor Details
-
CalibrationIO
public CalibrationIO()
-
-
Method Details
-
save
Saves intrinsic camera model to disk- Parameters:
parameters
- Camera parametersoutputWriter
- Path to where it should be saved
-
save
-
save
-
createYmlObject
public static org.yaml.snakeyaml.Yaml createYmlObject() -
save
Saves stereo camera model to disk- Parameters:
parameters
- Camera parametersoutputWriter
- Stream to save the parameters to
-
save
-
save
SavesMultiCameraCalibParams
to disk- Parameters:
parameters
- Camera system parametersoutputWriter
- Stream to save to
-
save
-
save
-
save
-
save
-
save
-
save
-
save
-
save
-
save
-
load
-
load
-
load
-
load
Loads intrinsic parameters from disk- Parameters:
reader
- Reader- Returns:
- Camera model
-
load
- Throws:
IOException
-
putModel
-
putModelPinhole
-
putModelBrown
-
putModelUniversalOmni
-
putKannalaBrandt
-
putParamsPinhole
-
putParamsRadialTangent
-
putSe3
-
loadPinhole
-
loadCoefficients
-
loadSe3
-
saveLandmarksCsv
public static void saveLandmarksCsv(String inputFile, String detector, CalibrationObservation landmarks, File outputFile) -
saveLandmarksCsv
public static void saveLandmarksCsv(String inputFile, String detector, CalibrationObservation landmarks, OutputStream outputStream) Saves detected landmarks from calibration in a CSV file format- Parameters:
inputFile
- (Input) path to input imagedetector
- (Input) description of the detectorlandmarks
- (Input) detected landmarksoutputStream
- (Output) where results are writetn to
-
loadLandmarksCsv
Reads in a CSV that encodesCalibrationObservation
.- Parameters:
input
- The input stream containing the CSV file- Returns:
- decoded observations
-
saveOpencv
-
saveOpencv
Saves the calibration in OpenCV yaml format.- Parameters:
intrinsics
- (Input) Calibration that's to be savedoutputWriter
- (Output) where to save it to
-
loadOpenCV
-
loadOpenCV
-
loadOpenCV
Loads intrinsic parameters in OpenCV format.
-