platform/upstream/opencv.git
10 years agoadded YCrCb to RGB, BGR, RGBA, BGRA modes to ocl::cvtColor
Ilya Lavrenov [Sat, 9 Nov 2013 13:03:30 +0000 (17:03 +0400)]
added YCrCb to RGB, BGR, RGBA, BGRA modes to ocl::cvtColor

10 years agofixed ocl::cvtColor for CV_YUV2BGRA and CV_YUV2RGBA
Ilya Lavrenov [Fri, 8 Nov 2013 15:07:06 +0000 (19:07 +0400)]
fixed ocl::cvtColor for CV_YUV2BGRA and CV_YUV2RGBA

10 years agoMerge pull request #1759 from ilya-lavrenov:ocl_distanceToCenters
Roman Donchenko [Fri, 8 Nov 2013 08:39:13 +0000 (12:39 +0400)]
Merge pull request #1759 from ilya-lavrenov:ocl_distanceToCenters

10 years agoMerge pull request #1755 from KonstantinMatskevich:dump_info
Roman Donchenko [Fri, 8 Nov 2013 08:31:04 +0000 (12:31 +0400)]
Merge pull request #1755 from KonstantinMatskevich:dump_info

10 years agoMerge pull request #1763 from SpecLad:cv-func
Roman Donchenko [Fri, 8 Nov 2013 08:29:49 +0000 (12:29 +0400)]
Merge pull request #1763 from SpecLad:cv-func

10 years agoMerge pull request #1760 from ilya-lavrenov:ocl_remap_nn
Roman Donchenko [Thu, 7 Nov 2013 13:29:16 +0000 (17:29 +0400)]
Merge pull request #1760 from ilya-lavrenov:ocl_remap_nn

10 years agoEnabled CV_Assert and such to print the function name with Visual C++.
Roman Donchenko [Thu, 7 Nov 2013 13:13:30 +0000 (17:13 +0400)]
Enabled CV_Assert and such to print the function name with Visual C++.

Also, I made a separate macro for the current function name, which
helps simplify a lot of code that uses it.

10 years agoupdate
Konstantin Matskevich [Wed, 6 Nov 2013 12:03:58 +0000 (16:03 +0400)]
update

10 years agoMerge pull request #1737 from vrabaud:2.4
Roman Donchenko [Thu, 7 Nov 2013 08:03:29 +0000 (12:03 +0400)]
Merge pull request #1737 from vrabaud:2.4

10 years agoadded CV_16SC2 && CV_16UC1 maps support to ocl::remap (nearest neighbour only)
Ilya Lavrenov [Mon, 4 Nov 2013 16:50:33 +0000 (20:50 +0400)]
added CV_16SC2 && CV_16UC1 maps support to ocl::remap (nearest neighbour only)

10 years agospeeded up ocl::distanceToCenters
Ilya Lavrenov [Tue, 5 Nov 2013 16:03:49 +0000 (20:03 +0400)]
speeded up ocl::distanceToCenters

10 years agoMerge pull request #1756 from alalek:ocl_workaround_memory_leaks_with_subbuffer
Andrey Pavlenko [Wed, 6 Nov 2013 14:26:39 +0000 (18:26 +0400)]
Merge pull request #1756 from alalek:ocl_workaround_memory_leaks_with_subbuffer

10 years agoMerge pull request #1758 from apavlenko:adaptive_bilateral_filter
Andrey Pavlenko [Wed, 6 Nov 2013 14:09:48 +0000 (18:09 +0400)]
Merge pull request #1758 from apavlenko:adaptive_bilateral_filter

10 years agoMerge pull request #1757 from asmorkalov:android_manager_version_inc2
Roman Donchenko [Wed, 6 Nov 2013 13:50:19 +0000 (17:50 +0400)]
Merge pull request #1757 from asmorkalov:android_manager_version_inc2

10 years agoCleaned up adaptive bilateral filtering, added support for gaussian interpolation...
Harris Gasparakis [Tue, 5 Nov 2013 12:04:04 +0000 (07:04 -0500)]
Cleaned up adaptive bilateral filtering, added support for gaussian interpolation, updated sample and docs

10 years agoextending openCL info dump
Konstantin Matskevich [Wed, 6 Nov 2013 08:17:06 +0000 (12:17 +0400)]
extending openCL info dump

