private void FeedColumn(int col, int row, NeuralNetwork network, Channel channel) { int inIdx = 1; for (int y = row - size2; y <= row + size2; y++, inIdx++) { Color px = ReadSourceColor(col, y); byte pxValue; switch (channel) { case Channel.Red: pxValue = px.R; break; case Channel.Green: pxValue = px.G; break; default: pxValue = px.B; break; } network.InputInterface[inIdx] = ImgNoise.Features.Helpers.PixelToDouble(pxValue); } network.Iteration(); }