瞳の位相と回転因子をSinとCosで求める

・光学系や収差を変えたフレームの点像分布関数の計算を高速化-M
このコミットが含まれているのは:
routersys committed 2026-10-06 09:32:43 +09:00
1 親 c540c53d5c
コミット cdabada2e4
2ファイル変更
+5 -5

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -67,8 +67,8 @@ internal sealed class KernelSpectrum
for (var index = 0; index < size / 2; index++)
{
var (sin, cos) = Math.SinCos(-2d * Math.PI * index / size);
twiddles[index] = new Float2(Flush((float)cos), Flush((float)sin));
var angle = -2d * Math.PI * index / size;
twiddles[index] = new Float2(Flush((float)Math.Cos(angle)), Flush((float)Math.Sin(angle)));
}
var mask = size - 1;
+3 -3
ファイルの表示
@@ -93,9 +93,9 @@ public sealed class FraunhoferPsfGenerator : IPsfGenerator
if (IsInsideAperture(normalizedX, normalizedY, in specification, rotation))
{
var waves = ZernikeWavefront.Evaluate(normalizedX, normalizedY, specification.Aberration);
var (sin, cos) = Math.SinCos(TwoPi * waves);
real[index] = cos;
imaginary[index] = sin;
var angle = TwoPi * waves;
real[index] = Math.Cos(angle);
imaginary[index] = Math.Sin(angle);
openSampleCount++;
}
else