10 years agoMerge pull request #1711 from SpecLad:cap-broken-mat
Roman Donchenko [Wed, 6 Nov 2013 10:53:07 +0000 (14:53 +0400)]
Merge pull request #1711 from SpecLad:cap-broken-mat

10 years agoAndroid Manager Version++.
Alexander Smorkalov [Wed, 6 Nov 2013 10:24:18 +0000 (14:24 +0400)]
Android Manager Version++.

10 years agoocl: workaround for subbuffer memory leaks
Alexander Alekhin [Wed, 6 Nov 2013 09:20:02 +0000 (13:20 +0400)]
ocl: workaround for subbuffer memory leaks

10 years agoMerge pull request #1750 from alalek:ocl_update_documentation
Andrey Pavlenko [Wed, 6 Nov 2013 09:32:00 +0000 (13:32 +0400)]
Merge pull request #1750 from alalek:ocl_update_documentation

10 years agoMerge pull request #1740 from ilya-lavrenov:ocl_corners
Andrey Pavlenko [Wed, 6 Nov 2013 09:31:43 +0000 (13:31 +0400)]
Merge pull request #1740 from ilya-lavrenov:ocl_corners

10 years agoMerge pull request #1739 from pengx17:2.4_ocl_overload_haar
Andrey Pavlenko [Wed, 6 Nov 2013 09:31:11 +0000 (13:31 +0400)]
Merge pull request #1739 from pengx17:2.4_ocl_overload_haar

10 years agoMerge pull request #1743 from ilya-lavrenov:ocl_repeat
Roman Donchenko [Wed, 6 Nov 2013 09:24:22 +0000 (13:24 +0400)]
Merge pull request #1743 from ilya-lavrenov:ocl_repeat

10 years agoRevert back test image.
peng xiao [Wed, 6 Nov 2013 03:19:26 +0000 (11:19 +0800)]
Revert back test image.

10 years agoocl: update comments in ocl.hpp
Alexander Alekhin [Thu, 31 Oct 2013 11:05:00 +0000 (15:05 +0400)]
ocl: update comments in ocl.hpp

10 years agoocl: update documentation
Alexander Alekhin [Wed, 30 Oct 2013 14:22:18 +0000 (18:22 +0400)]
ocl: update documentation

10 years agoMerge pull request #1752 from alalek:ocl_memory_cleanup_workaround
Andrey Pavlenko [Tue, 5 Nov 2013 19:49:36 +0000 (23:49 +0400)]
Merge pull request #1752 from alalek:ocl_memory_cleanup_workaround

10 years agoMerge pull request #1751 from ilya-lavrenov:ocl_copyMakeBorder_test_fix
Andrey Pavlenko [Tue, 5 Nov 2013 19:49:11 +0000 (23:49 +0400)]
Merge pull request #1751 from ilya-lavrenov:ocl_copyMakeBorder_test_fix

10 years agoMerge pull request #1745 from alalek:ocl_fix_svm_with_blas
Andrey Pavlenko [Tue, 5 Nov 2013 19:48:41 +0000 (23:48 +0400)]
Merge pull request #1745 from alalek:ocl_fix_svm_with_blas

10 years agoocl: memory cleanup workaround: clFinish() before clReleaseMemObject() + 64kb memory...
Alexander Alekhin [Thu, 31 Oct 2013 19:00:43 +0000 (23:00 +0400)]
ocl: memory cleanup workaround: clFinish() before clReleaseMemObject() + 64kb memory guard

10 years agoMerge pull request #1749 from SpecLad:update-ignore
Roman Donchenko [Tue, 5 Nov 2013 15:41:28 +0000 (19:41 +0400)]
Merge pull request #1749 from SpecLad:update-ignore

10 years agofixed ocl::copyMakeBorder accuracy test
Ilya Lavrenov [Fri, 1 Nov 2013 15:06:42 +0000 (19:06 +0400)]
fixed ocl::copyMakeBorder accuracy test

10 years agoocl: svm: restore non BLAS version
Alexander Alekhin [Tue, 5 Nov 2013 11:15:26 +0000 (15:15 +0400)]
ocl: svm: restore non BLAS version

10 years agoRevert "disable SVM when AMD BLAS is not available"
Alexander Alekhin [Tue, 5 Nov 2013 11:13:30 +0000 (15:13 +0400)]
Revert "disable SVM when AMD BLAS is not available"

