Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ does not attempt to recreate all of the matlab code from
matlabPyrTools. The goal is to create a Python interface for the C
code at the heart of matlabPyrTools.

**NOTE**: If you are only interested in the complex steerable pyramid, we have a
pytorch implementation in the
[plenoptic](https://github.com/LabForComputationalVision/plenoptic/) package;
this implementation is differentiable.

# Installation

It's recommended you install from pip: `pip install pyrtools`. The pip
Expand Down
2 changes: 1 addition & 1 deletion pyrtools/pyramids/pyramid.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Pyramid:

def __init__(self, image, edge_type):

self.image = np.array(image).astype(np.float)
self.image = np.array(image).astype(float)
if self.image.ndim == 1:
self.image = self.image.reshape(-1, 1)
assert self.image.ndim == 2, "Error: Input signal must be 1D or 2D."
Expand Down
2 changes: 1 addition & 1 deletion pyrtools/tools/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def animshow(video, framerate=2., as_html5=True, repeat=False,

def animate_video(t):
for i, a in enumerate(artists):
frame = video[i][t].astype(np.float)
frame = video[i][t].astype(float)
a.set_data(frame)
return artists

Expand Down