This is a method for the generic function split
for the class of pixel images. The image x will be divided
into subsets determined by the data f. The result is a list
of these subsets.
The splitting criterion may be either
a tessellation (object of class "tess"). Each tile of
the tessellation delineates a subset of the spatial domain.
a pixel image (object of class "im") with factor
values. The levels of the factor determine subsets of the spatial
domain.
If drop=FALSE (the default), the result is a list of pixel
images, each one a subset of the pixel image x,
obtained by restricting the pixel domain to one of the subsets.
If drop=TRUE, then the pixel values are returned as
numeric vectors.