platform/upstream/opencv.git
6 years agoFixed #12933: added cast to silence clang -Wcomma warning
Sean McBride [Thu, 25 Oct 2018 17:27:17 +0000 (13:27 -0400)]
Fixed #12933: added cast to silence clang -Wcomma warning

6 years agoMerge pull request #12138 from wanghanmin:wanghanmin-patch-videoio_crossbarsetting-1
wanghanmin [Thu, 25 Oct 2018 16:41:37 +0000 (00:41 +0800)]
Merge pull request #12138 from wanghanmin:wanghanmin-patch-videoio_crossbarsetting-1

* Update videoio.hpp

add VideoCapturePropertie for clossbar input pin setting

* Update cap_dshow.cpp

For some kind of capture card, such as "avermedia cv710 " , it use SerialDigital as input pin and so it can not work.
Here added new PhysicalConnectorType enumeration: PhysConn_Video_YRYBY and PhysConn_Video_SerialDigital to support it.
And also provide new property parameter CAP_CROSSBAR_INPIN_TYPE to set the crossbar input pin type which will be used in videoInput::start(int deviceID, videoDevice *VD):
" if(VD->useCrossbar)
    {
        DebugPrintOut("SETUP: Checking crossbar\n");
        routeCrossbar(&VD->pCaptureGraph, &VD->pVideoInputFilter, VD->connection, CAPTURE_MODE);

    }
"

And at last ,fixed one issue for function setSizeAndSubtype, added code
pVih->rcSource.top = pVih->rcSource.left = pVih->rcTarget.top =pVih->rcTarget.left=0;
pVih->rcSource.right = pVih->rcTarget.right= attemptWidth;
pVih->rcSource.bottom = pVih->rcTarget.bottom = attemptHeight;

without these code , rcSource and rcTarget will keeping use default resolution and cause fail in hr = VD->streamConf->SetFormat(VD->pAmMediaType) and cannot find suitable MediaType.

Tested with python3 and mfc (Avermedia cv710)
Python3 code:
import cv2
print("test cv")
cap=cv2.VideoCapture(0)
cap.set(5,60)
cap.set(3,1920)
cap.set(4,1080)
cap.set(31,6)

ret,img=cap.read()
cv2.namedWindow("cap",cv2.WINDOW_NORMAL)
cv2.resizeWindow("cap",960,640);
while True:
    ret,img=cap.read()
    if ret==False:
        continue
    cv2.imshow("cap",img)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
cap.release()

cv2.destroyAllWindows()

MFC code:
void CcvtestDlg::OnBnClickedButton1()
{
VideoCapture cap(0);
cap.set(CAP_PROP_FRAME_WIDTH, 1920);
cap.set(CAP_PROP_FRAME_HEIGHT, 1080);

cap.set(CAP_CROSSBAR_INPIN_TYPE , 6);
Mat img;
namedWindow("test", WINDOW_NORMAL);
resizeWindow("test", 960, 640);
while (1)
{
if (cap.read(img))
{
imshow("test", img);
if ('q' ==waitKey(1))
break;
}
}
destroyAllWindows();
cap.release();
}

* Update cap_dshow.cpp

* Update videoio.hpp

move enum value of CAP_CROSSBAR_INPIN_TYPE to the end of list

* Update videoio.hpp

* Update cap_dshow.cpp

removed trailing whitespace

* Update test_camera.cpp

Add test for capture device using PhysConn_Video_SerialDigital as crossbar input pin

* Update test_camera.cpp

Correction of misunderstanding about how to add test case.

6 years agoMerge pull request #12772 from xoox:calib-release-object
Wenfeng CAI [Thu, 25 Oct 2018 16:38:55 +0000 (00:38 +0800)]
Merge pull request #12772 from xoox:calib-release-object

