procedure PixelDownSample(const Dst: TMtx; Pixels: Integer; mode: TPixelDownSample);
Reduces dense matrix for screen display (bitmap) to show the non-zero pattern.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TMtx | |
| 2 | Pixels | Integer | |
| 3 | mode | TPixelDownSample |
Result: stored in self (calling object)
Remarks:
Creates a reduced size Dst dense matrix for screen display (bitmap) to show the non-zero pattern. Pixels parameter defines the target number of pixels to reduce TSparseMtx.Rows and TSparseMtx.Cols to. The Mode parameter defines how reduced matrix will be constructed.
Examples
Uses MtxExpr, Sparse, MtxVecTee;
var SparseA: TSparseMtx;
GridSeries: TMtxGridSeries;
v1,v2: Vector;
A: Matrix;
begin
// ...
SparseA.Size(7500,4000,4000,false);
SparseA.RandomSparse(v1,v2);
SparseA.PixelDownSample(A);
DrawValues(A,GridSeries); // showing A
end;
See Also: TPixelDownSample