Advertisement
Einstein_R

Untitled

Jan 4th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. Bitmap wypelnienie = new Bitmap("obrazek.bmp");
  2. pictureBox1.Image = wypelnienie;
  3. pictureBox1.Image = perceptron.KohonenujWstawWspolrzedne(wypelnienie);
  4.  
  5.         public Bitmap KohonenujWstawWspolrzedne(Bitmap tlo)
  6.         {
  7.             Bitmap obrazek ;
  8.             obrazek = tlo;  // <-- Myslalem ze cos takiego zalatwi sprawe !
  9.            
  10.             KohonenjSprawdzSasiadow();
  11.             for (int perceptron = 0; perceptron < wagi.GetLength(0); perceptron++)
  12.                 for (int x = wspolrzedne[perceptron, 0] - 2; x < wspolrzedne[perceptron, 0] + 3; x++)
  13.                     for (int y = wspolrzedne[perceptron, 1] - 2; y < wspolrzedne[perceptron, 1] + 3; y++)
  14.                         obrazek.SetPixel(x, y, Color.Red);
  15.  
  16.             return obrazek;
  17.         }
  18.  
  19. pictureBox1.Image = wypelnienie;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement