JuliaMath / JuliaMath/AbstractFFTs.jl

center indices of `fftshift`

Open
#33 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
134
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I thought it might make sense to have a function, e.g., `centerIndex`, returning a tuple of indices that points to the center of a grid after an `fftshift`.
In other words, instead of spreading `div.(size(x),2)` here and there, extracting it into a separate function.
So, by calling it, one can avoid warily checking their shifts/offsets are consistent with what's been used in the `fftshift`.

I can make a PR if this is of interest.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.