public static void CreatePixelMap(TiffImage image, float N) { pixelMap = new Pixel[(int)Math.Pow(2, N)][]; for (int i = 0; i < Math.Pow(2, N); i++) { pixelMap[i] = new Pixel[(int)Math.Pow(2, N)]; for (int j = 0; j < Math.Pow(2, N); j++) { pixelMap[i][j] = new Pixel(Tuple.Create(i, j), image.getColourBands(i, j)); } } }
public Pixel GetPixelAt(Coordinate coordinate) { return(new Pixel(coordinate, Image.getColourBands(coordinate.X, coordinate.Y))); }