Skip to content

Conversation

@Satvik-Singh192
Copy link
Contributor

Description

Implemented a new Threshold Filter (-t flag) that converts each pixel of an image to pure black or white based on average intensity.

The filter was added to helpers.c, declared in helpers.h, registered in filter.c, and documented in README.md.

Usage:

./filter -t input.bmp output.bmp

This applies the black-and-white threshold effect.


Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

Closes #18Feature: Threshold Filter (Black & White)


Checklist

  • I have read the Contributing Guidelines.
  • Code compiles successfully without modifying existing logic.
  • Feature tested locally using sample .bmp files.
  • README updated with new filter usage.

@harshsankhla18 harshsankhla18 merged commit 80ab27b into OPCODE-Open-Spring-Fest:main Oct 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Threshold Filter(Black & White)

2 participants