shards
shards copied to clipboard
FloatsToImage: should throw error when 1 < Channels > 4
Describe the bug
FloatsToImage truncates number of Channels to:
4whenChannelsparameter value is bigger than 4.1whenChannelsparameter value is lower than 1.
To Reproduce
[1.0 1.0 1.0] | FloatsToImage(Channels: 0) | Log
;=> Image Width: 16 Height: 16 Channels: 1
[1.0 1.0 1.0] | FloatsToImage(Channels: 5) | Log
;=> Image Width: 16 Height: 16 Channels: 4
Expected behavior
FloatsToImage should throw error when 1 < Channels > 4.