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.24.00.02.50;	author monica;	state Exp;
branches;
next	1.1;

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


desc
@@


1.3
log
@int main & exit(0)
@
text
@// Emacs: -*- C++ -*-
// $Log: test023.c,v $
//Revision 1.2  1994/08/24  00:02:50  monica
//added int main & return 0;
//
//Revision 1.1  1994/08/23  20:18:35  monica
//Initial revision
// $Id: test023.c,v 1.2 1994/08/24 00:02:50 monica Exp monica $
// image_example.01.c     Read a PGM file and display it

#include "test.h"


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

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

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

    cout << "Domain infimum is:  " << im1.domain().inf() << ".\n"
	 << "Domain supremum is: " << im1.domain().sup() << ".\n";

    im2 = to_uchar(im1);
    // im1 is converted to an IA_UcharDiscreteImage
    // whose value is assigned to im2

    im2 = max(im2) - im2;  // This inverts the sense of the values in im2.

//    display( im2 );
    exit(0);
}




@


1.2
log
@added int main & return 0;
@
text
@d3 3
d8 1
a8 1
// $Id: test023.c,v 1.1 1994/08/23 20:18:35 monica Exp monica $
d37 1
a37 1
    return 0;
@


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