cellmap_flow.post.postprocessors

Attributes

postprocessing_lock

logger

PostProcessorMethods

Classes

PostProcessor

Base class for post-processing methods.

DefaultPostprocessor

Base class for post-processing methods.

ThresholdPostprocessor

Base class for post-processing methods.

LabelPostprocessor

Base class for post-processing methods.

MortonSegmentationRelabeling

Base class for post-processing methods.

AffinityPostprocessor

Base class for post-processing methods.

SimpleBlockwiseMerger

Base class for post-processing methods.

ChannelSelection

Base class for post-processing methods.

LambdaPostprocessor

Base class for post-processing methods.

Functions

get_postprocessors_list(→ list[dict])

Returns a list of dictionaries containing the names and parameters of all subclasses of PostProcessor.

get_postprocessors(→ list[PostProcessor])

Module Contents

cellmap_flow.post.postprocessors.postprocessing_lock
cellmap_flow.post.postprocessors.logger
class cellmap_flow.post.postprocessors.PostProcessor

Base class for post-processing methods.

property is_segmentation
class cellmap_flow.post.postprocessors.DefaultPostprocessor(clip_min: float = -1.0, clip_max: float = 1.0, bias: float = 1.0, multiplier: float = 127.5)

Base class for post-processing methods.

clip_min
clip_max
bias
multiplier
property dtype
property is_segmentation
class cellmap_flow.post.postprocessors.ThresholdPostprocessor(threshold: float = 0.5)

Base class for post-processing methods.

threshold
property dtype
property is_segmentation
class cellmap_flow.post.postprocessors.LabelPostprocessor(channel: int = 0)

Base class for post-processing methods.

channel = 0
property dtype
property is_segmentation
class cellmap_flow.post.postprocessors.MortonSegmentationRelabeling(channel: int = 0)

Base class for post-processing methods.

channel = 0
num_previous_segments = 0
use_exact = True
property dtype
property is_segmentation
class cellmap_flow.post.postprocessors.AffinityPostprocessor(bias: float = 0.0, neighborhood: str = '[\n                [1, 0, 0],\n                [0, 1, 0],\n                [0, 0, 1],\n                [3, 0, 0],\n                [0, 3, 0],\n                [0, 0, 3],\n                [9, 0, 0],\n                [0, 9, 0],\n                [0, 0, 9],\n            ]')

Base class for post-processing methods.

bias
neighborhood
use_exact = True
num_previous_segments = 0
property dtype
property is_segmentation
property num_channels
class cellmap_flow.post.postprocessors.SimpleBlockwiseMerger(channel: int = 0, face_erosion_iterations: int = 0)

Base class for post-processing methods.

channel = 0
face_erosion_iterations = 0
use_exact = True
equivalences
chunk_slice_position_to_coords_id_dict
slices
keys_to_skip
calculate_equivalences()
property dtype
property is_segmentation
class cellmap_flow.post.postprocessors.ChannelSelection(channels: str = '0')

Base class for post-processing methods.

channels
property num_channels
class cellmap_flow.post.postprocessors.LambdaPostprocessor(expression: str)

Base class for post-processing methods.

expression
property dtype
cellmap_flow.post.postprocessors.get_postprocessors_list() list[dict]

Returns a list of dictionaries containing the names and parameters of all subclasses of PostProcessor.

cellmap_flow.post.postprocessors.get_postprocessors(elms: dict) list[PostProcessor]
cellmap_flow.post.postprocessors.PostProcessorMethods