Skip to content

Gaussian Filter ROI Fixes#543

Merged
r-abishek merged 3 commits intor-abishek:ar/opt_gaussian_filter_qa_f32from
Srihari-mcw:gaussian_filter_roi_fixes
Dec 10, 2025
Merged

Gaussian Filter ROI Fixes#543
r-abishek merged 3 commits intor-abishek:ar/opt_gaussian_filter_qa_f32from
Srihari-mcw:gaussian_filter_roi_fixes

Conversation

@Srihari-mcw
Copy link
Copy Markdown
Collaborator

@Srihari-mcw Srihari-mcw commented Dec 4, 2025

Updated changes to handle any roiBegin - Current code assumes roiBegin is always zero
The condition for padding is also updated - Additional unwanted padLength addition was removed

Image before and after fix
non_working_image
1_img50x50

@r-abishek r-abishek requested a review from Copilot December 5, 2025 04:03
@r-abishek r-abishek added the bugfix Something isn't working label Dec 5, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes critical bugs in the Gaussian filter ROI (Region of Interest) handling that previously assumed roiBegin was always zero. The changes ensure proper coordinate transformation from global to ROI-relative coordinates and correct padding boundary checks.

Key Changes:

  • Transforms clampedY and clampedX calculations from global to ROI-relative coordinates
  • Removes incorrect padLength addition from boundary condition checks
  • Updates boundary checks to use ROI-relative coordinates (comparing against 0 instead of roiBeginX/roiBeginY)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@r-abishek r-abishek merged commit a179687 into r-abishek:ar/opt_gaussian_filter_qa_f32 Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants