Image::libsiftfast - perl wrapper of siftfast (libsiftfast) command.
use Image::libsiftfast; my $sift = Image::libsiftfast->new(siftfast_path => "/usr/local/bin/siftfast"); # $sift recieves only grayscale file. # If you don't have any grayscale file, convert it to pnmfile. my $pnm_file = $sift->convert_to_pnm($jpeg_file); # It returns a perl data structure. my $data = $sift->extract_keypoints($pnm_file);
Image::libsiftfast is a siftfast (libsiftfast) command wrapper.
The object returns a perl data structure that have 'keypoints_num', 'elapsed', 'image_size' and keypoints. All of the keypoint data contains 'frames' and 'vector' block. The frames have 'X', 'Y' coordinate and 'scale' and 'orientaiton' information. The vectors is constructed in 128 dimensions. That is array reference.
WARNING: This module relies on siftfast command ( libsiftfast c++ library ). If you want to know and install libsiftfast, see the maual site. ( http://sourceforge.net/projects/libsift/ )
Takeshi Miki <miki@cpan.org>
http://sourceforge.net/projects/libsift/
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Image::libsiftfast, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::libsiftfast
CPAN shell
perl -MCPAN -e shell install Image::libsiftfast
For more information on module installation, please visit the detailed CPAN module installation guide.