autopew.Pew¶
-
class
autopew.
Pew
(*args, transform=None, archive=None, **kwargs)[source]¶ -
calibrate
(src, dest, handler=None, **kwargs)[source]¶ Calibrate the transformation between two planar coordinate systems given two sets of corresponding points.
Parameters: - src (
str
|pathlib.Path
|numpy.ndarray
|pandas.DataFrame
) - dest (
str
|pathlib.Path
|numpy.ndarray
|pandas.DataFrame
) - handler (
str
|tuple
)
- src (
-
export_samples
(filepath, enforce_transform=True, **kwargs)[source]¶ Export a set of coordinates.
Parameters: - filepath (
str
|pathlib.Path
) – Desired export filepath. - enforce_transform (
bool
) – Whether to enforce transformation before export.
- filepath (
-
load_samples
(filepath, handler=None, **kwargs)[source]¶ Import a set of sample coordinates.
Parameters: filepath ( str
|pathlib.Path
|numpy.ndarray
|pandas.DataFrame
)Returns: Return type: pandas.DataFrame
-
to_archive
(filepath)[source]¶ Archive the coordinate mapping and calibration for later loading.
Parameters: filepath ( str
|pathlib.Path
)
-
transform_samples
(samples=None, limits=None, **kwargs)[source]¶ Transform sample coordinates to the destination coordinate system.
Parameters: limits ( list
|numpy.ndarray
)Returns: Return type: numpy.ndarray
-