Source code for tbp.monty.frameworks.models.salience.segmentation.strategy
# Copyright 2026 Thousand Brains Project
#
# Copyright may exist in Contributors' modifications
# and/or contributions to the work.
#
# Use of this source code is governed by the MIT
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
from __future__ import annotations
from typing import Protocol
import numpy as np
import numpy.typing as npt
from tbp.monty.context import RuntimeContext
[docs]class SegmentationStrategy(Protocol):
def __call__(
self,
ctx: RuntimeContext,
rgb: npt.NDArray[np.uint8],
) -> npt.NDArray[np.uint8]: ...