Skip to content

Implement grayscale filter function#16

Merged
harshsankhla18 merged 1 commit intoOPCODE-Open-Spring-Fest:mainfrom
sam131725:feature/implement-grayscale
Oct 21, 2025
Merged

Implement grayscale filter function#16
harshsankhla18 merged 1 commit intoOPCODE-Open-Spring-Fest:mainfrom
sam131725:feature/implement-grayscale

Conversation

@sam131725
Copy link
Copy Markdown
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
Copy Markdown
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