More accurate pinhole camera calibration with imperfect planar target (#12772)
43 commits:

* Add derivatives with respect to object points

Add an output parameter to calculate derivatives of image points with
respect to 3D coordinates of object points. The output jacobian matrix
is a 2Nx3N matrix where N is the number of points.

This commit introduces incompatibility to old function signature.

* Set zero for dpdo matrix before using

dpdo is a sparse matrix with only non-zero value close to major
diagonal. Set it to zero because only elements near major diagonal are
computed.

* Add jacobian columns to projectPoints()

The output jacobian matrix of derivatives with respect to coordinates of
3D object points are added. This might break callers who assume the
columns of jacobian matrix.

* Adapt test code to updated project functions

The test cases for projectPoints() and cvProjectPoints2() are updated to
fit new function signatures.

* Add accuracy test code for dpdo

* Add badarg test for dpdo

* Add new enum item for new calibration method

CALIB_RELEASE_OBJECT is used to whether to release 3D coordinates of
object points. The method was proposed in: K. H. Strobl and G. Hirzinger.
"More Accurate Pinhole Camera Calibration with Imperfect Planar Target".
In Proceedings of the IEEE International Conference on Computer Vision
(ICCV 2011), 1st IEEE Workshop on Challenges and Opportunities in Robot
Perception, Barcelona, Spain, pp. 1068-1075, November 2011.

* Add releasing object method into internal function

It's a simple extension of the standard calibration scheme. We choose to
fix the first and last object point and a user-selected fixed point.

* Add interfaces for extended calibration method

* Refine document for calibrateCamera()

When releasing object points, only the z coordinates of the
objectPoints[0].back is fixed.

* Add link to strobl2011iccv paper

* Improve documentation for calibrateCamera()

* Add implementations of wrapping calibrateCamera()

* Add checking for params of new calibration method

If input parameters are not qualified, then fall back to standard
calibration method.

* Add camera calibration method of releasing object

The current implementation is equal to or better than
https://github.com/xoox/calibrel

* Update doc for CALIB_RELEASE_OBJECT

CALIB_USE_QR or CALIB_USE_LU could be used for faster calibration with
potentially less precise and less stable in some rare cases.

* Add RELEASE_OBJECT calibration to tutorial code

To select the calibration method of releasing object points, a command
line parameter `-d=<number>` should be provided.

* Update tutorial doc for camera_calibration

If the method of releasing object points is merged into OpenCV. It will
be expected to be firstly released in 4.1, I think.

* Reduce epsilon for cornerSubPix()

Epsilon of 0.1 is a bigger one. Preciser corner positions are required
with calibration method of releasing object.

* Refine camera calibration tutorial

The hypothesis coordinates are used to indicate which distance must be
measured between two specified object points.

* Update sample calibration code method selection

Similar to camera_calibration tutorial application, a command line
argument `-dt=<number>` is used to select the calibration method.

* Add guard to flags of cvCalibrateCamera2()

cvCalibrateCamera2() doesn't accept CALIB_RELEASE_OBJECT unless overload
interface is added in the future.

* Simplify fallback when iFixedPoint is out of range

* Refactor projectPoints() to keep compatibilities

* Fix arg string "Bad rvecs header"

* Read calibration flags from test data files

Instead of being hard coded into source file, the calibration flags will
be read from test data files.
opencv_extra/testdata/cv/cameracalibration/calib?.dat must be sync with
the test code.

* Add new C interface of cvCalibrateCamera4()

With this new added C interface, the extended calibration method with
CALIB_RELEASE_OBJECT can be called by C API.

* Add regression test of extended calibration method

It has been tested with new added test data in xoox:calib-release-object
branch of opencv_extra.

* Fix assertion in test_cameracalibration.cpp

The total number of refined 3D object coordinates is checked.

* Add checker for iFixedPoint in cvCalibrateCamera4

If iFixedPoint is out of rational range, fall back to standard method.

* Fix documentation for overloaded calibrateCamera()

* Remove calibration flag of CALIB_RELEASE_OBJECT

The method selection is based on the range of the index of fixed point.
For minus values, standard calibration method will be chosen.  Values in
a rational range will make the object-releasing calibration method
selected.

* Use new interfaces instead of function overload

Existing interfaces are preserved and new interfaces are added. Since
most part of the code base are shared, calibrateCamera() is now a
wrapper function of calibrateCameraRO().

* Fix exported name of calibrateCameraRO()

* Update documentation for calibrateCameraRO()

The circumstances where this method is mostly helpful are described.

* Add note on the rigidity of the calibration target

* Update documentation for calibrateCameraRO()

It is clarified that iFixedPoint is used as a switch to select
calibration method. If input data are not qualified, exceptions will be
thrown instead of fallback scheme.

* Clarify iFixedPoint as switch and remove fallback

iFixedPoint is now used as a switch for calibration method selection. No
fallback scheme is utilized anymore. If the input data are not
qualified, exceptions will be thrown.

* Add badarg test for object-releasing method

* Fix document format of sample list

List items of same level should be indented the same way. Otherwise they
will be formatted as nested lists by Doxygen.

* Add brief intro for objectPoints and imagePoints

* Sync tutorial to sample calibration code

* Update tutorial compatibility version to 4.0

6 years agoMerge pull request #12937 from mshabunin:fix-static-4
Alexander Alekhin [Thu, 25 Oct 2018 15:15:15 +0000 (15:15 +0000)]
Merge pull request #12937 from mshabunin:fix-static-4

6 years agoMerge pull request #12927 from alalek:docs_filter_gapi_exports
Alexander Alekhin [Thu, 25 Oct 2018 11:53:06 +0000 (11:53 +0000)]
Merge pull request #12927 from alalek:docs_filter_gapi_exports

6 years agocore: move compiler defines from base.hpp into cvdef.h
Alexander Alekhin [Thu, 25 Oct 2018 03:02:01 +0000 (03:02 +0000)]
core: move compiler defines from base.hpp into cvdef.h

6 years agoFixed several issues found by static analysis
Maksim Shabunin [Tue, 23 Oct 2018 12:06:33 +0000 (15:06 +0300)]
Fixed several issues found by static analysis

6 years agoMerge pull request #12894 from alalek:c_api_drop_samples
Alexander Alekhin [Wed, 24 Oct 2018 15:40:03 +0000 (15:40 +0000)]
Merge pull request #12894 from alalek:c_api_drop_samples

6 years agoMerge pull request #12922 from alalek:fix_merge_12787
Alexander Alekhin [Wed, 24 Oct 2018 15:15:13 +0000 (15:15 +0000)]
Merge pull request #12922 from alalek:fix_merge_12787

6 years agodocs: hide GAPI_EXPORTS from documentation
Alexander Alekhin [Wed, 24 Oct 2018 15:05:21 +0000 (18:05 +0300)]
docs: hide GAPI_EXPORTS from documentation

6 years agoMerge pull request #12887 from alalek:fix_cmake_conditions
Alexander Alekhin [Wed, 24 Oct 2018 13:17:54 +0000 (13:17 +0000)]
Merge pull request #12887 from alalek:fix_cmake_conditions

6 years agocore: fix merge from 3.4
Alexander Alekhin [Wed, 24 Oct 2018 11:45:45 +0000 (14:45 +0300)]
core: fix merge from 3.4

`CV_ErrorNoReturn` should not be used in OpenCV

6 years agoMerge pull request #12857 from dmatveev:hld
Dmitry Matveev [Wed, 24 Oct 2018 04:47:56 +0000 (07:47 +0300)]
Merge pull request #12857 from dmatveev:hld

* G-API Documentation: first submission

This PR introduces a number of new OpenCV documentation chapters for
Graph API module.

In particular, the following topics are covered:
- Introduction & background information;
- High-level design overview;
- Kernel API;
- Pipeline example.

All changes are done in Markdown files, no headers, etc modified.

Doxygen references for main API classes will be added later.

Also, a tutorial will be introduced soon (in the common Tutorials place)

* G-API Documentation - fix warnings & trailing whitespaces

* G-API Documentation: address review issues

* G-API Documentation: export code snippets to compileable files

* gapi: move documentation samples

6 years agorewrote the line segment intersection function to make the static analyzer happy...
Vadim Pisarevsky [Tue, 23 Oct 2018 14:09:23 +0000 (17:09 +0300)]
rewrote the line segment intersection function to make the static analyzer happy (#12902)

* rewrote the line segment intersection function to make the static analyzer happy

* fixed bug with improper "no intersection" detection in some of corner cases

* fixed bug with improper "no intersection" detection in some of corner cases

6 years agodrop C-API sample code
Alexander Alekhin [Mon, 22 Oct 2018 17:22:11 +0000 (17:22 +0000)]
drop C-API sample code

6 years agocmake: fix variable expand in CMake conditions
Alexander Alekhin [Sun, 21 Oct 2018 15:02:40 +0000 (15:02 +0000)]
cmake: fix variable expand in CMake conditions

6 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 20 Oct 2018 11:37:54 +0000 (11:37 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

6 years agoMerge pull request #12871 from UnderscoreAsterisk:document-Distance
Apoorv Goel [Sat, 20 Oct 2018 08:15:13 +0000 (13:45 +0530)]
Merge pull request #12871 from UnderscoreAsterisk:document-Distance

* Document distance functors in dist.h

* Add spec for Distance

* Generate appropriate links for symbols

6 years agoMerge pull request #12875 from dkurt:dnn_enet_accuracy
Alexander Alekhin [Fri, 19 Oct 2018 15:33:48 +0000 (15:33 +0000)]
Merge pull request #12875 from dkurt:dnn_enet_accuracy

6 years agoMerge pull request #12870 from dmatveev:gapi_fluid_basic_hetero_support
Dmitry Matveev [Fri, 19 Oct 2018 15:32:48 +0000 (18:32 +0300)]
Merge pull request #12870 from dmatveev:gapi_fluid_basic_hetero_support

* G-API Fluid basic heterogeneity support: initial upload

* G-API Fluid heterogeneity: address some coding style issues

* G-API Fluid heterogeneity: fix compiler warnings

* G-API Fluid heterogeneity: fix warnings on Windows & ARMv7

* G-API Fluid heterogeneity: finally fix Windows warnings

* G-API Fluid heterogeneity: fix dangling reference problem

6 years agoFix ENet test
Dmitry Kurtaev [Fri, 19 Oct 2018 14:43:26 +0000 (17:43 +0300)]
Fix ENet test

6 years agoMerge pull request #12867 from UnderscoreAsterisk:document-radiusSearch
Alexander Alekhin [Thu, 18 Oct 2018 07:52:49 +0000 (07:52 +0000)]
Merge pull request #12867 from UnderscoreAsterisk:document-radiusSearch

6 years agoMerge pull request #12832 from kmansoo:fix-compile-errors-on-nvcc10
Alexander Alekhin [Thu, 18 Oct 2018 07:51:47 +0000 (07:51 +0000)]
Merge pull request #12832 from kmansoo:fix-compile-errors-on-nvcc10

6 years agoAdd documentation for radiusSearch
Apoorv [Wed, 17 Oct 2018 22:39:16 +0000 (04:09 +0530)]
Add documentation for radiusSearch

6 years agocuda: fix build with CUDA 10.x
Mansoo Kim [Wed, 17 Oct 2018 17:35:40 +0000 (17:35 +0000)]
cuda: fix build with CUDA 10.x

6 years agoMerge pull request #12852 from nangchoo:bugfix/increase_magic_threshold_for_perf_test
Alexander Alekhin [Wed, 17 Oct 2018 17:31:19 +0000 (17:31 +0000)]
Merge pull request #12852 from nangchoo:bugfix/increase_magic_threshold_for_perf_test

6 years agoMerge pull request #12844 from jasjuang:3.4
Alexander Alekhin [Wed, 17 Oct 2018 17:31:00 +0000 (17:31 +0000)]
Merge pull request #12844 from jasjuang:3.4

6 years agoMerge pull request #12864 from dkurt:dnn_ie_get_batch_size
Alexander Alekhin [Wed, 17 Oct 2018 14:02:25 +0000 (14:02 +0000)]
Merge pull request #12864 from dkurt:dnn_ie_get_batch_size

6 years agoMerge pull request #12863 from alalek:disable_wshadow_gcc_4.x
Alexander Alekhin [Wed, 17 Oct 2018 13:59:13 +0000 (13:59 +0000)]
Merge pull request #12863 from alalek:disable_wshadow_gcc_4.x

6 years agoImplement getBatchSize for Intel's Inference Engine networks
Dmitry Kurtaev [Wed, 17 Oct 2018 11:02:37 +0000 (14:02 +0300)]
Implement getBatchSize for Intel's Inference Engine networks

6 years agoMerge pull request #12838 from dmatveev:gapi_fluid_resize_lpi
Alexander Alekhin [Wed, 17 Oct 2018 09:22:28 +0000 (09:22 +0000)]
Merge pull request #12838 from dmatveev:gapi_fluid_resize_lpi

6 years agobuild: eliminate warnings
Alexander Alekhin [Wed, 17 Oct 2018 08:41:18 +0000 (08:41 +0000)]
build: eliminate warnings

6 years agoMerge pull request #12860 from janisozaur:include-guards
Alexander Alekhin [Wed, 17 Oct 2018 08:20:31 +0000 (08:20 +0000)]
Merge pull request #12860 from janisozaur:include-guards

6 years agoMerge pull request #12859 from janisozaur:empty-block
Alexander Alekhin [Wed, 17 Oct 2018 08:20:08 +0000 (08:20 +0000)]
Merge pull request #12859 from janisozaur:empty-block

6 years agoMerge pull request #12858 from janisozaur:catch-by-ref
Alexander Alekhin [Wed, 17 Oct 2018 08:19:11 +0000 (08:19 +0000)]
Merge pull request #12858 from janisozaur:catch-by-ref

6 years agoFix clashing include guards
Michał Janiszewski [Tue, 16 Oct 2018 19:15:54 +0000 (21:15 +0200)]
Fix clashing include guards

Relevant guards can be found in
https://github.com/opencv/opencv/blob/ef5579dc8667e5eb5e149acc4af898421eed99da/modules/features2d/src/kaze/AKAZEConfig.h#L8
and
https://github.com/opencv/opencv/blob/ef5579dc8667e5eb5e149acc4af898421eed99da/modules/ml/include/opencv2/ml.hpp#L44

6 years agoRemove unused empty block
Michał Janiszewski [Tue, 16 Oct 2018 19:13:23 +0000 (21:13 +0200)]
Remove unused empty block

6 years agoCatch exceptions by const-reference
Michał Janiszewski [Tue, 16 Oct 2018 19:09:26 +0000 (21:09 +0200)]
Catch exceptions by const-reference

Exceptions caught by value incur needless cost in C++, most of them can
be caught by const-reference, especially as nearly none are actually
used. This could allow compiler generate a slightly more efficient code.

6 years agoIncreased the acceptable error margin for perf testing
Paul Shin [Tue, 16 Oct 2018 03:03:39 +0000 (20:03 -0700)]
Increased the acceptable error margin for perf testing

- This is to accommodate the variabiilty in floating-point operations in new platforms/compilers
- Specifically due to the error margin found in NVIDIA Jetson TX2

6 years agoMerge tag '4.0.0-beta'
Alexander Alekhin [Mon, 15 Oct 2018 20:33:41 +0000 (20:33 +0000)]
Merge tag '4.0.0-beta'

6 years agorelease: OpenCV 4.0.0-beta (version++)
Alexander Alekhin [Mon, 15 Oct 2018 20:31:53 +0000 (20:31 +0000)]
release: OpenCV 4.0.0-beta (version++)

6 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Mon, 15 Oct 2018 20:15:42 +0000 (20:15 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

6 years agoMerge pull request #12848 from alalek:issue_12337
Alexander Alekhin [Mon, 15 Oct 2018 20:09:36 +0000 (20:09 +0000)]
Merge pull request #12848 from alalek:issue_12337

6 years agoMerge pull request #12845 from alalek:workaround_12824
Alexander Alekhin [Mon, 15 Oct 2018 20:09:06 +0000 (20:09 +0000)]
Merge pull request #12845 from alalek:workaround_12824

6 years agoMerge pull request #12846 from alalek:issue_12834
Alexander Alekhin [Mon, 15 Oct 2018 19:19:46 +0000 (19:19 +0000)]
Merge pull request #12846 from alalek:issue_12834

6 years agoMerge pull request #12843 from alalek:fix_qrdecode_input_validation
Alexander Alekhin [Mon, 15 Oct 2018 19:18:58 +0000 (19:18 +0000)]
Merge pull request #12843 from alalek:fix_qrdecode_input_validation

6 years agoMerge pull request #12829 from tomoaki0705:fixTestVideoOpenCLPyrLK
Alexander Alekhin [Mon, 15 Oct 2018 19:18:24 +0000 (19:18 +0000)]
Merge pull request #12829 from tomoaki0705:fixTestVideoOpenCLPyrLK

6 years agoMerge pull request #12837 from dkurt:dnn_fix_ie
Alexander Alekhin [Mon, 15 Oct 2018 19:17:18 +0000 (19:17 +0000)]
Merge pull request #12837 from dkurt:dnn_fix_ie

6 years agocore: update solveLP() interface
Alexander Alekhin [Mon, 15 Oct 2018 18:58:11 +0000 (18:58 +0000)]
core: update solveLP() interface

6 years agovideoio: return -1 is incorrect for function with 'bool' result
Alexander Alekhin [Mon, 15 Oct 2018 18:20:15 +0000 (18:20 +0000)]
videoio: return -1 is incorrect for function with 'bool' result

6 years agoocl: bailout from unsupported types
Alexander Alekhin [Mon, 15 Oct 2018 18:06:06 +0000 (18:06 +0000)]
ocl: bailout from unsupported types

6 years agoadd support for latest Turing gpu and cuda 10
jasjuang [Mon, 15 Oct 2018 17:40:24 +0000 (10:40 -0700)]
add support for latest Turing gpu and cuda 10

6 years agoobjdetect: validate QRdecode inputs
Alexander Alekhin [Mon, 15 Oct 2018 17:13:16 +0000 (17:13 +0000)]
objdetect: validate QRdecode inputs

- drop unnecessary matrix initialization

6 years agoMerge pull request #12836 from dmatveev:gapi_upd151018
Alexander Alekhin [Mon, 15 Oct 2018 16:20:52 +0000 (16:20 +0000)]
Merge pull request #12836 from dmatveev:gapi_upd151018

6 years agoMerge pull request #12775 from radomsak:radomsak_dnn_fix_caffe_importer_reused_layers
Alexander Alekhin [Mon, 15 Oct 2018 14:44:23 +0000 (14:44 +0000)]
Merge pull request #12775 from radomsak:radomsak_dnn_fix_caffe_importer_reused_layers

6 years agoMerge pull request #12799 from alalek:update_build_js
Alexander Alekhin [Mon, 15 Oct 2018 14:35:21 +0000 (17:35 +0300)]
Merge pull request #12799 from alalek:update_build_js

* js: update build script

- support emscipten 1.38.12 (wasm is ON by default)
- verbose build messages

* js: use builtin Math functions

* js: disable tracing code completelly

6 years agoMerge pull request #12826 from alalek:issue_8413
Alexander Alekhin [Mon, 15 Oct 2018 14:24:56 +0000 (14:24 +0000)]
Merge pull request #12826 from alalek:issue_8413

6 years agoMerge pull request #12825 from alalek:issue_8413_3.4
Alexander Alekhin [Mon, 15 Oct 2018 14:23:21 +0000 (14:23 +0000)]
Merge pull request #12825 from alalek:issue_8413_3.4

6 years agoG-API: Introduce LPI (multiple Lines-Per-Iteration) support for Resize
Dmitry Matveev [Mon, 15 Oct 2018 14:08:18 +0000 (17:08 +0300)]
G-API: Introduce LPI (multiple Lines-Per-Iteration) support for Resize

Several Resize optimizations count on fetching multiple input lines at
once to do interpolation more efficiently.

At the moment, Fluid backend supports only LPI=1 for Resize kernels.

This patch introduces scheduling support for Resizes with LPI>1 and
covers these cases with new tests.

The support is initially written by Ruslan Garnov.

6 years agofix test failure of PyrLKOpticalFlow.Mat
Tomoaki Teshima [Mon, 15 Oct 2018 13:57:08 +0000 (22:57 +0900)]
fix test failure of PyrLKOpticalFlow.Mat
  * remove race condition
  * upload _prevPts to OpenCL device explicitly before calling "sparse"

6 years agoMerge pull request #12344 from terfendail:core_wintr
Alexander Alekhin [Mon, 15 Oct 2018 13:48:15 +0000 (13:48 +0000)]
Merge pull request #12344 from terfendail:core_wintr

6 years agoFix Pooling and Convolution layers from Intel's Inference Engine
Dmitry Kurtaev [Mon, 15 Oct 2018 13:40:28 +0000 (16:40 +0300)]
Fix Pooling and Convolution layers from Intel's Inference Engine

6 years agoG-API: Fixed static analysis issue in own::Mat
Dmitry Matveev [Mon, 15 Oct 2018 13:31:31 +0000 (16:31 +0300)]
G-API: Fixed static analysis issue in own::Mat

Tool reported a false alarm on possible out-of-bounds access which
was work-arounded to make code more clear

6 years agoMerge pull request #12516 from seiko2plus:changeUnvMultiply16
Alexander Alekhin [Mon, 15 Oct 2018 12:07:40 +0000 (12:07 +0000)]
Merge pull request #12516 from seiko2plus:changeUnvMultiply16

6 years agoAdded test caffe importer layers sharing weights
Adam Radomski [Mon, 15 Oct 2018 09:42:26 +0000 (11:42 +0200)]
Added test caffe importer layers sharing weights

6 years agoReplaced core module calls to universal intrinsics with wide universal intrinsics
Vitaly Tuzov [Wed, 5 Sep 2018 13:17:43 +0000 (16:17 +0300)]
Replaced core module calls to universal intrinsics with wide universal intrinsics

6 years agoMerge pull request #12697 from tellowkrinkle:FasterCocoaWindows
tellowkrinkle [Sun, 14 Oct 2018 18:18:05 +0000 (13:18 -0500)]
Merge pull request #12697 from tellowkrinkle:FasterCocoaWindows

* Make cocoa windows draw faster

* Use a CALayer for rendering when possible Uses GPU to scale images, which is important because retina macs will want window sizes much larger (in pixels) than the image

* Fix mouse logic for cocoa windows

* Only halve resolution on retina if image is larger than display

6 years agoMerge pull request #12823 from tompollok:3.4
Alexander Alekhin [Sun, 14 Oct 2018 13:33:23 +0000 (13:33 +0000)]
Merge pull request #12823 from tompollok:3.4

6 years agogapi(test): disable divide tests with zeros
Alexander Alekhin [Sun, 14 Oct 2018 03:47:40 +0000 (03:47 +0000)]
gapi(test): disable divide tests with zeros

6 years agocore: follow IEEE 754 rules for floating-point division
Alexander Alekhin [Sun, 14 Oct 2018 00:37:10 +0000 (00:37 +0000)]
core: follow IEEE 754 rules for floating-point division

6 years agocore(test): zero values divide test (4.0+)
Alexander Alekhin [Sun, 14 Oct 2018 01:28:54 +0000 (01:28 +0000)]
core(test): zero values divide test (4.0+)

6 years agoMerge branch 'issue_8413_3.4'
Alexander Alekhin [Sun, 14 Oct 2018 03:46:01 +0000 (03:46 +0000)]
Merge branch 'issue_8413_3.4'

6 years agocore(test): zero values divide test (3.x)
Alexander Alekhin [Sun, 14 Oct 2018 02:21:13 +0000 (02:21 +0000)]
core(test): zero values divide test (3.x)

6 years agocore(ocl): replace ambiguous 'depth' to 'DEPTH_dst'
Alexander Alekhin [Sun, 14 Oct 2018 01:49:14 +0000 (01:49 +0000)]
core(ocl): replace ambiguous 'depth' to 'DEPTH_dst'

- always pass DEPTH_dst value to core/arithm kernel

6 years agochange area() emptiness checks to empty()
tompollok [Sat, 13 Oct 2018 19:35:10 +0000 (21:35 +0200)]
change area() emptiness checks to empty()

6 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 13 Oct 2018 15:13:45 +0000 (15:13 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

6 years agoMerge pull request #12805 from drkoller:imwritedoc
Alexander Alekhin [Sat, 13 Oct 2018 13:20:33 +0000 (13:20 +0000)]
Merge pull request #12805 from drkoller:imwritedoc

6 years agoMerge pull request #12815 from alalek:issue_12812
Alexander Alekhin [Sat, 13 Oct 2018 13:12:55 +0000 (13:12 +0000)]
Merge pull request #12815 from alalek:issue_12812

6 years agoMerge pull request #12641 from dkurt:dnn_samples_args_autofill
Alexander Alekhin [Sat, 13 Oct 2018 12:28:08 +0000 (12:28 +0000)]
Merge pull request #12641 from dkurt:dnn_samples_args_autofill

6 years agoMerge pull request #12802 from alalek:cmake_pdb
Alexander Alekhin [Sat, 13 Oct 2018 12:25:35 +0000 (12:25 +0000)]
Merge pull request #12802 from alalek:cmake_pdb

6 years agoClean up documentation for imread and imwrite
drkoller [Thu, 11 Oct 2018 20:27:13 +0000 (16:27 -0400)]
Clean up documentation for imread and imwrite

6 years agocore: re-throw allocation exception if there is no fallback
Alexander Alekhin [Fri, 12 Oct 2018 19:10:06 +0000 (19:10 +0000)]
core: re-throw allocation exception if there is no fallback

6 years agoMerge pull request #12811 from take1014:resize_large_image
Alexander Alekhin [Fri, 12 Oct 2018 16:59:25 +0000 (16:59 +0000)]
Merge pull request #12811 from take1014:resize_large_image

6 years agoMerge pull request #12806 from seiko2plus:imgprocPyramidsVSX
Alexander Alekhin [Fri, 12 Oct 2018 16:59:01 +0000 (16:59 +0000)]
Merge pull request #12806 from seiko2plus:imgprocPyramidsVSX

6 years agoresolves 11283
take1014 [Fri, 12 Oct 2018 14:08:03 +0000 (23:08 +0900)]
resolves 11283

6 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Thu, 11 Oct 2018 23:40:55 +0000 (23:40 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

6 years agoimgproc: Enable VSX on pyrDown & pyrUp
Sayed Adel [Thu, 11 Oct 2018 23:03:57 +0000 (23:03 +0000)]
imgproc: Enable VSX on pyrDown & pyrUp

6 years agoMerge pull request #12803 from alalek:samples_use_cmake_from_msvs
Alexander Alekhin [Thu, 11 Oct 2018 19:30:49 +0000 (19:30 +0000)]
Merge pull request #12803 from alalek:samples_use_cmake_from_msvs

6 years agoMerge pull request #12796 from alalek:fix_openmp_performance
Alexander Alekhin [Thu, 11 Oct 2018 19:29:04 +0000 (19:29 +0000)]
Merge pull request #12796 from alalek:fix_openmp_performance

6 years agoMerge pull request #12791 from alalek:win32_dllmain_detect_termination
Alexander Alekhin [Thu, 11 Oct 2018 19:28:29 +0000 (19:28 +0000)]
Merge pull request #12791 from alalek:win32_dllmain_detect_termination

6 years agoMerge pull request #12784 from terfendail:pyramids_wintr
Alexander Alekhin [Thu, 11 Oct 2018 19:26:36 +0000 (19:26 +0000)]
Merge pull request #12784 from terfendail:pyramids_wintr

6 years agoMerge pull request #12748 from terfendail:resize_wintr2
Alexander Alekhin [Thu, 11 Oct 2018 19:26:17 +0000 (19:26 +0000)]
Merge pull request #12748 from terfendail:resize_wintr2

6 years agoMerge pull request #12623 from sturkmen72:videoio-4
Alexander Alekhin [Thu, 11 Oct 2018 19:24:56 +0000 (19:24 +0000)]
Merge pull request #12623 from sturkmen72:videoio-4

6 years agoMerge pull request #12450 from sturkmen72:update_HOGDescriptor
Alexander Alekhin [Thu, 11 Oct 2018 19:23:35 +0000 (19:23 +0000)]
Merge pull request #12450 from sturkmen72:update_HOGDescriptor

6 years agoMerge pull request #12792 from tomoaki0705:fixCudaImgprocColorGray
Alexander Alekhin [Thu, 11 Oct 2018 16:32:11 +0000 (16:32 +0000)]
Merge pull request #12792 from tomoaki0705:fixCudaImgprocColorGray

6 years agosamples: prefer CMake from MSVS
Alexander Alekhin [Thu, 11 Oct 2018 16:15:52 +0000 (19:15 +0300)]
samples: prefer CMake from MSVS

MSVS is shipped with CMake compoment.

6 years agocmake: improve PDB support
Alexander Alekhin [Wed, 10 Oct 2018 16:16:32 +0000 (19:16 +0300)]
cmake: improve PDB support

6 years agoupdate the threshold
Tomoaki Teshima [Thu, 11 Oct 2018 09:45:20 +0000 (18:45 +0900)]
update the threshold
  * fix test failure of cudaimgproc convert color bgr2lab series

6 years agoMerge pull request #12521 from allnes:detect_qr_code
Alexander Alekhin [Thu, 11 Oct 2018 09:42:05 +0000 (12:42 +0300)]
Merge pull request #12521 from allnes:detect_qr_code

Objdetect: QRCode detect + decode

6 years agoimgproc:simd Enable VSX and wide universal intrinsics for accumulate operations
Sayed Adel [Tue, 2 Oct 2018 18:44:03 +0000 (20:44 +0200)]
imgproc:simd Enable VSX and wide universal intrinsics for accumulate operations

  - improve cpu dispatching calls to allow more SIMD extentions
    (SSE4.1, AVX2, VSX)
  - wide universal intrinsics
  - replace dummy v_expand with v_expand_low
  - replace v_expand + v_mul_wrap with v_mul_expand for product accumulate operations
  - use FMA for accumulate operations
  - add mask and more types to accumulate's performance tests