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


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

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

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


desc
@Proram to chop an image into 80-pixel-wide pieces.
@


1.3
log
@updated types
@
text
@// Emacs: -*- C++ -*-
static char test107_rcsid[] = "$Id: test107.c,v 1.2 1994/08/24 00:30:59 monica Exp monica $";

// program to chop an image into smaller fragments.

//
// $Log: test107.c,v $
// Revision 1.2  1994/08/24  00:30:59  monica
// int main & exit(0)
//
//Revision 1.1  1994/02/18  18:44:58  thoth
//Initial revision
//

#include <stdio.h>
#include "IntDI.h"

typedef IA_Image<IA_Point<int>, int>	IntDI;

int main()
{
    IA_Set<IA_Point<int> > 	ps(IA_Point<int> (0,0), IA_Point<int> (99,79));
    IntDI	vi1 = IntDI::read_PGM("xscribble.temp");
    IntDI	temp;

    int	width = vi1.domain().sup()[1];

    char	fname[20];
    for (int i=0; i<width; i+=80) {
      temp = vi1.restrict(ps+IA_Point<int> (0,i));

      sprintf(fname, "logo.x%d", i);
      temp.write_PGM(fname);
    }

    exit(0);
}
@


1.2
log
@int main & exit(0)
@
text
@d2 1
a2 1
static char test107_rcsid[] = "$Id: test107.c,v 1.1 1994/02/18 18:44:58 thoth Exp monica $";
d8 3
d18 1
a18 1
typedef IA_IntDiscreteImage	IntDI;
d22 1
a22 1
    IA_IntPointSet	ps(IA_IntPoint(0,0), IA_IntPoint(99,79));
d30 1
a30 1
      temp = vi1.restrict(ps+IA_IntPoint(0,i));
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
static char test107_rcsid[] = "$Id: test105.c,v 1.1 93/03/10 13:57:00 thoth Exp $";
d7 4
a10 1
// $Log:	test105.c,v $
@
