I am working on a image processing algorithm where I need to use the Richardson Lucy deconvolution. So I decided to use this https://scikit-image.org/docs/stable/api/skimage.restoration.html#skimage.restoration.richardson_lucy. The function I have defined using it looks like this
from skimage import restoration
def RLdeconv(Iraw,PSF,judge):
if judge==True:
IIraw=restoration.richardson_lucy(Iraw,PSF,5)
else:
IIraw=Iraw
return IIraw```
When I run the code that calls this function, I get the following error
`ValueError: volume and kernel should have the same dimensionality`
I tried searching and it was a dead end. Please help me with this