Usage
classifyCells(classifier,filename="",image=NA,segmentedImage=NA,featuresObjects=NA,paint=TRUE,KS=FALSE,cancerIdentifier=NA, maxShape=NA,minShape=NA,failureRegion=NA,colors=c(),classesToExclude=c(),threshold="otsu",numWindows=2,structures=NA,classifyStructures=FALSE,pixelClassifier=NA,ksToExclude=c())
Arguments
classifier
A Support Vector Machine created by createClassifier or directly by the package e1071
filename
A path to an image file.
image
An 'Image' object or an array.
segmentedImage
An 'Image' object or an array.The corresponding segmented image (created by segmentImage)
featuresObjects
Cell feature file of the segmentedImage (created by segmentImage)
paint
If true, the classified cells are painted with different colors in the image
KS
Use Kernel Smoohter in classification?
cancerIdentifier
A string which describes, how the cancer class is named.
maxShape
Maximum size of cell nuclei
minShape
Minimum size of cell nuclei
failureRegion
minimum size of failure regions
colors
Colors to paint the classes
classesToExclude
Which class should be excluded?
threshold
Which thresholding method should be used, "otsu" or "phansalkar"
numWindows
Number of windows to use for thresholding.
structures
If the image is already segmented, structures can be inserted to enable hierarchical classification.
classifyStructures
Use hierarchical classification. If yes a pixel classifier has to be defined.
pixelClassifier
A SVM to classify pixel based on their color values. Needed if hierarchical classification should be applied.
ksToExclude
These classes are excluded from kernel smoothing.