| 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())); |
no test coverage detected