Hello all!
Am trying to apply an swt2 wavelet function to an organoid tiff image (2d) but every time I set the level to anything bigger than one I get the same error, ValueError: start_level must be less than 1. I have been trying to find the solution on the web but I did not read any similar problem on this mailing list or any website. Can someone explain to me what is happening? I am maybe not applying the correct wavelet? or something that maybe I am not understanding on the documentation? So far, I have tried different wavelets and different level combinations and I have the same problem every time the level is not equal to 1.
My code is :
path = 'C:/Users/Xareni Galindo/Pictures/'
filename = '60xclose-3_w3soSPIM-561_s5-1to85-1.tif'
# Load image
original = Image.open(path + filename)
coeffs= pywt.swt2(original, 'sym9', 2, start_level=0) # applying the wavelet to the image
output message
ValueError: start_level must be less than 1.
Thank you in advance
Xareni Galindo