head	1.1;
access;
symbols;
locks; strict;
comment	@// @;


1.1
date	94.08.26.03.12.06;	author rjj;	state Exp;
branches;
next	;


desc
@Just putting this under control, it has not be reworked for v2.0
@


1.1
log
@Initial revision
@
text
@
#include "IntDDTempl.h"
#include "IntDiscreteImage.h"

main() {

   // Point Set for Von-Neumann template, target point is assumed to be (0,0)

    IA_IntPointSet vn_pointset;
    vn_pointset  = IA_IntPointSet(IA_IntPoint(0, -1), IA_IntPoint(0,1));
    vn_pointset ^= IA_IntPoint(-1,0);
    vn_pointset ^= IA_IntPoint(1,0);

    // Definition of a base image, used to construct the template
    // The template has 1 as weight values

    IA_IntDiscreteImage vn_image = IA_IntDiscreteImage(vn_pointset, 1);

    // Definition of Von-Neumann template, based on vn_image

    IA_IntDDTemplate vn_template = IA_IntDDTemplate(2, vn_image);

    IA_IntDiscreteImage i = IA_IntDiscreteImage::read_PGM(cin);

    // Linear product is calculated, result has same domain as image i

    IA_IntDiscreteImage j = linear_product(i, vn_template, i.domain())/5;

    j.write_PGM(cout);

}
@
