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
PreviousUpNext
TVec.PixelDownSampleHigh Method (int, TVec, int, int, TVec, TVec)

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

Syntax
C#
Visual Basic
public void PixelDownSampleHigh(int Width, TVec Y, int Index, int Len, TVec X, TVec NX);

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