You are here: Symbol Reference > MtxVec Namespace > Classes > TVec Class > public > PixelDownSampleHigh Method > TVec.PixelDownSampleHigh Method (integer, TVec, integer, integer, TVec, TVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
TVec.PixelDownSampleHigh Method (integer, TVec, integer, integer, TVec, TVec)

Downsample the vectors Y and (optionaly) X starting at position Index and for Len samples.

Pascal
procedure PixelDownSampleHigh(Width: integer; Y: TVec; Index: integer; Len: integer; X: TVec = nil; NX: TVec = nil); overload;

The method downsamples only the maximum values. This can be usefull, if the input is already a downsampled signal which has to be further downsampled.

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;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!