RadarDopplerFFT#
Functions#
- NVCVStatus pvaDopplerFFTCreate(NVCVOperatorHandle *handle, NVCVTensorRequirements const *const inTensorRequirements, NVCVTensorRequirements const *const winTensorRequirements, NVCVTensorRequirements const *const outTensorRequirements, PVADopplerFFTParams const *const params)
Constructs an instance of the DopplerFFT operator.
- NVCVStatus pvaDopplerFFTSubmit(NVCVOperatorHandle handle, cudaStream_t stream, NVCVTensorHandle const in, NVCVTensorHandle const win, NVCVTensorHandle out)
Submits the DopplerFFT operator to a CUDA stream.
- NVCVStatus pvaDopplerFFTSubmit(NVCVOperatorHandle handle, cupvaStream_t stream, NVCVTensorHandle const in, NVCVTensorHandle const win, NVCVTensorHandle out)
Submits the DopplerFFT operator to a cuPVA stream.
Functions#
- NVCVStatus pvaDopplerFFTCreate(
- NVCVOperatorHandle *handle,
- NVCVTensorRequirements const *const inTensorRequirements,
- NVCVTensorRequirements const *const winTensorRequirements,
- NVCVTensorRequirements const *const outTensorRequirements,
- PVADopplerFFTParams const *const params,
Constructs an instance of the DopplerFFT operator.
Limitations:
The number of chirps must be factorizable using only factors of 2, 3, 4, and 5, in no more than six FFT stages. If outputLayout is PVA_FFT_LAYOUT_DOPPLER_RX_RANGE: the number of chirps must be in the range [2, 1024]. Otherwise: the number of chirps must be in the range [2, 1024). The number of Doppler bins can’t be greater than the number of chirps. The number of output range bins and RX channels must equal those of the input. The number of RX channels must not exceed 256, and the number of range bins must not exceed 2048 * G, where G (1 to 8) is the number of range-bin groups the operator packs into one tile. The DMA line pitch limits (number of RX channels * number of range bins) to 8191 for a PVA_FFT_LAYOUT_DOPPLER_RX_RANGE input or output, the number of range bins to 8191 for a PVA_FFT_LAYOUT_RX_DOPPLER_RANGE input, and (number of RX channels * number of Doppler bins) to 8191 for a PVA_FFT_LAYOUT_RANGE_RX_DOPPLER output. The DMA advance limits (number of chirps * number of range bins) to 1048575 for a PVA_FFT_LAYOUT_RX_DOPPLER_RANGE input, and (number of range bins * number of Doppler bins) to 1048575 for a PVA_FFT_LAYOUT_RX_RANGE_DOPPLER output. If outputLayout is PVA_FFT_LAYOUT_RANGE_DOPPLER_RX: exactly 8 RX channels and the number of chirps in the range [32, 900]. If inputLayout is PVA_FFT_LAYOUT_RANGE_RX_DOPPLER:
the number of chirps must be less than 1024 and the number of range bins a multiple of 8;
(number of RX channels * number of chirps) must not exceed 32767;
outputLayout must not be PVA_FFT_LAYOUT_RANGE_DOPPLER_RX. The input, window and output tensors must be densely packed, with no padding between dimensions. inputLayout must be PVA_FFT_LAYOUT_DOPPLER_RX_RANGE, PVA_FFT_LAYOUT_RANGE_RX_DOPPLER or PVA_FFT_LAYOUT_RX_DOPPLER_RANGE. outputLayout must be PVA_FFT_LAYOUT_DOPPLER_RX_RANGE, PVA_FFT_LAYOUT_RANGE_RX_DOPPLER, PVA_FFT_LAYOUT_RANGE_DOPPLER_RX or PVA_FFT_LAYOUT_RX_RANGE_DOPPLER.
Input: Data Layout: [HCW, NHCW]
If inputLayout is PVA_FFT_LAYOUT_DOPPLER_RX_RANGE (the default): W: Number of range bins. C: Number of RX channels. H: Number of chirps.
If inputLayout is PVA_FFT_LAYOUT_RANGE_RX_DOPPLER: W: Number of chirps. C: Number of RX channels. H: Number of range bins.
If inputLayout is PVA_FFT_LAYOUT_RX_DOPPLER_RANGE: W: Number of range bins. C: Number of chirps. H: Number of RX channels.
Batches: [1]
Rank: 3 for [HCW] or 4 for [NHCW].
Data Type
Allowed
8bit Unsigned
No
8bit Signed
No
16bit Unsigned
No
16bit Signed
No
32bit Unsigned
No
32bit Signed
No
32bit Float
No
64bit Float
No
2x16bit Unsigned
No
2x16bit Signed
No
2x32bit Unsigned
No
2x32bit Signed
Yes
Input: Data Layout: [W, NW] W: Number of coefficients. Must be the same as the number of chirps in the input tensor.
Batches: [1]
Rank: 1 for [W] or 2 for [NW].
Data Type
Allowed
8bit Unsigned
No
8bit Signed
No
16bit Unsigned
No
16bit Signed
No
32bit Unsigned
No
32bit Signed
Yes
32bit Float
No
64bit Float
No
2x16bit Unsigned
No
2x16bit Signed
No
2x32bit Unsigned
No
2x32bit Signed
No
Output: Data Layout: [HCW], [NHCW] only when N = 1 If outputLayout is PVA_FFT_LAYOUT_DOPPLER_RX_RANGE: H: Number of Doppler bins. C: Number of RX channels. W: Number of range bins. If outputLayout is PVA_FFT_LAYOUT_RANGE_RX_DOPPLER: H: Number of range bins. C: Number of RX channels. W: Number of Doppler bins. If outputLayout is PVA_FFT_LAYOUT_RANGE_DOPPLER_RX: H: Number of range bins. C: Number of Doppler bins. W: Number of RX channels. If outputLayout is PVA_FFT_LAYOUT_RX_RANGE_DOPPLER: H: Number of RX channels. C: Number of range bins. W: Number of Doppler bins.
Batches: [1]
Rank: 3 for [HCW] or 4 for [NHCW] only when N = 1.
Data Type
Allowed
8bit Unsigned
No
8bit Signed
No
16bit Unsigned
No
16bit Signed
No
32bit Unsigned
No
32bit Signed
No
32bit Float
No
64bit Float
No
2x16bit Unsigned
No
2x16bit Signed
No
2x32bit Unsigned
No
2x32bit Signed
Yes
Input/Output Dependency:
Property
Input == Output
Data Layout
N/A
Data Type
Yes
Number
Yes
Channels
Yes
Width
N/A
Height
N/A
- Parameters:
handle – [out] Where the operator instance handle will be written to.
Must not be NULL.
inTensorRequirements – [in] Pointer to the NVCVTensorRequirements structure which contains input Tensor layout rank, shape and data type information.
winTensorRequirements – [in] Pointer to the NVCVTensorRequirements structure which contains window Tensor layout rank, shape and data type information.
outTensorRequirements – [in] Pointer to the NVCVTensorRequirements structure which contains output Tensor layout rank, shape and data type information.
params – [in] Pointer to the DopplerFFT parameters. PVADopplerFFTParams. Pass NULL to use the operator’s default parameters (Hanning window, PVA_FFT_LAYOUT_DOPPLER_RX_RANGE input, PVA_FFT_LAYOUT_RANGE_RX_DOPPLER output).
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Handle is null or some parameter is outside valid range.
NVCV_ERROR_OUT_OF_MEMORY – Not enough memory to create the operator.
NVCV_ERROR_INVALID_IMAGE_FORMAT – Image format is invalid.
NVCV_SUCCESS – Operation executed successfully.
- NVCVStatus pvaDopplerFFTSubmit(
- NVCVOperatorHandle handle,
- cudaStream_t stream,
- NVCVTensorHandle const in,
- NVCVTensorHandle const win,
- NVCVTensorHandle out,
Submits the DopplerFFT operator to a CUDA stream.
Note
CUDA stream support requirements:
PVA SDK 2.7.0 or later
Jetpack 7 or later
DriveOS 7 or later
x86 Emulator is not supported
- Parameters:
handle – [in] Handle to the operator.
stream – [in] Handle to a valid CUDA stream.
in – [in] Input tensor handle.
win – [in] Window tensor handle.
out – [out] Output tensor handle.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Handle is null.
NVCV_ERROR_INTERNAL – Internal error in the operator, invalid types passed in.
NVCV_SUCCESS – Operation executed successfully.
- NVCVStatus pvaDopplerFFTSubmit(
- NVCVOperatorHandle handle,
- cupvaStream_t stream,
- NVCVTensorHandle const in,
- NVCVTensorHandle const win,
- NVCVTensorHandle out,
Submits the DopplerFFT operator to a cuPVA stream.
- Parameters:
handle – [in] Handle to the operator.
Must not be NULL.
stream – [in] Handle to a valid cuPVA stream.
in – [in] Input tensor handle.
win – [in] Window tensor handle.
out – [out] Output tensor handle.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Handle is null.
NVCV_ERROR_INTERNAL – Internal error in the operator, invalid types passed in.
NVCV_SUCCESS – Operation executed successfully.