GLCM calculation using scikit-learn. Error when using greycomatrix

2016-09-17 Thread ioannisgkan259
Hello everyone, I am using a SAR image (16-bit) and trying to implement GLCM algorithm using sciki-learn. When trying to calculate the GLCM using greycomatrix i get the following error: assert image.max() < levels. It says that the maximum value of the image intensity must be less than the nu

Re: GLCM calculation using scikit-learn. Error when using greycomatrix

2016-09-19 Thread ioannisgkan259
Thank you very much Juan for your quick reply. That was helpful :) Ioannis On Monday, 19 September 2016 01:03:45 UTC+1, Juan Nunez-Iglesias wrote: > > Hi Ioannis, > > Unfortunately the levels keyword is used as a hint to the function about > the number of levels when the image is uint16, because

Re: GLCM calculation using scikit-learn. Error when using greycomatrix

2016-10-01 Thread ioannisgkan259
Hello Juan, I want to thank you for your quick reply to my question the last time and i do not want to bother you with my questions. I always try to solve my problems before posting my question here. Sometime, i just cannot figure out how to fix the error. What i want to do is to create a GLCM

Re: GLCM calculation using scikit-learn. Error when using greycomatrix

2016-10-02 Thread ioannisgkan259
Thank you very much for your quick reply, i appreciate it. It seems you always have a good answer to give me. Ioannis On Sunday, 2 October 2016 03:41:10 UTC+1, Juan Nunez-Iglesias wrote: > > Hi Ioannis, > > So, the size of the GLCM for a 32-bit image that uses all possible > intensity levels