Code Monkey home page Code Monkey logo

steerable-filter's Introduction

Steerable pyramid and STSIM metrics

Implement the complex steerable pyramid decomposition. And perceptual image metrics such as STSIM, STSTIM 2 and STSIM M

Install:

sudo pip install perceptual

Usage:

Use perceptual.filterbank.Steerable() and perceptual.metric.Metric classes

steerable-filter's People

Contributors

andreydung avatar fgcallari avatar kmader avatar kukhokuhle avatar

Stargazers

Boyuan Zhang avatar Zeng Cheng avatar  avatar ZARANT avatar Anirudha Ramesh avatar  avatar weibo avatar Hoàng Thị Thanh Nguyên (Mery) avatar ivan avatar Yoshiaki Watanabe avatar Shuyue Jia avatar CCSS1903 avatar  avatar  avatar Kaixuan Zhang avatar  avatar DKY avatar Tristan A.A. avatar Smrutiranjan Sahu avatar Jared Fernandez avatar Zhongyun Hu avatar Yaroslava Lochman avatar  avatar Alex Dimakis avatar Tom Runia avatar Carlo Rapisarda avatar Jearcci Loo avatar  avatar Ding avatar René avatar Bernal avatar  avatar Long Le avatar Ziwei Huang avatar Runhao Zeng avatar Arturo avatar Dimitri Yatsenko avatar  avatar Yuya Jeremy Ong avatar Jiri Lukavsky avatar Dmitry Ulyanov avatar

Watchers

James Cloos avatar  avatar Keith Wiley avatar Bernal avatar  avatar Alex Dimakis avatar

steerable-filter's Issues

Reconstructed Image seems to be missing frequency information

When reconstructing the image from the decomposition, some of the frequency information appears to be missing. The original code returns the real portion of the inverse DFT of outdft but when returning the raw outdft, some of the frequency info appears to be missing. See example below, this seems to happen for all images.

from skimage.data import camera

test_image = camera()

s = Steerable(5)
coeff, lo0mask, hi0mask = s.buildSCFpyr(test_image) 
resdft = s.reconSCFpyr(coeff) # modified to return resdft

plt.imshow(np.log(np.abs(np.fft.fftshift(np.fft.fft2(test_image))))) 
plt.imshow(np.log(np.abs(resdft))) 

image
image

Filter parameters

Hi Dr. Dzung,

Thanks a lot for your code! Can I know what's the filter you use for steerable decomposition?

Thanks!

filterbank.py (bug) - array indexed by floats

In filterbank.py, at line 152:

lostart = np.ceil((dims+0.5)/2) - np.ceil((np.ceil((dims-0.5)/2)+0.5)/2)
loend = lostart + np.ceil((dims-0.5)/2)

nlog_rad = log_rad[lostart[0]:loend[0], lostart[1]:loend[1]]

Variables lostart and loend are both of float type. Using their values to slice into nlog_rad causes the following:

packages/perceptual/filterbank.py", line 155, in reconSCFpyrLevs
    nlog_rad = log_rad[lostart[0]:loend[0], lostart[1]:loend[1]]
TypeError: slice indices must be integers or None or have an __index__ method

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.