createClassifier {CRImage} | R Documentation |
Creates a classifier for a training set.
createClassifier(trainingData, cross = FALSE)
trainingData |
A table, created by segmentImage with manually added classes. |
cross |
Does 10-fold cross validation to test the classifiers performance. |
Topological features include the density of cells and the size of the surrounding cytoplasma of a cell. These features depend on the size of the image. If training image and the image to classify have different size, these features can fool the classification and should not be enabled.
A List containing:
classifier |
The classifier |
performance |
cross validation performance |
Henrik Failmezger, failmezger@mpipz.mpg.de
'createTrainingSet','classifyCells'
f = system.file("extdata", "trainingData.txt", package="CRImage") #read training data trainingData=read.table(f,header=TRUE) #create classifier classifier=createClassifier(trainingData)[[1]]