platform/upstream/opencv.git
9 years agoMerge pull request #4075 from MSOpenTech:backslash-upd
Vadim Pisarevsky [Fri, 29 May 2015 13:23:23 +0000 (13:23 +0000)]
Merge pull request #4075 from MSOpenTech:backslash-upd

9 years agoAdding backslash in macro-based paths
Evgeny Agafonchikov [Thu, 28 May 2015 13:16:24 +0000 (16:16 +0300)]
Adding backslash in macro-based paths

of WINRT samples

This removes requirement to add OPENCV_WINRT_INSTALL_DIR with backslash in the end

in case trailing slash is presented VS handles duplicated slashes w/o issues

9 years agoMerge pull request #4074 from vpisarev:objdetect_fixes
Vadim Pisarevsky [Thu, 28 May 2015 19:43:51 +0000 (19:43 +0000)]
Merge pull request #4074 from vpisarev:objdetect_fixes

9 years agoMerge pull request #4070 from techfort:fixpythonsample
Vadim Pisarevsky [Thu, 28 May 2015 18:06:17 +0000 (18:06 +0000)]
Merge pull request #4070 from techfort:fixpythonsample

9 years agoclip the found objects in HOG as well (http://code.opencv.org/issues/3825); added...
Vadim Pisarevsky [Thu, 28 May 2015 18:02:27 +0000 (21:02 +0300)]
clip the found objects in HOG as well (code.opencv.org/issues/3825); added test to check CascadeClassifier on small images (http://code.opencv.org/issues/3710)

9 years agomake sure the returned rectangles are inside the image (http://code.opencv.org/issues...
Vadim Pisarevsky [Thu, 28 May 2015 17:15:22 +0000 (20:15 +0300)]
make sure the returned rectangles are inside the image (code.opencv.org/issues/3136)

9 years agoimprovements in Haar CascadeClassifier: 1) use CV_32S instead of CV_32F for the integ...
Vadim Pisarevsky [Thu, 28 May 2015 16:33:21 +0000 (19:33 +0300)]
improvements in Haar CascadeClassifier: 1) use CV_32S instead of CV_32F for the integral of squares (which is more accurate and more efficient); 2) skip the window if its contrast is too low

9 years agomake facedetect.py work when the nested cascade is not specified
Vadim Pisarevsky [Thu, 28 May 2015 16:01:56 +0000 (19:01 +0300)]
make facedetect.py work when the nested cascade is not specified

9 years agoMerge pull request #4022 from LaurentBerger:ExampleBLOB_MSER
Vadim Pisarevsky [Thu, 28 May 2015 15:00:36 +0000 (15:00 +0000)]
Merge pull request #4022 from LaurentBerger:ExampleBLOB_MSER

9 years agoMerge pull request #4056 from apavlenko:java_memory_release
Vadim Pisarevsky [Thu, 28 May 2015 15:00:07 +0000 (15:00 +0000)]
Merge pull request #4056 from apavlenko:java_memory_release

9 years agoMerge pull request #4063 from Dikay900:2_4_to_master
Vadim Pisarevsky [Thu, 28 May 2015 14:49:13 +0000 (14:49 +0000)]
Merge pull request #4063 from Dikay900:2_4_to_master

9 years agoMerge pull request #4069 from MSOpenTech:sample-face-contrib
Vadim Pisarevsky [Thu, 28 May 2015 14:48:00 +0000 (14:48 +0000)]
Merge pull request #4069 from MSOpenTech:sample-face-contrib

9 years agoMerge pull request #4071 from sergarrido:fix_isContourConvex
Vadim Pisarevsky [Thu, 28 May 2015 14:44:36 +0000 (14:44 +0000)]
Merge pull request #4071 from sergarrido:fix_isContourConvex

9 years agoMerge pull request #4073 from MSOpenTech:video-sample-face
Vadim Pisarevsky [Thu, 28 May 2015 14:41:40 +0000 (14:41 +0000)]
Merge pull request #4073 from MSOpenTech:video-sample-face

9 years agoreport an error when trying to load HOG cascade
Vadim Pisarevsky [Thu, 28 May 2015 14:24:22 +0000 (17:24 +0300)]
report an error when trying to load HOG cascade

9 years agofixed outdated params setting
Joe Minichino [Thu, 28 May 2015 14:20:08 +0000 (15:20 +0100)]
fixed outdated params setting

