Esempio n. 1
0
 private void CheckSize(ImageF image)
 {
     if (Convolver == null || FftSize.Width != image.Width || FftSize.Height != image.Height)
     {
         FftSize           = new Size(image.Width, image.Height);
         double[,] imgData = new double[FftSize.Width, FftSize.Height];
         for (int x = 0; x < FftSize.Width; x++)
         {
             for (int y = 0; y < FftSize.Height; y++)
             {
                 imgData[x, y] = this[x + Xmin, y + Ymin];
             }
         }
         Convolver = new FftwConvolver.FftwConvolver(FftSize, imgData, new Point(-Xmin, -Ymin));
     }
 }
Esempio n. 2
0
 private void CheckSize(ImageF image)
 {
     if (Convolver == null || FftSize.Width != image.Width || FftSize.Height != image.Height)
     {
         FftSize = new Size(image.Width, image.Height);
         double[,] imgData = new double[FftSize.Width, FftSize.Height];
         for (int x = 0; x < FftSize.Width; x++)
         {
             for (int y = 0; y < FftSize.Height; y++)
             {
                 imgData[x, y] = this[x + Xmin, y + Ymin];
             }
         }
         Convolver = new FftwConvolver.FftwConvolver(FftSize, imgData, new Point(-Xmin, -Ymin));
     }
 }