brails.filters.filter module
This module defines abstract filter class.
|
Abstract base class for filtering an ImageSet. |
- class brails.filters.filter.Filter(input_data: dict)
Bases:
ABC
Abstract base class for filtering an ImageSet.
- Methods:
- filter(images, dir_path): Filters the ImageSet based on specific
criteria.
- abstract filter(images: ImageSet, dir_path: str) ImageSet
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.
- Args:
images (ImageSet): The ImageSet to filter. dir_path (str): Path to the output directory for filtered images.
- Returns:
ImageSet: The filtered set of images.