Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/createClassifier.R
Creates a classifier for a training set.
1 | 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'
1 2 3 4 5 | f = system.file("extdata", "trainingData.txt", package="CRImage")
#read training data
trainingData=read.table(f,header=TRUE)
#create classifier
classifier=createClassifier(trainingData)[[1]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.