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


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


desc
@@


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

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

#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)
{
    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;

    cout << IA_Image<IA_Point<int>, u_char> (to_uchar(cone));

    exit(0);
}



@
