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


1.3
date	94.10.25.22.02.35;	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.19.00.11;	author thoth;	state Exp;
branches;
next	;


desc
@comprehensive definition of a FloatDI.
@


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

//
// test floatdiscreteimage with a P->V function
//

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

#include <iostream.h>
#include <math.h>

#include "FloatDI.h"
#include "UcharDI.h"

float conef (const IA_Point<int> &ip)
{
  return ip.enorm();
}

int main(int argc, char ** argv)
{
    char	*disp=getenv("DISPLAY");
    if (disp==0) {
	cerr << "No DISPLAY environment variable, hasta.\n";
	exit(1);
    }

    IDP::ClientID	cid;
    cid = IDP::NewClient("iac++ test013");

    IDP::LinkID		lid;
    lid = IDP::CreateDisplay(cid, disp, IDP::READ_WRITE);

    IA_Point<int>	bounds(64,64);
    IA_Image<IA_Point<int>, float>	cone(IA_Set<IA_Point<int> >(-bounds, bounds), conef);

    cone /= 10;
    cone = compose(sin, cone) + 1;
    cone *= 127;

    IA_Image<IA_Point<int>, u_char> (to_uchar(cone)) .IDM_display(lid, "original");

    exit(0);
}


@


1.2
log
@int main & exit(0)
@
text
@d2 1
a2 1
static char test114_rcsid[] = "$Id: test114.c,v 1.1 1994/02/18 19:00:11 thoth Exp monica $";
d10 3
d23 1
a23 1
float conef (const IA_IntPoint &ip)
d42 2
a43 2
    IA_IntPoint	bounds(64,64);
    IA_FloatDiscreteImage	cone(IA_IntPointSet(-bounds, bounds), conef);
d49 1
a49 1
    IA_UcharDiscreteImage(to_uchar(cone)) .IDM_display(lid, "original");
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
static char test114_rcsid[] = "$Id: test105.c,v 1.1 93/03/10 13:57:00 thoth Exp $";
d9 4
a12 1
// $Log$
d48 1
d50 2
@
