[iarectangle] [Up] [iacrop] | Image Information and Manipulation |
Implemented in Python.
g | Image. Gray-scale (uint8 or uint16) or binary image (logical). |
def iaroi(f, p1, p2): from Numeric import asarray, NewAxis f = asarray(f) if len(f.shape) == 1: f = f[NewAxis,:] g = f[p1[0]:p2[0]+1, p1[1]:p2[1]+1] return g
[iarectangle] [Up] [iacrop] | |