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

Method channels

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

Returns the number of color components used for this image.

(&self)

Source from the content-addressed store, hash-verified

225
226 /// Returns the number of color components used for this image.
227 fn channels(&self) -> usize { unsafe { (*self.buffer()).nchannels as usize } }
228
229 /// Writes the image into a file.
230 ///

Callers 1

from_fileMethod · 0.80

Implementers 1

mod.rssrc/opencv/mod.rs

Calls 1

bufferMethod · 0.80

Tested by

no test coverage detected