Ask Your Question

beebrain's profile - activity

2017-01-21 08:08:21 -0600 received badge  Scholar (source)
2017-01-18 17:35:52 -0600 answered a question I got some this error TypeError: img data type = 23 is not supported

I fixed it When the source run squart command out put from squart function is floating 16 bit type It is not work. SO I cast type to floating 64 bit it work.

2017-01-16 21:41:19 -0600 commented question I got some this error TypeError: img data type = 23 is not supported

Thank you for your comment, I declare a new kernel in np.array but i got a same error this is my source code

img = cv2.imread("scene02611.png")
imB, imG, imR = cv2.split(img)
kernel = np.array([-1, 0, 1])
gxR  = cv2.filter2D(imR,-1,kernel)  # this source is work
gammaR = np.sqrt(imR)
gxR  = cv2.filter2D(gammaR,-1,kernel)  # this source isn't work
2017-01-10 23:21:22 -0600 asked a question I got some this error TypeError: img data type = 23 is not supported
 gxR  = cv2.filter2D(gammaR,-1,kernel)
TypeError: src data type = 23 is not supported

my grammaR is array 2D , I can run this code on my laptop is ok, but i can't run the same code on my PC. i want to know how to fix it.