Change SAR backprojection range-bin center convention - #1226
Open
tbensonatl wants to merge 1 commit into
Open
Conversation
Update sar_bp to follow the fftshift convention, placing zero differential range at floor(N/2) instead of the geometric midpoint (N-1)/2. For cases with an odd number of range bins, the two conventions already matched. For cases with an even number of range bins, the midpoint now matches the bin that held zero frequency from the perspective of the ifft. Add even and odd-length unit test coverage for the complex zero differential range response. Signed-off-by: Thomas Benson <tbenson@nvidia.com>
Contributor
Greptile SummaryThe PR changes SAR backprojection to place zero differential range at floor(N/2), matching the FFT-shift convention, and updates the SARBP converter to serialize the physical frequency shifted into transform DC.
Confidence Score: 5/5The PR appears safe to merge, with the kernel, converter, documentation, and tests consistently implementing the FFT-shift range-bin convention. The direct and phase-LUT paths use the same integer center, interpolation remains bounds-checked, and the converter’s transform direction and frequency-sign handling cancel correctly for both SGN conventions. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
FX["Raw FX samples"] --> SHIFT["Shift raw bin floor(N/2) to transform DC"]
SHIFT --> FFT{"CPHD SGN"}
FFT -->|"-1"| IFFT["IFFT"]
FFT -->|"+1"| FWD["FFT"]
IFFT --> PROFILE["FFT-shifted range profile<br/>zero differential range at floor(N/2)"]
FWD --> PROFILE
REF["SC0 + floor(N/2) × SCSS"] --> HEADER["SARBP phase-reference frequency"]
HEADER --> BP["SAR backprojection phase correction"]
PROFILE --> BP
Reviews (1): Last reviewed commit: "Change SAR backprojection range-bin cent..." | Re-trigger Greptile |
Collaborator
Author
|
/build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update sar_bp to follow the fftshift convention, placing zero differential range at floor(N/2) instead of the geometric midpoint (N-1)/2. For cases with an odd number of range bins, the two conventions already matched. For cases with an even number of range bins, the midpoint now matches the bin that held zero frequency from the perspective of the ifft.
Add even and odd-length unit test coverage for the complex zero differential range response.