Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add abstract and concrete classes for negative controls and reg…
…ions (#81) # 4D-Lung ![combined](https://github.com/user-attachments/assets/17d071d5-5738-4b08-ac72-d0a7b46e254a) # Order of operations 1. `negative_control_strategy(image, mask=mask, region=region_strategy)` 2. runs the `__call__` on the `negative_control_strategy` 3. which runs the `__call__` of `region(image_array, mask_array)` 4. the result of which is used to figure out what indices of the original image to apply the `transform` method of the `NegativeControlStrategy` concrete classes to 5. only replace the region indices `image_array[mask_indices] = transformed_values` Resource on Strategy Pattern: https://refactoring.guru/design-patterns/strategy/python/example --------- Co-authored-by: Katy Scott <[email protected]>
- Loading branch information