MCPcopy Create free account
hub / github.com/daniel-e/rustml / widthstep

Method widthstep

src/opencv/mod.rs:224–224  ·  view source on GitHub ↗

Internal method which returns the length of one row in bytes. Due to the fact that rows might by aligned the number of bytes might be greater than the width of the image.

(&self)

Source from the content-addressed store, hash-verified

222 /// Due to the fact that rows might by aligned the number of bytes might
223 /// be greater than the width of the image.
224 fn widthstep(&self) -> usize { unsafe { (*self.buffer()).widthstep as usize } }
225
226 /// Returns the number of color components used for this image.
227 fn channels(&self) -> usize { unsafe { (*self.buffer()).nchannels as usize } }

Callers 4

pixel_as_rgbMethod · 0.80
set_pixel_from_rgbMethod · 0.80
set_pixelMethod · 0.80

Implementers 1

mod.rssrc/opencv/mod.rs

Calls 1

bufferMethod · 0.80

Tested by

no test coverage detected