Skip to content

Conversation

@saumya1317
Copy link
Contributor

This pull request adds a grayscale filter function to helpers.c.
The function iterates over each pixel in the image, calculates the average of the red, green, and blue values, and sets all three color channels to this average, effectively converting the image to grayscale.
Issues
Closes #1
Checklist
[x] I have read the Contributing Guidelines.

@harshsankhla18 harshsankhla18 merged commit 9f34e2d into OPCODE-Open-Spring-Fest:main Oct 21, 2025
2 of 7 checks passed
@harshsankhla18
Copy link
Collaborator

@saumya1317 I have accepted the PR but you have might not registered for OpCode yet on its discord.

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]: Implement Grayscale function in helpers.c

2 participants