pub struct ROI {
    pub width: u16,
    pub height: u16,
}
Expand description

Structure denoting a region of interest.

Fields

width: u16

Width of the region of interest.

height: u16

Height of the region of interest.

Implementations

Create a new region of interest with the given width and height.

Arguments
  • width - The width of the ROI.
  • height - The height of the ROI.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.