Closed jabraham17 closed 1 day ago
Adds a new unstable Image package module for writing images from Chapel arrays.
Available symbols
enum imageType
writeImage(image, format, pixels)
pixels
image
downSample(arr)
interpolateColor(arr, colorA, colorB)
scale(arr, factor)
mediaPipe
ffmpeg
[Reviewed by @DanilaFe]
Adds a new unstable Image package module for writing images from Chapel arrays.
Available symbols
enum imageType
: the type of image a given function is working withwriteImage(image, format, pixels)
: writes apixels
array in the given format (currently only BMP) toimage
downSample(arr)
: takes an array and converts it to an array of pixelsinterpolateColor(arr, colorA, colorB)
: takes an array and converts it to an array of pixels, by interpolating between two rgb colorsscale(arr, factor)
: takes an array and scales it by a factormediaPipe
: utilizesffmpeg
to allow writing rgb pixels to a mp4[Reviewed by @DanilaFe]