problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::image_smoother 命名空间参考

  1. Image Smoother
更多...

class  Solution
 

函数

 TEST (image_smoother, case1)
 
 TEST (image_smoother, case2)
 

详细描述

  1. Image Smoother

函数说明

◆ TEST() [1/2]

leetcode::image_smoother::TEST ( image_smoother  ,
case1   
)

在文件 leetcode_test.cpp2432 行定义.

2432 {
2433 vector<vector<int>> img = {{1, 1, 1}, {1, 0, 1}, {1, 1, 1}};
2434 const vector<vector<int>> output = {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}};
2435 ASSERT_EQ(output, Solution::imageSmoother(img));
2436 }

引用了 leetcode::image_smoother::Solution::imageSmoother().

◆ TEST() [2/2]

leetcode::image_smoother::TEST ( image_smoother  ,
case2   
)

在文件 leetcode_test.cpp2438 行定义.

2438 {
2439 vector<vector<int>> img = {{100, 200, 100}, {200, 50, 200}, {100, 200, 100}};
2440 const vector<vector<int>> output = {{137, 141, 137}, {141, 138, 141}, {137, 141, 137}};
2441 ASSERT_EQ(output, Solution::imageSmoother(img));
2442 }

引用了 leetcode::image_smoother::Solution::imageSmoother().