22 #include "testing/testing.h"
24 using namespace libmv;
57 ASSERT_EQ(1, resampled_image.
Height());
58 ASSERT_EQ(1, resampled_image.
Width());
59 ASSERT_EQ(1, resampled_image.
Depth());
60 EXPECT_FLOAT_EQ(6. / 4., resampled_image(0, 0));
82 ASSERT_EQ(1, resampled_image.
Height());
83 ASSERT_EQ(1, resampled_image.
Width());
84 ASSERT_EQ(3, resampled_image.
Depth());
85 EXPECT_FLOAT_EQ((0 + 1 + 2 + 3) / 4., resampled_image(0, 0, 0));
86 EXPECT_FLOAT_EQ((5 + 6 + 7 + 8) / 4., resampled_image(0, 0, 1));
87 EXPECT_FLOAT_EQ((9 + 10 + 11 + 12) / 4., resampled_image(0, 0, 2));
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
3D array (row, column, channel).
depth_tx normal_tx diffuse_light_tx specular_light_tx volume_light_tx environment_tx ambient_occlusion_tx aov_value_tx in_weight_img image(1, GPU_R32F, Qualifier::WRITE, ImageType::FLOAT_2D_ARRAY, "out_weight_img") .image(3
TEST(PolynomialCameraIntrinsics2, ApplyOnFocalCenter)
T SampleNearest(const Array3D< T > &image, float y, float x, int v=0)
Nearest neighbor interpolation.
T SampleLinear(const Array3D< T > &image, float y, float x, int v=0)
Linear interpolation.
void DownsampleChannelsBy2(const Array3Df &in, Array3Df *out)