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

fix MatOpInitializer

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

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

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

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

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

9 years agoremoved HAL calls from public OpenCV headers; put IPP calls back to hall:sqrt() and...
Vadim Pisarevsky [Fri, 22 May 2015 13:04:10 +0000 (16:04 +0300)]
removed HAL calls from public OpenCV headers; put IPP calls back to hall:sqrt() and such (but they are disabled for now)

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

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

9 years agoMerge pull request #4025 from vpisarev:features2d_fixes
Vadim Pisarevsky [Thu, 21 May 2015 19:16:27 +0000 (19:16 +0000)]
Merge pull request #4025 from vpisarev:features2d_fixes

9 years agoanother attempt to make the MSER test pass. removed possible randomization in paramet...
Vadim Pisarevsky [Thu, 21 May 2015 14:10:35 +0000 (17:10 +0300)]
another attempt to make the MSER test pass. removed possible randomization in parameters from run to run

9 years agoadd short description
Vladimir Dudnik [Thu, 21 May 2015 14:08:13 +0000 (17:08 +0300)]
add short description

9 years agofixed failure in Features2d_MSER.cases
Vadim Pisarevsky [Thu, 21 May 2015 13:27:34 +0000 (16:27 +0300)]
fixed failure in Features2d_MSER.cases

9 years agoMerge pull request #4040 from dobrypd:libgphoto2-connection
Vadim Pisarevsky [Thu, 21 May 2015 13:19:21 +0000 (13:19 +0000)]
Merge pull request #4040 from dobrypd:libgphoto2-connection

9 years agoMerge pull request #4027 from zenev:master
Vadim Pisarevsky [Thu, 21 May 2015 12:35:17 +0000 (12:35 +0000)]
Merge pull request #4027 from zenev:master

9 years agoMerge pull request #4031 from apavlenko:revert_4014
Vadim Pisarevsky [Thu, 21 May 2015 12:31:48 +0000 (12:31 +0000)]
Merge pull request #4031 from apavlenko:revert_4014

