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


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

1.4
date	94.09.14.19.45.15;	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.24.00.02.50;	author monica;	state Exp;
branches;
next	1.1;

1.1
date	92.11.12.17.06.07;	author jnw;	state Exp;
branches;
next	;


desc
@First test program
@


1.5
log
@*** empty log message ***
@
text
@// Emacs: -*- C++ -*-
// $Id: test001.c,v 1.4 1994/09/14 19:45:15 monica Exp monica $
static char test001rcsid[] = "$Id: test001.c,v 1.4 1994/09/14 19:45:15 monica Exp monica $";

//
// $Log: test001.c,v $
 //Revision 1.4  1994/09/14  19:45:15  monica
 //*** empty log message ***
 //
 //Revision 1.3  1994/08/24  00:30:59  monica
 //int main & exit(0)
 //
//Revision 1.2  1994/08/24  00:02:50  monica
//added int main & return 0;
//
// Revision 1.1  1992/11/12  17:06:07  jnw
// Initial revision
//

#include <stream.h>

#include <stdlib.h>

#include "IntPointSet.h"
#include "DiscreteImage.h"
#include "ArithDI.h"


int main()
{
    ArithDI<int> im1, im2;
    DiscreteImage<int> di;
    IA_Set<IA_Point<int> > ps;

    ps = IA_Set<IA_Point<int> >(IA_Point<int>(0,0),IA_Point<int>(9,9));

    di = DiscreteImage<int>(1,ps);
    im1 = (ArithDI<int>)di;
    im1 = ArithDI<int>(1,ps);
    im2 = DiscreteImage<int>(2,ps);
    im1 += im2;
    im1 -= im2;
    im1 *= im2;
    im1 /= im2;
    im1 += 1;
    im1 -= 1;
    im1 *= 1;
    im1 /= 1;
    im1 = im1 + im2;
    im1 = im1 - im2;
    im1 = im1 * im2;
    im1 = im1 / im2;
//    im1 = im1 + 1;
//    im1 = im1 - 1;
//    im1 = im1 * 1;
//    im1 = im1 / 1;
    im1 = 1 + im1;
    im1 = 1 - im1;
    im1 = 1 * im1;
    im1 = 1 / im1;
    im1++;
    im1--;
    im1 = - im1;
    cout << (DiscreteImage<int>)im1;

    return 0;
}
@


1.4
log
@*** empty log message ***
@
text
@d2 2
a3 2
// $Id: test001.c,v 1.3 1994/08/24 00:30:59 monica Exp monica $
static char test001rcsid[] = "$Id: test001.c,v 1.3 1994/08/24 00:30:59 monica Exp monica $";
d7 3
@


1.3
log
@int main & exit(0)
@
text
@d2 2
a3 2
// $Id: test001.c,v 1.2 1994/08/24 00:02:50 monica Exp monica $
static char test001rcsid[] = "$Id: test001.c,v 1.2 1994/08/24 00:02:50 monica Exp monica $";
d7 3
@


1.2
log
@added int main & return 0;
@
text
@d2 2
a3 2
// $Id$
static char test001rcsid[] = "$Id: test001.c,v 1.1 1992/11/12 17:06:07 jnw Exp monica $";
d7 3
@


1.1
log
@Initial revision
@
text
@d2 2
a3 1
static char test001rcsid[] = "$Id$";
d6 4
a9 1
// $Log$
d20 1
a20 1
main()
d24 1
a24 1
    IntPointSet ps;
d26 1
a26 1
    ps = IntPointSet(IntPoint(0,0),IntPoint(9,9));
d57 1
@
