Struct robotics_signals::sensors::camera_info::RegionOfInterest
source · [−]#[repr(C)]pub struct RegionOfInterest {
pub x_offset: u32,
pub y_offset: u32,
pub height: u32,
pub width: u32,
pub do_rectify: bool,
}
Fields
x_offset: u32
Leftmost pixel of the ROI (0 if the ROI includes the left edge of the image)
y_offset: u32
Topmost pixel of the ROI (0 if the ROI includes the top edge of the image)
height: u32
width: u32
do_rectify: bool
True if a distinct rectified ROI should be calculated from the “raw” ROI in this message. Typically this should be False if the full image is captured (ROI not used), and True if a subwindow is captured (ROI used).
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RegionOfInterest
impl<'de> Deserialize<'de> for RegionOfInterest
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for RegionOfInterest
impl Serialize for RegionOfInterest
Auto Trait Implementations
impl RefUnwindSafe for RegionOfInterest
impl Send for RegionOfInterest
impl Sync for RegionOfInterest
impl Unpin for RegionOfInterest
impl UnwindSafe for RegionOfInterest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more