forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenCV, Extra, ippicv: update to v4.8.1-p0 (#696)
Update `OpenCV` to version `v4.8.1-p0` and the components `OpenCV-Extra` to `v4.8.1` and `ippicv` to `20230330`. Those packages belong together so I updated them together. Implement the documentation stubs for `OpenCV-Extra` and `ippicv` as well. Update the default flags for OpenCV project to make sure all OpenCV modules, which would download data from the internet themselfs during CMake configuration are disabled.
- Loading branch information
1 parent
669859f
commit 1897f17
Showing
7 changed files
with
121 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
.. spelling:: | ||
|
||
ippicv | ||
OpenCV | ||
|
||
.. index:: unsorted ; ippicv | ||
.. index:: opencv_component ; ippicv | ||
|
||
.. _pkg.ippicv: | ||
|
||
ippicv | ||
====== | ||
|
||
.. warning:: | ||
|
||
This page is a template and contains no real information. | ||
Please send pull request with real description. | ||
|
||
- `__FIXME__ Official <https://__FIXME__>`__ | ||
- `__FIXME__ Hunterized <https://github.com/hunter-packages/__FIXME__>`__ | ||
- `__FIXME__ Example <https://github.com/cpp-pm/hunter/blob/master/examples/__FIXME__/CMakeLists.txt>`__ | ||
- Available since `__FIXME__ vX.Y.Z <https://github.com/cpp-pm/hunter/releases/tag/vX.Y.Z>`__ | ||
- Added by `__FIXME__ <https://github.com/__FIXME__>`__ (`__FIXME__ pr-N <https://github.com/ruslo/hunter/pull/N>`__) | ||
- `Official <https://github.com/opencv/opencv_3rdparty/tree/ippicv/master>`__ | ||
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/ippicv/CMakeLists.txt>`__ | ||
- Available since `v0.14.12 <https://github.com/cpp-pm/hunter/releases/tag/v0.14.12>`__ | ||
|
||
.. code-block:: cmake | ||
hunter_add_package(__FIXME__) | ||
find_package(__FIXME__ CONFIG REQUIRED) | ||
target_link_libraries(foo __FIXME__::__FIXME__) | ||
hunter_add_package(ippicv) | ||
file(GLOB ippicv_archive "${IPPICV_ROOT}/ippicv_*") | ||
if(EXISTS "${ippicv_archive}") | ||
message("ippicv archive: ${ippicv_archive}") | ||
else() | ||
message(FATAL_ERROR "Nothing found in `${IPPICV_ROOT}`") | ||
endif() | ||
ippicv stands for Intel(R) Integrated Performance Primitives for OpenCV. | ||
The package was added to be used by the OpenCV project and should be updated together with OpenCV. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
// http://docs.opencv.org/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html | ||
// from OpenCV_contrib/modules/stereo/samples/export_param_file.cpp | ||
|
||
#include <stdio.h> | ||
#include <opencv2/opencv.hpp> | ||
#include <opencv2/xfeatures2d.hpp> | ||
#include <opencv2/core.hpp> | ||
#include <opencv2/stereo.hpp> | ||
|
||
int main(int argc, char** argv) { | ||
if (argc != 2) { | ||
printf("usage: DisplayImage.out <Image_Path>\n"); | ||
return -1; | ||
} | ||
using namespace cv; | ||
using namespace std; | ||
|
||
cv::Mat image; | ||
image = cv::imread(argv[1], 1); | ||
int main(int argc, char* argv[]) | ||
{ | ||
//! [create] | ||
Ptr<stereo::QuasiDenseStereo> stereo = stereo::QuasiDenseStereo::create(cv::Size(5,5)); | ||
//! [create] | ||
|
||
if (!image.data) { | ||
printf("No image data \n"); | ||
return EXIT_FAILURE; | ||
} | ||
cv::namedWindow("Display Image", cv::WINDOW_AUTOSIZE); | ||
cv::imshow("Display Image", image); | ||
|
||
cv::waitKey(0); | ||
//! [write] | ||
std::string parameterFileLocation = "./parameters.yaml"; | ||
if (argc > 1) | ||
parameterFileLocation = argv[1]; | ||
stereo->saveParameters(parameterFileLocation); | ||
//! [write] | ||
|
||
return EXIT_SUCCESS; | ||
return 0; | ||
} |