blob: 6582b5ded1ba4f62aedf14fe710cd9d2a33b540e [file] [log] [blame]
Parker Schuh0ff777c2017-02-19 15:01:13 -08001#include "aos/vision/blob/transpose.h"
Parker Schuh0ff777c2017-02-19 15:01:13 -08002
3#include <algorithm>
4#include <string>
Austin Schuh60e77942022-05-16 17:48:24 -07005
Parker Schuh0ff777c2017-02-19 15:01:13 -08006#include "gtest/gtest.h"
7
Philipp Schrader790cb542023-07-05 21:06:52 -07008#include "aos/vision/blob/test_utils.h"
9
Parker Schuh0ff777c2017-02-19 15:01:13 -080010namespace aos {
11namespace vision {
12
13TEST(TransposeTest, Tranpspose) {
14 RangeImage img = LoadFromTestData(20, R"(
15 -----------
16 ----- ----
17 ------------
18 -------------
19 ------------
20 ----------
21 ------------
22 ---------
23)");
24
25 auto b = Transpose(img);
26 auto c = Transpose(b);
27 EXPECT_EQ(ShortDebugPrint({img}), ShortDebugPrint({c}));
28}
29
30} // namespace vision
31} // namespace aos