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

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


desc
@@


1.3
log
@commented out malloc debug stmts
@
text
@// $Log: test063.c,v $
// Revision 1.2  1994/11/04  21:54:55  monica
// *** empty log message ***
//
// * Revision 1.1  1994/10/21  18:52:27  monica
// * Initial revision
// *
// Revision 1.1  1994/09/21  21:48:18  monica
// Initial revision
//
// Revision 1.2  1994/08/31  18:35:45  monica
// updated imagefile location
//
// Revision 1.1  1994/08/31  18:11:32  monica
// Initial revision
//
// $Id: test063.c,v 1.2 1994/11/04 21:54:55 monica Exp monica $

#include "test.h"

//extern "C" malloc_debug();

int main ()
{
    IA::abort_on_throw=0;
    
//    malloc_debug(2);
    // declare images
    
    IA_Image<IA_Point<int>,int> sr71 = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/sr71.pgm");
    
    IA_Image<IA_Point<int>,int> thresh;
    
    cout << "Testing chi_contains\n";
    
#define q(a,astr,b,bstr) p5b(chi_contains,"chi_contains",a,astr,b,bstr)

    stats(sr71);
    thresh = chi_eq(sr71,0);
    cout << "Number of zeros in image: " << sum(chi_eq(sr71,0));
    cout << "\n";
    cout << "Number of ones in image: " << sum(chi_eq(sr71,1));
    cout << "\n";

    q(sr71,"sr71",IA_Set<int>(0,1),"{0,1}");
    q(sr71,"sr71",IA_Set<int>(0),"{0}");
    q(sr71,"sr71",IA_Set<int>(32),"{32}");
    q(sr71,"sr71",sr71.range(),"sr71.range()");

    exit(0);
}

@


1.2
log
@*** empty log message ***
@
text
@d2 3
d17 1
a17 1
// $Id: test063.c,v 1.1 1994/10/21 18:52:27 monica Exp monica $
d27 1
a27 1
    malloc_debug(2);
@


1.1
log
@Initial revision
@
text
@d2 3
d14 1
a14 1
// $Id: test063.c,v 1.1 1994/09/21 21:48:18 monica Exp $
d33 1
a33 1
#define q(a,astr,b,bstr) p5i(chi_contains,"chi_contains",a,astr,b,bstr)
@