9 years agoadded reasonable test for MSER (including coverage for http://code.opencv.org/issues...
Vadim Pisarevsky [Thu, 21 May 2015 12:03:17 +0000 (15:03 +0300)]
added reasonable test for MSER (including coverage for code.opencv.org/issues/4273, http://code.opencv.org/issues/1723 and http://code.opencv.org/issues/756); also, added some "in-progress" info to the Features2d_Feature2d.no_crash test.

9 years agoit's now true MSER algorithm that works well on binary images too
Vadim Pisarevsky [Thu, 21 May 2015 02:44:14 +0000 (05:44 +0300)]
it's now true MSER algorithm that works well on binary images too

9 years agoVideoCapture with digital camera and gPhoto2 library
Piotr Dobrowolski [Wed, 20 May 2015 22:41:39 +0000 (00:41 +0200)]
VideoCapture with digital camera and gPhoto2 library

9 years agoMerge pull request #4026 from mshabunin:install-cvconfig
Vadim Pisarevsky [Wed, 20 May 2015 09:58:47 +0000 (09:58 +0000)]
Merge pull request #4026 from mshabunin:install-cvconfig

9 years agoRevert of "Merge pull request #4006 from sgjava:opencv-steve" (reverted from commit...
Andrey Pavlenko [Tue, 19 May 2015 15:52:59 +0000 (18:52 +0300)]
Revert of "Merge pull request #4006 from sgjava:opencv-steve" (reverted from commit 4743184078659d4bcf43c363efd2aa430e4786ff)

9 years agoreplaced macros with template func
Vladimir Dudnik [Tue, 19 May 2015 13:08:25 +0000 (16:08 +0300)]
replaced macros with template func

9 years agoRevert of "Merge pull request #4014 from sgjava:opencv-sgjava" (reverted from commit...
Andrey Pavlenko [Tue, 19 May 2015 10:28:32 +0000 (13:28 +0300)]
Revert of "Merge pull request #4014 from sgjava:opencv-sgjava" (reverted from commit 52fa55a770cb07a6401aa6617b81f413d1165771)

9 years agoMerge branch 'master' of https://github.com/zenev/opencv
zenev [Mon, 18 May 2015 20:29:54 +0000 (13:29 -0700)]
Merge branch 'master' of https://github.com/zenev/opencv

9 years agofixed vector out of range exception in nextImg
zenev [Mon, 18 May 2015 20:29:15 +0000 (13:29 -0700)]
fixed vector out of range exception in nextImg

9 years agoadded test to do smoke testing of ORB, KAZE, AKAZE and BRISK on images of different...
Vadim Pisarevsky [Mon, 18 May 2015 18:16:53 +0000 (21:16 +0300)]
added test to do smoke testing of ORB, KAZE, AKAZE and BRISK on images of different size

9 years agoInstall cvconfig.h file
Maksim Shabunin [Mon, 18 May 2015 16:19:48 +0000 (19:19 +0300)]
Install cvconfig.h file

9 years agoadded test for batch detection/descriptor extraction (http://code.opencv.org/issues...
Vadim Pisarevsky [Mon, 18 May 2015 16:01:00 +0000 (19:01 +0300)]
added test for batch detection/descriptor extraction (code.opencv.org/issues/3943)

9 years agoadded read/write functions for vector<DMatch> + the test (http://code.opencv.org...
Vadim Pisarevsky [Mon, 18 May 2015 15:59:37 +0000 (18:59 +0300)]
added read/write functions for vector<DMatch> + the test (code.opencv.org/issues/4308)

9 years agoMerge pull request #4023 from Dikay900:cleanup_cascadedetect
Vadim Pisarevsky [Mon, 18 May 2015 14:08:22 +0000 (14:08 +0000)]
Merge pull request #4023 from Dikay900:cleanup_cascadedetect

9 years agoMerge pull request #4024 from jet47:cuda-minmaxloc-one-row-input
Vadim Pisarevsky [Mon, 18 May 2015 14:06:37 +0000 (14:06 +0000)]
Merge pull request #4024 from jet47:cuda-minmaxloc-one-row-input

9 years agofix #4343 : cv::cuda::findMinMaxLoc incorrect output for single row matrix
Vladislav Vinogradov [Mon, 18 May 2015 11:16:55 +0000 (14:16 +0300)]
fix #4343 : cv::cuda::findMinMaxLoc incorrect output for single row matrix

9 years agocleanup after last PR
Dikay900 [Sun, 17 May 2015 22:31:39 +0000 (00:31 +0200)]
cleanup after last PR

9 years agoMerge pull request #3971 from Dikay900:2_4_to_master_3
Vadim Pisarevsky [Sun, 17 May 2015 00:28:30 +0000 (00:28 +0000)]
Merge pull request #3971 from Dikay900:2_4_to_master_3

9 years agoMerge pull request #4011 from cr333:parula
Vadim Pisarevsky [Sat, 16 May 2015 19:11:32 +0000 (19:11 +0000)]
Merge pull request #4011 from cr333:parula

9 years agoMerge pull request #4001 from LaurentBerger:ExampleBLOB
Vadim Pisarevsky [Sat, 16 May 2015 18:11:29 +0000 (18:11 +0000)]
Merge pull request #4001 from LaurentBerger:ExampleBLOB

9 years agoMerge pull request #4005 from MSOpenTech:videoio-contrib
Vadim Pisarevsky [Sat, 16 May 2015 18:08:28 +0000 (18:08 +0000)]
Merge pull request #4005 from MSOpenTech:videoio-contrib

9 years agoremoved original samples and replace them with new ones. modified new samples (reduce...
Vladimir Dudnik [Fri, 15 May 2015 21:40:05 +0000 (00:40 +0300)]
removed original samples and replace them with new ones. modified new samples (reduce code duplication, add cmd line params and short description)

9 years agoMerge pull request #4018 from vpisarev:imgproc_video_fixes
Vadim Pisarevsky [Fri, 15 May 2015 16:15:01 +0000 (16:15 +0000)]
Merge pull request #4018 from vpisarev:imgproc_video_fixes

9 years agoAdded sample Windows Universal application (UAP) using videoio logic for video previe...
Maxim Kostin [Fri, 15 May 2015 13:29:35 +0000 (16:29 +0300)]
Added sample Windows Universal application (UAP) using videoio logic for video preview and processing.

Signed-off-by: Maxim Kostin <v-maxkos@microsoft.com>
9 years agoAdded configuration changes enabling videoio WinRT support.
Maxim Kostin [Fri, 15 May 2015 13:29:06 +0000 (16:29 +0300)]
Added configuration changes enabling videoio WinRT support.

Signed-off-by: Maxim Kostin <v-maxkos@microsoft.com>
9 years agoAdded WinRT support for videoio.
Maxim Kostin [Fri, 15 May 2015 13:28:47 +0000 (16:28 +0300)]
Added WinRT support for videoio.

Signed-off-by: Maxim Kostin <v-maxkos@microsoft.com>
9 years agoMoved old WinRT related wrappers from highgui to videoio fixing long broken logic.
Maxim Kostin [Fri, 15 May 2015 13:28:25 +0000 (16:28 +0300)]
Moved old WinRT related wrappers from highgui to videoio fixing long broken logic.

Signed-off-by: Maxim Kostin <v-maxkos@microsoft.com>
9 years agohopefully, fixed crash in sparse mat test
Vadim Pisarevsky [Fri, 15 May 2015 13:15:10 +0000 (16:15 +0300)]
hopefully, fixed crash in sparse mat test

9 years agoMerge pull request #3979 from ruslo:fix.cxx11
Vadim Pisarevsky [Fri, 15 May 2015 12:32:45 +0000 (12:32 +0000)]
Merge pull request #3979 from ruslo:fix.cxx11

9 years agoMerge pull request #3982 from patrikhuber:vs2015-support-master
Vadim Pisarevsky [Fri, 15 May 2015 12:32:27 +0000 (12:32 +0000)]
Merge pull request #3982 from patrikhuber:vs2015-support-master

9 years agoMerge pull request #3983 from ruslo:unify.ios
Vadim Pisarevsky [Fri, 15 May 2015 12:32:05 +0000 (12:32 +0000)]
Merge pull request #3983 from ruslo:unify.ios

9 years agoMerge pull request #3917 from yanlend:patch-1
Vadim Pisarevsky [Thu, 14 May 2015 21:16:23 +0000 (21:16 +0000)]
Merge pull request #3917 from yanlend:patch-1

9 years agosignificantly reduced sparse matrix footprint:
Vadim Pisarevsky [Thu, 14 May 2015 20:29:09 +0000 (23:29 +0300)]
significantly reduced sparse matrix footprint:
http://code.opencv.org/issues/2206,
http://code.opencv.org/issues/2924

9 years agoMerge pull request #4009 from mshabunin:fix-ann-moment
Vadim Pisarevsky [Thu, 14 May 2015 18:25:15 +0000 (18:25 +0000)]
Merge pull request #4009 from mshabunin:fix-ann-moment

9 years agoMerge pull request #3992 from nomarek:master
Vadim Pisarevsky [Thu, 14 May 2015 18:24:09 +0000 (18:24 +0000)]
Merge pull request #3992 from nomarek:master

9 years agoMerge pull request #4014 from sgjava:opencv-sgjava
Vadim Pisarevsky [Thu, 14 May 2015 18:23:27 +0000 (18:23 +0000)]
Merge pull request #4014 from sgjava:opencv-sgjava

9 years agoMerge pull request #4012 from mshabunin:doc-fixes
Vadim Pisarevsky [Thu, 14 May 2015 18:22:26 +0000 (18:22 +0000)]
Merge pull request #4012 from mshabunin:doc-fixes

9 years agoMerge pull request #4017 from headupinclouds:master
Vadim Pisarevsky [Thu, 14 May 2015 18:16:23 +0000 (18:16 +0000)]
Merge pull request #4017 from headupinclouds:master

9 years agouse _mm_sad_epu8 instead of _mm_movemask_epi8 in countNonZero. Therefore, we do not...
Vadim Pisarevsky [Thu, 14 May 2015 17:33:53 +0000 (20:33 +0300)]
use _mm_sad_epu8 instead of _mm_movemask_epi8 in countNonZero. Therefore, we do not need any popcount table and this solves code.opencv.org/issues/4333

9 years agoadded extra check in CalibrateDebevec to make sure the points are within the image:
Vadim Pisarevsky [Thu, 14 May 2015 16:54:48 +0000 (19:54 +0300)]
added extra check in CalibrateDebevec to make sure the points are within the image:
http://code.opencv.org/issues/4124

9 years agoavoid possible problems with zero values in tone mapping algorithms (http://code...
Vadim Pisarevsky [Thu, 14 May 2015 16:32:25 +0000 (19:32 +0300)]
avoid possible problems with zero values in tone mapping algorithms (code.opencv.org/issues/4020)

9 years agoadded test to prove that remap does not leak memory (http://code.opencv.org/issues...
Vadim Pisarevsky [Thu, 14 May 2015 15:21:26 +0000 (18:21 +0300)]
added test to prove that remap does not leak memory (code.opencv.org/issues/2502). disabled the test for now to save execution time.

9 years agofixed compile warnings on Linux and Windows
Vadim Pisarevsky [Thu, 14 May 2015 13:42:51 +0000 (16:42 +0300)]
fixed compile warnings on Linux and Windows

9 years agoadded test for http://code.opencv.org/issues/2957
Vadim Pisarevsky [Thu, 14 May 2015 13:25:18 +0000 (16:25 +0300)]
added test for http://code.opencv.org/issues/2957

9 years agosignificantly improved parallel non-local means by using granularity parameter in...
Vadim Pisarevsky [Thu, 14 May 2015 12:39:42 +0000 (15:39 +0300)]
significantly improved parallel non-local means by using granularity parameter in parallel_for_ loop. Because the algorithm deals with sliding sums, it's essential that each thread has enough work to do, otherwise the algorithm gets higher theoretical complexity and thus there is no speedup comparing to 1-thread code (at best).

9 years agofixed new blank line at EOF
Vladimir Dudnik [Thu, 14 May 2015 09:08:14 +0000 (12:08 +0300)]
fixed new blank line at EOF

9 years agoincreased singularity epsilon in LU decomposition. This solved singular case from...
Vadim Pisarevsky [Thu, 14 May 2015 07:42:55 +0000 (10:42 +0300)]
increased singularity epsilon in LU decomposition. This solved singular case from code.opencv.org/issues/3305. Added the respective test.

9 years agoadded support for n-channel (n>4) images in warpAffine/warpPerspective/remap: http...
Vadim Pisarevsky [Thu, 14 May 2015 05:06:46 +0000 (08:06 +0300)]
added support for n-channel (n>4) images in warpAffine/warpPerspective/remap: code.opencv.org/issues/4190

9 years agoAvoid clearing HaarEvaluator::tofs variable (introduced fb8478eb7b6c76f15c106c29a8843...
David Hirvonen [Wed, 13 May 2015 21:34:16 +0000 (17:34 -0400)]
Avoid clearing HaarEvaluator::tofs variable (introduced fb8478eb7b6c76f15c106c29a8843d8c3722bb62) in HaarEvaluator::setImage(...) since it won't be recomputed by HaarEvaluator::computeOptFeatures() for cases where the input image dimensions and requested search scales are the same as the previous.  If none of the above change then it should be correct, and if they do change it will be computed correctly inside HaarEvaluator::computeOptFeatures() (in commit 952f9dbe629e8e9f310c70c78ed46d484439c1c9)

I'm guessing there is a unit test for this that needs to be called 2x with the same image and search parameters (or another image with the same size) to illustrate the problem.

9 years agoadded test for http://code.opencv.org/issues/2736
Vadim Pisarevsky [Wed, 13 May 2015 19:16:35 +0000 (22:16 +0300)]
added test for http://code.opencv.org/issues/2736

9 years agosome fixes from http://code.opencv.org/issues/3733
Vadim Pisarevsky [Wed, 13 May 2015 19:00:02 +0000 (22:00 +0300)]
some fixes from http://code.opencv.org/issues/3733

9 years agoRemoved finalize() and added n_delete to release()
sgjava [Wed, 13 May 2015 17:45:19 +0000 (13:45 -0400)]
Removed finalize() and added n_delete to release()

9 years agoChanged delete() modifier to public from protected
sgjava [Wed, 13 May 2015 17:44:53 +0000 (13:44 -0400)]
Changed delete() modifier to public from protected

9 years agofixed http://code.opencv.org/issues/4276 - set drawing thickness limit to 32767
Marek Nogacki [Wed, 13 May 2015 16:54:25 +0000 (18:54 +0200)]
fixed code.opencv.org/issues/4276 - set drawing thickness limit to 32767

9 years agoremove example_blob.bmp
laurentBerger [Wed, 13 May 2015 16:06:26 +0000 (18:06 +0200)]
remove example_blob.bmp

9 years agoReorganized user guide
Maksim Shabunin [Wed, 13 May 2015 15:42:31 +0000 (18:42 +0300)]
Reorganized user guide

9 years agoFixed external link in python colorspace tutorial
Maksim Shabunin [Wed, 13 May 2015 14:59:03 +0000 (17:59 +0300)]
Fixed external link in python colorspace tutorial

9 years agoDocs: fixed _dest type in cv::compare
Maksim Shabunin [Tue, 12 May 2015 14:54:31 +0000 (17:54 +0300)]
Docs: fixed _dest type in cv::compare

9 years agoDocumentation for CommandLineParser
Maksim Shabunin [Fri, 8 May 2015 14:28:03 +0000 (17:28 +0300)]
Documentation for CommandLineParser

9 years agoFixed RGB-to-HLS conversion formula in documentation
Maksim Shabunin [Thu, 7 May 2015 15:18:46 +0000 (18:18 +0300)]
Fixed RGB-to-HLS conversion formula in documentation

9 years agoReplaced 'corrected' to 'distorted' in camera calibration tutorials
Maksim Shabunin [Thu, 7 May 2015 15:00:11 +0000 (18:00 +0300)]
Replaced 'corrected' to 'distorted' in camera calibration tutorials

9 years agoAdded color map similar to Matlab's new default color map 'parula'.
Christian Richardt [Wed, 13 May 2015 15:34:14 +0000 (17:34 +0200)]
Added color map similar to Matlab's new default color map 'parula'.

9 years agoFixed triangulation bug http://code.opencv.org/issues/4334.
Christian Richardt [Wed, 13 May 2015 14:28:14 +0000 (16:28 +0200)]
Fixed triangulation bug code.opencv.org/issues/4334.

9 years agoFixed ANN_MLP dw initialization when moment is not 0
Maksim Shabunin [Wed, 13 May 2015 09:05:08 +0000 (12:05 +0300)]
Fixed ANN_MLP dw initialization when moment is not 0

9 years agoMerge pull request #4006 from sgjava:opencv-steve
Vadim Pisarevsky [Wed, 13 May 2015 11:36:15 +0000 (11:36 +0000)]
Merge pull request #4006 from sgjava:opencv-steve

9 years agoMerge pull request #4007 from martin-ueding:master
Vadim Pisarevsky [Wed, 13 May 2015 11:35:09 +0000 (11:35 +0000)]
Merge pull request #4007 from martin-ueding:master

9 years agoFix spelling
Martin Ueding [Wed, 13 May 2015 06:16:39 +0000 (08:16 +0200)]
Fix spelling

9 years agodirectx opencl interop samples (with copy from opencl image2d to buffer)
Vladimir Dudnik [Tue, 12 May 2015 22:51:54 +0000 (01:51 +0300)]
directx opencl interop samples (with copy from opencl image2d to buffer)

9 years agoAdded VideoWriter and changed finalize to delete
sgjava [Tue, 12 May 2015 18:18:39 +0000 (14:18 -0400)]
Added VideoWriter and changed finalize to delete

9 years agotry to implement remark included in message
laurentBerger [Tue, 12 May 2015 17:01:05 +0000 (19:01 +0200)]
try to implement remark included in message

9 years agoMerge pull request #3974 from StevenPuttemans:fix_RGB_naming_master
Vadim Pisarevsky [Tue, 12 May 2015 15:12:26 +0000 (15:12 +0000)]
Merge pull request #3974 from StevenPuttemans:fix_RGB_naming_master

9 years agoMerge pull request #3994 from mshabunin:fix-gtk-crash
Vadim Pisarevsky [Tue, 12 May 2015 15:11:07 +0000 (15:11 +0000)]
Merge pull request #3994 from mshabunin:fix-gtk-crash

9 years agoMerge pull request #3996 from Ashod:opengl_context_clip
Vadim Pisarevsky [Tue, 12 May 2015 15:06:31 +0000 (15:06 +0000)]
Merge pull request #3996 from Ashod:opengl_context_clip

9 years agoMerge pull request #3993 from vrabaud:master
Vadim Pisarevsky [Tue, 12 May 2015 15:04:41 +0000 (15:04 +0000)]
Merge pull request #3993 from vrabaud:master

9 years agoMerge pull request #3999 from berak:features2d_tutorial_fix
Vadim Pisarevsky [Tue, 12 May 2015 15:01:54 +0000 (15:01 +0000)]
Merge pull request #3999 from berak:features2d_tutorial_fix

9 years agoMerge pull request #4000 from sdika:HOGSignedGradient
Vadim Pisarevsky [Tue, 12 May 2015 14:47:36 +0000 (14:47 +0000)]
Merge pull request #4000 from sdika:HOGSignedGradient

9 years agoMerge pull request #4002 from marvins:gdal-fix
Vadim Pisarevsky [Tue, 12 May 2015 14:33:06 +0000 (14:33 +0000)]
Merge pull request #4002 from marvins:gdal-fix

9 years agoFixing the gdal include error that Macports seems to only mess up.
Marvin Smith [Tue, 12 May 2015 03:27:50 +0000 (20:27 -0700)]
Fixing the gdal include error that Macports seems to only mess up.

9 years agoproblem float constant and position of > in vector
laurentBerger [Mon, 11 May 2015 11:45:08 +0000 (13:45 +0200)]
problem float constant and position of > in vector

9 years agotrailing whitespace
laurentBerger [Mon, 11 May 2015 11:20:52 +0000 (13:20 +0200)]
trailing whitespace

9 years agoExample about BLOB with a new image in data folder
laurentBerger [Mon, 11 May 2015 11:13:20 +0000 (13:13 +0200)]
Example about BLOB with a new image in data folder

9 years agosmall fixes for features2d tutorials
berak [Sun, 10 May 2015 11:44:49 +0000 (13:44 +0200)]
small fixes for features2d tutorials

9 years agoadded the signedGradient varaible to the HOGDescriptor class.
Michaël Sdika [Sun, 10 May 2015 07:23:30 +0000 (09:23 +0200)]
added the signedGradient varaible to the HOGDescriptor class.
when true, use signed gradient for the angular histogram computation.
default to false for backward compatibility.

9 years agoPrevent the parent from drawing over OpenGL context.
Ashod Nakashian [Sat, 9 May 2015 16:23:09 +0000 (12:23 -0400)]
Prevent the parent from drawing over OpenGL context.