Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imgwarp error: invalid types 'short int[int]' for array subscript in function initInterTab2d after #if CV_SIMD128 #20096

Open
4 tasks
johncblacker opened this issue May 15, 2021 · 2 comments

Comments

@johncblacker
Copy link

System information (version)
  • OpenCV => ❔
  • Operating System / Platform => ❔
  • Compiler => ❔
Detailed description
Steps to reproduce
Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc
@johncblacker
Copy link
Author

Trying to build for ESP32 based on joachimBurket repo. Build error in function interTab2d after the #if CV_SIMD128 here's what I get from the build output:
../modules/imgproc/src/imgwarp.cpp:322:68: error: invalid types 'short int[int]' for array subscript
BilinearTab_iC4[i][0][j2] = BilinearTab_i[i][0][0];
^
../modules/imgproc/src/imgwarp.cpp:323:70: error: invalid types 'short int[int]' for array subscript
BilinearTab_iC4[i][0][j
2+1] = BilinearTab_i[i][0][1];
^
../modules/imgproc/src/imgwarp.cpp:324:68: error: invalid types 'short int[int]' for array subscript
BilinearTab_iC4[i][1][j2] = BilinearTab_i[i][1][0];
^
../modules/imgproc/src/imgwarp.cpp:325:70: error: invalid types 'short int[int]' for array subscript
BilinearTab_iC4[i][1][j
2+1] = BilinearTab_i[i][1][1];
Trying to build on windows10 using the mingw64 tools inside vscode. Tried searching this repo/issues and found no hits. Searched internet and found some hits on stackoverflow having something to do with the way the array was defined.

@johncblacker
Copy link
Author

Here's what I've found for array definition:
#if CV_SIMD128
static short BilinearTab_iC4_buf[INTER_TAB_SIZE2+2][2][8];
static short (BilinearTab_iC4)[2][8] = (short ()[2][8])alignPtr(BilinearTab_iC4_buf, 16);
#endif
Don't know what CV_SIMD128 is used for, nor whether it's defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants