mubeta06 / python Goto Github PK
View Code? Open in Web Editor NEWpython stuff
Home Page: http://mubeta06.github.com/python
License: GNU Lesser General Public License v3.0
python stuff
Home Page: http://mubeta06.github.com/python
License: GNU Lesser General Public License v3.0
can you tell me how i can install module gauss
i cannot find a reference
I found that in your implementation of interp
(in the multirate module), if you use filtfilt
instead of lfilter
, and don't cut off the results (ie. with [r*l+1:-1]
) the result is much closer to that produced by MATLAB's interp
. In particular, it's closer to meeting the constraint that existing points are preserved.
I'd like to display the qr code as a normal looking image for a user to scan with his/her phone. Is there a method to convert the QRcode object data to a PNG or PIL image for this purpose?
TypeError: 'numpy.ndarray' object is not callable
Hi,
when I run your ssim.py example, I get the following error message:
/usr/bin/python2.7 /home/<user>/PycharmProjects/python-ssim/signal_processing/sp/ssim.py
Traceback (most recent call last):
File "/home/<user>/PycharmProjects/python-ssim/signal_processing/sp/ssim.py", line 110, in <module>
sys.exit(main())
File "/home/<user>/PycharmProjects/python-ssim/signal_processing/sp/ssim.py", line 92, in main
ssim_map = ssim(img1, img2)
File "/home/<user>/PycharmProjects/python-ssim/signal_processing/sp/ssim.py", line 34, in ssim
mu1 = signal.fftconvolve(window, img1, mode='valid')
File "/usr/lib/python2.7/dist-packages/scipy/signal/signaltools.py", line 345, in fftconvolve
raise ValueError("in1 and in2 should have the same dimensionality")
ValueError: in1 and in2 should have the same dimensionality
Inside the ssim() method, you are passing the image and a window to the fftconvolve function:
mu1 = signal.fftconvolve(window, img1 mode='valid')
It looks like that img1 and window is swapped, because the 1st param is to be expected to be of the same dimension, or of larger size, accoring to the fftconvolve-docs:
in1 : array_like
First input.
in2 : array_like
Second input. Should have the same number of dimensions as in1; if sizes of in1 and in2 are not
equal then in1 has to be the larger array.
But when I try to exchange the window and img params, the ssim() method returns a huge matric (just a bit smaller than the image, due to the VALID padding). I think it should return a scalar representing the metric index, right?
nice library
testing resample with short inputs and checking sample alignment, the output is shifted by one sample.
one fix is: offset = numpy.floor((l+nz_pre)/q) - 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.