Skip to content

2D Filter Jinc appears to be wrong #5

@torridgristle

Description

@torridgristle

Here is a plot of the generated 1D sinc filter kernel.
sinc looks right

Here is a plot of the generated 2D jinc filter kernel.
jinc looks wrong

I'd expect it to look more like a series of rings or ripples, rather than a donut or torus.

jinc filtered noise fft

The FFT output for randn noise put through the 2D filter doesn't look right either.

change jinc to sinc in 2d filter

Changing filter_ = 2 * cutoff * window * jinc(2 * cutoff * time) to filter_ = 2 * cutoff * window * sinc(2 * cutoff * time) in kaiser_jinc_filter2d makes a more familiar kernel.

change jinc to sinc in 2d filter fft out

And the FFT output for randn noise put through this 2D filter looks about how I'd expect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions