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

Method dup

src/opencv/mod.rs:516–521  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

514 }
515
516 pub fn dup(&self) -> RgbImage {
517
518 let mut img = RgbImage::new(self.width(), self.height());
519 img.copy_from(self, 0, 0, self.width(), self.height(), 0, 0);
520 img
521 }
522
523}
524

Callers

nothing calls this directly

Calls 3

widthMethod · 0.80
heightMethod · 0.80
copy_fromMethod · 0.80

Tested by

no test coverage detected