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


1.3
date	94.09.19.15.28.06;	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.13.14;	author monica;	state Exp;
branches;
next	;


desc
@@


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

// test006.c     Image constructors

#include "test.h"

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

    // construct all uninitialized image types using an integer point set
    // using the constructors

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

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

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

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

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

    IA_Image<IA_Point<int>,u_char> 
	im6;	// im6 is an uninitialized image whose
                // pixel values of type unsigned char

    // construct an uninitialized float point set based double valued image

//??    IA_Image<IA_Point<double>,float> 
//??	im7;	// im7 is an uninitialized image whose
                // pixel values of type float

//??    stats(im1);
    stats(im2);
//??    stats(im3);
    stats(im4);
    stats(im5);
    stats(im6);
//??    stats(im7);


    // im5 is initialized from the standard input stream
    im5 = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/sr71.pgm");

    cout<<"IMAGE after initialized by read_int_PGM\n";
    stats(im5);

    im6 = to_uchar(im5);
    // im5 is converted to an IA_UcharDiscreteImage
    // whose value is assigned to im6

    im6 = max(im6) - im6;  // This inverts the sense of the values in im6.
    
    cout<<"IMAGE converted to uchar\n";
    stats(im6);

//    display( im6 );

    exit(0);
}
@


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


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