some Vec<tp, cn> operators for cn > 4 not working (Bug #952)
Description
Some expressions involving Vec<> operators for more than 4 channels are not working properly.
For example:
cv::Vec<float, 6> u, v; u = v*0.5; // error (1) u = v*0.5f; // different error from the above: (2)
(1)
vec_bug.cc:6:13: error: no match for ‘operator=’ in ‘u = cv::operator* [with _Tp = float, int m = 6, int n = 1](((const cv::Matx<float, 6, 1>&)((const cv::Matx<float, 6, 1>*)(& v.cv::Vec<float, 6>::<anonymous>))), 5.0e-1)’
(2)
.../opencv-2.2.0/include/opencv2/core/operations.hpp: In function ‘cv::Vec<_Tp, cn> cv::operator*(const cv::Vec<_Tp, cn>&, _Tp) [with _Tp = float, int cn = 6]’:
.../opencv-2.2.0/include/opencv2/core/operations.hpp:1159:17: error: conversion from ‘cv::Matx<float, 6, 1>’ to non-scalar type ‘cv::Vec<float, 6>’ requested
Associated revisions
updated OpenCV version to 2.2.9; added missing cv::convertPointsHomogeneous for backward compatibility; fixed bug #952
Merge pull request #952 from SpecLad:jepg
Merge remote-tracking branch 'origin/2.4' into merge-2.4
Merged pull requests:
#890 from caorong:patch-1
#893 from jet47:gpu-arm-fixes
#933 from pengx17:2.4_macfix_cont
#935 from pengx17:2.4_filter2d_fix
#936 from bitwangyaoyao:2.4_perf
#937 from bitwangyaoyao:2.4_fixPyrLK
#938 from pengx17:2.4_surf_sample
#939 from pengx17:2.4_getDevice
#940 from SpecLad:autolock
#941 from apavlenko:signed_char
#946 from bitwangyaoyao:2.4_samples2
#947 from jet47:fix-gpu-arm-build
#948 from jet47:cuda-5.5-support
#952 from SpecLad:jepg
#953 from jet47:fix-bug-3069
#955 from SpecLad:symlink
#957 from pengx17:2.4_fix_corner_detector
#959 from SpecLad:qt4-build
#960 from SpecLad:extra-modules
Conflicts:
modules/core/include/opencv2/core/core.hpp
modules/gpu/CMakeLists.txt
modules/gpu/include/opencv2/gpu/device/vec_math.hpp
modules/gpu/perf/perf_video.cpp
modules/gpuimgproc/src/cuda/hough.cu
modules/ocl/include/opencv2/ocl/ocl.hpp
modules/ocl/src/pyrlk.cpp
samples/gpu/driver_api_multi.cpp
samples/gpu/driver_api_stereo_multi.cpp
samples/ocl/surf_matcher.cpp
History
Updated by Vadim Pisarevsky almost 14 years ago
fixed in r5006
- Status changed from Open to Done
- (deleted custom field) set to fixed