How to design a lowpass filter using Hamming window and sinc function
If you can’t make the lengths of your Sinc kernel and window function the same, you can zero-pad the shorter of the two before you multiply them together.