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


desc
@@


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

#include "Image.h"
#include "FloatDI.h"
#include "IntDI.h"
#include "CplxDI.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>,int> img_int2 = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/sr71rot.pgm");

    IA_Image<IA_Point<int>,int> temp, temp2, thresh;

//    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>,float> tempf, tempf2;

//    IA_Image<IA_Point<int>,u_char> img_uchar = to_uchar(img_int);


    tempf = fabs(img_float);
    if (tempf == img_float) 
	cout << "fabs okay\n";

    tempf = fabs(-1 * img_float);
    if (tempf == img_float) 
	cout << "fabs okay\n";

    tempf = ceil(img_float);
    
    tempf2 = floor(img_float);

    if (tempf >= tempf2)
	cout << "floor and ceil okay\n";

    tempf = exp(img_float);
    cout << "exp of " << img_float(IA_Point<int> (1,1)) << " is " << tempf(IA_Point<int> (1,1)) << "\n";    

    tempf = log(img_float + 1);
    cout << "log of " << img_float(IA_Point<int> (1,1)) << " is " << tempf(IA_Point<int> (1,1)) << "\n";    

    tempf = cos(img_float);
    cout << "cos of " << img_float(IA_Point<int> (1,1)) << " is " << tempf(IA_Point<int> (1,1)) << "\n";    

    tempf = sin(img_float);
    cout << "sin of " << img_float(IA_Point<int> (1,1)) << " is " << tempf(IA_Point<int> (1,1)) << "\n";    

    tempf = tan(img_float);
    cout << "tan of " << img_float(IA_Point<int> (1,1)) << " is " << tempf(IA_Point<int> (1,1)) << "\n";    


    exit(0);
}
@


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