multicrop
MultiCrop
Multi-Crop augmentation.
Source code in fmcib/transforms/multicrop.py
__call__(input)
This function applies a set of transformations to an input image and returns high and low-resolution crops.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input
|
image
|
The input image to be transformed. |
required |
Returns:
Name | Type | Description |
---|---|---|
tuple |
A tuple containing two lists: - high_resolution_crops (list): A list of high-resolution cropped images. - low_resolution_crops (list): A list of low-resolution cropped images. |
Source code in fmcib/transforms/multicrop.py
__init__(high_resolution_transforms, low_resolution_transforms)
Initialize an instance of a class with transformations for high-resolution and low-resolution images.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
high_resolution_transforms
|
list
|
A list of Callable objects representing the transformations to be applied to high-resolution images. |
required |
low_resolution_transforms
|
list
|
A list of Callable objects representing the transformations to be applied to low-resolution images. Default is None. |
required |