pub struct BndBox { /* private fields */ }Expand description
Draw bounding boxes on the output image.
Implementations§
Source§impl BndBox
impl BndBox
Sourcepub unsafe fn submit(
&self,
stream: *mut c_void,
input: &Tensor,
output: &Tensor,
bboxes: *const c_void,
) -> Result<()>
pub unsafe fn submit( &self, stream: *mut c_void, input: &Tensor, output: &Tensor, bboxes: *const c_void, ) -> Result<()>
bboxes is a pointer to an NVCVBndBoxesI struct whose exact
layout lives in the CV-CUDA headers — baracuda doesn’t provide a
typed builder for it yet.
§Safety
bboxes must point at a valid NVCVBndBoxesI; stream live.
Trait Implementations§
Auto Trait Implementations§
impl !Send for BndBox
impl !Sync for BndBox
impl Freeze for BndBox
impl RefUnwindSafe for BndBox
impl Unpin for BndBox
impl UnsafeUnpin for BndBox
impl UnwindSafe for BndBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more