I am facing this error. Error details and my usage are shown below:
g = GLCM(
File "/anaconda/envs/cucim/lib/python3.9/site-packages/glcm_cupy/glcm_base.py", line 107, in run
self.progress = tqdm(total=self.glcm_cells(im),
File "/anaconda/envs/cucim/lib/python3.9/site-packages/glcm_cupy/glcm/glcm.py", line 82, in glcm_cells
return np.prod(self.glcm_shape(im[..., 0])) *
File "/anaconda/envs/cucim/lib/python3.9/site-packages/glcm_cupy/glcm/glcm.py", line 90, in glcm_shape
im_chn.shape[1] - 2 * self.step_size - 2 * self.radius)
IndexError: tuple index out of range
def get_glcm_gpu(patch):
ar = np.asarray(patch)
# g = GLCM(directions=(Direction.EAST, Direction.SOUTH_EAST, Direction.SOUTH,
# Direction.SOUTH_WEST), bin_from=256, bin_to=16).run(patch)
g = GLCM(
directions=(Direction.EAST, Direction.SOUTH_EAST),
bin_from=256, bin_to=16).run(ar)
return g