Iterate Over Files
Function to iterate over files.
iterate_over_files(data_config, data_files, target_files=None, read_source_func=read_tiff)
Iterate over data source and yield whole reshaped images.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_config
|
CAREamics DataConfig or InferenceConfig
|
Configuration. |
required |
data_files
|
list of pathlib.Path
|
List of data files. |
required |
target_files
|
list of pathlib.Path
|
List of target files, by default None. |
None
|
read_source_func
|
Callable
|
Function to read the source, by default read_tiff. |
read_tiff
|
Yields:
| Type | Description |
|---|---|
NDArray
|
Image. |