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


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

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


desc
@Test program for the rolling-ball algorithm.  It requires one
  cmd line parameter, the ball diameter.  It uses the semi-sphere-image()
  function (via the rolling_ball() function) as the only
  structuring element shape.
@


1.2
log
@Added standard section header.
@
text
@// test-rolling-ball.c  Section: 5.7, The Rolling Ball Algorithm
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.

// Test program for the rolling ball application.

#include "rolling-ball.h"

int main( int argc, char * argv[] ) {

    if ( argc == 1 ) {
	cerr << "Usage: " << endl
	     << "\t" << argv[0]
	     << "  ball-radius-value-can-be-float"
	     << " > output.pgm"
	     << endl;
	return 1;
    }


    IA_Image<IA_Point<int>,u_char> image( read_uchar_PGM( cin ) );

    double radius( atof( argv[1] ) );
    cerr << "Using a ball with radius = " << radius << endl;

    image = rolling_ball( image, radius );

    image.write_PGM( cout );

    return 0;
}
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
// test-rolling-ball.c  Section: 5.7
d9 1
a9 1
void main( int argc, char * argv[] ) {
d17 1
a17 1
       exit( 1 );
d30 1
a30 1
    exit( 0 );
@
