NAME

     predicate_test  -  function  used  to   set   criteria   for
     split_merge_generic routine

SYNOPSIS

      #include <stdio.h>
      #include <stdlib.h>
      #include "CVIPdef.h"
      #include "CVIPtoolkit.h"
      #include "split_merge.h"
      #include "CVIPtexture.h"

     static  CVIP_BOOLEAN  predicate_test(Image  *srcImage,  QUAD
     *quadROI, void *paramP)

      <srcImage> - pointer to Image structure
      <quadROI> - pointer to QUAD structure
      <paramP> - pointer to any other parameters needed
                 (in this case an array containing the
                  global mean of each data band)

PATH

     $CVIPHOME/SEGMENTATION/split_merge.c

DESCRIPTION

     An example  predicate  test  module  to  be  used  with  the
     split_merge_generic(...)  routine. This predicate test func-
     tion will return a value of CVIP_YES if the  region  pointed
     to  by  <quadROI>  is  completely uniform, and will return a
     value of CVIP_NO if the region exhibits any form of  nonuni-
     formity

     There are currently six  predicate  test  routines  provided
     with  split_merge_segment. mean_test gives an example of the
     function prototype for these routines.

TYPES AND CONSTANTS


RETURN VALUES

     CVIP_YES or CVIP_NO.

BUGS

     None at this time

SEE ALSO

     libsegment,    split_merge_generic,     split_merge_segment,
     quadtree2ras, mean_test

AUTHOR

     Copyright (C) 1995 SIUE - by Scott Umbaugh and Greg Hance.