linearize data in an image to a single vector for each image in an ImageArray instance

flattenToMatrix(iarr)

Arguments

iarr

ImageArray instance