This reverts commit d63a38e9bfad4081ec8107e8d38e03c03f6548d2.

Conflicts:
modules/ocl/test/test_ml.cpp

10 years agoadd VERBATIM as advised by @SpecLad
Vincent Rabaud [Tue, 5 Nov 2013 11:02:22 +0000 (12:02 +0100)]
add VERBATIM as advised by @SpecLad

10 years agofix the crash as suggested by @SpecLad
Vincent Rabaud [Tue, 5 Nov 2013 10:18:20 +0000 (11:18 +0100)]
fix the crash as suggested by @SpecLad

10 years agocame back to relative error
Ilya Lavrenov [Tue, 5 Nov 2013 10:17:31 +0000 (14:17 +0400)]
came back to relative error

10 years agoSorted .gitignore.
Roman Donchenko [Tue, 5 Nov 2013 09:41:42 +0000 (13:41 +0400)]
Sorted .gitignore.

10 years agoUpdate .gitignore.
Roman Donchenko [Tue, 5 Nov 2013 09:37:01 +0000 (13:37 +0400)]
Update .gitignore.

* OpenCV4Tegra/ is no longer relevant.
* We should only ignore the particular refman.rst that we generate.

10 years agoadded ocl::repeat
Ilya Lavrenov [Mon, 4 Nov 2013 19:59:56 +0000 (23:59 +0400)]
added ocl::repeat

10 years agoLet perf/accuracy test of ocl haar uses detectMultiScale api.
peng xiao [Tue, 5 Nov 2013 02:40:27 +0000 (10:40 +0800)]
Let perf/accuracy test of ocl haar uses detectMultiScale api.
Fix image to be used by perf test.

10 years agofixed warnings in OpenCL kernels
Ilya Lavrenov [Mon, 4 Nov 2013 11:30:00 +0000 (15:30 +0400)]
fixed warnings in OpenCL kernels

10 years agofixed ocl::cornerHarris, ocl::cornerMinEigenVal and their accuracy tests
Ilya Lavrenov [Mon, 4 Nov 2013 11:09:58 +0000 (15:09 +0400)]
fixed ocl::cornerHarris, ocl::cornerMinEigenVal and their accuracy tests

10 years agoOverload detectMultiScale API for ocl::haar.
peng xiao [Mon, 4 Nov 2013 06:59:28 +0000 (14:59 +0800)]
Overload detectMultiScale API for ocl::haar.

10 years agofix crash when path has spaces
Vincent Rabaud [Fri, 1 Nov 2013 18:30:58 +0000 (19:30 +0100)]
fix crash when path has spaces
The paths are defined properly with an escape "\ " but you cannot have an escape and
quotes when piping (otherwise, escapes are understood as 2 characters).
So just remove the quotes.

10 years agoMerge pull request #1736 from alalek:ocl_fix_corner_memory_access
Andrey Pavlenko [Fri, 1 Nov 2013 14:37:34 +0000 (18:37 +0400)]
Merge pull request #1736 from alalek:ocl_fix_corner_memory_access

10 years agoMerge pull request #1731 from perping:2.4_haar
Andrey Pavlenko [Fri, 1 Nov 2013 12:46:17 +0000 (16:46 +0400)]
Merge pull request #1731 from perping:2.4_haar

10 years agoMerge pull request #1734 from asmorkalov:android_manager_version_inc
Roman Donchenko [Fri, 1 Nov 2013 12:39:43 +0000 (16:39 +0400)]
Merge pull request #1734 from asmorkalov:android_manager_version_inc

10 years agoocl: corner*: fix memory access in kernels; change error check to relative
Alexander Alekhin [Fri, 1 Nov 2013 12:38:04 +0000 (16:38 +0400)]
ocl: corner*: fix memory access in kernels; change error check to relative

10 years agoMerge pull request #1733 from ilya-lavrenov:cv_remap
Andrey Pavlenko [Fri, 1 Nov 2013 11:53:21 +0000 (15:53 +0400)]
Merge pull request #1733 from ilya-lavrenov:cv_remap

10 years agoMerge pull request #1732 from alalek:ocl_blendLinear
Andrey Pavlenko [Fri, 1 Nov 2013 11:53:02 +0000 (15:53 +0400)]
Merge pull request #1732 from alalek:ocl_blendLinear

