opencv/modules/calib3d/src
Francesco Petrogalli d29c7e7871
Merge pull request #20392 from fpetrogalli:aarch64-semihosting
AArch64 semihosting

* [ts] Disable filesystem support in the TS module.

Because of this change, all the tests loading data will file, but tat
least the core module can be tested with the following line:

    opencv_test_core --gtest_filter=-"*Core_InputOutput*:*Core_globbing.accuracy*"

* [aarch64] Build OpenCV for AArch64 semihosting.

This patch provide a toolchain file that allows to build the library
for semihosting applications [1]. Minimal changes have been applied to
the code to be able to compile with a baremetal toolchain.

[1] https://developer.arm.com/documentation/100863/latest

The option `CV_SEMIHOSTING` is used to guard the bits in the code that
are specific to the target.

To build the code:

    cmake ../opencv/ \
        -DCMAKE_TOOLCHAIN_FILE=../opencv/platforms/semihosting/aarch64-semihosting.toolchain.cmake \
        -DSEMIHOSTING_TOOLCHAIN_PATH=/path/to/baremetal-toolchain/bin/ \
        -DBUILD_EXAMPLES=ON -GNinja

A barematel toolchain for targeting aarch64 semihosting can be found
at [2], under `aarch64-none-elf`.

[2] https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads

The folder `samples/semihosting` provides two example semihosting
applications.

The two binaries can be executed on the host platform with:

    qemu-aarch64 ./bin/example_semihosting_histogram
    qemu-aarch64 ./bin/example_semihosting_norm

Similarly, the test and perf executables of the modules can be run
with:

    qemu-aarch64 ./bin/opecv_[test|perf]_<module>

Notice that filesystem support is disabled by the toolchain file,
hence some of the test that depend on filesystem support will fail.

* [semihosting] Remove blank like at the end of file. [NFC]

The spurious blankline was reported by
https://pullrequest.opencv.org/buildbot/builders/precommit_docs/builds/31158.

* [semihosting] Make the raw pixel file generation OS independent.

Use the facilities provided by Cmake to generate the header file
instead of a shell script, so that the build doesn't fail on systems
that do not have a unix shell.

* [semihosting] Rename variable for semihosting compilation.

* [semihosting] Move the cmake configuration to a variable file.

* [semihosting] Make the guard macro private for the core module.

* [semihosting] Remove space. [NFC]

* [semihosting] Improve comment with information about semihosting. [NFC]

* [semihosting] Update license statement on top of sourvce file. [NFC]

* [semihosting] Replace BM_SUFFIX with SEMIHOSTING_SUFFIX. [NFC]

* [semihosting] Remove double space. [NFC]

* [semihosting] Add some text output to the sample applications.

* [semihosting] Remove duplicate entry in cmake configuration. [NFCI]

* [semihosting] Replace `long` with `int` in sample apps. [NFCI]

* [semihosting] Use `configure_file` to create the random pixels. [NFCI]

* [semihosting][bugfix] Fix name of cmakedefine variable.

* [semihosting][samples] Use CV_8UC1 for grayscale images. [NFCI]

* [semihosting] Add readme file.

* [semihosting] Remove blank like at the end of README. [NFC]

