sksurgerycalibration.video.video_calibration_params module¶
Containers for video calibration parameters.
-
class
sksurgerycalibration.video.video_calibration_params.BaseCalibrationParams[source]¶ Bases:
objectConstructor, no member variables, so just a pure virtual interface.
Not really necessary if you rely on duck-typing, but at least it shows the intention of what derived classes should implement, and means we can use this base class to type check against.
-
class
sksurgerycalibration.video.video_calibration_params.MonoCalibrationParams[source]¶ Bases:
sksurgerycalibration.video.video_calibration_params.BaseCalibrationParamsHolds a set of intrinsic and extrinsic camera parameters for 1 camera.
-
load_data(dir_name: str, file_prefix: str, halt_on_ioerror=True)[source]¶ Loads calibration parameters from a directory.
Parameters: - dir_name – directory to load from
- file_prefix – prefix for all files
- halt_on_ioerror – if false, and handeye or pattern2marker are not found they will be left as None
-
save_data(dir_name: str, file_prefix: str)[source]¶ Saves calibration parameters to a directory.
Parameters: - dir_name – directory to save to
- file_prefix – prefix for all files
-
-
class
sksurgerycalibration.video.video_calibration_params.StereoCalibrationParams[source]¶ Bases:
sksurgerycalibration.video.video_calibration_params.BaseCalibrationParamsHolds a pair of MonoCalibrationParams, and the left-to-right transform.
-
load_data(dir_name: str, file_prefix: str)[source]¶ Loads calibration parameters from a directory.
Parameters: - dir_name – directory to load from
- file_prefix – prefix for all files
-
save_data(dir_name: str, file_prefix: str)[source]¶ Saves calibration parameters to a directory.
Parameters: - dir_name – directory to save to
- file_prefix – prefix for all files
-