Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
b2d359b6
Commit
b2d359b6
authored
Jul 24, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Jul 24, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1170 from SpecLad:merge-2.4
parents
ef91d7e8
3939d783
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
358 additions
and
215 deletions
+358
-215
CMakeLists.txt
3rdparty/tbb/CMakeLists.txt
+7
-1
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+11
-3
PropertySheetOpenCVInclude.jpg
...isual_studio_Opencv/images/PropertySheetOpenCVInclude.jpg
+0
-0
windows_visual_studio_Opencv.rst
...ows_visual_studio_Opencv/windows_visual_studio_Opencv.rst
+2
-2
ba.cpp
modules/contrib/src/ba.cpp
+1
-1
featuretracker.cpp
modules/contrib/src/featuretracker.cpp
+3
-0
cvdef.h
modules/core/include/opencv2/core/cvdef.h
+1
-1
bagofwords.cpp
modules/features2d/src/bagofwords.cpp
+6
-1
cap_qtkit.mm
modules/highgui/src/cap_qtkit.mm
+5
-2
distransform.cpp
modules/imgproc/src/distransform.cpp
+10
-0
histogram.cpp
modules/imgproc/src/histogram.cpp
+12
-4
shapedescr.cpp
modules/imgproc/src/shapedescr.cpp
+1
-1
sumpixels.cpp
modules/imgproc/src/sumpixels.cpp
+50
-0
Mat.cpp
modules/java/generator/src/cpp/Mat.cpp
+183
-152
core+Mat.java
modules/java/generator/src/java/core+Mat.java
+16
-0
core+MatOfByte.java
modules/java/generator/src/java/core+MatOfByte.java
+2
-2
core+MatOfDMatch.java
modules/java/generator/src/java/core+MatOfDMatch.java
+2
-2
core+MatOfDouble.java
modules/java/generator/src/java/core+MatOfDouble.java
+2
-2
core+MatOfFloat.java
modules/java/generator/src/java/core+MatOfFloat.java
+2
-2
core+MatOfFloat4.java
modules/java/generator/src/java/core+MatOfFloat4.java
+2
-2
core+MatOfFloat6.java
modules/java/generator/src/java/core+MatOfFloat6.java
+2
-2
core+MatOfInt.java
modules/java/generator/src/java/core+MatOfInt.java
+2
-2
core+MatOfInt4.java
modules/java/generator/src/java/core+MatOfInt4.java
+2
-2
core+MatOfKeyPoint.java
modules/java/generator/src/java/core+MatOfKeyPoint.java
+2
-2
core+MatOfPoint.java
modules/java/generator/src/java/core+MatOfPoint.java
+2
-2
core+MatOfPoint2f.java
modules/java/generator/src/java/core+MatOfPoint2f.java
+2
-2
core+MatOfPoint3.java
modules/java/generator/src/java/core+MatOfPoint3.java
+2
-2
core+MatOfPoint3f.java
modules/java/generator/src/java/core+MatOfPoint3f.java
+2
-2
core+MatOfRect.java
modules/java/generator/src/java/core+MatOfRect.java
+2
-2
cv2.cpp
modules/python/src2/cv2.cpp
+21
-12
xls-report.py
modules/ts/misc/xls-report.py
+1
-0
ts_perf.cpp
modules/ts/src/ts_perf.cpp
+0
-7
No files found.
3rdparty/tbb/CMakeLists.txt
View file @
b2d359b6
...
...
@@ -230,9 +230,15 @@ endif()
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations
)
string
(
REPLACE
"-Werror=non-virtual-dtor"
""
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
"
)
if
(
WIN32
)
set
(
tbb_debug_postfix
"_debug"
)
# to fit pragmas in _windef.h inside TBB
else
()
set
(
tbb_debug_postfix
${
OPENCV_DEBUG_POSTFIX
}
)
endif
()
set_target_properties
(
tbb
PROPERTIES OUTPUT_NAME tbb
DEBUG_POSTFIX
"
${
OPENCV_DEBUG_POSTFIX
}
"
DEBUG_POSTFIX
"
${
tbb_debug_postfix
}
"
ARCHIVE_OUTPUT_DIRECTORY
${
3P_LIBRARY_OUTPUT_PATH
}
RUNTIME_OUTPUT_DIRECTORY
${
EXECUTABLE_OUTPUT_PATH
}
)
...
...
cmake/OpenCVDetectCUDA.cmake
View file @
b2d359b6
...
...
@@ -99,7 +99,11 @@ if(CUDA_FOUND)
if
(
CUDA_GENERATION STREQUAL
"Fermi"
)
set
(
__cuda_arch_bin
"2.0 2.1(2.0)"
)
elseif
(
CUDA_GENERATION STREQUAL
"Kepler"
)
set
(
__cuda_arch_bin
"3.0"
)
if
(
${
CUDA_VERSION
}
VERSION_LESS
"5.0"
)
set
(
__cuda_arch_bin
"3.0"
)
else
()
set
(
__cuda_arch_bin
"3.0 3.5"
)
endif
()
elseif
(
CUDA_GENERATION STREQUAL
"Auto"
)
execute_process
(
COMMAND
"
${
CUDA_NVCC_EXECUTABLE
}
"
"
${
OpenCV_SOURCE_DIR
}
/cmake/checks/OpenCVDetectCudaArch.cu"
"--run"
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/CMakeTmp/"
...
...
@@ -113,8 +117,12 @@ if(CUDA_FOUND)
endif
()
if
(
NOT DEFINED __cuda_arch_bin
)
set
(
__cuda_arch_bin
"1.1 1.2 1.3 2.0 2.1(2.0) 3.0"
)
set
(
__cuda_arch_ptx
"2.0 3.0"
)
if
(
${
CUDA_VERSION
}
VERSION_LESS
"5.0"
)
set
(
__cuda_arch_bin
"1.1 1.2 1.3 2.0 2.1(2.0) 3.0"
)
else
()
set
(
__cuda_arch_bin
"1.1 1.2 1.3 2.0 2.1(2.0) 3.0 3.5"
)
endif
()
set
(
__cuda_arch_ptx
"3.0"
)
endif
()
set
(
CUDA_ARCH_BIN
${
__cuda_arch_bin
}
CACHE STRING
"Specify 'real' GPU architectures to build binaries for, BIN(PTX) format is supported"
)
...
...
doc/tutorials/introduction/windows_visual_studio_Opencv/images/PropertySheetOpenCVInclude.jpg
View replaced file @
ef91d7e8
View file @
b2d359b6
23 KB
|
W:
|
H:
31 KB
|
W:
|
H:
2-up
Swipe
Onion skin
doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.rst
View file @
b2d359b6
...
...
@@ -52,7 +52,7 @@ Use for example the *OpenCV_Debug* name. Then by selecting the sheet :menuselect
.. code-block:: bash
$(OPENCV_DIR)\include
$(OPENCV_DIR)\
..\..\
include
.. image:: images/PropertySheetOpenCVInclude.jpg
:alt: Add the include dir like this.
...
...
@@ -64,7 +64,7 @@ Next go to the :menuselection:`Linker --> General` and under the *"Additional Li
.. code-block:: bash
$(OPENCV_DIR)\lib
s
$(OPENCV_DIR)\lib
.. image:: images/PropertySheetOpenCVLib.jpg
:alt: Add the library folder like this.
...
...
modules/contrib/src/ba.cpp
View file @
b2d359b6
...
...
@@ -746,7 +746,7 @@ static void fjac(int /*i*/, int /*j*/, CvMat *point_params, CvMat* cam_params, C
CvMat
*
_mp
=
cvCreateMat
(
1
,
1
,
CV_64FC2
);
//projection of the point
//split camera params into different matrices
CvMat
_ri
,
_ti
,
_k
;
CvMat
_ri
,
_ti
,
_k
=
cvMat
(
0
,
0
,
CV_64F
,
NULL
);
// dummy initialization to fix warning of cl.exe
cvGetRows
(
cam_params
,
&
_ri
,
0
,
3
);
cvGetRows
(
cam_params
,
&
_ti
,
3
,
6
);
...
...
modules/contrib/src/featuretracker.cpp
View file @
b2d359b6
...
...
@@ -59,6 +59,7 @@ CvFeatureTracker::CvFeatureTracker(CvFeatureTrackerParams _params) :
dd
->
set
(
"nOctaveLayers"
,
5
);
dd
->
set
(
"contrastThreshold"
,
0.04
);
dd
->
set
(
"edgeThreshold"
,
10.7
);
break
;
case
CvFeatureTrackerParams
:
:
SURF
:
dd
=
Algorithm
::
create
<
Feature2D
>
(
"Feature2D.SURF"
);
if
(
dd
.
empty
()
)
...
...
@@ -66,8 +67,10 @@ CvFeatureTracker::CvFeatureTracker(CvFeatureTrackerParams _params) :
dd
->
set
(
"hessianThreshold"
,
400
);
dd
->
set
(
"nOctaves"
,
3
);
dd
->
set
(
"nOctaveLayers"
,
4
);
break
;
default
:
CV_Error
(
CV_StsBadArg
,
"Unknown feature type"
);
break
;
}
matcher
=
new
BFMatcher
(
NORM_L2
);
...
...
modules/core/include/opencv2/core/cvdef.h
View file @
b2d359b6
...
...
@@ -84,7 +84,7 @@
#ifndef CV_INLINE
# if defined __cplusplus
# define CV_INLINE static inline
# elif
(defined WIN32 || defined _WIN32 || defined WINCE) && !defined __GNUC__
# elif
defined _MSC_VER
# define CV_INLINE __inline
# else
# define CV_INLINE static
...
...
modules/features2d/src/bagofwords.cpp
View file @
b2d359b6
...
...
@@ -147,7 +147,7 @@ void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector<KeyPoint>
int
clusterCount
=
descriptorSize
();
// = vocabulary.rows
// Compute descriptors for the image.
Mat
descriptors
=
_descriptors
?
*
_descriptors
:
Mat
()
;
Mat
descriptors
;
dextractor
->
compute
(
image
,
keypoints
,
descriptors
);
// Match keypoint descriptors to cluster center (to vocabulary)
...
...
@@ -176,6 +176,11 @@ void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector<KeyPoint>
// Normalize image descriptor.
imgDescriptor
/=
descriptors
.
rows
;
// Add the descriptors of image keypoints
if
(
_descriptors
)
{
*
_descriptors
=
descriptors
.
clone
();
}
}
int
BOWImgDescriptorExtractor
::
descriptorSize
()
const
...
...
modules/highgui/src/cap_qtkit.mm
View file @
b2d359b6
...
...
@@ -275,8 +275,11 @@ bool CvCaptureCAM::grabFrame(double timeOut) {
double sleepTime = 0.005;
double total = 0;
while (![capture updateImage] && (total += sleepTime)<=timeOut)
usleep((int)(sleepTime*1000));
NSDate *loopUntil = [NSDate dateWithTimeIntervalSinceNow:sleepTime];
while (![capture updateImage] && (total += sleepTime)<=timeOut &&
[[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode
beforeDate:loopUntil])
loopUntil = [NSDate dateWithTimeIntervalSinceNow:sleepTime];
[localpool drain];
...
...
modules/imgproc/src/distransform.cpp
View file @
b2d359b6
...
...
@@ -744,6 +744,16 @@ void cv::distanceTransform( InputArray _src, OutputArray _dst, OutputArray _labe
if
(
labelType
==
CV_DIST_LABEL_CCOMP
)
{
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
maskSize
==
CV_DIST_MASK_5
)
{
IppiSize
roi
=
{
src
->
cols
,
src
->
rows
};
if
(
ippiDistanceTransform_5x5_8u32f_C1R
(
src
->
data
.
ptr
,
src
->
step
,
dst
->
data
.
fl
,
dst
->
step
,
roi
,
_mask
)
>=
0
)
return
;
}
#endif
Mat
zpix
=
src
==
0
;
connectedComponents
(
zpix
,
labels
,
8
,
CV_32S
);
}
...
...
modules/imgproc/src/histogram.cpp
View file @
b2d359b6
...
...
@@ -266,6 +266,8 @@ public:
}
private
:
calcHist1D_Invoker
operator
=
(
const
calcHist1D_Invoker
&
);
T
*
p_
[
one
];
uchar
*
mask_
;
int
step_
[
one
];
...
...
@@ -338,6 +340,8 @@ public:
}
private
:
calcHist2D_Invoker
operator
=
(
const
calcHist2D_Invoker
&
);
T
*
p_
[
two
];
uchar
*
mask_
;
int
step_
[
two
];
...
...
@@ -428,6 +432,8 @@ public:
}
private
:
calcHist3D_Invoker
operator
=
(
const
calcHist3D_Invoker
&
);
T
*
p_
[
three
];
uchar
*
mask_
;
int
step_
[
three
];
...
...
@@ -767,8 +773,7 @@ calcHist_( std::vector<uchar*>& _ptrs, const std::vector<int>& _deltas,
#ifdef HAVE_TBB
calcHist1D_Invoker
<
T
>
body
(
_ptrs
,
_deltas
,
hist
,
_uniranges
,
size
[
0
],
dims
,
imsize
);
parallel_for
(
BlockedRange
(
0
,
imsize
.
height
),
body
);
return
;
#endif
#else
double
a
=
uniranges
[
0
],
b
=
uniranges
[
1
];
int
sz
=
size
[
0
],
d0
=
deltas
[
0
],
step0
=
deltas
[
1
];
const
T
*
p0
=
(
const
T
*
)
ptrs
[
0
];
...
...
@@ -791,14 +796,15 @@ calcHist_( std::vector<uchar*>& _ptrs, const std::vector<int>& _deltas,
((
int
*
)
H
)[
idx
]
++
;
}
}
#endif //HAVE_TBB
return
;
}
else
if
(
dims
==
2
)
{
#ifdef HAVE_TBB
calcHist2D_Invoker
<
T
>
body
(
_ptrs
,
_deltas
,
hist
,
_uniranges
,
size
,
dims
,
imsize
,
hstep
);
parallel_for
(
BlockedRange
(
0
,
imsize
.
height
),
body
);
return
;
#endif
#else
double
a0
=
uniranges
[
0
],
b0
=
uniranges
[
1
],
a1
=
uniranges
[
2
],
b1
=
uniranges
[
3
];
int
sz0
=
size
[
0
],
sz1
=
size
[
1
];
int
d0
=
deltas
[
0
],
step0
=
deltas
[
1
],
...
...
@@ -827,6 +833,8 @@ calcHist_( std::vector<uchar*>& _ptrs, const std::vector<int>& _deltas,
((
int
*
)(
H
+
hstep0
*
idx0
))[
idx1
]
++
;
}
}
#endif //HAVE_TBB
return
;
}
else
if
(
dims
==
3
)
{
...
...
modules/imgproc/src/shapedescr.cpp
View file @
b2d359b6
...
...
@@ -381,7 +381,7 @@ cv::RotatedRect cv::fitEllipse( InputArray _points )
// New fitellipse algorithm, contributed by Dr. Daniel Weiss
Point2f
c
(
0
,
0
);
double
gfp
[
5
],
rp
[
5
],
t
;
const
double
min_eps
=
1e-
6
;
const
double
min_eps
=
1e-
8
;
bool
is_float
=
depth
==
CV_32F
;
const
Point
*
ptsi
=
(
const
Point
*
)
points
.
data
;
const
Point2f
*
ptsf
=
(
const
Point2f
*
)
points
.
data
;
...
...
modules/imgproc/src/sumpixels.cpp
View file @
b2d359b6
...
...
@@ -41,6 +41,9 @@
//M*/
#include "precomp.hpp"
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
static
IppStatus
sts
=
ippInit
();
#endif
namespace
cv
{
...
...
@@ -234,6 +237,53 @@ void cv::integral( InputArray _src, OutputArray _sum, OutputArray _sqsum, Output
if
(
sdepth
<=
0
)
sdepth
=
depth
==
CV_8U
?
CV_32S
:
CV_64F
;
sdepth
=
CV_MAT_DEPTH
(
sdepth
);
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
(
depth
==
CV_8U
)
&&
(
!
_tilted
.
needed
()
)
)
{
if
(
sdepth
==
CV_32F
)
{
if
(
cn
==
1
)
{
IppiSize
srcRoiSize
=
ippiSize
(
src
.
cols
,
src
.
rows
);
_sum
.
create
(
isize
,
CV_MAKETYPE
(
sdepth
,
cn
)
);
sum
=
_sum
.
getMat
();
if
(
_sqsum
.
needed
()
)
{
_sqsum
.
create
(
isize
,
CV_MAKETYPE
(
CV_64F
,
cn
)
);
sqsum
=
_sqsum
.
getMat
();
ippiSqrIntegral_8u32f64f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
src
.
step
,
(
Ipp32f
*
)
sum
.
data
,
sum
.
step
,
(
Ipp64f
*
)
sqsum
.
data
,
sqsum
.
step
,
srcRoiSize
,
0
,
0
);
}
else
{
ippiIntegral_8u32f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
src
.
step
,
(
Ipp32f
*
)
sum
.
data
,
sum
.
step
,
srcRoiSize
,
0
);
}
return
;
}
}
if
(
sdepth
==
CV_32S
)
{
if
(
cn
==
1
)
{
IppiSize
srcRoiSize
=
ippiSize
(
src
.
cols
,
src
.
rows
);
_sum
.
create
(
isize
,
CV_MAKETYPE
(
sdepth
,
cn
)
);
sum
=
_sum
.
getMat
();
if
(
_sqsum
.
needed
()
)
{
_sqsum
.
create
(
isize
,
CV_MAKETYPE
(
CV_64F
,
cn
)
);
sqsum
=
_sqsum
.
getMat
();
ippiSqrIntegral_8u32s64f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
src
.
step
,
(
Ipp32s
*
)
sum
.
data
,
sum
.
step
,
(
Ipp64f
*
)
sqsum
.
data
,
sqsum
.
step
,
srcRoiSize
,
0
,
0
);
}
else
{
ippiIntegral_8u32s_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
src
.
step
,
(
Ipp32s
*
)
sum
.
data
,
sum
.
step
,
srcRoiSize
,
0
);
}
return
;
}
}
}
#endif
_sum
.
create
(
isize
,
CV_MAKETYPE
(
sdepth
,
cn
)
);
sum
=
_sum
.
getMat
();
...
...
modules/java/generator/src/cpp/Mat.cpp
View file @
b2d359b6
...
...
@@ -42,13 +42,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1Mat__III
return
(
jlong
)
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1Mat__III() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1Mat__III() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1Mat__III() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1Mat__III() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1Mat__III()}"
);
return
0
;
...
...
@@ -74,13 +74,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1Mat__DDI
return
(
jlong
)
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1Mat__DDI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1Mat__DDI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1Mat__DDI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1Mat__DDI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1Mat__DDI()}"
);
return
0
;
...
...
@@ -107,13 +107,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1Mat__IIIDDDD
return
(
jlong
)
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1Mat__IIIDDDD() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1Mat__IIIDDDD() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1Mat__IIIDDDD() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1Mat__IIIDDDD() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1Mat__IIIDDDD()}"
);
return
0
;
...
...
@@ -140,13 +140,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1Mat__DDIDDDD
return
(
jlong
)
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1Mat__DDIDDDD() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1Mat__DDIDDDD() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1Mat__DDIDDDD() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1Mat__DDIDDDD() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1Mat__DDIDDDD()}"
);
return
0
;
...
...
@@ -173,13 +173,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1Mat__JIIII
return
(
jlong
)
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1Mat__JIIII() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1Mat__JIIII() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1Mat__JIIII() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1Mat__JIIII() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1Mat__JIIII()}"
);
return
0
;
...
...
@@ -201,13 +201,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1Mat__JII
return
(
jlong
)
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1Mat__JII() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1Mat__JII() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1Mat__JII() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1Mat__JII() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1Mat__JII()}"
);
return
0
;
...
...
@@ -232,13 +232,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1adjustROI
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1adjustROI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1adjustROI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1adjustROI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1adjustROI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1adjustROI()}"
);
return
0
;
...
...
@@ -264,13 +264,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1assignTo__JJI
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1assignTo__JJI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1assignTo__JJI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1assignTo__JJI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1assignTo__JJI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1assignTo__JJI()}"
);
return
;
...
...
@@ -291,13 +291,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1assignTo__JJ
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1assignTo__JJ() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1assignTo__JJ() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1assignTo__JJ() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1assignTo__JJ() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1assignTo__JJ()}"
);
return
;
...
...
@@ -323,13 +323,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1channels
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1channels() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1channels() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1channels() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1channels() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1channels()}"
);
return
0
;
...
...
@@ -355,13 +355,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1checkVector__JIIZ
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1checkVector__JIIZ() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1checkVector__JIIZ() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1checkVector__JIIZ() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1checkVector__JIIZ() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1checkVector__JIIZ()}"
);
return
0
;
...
...
@@ -383,13 +383,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1checkVector__JII
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1checkVector__JII() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1checkVector__JII() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1checkVector__JII() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1checkVector__JII() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1checkVector__JII()}"
);
return
0
;
...
...
@@ -411,13 +411,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1checkVector__JI
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1checkVector__JI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1checkVector__JI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1checkVector__JI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1checkVector__JI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1checkVector__JI()}"
);
return
0
;
...
...
@@ -444,13 +444,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1clone
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1clone() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1clone() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1clone() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1clone() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1clone()}"
);
return
0
;
...
...
@@ -476,13 +476,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1col
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1col() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1col() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1col() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1col() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1col()}"
);
return
0
;
...
...
@@ -508,13 +508,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1colRange
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1colRange() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1colRange() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1colRange() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1colRange() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1colRange()}"
);
return
0
;
...
...
@@ -523,6 +523,37 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1colRange
//
// int Mat::dims()
//
JNIEXPORT
jint
JNICALL
Java_org_opencv_core_Mat_n_1dims
(
JNIEnv
*
env
,
jclass
,
jlong
self
);
JNIEXPORT
jint
JNICALL
Java_org_opencv_core_Mat_n_1dims
(
JNIEnv
*
env
,
jclass
,
jlong
self
)
{
try
{
LOGD
(
"Mat::n_1dims()"
);
Mat
*
me
=
(
Mat
*
)
self
;
//TODO: check for NULL
int
_retval_
=
me
->
dims
;
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1dims() catched cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1dims() catched unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1dims()}"
);
return
0
;
}
}
//
// int Mat::cols()
//
...
...
@@ -540,13 +571,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1cols
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1cols() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1cols() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1cols() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1cols() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1cols()}"
);
return
0
;
...
...
@@ -573,13 +604,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1convertTo__JJIDD
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1convertTo__JJIDD() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1convertTo__JJIDD() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1convertTo__JJIDD() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1convertTo__JJIDD() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1convertTo__JJIDD()}"
);
return
;
...
...
@@ -601,13 +632,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1convertTo__JJID
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1convertTo__JJID() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1convertTo__JJID() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1convertTo__JJID() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1convertTo__JJID() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1convertTo__JJID()}"
);
return
;
...
...
@@ -629,13 +660,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1convertTo__JJI
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1convertTo__JJI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1convertTo__JJI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1convertTo__JJI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1convertTo__JJI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1convertTo__JJI()}"
);
return
;
...
...
@@ -662,13 +693,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1copyTo__JJ
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1copyTo__JJ() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1copyTo__JJ() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1copyTo__JJ() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1copyTo__JJ() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1copyTo__JJ()}"
);
return
;
...
...
@@ -696,13 +727,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1copyTo__JJJ
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1copyTo__JJJ() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1copyTo__JJJ() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1copyTo__JJJ() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1copyTo__JJJ() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1copyTo__JJJ()}"
);
return
;
...
...
@@ -728,13 +759,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1create__JIII
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1create__JIII() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1create__JIII() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1create__JIII() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1create__JIII() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1create__JIII()}"
);
return
;
...
...
@@ -761,13 +792,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1create__JDDI
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1create__JDDI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1create__JDDI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1create__JDDI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1create__JDDI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1create__JDDI()}"
);
return
;
...
...
@@ -794,13 +825,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1cross
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1cross() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1cross() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1cross() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1cross() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1cross()}"
);
return
0
;
...
...
@@ -843,13 +874,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1depth
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1depth() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1depth() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1depth() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1depth() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1depth()}"
);
return
0
;
...
...
@@ -875,13 +906,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1diag__JI
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1diag__JI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1diag__JI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1diag__JI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1diag__JI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1diag__JI()}"
);
return
0
;
...
...
@@ -908,13 +939,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1diag__J
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1diag__J() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1diag__J() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1diag__J() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1diag__J() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1diag__J()}"
);
return
0
;
...
...
@@ -941,13 +972,13 @@ JNIEXPORT jdouble JNICALL Java_org_opencv_core_Mat_n_1dot
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1dot() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1dot() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1dot() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1dot() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1dot()}"
);
return
0
;
...
...
@@ -973,13 +1004,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1elemSize
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1elemSize() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1elemSize() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1elemSize() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1elemSize() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1elemSize()}"
);
return
0
;
...
...
@@ -1005,13 +1036,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1elemSize1
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1elemSize1() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1elemSize1() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1elemSize1() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1elemSize1() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1elemSize1()}"
);
return
0
;
...
...
@@ -1037,13 +1068,13 @@ JNIEXPORT jboolean JNICALL Java_org_opencv_core_Mat_n_1empty
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1empty() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1empty() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1empty() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1empty() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1empty()}"
);
return
0
;
...
...
@@ -1069,13 +1100,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1eye__III
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1eye__III() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1eye__III() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1eye__III() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1eye__III() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1eye__III()}"
);
return
0
;
...
...
@@ -1101,13 +1132,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1eye__DDI
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1eye__DDI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1eye__DDI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1eye__DDI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1eye__DDI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1eye__DDI()}"
);
return
0
;
...
...
@@ -1133,13 +1164,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1inv__JI
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1inv__JI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1inv__JI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1inv__JI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1inv__JI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1inv__JI()}"
);
return
0
;
...
...
@@ -1160,13 +1191,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1inv__J
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1inv__J() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1inv__J() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1inv__J() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1inv__J() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1inv__J()}"
);
return
0
;
...
...
@@ -1192,13 +1223,13 @@ JNIEXPORT jboolean JNICALL Java_org_opencv_core_Mat_n_1isContinuous
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1isContinuous() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1isContinuous() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1isContinuous() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1isContinuous() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1isContinuous()}"
);
return
0
;
...
...
@@ -1224,13 +1255,13 @@ JNIEXPORT jboolean JNICALL Java_org_opencv_core_Mat_n_1isSubmatrix
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1isSubmatrix() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1isSubmatrix() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1isSubmatrix() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1isSubmatrix() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1isSubmatrix()}"
);
return
0
;
...
...
@@ -1258,13 +1289,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_locateROI_10
jdouble
tmp_wholeSize
[
2
]
=
{
wholeSize
.
width
,
wholeSize
.
height
};
env
->
SetDoubleArrayRegion
(
wholeSize_out
,
0
,
2
,
tmp_wholeSize
);
jdouble
tmp_ofs
[
2
]
=
{
ofs
.
x
,
ofs
.
y
};
env
->
SetDoubleArrayRegion
(
ofs_out
,
0
,
2
,
tmp_ofs
);
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::locateROI_10() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::locateROI_10() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::locateROI_10() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::locateROI_10() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::locateROI_10()}"
);
return
;
...
...
@@ -1291,13 +1322,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1mul__JJD
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1mul__JJD() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1mul__JJD() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1mul__JJD() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1mul__JJD() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1mul__JJD()}"
);
return
0
;
...
...
@@ -1320,13 +1351,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1mul__JJ
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1mul__JJ() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1mul__JJ() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1mul__JJ() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1mul__JJ() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1mul__JJ()}"
);
return
0
;
...
...
@@ -1352,13 +1383,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1ones__III
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1ones__III() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1ones__III() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1ones__III() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1ones__III() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1ones__III()}"
);
return
0
;
...
...
@@ -1384,13 +1415,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1ones__DDI
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1ones__DDI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1ones__DDI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1ones__DDI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1ones__DDI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1ones__DDI()}"
);
return
0
;
...
...
@@ -1416,13 +1447,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1push_1back
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1push_1back() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1push_1back() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1push_1back() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1push_1back() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1push_1back()}"
);
return
;
...
...
@@ -1448,13 +1479,13 @@ JNIEXPORT void JNICALL Java_org_opencv_core_Mat_n_1release
return
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1release() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1release() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
;
}
catch
(...)
{
LOGD
(
"Mat::n_1release() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1release() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1release()}"
);
return
;
...
...
@@ -1480,13 +1511,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1reshape__JII
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1reshape__JII() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1reshape__JII() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1reshape__JII() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1reshape__JII() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1reshape__JII()}"
);
return
0
;
...
...
@@ -1508,13 +1539,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1reshape__JI
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1reshape__JI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1reshape__JI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1reshape__JI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1reshape__JI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1reshape__JI()}"
);
return
0
;
...
...
@@ -1540,13 +1571,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1row
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1row() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1row() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1row() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1row() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1row()}"
);
return
0
;
...
...
@@ -1572,13 +1603,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1rowRange
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1rowRange() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1rowRange() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1rowRange() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1rowRange() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1rowRange()}"
);
return
0
;
...
...
@@ -1604,13 +1635,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1rows
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1rows() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1rows() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1rows() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1rows() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1rows()}"
);
return
0
;
...
...
@@ -1637,13 +1668,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1setTo__JDDDD
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1setTo__JDDDD() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1setTo__JDDDD() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1setTo__JDDDD() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1setTo__JDDDD() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1setTo__JDDDD()}"
);
return
0
;
...
...
@@ -1671,13 +1702,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1setTo__JDDDDJ
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1setTo__JDDDDJ() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1setTo__JDDDDJ() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1setTo__JDDDDJ() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1setTo__JDDDDJ() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1setTo__JDDDDJ()}"
);
return
0
;
...
...
@@ -1705,13 +1736,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1setTo__JJJ
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1setTo__JJJ() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1setTo__JJJ() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1setTo__JJJ() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1setTo__JJJ() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1setTo__JJJ()}"
);
return
0
;
...
...
@@ -1734,13 +1765,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1setTo__JJ
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1setTo__JJ() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1setTo__JJ() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1setTo__JJ() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1setTo__JJ() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1setTo__JJ()}"
);
return
0
;
...
...
@@ -1766,13 +1797,13 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Mat_n_1size
jdoubleArray
_da_retval_
=
env
->
NewDoubleArray
(
2
);
jdouble
_tmp_retval_
[
2
]
=
{
_retval_
.
width
,
_retval_
.
height
};
env
->
SetDoubleArrayRegion
(
_da_retval_
,
0
,
2
,
_tmp_retval_
);
return
_da_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1size() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1size() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1size() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1size() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1size()}"
);
return
0
;
...
...
@@ -1798,13 +1829,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1step1__JI
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1step1__JI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1step1__JI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1step1__JI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1step1__JI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1step1__JI()}"
);
return
0
;
...
...
@@ -1826,13 +1857,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1step1__J
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1step1__J() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1step1__J() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1step1__J() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1step1__J() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1step1__J()}"
);
return
0
;
...
...
@@ -1858,13 +1889,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1submat_1rr
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1submat_1rr() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1submat_1rr() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1submat_1rr() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1submat_1rr() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1submat_1rr()}"
);
return
0
;
...
...
@@ -1891,13 +1922,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1submat
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1submat() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1submat() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1submat() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1submat() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1submat()}"
);
return
0
;
...
...
@@ -1923,13 +1954,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1t
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1t() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1t() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1t() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1t() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1t()}"
);
return
0
;
...
...
@@ -1955,13 +1986,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1total
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1total() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1total() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1total() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1total() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1total()}"
);
return
0
;
...
...
@@ -1987,13 +2018,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1type
return
_retval_
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1type() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1type() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1type() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1type() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1type()}"
);
return
0
;
...
...
@@ -2019,13 +2050,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1zeros__III
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1zeros__III() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1zeros__III() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1zeros__III() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1zeros__III() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1zeros__III()}"
);
return
0
;
...
...
@@ -2051,13 +2082,13 @@ JNIEXPORT jlong JNICALL Java_org_opencv_core_Mat_n_1zeros__DDI
return
(
jlong
)
new
Mat
(
_retval_
);
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::n_1zeros__DDI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::n_1zeros__DDI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::n_1zeros__DDI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::n_1zeros__DDI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::n_1zeros__DDI()}"
);
return
0
;
...
...
@@ -2131,13 +2162,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nPutD
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nPutD() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nPutD() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nPutD() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nPutD() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nPutD()}"
);
return
0
;
...
...
@@ -2198,13 +2229,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nPutB
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nPutB() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nPutB() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nPutB() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nPutB() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nPutB()}"
);
return
0
;
...
...
@@ -2229,13 +2260,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nPutS
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nPutS() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nPutS() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nPutS() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nPutS() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nPutS()}"
);
return
0
;
...
...
@@ -2260,13 +2291,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nPutI
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nPutI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nPutI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nPutI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nPutI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nPutI()}"
);
return
0
;
...
...
@@ -2291,13 +2322,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nPutF
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nPutF() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nPutF() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nPutF() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nPutF() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nPutF()}"
);
return
0
;
...
...
@@ -2357,13 +2388,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nGetB
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nGetB() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nGetB() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nGetB() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nGetB() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nGetB()}"
);
return
0
;
...
...
@@ -2388,13 +2419,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nGetS
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nGetS() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nGetS() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nGetS() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nGetS() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nGetS()}"
);
return
0
;
...
...
@@ -2419,13 +2450,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nGetI
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nGetI() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nGetI() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nGetI() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nGetI() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nGetI()}"
);
return
0
;
...
...
@@ -2450,13 +2481,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nGetF
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nGetF() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nGetF() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nGetF() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nGetF() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nGetF()}"
);
return
0
;
...
...
@@ -2481,13 +2512,13 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_nGetD
env
->
ReleasePrimitiveArrayCritical
(
vals
,
values
,
0
);
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nGetD() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nGetD() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nGetD() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nGetD() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nGetD()}"
);
return
0
;
...
...
@@ -2523,13 +2554,13 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Mat_nGet
}
return
res
;
}
catch
(
cv
::
Exception
e
)
{
LOGD
(
"Mat::nGet() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGD
(
"Mat::nGet() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
0
;
}
catch
(...)
{
LOGD
(
"Mat::nGet() ca
tched
unknown exception (...)"
);
LOGD
(
"Mat::nGet() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nGet()}"
);
return
0
;
...
...
@@ -2553,13 +2584,13 @@ JNIEXPORT jstring JNICALL Java_org_opencv_core_Mat_nDump
}
return
env
->
NewStringUTF
(
s
.
c_str
());
}
catch
(
cv
::
Exception
e
)
{
LOGE
(
"Mat::nDump() ca
tched
cv::Exception: %s"
,
e
.
what
());
LOGE
(
"Mat::nDump() ca
ught
cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
if
(
!
je
)
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
e
.
what
());
return
env
->
NewStringUTF
(
"ERROR"
);
}
catch
(...)
{
LOGE
(
"Mat::nDump() ca
tched
unknown exception (...)"
);
LOGE
(
"Mat::nDump() ca
ught
unknown exception (...)"
);
jclass
je
=
env
->
FindClass
(
"java/lang/Exception"
);
env
->
ThrowNew
(
je
,
"Unknown exception in JNI code {Mat::nDump()}"
);
return
env
->
NewStringUTF
(
"ERROR"
);
...
...
modules/java/generator/src/java/core+Mat.java
View file @
b2d359b6
...
...
@@ -245,6 +245,19 @@ public class Mat {
return
retVal
;
}
//
// C++: int Mat::dims()
//
// javadoc: Mat::dims()
public
int
dims
()
{
int
retVal
=
n_dims
(
nativeObj
);
return
retVal
;
}
//
// C++: int Mat::cols()
//
...
...
@@ -1130,6 +1143,9 @@ public class Mat {
// C++: Mat Mat::colRange(int startcol, int endcol)
private
static
native
long
n_colRange
(
long
nativeObj
,
int
startcol
,
int
endcol
);
// C++: int Mat::dims()
private
static
native
int
n_dims
(
long
nativeObj
);
// C++: int Mat::cols()
private
static
native
int
n_cols
(
long
nativeObj
);
...
...
modules/java/generator/src/java/core+MatOfByte.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfByte extends Mat {
protected
MatOfByte
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfByte extends Mat {
public
MatOfByte
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfDMatch.java
View file @
b2d359b6
...
...
@@ -17,7 +17,7 @@ public class MatOfDMatch extends Mat {
protected
MatOfDMatch
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat: "
+
toString
());
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat: "
+
toString
());
//FIXME: do we need release() here?
}
...
...
@@ -28,7 +28,7 @@ public class MatOfDMatch extends Mat {
public
MatOfDMatch
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat: "
+
toString
());
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat: "
+
toString
());
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfDouble.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfDouble extends Mat {
protected
MatOfDouble
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfDouble extends Mat {
public
MatOfDouble
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfFloat.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfFloat extends Mat {
protected
MatOfFloat
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfFloat extends Mat {
public
MatOfFloat
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfFloat4.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfFloat4 extends Mat {
protected
MatOfFloat4
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfFloat4 extends Mat {
public
MatOfFloat4
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfFloat6.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfFloat6 extends Mat {
protected
MatOfFloat6
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfFloat6 extends Mat {
public
MatOfFloat6
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfInt.java
View file @
b2d359b6
...
...
@@ -16,7 +16,7 @@ public class MatOfInt extends Mat {
protected
MatOfInt
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -27,7 +27,7 @@ public class MatOfInt extends Mat {
public
MatOfInt
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfInt4.java
View file @
b2d359b6
...
...
@@ -16,7 +16,7 @@ public class MatOfInt4 extends Mat {
protected
MatOfInt4
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -27,7 +27,7 @@ public class MatOfInt4 extends Mat {
public
MatOfInt4
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfKeyPoint.java
View file @
b2d359b6
...
...
@@ -17,7 +17,7 @@ public class MatOfKeyPoint extends Mat {
protected
MatOfKeyPoint
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -28,7 +28,7 @@ public class MatOfKeyPoint extends Mat {
public
MatOfKeyPoint
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfPoint.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfPoint extends Mat {
protected
MatOfPoint
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfPoint extends Mat {
public
MatOfPoint
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfPoint2f.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfPoint2f extends Mat {
protected
MatOfPoint2f
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfPoint2f extends Mat {
public
MatOfPoint2f
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfPoint3.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfPoint3 extends Mat {
protected
MatOfPoint3
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfPoint3 extends Mat {
public
MatOfPoint3
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfPoint3f.java
View file @
b2d359b6
...
...
@@ -15,7 +15,7 @@ public class MatOfPoint3f extends Mat {
protected
MatOfPoint3f
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -26,7 +26,7 @@ public class MatOfPoint3f extends Mat {
public
MatOfPoint3f
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/java/generator/src/java/core+MatOfRect.java
View file @
b2d359b6
...
...
@@ -16,7 +16,7 @@ public class MatOfRect extends Mat {
protected
MatOfRect
(
long
addr
)
{
super
(
addr
);
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
@@ -27,7 +27,7 @@ public class MatOfRect extends Mat {
public
MatOfRect
(
Mat
m
)
{
super
(
m
,
Range
.
all
());
if
(
!
empty
()
&&
checkVector
(
_channels
,
_depth
)
<
0
)
throw
new
IllegalArgumentException
(
"Incomatible Mat"
);
throw
new
IllegalArgumentException
(
"Incom
p
atible Mat"
);
//FIXME: do we need release() here?
}
...
...
modules/python/src2/cv2.cpp
View file @
b2d359b6
#include <Python.h>
#define MODULESTR "cv2"
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/ndarrayobject.h>
#include "opencv2/core.hpp"
...
...
@@ -200,10 +201,10 @@ public:
if
(
!
o
)
CV_Error_
(
Error
::
StsError
,
(
"The numpy array of typenum=%d, ndims=%d can not be created"
,
typenum
,
dims
));
refcount
=
refcountFromPyObject
(
o
);
npy_intp
*
_strides
=
PyArray_STRIDES
(
o
);
npy_intp
*
_strides
=
PyArray_STRIDES
(
(
PyArrayObject
*
)
o
);
for
(
i
=
0
;
i
<
dims
-
(
cn
>
1
);
i
++
)
step
[
i
]
=
(
size_t
)
_strides
[
i
];
datastart
=
data
=
(
uchar
*
)
PyArray_DATA
(
o
);
datastart
=
data
=
(
uchar
*
)
PyArray_DATA
(
(
PyArrayObject
*
)
o
);
}
void
deallocate
(
int
*
refcount
,
uchar
*
,
uchar
*
)
...
...
@@ -278,8 +279,10 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info)
return
false
;
}
PyArrayObject
*
oarr
=
(
PyArrayObject
*
)
o
;
bool
needcopy
=
false
,
needcast
=
false
;
int
typenum
=
PyArray_TYPE
(
o
),
new_typenum
=
typenum
;
int
typenum
=
PyArray_TYPE
(
o
arr
),
new_typenum
=
typenum
;
int
type
=
typenum
==
NPY_UBYTE
?
CV_8U
:
typenum
==
NPY_BYTE
?
CV_8S
:
typenum
==
NPY_USHORT
?
CV_16U
:
...
...
@@ -308,7 +311,7 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info)
const
int
CV_MAX_DIM
=
32
;
#endif
int
ndims
=
PyArray_NDIM
(
o
);
int
ndims
=
PyArray_NDIM
(
o
arr
);
if
(
ndims
>=
CV_MAX_DIM
)
{
failmsg
(
"%s dimensionality (=%d) is too high"
,
info
.
name
,
ndims
);
...
...
@@ -318,8 +321,8 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info)
int
size
[
CV_MAX_DIM
+
1
];
size_t
step
[
CV_MAX_DIM
+
1
];
size_t
elemsize
=
CV_ELEM_SIZE1
(
type
);
const
npy_intp
*
_sizes
=
PyArray_DIMS
(
o
);
const
npy_intp
*
_strides
=
PyArray_STRIDES
(
o
);
const
npy_intp
*
_sizes
=
PyArray_DIMS
(
o
arr
);
const
npy_intp
*
_strides
=
PyArray_STRIDES
(
o
arr
);
bool
ismultichannel
=
ndims
==
3
&&
_sizes
[
2
]
<=
CV_CN_MAX
;
for
(
int
i
=
ndims
-
1
;
i
>=
0
&&
!
needcopy
;
i
--
)
...
...
@@ -343,11 +346,17 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info)
failmsg
(
"Layout of the output array %s is incompatible with cv::Mat (step[ndims-1] != elemsize or step[1] != elemsize*nchannels)"
,
info
.
name
);
return
false
;
}
if
(
needcast
)
o
=
(
PyObject
*
)
PyArray_Cast
((
PyArrayObject
*
)
o
,
new_typenum
);
else
o
=
(
PyObject
*
)
PyArray_GETCONTIGUOUS
((
PyArrayObject
*
)
o
);
_strides
=
PyArray_STRIDES
(
o
);
if
(
needcast
)
{
o
=
PyArray_Cast
(
oarr
,
new_typenum
);
oarr
=
(
PyArrayObject
*
)
o
;
}
else
{
oarr
=
PyArray_GETCONTIGUOUS
(
oarr
);
o
=
(
PyObject
*
)
oarr
;
}
_strides
=
PyArray_STRIDES
(
oarr
);
}
for
(
int
i
=
0
;
i
<
ndims
;
i
++
)
...
...
@@ -375,7 +384,7 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info)
return
false
;
}
m
=
Mat
(
ndims
,
size
,
type
,
PyArray_DATA
(
o
),
step
);
m
=
Mat
(
ndims
,
size
,
type
,
PyArray_DATA
(
o
arr
),
step
);
if
(
m
.
data
)
{
...
...
modules/ts/misc/xls-report.py
View file @
b2d359b6
...
...
@@ -291,6 +291,7 @@ def main():
sheet
.
write_merge
(
row
,
row
+
1
,
col
,
col
,
caption
,
header_style
)
else
:
sheet
.
write
(
row
,
col
,
caption
,
header_style
)
col
+=
1
row
+=
2
if
args
.
show_times_per_pixel
else
1
...
...
modules/ts/src/ts_perf.cpp
View file @
b2d359b6
...
...
@@ -552,13 +552,6 @@ Regression& Regression::operator() (const std::string& name, cv::InputArray arra
std
::
string
nodename
=
getCurrentTestNodeName
();
// This is a hack for compatibility and it should eventually get removed.
// gpu's tests don't even have CPU sanity data anymore.
if
(
suiteName
==
"gpu"
)
{
nodename
=
(
PERF_RUN_GPU
()
?
"GPU_"
:
"CPU_"
)
+
nodename
;
}
cv
::
FileNode
n
=
rootIn
[
nodename
];
if
(
n
.
isNone
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment