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
Post a Comment