You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > PixelDownSampleHigh Method > TVec.PixelDownSampleHigh Method (int, TVec, int, int, TVec, TVec)
Dew Math for .NET
ContentsIndexHome
Example
var a,b,c,d,High,Low: TVec; begin CreateIt(a,b,c,d); CreateIt(High,Low); try a.SetIt(False,[0,0,0,1,2,3,1,2,3]); b.PixelDownSample(4,a); High.Demultiplex(b,2,0); Low.Demultiplex(b,2,1); c.PixelDownSampleHigh(2,High); //further downsample d.PixelDownSampleLow(2,Low); //further downsample b.Size(2*c.Length); b.Multiplex(c,2,0); b.Multiplex(d,2,1); //b now contains the same result, as if we would have called //on the start: b.PixelDownSample(2,a); finally FreeIt(a,b,c,d); FreeIt(High,Low); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.