| 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 |
nothing calls this directly
no test coverage detected