Skip to content

Grayscale: fix perf issue in percentile computation - #236

Merged
pynicolas merged 1 commit into
mainfrom
percentiles
Sep 14, 2026
Merged

pynicolas merged 1 commit into
mainfrom
percentiles

Conversation

@pynicolas

Copy link
Copy Markdown
Owner

For grayscale processing, change the percentile computation to use an estimate based on a sub-sample of 0.5MPixels rather than the full image.

Impact on enhanceCapturedImage:

  • ExportQuality.BALANCED : 400ms -> 200ms
  • ExportQuality.HIGH : 700ms -> 320ms

@pynicolas pynicolas changed the title Grayscale: fix perf issue to compute percentiles Grayscale: fix perf issue in percentile computation Sep 14, 2026
@pynicolas
pynicolas merged commit fcb2bd3 into main Sep 14, 2026
5 checks passed
@pynicolas
pynicolas deleted the percentiles branch September 14, 2026 06:35
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.

1 participant