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


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

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


desc
@Initial version of the binary image boundaries algorithms.
 Note four versions are available,
   [interior|exterior]x[4|8]-boundary.  However they
  IA_Bit valued images.
@


1.2
log
@Added algorithm name to header.  Made spelling and style changes.
@
text
@// test-bib.c           Section: 4.2  Binary Image Boundaries
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.

#include "UcharDI.h"
#include "bib.h"


int  main() {
//  Read in the image.

    IA_Image<IA_Point<int>,IA_Bit>
	inImage = read_PBM( cin );

    IA_Image<IA_Point<int>,u_char>
	resultImage;


// (1) Exterior 8-boundary calculation and output
    cout << "Calculating exterior 8-boundary...";

    resultImage = exterior_8_boundary( inImage );

    cout << "display called, returned: "
	 << display( resultImage ) << endl;


// (2) Interior 8-boundary calculation and output
    cout << "Calculating interior 8-boundary...";

    resultImage = interior_8_boundary( inImage );

    cout << "display called, returned: "
	 << display( resultImage ) << endl;


// (3) Exterior 4-boundary calculation and output
    cout << "Calculating exterior 4-boundary...";

    resultImage = exterior_4_boundary( inImage );

    cout << "display called, returned: "
	 << display( resultImage ) << endl;


// (4) Interior 4-boundary calculation and output
    cout << "Calculating interior 4-boundary...";

    resultImage = interior_4_boundary( inImage );

    cout << "display called, returned: "
	 << display( resultImage ) << endl;

    return 0;
}
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
// test-bib.c           Section: 4.2
d9 1
a9 2
void main()
{
d13 1
a13 1
	inImage( to_bit( read_uchar_PGM( cin ) ) );
d53 2
@
