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


1.3
date	95.01.06.06.20.03;	author rjj;	state Exp;
branches;
next	1.2;

1.2
date	94.06.05.02.40.29;	author rjj;	state Exp;
branches;
next	1.1;

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


desc
@Test file for the walsh transform.
@


1.3
log
@Added standard header, return 0, usage of read_uchar_PGM().
@
text
@// test-walsh.c         Section: 8.5, Walsh Transform
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.
//
// Test the Fast Walsh transform using spatial transforms
//


#include "UcharDI.h"
#include "walsh.h"

int main() {
    // Read in the image
    IA_Image<IA_Point<int>,u_char>
	e = read_uchar_PGM(cin);

    IA_Image<IA_Point<int>,float>
	x(e);  // Convert to a float image

    x = walsh(x);                    // Calculate the walsh
    x = walsh_inv(x);                // Reverse effect to see it worked

    IA_Image<IA_Point<int>,u_char>( to_uchar(x) ).write_PGM(cout);

    return 0;
}
@


1.2
log
@Type names harmonized to v1.0 standards.
Standard header adopted.
@
text
@d1 1
a1 1
// test-walsh.c
d4 1
d9 1
a10 1
#include "UcharDI.h"
d12 1
a12 2

main() {
d15 1
a15 1
	e = IA_Image<IA_Point<int>,u_char>::read_PGM(cin);
d24 2
@


1.1
log
@Initial revision
@
text
@d1 4
a4 3
// Emacs: -*- C++ -*-
// walsh-test.c
//         Test the Fast Walsh transform using spatial transforms
a6 1
static char rcsid[] = "$Id$";
d9 1
d14 2
a15 1
    IA_IntDiscreteImage e = IA_IntDiscreteImage::read_PGM(cin);
d17 2
a18 1
    IA_FloatDiscreteImage x(e);  // Convert to a float image
d23 1
a23 1
    IA_UcharDiscreteImage( to_uchar(x) ).write_PGM(cout);
@
