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


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

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


desc
@@


1.2
log
@int main & exit(0)
@
text
@// Emacs: -*- C++ -*-
// $Log: test009.c,v $
//Revision 1.1  1994/08/23  20:16:05  monica
//Initial revision
// $Id: test009.c,v 1.1 1994/08/23 20:16:05 monica Exp monica $
// test009.c     Image constructors

#include "test.h"

class clos : public IA_ClosureI<IA_Point<int>, int> {
  public:
    clos(IA_Set<IA_Point<int> > ps) 
    :IA_ClosureI<IA_Point<int>,int>(ps) {}

    int operator()(const IA_Point<int> &) const { return 0; }

    IA_ClosureI<IA_Point<int>,int>* clone_self() const { return 0; }
};

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");

    // test the image constructor using a IA_ClosureI instance
    clos  im2(im1.domain());

    cout<<"\nimage has "<<im2(IA_Point<int>(0,0))<<"\n";
//    stats(im2);

    
    exit(0);
}





@


1.1
log
@Initial revision
@
text
@d2 4
a5 1
// $Log$ $Id$
d20 1
a20 1
main() 
d36 1
@
