sksurgerycalibration.video.video_calibration_driver_base module

Base class for our mono and stereo video camera calibration drivers.

class sksurgerycalibration.video.video_calibration_driver_base.BaseVideoCalibrationDriver(minimum_points_per_frame: int)[source]

Bases: object

Base class for video calibration drivers.

calibrate(flags=0)[source]

Do the video calibration. Derived classes must implement this.

get_number_of_views()[source]

Returns the current number of stored views.

Returns:number of views
get_params()[source]

Copies and returns the parameters.

get_tracking_data()[source]

Copies and returns the tracking data.

get_video_data()[source]

Copies and returns the video data.

is_calibration_target_tracked()[source]

Returns True if we have tracking data for the calibration target.

is_device_tracked()[source]

Returns True if we have tracking data for the device.

load_data(dir_name: str, file_prefix: str)[source]

Loads the data from dir_name, and populates this object.

load_params(dir_name: str, file_prefix: str)[source]

Loads the calibration params from dir_name, using file_prefix.

pop()[source]

Removes the last grabbed view of data.

reinit()[source]

Resets this object, which means, removes stored calibration data and reset the calibration parameters to identity/zero.

save_data(dir_name: str, file_prefix: str)[source]

Saves the data to the given dir_name, with file_prefix.

save_params(dir_name: str, file_prefix: str)[source]

Saves the calibration parameters to dir_name, with file_prefix.