Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Dft your mask, embed it into a zero mask-image with the size of your input image, multiply both images pixelwise and idft the result. See here.

Dft your mask, embed it into a zero mask-image with the size of your input image, multiply both images pixelwise and idft the result. result. (Watch out for the FFT-shift: after dft, your zero frequency is at top-left corner). See here.

Dft Embed your mask, embed it mask into a zero padded mask-image with the size of your input image, dft it, multiply both images pixelwise and idft the result. (Watch out for the FFT-shift: after dft, your zero frequency is at top-left corner). See here.

EDIT: first embed, than dft not vice versa.

Embed your mask into a zero padded mask-image with the size of your input image, dft it, multiply both images pixelwise and idft the result. (Watch out for the FFT-shift: after dft, your zero frequency is at top-left corner). See here.

EDIT: first embed, than dft not vice versa.versa. Shift should be regardless.

Embed your mask into a zero padded mask-image with the size of your input image, dft it, multiply both images pixelwise and idft the result. (Watch out for the FFT-shift: after dft, your zero frequency is at top-left corner). result. See here.

EDIT: first embed, than dft not vice versa. Shift should be regardless.