MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / imwrite

Function imwrite

source/matplot/util/common.cpp:670–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668 }
669
670 void imwrite(const image_channels_t &A, const std::string &filename) {
671 auto cimg_image = channels2cimg(A);
672 cimg_image.save(filename.c_str());
673 }
674
675 image_channel_t rgb2gray(const image_channels_t &A) {
676 image_channel_t img(A[0].size(), image_row_t(A[0][0].size()));

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 3

channels2cimgFunction · 0.85
gray2rgbFunction · 0.85
saveMethod · 0.80

Tested by

no test coverage detected