head	1.5;
access
	monica
	thoth;
symbols;
locks; strict;
comment	@// @;


1.5
date	94.11.10.19.40.19;	author monica;	state Exp;
branches;
next	1.4;

1.4
date	94.10.24.19.53.16;	author monica;	state Exp;
branches;
next	1.3;

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

1.2
date	94.08.18.22.17.06;	author thoth;	state Exp;
branches;
next	1.1;

1.1
date	93.02.20.16.49.59;	author thoth;	state Exp;
branches;
next	;


desc
@test image subtraction.
@


1.5
log
@commented out malloc debug stmts
@
text
@// Emacs: -*- C++ -*-
static char test002rcsid[] = "$Id: test103.c,v 1.4 1994/10/24 19:53:16 monica Exp monica $";

//
// $Log: test103.c,v $
// Revision 1.4  1994/10/24  19:53:16  monica
// updated type names
//
// Revision 1.3  1994/08/24  00:30:59  monica
// int main & exit(0)
//
//Revision 1.2  1994/08/18  22:17:06  thoth
//incomplete updating.
//
// Revision 1.1  93/02/20  16:49:59  thoth
// Initial revision
// 

#include	<fstream.h>
//#include	<malloc.h>

#include	"IntPS.h"
#include	"IntDI.h"
typedef IA_Image<IA_Point<int>, int>	IntDI;
//#include	"with-ia-pointset.h"


int main(int argc, char **argv)
{
    // malloc_debug(2);

    if (argc!=3) {
	cerr << "requires 2 arguments";
	exit(1);
    }

    IntDI	i1,i2;
    
#if 0
    read(argv[1],i1);
    read(argv[2],i2);
#else
    {
	ifstream	i(argv[1]);
	i1 = IntDI::read_PGM(i);
    }
    {
	ifstream	i(argv[2]);
	i2 = IntDI::read_PGM(i);
    }
#endif

#if 1
    IA_Set<IA_Point<int> >	common(i1.domain()&i2.domain());
    i1 = i1.restrict(common);
    i2 = i2.restrict(common);

    IntDI	i3 = i1-i2;
#if 0
    write(i3, "foo.pgm");
#else
    i3.write_PGM(cout);
#endif
#endif

    exit(0);
}
@


1.4
log
@updated type names
@
text
@d2 1
a2 1
static char test002rcsid[] = "$Id: test103.c,v 1.3 1994/08/24 00:30:59 monica Exp monica $";
d6 3
d20 1
a20 1
#include	<malloc.h>
@


1.3
log
@int main & exit(0)
@
text
@d2 1
a2 1
static char test002rcsid[] = "$Id: test103.c,v 1.2 1994/08/18 22:17:06 thoth Exp monica $";
d6 3
d19 1
a19 1
#include	"IntPointSet.h"
d21 1
a21 1
typedef IA_IntDiscreteImage	IntDI;
d51 1
a51 1
    IA_IntPointSet	common(i1.domain()&i2.domain());
d57 1
a57 1
    write(i3, "shit.pgm");
@


1.2
log
@incomplete updating.
@
text
@d2 1
a2 1
static char test002rcsid[] = "$Id: test103.c,v 1.1 93/02/20 16:49:59 thoth Exp Locker: thoth $";
d5 4
a8 1
// $Log:	test103.c,v $
d59 2
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
static char test002rcsid[] = "$Id: test100.c,v 1.1 92/11/14 09:45:50 jnw Exp Locker: jnw $";
d5 4
a8 1
// $Log:	test100.c,v $
a13 3
#if 1
#include	"IntDiscreteImage.h"
#else
a14 1
#endif
d16 1
a16 1
#include	"with-ia-pointset.h"
d45 1
a45 1
    IntPointSet	common(i1.domain()&i2.domain());
@
