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"
#include "IntPS.h"
#include "SetIter.h"

void set (IA_Set<int> a)
{
    if (a.empty()) cout << " empty set ";
    IA_SetIter<int> it(a); int i;
    cout << "{ ";
    while (it(i)) cout <<i<<",";
    cout << " } ";
}    

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;

    cout << "sr71^(1,1) = " << sr71(IA_Point<int> (1,1)) << "\n";

    sr71.restrict_assign(bob);

    cout << "sr71^(1,1) = " << sr71(IA_Point<int> (1,1)) << "\n";

    set(sr71.range());

    exit( 0 );
}
@
