Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Getting error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.hpp:257 error

Hi, I tried to find the LBP(https://github.com/arsho/local_binary_patterns/blob/master/lbp.py) on Hyperspectral Image after computing first 3 Principal Component Analysis. I am getting the following error. error Traceback (most recent call last) in () 1 img_bgr=pcdata ----> 2 img_gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY)

error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.hpp:257: error: (-2:Unspecified error) in function 'cv::CvtHelper<vscn, vdcn,="" vdepth,="" sizepolicy="">::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::Set<3, 4>; VDcn = cv::Set<1>; VDepth = cv::Set<0, 2, 5>; cv::SizePolicy sizePolicy = (cv::SizePolicy)2u; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'

Unsupported depth of input image: 'VDepth::contains(depth)' where 'depth' is 6 (CV_64F)

click to hide/show revision 2
None

updated 2019-10-21 02:23:09 -0600

berak gravatar image

Getting error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.hpp:257 error

Hi, I tried to find the LBP(https://github.com/arsho/local_binary_patterns/blob/master/lbp.py) on Hyperspectral Image after computing first 3 Principal Component Analysis. I am getting the following error. error.

error Traceback (most recent call last)
in ()
1 img_bgr=pcdata
----> 2 img_gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY)

cv2.COLOR_BGR2GRAY)

error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.hpp:257: error: (-2:Unspecified error) in function 'cv::CvtHelper<vscn, vdcn,="" vdepth,="" sizepolicy="">::CvtHelper(cv::InputArray, 'cv::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::Set<3, 4>; VDcn = cv::Set<1>; VDepth = cv::Set<0, 2, 5>; cv::SizePolicy sizePolicy = (cv::SizePolicy)2u; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'

cv::_OutputArray&]'

Unsupported depth of input image: 'VDepth::contains(depth)' where

where

'depth' is 6 (CV_64F)

(CV_64F)
click to hide/show revision 3
None

updated 2019-10-21 02:28:36 -0600

berak gravatar image

Getting error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.hpp:257 error

Hi, I tried to find the LBP(https://github.com/arsho/local_binary_patterns/blob/master/lbp.py) LBP on Hyperspectral Image after computing first 3 Principal Component Analysis. I am getting the following error.

error Traceback (most recent call last)
in ()
1 img_bgr=pcdata
----> 2 img_gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY)

error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.hpp:257: error: (-2:Unspecified error) in function 'cv::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::Set<3, 4>; VDcn = cv::Set<1>; VDepth = cv::Set<0, 2, 5>; cv::SizePolicy sizePolicy = (cv::SizePolicy)2u; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'

Unsupported depth of input image:
'VDepth::contains(depth)'

where

'depth' is 6 (CV_64F)
click to hide/show revision 4
None

updated 2019-10-21 02:30:20 -0600

berak gravatar image

Getting error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.hpp:257 error

Hi, I tried to find the LBP on Hyperspectral Image after computing first 3 Principal Component Analysis. I am getting the following error.

error Traceback (most recent call last)
in ()
1 img_bgr=pcdata
----> 2 img_gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY)

error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.hpp:257: error: (-2:Unspecified error) in function 'cv::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::Set<3, 4>; VDcn = cv::Set<1>; VDepth = cv::Set<0, 2, 5>; cv::SizePolicy sizePolicy = (cv::SizePolicy)2u; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'

Unsupported depth of input image:
'VDepth::contains(depth)'

where

'depth' is 6 (CV_64F)