This fixes the failure at
https://pullrequest.opencv.org/buildbot/builders/precommit_docs/builds/31272.
2021-07-21 18:46:05 +03:00
..
opencl
usac Merge pull request #20012 from ivashmak:bugfix_solvepnp 2021-05-19 12:09:46 +03:00
ap3p.cpp Merge pull request #20392 from fpetrogalli:aarch64-semihosting 2021-07-21 18:46:05 +03:00
ap3p.h Add SOLVEPNP_IPPE for planar pose estimation. Add solvePnPGeneric function that returns all the pose solutions and the reprojection errors. 2019-05-20 11:56:54 +02:00
calib3d_c_api.h mostly removed obsolete C API from calib3d (at least at the interface level) (#13081) 2018-11-09 16:12:22 +03:00
calibinit.cpp Merge pull request #19565 from cyyever:minor_fix 2021-03-05 15:04:51 +00:00
calibration_handeye.cpp Add Robot-World/Hand-Eye calibration function. 2020-08-27 07:24:07 +02:00
calibration.cpp backport: checks and fixes from static code analyzers results 2020-09-02 19:05:47 +00:00
checkchessboard.cpp Merge pull request #19565 from cyyever:minor_fix 2021-03-05 15:04:51 +00:00
chessboard.cpp Do not use = 0 for a cv::Mat. 2021-06-23 21:30:06 +02:00
chessboard.hpp eliminate build warnings 2020-03-26 19:18:09 +00:00
circlesgrid.cpp Merge pull request #19565 from cyyever:minor_fix 2021-03-05 15:04:51 +00:00
circlesgrid.hpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2018-11-06 20:04:31 +00:00
compat_ptsetreg.cpp mostly removed obsolete C API from calib3d (at least at the interface level) (#13081) 2018-11-09 16:12:22 +03:00
distortion_model.hpp calib3d: move undistort files from imgproc 2018-10-05 07:52:21 +00:00
dls.cpp calib3d: check input values in dls 2020-03-24 12:22:26 +03:00
dls.h
epnp.cpp calib3d: initialize local vars, fix indentation in for loops 2019-05-27 14:39:47 +03:00
epnp.h
fisheye.cpp Merge pull request #19539 from asmorkalov:as/calib_fix_focal_length 2021-03-03 14:06:59 +00:00
fisheye.hpp
five-point.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2021-04-08 11:23:24 +00:00
fundam.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2021-04-08 11:23:24 +00:00
homography_decomp.cpp Merge pull request #13601 from JimZhou-001:JimZhou-001 2019-01-11 16:58:47 +03:00
ippe.cpp Fixed assertions on ippe solver 2020-09-21 21:56:28 -05:00
ippe.hpp Fix some typos 2019-06-05 12:24:13 +02:00
levmarq.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2019-05-16 04:40:39 +00:00
main.cpp
p3p.cpp calib3d: initialize local vars, fix indentation in for loops 2019-05-27 14:39:47 +03:00
p3p.h Add SOLVEPNP_IPPE for planar pose estimation. Add solvePnPGeneric function that returns all the pose solutions and the reprojection errors. 2019-05-20 11:56:54 +02:00
polynom_solver.cpp Merge pull request #19583 from theroyalpekka:patch-1 2021-03-05 13:55:52 +00:00
polynom_solver.h
posit.cpp mostly removed obsolete C API from calib3d (at least at the interface level) (#13081) 2018-11-09 16:12:22 +03:00
precomp.hpp Add solvePnPRefineLM to refine a pose according to a Levenberg-Marquardt iterative minimization process. Add solvePnPRefineVVS to refine a pose using a virtual visual servoing scheme. 2019-04-30 14:31:11 +02:00
ptsetreg.cpp add estimateAffine3D overload that implements Umeyama's algorithm 2021-04-28 11:33:48 +02:00
quadsubpix.cpp calib3d: fixed VS2019 warning C4756 2020-03-23 14:46:21 +03:00
rho.cpp Use BufferArea in more places 2020-02-26 11:45:19 +03:00
rho.h
solvepnp.cpp Merge pull request #20012 from ivashmak:bugfix_solvepnp 2021-05-19 12:09:46 +03:00
sqpnp.cpp calib3d: eliminate 'register' build warning 2020-11-20 20:32:59 +00:00
sqpnp.hpp Fixed several issues found by static analysis 2021-02-25 15:44:15 +03:00
stereobm.cpp Merge pull request #19685 from danbey:setting_stereoBMImpl_in_init_list 2021-03-07 20:06:08 +03:00
stereosgbm.cpp Init params (StereoSGBMParams) in StereoSGBMImpl constructor initialization list 2021-03-10 13:05:35 -05:00
triangulate.cpp mostly removed obsolete C API from calib3d (at least at the interface level) (#13081) 2018-11-09 16:12:22 +03:00
undistort.dispatch.cpp Merge pull request #20247 from IanMaquignaz:inverseRectification_update 2021-06-09 13:27:43 +00:00
undistort.simd.hpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2019-09-20 21:11:49 +00:00
upnp.cpp build: GCC9 compilation 2019-11-12 18:49:34 +03:00
upnp.h build: GCC9 compilation 2019-11-12 18:49:34 +03:00
usac.hpp calib3d: uninitialzed fields in usac 2020-11-12 13:38:26 +03:00