MCPcopy Create free account
hub / github.com/alibaba/MNN / run

Method run

test/cv/ImageProcessTest.cpp:790–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788 // Test: first color then resize and first resize then color, these two results are same.
789 virtual ~ImageProcessColorResizeTest() = default;
790 virtual bool run(int precison) {
791 std::vector<Filter> filters = {MNN::CV::Filter::NEAREST, MNN::CV::Filter::BILINEAR};
792 std::vector<int> iw{220, 420};
793 std::vector<int> ih{300, 340};
794
795 for (auto &width: iw) {
796 for (auto &height: ih) {
797 bool res = funcToColorResize(width, height, 3, 240, 320, 3, MNN::CV::Filter::BILINEAR, BGR, RGB);
798 if (!res) {
799 return false;
800 }
801 }
802 }
803 return true;
804 }
805};
806 MNNTestSuiteRegister(ImageProcessColorResizeTest, "cv/image_process/color_resize_test");
807

Callers

nothing calls this directly

Calls 1

funcToColorResizeFunction · 0.85

Tested by

no test coverage detected