exceptions helper function, HomographyFromGraycode working