{ } Raw JSON

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

function

skimage.future.trainable_segmentation:TrainableSegmenter.predict

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

Signature

def predict(self, image)

Summary

Segment new image using trained internal classifier.

Parameters

image : ndarray

Input image, which can be grayscale or multichannel, and must have a number of dimensions compatible with self.features_func.

Raises

: NotFittedError if ``self.clf`` has not been fitted yet (use ``self.fit``).

Aliases

  • skimage.future.TrainableSegmenter.predict