Click or drag to resize

IMcAlignmentGetTransformRanks Method

Returns correlation ranks between aligned images.

Namespace:  MediaCy.IQL.Align
Assembly:  MediaCy.IQL.Align (in MediaCy.IQL.Align.dll) Version: 10.0.6912.0
Syntax
VB
Function GetTransformRanks ( 
	Optional bTranslationElseRotation As Boolean = true
) As Object

Parameters

bTranslationElseRotation (Optional)
Type: SystemBoolean
defines the type of rank values to retrieve. When AlignMethodFFT.DoRotation or AlignMethodFFT.DoScaling are set the cross-correlation is performed in two steps, where the first step is done on image converted to polar coordinates (angle and scale) and the second step on the image in orthogonal coordinates (translation). The amplitudes of spike on polar image are returned when bTranslationElseRotation is FALSE. When the parameter is TRUE, the spike values from orthogonal image are returned.

Return Value

Type: Object
Remarks
The function should be called after CalculateAlignment with mcAlignMethodFFT. The returned arrays contain values that corresponded to the matching degree between consecutive frames. The correlation rank fro the first image is always 1. Other values are corresponded to the amplitudes of correlation spikes after cross-correlation transform.
Examples
VB
With ThisApplication.ActiveImage.Alignment
'use FFT correlation
.AlignMethod = mcAlignMethodFFT
'use all frames of the active image
.SetSourceForAlignment
.CalculateAlignment
Dim vRank
vRank = .GetTransformRanks(True)
Debug.Print "Translation ranks = " & GlobalTools.McToText(vRank).Value
vRank = .GetTransformRanks(False)
Debug.Print "Rotation ranks = " & GlobalTools.McToText(vRank).Value
.CreateAlignedImage
End With
See Also