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


1.3
date	94.08.24.00.30.59;	author monica;	state Exp;
branches;
next	1.2;

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

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


desc
@@


1.3
log
@int main & exit(0)
@
text
@// Emacs: -*- C++ -*-
// $Log: test010.c,v $
//Revision 1.2  1994/08/23  19:06:53  monica
//added rcs tags
// $Id: test010.c,v 1.2 1994/08/23 19:06:53 monica Exp monica $

// test010.c     Image constructors

#include "test.h"

IA_Point<int> parray[10];
int varray[10];

int dumb( const IA_Point<int>  &ip) {return 1;}

int main() 
{
    // we want to continue through any throws that may occur.
    IA::abort_on_throw=0;

    // declare an image

    IA_Image<IA_Point<int>,int> im1 = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/sr71.pgm");
    stats(im1);
    IA_Image<IA_Point<int>,int> im2;
    IA_Set<IA_Point<int> > ps = im1.domain();
    for ( int i = 0; i < 10; i++) {
	varray[i] = i;
	parray[i] = IA_Point<int> (i,i);
    };
    im2 = IA_Image<IA_Point<int>,int>( parray, 10, varray, 10 );
    stats(im2);

    int *arr;
    arr = new int[4096];
    IA_Image<IA_Point<int>,int> im3;
    for ( i = 0; i < 4096; i++) {
	arr[i] = i;
    };
    im3 = IA_Image<IA_Point<int>,int>(ps, arr, 4096);    

    stats(im3);
    
    exit(0);
}
@


1.2
log
@added rcs tags
@
text
@d2 4
a5 1
// $Log$ $Id$
d16 1
a16 1
main() 
d44 1
@


1.1
log
@Initial revision
@
text
@d2 1
@
