pyFM.viz.vertices_to_rgb¶
- pyFM.viz.vertices_to_rgb(vertices, param=(-2, -1, 3))¶
Transforms (x,y,z) coordinates into RGB values using some better transformation than XYZ->RGB. It parametrized by a rearrangement of the array [1,2,3] up to sign flip and column reordering. Default parameter value is [-2, -1, 3].
- Parameters:
vertices ((n,3) - x,y,z coordinates of vertices)
param ((3,) - rearrangement of the [1,2,3] array up to sign flip and column reordering.) – The magnitude of each entry selects the source channel, its sign inverts it.
Output
----------------------------
cmap ((n,3) RGB value for each vertex, in [0,1])
Examples using vertices_to_rgb¶
Encoding Dense Correspondences in a Functional Map
Encoding Dense Correspondences in a Functional Map