cogpy.wave.vector_field

Vector-field analysis: divergence, curl, critical points, classification.

Provides tools for analysing velocity fields produced by optical-flow or phase-gradient methods. Critical-point detection and pattern classification follow the NeuroPattToolbox approach [1].

References

Functions

classify_pattern(u, v, geometry)

Classify the dominant spatial pattern of a velocity field.

critical_points(u, v, geometry)

Detect and classify critical points in a 2-D velocity field.

curl(u, v, geometry)

Compute the curl (vorticity) of a 2-D velocity field.

divergence(u, v, geometry)

Compute the divergence of a 2-D velocity field.

Classes

CriticalPoint(location, type)

A zero-velocity point in a vector field.