Some PNG images have transparent backgrounds. We can get maps of transparent degree from PNG images through imread.
It's easy to exclude the transparent parts in Fourier analysis if they are rectangles. However, how to exclude the transparent parts which are not rectangles in Fourier analysis (using fft2)?

In this case, how to use the maps of transparent degree in conducting Fourier analysis?