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


1.2
date	94.11.10.19.40.19;	author monica;	state Exp;
branches;
next	1.1;

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


desc
@@


1.2
log
@commented out malloc debug stmts
@
text
@// $Log: test065.c,v $
// Revision 1.1  1994/10/24  18:55:25  monica
// Initial revision
//
// $Id: test065.c,v 1.1 1994/10/24 18:55:25 monica Exp monica $

#include "test.h"
#include "IntPS.h"

//extern "C" malloc_debug();

int main ()
{
    IA::abort_on_throw=0;
    
//    malloc_debug(2);
    // declare images

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

    IA_Array<int> arr = temp.value_array();
    IA_Set<IA_Point<int> > ps = temp.domain();

    cout << ps.min() << "\n";
    cout << ps.max() << "\n";

    cout << arr[0] << "\n";
    cout << temp(IA_Point<int>(0,0)) << "\n";
    
    cout << temp(IA_Point<int>(0,0)) << "\n";
    cout << temp(IA_Point<int>(63,63)) << "\n";
    
    int idx = 0;
    int tempa;
    IA_IVIter<IA_Point<int>, int> itera(temp);

    while (itera(tempa)) {
	if (arr(idx) != tempa)
		cout << "error at index " << idx;
	idx++;
    };

    exit(0);
}






@


1.1
log
@Initial revision
@
text
@d1 5
a5 2
// $Log$
// $Id$
d16 1
a16 1
    malloc_debug(2);
@
