NAME
sct_split_segment - performs Spherical Coordinate Transform
segmentation
SYNOPSIS
#include "CVIPcolor.h"
#include "CVIPdef.h"
#include "SCTsplit.h"
Image *sct_split_segment (Image *imgP, int A_split, int
B_split)
<imgP> - address of pointer to Image structure
<A_split> - number of colors to divide along angle A
<B_split> - number of colors to divide along angle B
PATH
$CVIPHOME/SEGMENTATION/sct_split.c
DESCRIPTION
The Spherical Coordinate Transform segmentation algorithm
(SCT/Center split) was developed for use in the identifica-
tion of variegated coloring in skin tumor images. The algo-
rithm maps RGB data into a space defined by two angles and
an intensity measure. Then the subspace, defined by the
minimums and maximums on the two angles, is equally divided
along each axis, using the two input parameters, A_split and
B_split.
TYPES AND CONSTANTS
RETURN VALUES
The segmented image.
EXAMPLE
#include "CVIPtoolkit.h"
#include "CVIPconvert.h"
#include "CVIPcolor.h"
#include "CVIPdef.h"
#include "sct_split.h"
void main()
{
Image *cvipImage;
IMAGE_FORMAT format;
char *inputfile, *outputfile;
int Asplit, Bsplit;
setDisplay_Image("picture", "Default");
print_CVIP("\n\t\tEnter the Input File Name: ");
inputfile =(char *) getString_CVIP();
cvipImage = read_Image(inputfile, 1);
view_Image(cvipImage, inputfile);
Asplit = Bsplit = 3;
cvipImage = sct_split_segment(cvipImage, Asplit, Bsplit);
print_CVIP("\n\t\tEnter the Output File Name: ");
outputfile = getString_CVIP();
view_Image(cvipImage, outputfile);
format = getFileFormat_Image(cvipImage);
write_Image(cvipImage,outputfile,CVIP_NO,CVIP_NO,format,1);
free(inputfile);
free(outputfile);
}
BUGS
None at this time
SEE ALSO
libsegment
AUTHOR
Copyright (C) 1995 SIUE - by Scott Umbaugh and Kun Luo.