Skip to content

feat: Add PixelReader interface and Threshold filter#7

Merged
ralflang merged 1 commit into
FRAMEWORK_6_0from
feat/pixel-reader-interface
May 24, 2026
Merged

feat: Add PixelReader interface and Threshold filter#7
ralflang merged 1 commit into
FRAMEWORK_6_0from
feat/pixel-reader-interface

Conversation

@ralflang
Copy link
Copy Markdown
Member

@ralflang ralflang commented May 24, 2026

Summary

  • New PixelReader interface for uniform per-pixel RGB/luminance access
  • Implemented in GdResource, ImagickResource, PngResource
  • New Threshold binarization filter (used by barcode detection in horde/Barcode)

Refs horde/Barcode#1

Test plan

  • Verify getPixelRgb() returns correct values on known-color images
  • Verify getLuminance() matches BT.601 formula
  • Apply Threshold filter, confirm output is strictly black/white

Add uniform per-pixel access across drivers (GD, Imagick, PNG) via
PixelReader interface with getPixelRgb() and getLuminance() methods.
Add Threshold binarization filter for image preprocessing.
@ralflang ralflang merged commit d2e6ead into FRAMEWORK_6_0 May 24, 2026
0 of 6 checks passed
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