COMPMID-1329: Add support for GenerateProposals operator in CL
Change-Id: Ib0798cc17496b7817f5b5769b25d98913a33a69d
diff --git a/src/core/CL/cl_kernels/bounding_box_transform.cl b/src/core/CL/cl_kernels/bounding_box_transform.cl
index d330188..14a0fad 100644
--- a/src/core/CL/cl_kernels/bounding_box_transform.cl
+++ b/src/core/CL/cl_kernels/bounding_box_transform.cl
@@ -28,11 +28,11 @@
/** Perform a padded copy of input tensor to the output tensor. Padding values are defined at compile time
*
* @attention The following variables must be passed at compile time:
- * -# -DDATA_TYPE = Tensor data type. Supported data types: F16/F32
+ * -# -DDATA_TYPE= Tensor data type. Supported data types: F16/F32
* -# -DWEIGHT{X,Y,W,H}= Weights [wx, wy, ww, wh] for the deltas
* -# -DIMG_WIDTH= Original image width
* -# -DIMG_HEIGHT= Original image height
- * -# -DBOX_FIELDS=Number of fields that are used to represent a box in boxes
+ * -# -DBOX_FIELDS= Number of fields that are used to represent a box in boxes
*
* @param[in] boxes_ptr Pointer to the boxes tensor. Supported data types: F16/F32
* @param[in] boxes_stride_x Stride of the boxes tensor in X dimension (in bytes)
@@ -97,7 +97,7 @@
// Useful vector constant definitions
const VEC_DATA_TYPE(DATA_TYPE, 4)
- max_values = (VEC_DATA_TYPE(DATA_TYPE, 4))(IMG_WIDTH, IMG_HEIGHT, IMG_WIDTH, IMG_HEIGHT);
+ max_values = (VEC_DATA_TYPE(DATA_TYPE, 4))(IMG_WIDTH - 1, IMG_HEIGHT - 1, IMG_WIDTH - 1, IMG_HEIGHT - 1);
const VEC_DATA_TYPE(DATA_TYPE, 4)
sign = (VEC_DATA_TYPE(DATA_TYPE, 4))(-1, -1, 1, 1);
const VEC_DATA_TYPE(DATA_TYPE, 4)