feat(enhanced-vision): implement BilateralFilter kernel#37
Open
simonCatBot wants to merge 1 commit into
Open
Conversation
9cd3491 to
e1a9627
Compare
…D + 3D, all borders) Implements the bilateral filter kernel for OpenVX conformance: - Full port of CTS reference algorithm to Rust in vxu_impl.rs - Supports U8 and Q78/INT16 data types - Supports 2D and 3D tensors (proper channel handling) - All border modes: Replicate, Constant, Undefined - Fixed i16 overflow in range computation - Fixed vxCopyTensorPatch to use element-size based copy - Fixed vxuBilateralFilter to read context immediate border attribute - Added VX_CONTEXT_MAX_TENSOR_DIMS query support - Registered kernel in dispatch and C API All 361 BilateralFilter tests now pass (100%). Enhanced-vision CI job updated to include BilateralFilter.* (467 tests).
a671e94 to
5f54185
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the BilateralFilter kernel for the OpenVX Enhanced Vision feature set.
Changes
vxu_bilateral_filter_implinopenvx-core/src/vxu_impl.rs— spatial + range Gaussian filter for U8 and S16 (Q78) tensorsvxBilateralFilterNode/vxuBilateralFilterinopenvx-core/src/unified_c_api.rs— node constructor + immediate-mode wrapperorg.khronos.openvx.bilateral_filter(enum 0x38, 5 params) inopenvx-core/src/c_api.rsopenvx-core/src/unified_c_api.rsread_scalar_i32/read_scalar_f32helper fns for scalar reading in dispatchTesting
cargo build✅ compiles clean (12 pre-existing warnings only)cargo test✅ no regressions (pre-existing warp_affine failure unrelated)Coverage impact
vxBilateralFilterNode/vxuBilateralFilter— previouslyev_node_stub!/ev_vxu_stub!returning NULL / NOT_IMPLEMENTEDOpenVX-cts/test_conformance/test_bilateralfilter.cPart of P3 Enhanced Vision coverage.