9 years agoadded simple HAL test; added RHO homography test
Vadim Pisarevsky [Thu, 28 May 2015 14:05:43 +0000 (17:05 +0300)]
added simple HAL test; added RHO homography test

9 years agoAdded video face detection. Restructured code.
Maxim Kostin [Wed, 27 May 2015 11:29:05 +0000 (14:29 +0300)]
Added video face detection. Restructured code.

Signed-off-by: Maxim Kostin <v-maxkos@microsoft.com>
9 years agofix isContourConvex
S. Garrido [Wed, 27 May 2015 18:51:53 +0000 (20:51 +0200)]
fix isContourConvex

9 years agofixed digits.py sample to work with opencv 3
Joe Minichino [Wed, 27 May 2015 14:43:52 +0000 (15:43 +0100)]
fixed digits.py sample to work with opencv 3

9 years agoAdding WinRT face tracking sample. Works with asset images. Created by @ericmitt.
Maxim Kostin [Tue, 26 May 2015 15:10:12 +0000 (18:10 +0300)]
Adding WinRT face tracking sample. Works with asset images. Created by @ericmitt.

Signed-off-by: Maxim Kostin <v-maxkos@microsoft.com>
9 years agoMerge pull request #4055 from rajithr:patch-1
Vadim Pisarevsky [Wed, 27 May 2015 11:50:58 +0000 (11:50 +0000)]
Merge pull request #4055 from rajithr:patch-1

9 years agoMerge pull request #4065 from gongzg:master
Vadim Pisarevsky [Wed, 27 May 2015 11:26:57 +0000 (11:26 +0000)]
Merge pull request #4065 from gongzg:master

9 years agoMerge pull request #4067 from PhilLab:patch-3
Vadim Pisarevsky [Wed, 27 May 2015 11:24:35 +0000 (11:24 +0000)]
Merge pull request #4067 from PhilLab:patch-3

9 years agoMerge pull request #4068 from PhilLab:patch-4
Vadim Pisarevsky [Wed, 27 May 2015 11:24:17 +0000 (11:24 +0000)]
Merge pull request #4068 from PhilLab:patch-4

9 years agoFix for a potential data race condition
rajithr [Wed, 27 May 2015 09:42:04 +0000 (15:12 +0530)]
Fix for a potential data race condition

code changes to handle the failed build

9 years agoFix for a potential data race condition
rajithr [Wed, 27 May 2015 09:30:21 +0000 (15:00 +0530)]
Fix for a potential data race condition

9 years agoAdding missing docs for VideoWriter::release
Philipp Hasper [Wed, 27 May 2015 05:55:41 +0000 (07:55 +0200)]
Adding missing docs for VideoWriter::release

9 years agoFixed doc typo
Philipp Hasper [Wed, 27 May 2015 05:34:27 +0000 (07:34 +0200)]
Fixed doc typo

9 years agoMerge pull request #4062 from ilya-lavrenov:android_master
Vadim Pisarevsky [Tue, 26 May 2015 17:24:32 +0000 (17:24 +0000)]
Merge pull request #4062 from ilya-lavrenov:android_master

9 years agoMerge pull request #4058 from mshabunin:latch-sample
Alexander Alekhin [Tue, 26 May 2015 16:26:57 +0000 (16:26 +0000)]
Merge pull request #4058 from mshabunin:latch-sample

