API Reference

segmenteverygrain.predict_image(big_im, model, I)

Semantic segmentation of the entire image using a Unet model.

Parameters:
  • big_im (2D or 3D array) – The image that is being segmented. Can have one or more channels.

  • model – Tensorflow model used for semantic segmentation.

  • I (int) – Size of the square-shaped image tiles in pixels.

Returns:

Semantic segmentation result for the input image.

Return type:

3D array