extract vector of labels

# S4 method for ImageArray
getTypes(iarr)