tumourkit.utils.preprocessing.extract_features
- tumourkit.utils.preprocessing.extract_features(msk_img: ndarray, bin_msk: ndarray, debug=False) Dict[str, ndarray]
Extracts features from a given RGB bounding box of a cell and its mask.
- Parameters:
msk_img (np.ndarray) – RGB bounding box of a cell.
bin_msk (np.ndarray) – Binary mask of the cell.
debug (bool) – Flag indicating if debug mode is enabled.
- Returns:
A dictionary containing different extracted features.
- Return type:
Dict[str, np.ndarray]