encoder

Description

Batch-wise encoding and decoding operations for binary and non-binary masks.

The basic operations are the batch encoder based on BatchWindowOp. Batch-wise operations on images can be wrapped by hybrid_learning.datasets.transforms.image_transforms.BatchWiseImageTransform to work on either batches or single masks.

Classes

BatchBoxBloat

Bloat single pixels to full boxes, always choosing the maximum box to be up front.

BatchConvOp

Base class for encoder that use convolution operations.

BatchIntersectDecode2D

Given batch of IoU encoded masks, estimates the original segmentation mask.

BatchIntersectEncode2D

Apply intersection encoding to batch of input masks of shape (batch, 1, height, width).

BatchIoUEncode2D

Apply intersection over union encoding to an input batch.

BatchPeakDetection

Keep only peak points, i.e. ones that take the maximum value within a window around them.

BatchWindowOp

Base class for encoder that use windowing operations.

Functions

same_padding(kernel_size[, hang_front])

Calculate the left and right padding for mode 'same' for each dim and concat.