SA_visualizeAlignment
Usage:
Image = SA_visualizeAlignment(Boundary1, Boundary2, Distance, Alignment)
Boundary1: [M x k] Matrix; The first boundary.
Boundary2: [N x k] Matrix; The second boundary.
Distance: uint; The distance between the points where the information
was taken (defined in SA_extract).
Alignment: [T x 1] Matrix; The encoded alignment.
Image:
SA_Image; The image with the alignment drawn in
it.
Description
SA_visualizeAlignment takes two boundaries and their information strings as arguments together with
distance and the encoded alignment of these two and draws it to image. The first boundary is drawn
in red and the second in blue. The points that are aligned are connected with a green line.
Alignment encodes the resulting alignment of String1 and String2 using the following tokens:
1 = Match
2 = Gap in String1
3 = Gap in String2
-1 = ignore element in String1
-2 = ignore element in String2
-(K+10) = jump to position K of the String1 (Repeated Match)
|