| 35 | TYPED_TEST_SUITE(Meanshift, TestTypes); |
| 36 | |
| 37 | TYPED_TEST(Meanshift, InvalidArgs) { |
| 38 | SUPPORTED_TYPE_CHECK(TypeParam); |
| 39 | |
| 40 | vector<TypeParam> in(100, 1); |
| 41 | |
| 42 | af_array inArray = 0; |
| 43 | af_array outArray = 0; |
| 44 | |
| 45 | dim4 dims = dim4(100, 1, 1, 1); |
| 46 | ASSERT_SUCCESS(af_create_array(&inArray, &in.front(), dims.ndims(), |
| 47 | dims.get(), |
| 48 | (af_dtype)dtype_traits<TypeParam>::af_type)); |
| 49 | ASSERT_EQ(AF_ERR_SIZE, |
| 50 | af_mean_shift(&outArray, inArray, 0.12f, 0.34f, 5, true)); |
| 51 | ASSERT_SUCCESS(af_release_array(inArray)); |
| 52 | } |
| 53 | |
| 54 | template<typename T, bool isColor> |
| 55 | void meanshiftTest(string pTestFile, const float ss) { |
nothing calls this directly
no test coverage detected