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


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

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

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


desc
@@


1.3
log
@commented out malloc debug stmts
@
text
@// $Log: test068.c,v $
// Revision 1.2  1994/11/10  15:59:05  monica
// *** empty log message ***
//
// Revision 1.1  1994/10/10  16:10:24  monica
// Initial revision
//
// $Id: test068.c,v 1.2 1994/11/10 15:59:05 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>,float> tempf;

//    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);

    temp = pseudo_div(img_int, img_int);

    thresh = chi_gt(img_int, 0);

    if (thresh == temp) 
        cout << "pseudo_div equal\n";

    temp = isqrt(img_int);
    cout << "square root of " << img_int(IA_Point<int> (1,1)) << " is " << temp(IA_Point<int> (1,1)) << "\n";

    temp = sqr(img_int);
    cout << "square of " << img_int(IA_Point<int> (1,1)) << " is " << temp(IA_Point<int> (1,1)) << "\n";    

    tempf = sqrt(IA_Image<IA_Point<int>,float> (img_int));
    cout << "square root of " << img_int(IA_Point<int> (1,1)) << " is " << tempf(IA_Point<int> (1,1)) << "\n";

    temp = max(img_int, img_int2);

    temp = min(img_int, img_int2);

    temp = max(img_int, img_int);
    if (img_int == temp) 
        cout << "max equal\n";

    temp = min(img_int, img_int);
    if (img_int == temp) 
        cout << "min equal\n";

    temp = transpose(img_int);
    temp2 = transpose(temp);
    if (temp2 == img_int) 
        cout << "transpose twice equal\n";
   
    temp = img_int - 50;
    thresh = chi_lt(temp, 0);
    temp2 = temp * (-1 * thresh);
    if (temp2 == abs(temp))
	cout <<"abs equal\n";

    exit(0);
}
@


1.2
log
@*** empty log message ***
@
text
@d2 3
d8 1
a8 1
// $Id: test068.c,v 1.1 1994/10/10 16:10:24 monica Exp monica $
d23 1
a23 1
    malloc_debug(2);
@


1.1
log
@Initial revision
@
text
@d1 5
a5 2
// $Log$
// $Id$
d28 1
d46 3
@
