You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > Filter2D Method > TMtx.Filter2D Method (TMtx, TMtx, TMtxRect, TMtxPoint, TVecInt)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.Filter2D Method (TMtx, TMtx, TMtxRect, TMtxPoint, TVecInt)

Applies 2D filtering.

Pascal
function Filter2D(const Src: TMtx; const Kernel: TMtx; const SrcRect: TMtxRect; const KernelAnchor: TMtxPoint; const Buffer: TVecInt = nil): TMtx; overload;

The result is stored in to the calling object. The size of the calling object is set to match SrcRect dimensions. 

Important: The allocated size of the destination will never be overwritten, but the value of samples on the edge of the Dst matrix could be computed from elements outside of the Src thus making them appear to be random, because uninitialized memory was being referenced, if the parameters are not set carefully.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!