Gaussian Pyramid bug fix
- CLANG warning showing that the sizeof(float) didn't match the double
float size of the variable.
- Changing it to the variable name of index 0 so that this doesn't happen
in future.
diff --git a/test_conformance/test_gaussianpyramid.c b/test_conformance/test_gaussianpyramid.c
index dce0aa0..bb51e10 100644
--- a/test_conformance/test_gaussianpyramid.c
+++ b/test_conformance/test_gaussianpyramid.c
@@ -317,7 +317,7 @@
vx_uint32 ref_width = input->width;
vx_uint32 ref_height = input->height;
- ASSERT(input && pyr && (1 < levels) && (level < sizeof(c_orbscale) / sizeof(float) ));
+ ASSERT(input && pyr && (1 < levels) && (level < sizeof(c_orbscale) / sizeof(c_orbscale[0]) ));
ASSERT_VX_OBJECT(output_image = vxGetPyramidLevel(pyr, 0), VX_TYPE_IMAGE);
ASSERT_NO_FAILURE(output_prev = ct_image_from_vx_image(output_image));
VX_CALL(vxReleaseImage(&output_image));
@@ -405,7 +405,7 @@
vx_uint32 dst_height = input->height;
ASSERT_(return NULL, scale < 1.0);
- ASSERT_(return NULL, input && (level < (sizeof(c_orbscale) / sizeof(float))));
+ ASSERT_(return NULL, input && (level < (sizeof(c_orbscale) / sizeof(c_orbscale[0]))));
ASSERT_(return NULL, input->format == VX_DF_IMAGE_U8);
@@ -457,7 +457,7 @@
vx_uint32 ref_width = input->width;
vx_uint32 ref_height = input->height;
- ASSERT(input && pyr && (levels < sizeof(c_orbscale) / sizeof(float) ));
+ ASSERT(input && pyr && (levels < sizeof(c_orbscale) / sizeof(c_orbscale[0]) ));
ASSERT_VX_OBJECT(output_image = vxGetPyramidLevel(pyr, 0), VX_TYPE_IMAGE);
ASSERT_NO_FAILURE(output_prev = ct_image_from_vx_image(output_image));