Beispiel #1
0
 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);
 }
Beispiel #2
0
        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));
        }