Inheritance: RectangularWeights
Esempio n. 1
0
 public SubsamplingStep(IList<RectangularStep> upstream, int subsamplingWidth, int subsamplingHeight)
     : base(WidthOf(upstream) / subsamplingWidth,
          HeightOf(upstream) / subsamplingHeight, upstream)
 {
     if (WidthOf(upstream) % subsamplingWidth != 0) throw new ArgumentException();
     if (HeightOf(upstream) % subsamplingHeight != 0) throw new ArgumentException();
     weights = new SubsamplingWeights(subsamplingWidth, subsamplingHeight);
 }
Esempio n. 2
0
 public SubsamplingStep(IList <RectangularStep> upstream, int subsamplingWidth, int subsamplingHeight)
     : base(WidthOf(upstream) / subsamplingWidth,
            HeightOf(upstream) / subsamplingHeight, upstream)
 {
     if (WidthOf(upstream) % subsamplingWidth != 0)
     {
         throw new ArgumentException();
     }
     if (HeightOf(upstream) % subsamplingHeight != 0)
     {
         throw new ArgumentException();
     }
     weights = new SubsamplingWeights(subsamplingWidth, subsamplingHeight);
 }