Click or drag to resize

SingleWavelengthReconstructionUseCurrentHoloAsRef Method

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

Namespace: LynceeTec.Processing.Holography
Assembly: LynceeTec.InterfaceProcessing (in LynceeTec.InterfaceProcessing.dll) Version: 0.0.0.0
Syntax
public virtual void UseCurrentHoloAsRef(
	bool autoFilt,
	int autoFiltRadius,
	bool amplDiv,
	int nAvg
)

Parameters

autoFilt  Boolean
If set to true, will use Fourier filtering on the reference hologram in a circle centered on the central frequency of radius autoFiltRadius. If set to false, 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.

Implements

IReconstructionUseCurrentHoloAsRef(Boolean, Int32, Boolean, Int32)
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