custom_ops

Description

Custom fuzzy logic operations.

Classes

AbstractFuzzyIntersect

Abstract class to define fuzzy intersection (over union) operations.

AllNeighbors

Given a mask of truth values representing the output of a formula apply average pooling.

BestIoUWith

Given two stacked sets of masks masks_a and masks_b, calculate for each mask in masks_a the best IoU with any mask in masks_b.

CoveredBy

Calculate the proportion of one mask covered by another.

IoUWith

Calculate the intersection over union between two masks.

IsPartOfA

Unary predicate that calculates for each pixel location whether it is part of an object segmentation.

LambdaOp

Provide a custom transformation on the sequence of values extracted from the annotations dict.