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


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


desc
@@


1.1
log
@Initial revision
@
text
@// $Id$

#include <iostream.h>
#include <IntDI.h>

typedef IA_Image<IA_Point<int>,int>   IA_IntDiscreteImage;
typedef IA_Set<IA_Point<int> > IA_IntPointSet;
typedef IA_Point<int> IA_IntPoint;

int main()
{
  IA_IntDiscreteImage	img(IA_IntPointSet(IA_IntPoint(1,1),
					   IA_IntPoint(3,4)),
			    2);
  IA_IntDiscreteImage	bigger(IA_IntPointSet(IA_IntPoint(2,3),
					   IA_IntPoint(5,4)),
			    1);

  IA_IntDiscreteImage	i2 = img.extend(bigger);
  cout << i2.domain().card() << endl;
  cout << i2.domain().min() << endl;
  cout << i2.domain().max() << endl;
  cout << min(i2) << endl;
  cout << max(i2) << endl;

  cout << "\n" << i2 << "\n";

  i2 = img.restrict(IA_Set<IA_Point<int> > (IA_Point<int>(1,1), IA_Point<int>(10,10)));
  cout << i2.domain().card() << endl;
  cout << i2.domain().min() << endl;
  cout << i2.domain().max() << endl;

  exit(0);
}

@
