Tracer module¶
-
OpFlowLab.functions.tracer_functions.draw_tracer(image, centroids, color, radius=3)[source]¶ Draws tracers at the specified locations
- Parameters
- imagearray
Image on which the tracers are drawn
- centroidsarray
Array containing the positions of tracers
- colorarray
Array containing the color information for each tracer
- radiusint
Specifies the radius of the drawn circle
- Returns
- imagearray
Image containing the drawn tracers
-
OpFlowLab.functions.tracer_functions.update_tracer(centroids, flow_y, flow_x)[source]¶ Updates the position of the tracers using the velocity field
- Parameters
- centroidsarray
Array containing the positions of tracers
- flow_x, flow_yarray
Arrays containing the x and y components of the velocity field respectively
- Returns
- outputarray
Array containing the updated position of the tracers