vlt.image.inside_rect¶
INSIDE_RECT - is a point (or set of points) inside a rectangle?
B = INSIDE_RECT(RECT, POINT)
Given a RECT = [ TOP LEFT BOTTOM RIGHT], return a 1 if POINT = [PX PY] is
inside the rectangle and 0 otherwise.
POINT can be a single row vector or a matrix of row vectors Nx2. If POINT
is a row vector, then B will be a vector with 0/1 for each entry in POINT.