Alexander Alekhin
d3071db0d7
add some CommandLineParser tests
9 years ago
Andrey Pavlenko
8e088d38a5
draft implementation of alternative CameraBridge via GLES
...
a simple sample will look like:
```java
public class MainActivity extends Activity implements CameraGLSurfaceView.CameraTextureListener {
CameraGLSurfaceView mView;
ByteBuffer buf;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
mView = new CameraGLSurfaceView(this, null);
mView.setCameraTextureListener(this);
setContentView(mView);
buf = ByteBuffer.allocateDirect(1920*1080*4);
}
@Override
protected void onPause() {
mView.onPause();
super.onPause();
}
@Override
protected void onResume() {
super.onResume();
mView.onResume();
}
@Override
public void onCameraViewStarted(int width, int height) {
// TODO Auto-generated method stub
}
@Override
public void onCameraViewStopped() {
// TODO Auto-generated method stub
}
@Override
public boolean onCameraFrame(int texIn, int texOut, int width, int height) {
Log.i("MAIN", "onCameraFrame");
int w=width, h=height;
/*
// option 1:
// just return 'false' to display texIn on screen
retutn false;
*/
/*
// option 2:
// fast copy texIn to texOut
GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texOut);
GLES20.glCopyTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, 0, 0, w, h, 0);
return true;
*/
// option 3:
// read, modify and write back pixels
GLES20.glReadPixels(0, 0, w, h, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, buf);
buf.rewind();
// red line
for(int i=0; i<h; i++) {
buf.position(w*4*i+i*4);
buf.put((byte) -1);
buf.position(w*4*i+i*4+4);
buf.put((byte) -1);
}
buf.rewind();
GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texOut);
GLES20.glTexSubImage2D(GLES20.GL_TEXTURE_2D, 0, 0, 0, w, h, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, buf);
return true;
}
}
```
9 years ago
Pavel Rojtberg
31da833574
ts/ts_perf: fix wrong has() usage
...
`has()` only tests for an argument presence which is always true for
arguments with default values. Use `get<bool>()` to check the value
instead.
9 years ago
Pavel Rojtberg
96cc618410
has() should only test for the presence of the argument
...
and not consider its value. treat arguments with a set default value as
present.
9 years ago
Pavel Rojtberg
08dd126f08
do not parse empty default values and improve error messages
9 years ago
Alexander Alekhin
0051208684
Merge pull request #5349 from lupustr3:pvlasov/tls_update
9 years ago
Alexander Alekhin
d2b10d8aa1
Merge pull request #5355 from renatoGarcia:master
9 years ago
Alexander Alekhin
1b2c11e7b3
Merge pull request #5343 from paroj:boolean_algebra
9 years ago
Sergey Alexandrov
4094b2d7a5
Use stream argument when launching bilateral filter kernel
9 years ago
Alexander Alekhin
af0942c78f
Merge pull request #5335 from Dikay900:ports_to_master
9 years ago
Pavel Rojtberg
f0282337e3
simplify error conditions
...
`A || !A` is `true` so write `(A && B) || !A` as `B || !A`
9 years ago
jisli
f88e9a748a
update ffmpeg support
...
Migration have been done for these ffmpeg/libav changes:
2013-12-11 - 29c83d2 / b9fb59d,409a143 / 9431356,44967ab / d7b3ee9 - lavc 55.45.101 / 55.28.1 - avcodec.h
av_frame_alloc(), av_frame_unref() and av_frame_free() now can and should be
used instead of avcodec_alloc_frame(), avcodec_get_frame_defaults() and
avcodec_free_frame() respectively. The latter three functions are deprecated.
2012-10-08 - ae77266 / 78071a1 - lavu 51.74.100 / 51.42.0 - pixfmt.h
Rename PixelFormat to AVPixelFormat and all PIX_FMT_* to AV_PIX_FMT_*.
To provide backwards compatibility, PixelFormat is now #defined as
AVPixelFormat.
Note that this can break user code that includes pixfmt.h and uses the
'PixelFormat' identifier. Such code should either #undef PixelFormat
or stop using the PixelFormat name.
9 years ago
Pavel Vlasov
aa485ccd75
TLS keys leak fix;
...
Disables TLS copy constructor and operator, as they can lead to errors and reservation of too much keys in TLS storage;
gather method was added to TLS to gather data from all threads;
9 years ago
StevenPuttemans
e9037644c3
add link to contributing guidelines
9 years ago
Renato Florentino Garcia
1a18fa1c94
Correct a typo.
9 years ago
art-programmer
e0ef293645
Update em.cpp
...
Fix a bug. When reading from a saved model, function decomposeCovs() will be called. And if covMatType is COV_MAT_DIAGONAL, covsEigenValues is computed using SVD and eigen values are sorted so that the order of eigen values is not preserved. This would lead to different result when calling function predict2. This issues is discussed here: http://stackoverflow.com/questions/23485982/got-different-empredict-results-after-emread-saved-model-in-opencv .
9 years ago
Philip Salvaggio
fcf971bded
Improved documentation for connectedComponentsWithStats.
9 years ago
Vadim Pisarevsky
9533982729
Merge pull request #5272 from avershov:opencl-vaapi-fallback
9 years ago
Vadim Pisarevsky
21d06f5ab2
Merge pull request #5333 from UnaNancyOwen:fix3_LineAA
9 years ago
Vadim Pisarevsky
07a4f571d9
Merge pull request #5337 from Dikay900:tbb_cmake_visibility
9 years ago
Vadim Pisarevsky
5e2c578b50
Merge pull request #5339 from blebo:patch-1
9 years ago
Maksim Shabunin
603864dba2
Warning fix
9 years ago
Adam Gibson
4f2612fcfd
Removed trailing whitespace from squares.py compatibility comment.
9 years ago
Adam Gibson
a413423ff6
Reverted _doc.py to Python 2-only version. Interim measure to prevent docs from failing during build, until all samples are updated with Python 2/3 compatibility.
9 years ago
Adam
37d300f250
Correction of minor typo.
9 years ago
Adam Gibson
b57be28920
Various Python samples updated for Python 2/3 compatibility.
9 years ago
Ilya Lavrenov
5eb67cc2cb
fix for corrent modules dependencies
9 years ago
Ilya Lavrenov
3143f2fb50
fixed uninitialized memory writing/reading in flann
9 years ago
Ilya Lavrenov
df21a24f81
initialize padding of CvString with zeros
9 years ago
Ilya Lavrenov
ee2008abe8
fixed "Conditional jump or move depends on uninitialised value(s)" in GBD
9 years ago
Ilya Lavrenov
1d77d697ef
fixed memory leak in GBTrees
9 years ago
Ilya Lavrenov
cf0f47f589
fixed memory leak in descriptor regression tests
9 years ago
Ilya Lavrenov
f7d36bbad5
fixed memory leaks in modules/features2d/test/test_nearestneighbors.cpp
9 years ago
Dikay900
274b361ca3
proposed change by psyill
9 years ago
Ilya Lavrenov
d81a0df489
fixed memory leak caused by illegal memory access
9 years ago
Ilya Lavrenov
e7ac52d17a
fixed "Conditional jump or move depends on uninitialised value" warning
9 years ago
Ilya Lavrenov
7e26cf569f
typo
9 years ago
Ilya Lavrenov
e390c8c728
fixed typo
9 years ago
Ilya Lavrenov
5547398786
fixed memory leaks in warpAffine tests
9 years ago
Ilya Lavrenov
7eba9055e0
fixed memory leaks in floodfill tests
9 years ago
Ilya Lavrenov
2a8ef1d065
fixed memory leaks in cvtyuv tests
9 years ago
Ilya Lavrenov
0303e8067e
fixed memory leak in core ds tests
9 years ago
Ilya Lavrenov
11981c31f0
fixed valgrind warning in polylines
9 years ago
Tsukasa Sugiura
cd13b30fde
Fix LineAA in case of 4 channel
...
Fix bug when enter 4 channel image to LineAA function.
9 years ago
Roman Donchenko
ec0508269a
NearestNeighborTest: use ts->get_rng() instead of (implicit) theRNG()
...
This ensures that test data is not dependent on the order the tests are
executed in.
9 years ago
Roman Donchenko
a3b515c524
flann: fix AutotunedIndex crashing if a KDTree index is selected
...
Backport of mariusmuja/flann@f8ca6df3.
9 years ago
Roman Donchenko
e1be6d0888
Refactor a section of icvRotatingCalipers to work around a GCC bug
...
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1474304
9 years ago
Maksim Shabunin
a275489f0a
HAL universal intrinsics tests and documentation
9 years ago
Alexander Alekhin
190d00ea3e
Merge pull request #5317 from alalek:workaround
9 years ago
Maksim Shabunin
31fbe8caeb
Merge pull request #5255 from berak:java_videowriter
9 years ago