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


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

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


desc
@@


1.2
log
@commented out malloc debug stmts
@
text
@// $Log: test066.c,v $
// Revision 1.1  1994/10/10  16:09:57  monica
// Initial revision
//
// $Id: test066.c,v 1.1 1994/10/10 16:09:57 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> temp = read_int_PGM("/cis/research/iac++/depot/src/test_image/RCS/sr71.pgm");
    IA_Image<IA_Point<int>,int> img2, img3;

    cout << temp.domain().min();
    cout << temp.domain().max();

    img2 = temp.translate((IA_Point<int> (0,0)));

    cout << img2.domain().min();
    cout << img2.domain().max();

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

    img3 = temp.translate((IA_Point<int> (10,100)));
    img2 = img3.translate((IA_Point<int> (-10, -100)));

    cout << img2.domain().min();
    cout << img2.domain().max();

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

    img3 = temp.translate((IA_Point<int> (-100,-90)));
    img2 = img3.translate((IA_Point<int> (100,90)));

    cout << img2.domain().min();
    cout << img2.domain().max();

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

    exit(0);
}
@


1.1
log
@Initial revision
@
text
@d1 5
a5 2
// $Log$
// $Id$
d15 1
a15 1
    malloc_debug(2);
@
