Skip to content

Conversation

@SundarRajan98
Copy link
Contributor

@SundarRajan98 SundarRajan98 commented Jan 9, 2026

Motivation

Integrates new RPP augmentations in rocAL:

  • ChannelPermute
  • ColorToGreyscale
  • JpegCompressionDistortion
  • Lut
  • Posterize
  • Solarize

Corresponding MIVisionX PR - #1602

Technical Details

  • Added six new augmentation kernels with both fixed and parameterized variants
  • Implemented C++ node classes for each augmentation with proper initialization and update methods
  • Exposed Python bindings for all new augmentations

Test Plan

Test Result

Submission Checklist

…Spatter, Log, ColorJitter, Water

- Add node headers and implementations for GaussianNoise, ShotNoise, Spatter, Log, ColorJitter, Water
- Add C API declarations and implementations in rocal_api_augmentation.h/cpp
- Add Python bindings in rocal_pybind.cpp and fn.py
…yscale, JpegCompressionDistortion, Lut, Posterize, Solarize

- Add node headers and implementations for ChannelPermute, ColorToGreyscale, JpegCompressionDistortion, Lut, Posterize, Solarize
- Add C API declarations and implementations in rocal_api_augmentation.h/cpp
- Add Python bindings in rocal_pybind.cpp and fn.py
- Update VX_EXT_RPP_CHECK_VERSION to (3, 1, 6) in API file
- Update THROW messages to indicate vx_rpp >= 3.1.6
- Add version checks in node files: node_channel_permute.cpp,
  node_color_to_greyscale.cpp, node_lut.cpp, node_posterize.cpp,
  node_solarize.cpp, node_jpeg_compression_distortion.cpp
- Update VX_EXT_RPP_CHECK_VERSION to (3, 1, 5) in API file
- Update THROW messages to indicate vx_rpp >= 3.1.5
- Add version checks in node files: node_gaussian_noise.cpp,
  node_shot_noise.cpp, node_spatter.cpp, node_water.cpp,
  node_color_jitter.cpp, node_log.cpp
Test cases 74-83 for:
- ChannelPermute (74)
- JpegCompressionDistortion (75, 76-fixed)
- LUT (77)
- Posterize (78, 79-fixed)
- Solarize (80, 81-fixed)
- Log (82)
- ColorToGreyscale (83)
C++ tests (unit_tests.cpp):
- Case 64: rocalGaussianNoise (random)
- Case 65: rocalGaussianNoiseFixed
- Case 66: rocalShotNoise (random)
- Case 67: rocalShotNoiseFixed
- Case 68: rocalSpatter
- Case 69: rocalLog
- Case 70: rocalColorJitter (random)
- Case 71: rocalColorJitterFixed
- Case 72: rocalWater (random)
- Case 73: rocalWaterFixed

Python tests (unit_test.py):
- gaussian_noise, shot_noise, spatter, water, color_jitter

Shell scripts updated:
- testAllScripts.sh: Added C++ test entries
- unit_tests.sh: Added Python test entries
Shift test case numbers by +1 (75-83) to follow after Set 1
which now ends at case 74 due to added Spatter random variant.
@kiritigowda kiritigowda self-assigned this Jan 20, 2026
@kiritigowda kiritigowda added enhancement New feature or request ci:precheckin labels Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:precheckin enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants