math - Python ndarray division -


i have piece of code

from scipy import misc numpy import fft  orig = misc.imread('lena256.png') blur = misc.imread('lena256blur.png') orig_f = fft.rfft2(orig) blur_f = fft.rfft2(blur)  kernel_f = blur_f / orig_f         # deconvolution     

from question here on stackoverflow (link). know nothing python. line kernel_f = blur_f / orig_f supposed ? dividing element element or matrix division, can "rewritten" using matrix inverse ? tried google that, found nothing usefull. if post me code in c same (i using alglib mathematic, there no division of matrices, afaik).

this elementwise division. see numpy matlab users in category of ndarray operators. ndarray: all operations (*, /, +, ** etc.) elementwise


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -