This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4M How to set scale of pyramid more flexible

Hi Processors Team:

In vxCreatePyramid , failure status will return when scale is not equal to VX_SCALE_PYRAMID_HALF or VX_SCALE_PYRAMID_ORB.

Q1  Could other value of scale beside of HALF and ORB be set by commenting scale judgement part in vxCreatePyramid ?

In my case, a 13 levels pyramid is needed.

level 1 is origin ,  scale of level 2 to level 9 is root 4 of 2, scale of level 10 to level 13 is root 6 of 2.

Q2  What's your suggestion to implement the pyramid above by VPAC_MSC module?

Thanks!

  • Hello Shiming,

    As you have observed, this is an unsupported and thus untested scenario in OpenVX.  However, if you would like to enable it, we would recommend commenting out the check for the valid scale in the vxCreatePyramid call.

    There may be additional checks for the scale, so you may have further work to do to enable this.  As it is untested, there may be unexpected behavior occurring from these changes.

    On a related note, if you were planning on passing this output to the DoF node, please note that the DoF node only supports half scale pyramids as inputs.

    Regards,

    Lucas

  • Hello Lucas:

    The 13 levels pyramid is passed to feature plane compute rather than DOF.

    so specific pyramid  is need. we need two scale ,root 4 of 2 and root 6 of 2.

    For now, if I use tivxVpacMscPyramidNode , one pyramid only have one scale;

    however ,if I use tivxVpacMscScaleNode, this node only have 5 outputs .

    So what's your suggestion to implement the 13-level and two-scale pyramid  by VPAC_MSC module?

  • Hello Shiming,

    Unfortunately what you are describing is not a pyramid as defined by OpenVX.  An OpenVX pyramid has a uniform scale across all levels.  In order to support this, you must create a new object in OpenVX, much like the following extension was done for the OpenVX user data object.

    https://www.khronos.org/registry/OpenVX/extensions/vx_khr_user_data_object/1.0/vx_khr_user_data_object_1_0.html

    Regards,

    Lucas

  • Hello Shimming,

    The pyramid node uses pyramid as data object, for which open vx currently supports only fixed scaling factor and it is uniform.

    One solution is to use multi-scale node, get 13 outputs by running it multiple times.

    Could you please provide us exact scaling factor that each level requires? 

    Regards,

    Brijesh