This is a development version (0.26.1rc0.dev0) and may be unstable.Go to latest (0.26.1rc0.dev0+git20260530.b607368ff)
{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0 / skimage / future / trainable_segmentation / TrainableSegmenter / predict

function

skimage.future.trainable_segmentation:TrainableSegmenter.predict

source: /skimage/future/trainable_segmentation.py:77

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