[SciPy-User] Gaussian Filter
Matthieu Brucher
matthieu.brucher at gmail.com
Fri Sep 4 09:24:45 EDT 2009
Hi,
I think gaussian_flter will also filter your data in the third
dimension with one call :| Perhaps with (sigma, sigma, 0) ?
Matthieu
2009/9/4 Brian Thorne <hardbyte at gmail.com>:
> Hi all,
> I'm trying to reduce the amount of calls to ndimage.filters.gaussian_filter
> but still get the same answer.
> From this:
> r = ndimage.filters.gaussian_filter(np_image[:,:,0], sigma=(sigma,
> sigma))
> g = ndimage.filters.gaussian_filter(np_image[:,:,1], sigma=(sigma,
> sigma))
> b = ndimage.filters.gaussian_filter(np_image[:,:,2], sigma=(sigma,
> sigma))
> return array([r,g,b]).transpose((1,2,0))
>
> to something like this:
> result = ndimage.filters.gaussian_filter(np_image,
> sigma=(sigma, sigma, 1),
> order=0,
> mode='reflect'
> )
> return result
> Any ideas why that is producing different output? Or what I should be doing
> instead?
> cheers,
> Brian Thorne
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
--
Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher
More information about the SciPy-User
mailing list