Creates a Tensor object from an existing p5.Image.
the image as a tensor
the image
Optional
(optional) the number of channels of the output tensor
Generated using TypeDoc
Creates a Tensor object from an existing p5.Image.
Returns
the image as a tensor