Mat Data Type 15 Is Not Supported
Src data type 17 is not supported n i watched the image being passed as an argument and it is in bgr as i expected yet it doesn t work.
Mat data type 15 is not supported. 2014 06 26 03 39 28 0500 seen. Copy link quote reply. Medications used in mat are approved by the food and drug administration fda and mat programs are clinically driven and tailored to meet each patient s needs. Placeholder it uses for skipped rows columns when the array is too large.
Updated 2017 07 28 05 12 25 0500 berak 31771. It can not source run matlab m scripts. To clarify the r matlab package can read write matlab mat data files. Line 62 in getrep n rgbimg cv2 cvtcolor imgframe cv2 color bgr2rgb ntypeerror.
Points data type 9 is not supported 15. That said it seems you write into a text file what looks like immitation of the output you get when you print out a 3 channel numpy array. But i believe cvtcolor only works on 8 bit unsigned ints 16 bit unsigned ints or 32 bit float. Type 17 means that your image is a cv 8sc3 aka a 3 channel matrix of char however threshold accepts only single channel 8 bit or 32 bit floating point.
Then you read the file back into a single string create a numpy array from it which makes it an array with a single string and then try to display that using. The file you ve sent me offline is a m script file which is not the same as a mat data file. So you need to convert the type with cv2 convert first or obtain the image differently. You can find a list of opencv types here.
11 499 times last updated. Which means that the type must be either cv 8uc1 or cv 32fc1. Check shape and dtype of your img and adjust img as required. Open sleepyginger opened this issue mar 28 2018 1 comment open typeerror.
Points data type 9 is not supported 15. Mat type 15 is not supported. Your image of data type 17 is a 8 bit signed int image see here for translating the numeric value of types.