void SetupFilter()
 {
     m_ParallelConvolutions = new ParallelConvolutions <float>(new []
     {
         new ConvolutionSequence <float>(Kernels.Short.Sobel.X.ToFloat()),
         new ConvolutionSequence <float>(Kernels.Short.Sobel.Y.ToFloat())
     });
 }
Exemple #2
0
 public Channel(Image <TData> input, Image <TData>[] outputs,
                ParallelConvolutions <TData> convolutions)
 {
     Input     = input;
     Sequences = new Sequence[outputs.Length];
     for (var i = 0; i < outputs.Length; i++)
     {
         Sequences[i] = new Sequence(outputs[i], convolutions[i]);
     }
 }
Exemple #3
0
        public ParallelConvolutionData(Image <TData> input,
                                       ParallelConvolutions <TData> convolution)
        {
            InputImages  = new [] { input };
            Convolutions = new[] { convolution };

            OutputImages = new Image <TData> [channelCount][];
            InitializeImageData(input.Width, input.Height);

            Channels = new[] { new Channel(input, OutputImages[0], convolution) };
        }