Programming Reference for VirtualLab Fusion
2025.1
|
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
This class contains static member functions for interpolating a complex amplitude to another sampling grid.
More...
Static Public Member Functions | |
static SamplingParameters | CalculateSamplingParametersForCoordinateTransformation (Matrix2x2D trafoMatrix, SamplingParameters oldSamplingParameters) |
Method for calculating sampling parameters for a field which will undergo a 2D coordinate transformation. | |
static ComplexAmplitude | DiscreteOversampling (ComplexAmplitude ca, Vector factor) |
Inserts zero points between sampling points. | |
static ComplexAmplitude | Interpolation (ComplexAmplitude ca, SamplingParameters samplingParameters, VectorD zeroPoint, InterpolationMethod interpolationMethod, CancellationToken? cancellationToken=null) |
Interpolates a ComplexAmplitude using the specified interpolation method. It is possible to interpolate a not centered part of the ComplexAmplitude using the zeroPoint parameter. | |
static ComplexAmplitude | ProfileExtractionCoordsPhysical (ComplexAmplitude ca, VectorD startPointPhys, VectorD endPointPhys, int samplingPoints, InterpolationMethod interpolationMethod, bool removeSphericalPhase) |
Extracts a one-dimensional profile from a two-dimensional ComplexAmplitude. There are different interpolation methods supported. | |
static ComplexAmplitude | Rotation2D (ComplexAmplitude ca, Vector newSamplingPoints, double phi, InterpolationMethod interpolationMethod) |
Rotates a ComplexAmplitude in the x-y-plane by angle \(\phi\). The rotation is calculated using the specified interpolation method. | |
static void | SampleAllAnalyticFunctionsAtField (ref ComplexAmplitude ca, InterpolationMethod interpolationMethod, CancellationToken cancellationToken) |
Method that samples the lateral offset (via embedding, i.e. zero padding) which is stored at a field as well as its quadratic and linear phase function. | |
static void | SampleLateralOffsetFromAnalyticValuesAtField (ref ComplexAmplitude ca, bool sampleOtherAnalyticFunctionsToo, CancellationToken cancellationToken, InterpolationMethod interpMethod=InterpolationMethod.SincFFT) |
Method that samples (via embedding, i.e. zero padding) the lateral offset stored at a given field. | |
static void | SampleLinearPhaseFromAnalyticFunctionAtField (ref ComplexAmplitude ca, InterpolationMethod interpolationMethod, CancellationToken cancellationToken) |
Samples the linear phase function stored at a field and multiplies function and field values. | |
static void | SampleLinearPhaseFromDirectionVector (ref ComplexAmplitude ca, InterpolationMethod interpolationMethod) |
Samples the linear phase function stored at a field and multiplies function and field values. | |
static void | SampleQuadraticPhaseFromAnalyticFunctionAtField (ref ComplexAmplitude ca, InterpolationMethod interpolationMethod, bool enableAnalyticalLinearPhaseResultingFromOffset, CancellationToken cancellationToken, LightPathProcessingLogger logger=null, long maximumNumberPixels=-1) |
Samples a quadratic phase from a given quadratic function and multiplies it with the given ComplexAmplitude. | |
static ComplexAmplitude | SampleSphericalPhaseFactor (ComplexAmplitude ca) |
ComplexAmplitude can contain a separate spherical phase factor. Thus the phase of the sampled complex amplitude can be undersampled. This function resamples the complex amplitude in a way that complies to Nyquist criterion and separate spherical phase is no longer needed. | |
static HarmonicFieldBase | SampleSphericalPhaseFactor (HarmonicFieldBase field) |
A Harmonic Field can contain a separate spherical phase factor. Thus the phase of the sampled complex amplitude can be undersampled. This function resamples the harmonic field in a way that complies to Nyquist criterion and separate spherical phase factor is no longer needed. | |
static HarmonicFieldsSet | SampleSphericalPhaseFactor (HarmonicFieldsSet hfs) |
The member fields of a HarmonicFieldsSet can contain a separate spherical phase factor. Thus the phase of the sampled complex amplitude can be undersampled. This function resamples the complex amplitude in a way that complies to Nyquist criterion and separate spherical phase is no longer needed. | |
static ComplexAmplitude | TryToDecreaseSamplingEffort (ComplexAmplitude caIn, bool truncateFieldSize, double minimumOversamplingFactor, double truncationInflationFactor, double powerPortionForEvaluation, CancellationToken cancellationToken) |
Method which tries to decrease the sampling effort for a ComplexAmplitude. | |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
This class contains static member functions for interpolating a complex amplitude to another sampling grid.
|
static |
Method for calculating sampling parameters for a field which will undergo a 2D coordinate transformation.
trafoMatrix | The matrix which describes the transform. |
oldSamplingParameters | Old sampling parameters of the field to be transformed. |
|
static |
Inserts zero points between sampling points.
ca | ComplexAmplitude operation is applied to. |
factor | E.g.: Factor two means, that every second sampling point is zero. |
|
static |
Interpolates a ComplexAmplitude using the specified interpolation method. It is possible to interpolate a not centered part of the ComplexAmplitude using the zeroPoint parameter.
ca | ComplexAmplitude to interpolate. |
samplingParameters | Contains the new number of sampling points and the sampling distance of the ComplexAmplitude after interpolation. |
zeroPoint | The zero point parameter specifies the position of the center of the ComplexAmplitude after interpolation. |
interpolationMethod | Interpolation Method. |
cancellationToken | Optional token for cooperative task cancellation. |
|
static |
Extracts a one-dimensional profile from a two-dimensional ComplexAmplitude. There are different interpolation methods supported.
ca | ComplexAmplitude to extract a profile from. |
startPointPhys | Start point of the one-dimensional profile in physical coordinates. |
endPointPhys | End point of the one-dimensional profile in physical coordinates. |
samplingPoints | Number of sampling points of the profile including the start and the end point. So the minimum number is 2. |
interpolationMethod | Interpolation method for extraction. |
removeSphericalPhase | Additional spherical phase is removed from profile line. |
|
static |
Rotates a ComplexAmplitude in the x-y-plane by angle \(\phi\). The rotation is calculated using the specified interpolation method.
ca | ComplexAmplitude to rotate. |
newSamplingPoints | The number of sampling points the rotated field shall have. |
phi | Rotation angle in radians. |
interpolationMethod | Specifies with which algorithm the point interpolation is done. |
|
static |
Method that samples the lateral offset (via embedding, i.e. zero padding) which is stored at a field as well as its quadratic and linear phase function.
ca | Harmonic field whose analytic function parameters shall be sampled. |
interpolationMethod | Interpolation method to be used for sampling the quadratic and the linear phase function. |
cancellationToken | The token for cooperative task cancellation. |
|
static |
Method that samples (via embedding, i.e. zero padding) the lateral offset stored at a given field.
ca | Field whose offset shall be sampled. |
sampleOtherAnalyticFunctionsToo | If true , the sampling of quadratic and linear phase functions will be ensured. |
cancellationToken | The token for cooperative task cancellation. |
interpMethod | In case the parameter sampleOtherAnalyticFunctionsToo is true , the interpolation method for the sampling can be set here. |
|
static |
Samples the linear phase function stored at a field and multiplies function and field values.
ca | ComplexAmplitude to sample the linear phase on. Since this is a ref parameter, it will be modified by the function. |
interpolationMethod | Method of interpolation if necessary |
cancellationToken | The token for cooperative task cancellation. |
|
static |
Samples the linear phase function stored at a field and multiplies function and field values.
ca | ComplexAmplitude to sample the linear phase on. Since this is a ref parameter, it will be modified by the function. |
interpolationMethod | Method of interpolation if necessary |
|
static |
Samples a quadratic phase from a given quadratic function and multiplies it with the given ComplexAmplitude.
ca | ComplexAmplitude to sample the quadratic phase on. Since this is a ref parameter, it will be modified by the function. |
interpolationMethod | Method of interpolation if necessary |
enableAnalyticalLinearPhaseResultingFromOffset | If true, the result may contain an additional analytical linear phase, which results from the quadratic phase if there is a lateral offset. |
cancellationToken | The token for cooperative task cancellation. |
logger | The process logger. |
maximumNumberPixels | maximum number of pixels to use |
|
static |
ComplexAmplitude can contain a separate spherical phase factor. Thus the phase of the sampled complex amplitude can be undersampled. This function resamples the complex amplitude in a way that complies to Nyquist criterion and separate spherical phase is no longer needed.
ca | ComplexAmplitude to sample the spherical phase for. |
|
static |
A Harmonic Field can contain a separate spherical phase factor. Thus the phase of the sampled complex amplitude can be undersampled. This function resamples the harmonic field in a way that complies to Nyquist criterion and separate spherical phase factor is no longer needed.
field | ComplexAmplitude to sample the spherical phase for. |
|
static |
The member fields of a HarmonicFieldsSet can contain a separate spherical phase factor. Thus the phase of the sampled complex amplitude can be undersampled. This function resamples the complex amplitude in a way that complies to Nyquist criterion and separate spherical phase is no longer needed.
hfs | The HarmonicFieldsSet whose member fields shall be resampled according to the spherical phase factor. |
Null
if the sampling warning was shown and the user decided to not create such a large field.
|
static |
Method which tries to decrease the sampling effort for a ComplexAmplitude.
caIn | ComplexAmplitude whose sampling shall be optimized. |
truncateFieldSize | If true , a truncation of the field is tried. |
minimumOversamplingFactor | Minimum oversampling factor, independent of the factor given in Globals. The larger value of both will be used. |
truncationInflationFactor | If the truncation flag is true , this factor will be applied to the minimum detected field size. |
powerPortionForEvaluation | the power portion that shall be used for evaluation in case of truncation. If truncateFieldSize is false , this parameter will be ignored. |
cancellationToken | Token for cooperative task cancellation. |