Added function that computes the coordinates of the zero crossing in an image subregion