forked from vlfeat/vlfeat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsift.1
179 lines (178 loc) · 5.05 KB
/
sift.1
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
.TH SIFT 1 "" "VLFeat" "VLFeat"
.\" ------------------------------------------------------------------
.SH NAME
.\" ------------------------------------------------------------------
sift \- Scale Invariant Feature Transform
.\" ------------------------------------------------------------------
.SH SYNOPSIS
.\" ------------------------------------------------------------------
.B sift
.RI [ options ]
FILE .\|.\|.
.\" ------------------------------------------------------------------
.SH OPTIONS
.\" ------------------------------------------------------------------
.TP
.B \-v\fR,\fP \-\^\-verbose
Increase verbosity level (may be repeated).
.TP
.B \-h\fR,\fP \-\^\-help
Show options and version.
.TP
.BI \-\^\-output "\fR[=\fPFILESPEC\fR],\fP " \-o FILESPEC
Enable/specify seeds output.
.TP
.BI \-\^\-frames \fR[=\fPFILESPEC\fR]\fP
Enable/specify frames output.
.TP
.BI \-\^\-descriptors \fR[=\fPFILESPEC\fR]\fP
Enable/specify descriptors output.
.TP
.BI \-\^\-gss \fR[=\fPFILESPEC\fR]\fP
Enable/specify the Gaussian Scale Space (GSS) output.
.TP
.BI \-\^\-meta \fR[=\fPFILESPEC\fR]\fP
Enable/specify meta output.
.TP
.BI \-\^\-first-octave \fR=\fPINTEGER
Specifiy the index of the first octave of the GSS.
.TP
.BI \-\^\-edge-thresh \fR=\fPREAL
Specify the edge threshold.
.TP
.BI \-\^\-peak-thresh \fR=\fPREAL
Specify the peak threshold.
.TP
.BI \-\^\-read-frames \fR[=\fPFILESPEC\fR]\fP
Enable/specify reading the frames from a file.
.B \-\^\-orientations
Force the computation of the frame orientations.
.\" ------------------------------------------------------------------
.SH DESCRIPTION
.\" ------------------------------------------------------------------
.B sift
computes the
.I Scale Invariant Feature Transform (SIFT).
\. In the simplest case,
.B sift
reads an image file (in PGM format), computes the SIFT frames and
their descriptors and write them to a file. Alternatively,
.B --frames
option can be used to suppress the standard output and produce a file
with the feature frames only. Similarly,
.B --descriptors
suppresses the standard output and produce a file of descriptors only.
.B --output
can be used in combination with the previous too if the combined
output of frames and descriptors is required.
.P
The
.B --read-frames
option bypasses the SIFT detector and reads the frames from the
specified file. This option can be used iin combination with
.B --orientations
to read the frames but calculate their orientations anyway. Both option
do not change how the frames and the descriptors are written to disk.
Notice that if
.B --orientations
is used, the number of frames may change if multiple orientations are detected).
.P
A frame is an oriented ellipse (also called affine frame) and is
specified by 6 floating point numbers (in order: coordinate of the
center
.I x
and
.I y,
and elements
.IR A11 ,
.IR A21 ,
.IR A21 ,
.I A22
of the matrix mapping the unit circle to the ellipse). A feature
descriptor is an histogram. It is specifyied by 128 non-negative
integer numbers.
.P
.B sift
can process multiple images and derive the names of the various output
files by means of
.I FILESPEC
(see
.BR vlfeat (7)).
Both frames and descriptors can be saved/loaded either in ascii or binary
format.
.
.TP
Ascii format
.
Each descriptor is a list of 128 decimal numbers and
occupies a line of text. Each frame is a list of 5 numbers,
specifying an elliptical frame, one per line of text. The combined
output file (with both frames and descriptors) stores a frame
.I and
the corresponding descriptor for each line of text.
.
.TP
Binary format
.
The binary format is similar to the ASCII format, except
that each frame element is stored as an IEEE double floating point
number (eight bytes) and each descriptor element is stored as an
unsiged integer (one byte). The data is written in little
endian order.
.
.\" ------------------------------------------------------------------
.SH EXAMPLES
.\" ------------------------------------------------------------------
.TP
sift test.pgm --peak-thresh=0.03
Caluclates the SIFT frames and descriptors of image
.I /tmp/myimage.pgm
with peak threshold equal to 0.03
and save them back to
.I test.sift
in ascii format.
.TP
sift test.pgm --frames
Writes the frames to
.I
test.frame
in ascii format and does not compute the descriptors.
.
.TP
sift test.pgm --descriptors=bin://
writes only the frames to
.IR test.descr.
in binary format.
.
.TP
sift test.pgm \-\^\-frames=my.frames -o bin:///tmp/%.sift
writes the frames in ascii format to
.I my.frames
and the combined frames-descriptors file in binary format to
.IR /tmp/test.sift .
.
.TP
sift test1.pgm test2.pgm \-\^\-read-frames=bin:/tmp/%.key
reads the
frames of images
.I test1.pgm
and
.I test2.pgm
from the binary files
.I /tmp/test1.key
and
.I /tmp/test2.key
and writes the frames and their descriptors to the files
.I test1.sift
and
.I test2.sift
respectively.
.
.\" ------------------------------------------------------------------
.SH SEE ALSO
.\" ------------------------------------------------------------------
.BR vlfeat (7).
D. G. Lowe.
Distinctive image features from scale-invariant keypoints.
.IR IJCV ,
2(60):91-110, 2004.