10 years agoOpenCV Version++. OpenCV Manager Version++.
Alexander Smorkalov [Fri, 1 Nov 2013 11:22:34 +0000 (15:22 +0400)]
OpenCV Version++. OpenCV Manager Version++.

10 years agoconsistency SSE2 and plain versions of convertMaps and remap
Ilya Lavrenov [Fri, 1 Nov 2013 10:50:41 +0000 (14:50 +0400)]
consistency SSE2 and plain versions of convertMaps and remap

10 years agoocl: fix testdata for blendLinear
Alexander Alekhin [Fri, 1 Nov 2013 10:32:12 +0000 (14:32 +0400)]
ocl: fix testdata for blendLinear

10 years agoremove whitespace.
perping [Fri, 1 Nov 2013 09:53:35 +0000 (17:53 +0800)]
remove whitespace.

10 years agoMerge pull request #1729 from ilya-lavrenov:ocl_moments
Roman Donchenko [Fri, 1 Nov 2013 07:56:49 +0000 (11:56 +0400)]
Merge pull request #1729 from ilya-lavrenov:ocl_moments

10 years agoMerge pull request #1730 from ilya-lavrenov:ocl_kern_warn
Roman Donchenko [Fri, 1 Nov 2013 07:52:09 +0000 (11:52 +0400)]
Merge pull request #1730 from ilya-lavrenov:ocl_kern_warn

10 years agoMerge pull request #1728 from apavlenko:refactor_vcap_jni
Roman Donchenko [Fri, 1 Nov 2013 07:39:43 +0000 (11:39 +0400)]
Merge pull request #1728 from apavlenko:refactor_vcap_jni

10 years agofixed a bug of haar.
perping [Fri, 1 Nov 2013 06:07:10 +0000 (14:07 +0800)]
fixed a bug of haar.

10 years agofixed ocl::Moments test
Ilya Lavrenov [Thu, 31 Oct 2013 20:07:10 +0000 (00:07 +0400)]
fixed ocl::Moments test

10 years agofixed warnings in ocl kernels
Ilya Lavrenov [Thu, 31 Oct 2013 19:23:56 +0000 (23:23 +0400)]
fixed warnings in ocl kernels

10 years agoMerge pull request #1727 from ilya-lavrenov:ocl_warpPerspective
Andrey Pavlenko [Thu, 31 Oct 2013 11:32:33 +0000 (15:32 +0400)]
Merge pull request #1727 from ilya-lavrenov:ocl_warpPerspective

10 years agoMerge pull request #1726 from melody-rain:2.4_tvl1_ocl
Andrey Pavlenko [Thu, 31 Oct 2013 10:03:36 +0000 (14:03 +0400)]
Merge pull request #1726 from melody-rain:2.4_tvl1_ocl

10 years agoMerge pull request #1724 from ilya-lavrenov:ocl_thresh
Andrey Pavlenko [Thu, 31 Oct 2013 09:55:03 +0000 (13:55 +0400)]
Merge pull request #1724 from ilya-lavrenov:ocl_thresh

10 years agoMerge pull request #1710 from melody-rain:2.4_moments_ocl
Andrey Pavlenko [Thu, 31 Oct 2013 09:54:45 +0000 (13:54 +0400)]
Merge pull request #1710 from melody-rain:2.4_moments_ocl

10 years agofixed ocl::warpPerspective
Ilya Lavrenov [Thu, 31 Oct 2013 08:23:57 +0000 (12:23 +0400)]
fixed ocl::warpPerspective

10 years agominor refactoring of Android VideoCapture jni code to make it similar to generated one
Andrey Pavlenko [Thu, 31 Oct 2013 08:42:12 +0000 (12:42 +0400)]
minor refactoring of Android VideoCapture jni code to make it similar to generated one

10 years agofixed a typo.
Jin Ma [Thu, 31 Oct 2013 08:25:50 +0000 (16:25 +0800)]
fixed a typo.

10 years agoremoved test for double since not all platforms support double, thus the sanity check...
Jin Ma [Thu, 31 Oct 2013 08:21:08 +0000 (16:21 +0800)]
removed test for double since not all platforms support double, thus the sanity check cannot pass on all the platforms.

