Skip to content

DM-51111: Fix to ITL saturation sag masking and add log#417

Open
aferte wants to merge 2 commits intomainfrom
tickets/DM-51111
Open

DM-51111: Fix to ITL saturation sag masking and add log#417
aferte wants to merge 2 commits intomainfrom
tickets/DM-51111

Conversation

@aferte
Copy link
Copy Markdown
Contributor

@aferte aferte commented Jun 3, 2025

No description provided.

@aferte aferte changed the title Fix to ITL saturation sag masking DM-51111: Fix to ITL saturation sag masking Jun 4, 2025
@aferte aferte changed the title DM-51111: Fix to ITL saturation sag masking DM-51111: Fix to ITL saturation sag masking and add log Jun 4, 2025
@aferte aferte requested a review from erykoff June 9, 2025 21:25
@aferte aferte force-pushed the tickets/DM-51111 branch from e6bdd50 to 144923e Compare June 9, 2025 21:26
Copy link
Copy Markdown
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

I will ask again, as I did on the ticket. Is it possible to check the orientation of the saturated footprint? The sag masking should only trigger on vertical streaks, and right now it just looks at footprint size and not the aspect ratio of the footprint. Have you looked into this at all?

Add check on shape of saturated box.

Add requirement on footprint shape.

Update footprint ratio threshold and add log info.
@aferte
Copy link
Copy Markdown
Contributor Author

aferte commented Aug 21, 2025

@erykoff thanks - here is an update adding a check on the shape of the saturated footprint. Jenkins is running now with that update

maskedImage.mask.array[:, columnsToMask] |= saturatedBit
if ratioSatFP > 0.5:
# We apply the masking if the saturation footprint has a width of
# at most twice the height, to avoid trigerring in the case of
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this correct? "width at most twice the height"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, if the width is more than twice the height the saturation sag masking won't be applied

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My argument is that a saturation streak (that might sag) will always be taller than wide. Is there evidence this is not true?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It can happen that the saturation streak is within a footprint with an edge bleed - if the source is close to the edge, the footprint (e.g. edge bleed + source + saturation sag) can be wider than tall because of the edge bleed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants