Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: General itkFrequencyShrink / Expand #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phcerdan
Copy link
Collaborator

WIP: General itkFrequencyShrink not requiring hermitian input.

Shrink is almost there, but the fix of nyquist band is still WIP.
Fixing involves averaging of largest frequencies --largest taking into
account the shrink factor-- in the input image, and placing in the
nyquist band of the shrinked image.

There are only nyquist bands in the dimension when the outputSize is even.
A nyquist band exist in 2D, in 3D is a nyquist slice, in 1D is a point.

When there are more even dimensions, lower dimensions structures appear.
In 3D, two even dimensions create 2 nyquist slices, and 1 nyquist band
in the intersection. This band requires extra averaging.

The same thing in 2D with 2 even dimensions, there is one point in the
intersection that requires extra averaging.

NOTE: Doing it general for NDimensions is verbose, dealing with positive
and negative quadrants.

WIP: Shrink is almost there, but the fix of nyquist band is still WIP.
Fixing involves averaging of largest frequencies --largest taking into
account the shrink factor-- in the input image, and placing in the
nyquist band of the shrinked image.

There are only nyquist bands in the dimension when the outputSize is even.
A nyquist band exist in 2D, in 3D is a nyquist slice,  in 1D is a point.

When there are more even dimension, lower dimensions structures appear.
In 3D, two even dimensions create 2 nyquist slices, and 1 nyquist band
in the intersection. This band requires extra averaging.

The same thing in 2D with 2 even dimensions, there is one point in the
intersection that requires extra averaging.

NOTE: Doing it general for NDimensions is verbose, dealing with positive
and negative quadrants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant