int findContourVertex(int ix, int iy) {
		for (int i = 0; i < contourVertexCount; i++) {
			if (contourVertexes[i].pixelLocation[0] == ix && contourVertexes[i].pixelLocation[1] == iy)
				return i;
		}
		return -1;
	}