10 years agoResolved a bug and used ocl::multiply.
Jin Ma [Thu, 31 Oct 2013 08:09:33 +0000 (16:09 +0800)]
Resolved a bug and used ocl::multiply.

10 years agovectorized ocl::threshold for single channel images
Ilya Lavrenov [Wed, 30 Oct 2013 15:02:51 +0000 (19:02 +0400)]
vectorized ocl::threshold for single channel images

10 years agomodified the copyright info.
Jin Ma [Thu, 31 Oct 2013 00:47:59 +0000 (08:47 +0800)]
modified the copyright info.

10 years agoMerge pull request #1709 from ilya-lavrenov:ocl_cornerharris
Andrey Pavlenko [Wed, 30 Oct 2013 20:22:37 +0000 (00:22 +0400)]
Merge pull request #1709 from ilya-lavrenov:ocl_cornerharris

10 years agoMerge pull request #1723 from ilya-lavrenov:ocl_norm
Andrey Pavlenko [Wed, 30 Oct 2013 20:21:28 +0000 (00:21 +0400)]
Merge pull request #1723 from ilya-lavrenov:ocl_norm

10 years agoMerge pull request #1721 from alalek:ocl_fix_filter2D_64F_kernel
Andrey Pavlenko [Wed, 30 Oct 2013 20:21:09 +0000 (00:21 +0400)]
Merge pull request #1721 from alalek:ocl_fix_filter2D_64F_kernel

10 years agoMerge pull request #1719 from ilya-lavrenov:ocl_gaussianBlur
Andrey Pavlenko [Wed, 30 Oct 2013 20:20:51 +0000 (00:20 +0400)]
Merge pull request #1719 from ilya-lavrenov:ocl_gaussianBlur

10 years agoMerge pull request #1717 from alalek:ocl_adjust_worksize
Andrey Pavlenko [Wed, 30 Oct 2013 20:20:34 +0000 (00:20 +0400)]
Merge pull request #1717 from alalek:ocl_adjust_worksize

10 years agoMerge pull request #1715 from asmorkalov:android_java_bincompat_fix
Andrey Pavlenko [Wed, 30 Oct 2013 20:04:03 +0000 (00:04 +0400)]
Merge pull request #1715 from asmorkalov:android_java_bincompat_fix

10 years agoMerge pull request #1720 from SpecLad:cmp0017
Roman Donchenko [Wed, 30 Oct 2013 13:46:33 +0000 (17:46 +0400)]
Merge pull request #1720 from SpecLad:cmp0017

10 years agoMerge pull request #1718 from SpecLad:have-opencv-ocl
Roman Donchenko [Wed, 30 Oct 2013 13:33:03 +0000 (17:33 +0400)]
Merge pull request #1718 from SpecLad:have-opencv-ocl

10 years agodisabled upload and download perf tests
Ilya Lavrenov [Wed, 30 Oct 2013 13:08:57 +0000 (17:08 +0400)]
disabled upload and download perf tests

10 years agofixed ocl::norm (with NORM_RELATIVE specified) when norm(src2) == 0
Ilya Lavrenov [Wed, 30 Oct 2013 12:48:12 +0000 (16:48 +0400)]
fixed ocl::norm (with NORM_RELATIVE specified) when norm(src2) == 0

10 years agoocl: filter2D: fix processing of kernel with double datatype
Alexander Alekhin [Wed, 30 Oct 2013 12:26:36 +0000 (16:26 +0400)]
ocl: filter2D: fix processing of kernel with double datatype

10 years agoFixed CMake warnings/bugs caused by #1670 and #1714
Roman Donchenko [Wed, 30 Oct 2013 12:10:02 +0000 (16:10 +0400)]
Fixed CMake warnings/bugs caused by #1670 and #1714

include() doesn't create a variable scope, so the settings of
CMAKE_MODULE_PATH and CMAKE_FIND_ROOT_PATH_MODE_* were polluting
everything included after OpenCVDetectCUDA.cmake.

Also, FindCUDA includes FindPackageHandleStandardArgs, which includes
CMakeParseArguments, which causes warnings related to policy CMP0017.
Setting it to NEW seems safe enough.

10 years agoMerge pull request #1712 from alalek:ocl_split
Roman Donchenko [Wed, 30 Oct 2013 12:18:49 +0000 (16:18 +0400)]
Merge pull request #1712 from alalek:ocl_split

