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


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

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


desc
@This is the special definition file to implement the sis algorithm
  for UDI images.  It simply calls the IDI version and then
  casts the result back to an u_char value.
@


1.2
log
@Added algorithm name to header.  Made spelling and style changes.
@
text
@// sis_Specials.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.
// Special definitions for the sis function.
//

#include "sis.h"

// A special definition for this function, as per
//       The C++ Programming Language, p. 272
// Here is the special definition for u_char ....
//

// IA_Image<P,u_char> is a special case because the template has
//   -1 values, which, of course, u_char can not hold.

u_char
sis_threshold( const IA_Image<IA_Point<int>,u_char> & a ) {

    return
	u_char( sis_threshold( IA_Image<IA_Point<int>,int>( a ) ) );
}
@


1.1
log
@Initial revision
@
text
@d2 1
@
