← f_ notebook · Mirrors · Adapters

f_tf_axisflow, live ​

Projects a reference direction onto image edges: turns an axis (no sign) into a signed vecfield with no seam. Flow follows edges parallel to the angle and fades where edges cross it.

The cell below steps the NumPy mirror that f_tf_axisflow's tests are written against, in your browser. It is the NumPy mirror, not the Max patch, and it is not claimed to match the patch bit for bit.

f_tf_axisflow · NumPy mirror (Pyodide) · not the Max patch
Downloads about 15 MB the first time (Python and NumPy).
  • Angle is the reference direction: flow is full strength where an edge runs parallel to it and fades smoothly to zero where an edge is perpendicular to it.
  • Mode picks along the edge (default) or across it, i.e. the gradient direction.
  • Gain signs and scales the flow; negative reverses it. It also doubles as a length limit past the encodable range.
  • Gate at 1 scales the flow by the tensormap's coherence, so flat or noisy areas stay still; 0 ignores it.
  • Reference chooses a constant direction (angle) or the second input, a per-pixel vecfield whose sign the flow follows; that field is not normalized, so it also acts as a spatial gain map.
  • View shows the resulting vecfield or the source image.
  • The input select picks the image the edges are read from.

reference doc · patcher · tf_axisflow_mirror.py

← HatchCores →