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


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

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

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


desc
@Initial version of the Salt-and-Pepper noise removal algorithm.
@


1.3
log
@Added standard section header.
@
text
@// test-snp.c           Section: 5.4, Salt-and-Pepper Noise Removal
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.
// A filter program to test the Salt-and-Pepper-Noise-Reduction algorithm


#include "UcharDI.h"
#include "snp.h"
#include "shaped-pointset.h"


int main() {

    // Read in the image

    IA_Image<IA_Point<int>,IA_Bit>
	inImage( to_bit( read_uchar_PGM( cin ) ) );

    // Write the result on standard out

    IA_Image<IA_Point<int>,u_char> (
	snp( inImage ) ).write_PGM( cout );

    return 0;
}
@


1.2
log
@Modified includes to be iac++ 2.0 compliant.
@
text
@d1 1
a1 1
// test-snp.c           Section: 5.4
d24 1
a24 1
    exit( 0 );
@


1.1
log
@Initial revision
@
text
@d12 1
a12 1
void main() {
d23 2
@
