
545Graphics and GUI
If the image uses transparency/translucency, scale all the image’s AlphaData values
between 0-1, then set the image’s AlphaDataMapping property to 'none' to ensure that
MATLAB does not spend time mapping the alpha values.
10.1.12.4 Cropping
MATLAB’s Image Processing Toolbox (IPT) provides the well-known imcrop function
for cropping images. This function is very useful but includes many internal checks (e.g.,
for partially overlapped pixels) that may be unnecessary in many applications. For per-
formance purposes, it is faster to use simple subscript indexing rather than imcrop (the
smaller the subimage, the larger the spee ...