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
SyntaxFunction 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
RemarksThe 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.
ExamplesWith ThisApplication.ActiveImage.Alignment
.AlignMethod = mcAlignMethodFFT
.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