[Numpy-discussion] Bilateral filter

Nadav Horesh nadavh@visionsense....
Sat Feb 28 13:19:41 CST 2009


A correction: The light distribution with two LEDs would be problematic.

  Nadav


-----הודעה מקורית-----
מאת: numpy-discussion-bounces@scipy.org בשם Nadav Horesh
נשלח: ש 28-פברואר-09 20:53
אל: Discussion of Numerical Python
נושא: RE: [Numpy-discussion] Bilateral filter
 
I could not reproduce your error. I am using latest official releases of numpy and cython on a linux box (do you use Mac?).  I am attaching the package I have on my PC, for the small chance it would help.

  Nadav.


-----הודעה מקורית-----
מאת: numpy-discussion-bounces@scipy.org בשם Zachary Pincus
נשלח: ו 27-פברואר-09 22:26
אל: Discussion of Numerical Python
נושא: Re: [Numpy-discussion] Bilateral filter
 
Hi all,

I just grabbed the latest bilateral filter from St?fan's repository,  
but I can't get it to work! I'm using a recent numpy SVN and the  
latest release of cython...

In [10]: bl = bilateral.bilateral(image, 2, 150)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call  
last)

/Users/zpincus/Documents/Research/Slack Lab/Experimental Data/Big Data/ 
2009-2-17/<ipython console> in <module>()

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
packages/bilateral/bilateral.pyc in bilateral(mat, xy_sig, z_sig,  
filter_size, mode)
      36     '''
      37
---> 38     filter_fcn = _BB.Bilat_fcn(xy_sig, z_sig, filter_size)
      39     size = filter_fcn.xy_size
      40     return generic_filter(mat, filter_fcn.cfilter, size=size,  
mode=mode)

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
packages/bilateral/bilateral_base.so in  
bilateral.bilateral_base.Bilat_fcn.__init__ (bilateral/ 
bilateral_base.c:590)()

NameError: np

I know very little about the internals of cython, so I can't figure  
this error out... it seems to be a problem with the 'cimport numpy as  
np' line in the pyx file, but beyond that I'm lost.


Let me know if I can provide any additional information,

Zach




On Feb 14, 2009, at 1:29 PM, St?fan van der Walt wrote:

> Hi Nadav
>
> 2009/2/13 Nadav Horesh <nadavh@visionsense.com>:
>> I tried the installer and it did not copy bilateral.py. I tried to  
>> improve it and the result is in the attached file.  I hope it would  
>> pass the mail filter, if not contact me directly to the email  
>> address below.
>
> Thanks!  I applied your changes and modified the setup.py to support
> in-place building.  Again available here:
>
> http://github.com/stefanv/bilateral/tree/master
>
> Cheers
> St?fan
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion

_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion





More information about the Numpy-discussion mailing list