Add transmissionReconstruction.
This commit is contained in:
22
src/common/preprocessAscanBlock.cpp
Normal file
22
src/common/preprocessAscanBlock.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "preprocessAscanBlock.h"
|
||||
#include "Function1D.h"
|
||||
#include <cstddef>
|
||||
|
||||
Aurora::Matrix Recon::preprocessAscanBlock(const Aurora::Matrix& aAscans, const MeasurementInfo& aMeasInfo)
|
||||
{
|
||||
Aurora::Matrix result = aAscans;
|
||||
size_t size = aAscans.getDataSize();
|
||||
short* ascanData = new short[size];
|
||||
std::copy(aAscans.getData(), aAscans.getData() + size, ascanData);
|
||||
if(aMeasInfo.ascanDataType == "float16")
|
||||
{
|
||||
result = Aurora::convertfp16tofloat(ascanData, aAscans.getDimSize(0), aAscans.getDimSize(1));
|
||||
}
|
||||
|
||||
//暂不考虑实现二代逻辑
|
||||
// if isfield(measInfo, 'Bandpassundersampling') && (measInfo.Bandpassundersampling == 1)
|
||||
// AScans = reconstructBandpasssubsampling(AScans, params.aScanReconstructionFrequency, measInfo.SampleRate);
|
||||
// end
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user