Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Srihari-mcw
Copy link
Collaborator

No description provided.

@Srihari-mcw Srihari-mcw changed the base branch from develop to ar/posterize August 11, 2025 17:52
@r-abishek r-abishek requested a review from Copilot August 12, 2025 22:34
@r-abishek r-abishek added the enhancement New feature or request label Aug 12, 2025
Copy link

Copilot AI left a 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
Copy link

Copilot AI Aug 12, 2025

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'

Suggested change
// 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

Copilot uses AI. Check for mistakes.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close enough

@r-abishek r-abishek merged commit 8416528 into r-abishek:ar/posterize Aug 12, 2025
ManasaDattaT pushed a commit to ManasaDattaT/rpp that referenced this pull request Dec 19, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants