Fix tansmission parameters to reflect parameters.
This commit is contained in:
@@ -38,7 +38,7 @@ AscanBlockPreprocessed Recon::getAscanBlockPreprocessed(Parser* aParser, const A
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
usedData = filterReflectionData(geometryBlock.receiverPositionBlock, geometryBlock.senderPositionBlock, geometryBlock.senderNormalBlock, transParams::constrictReflectionAngles);
|
usedData = filterReflectionData(geometryBlock.receiverPositionBlock, geometryBlock.senderPositionBlock, geometryBlock.senderNormalBlock, reflectParams::constrictReflectionAngles);
|
||||||
}
|
}
|
||||||
|
|
||||||
ascanBlock.ascanBlock = removeDataFromArrays(ascanBlock.ascanBlock, usedData);
|
ascanBlock.ascanBlock = removeDataFromArrays(ascanBlock.ascanBlock, usedData);
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ Matrix filterReflectionData(const Matrix &aVReceiverPositionBlock,
|
|||||||
auto positionDifs = aVReceiverPositionBlock - aVSenderPositionBlock;
|
auto positionDifs = aVReceiverPositionBlock - aVSenderPositionBlock;
|
||||||
auto inbetweenAngle = acos(dot(aVSenderNormalBlock, positionDifs) /
|
auto inbetweenAngle = acos(dot(aVSenderNormalBlock, positionDifs) /
|
||||||
vecnorm(positionDifs, Norm2, 1));
|
vecnorm(positionDifs, Norm2, 1));
|
||||||
auto flags = Aurora::auroraNot((inbetweenAngle < (PI * transParams::angleLowerLimit / 180)) +
|
auto flags = Aurora::auroraNot((inbetweenAngle < (PI * reflectParams::angleLowerLimit / 180)) +
|
||||||
(inbetweenAngle > (PI * transParams::angleUpperLimit / 180)));
|
(inbetweenAngle > (PI * reflectParams::angleUpperLimit / 180)));
|
||||||
reflectData = reflectData * flags;
|
reflectData = reflectData * flags;
|
||||||
}
|
}
|
||||||
return reflectData;
|
return reflectData;
|
||||||
|
|||||||
Reference in New Issue
Block a user