def _pointxy_is_in_img(x, y, img):
	""" 
	return True if point (y, x) is in image with shape (ny, nx) then return, False otherwise.

	Args: 
		x (int)
		y (int)
		img (:obj: imgobj)
	"""
	nx, ny = img.nx, img.ny
	return (x > 0) & (x < nx) & (y > 0) & (y < ny)