Prima::IPA::Misc - miscellaneous uncategorized routines
Splits IMAGE onto channels, with the selected MODE, which currently can be 'rgb' or 'hsv' string constants. Returns channels as anonymous array of image objects.
'rgb'
'hsv'
Supported types: RGB . Returns: 3 Byte images .
Supported types: RGB . Returns: 3 float images - with hue, saturation, and value . Ranges: hue: 0-360, saturation: 0-1, value: 0-1 .
Combines list of channel IMAGES into single image, with the selected MODE, which currently can be 'rgb' , 'hsv', 'alphaNUM' string constants. Returns the combined image.
'alphaNUM'
Supported types: Byte . Returns: RGB image .
Supported types: Float . Returns: RGB image . Channel ranges: hue: 0-360, saturation: 0-1, value: 0-1
Supported types: RGB, Byte . Returns: Same type as input . NUM range: 0 - 255 .
Returns array of 256 integers, each representing number of pixels with the corresponding value for IMAGE.
Supported types: 8-bit
To install Prima::IPA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prima::IPA
CPAN shell
perl -MCPAN -e shell install Prima::IPA
For more information on module installation, please visit the detailed CPAN module installation guide.