You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title of this issue says, I am trying to use swt2.py to get to know how the pywt.swt2 works to use it on my own images. However, when I run it I get the next error value:
ValueError: 'image' is not a valid value for origin; supported values are 'upper', 'lower'
Hello!
As the title of this issue says, I am trying to use swt2.py to get to know how the pywt.swt2 works to use it on my own images. However, when I run it I get the next error value:
ValueError: 'image' is not a valid value for origin; supported values are 'upper', 'lower'
Besides, when I try to use the demo presented on the home page (https://pywavelets.readthedocs.io/en/latest/index.html) on
my own data to run by adding the next code lines:
import numpy as np
import matplotlib.pyplot as plt
import pywt
import pywt.data
from PIL import Image
Load image
path = 'C:/Users/Xareni Galindo/Pictures/'
filename = '60xclose-3_w3soSPIM-561_s5-1to85-1.tif'
opening image
arr = Image.open(path + filename)
#converting images to array
arr.load()
data = np.asarray(arr)
The rest of the demo code is not changed, after running the code I get the next error message
ValueError: start_level must be less than 1.
What could be wrong? I am a newbie in coding and in the use of wavelets, so I am not sure what could be happening.
I am using PyWavelets 1.1.1 in Anaconda. my variable "data" is of type "array of uint8".
Thank you in advance
Xareni
The text was updated successfully, but these errors were encountered: