Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bitmap wypelnienie = new Bitmap("obrazek.bmp");
- pictureBox1.Image = wypelnienie;
- pictureBox1.Image = perceptron.KohonenujWstawWspolrzedne(wypelnienie);
- public Bitmap KohonenujWstawWspolrzedne(Bitmap tlo)
- {
- Bitmap obrazek ;
- obrazek = tlo; // <-- Myslalem ze cos takiego zalatwi sprawe !
- KohonenjSprawdzSasiadow();
- for (int perceptron = 0; perceptron < wagi.GetLength(0); perceptron++)
- for (int x = wspolrzedne[perceptron, 0] - 2; x < wspolrzedne[perceptron, 0] + 3; x++)
- for (int y = wspolrzedne[perceptron, 1] - 2; y < wspolrzedne[perceptron, 1] + 3; y++)
- obrazek.SetPixel(x, y, Color.Red);
- return obrazek;
- }
- pictureBox1.Image = wypelnienie;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement