stytra.calibration package

Module contents

exception stytra.calibration.CalibrationException[source]

Bases: Exception

class stytra.calibration.Calibrator(mm_px=0.2)[source]

Bases: lightparam.param_qt.ParametrizedQt

toggle()[source]
set_physical_scale(change)[source]

Calculate mm/px from calibrator length

set_pixel_scale(w, h)[source]

“Set pixel size, need to be called by the projector widget on resizes

make_calibration_pattern(p, h, w)[source]
Parameters:
  • p
  • h
  • w
class stytra.calibration.CrossCalibrator(*args, fixed_length=60, calibration_length='outside', transparent=True, **kwargs)[source]

Bases: stytra.calibration.Calibrator

make_calibration_pattern(p, h, w)[source]
Parameters:
  • p
  • h
  • w
set_pixel_scale(w, h)[source]

“Set pixel size, need to be called by the projector widget on resizes

class stytra.calibration.CircleCalibrator(*args, dh=80, r=1, **kwargs)[source]

Bases: stytra.calibration.Calibrator

” Class for a calibration pattern which displays 3 dots in a 30 60 90 triangle

set_pixel_scale(w, h)[source]

“Set pixel size, need to be called by the projector widget on resizes

make_calibration_pattern(p, h, w, draw=True)[source]
Parameters:
  • p
  • h
  • w
  • draw – (Default value = True)
static arr_to_tuple(arr)[source]
Parameters:arr
find_transform_matrix(image)[source]
Parameters:image