📄 sift.1
字号:
.Dd August 22, 2006.Os.Dt SIFT 1.Sh NAME.Nm sift.Nd Scale Invariant Feature Transform.Sh SYNOPSIS.Nm.Op Fl vhb .Op Fl o Ar filename.Op Fl k Ar filename.Op Fl p Ar prefix.Op Fl S Ar number .Op Fl O Ar number.Op Fl t Ar number.Op Fl e Ar number.Op Fl \-save\-gss.Op Fl \-no\-descriptors.Op Fl \-no\-orientations.Op Fl \-stable\-orderfile.pgm ....Sh OPTIONS.Bl -tag.It Fl \-verbose , Fl vBe verbose..It Fl \-help , Fl hPrint a summary of options..It Fl \-output Ar outfile , Fl o Ar outfileWirte the keypoints to .Ar outfile..It Fl \-prefix Ar prefix , Fl p Ar prefixDerive the output filename prefixing .Ar prefixto the input filename..It Fl \-binary , Fl bWrite the descriptors to a binary file. The name of this fileis derived from the output filename by removing the `.key' suffixand adding the `.desc' suffix..It Fl \-keypoints Ar filename, Fl k Ar filenameInstead of running the SIFT detector, read the keypoints from.Ar filename(but still compute the descriptors)..It Fl \-save\-gssSave the layers of the Gaussian scale space. This produces a\.pgm file for each level of the pyramid. The name of these fileis derived from the output filename by removing the `.pgm' suffix,and adding the index of the level and the `.pgm' suffix..It Fl \-octaves Ar number , Fl O Ar numberSet the number of octave to .Ar number.If not specified, this value is automaticallycomputed to span all possible octaves..It Fl \-levels Ar number , Fl S Ar numberSet the number of levels per octave to .Ar number.The default value is 3..It Fl \-first\-octave Ar numberSet the index of the first octave of the pyramid to.Ar number.The default value is -1..It Fl \-threshold Ar number, Fl t Ar number Set the SIFT detector threshold to.Ar number..It Fl \-edge\-threshold Ar number , Fl e Ar numberSet the SIFT detector edge rejection threshold to.Ar number..It Fl \-no\-descriptorsDo not compute nor wirte to the output file the descriptors..It Fl \-no\-orientationsSet implicitly the orientation of all keypoints to zero..It Fl \-stable\-orderPreserve the order of keypoints read from a file..El.Sh OVERVIEW.Nmcomputes D. Lowe's Scale Invariant Feature Transfroms (SIFT). Theprogram can be used to process either a single image or several imagesin a batch. It is possible to customize the most important parametersof the algorithm and to generate descriptors for keypoints computedexternally..PpIn the most simple form.Nmtakes an image in PGM format and computes its SIFT keypoints and therelative descriptors, producing a.Ql .keytext file. This file has one line per keypoint, with the x and ycoordiantes (pixels), the scale (pixels), the orientation (radians)and 128 numbers (in the range 0-255) representing the descriptor. Thisfile is almost equivalent to the output of D. Lowe's originalimplementation, except that x and y are swapped and the orientation isnegated..PpThe SIFT algorithm computes a Gaussian pyrmaid of the input image. Tochange the number of octaves, the index of the first octave and thenumber of levels per octave of the pyramid, use the options.Fl \-octaves ,.Fl \-first-octaveand.Fl \-levelsrespectively. Note that setting.Fl \-first-octaveto -1, -2, ... will cause the base of the pyramid to be two,three, ... times larger than the input image..PpIn order to select reliable keypoints, SIFT rejects extrema of theDifference of Gaussian scale space which are smaller than a thresholdspecified by.Fl \-threshold .It also rejects keypoints that have an on-edge score above anotherthreshold specified by.Fl \-edge-threshold..PpBy default, the name of the ouptut file is obtained by removing the.Ql .pgmsuffix (if any) from the name of the input and then appending the.Ql .keysuffix. The option.Fl \-output Ar namechanges this behaviro and uses the name.Ar nameinstead. .Fl \-outputworks only when processing a single image. When processing imagebatches, you can use the.Fl \-prefix Ar prefixoption, which constructs the name of each output file by prependingthe prefix.Ar prefixto the base name of the corresponding input file, and thensubstituting.Ql .pgmwith.Ql .keyas before. Note that.Ar prefixis added verbatim to the name. If .Ar prefix is a directory, it should explicitly contain trailing file separator.Ql / \..PpDescriptors can take a lot of disk space. This problem can bealleviated by means of the.Fl \-binaryoption, which writes (only) the descriptors to a separate binary file.The name of this file is obtained by removing the suffix.Ql .key (if any) from the name of the keypoint output file, and thenappending the suffix.Ql .desc to the result. Descriptors and are written in the same order of thekeypoints, with each component taking exactly one byte..PpSometimes one wants to compute the descriptors of keypoints generatedexternally. This can be done by the.Fl \-keypoints Ar file.keyoption, which reads the keypoints from.Ar file.key .This file has the same format of the keypoint files produced by.Nm(except that the descriptors are omitted). Keypoints are then writtenalong with their descriptors to the output file as normal.Keypoints are processed by increasing scale, which means thatkeypoints can appear in different order int the input and outputfile. Reordering can be prevented by means of the switch.Fl \-stalbe\-oder .If this option is used, it is reccomended to provide a list ofkeypoints already ordered by scale as this may significantly improvethe computation speed. Note that.Fl \-keypointsis limited to process a single image per time..Sh EXAMPLES.Bl -bullet.It Read the image.Ql image.pgm and write keypoints and descriptors to.Ql image.key :.Dl > sift image.pgm.ItSame as above, but use null thresholds.Dl > sift -t 0 -e 0 image.pgm.ItSame as above, but do.Em notdouble the resolution of the image as part of the computationof the Gaussian scale space:.Dl > sift --first-octave 0 image.pgm.It Read the image.Ql image.pgmand write the keypoints to.Ql image.keyand the descriptor in binary format to.Ql image.desc :.Dl > sift -b image.pgm.It Read the images.Ql image1\&.pgmandq.Ql image2.pgmand write the keypoints and descriptors to.Ql /tmp/image1.keyand.Ql /tmp/image2.key :.Dl > sift -p /tmp/ image1.pgm image2.pgm.ItRead the image.Ql image.pgmand the keypoints.Ql image.keyand write keypoints and descriptors to.Ql /tmp/image.key :.Dl > sift -p /tmp/ -k image.key image.pgm.It Same as above, but writes the descriptors in binary format to.Ql /tmp/image.desc :.Dl > sift -b -p /tmp/ -k image.key image.pgm.El.Sh SEE ALSO.Xr convert 1 ,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -