[Numpy-discussion] 2D Hamming window
[Numpy-discussion] 2D Hamming window. Gary Ruben gruben at bigpond.net.au Sun Jul 27 06:32:07 EDT 2008. Previous message (by thread): [Numpy-discussion] 2D Hamming window.
[Numpy-discussion] 2D Hamming window. Gary Ruben gruben at bigpond.net.au Sun Jul 27 06:32:07 EDT 2008. Previous message (by thread): [Numpy-discussion] 2D Hamming window.
I wrapped a c++ code which need accept numpy.ndarray as argument. > Here numpy.version='1.0rc1'. > And to the best of my knowledge, numpy.ndarray's c type is PyArrayObject. > > But why when I run it, it reports type did not match? > >
If the above is intended to be Python code, it has problems. Rewrite it thusly?Then let a numpy expert finish the task. -- Bob Gailer 919-636-4239 Chapel Hill, NC.
My earlier suggestion regarding writing separate functions to return numpy arrays comes from reviewing Megan's example and from your interest in working with multiple image formats. Each function could take as input the name of the image and return a list of numpy arrays...