4.6 Gradients and Normals
procedure
(flomap-gradient-x fm) → flomap
fm : flomap
procedure
(flomap-gradient-y fm) → flomap
fm : flomap
These return, per-component, estimates of the local x- and y-directional derivatives using a 3×3 Scharr operator.
procedure
(flomap-gradient fm) →
flomap flomap fm : flomap
Examples: | |||||||||||
|
procedure
(flomap-gradient-normal fm) → flomap
fm : flomap
Given a one-component flomap, returns a 3-component flomap containing estimated normals.
In other words, flomap-normal converts height maps to normal maps.
Examples: | |||||||
|