Skip to content

Commit

Permalink
doc: Updated Aggregator documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol-G committed Jan 3, 2024
1 parent d4d9e2c commit 86ae29d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion patchly/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.0.11"
__version__ = "0.0.12"

from patchly.sampler import GridSampler, SamplingMode
from patchly.aggregator import Aggregator
Expand Down
6 changes: 6 additions & 0 deletions patchly/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def __init__(self, sampler: GridSampler, output_size: Optional[Union[Tuple, npt.
"""
Initializes the Aggregator object for aggregating patches into a larger output image.
A complete overview of how the Sampler and Aggregator work and an in-depth explanation of the features can be found in OVERVIEW.md.
:param sampler: GridSampler - The sampler used to sample patches from the input image.
:param output_size: Optional[Union[Tuple, npt.ArrayLike]] - The size of the output image. Can be None if output is provided.
:param output: Optional[npt.ArrayLike] - The array to store the aggregated output. Can be None if output_size is provided.
Expand Down Expand Up @@ -215,6 +217,8 @@ def __init__(self, sampler: GridSampler, image_size_s: Union[Tuple, npt.ArrayLik
"""
Initializes the _Aggregator object, a private class for handling patch aggregation.
A complete overview of how the Sampler and Aggregator work and an in-depth explanation of the features can be found in OVERVIEW.md.
:param sampler: GridSampler - The sampler used to generate patches.
:param image_size_s: Union[Tuple, npt.ArrayLike] - The size of the image in spatial dimensions.
:param patch_size_s: Union[Tuple, npt.ArrayLike] - The size of each patch in spatial dimensions.
Expand Down Expand Up @@ -353,6 +357,8 @@ def __init__(self, sampler: GridSampler, image_size_s: Union[Tuple, npt.ArrayLik
"""
Initializes the _ChunkAggregator object, a subclass of _Aggregator, for managing patch aggregation in chunks.
A complete overview of how the Sampler and Aggregator work and an in-depth explanation of the features can be found in OVERVIEW.md.
:param sampler: GridSampler - The sampler used for generating patches.
:param image_size_s: Union[Tuple, npt.ArrayLike] - The size of the image in spatial dimensions.
:param patch_size_s: Union[Tuple, npt.ArrayLike] - The size of each patch in spatial dimensions.
Expand Down

0 comments on commit 86ae29d

Please sign in to comment.