Click or drag to resize

IReconstructionUseCurrentHoloAsRef Method

Define how to use the reference hologram. Call CopyHoloToRH(Int32) or SetHoloRHListSize(Int32) and Array.Copy before. (See example code below)

Namespace: LynceeTec.Interfaces
Assembly: LynceeTec.Interfaces (in LynceeTec.Interfaces.dll) Version: 10.2.3317.0 , built 2025-03-17 14:03:43 UTC
Syntax
void UseCurrentHoloAsRef(
	bool autoFilt,
	int autoFiltRadius,
	bool amplDiv,
	int nAvg
)

Parameters

autoFilt  Boolean
If set to false, will use Fourier filtering on the reference hologram in a circle centered on the central frequency of radius autoFiltRadius. If set to true, the reference hologram will be filtered with the current Fourier filtering.
autoFiltRadius  Int32
Radius of the circular Fourier filter centered around the central frequency, in [pix]. autoFilt must be set to true.
amplDiv  Boolean
If set to true, enables the normalization for each pixel of the reconstructed intensity images with the intensity of each corresponding pixel of the reference hologram
nAvg  Int32
Number of holograms which are averaged to produce the reference hologram. Must be equal or greater to one.
Example
This example shows how to set a single hologram as reference hologram (no averaging)
C#
//Resize the reference holograms list
reconstruction.SetHoloRHListSize(1);

//Copy the current hologram to the reference hologram memory
reconstruction.CopyHoloToRH(0);

//Configure how the reference hologram will be used
reconstruction.UseCurrentHoloAsRef(useAutoFilterForRefHolo, autoFilterRadiusForRefHolo, useAmplitudeDivisionForRefHolo, numberOfAveragedImagesForRefHolo);
See Also