![]() |
iVS3D v2.0.0
|
Example usage of the Tensor class to create a 2D tensor and map its values to colors. More...
Example usage of the Tensor class to create a 2D tensor and map its values to colors.
This example demonstrates how to create a 2D tensor with integer data, map its values to RGB colors based on whether they are even or odd, and print the resulting colorized tensor. The mapping function assigns red (255,0,0) for even numbers and green (0,255,0) for odd numbers.