mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
Added wrapper for IMAGE_SPACE attribute setter
This commit is contained in:
parent
7a3b5b308c
commit
138f0cbf3c
9
3rdparty/openvx/include/ivx.hpp
vendored
9
3rdparty/openvx/include/ivx.hpp
vendored
@ -1505,6 +1505,15 @@ static const vx_enum
|
||||
}
|
||||
#endif // VX_VERSION_1_1
|
||||
|
||||
/// vxSetImageAttribute() wrapper
|
||||
template<typename T>
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user