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


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

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

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


desc
@@


1.3
log
@*** empty log message ***
@
text
@// Emacs: -*- C++ -*-
// $Log: test007.c,v $
// Revision 1.2  1994/08/24  00:30:59  monica
// int main & exit(0)
//
// Revision 1.1  1994/08/23  23:20:16  monica
// Initial revision
// $Id: test007.c,v 1.2 1994/08/24 00:30:59 monica Exp monica $

// test007.c     Image constructors

#include "test.h"

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





    // construct an image and then read it in

    IA_Image<IA_Point<int>,int> im1;	
                // im1 is an uninitialized image whose
    		// pixel values of type int

    stats(im1);

    im1 = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/sr71.pgm");

    stats(im1);

    IA_Image<IA_Point<int>,int> im2;
                // im2 is an uninitialized image whose
    		// pixel values of type int

    stats(im2);

    // copy constructor

    im2 = IA_Image<IA_Point<int>,int>(im1);

    stats(im2);

    // constructor for constant valued image
    
    im2 = IA_Image<IA_Point<int>,int>(im1.domain(), 15);
    cout<<"15="<<max(im2)<<"\n";
    cout<<"15="<<min(im2)<<"\n";

    // constructor using a pointset, array of values, number of values, 
    // optional storage mgmt flag

    int ar[10];
    ar[5] = 6;
    im2 = IA_Image<IA_Point<int>,int>(im1.domain(), ar ,10);
    cout<<"6="<<im2[5]<<"\n";

    exit(0);

}
@


1.2
log
@int main & exit(0)
@
text
@d3 6
a8 3
 * Revision 1.1  1994/08/23  23:20:16  monica
 * Initial revision
 * $Id: test007.c,v 1.1 1994/08/23 23:20:16 monica Exp monica $
@


1.1
log
@Initial revision
@
text
@d2 4
a5 1
// $Log$ $Id$
d11 1
a11 1
main() 
d57 2
@
