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.
Downloads about 15 MB the first time (Python and NumPy).
Angleis 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.Modepicks along the edge (default) or across it, i.e. the gradient direction.Gainsigns and scales the flow; negative reverses it. It also doubles as a length limit past the encodable range.Gateat 1 scales the flow by the tensormap's coherence, so flat or noisy areas stay still; 0 ignores it.Referencechooses 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.Viewshows the resulting vecfield or the source image.- The input select picks the image the edges are read from.