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


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

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

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


desc
@This file should be used to generate the closure files need for
  the sis algorithm.  It currently only does the IDI version.
The UDI version will be a special defintion and should not be
  handled as a closure, see max-min/MM_Specials.c.
The FDI version will be a closure version, but requires abs(FDI).
@


1.3
log
@Added algorithm name to header.  Made spelling and style changes.
@
text
@// closure-sis.c        Section: 3.8
// Threshold Selection Using a Simple Image Statistic
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.
// Closure generator for the simple image statisic algorithm.
//

#include "sis.h"

void rpt_sis( float fmin, float ftau, float fmax ) {

    cerr << "Image minimum: " << fmin << "\t"
	 << "SIS Threshold: " << ftau << "\t"
	 << "maximum: " << fmax << endl;
}


int main() {

    IA_Image<IA_Point<int>,u_char>
	a = IA_Image<IA_Point<int>,u_char>::read_PGM(cin);

    u_char amin( min(a) ), amax( max(a) );

    rpt_sis( amin, sis_threshold(a), amax );
    rpt_sis( amin, sis_threshold( IA_Image<IA_Point<int>,int>(a) ), amax );
    rpt_sis( amin, sis_threshold( IA_Image<IA_Point<int>,float>(a) ), amax );

    return 0;
}
@


1.2
log
@Added support for UDI and FDI images.
@
text
@d2 1
d29 1
a29 1
    exit( 0 );
@


1.1
log
@Initial revision
@
text
@a7 1
#include "UcharDI.h"  // Needed until we add support for UDI in sis.h
d24 1
a24 1
//    rpt_sis( amin, sis_threshold(a), amax );
d26 1
a26 1
//    rpt_sis( amin, sis_threshold( IA_Image<IA_Point<int>,float>(a) ), amax );
@
