head	1.1;
access
	monica
	thoth;
symbols;
locks
	monica:1.1; strict;
comment	@// @;


1.1
date	94.11.10.15.59.05;	author monica;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@// test numerous image member functions

#include "test.h"

int plus(int i, int j)
{
    return i + j;
}

int main()
{
    IA_Image<IA_Point<int>, int>
	sr71 = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/sr71.pgm");

    IA_Image<IA_Point<int>, int>
	bob = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/bob.pgm");

    IA_Image<IA_Point<int>, int> temp, temp2;

    temp = bob.extend(sr71);
    cout << temp;

    temp = sr71.restrict(bob.domain());
    cout << temp;

    temp = sr71.restrict(IA_Set<int>(0,1,2,3));
    cout << temp;

    cout << "\nreduction_value =" << bob.reduce(plus, 0);
    cout << "\nSum result =" << sum(bob);

    cout << "\nreduction_value =" << temp.reduce(plus, 0);
    cout << "\nSum result =" << sum(temp) << "\n";

    exit( 0 );
}
@