9 years agoFixing XIMEA parameters mapping (issue #4176)
Andrew Senin [Fri, 6 Feb 2015 21:48:37 +0000 (00:48 +0300)]
Fixing XIMEA parameters mapping (issue #4176)

Conflicts:
modules/highgui/src/cap_ximea.cpp

9 years agoability to enable OpenMP simultaneously with other parallel framework
Ilya Lavrenov [Wed, 3 Dec 2014 11:59:51 +0000 (14:59 +0300)]
ability to enable OpenMP simultaneously with other parallel framework

9 years agoC++ sample code to detect facial features
Samyak Datta [Wed, 12 Nov 2014 18:05:02 +0000 (23:35 +0530)]
C++ sample code to detect facial features

9 years agoadded extra BUFFERSIZE doc and getter
StevenPuttemans [Fri, 14 Nov 2014 13:09:43 +0000 (14:09 +0100)]
added extra BUFFERSIZE doc and getter

Conflicts:
modules/highgui/doc/reading_and_writing_images_and_video.rst
modules/highgui/src/cap_dc1394_v2.cpp

9 years agoadding extra buffer parameter
StevenPuttemans [Wed, 12 Nov 2014 09:48:24 +0000 (10:48 +0100)]
adding extra buffer parameter

Conflicts:
modules/highgui/include/opencv2/highgui/highgui_c.h
modules/highgui/src/cap_dc1394_v2.cpp

fix typo

9 years agofixing SVM negative value rounding
StevenPuttemans [Wed, 29 Oct 2014 12:50:20 +0000 (13:50 +0100)]
fixing SVM negative value rounding

Conflicts:
modules/objdetect/src/hog.cpp

fix android build

9 years agosuperres: Fix \ 1\ 1return value VideoFrameSource_GPU
Vicente Olivert Riera [Mon, 27 Oct 2014 13:39:35 +0000 (13:39 +0000)]
superres: Fix \ 1\ 1return value VideoFrameSource_GPU

superres module fails to compile with the following error messages:

[100%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/super_resolution.cpp.o
/opencv-2.4.10/modules/superres/src/frame_source.cpp: In function 'cv::Ptr<cv::superres::FrameSource> cv::superres::createFrameSource_Video_GPU(const string&)':
/opencv-2.4.10/modules/superres/src/frame_source.cpp:263:16: error: expected type-specifier before 'VideoFrameSource'
/opencv-2.4.10/modules/superres/src/frame_source.cpp:263:16: error: could not convert '(int*)operator new(4ul)' from 'int*' to 'cv::Ptr<cv::superres::FrameSource>'
/opencv-2.4.10/modules/superres/src/frame_source.cpp:263:16: error: expected ';' before 'VideoFrameSource'
/opencv-2.4.10/modules/superres/src/frame_source.cpp:263:41: error: 'VideoFrameSource' was not declared in this scope
/opencv-2.4.10/modules/superres/src/frame_source.cpp:264:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make[3]: *** [modules/superres/CMakeFiles/opencv_superres.dir/src/frame_source.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....

This is caused because the return value of the \ 1createFrameSource_Video_GPU function should be a VideoFrameSource_GPU object.
Conflicts:
modules/superres/src/frame_source.cpp

9 years agoport of MR #4061 to master
Ilya Lavrenov [Tue, 26 May 2015 14:47:03 +0000 (17:47 +0300)]
port of MR #4061 to master

9 years agoFixed the race condition between inc and dec on the l_counter.
Zhigang Gong [Tue, 26 May 2015 14:06:18 +0000 (22:06 +0800)]
Fixed the race condition between inc and dec on the l_counter.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
9 years agoAdded cvconfig.h copy during the build
Maksim Shabunin [Tue, 26 May 2015 12:58:27 +0000 (15:58 +0300)]
Added cvconfig.h copy during the build

9 years agoFixed latch sample build without contrib
Maksim Shabunin [Tue, 26 May 2015 12:57:07 +0000 (15:57 +0300)]
Fixed latch sample build without contrib

9 years agoMerge pull request #4032 from mshabunin:fix-pkg-config
Vadim Pisarevsky [Tue, 26 May 2015 12:47:14 +0000 (12:47 +0000)]
Merge pull request #4032 from mshabunin:fix-pkg-config

9 years agoMerge pull request #4053 from vpisarev:calib3d_fixes
Vadim Pisarevsky [Tue, 26 May 2015 11:23:50 +0000 (11:23 +0000)]
Merge pull request #4053 from vpisarev:calib3d_fixes

9 years agoreleasing native memory of temp `Mat` objects in generated Java code
Andrey Pavlenko [Tue, 26 May 2015 10:50:56 +0000 (13:50 +0300)]
releasing native memory of temp `Mat` objects in generated Java code

9 years agoreleasing native memory in Java converters
Andrey Pavlenko [Tue, 26 May 2015 10:10:54 +0000 (13:10 +0300)]
releasing native memory in Java converters

9 years agofor some reason Calib3d_Homography.fromImages on ARM gives much smaller number of...
Vadim Pisarevsky [Tue, 26 May 2015 09:43:18 +0000 (12:43 +0300)]
for some reason Calib3d_Homography.fromImages on ARM gives much smaller number of inliers than on x86/x64. Need to investigate more carefully, but let's decrease the tolerance threshold for now

9 years agoMerge pull request #4054 from gongzg:master
Vadim Pisarevsky [Tue, 26 May 2015 07:46:03 +0000 (07:46 +0000)]
Merge pull request #4054 from gongzg:master

9 years agofixed another compile warning from MSVC
Vadim Pisarevsky [Tue, 26 May 2015 07:29:13 +0000 (10:29 +0300)]
fixed another compile warning from MSVC

9 years agoFix for a potential data race condition
rajithr [Tue, 26 May 2015 06:01:31 +0000 (11:31 +0530)]
Fix for a potential data race condition

9 years agoAvoid negative index for a local buffer in Canny.cl.
Zhigang Gong [Tue, 26 May 2015 00:13:23 +0000 (08:13 +0800)]
Avoid negative index for a local buffer in Canny.cl.

int pix_per_thr = l_counter / LOCAL_TOTAL + ((lid < mod) ? 1 : 0);
The pix_per_thr * LOCAL_TOTAL may be larger than l_counter.
Thus the index of l_stack may be negative which may cause serious
problems. Let's skip the loop when we get negative index and we need
to add back the lcounter to keep its balance and avoid potential
negative counter.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
9 years agofixed compile warnings; reenabled solvePnPRansac.concurrency test
Vadim Pisarevsky [Mon, 25 May 2015 21:19:58 +0000 (00:19 +0300)]
fixed compile warnings; reenabled solvePnPRansac.concurrency test

9 years agohack solvePoly to finds roots of polynoms with zero higher-order coefficients. The...
Vadim Pisarevsky [Mon, 25 May 2015 20:43:39 +0000 (23:43 +0300)]
hack solvePoly to finds roots of polynoms with zero higher-order coefficients. The roots are populated in this case, which is not valid, strictly speaking, but good enough for function like correctMatches. This solves code.opencv.org/issues/4330

9 years agofixed useExtrinsicGuess=true case with single-precision input (http://code.opencv...
Vadim Pisarevsky [Mon, 25 May 2015 19:40:10 +0000 (22:40 +0300)]
fixed useExtrinsicGuess=true case with single-precision input (code.opencv.org/issues/2734)

9 years agofixed bug http://code.opencv.org/issues/3882
Vadim Pisarevsky [Mon, 25 May 2015 19:03:25 +0000 (22:03 +0300)]
fixed bug http://code.opencv.org/issues/3882

9 years agoadded tests for http://code.opencv.org/issues/4011 and http://code.opencv.org/issues...
Vadim Pisarevsky [Mon, 25 May 2015 18:46:05 +0000 (21:46 +0300)]
added tests for code.opencv.org/issues/4011 and http://code.opencv.org/issues/3057; fixed random subset generation in both methods to increase chance for a good subset

9 years agoMerge pull request #4049 from mshabunin:transition-hint
Vadim Pisarevsky [Mon, 25 May 2015 17:06:50 +0000 (17:06 +0000)]
Merge pull request #4049 from mshabunin:transition-hint

9 years agoTransition guide: removed one of the version check methods
Maksim Shabunin [Mon, 25 May 2015 15:05:20 +0000 (18:05 +0300)]
Transition guide: removed one of the version check methods

9 years agoMerge pull request #4015 from GilLevi:AddingLATCH
Vadim Pisarevsky [Mon, 25 May 2015 13:09:27 +0000 (13:09 +0000)]
Merge pull request #4015 from GilLevi:AddingLATCH

9 years agoMerge pull request #4052 from ilya-lavrenov:typo
Vadim Pisarevsky [Mon, 25 May 2015 13:07:34 +0000 (13:07 +0000)]
Merge pull request #4052 from ilya-lavrenov:typo

9 years agoMerge pull request #4051 from Dikay900:2_4_to_master_2
Vadim Pisarevsky [Mon, 25 May 2015 13:06:37 +0000 (13:06 +0000)]
Merge pull request #4051 from Dikay900:2_4_to_master_2

9 years agotypo
Ilya Lavrenov [Mon, 25 May 2015 08:21:02 +0000 (11:21 +0300)]
typo

9 years agofixed whitespace issue
GilLevi [Sun, 24 May 2015 22:28:05 +0000 (01:28 +0300)]
fixed whitespace issue

9 years agoTIFF loader: Allocate large enough buffer when (bpp * ncn) > 8.
Andreas Stührk [Sat, 18 Oct 2014 23:22:04 +0000 (01:22 +0200)]
TIFF loader: Allocate large enough buffer when (bpp * ncn) > 8.

Conflicts:
modules/highgui/src/grfmt_tiff.cpp

floodfill return value removed

9 years agofix installation layout for debian packages:
Vladislav Vinogradov [Fri, 17 Oct 2014 09:23:23 +0000 (13:23 +0400)]
fix installation layout for debian packages:

Install symlinks to shared libraries as a part of development package,
not runtime package.

It is default behavior for debian packages.

9 years agoTCP instead of UDP
Ilya Lavrenov [Mon, 6 Oct 2014 07:56:30 +0000 (07:56 +0000)]
TCP instead of UDP

Conflicts:
modules/highgui/src/cap_ffmpeg_impl.hpp

9 years agoDon't allocate lots of memory when reading TIFFs with infinite rows per strip.
Andreas Stührk [Wed, 8 Oct 2014 21:31:30 +0000 (23:31 +0200)]
Don't allocate lots of memory when reading TIFFs with infinite rows per strip.

Some TIFF images consist of only one strip. The magic value 2**32-1 for the
"rows per strip" tag reflects that fact, effectively meaning "infinite".

Conflicts:
modules/highgui/src/grfmt_tiff.cpp
modules/highgui/test/test_grfmt.cpp

fix whitespace

fix compile error

9 years agoFixes #3910, flags in _prepareImgAndDrawKeypoints are now binary OR'ed instead of...
Niklas Frisk [Tue, 7 Oct 2014 07:40:56 +0000 (09:40 +0200)]
Fixes  #3910, flags in _prepareImgAndDrawKeypoints are now binary OR'ed instead of added.

Conflicts:
modules/features2d/src/draw.cpp

9 years agoTurn off superres accuracy tests if video i/o is not supported.
Alexander Smorkalov [Wed, 1 Oct 2014 05:13:35 +0000 (09:13 +0400)]
Turn off superres accuracy tests if video i/o is not supported.

9 years agoTest fisheye.rectify disabled for Tegra.
Alexander Smorkalov [Tue, 30 Sep 2014 10:34:00 +0000 (14:34 +0400)]
Test fisheye.rectify disabled for Tegra.

9 years agobug fixed
jormansa [Mon, 15 Sep 2014 16:09:44 +0000 (18:09 +0200)]
bug fixed

Conflicts:
modules/highgui/src/cap_ffmpeg_impl.hpp

9 years agofixing GT and GE comparison symbol
StevenPuttemans [Mon, 18 Aug 2014 11:33:40 +0000 (13:33 +0200)]
fixing GT and GE comparison symbol

Conflicts:
modules/gpu/doc/per_element_operations.rst

9 years agoGCC 4.8 warning array subscript is above array bounds fixed.
Alexander Smorkalov [Wed, 13 Aug 2014 09:46:43 +0000 (13:46 +0400)]
GCC 4.8 warning array subscript is above array bounds fixed.

tiff test fixed

9 years agoDeb package build fix for CUDA 6.5 and newer.
Alexander Smorkalov [Mon, 14 Jul 2014 17:27:23 +0000 (21:27 +0400)]
Deb package build fix for CUDA 6.5 and newer.

(cherry picked from commit e650d87e470b2e6a8f87ad4dd81977748a136aee)
(cherry picked from commit ca9c52ac9778d01eba933a786b4303c79d0162be)

Conflicts:
cmake/OpenCVPackaging.cmake

9 years agoBugfix for bug #3767
Martijn Liem [Wed, 23 Jul 2014 10:33:51 +0000 (12:33 +0200)]
Bugfix for bug #3767
Fixed a memory leak in cap_dshow.cpp in videoInput::setVideoSettingCamera(). The leak was caused by not releasing an IBaseFilter object created in a call to getDevice(). Tho object is now properly released.

Conflicts:
modules/highgui/src/cap_dshow.cpp

9 years agoMerge pull request #4050 from Dikay900:2_4_to_master
Vadim Pisarevsky [Sun, 24 May 2015 09:30:46 +0000 (09:30 +0000)]
Merge pull request #4050 from Dikay900:2_4_to_master

9 years agoDoc: fix definition of macro CV_MAKETYPE
Ruslan Baratov [Sat, 12 Jul 2014 15:35:22 +0000 (19:35 +0400)]
Doc: fix definition of macro CV_MAKETYPE

At least this is how it's defined in core/types_c.h

Conflicts:
modules/core/doc/intro.rst

9 years agoFixed bug in cv::detail::waveCorrect
Leonid Beynenson [Fri, 11 Jul 2014 11:47:41 +0000 (15:47 +0400)]
Fixed bug in cv::detail::waveCorrect

The function makes wave correction of a stitched panorama.
Earlier it gave wrong results for panorama made from 1 frame.

9 years agobug fix 3696
Camille [Wed, 9 Jul 2014 20:35:56 +0000 (22:35 +0200)]
bug fix 3696

9 years agoFixes resizeWindow() on OS X (Bug #3200)
Mike Maraya [Sat, 28 Jun 2014 03:26:09 +0000 (23:26 -0400)]
Fixes resizeWindow() on OS X (Bug #3200)

9 years agotypos in comments
Dikay900 [Sat, 23 May 2015 13:26:18 +0000 (15:26 +0200)]
typos in comments

9 years agoadd NEON realization for StereoBM(findCorrespondence, prefilterXSobel)
Aleksandr Petrikov [Wed, 4 Jun 2014 08:06:33 +0000 (12:06 +0400)]
add NEON realization for StereoBM(findCorrespondence, prefilterXSobel)

Conflicts:
modules/calib3d/src/stereobm.cpp

Add CV_Assert (ndisp % 8 == 0) to NEON version

9 years agoFix resource leak with iOS camera due to failure to remove AVCaptureSession input...
Ehren Metcalfe [Sat, 31 May 2014 23:41:16 +0000 (19:41 -0400)]
Fix resource leak with iOS camera due to failure to remove AVCaptureSession input/outputs on stop (Bug #3389)

Conflicts:
modules/highgui/src/cap_ios_abstract_camera.mm

9 years agoBugfix #3705: params.setRecordingHint(true) breaks camera preview on Samsung Galaxy S2
aletheios [Sat, 31 May 2014 16:44:32 +0000 (18:44 +0200)]
Bugfix #3705: params.setRecordingHint(true) breaks camera preview on Samsung Galaxy S2

9 years agoAndroid camera qcom HAL doesn't like it when no consumer usage bits are set. Set...
Jüri Aedla [Thu, 1 May 2014 12:37:12 +0000 (15:37 +0300)]
Android camera qcom HAL doesn't like it when no consumer usage bits are set. Set a usage bit for preview BufferQueue.

9 years agoBug #3611 Initializing static cv::Mat with cv::Mat::zeros causes segmentation fault...
Alexander Smorkalov [Wed, 2 Apr 2014 01:00:44 +0000 (18:00 -0700)]
Bug #3611 Initializing static cv::Mat with cv::Mat::zeros causes segmentation fault fixed.

fix MatOpInitializer

9 years agoremoved cameraMatrix modification in the currently disabled uPnP algorithm for SolveP...
Vadim Pisarevsky [Sat, 23 May 2015 11:19:55 +0000 (14:19 +0300)]
removed cameraMatrix modification in the currently disabled uPnP algorithm for SolvePnP problem (code.opencv.org/issues/3985)

9 years agoadded another triangulation test case from http://code.opencv.org/issues/3461; fixed...
Vadim Pisarevsky [Sat, 23 May 2015 11:15:11 +0000 (14:15 +0300)]
added another triangulation test case from code.opencv.org/issues/3461; fixed partial derivative on distortion coefficients, as http://code.opencv.org/issues/4101 suggests

9 years agoMerge pull request #4010 from cr333:triangulation_fix_master
Vadim Pisarevsky [Sat, 23 May 2015 10:17:39 +0000 (10:17 +0000)]
Merge pull request #4010 from cr333:triangulation_fix_master

9 years agoreproduced test case from http://code.opencv.org/issues/4334
Vadim Pisarevsky [Sat, 23 May 2015 10:16:32 +0000 (13:16 +0300)]
reproduced test case from code.opencv.org/issues/4334

9 years agoMerge pull request #4047 from MSOpenTech:videoio-refactor-contrib
Vadim Pisarevsky [Sat, 23 May 2015 09:02:10 +0000 (09:02 +0000)]
Merge pull request #4047 from MSOpenTech:videoio-refactor-contrib

9 years agoMerge pull request #4048 from vpisarev:hal_fixes
Vadim Pisarevsky [Fri, 22 May 2015 21:19:03 +0000 (21:19 +0000)]
Merge pull request #4048 from vpisarev:hal_fixes

9 years agoTransition guide: how to check library version
Maksim Shabunin [Fri, 22 May 2015 14:55:08 +0000 (17:55 +0300)]
Transition guide: how to check library version

9 years agotrying to eliminate warnings in Android build
Vadim Pisarevsky [Fri, 22 May 2015 13:53:34 +0000 (16:53 +0300)]
trying to eliminate warnings in Android build

9 years agoMerge pull request #4016 from vladimir-dudnik:directx-opencl-sample
Vadim Pisarevsky [Fri, 22 May 2015 13:21:36 +0000 (13:21 +0000)]
Merge pull request #4016 from vladimir-dudnik:directx-opencl-sample

9 years agoUpdated pkg-config generation, added sample makefile
Maksim Shabunin [Tue, 19 May 2015 13:15:54 +0000 (16:15 +0300)]
Updated pkg-config generation, added sample makefile

9 years agocmake/OpenCVGenPkgconfig.cmake: rework opencv.pc generation
Samuel Martin [Thu, 2 Oct 2014 22:32:40 +0000 (00:32 +0200)]
cmake/OpenCVGenPkgconfig.cmake: rework opencv.pc generation

Using absolute path to locate the components in the "Libs:" field of the
*.pc can badly break cross-compilation, especially when building
statically linked objects.

Indeed, pkg-config automatically replaces the '-I...' and '-L...' paths
when the PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_LIBDIR environment
variables are set [1]. This feature is very helpful and common in
cross-compilation framework like Buildroot [2,3].

When there are absolute paths in the *.pc files, pkg-config won't be
able to do the path substitutions for these paths when the
aforementioned environment variables are set.
In such case, since the prefix is the target one, not the sysroot one,
these libraries' absolute paths will point to:
- in the best case: a non-existing file (i.e. these files do not exists
  on the host system;
- at worst: the host system's libraries. This will make the linking
  failed because these host system's libraries will most likely not be
  build for the target architecture [4].

So, this patch replace the components' absolute paths by the form:
  -L<libdir> -l<libname>

This way, the linker will be able to resolve each dependency path,
whatever the kind of objects/build (shared object or static build) it
is dealing with.

Note that for static link, the library order does matter [5]. The order
of the opencv components has been carefully chosen to comply with this
requirement.

Fixes #3931

This patch is a port of [6] on the master branch.

[1] http://linux.die.net/man/1/pkg-config
[2] http://buildroot.org/
[3] http://git.buildroot.net/buildroot/tree/package/pkgconf/pkg-config.in
[4] http://autobuild.buildroot.net/results/e8a/e8a859276db34aff87ef181b0cce98916b0afc90/build-end.log
[5] http://stackoverflow.com/questions/45135/linker-order-gcc
[6] https://github.com/Itseez/opencv/commit/eceada586bbf18fc267e437522ec4f1f23ddc656

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
9 years agoremoved HAL calls from public OpenCV headers; put IPP calls back to hall:sqrt() and...
Vadim Pisarevsky [Fri, 22 May 2015 13:04:10 +0000 (16:04 +0300)]
removed HAL calls from public OpenCV headers; put IPP calls back to hall:sqrt() and such (but they are disabled for now)

9 years agoRefactored internal helpers. Simplified structure. Updated comments. Updates #41
Maxim Kostin [Mon, 18 May 2015 12:21:49 +0000 (15:21 +0300)]
Refactored internal helpers. Simplified structure. Updated comments. Updates #41

Signed-off-by: Maxim Kostin <v-maxkos@microsoft.com>
9 years agoshort description moved to the beginning of file
Vladimir Dudnik [Fri, 22 May 2015 11:12:00 +0000 (14:12 +0300)]
short description moved to the beginning of file