src.measure.contour module

class src.measure.contour.Blob(pixels, cnt, pz, j)[source]

Bases: object

sparseContour(N=5)[source]

find evently spaced points along the contour and the outward facing bisector at each point N defines the distance between neighboring points :return: a list of dictionaries which contains the xy position and unit bisector vector

src.measure.contour.findContours(exc, minarea)[source]

detect contour of connected pixels whose area is larger than minarea

Returns

dictionary of a list of blobs in each frame. {frame0:[blob0, …, blobn], frame1:[blob0, …, blobn], …}