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


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

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


desc
@@


1.2
log
@commented out malloc debug stmts
@
text
@// $Log: test067.c,v $
// Revision 1.1  1994/10/10  16:10:11  monica
// Initial revision
//
// $Id: test067.c,v 1.1 1994/10/10 16:10:11 monica Exp monica $

#include "Image.h"
#include "FloatDI.h"
#include "IntDI.h"
#include "BitDI.h"
#include "UcharDI.h"

//extern "C" malloc_debug();

int main ()
{
    IA::abort_on_throw=0;
    
//    malloc_debug(2);
    // declare images

    IA_Image<IA_Point<int>,int> img_int = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/sr71.pgm");

    IA_Image<IA_Point<int>,IA_Bit> img_bit = to_bit(img_int);
    IA_Image<IA_Point<int>,float> img_float = img_int;
    IA_Image<IA_Point<int>,u_char> img_uchar = to_uchar(img_int);

    cout << img_int.domain().min() << "\n";
    cout << img_int.domain().max() << "\n";
    cout << min(img_int) << "\n";
    cout << max(img_int) << "\n";

    cout << img_bit.domain().min() << "\n";
    cout << img_bit.domain().max() << "\n";
//    cout << min(img_bit) << "\n";
//    cout << max(img_bit) << "\n";

    cout << img_float.domain().min() << "\n";
    cout << img_float.domain().max() << "\n";
    cout << min(img_float) << "\n";
    cout << max(img_float) << "\n";

    cout << img_uchar.domain().min() << "\n";
    cout << img_uchar.domain().max() << "\n";
    cout << min(img_uchar) << "\n";
    cout << max(img_uchar) << "\n";

    if (to_int(img_uchar) == img_int) 
	cout << "equal\n";

    if (to_int(img_float) == img_int) 
	cout << "equal\n";

    exit(0);
}
@


1.1
log
@Initial revision
@
text
@d1 5
a5 2
// $Log$
// $Id$
d19 1
a19 1
    malloc_debug(2);
@
