{ } Raw JSON

bundles / skimage latest / skimage / future / trainable_segmentation / TrainableSegmenter

class

skimage.future.trainable_segmentation:TrainableSegmenter

source: /dev/scikit-image/src/skimage/future/trainable_segmentation.py:15

Signature

class TrainableSegmenter(clf = None, features_func = None)

Members

Summary

Estimator for classifying pixels.

Parameters

clf : classifier object, optional

classifier object, exposing a fit and a predict method as in scikit-learn's API, for example an instance of RandomForestClassifier or LogisticRegression classifier.

features_func : function, optional

function computing features on all pixels of the image, to be passed to the classifier. The output should be of shape (m_features, *labels.shape). If None, skimage.feature.multiscale_basic_features is used.

Methods

compute_features
fit
predict

Aliases

  • skimage.future.TrainableSegmenter