aboutsummaryrefslogtreecommitdiffstats
path: root/man/blind-matrix-shear.1
blob: 56d856d780df0ba53afa58f296fe81e0ce3aaecf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.TH BLIND-MATRIX-SHEAR 1 blind
.SH NAME
blind-matrix-shear - Create an affine 2D-transformation matrix for shearing
.SH SYNOPSIS
.B blind-matrix-shear
[-ac]
.SH DESCRIPTION
.B blind-matrix-shear
creates an affine 2D-transformation matrix for
shearing. The parameters for the matrix is read
in stdin in format of a blind video, one matrix
per frame in stdin created and printed to stdout
in format of a blind video.
.P
Each frame in stdin shall contain exactly 2 pixel.
The first pixel holds the amount the image shall
be sheared horizontally, that is, how much all
pixels 1 pixel above the X-axis shall be moved
rightward. The second pixel holds the amount the
image shall be sheared vertically, that is, how
much all pixels 1 pixel right of the Y-axis shall
be moved downward.
.P
The luma (encoding in the Y-channel, the second
channel) multiplied by the alpha (the fourth channel)
of the input pixels are used as the values. Each
values in the resulting matrices are stored
in all channels.
.SH OPTIONS
.TP
.B -a
The pixels holds the angles of the shearing rather
than the amount of the shearing.
.TP
.B -c
Create different matrices for each channel. Use
values from each channel in stdin to create
matrices whose values are stored in the same
channels in stdout.
.SH NOTES
The description assumes the Y-axis grows downwards.
.P
Horizontal shearing and vertical shearing is not
mutually commutative, this tool performs the
shearing at the same time rather than after each
other. When shearing both horizontally and
vertically, the transformation matrix is not
necessarily invertable.
.SH SEE ALSO
.BR blind (7),
.BR blind-from-text (1),
.BR blind-matrix-orthoproject (1),
.BR blind-matrix-reflect (1),
.BR blind-matrix-rotate (1),
.BR blind-matrix-scale (1),
.BR blind-matrix-translate (1),
.BR blind-matrix-transpose (1),
.BR blind-multiply-matrices (1)
.SH AUTHORS
Mattias Andrée
.RI < maandree@kth.se >