Add optional pipeline noise reduction module with Gaussian and CLAHE methods#378
Draft
Add optional pipeline noise reduction module with Gaussian and CLAHE methods#378
Conversation
Agent-Logs-Url: https://github.com/SINTEF/pyopia/sessions/eb7b9975-61d8-461a-85e6-1672c3a1084d Co-authored-by: nepstad <152277+nepstad@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add a noise reduction module for image processing
Add optional pipeline noise reduction module with Gaussian and CLAHE methods
Apr 23, 2026
Collaborator
|
@copilot Update default value for output_key to "im_denoised". Add new documentation example under "Advanced analysis". |
Agent-Logs-Url: https://github.com/SINTEF/pyopia/sessions/fbbe847c-b7de-4832-becc-5b8e1a82b5af Co-authored-by: nepstad <152277+nepstad@users.noreply.github.com>
Contributor
Author
Implemented in bf94e9b: |
nepstad
reviewed
Apr 23, 2026
Agent-Logs-Url: https://github.com/SINTEF/pyopia/sessions/8cae7831-2989-45d8-8080-f70698ded5ae Co-authored-by: nepstad <152277+nepstad@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This introduces an optional noise-reduction step for noisy raw/processed images so users can improve segmentation quality by inserting denoising at any pipeline point. The new step is pipeline-compatible and configurable for both simple smoothing and contrast-adaptive enhancement.
New pipeline module:
pyopia.noiseReduceNoiseas a pipeline-compatible class.method='gaussian'for blur-based denoisingmethod='clahe'for adaptive local contrast equalizationimage_sourceselects which image inPipeline.datato process.output_keyallows writing to a chosen key.output_keyis not provided, output now defaults toim_denoised.Method-specific configuration
gaussian_sigmaclahe_clip_limit,clahe_nbinsValueError.Targeted tests added
pyopia/tests/test_noise.pycovering:Pipeline.run_step(...)im_denoised)Documentation
docs/notebooks/noise_reduction.mddocs/_toc.yml)