private static Pixel FishEye(PNM image, int index, double maxR) { byte r,g,b; double radius, angle; image.ToPolar(index, out radius, out angle); image.GetPixel((radius * radius) / maxR, angle, out r, out g, out b); return new Pixel(r, g, b); }
private static Pixel FishEye(PNM image, int index, double maxR) { byte r, g, b; double radius, angle; image.ToPolar(index, out radius, out angle); image.GetPixel((radius * radius) / maxR, angle, out r, out g, out b); return(new Pixel(r, g, b)); }