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
@ci *.expected
@


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

#include "SetIter.h"
#include "test.h"

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

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;

    infsup(bob);
    infsup(sr71);

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

    cout << "\nrange of bob image ";
    set(bob.range());

    cout << "\nrange of sr71 image ";
    set(sr71.range());

    cout << "\nrange of bob.extend(sr71) image ";
    set(temp.range());

    cout << "\nrange of sr71.extend(bob) image ";
    set(sr71.extend(bob).range());

    exit( 0 );
}
@
