pwspy.utility.machineVision

Useful functions for processing images. Currently its contents are focused on image stabilization.

Functions

to8bit(arr)

Converts boolean or float type numpy arrays to 8bit and scales the data to span from 0 to 255.

SIFTRegisterTransform(reference, other[, …])

Given a 2D reference image and a list of other images of the same scene but shifted a bit this function will use OpenCV to calculate the transform from each of the other images to the reference.

ORBRegisterTransform(reference, other[, …])

Given a 2D reference image and a list of other images of the same scene but shifted a bit this function will use OpenCV to calculate the transform from each of the other images to the reference.

edgeDetectRegisterTranslation(reference, other)

This function is used to find the relative translation between a reference image and a list of other similar images.