10 years agochanged eps in ocl::GaussianBlur test
Ilya Lavrenov [Wed, 30 Oct 2013 12:04:48 +0000 (16:04 +0400)]
changed eps in ocl::GaussianBlur test

10 years agoocl: adjust worksize for filter2D and boxFilter
Alexander Alekhin [Wed, 30 Oct 2013 10:57:46 +0000 (14:57 +0400)]
ocl: adjust worksize for filter2D and boxFilter

10 years agoMerge pull request #1652 from nghiaho12:kalman
Roman Donchenko [Wed, 30 Oct 2013 11:11:25 +0000 (15:11 +0400)]
Merge pull request #1652 from nghiaho12:kalman

10 years agoocl: split: update tests and implementation
Alexander Alekhin [Tue, 29 Oct 2013 16:35:42 +0000 (20:35 +0400)]
ocl: split: update tests and implementation

10 years agoFixed building with OpenCL, but without the ocl module.
Roman Donchenko [Wed, 30 Oct 2013 10:02:08 +0000 (14:02 +0400)]
Fixed building with OpenCL, but without the ocl module.

HAVE_opencv_ocl implies HAVE_OPENCL, so checking for both is not
necessary.

10 years agoMerge pull request #1714 from jet47:find-cuda-fix
Roman Donchenko [Wed, 30 Oct 2013 09:27:40 +0000 (13:27 +0400)]
Merge pull request #1714 from jet47:find-cuda-fix

10 years agoBug #3276 Java bindings binary compatibility is broken in branch 2.4 fixed.
Alexander Smorkalov [Wed, 30 Oct 2013 08:45:44 +0000 (12:45 +0400)]
Bug #3276 Java bindings binary compatibility is broken in branch 2.4 fixed.

New version of Java wrappers' generator uses different wrappers for VideoCapture
on Android and desktop to prevent binary compatibility issues.

10 years agoMerge pull request #1675 from krodyush:opencl-optimization
Roman Donchenko [Wed, 30 Oct 2013 08:28:31 +0000 (12:28 +0400)]
Merge pull request #1675 from krodyush:opencl-optimization

10 years agoMerge pull request #1713 from pengx17:patch-2
Roman Donchenko [Wed, 30 Oct 2013 08:27:09 +0000 (12:27 +0400)]
Merge pull request #1713 from pengx17:patch-2

10 years agofixed find package CUDA for cross-compilation
Vladislav Vinogradov [Wed, 30 Oct 2013 08:10:35 +0000 (12:10 +0400)]
fixed find package CUDA for cross-compilation

replaced find_host_package with find_package and
set CMAKE_FIND_ROOT_PATH_MODE_LIBRARY to BOTH, because NEVER
doesn't work for CUDA_CUDA_LIBRARY, which is located in
/usr/arm-linux-gnueabihf/lib/libcuda.so for ARM

10 years agofixed a bug when double is not supported.
Jin Ma [Wed, 30 Oct 2013 06:37:13 +0000 (14:37 +0800)]
fixed a bug when double is not supported.

10 years agoFix a typo
Peng Xiao [Wed, 30 Oct 2013 02:36:28 +0000 (10:36 +0800)]
Fix a typo

10 years agofixed extrapolation for ocl::cornerMinEigenVal and ocl::cornerHarris; enabled CV_32FC...
Ilya Lavrenov [Tue, 29 Oct 2013 08:10:20 +0000 (12:10 +0400)]
fixed extrapolation for ocl::cornerMinEigenVal and ocl::cornerHarris; enabled CV_32FC1 for the first function

10 years agoVideoCapture: copy the captured frame, to avoid dangling Mats
Roman Donchenko [Tue, 29 Oct 2013 14:14:41 +0000 (18:14 +0400)]
VideoCapture: copy the captured frame, to avoid dangling Mats

Previously, VideoCapture::retrieve would return a Mat that referenced
the internal IplImage. Since the latter is rewritten every time a
frame is captured, it means that if the user captures two frames in a row,
the first frame would reference nothing. Similar if a user captures a frame,
then destroys the VideoCapture instance.

Note that the other branch of the if isn't affected, since flip allocates
a new Mat.

10 years agoRewrote moments of opencl version.
Jin Ma [Tue, 29 Oct 2013 10:05:29 +0000 (18:05 +0800)]
Rewrote moments of opencl version.