pub struct ColOffsets {
pub y: Vec<i32>,
pub x: Vec<i32>,
}Expand description
Maps columns of an Im2Col matrix to locations in the source image.
For efficiency when packing the image, the locations are premultiplied by the corresponding stride.
Fields§
§y: Vec<i32>Map of column index to row * row_stride where row is the top Y
coordinate of the patch in the source image.
x: Vec<i32>Map of column index to col * col_stride where col is the left X
coordinate of the patch in the source image.
Auto Trait Implementations§
impl Freeze for ColOffsets
impl RefUnwindSafe for ColOffsets
impl Send for ColOffsets
impl Sync for ColOffsets
impl Unpin for ColOffsets
impl UnsafeUnpin for ColOffsets
impl UnwindSafe for ColOffsets
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more