diff --git a/3rdparty/openvx/include/ivx.hpp b/3rdparty/openvx/include/ivx.hpp index 65f83911b1..e943961590 100644 --- a/3rdparty/openvx/include/ivx.hpp +++ b/3rdparty/openvx/include/ivx.hpp @@ -1588,6 +1588,15 @@ static const vx_enum } #endif // VX_VERSION_1_1 + /// vxSetImageAttribute() wrapper + template + void setAttribute(vx_enum att, T& value) const + { IVX_CHECK_STATUS(vxSetImageAttribute(ref, att, &value, sizeof(value))); } + + /// vxSetImageAttribute(SPACE) wrapper + void setColorSpace(const vx_enum& sp) + { setAttribute(VX_IMAGE_SPACE, sp); } + /// vxGetValidRegionImage() wrapper vx_rectangle_t getValidRegion() const {