brails.filters.filter module

This module defines abstract filter class.

Filter(input_data)

Abstract base class for filtering an ImageSet.

class brails.filters.filter.Filter(input_data)

Bases: ABC

Abstract base class for filtering an ImageSet.

filter(images, dir_path)

Filters the ImageSet based on specific criteria.

abstract filter(images, dir_path)

Abstract class that must be implemented by subclasses.

This method will be used by the caller to obtain a filtered ImageSet and save the output in a specified directory.

Parameters:
  • images (ImageSet) – The ImageSet to filter.

  • dir_path (str) – Path to the output directory for filtered images.

Returns:

The filtered set of images.

Return type:

ImageSet