Code covered by the BSD License  

Highlights from
LISQ - A toolbox for the lifting scheme on 2D quincunx grids

image thumbnail
from LISQ - A toolbox for the lifting scheme on 2D quincunx grids by Paul De Zeeuw
A toolbox for the lifting scheme on 2D quincunx grids and for the computation of moment invariants

m00Q1001(F10, F01)
function val = m00Q1001(F10, F01)
%------------------------------------------------------------------------------
%
% Integrates interpolated gridfunction F on quincunx grid (F10 united with F01)
% where interpolation is assumed piecewise constant.
%
%
% Design and implementation by:
% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl>  http://homepages.cwi.nl/~pauldz/
% Last Revision: December 12, 2000.
%  2000 Stichting CWI, Amsterdam
%------------------------------------------------------------------------------
[hx, hy] = Q1001gridfdims(F10, F01);
Qhxy = 2 * hx * hy;
val = ( sum(sum(F10)) + sum(sum(F01)) ) * Qhxy;
%------------------------------------------------------------------------------

Contact us at files@mathworks.com