-
Notifications
You must be signed in to change notification settings - Fork 7
Posterize review comments updates #478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Posterize review comments updates #478
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds explanatory comments to the posterize function implementation to clarify the purpose of validation checks and mathematical operations used in image posterization.
- Adds inline comments explaining the 8-bit validation check for posterization level bits
- Adds comments describing mask and factor generation for posterization operations
- Improves code documentation for better maintainability
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/modules/tensor/rppt_tensor_effects_augmentations.cpp | Adds inline comment explaining 8-bit validation for posterize level bits in both host and GPU functions |
| src/modules/tensor/cpu/kernel/posterize.cpp | Adds comments explaining mask and factor generation for posterization operations across different data types |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| Rpp32u vectorIncrement = 24; | ||
| Rpp32u vectorIncrementPerChannel = 8; | ||
|
|
||
| // Mask generated based on the number of bits to represent the image for image posterization |
Copilot
AI
Aug 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment incorrectly describes this as a 'mask' when the code actually creates a mask value stored in posterizeBitsMask. Consider clarifying: '// Mask value generated based on the number of bits to represent the image for image posterization'
| // Mask generated based on the number of bits to represent the image for image posterization | |
| // Mask value generated based on the number of bits to represent the image for image posterization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
close enough
* Initial version - gaussian Filter * Add Implementation of 5x5 7x7 and 9x9 kernel sizes * fix QA issues for 3x3 kernel size * Fix QA mismatches * Add generic kernel code cleanup Add golden output * Add Doxygen comments * Add golden 9x9 golden output and remove unnecessary code * Resolve Review comments * Resolve review comments * Resolve Review comments * resolve review comments * minor change * remove the common code * Update CHANGELOG.md --------- Co-authored-by: HazarathKumarM <[email protected]> Co-authored-by: Kiriti Gowda <[email protected]>
No description provided.