| Image-Signature documentation | view source | Contained in the Image-Signature distribution. |
Image::Signature - Deriving signatures of images
use Image::Signature;
# initiation from the ground
$sig_obj = new Image::Signature("pic.jpg");
# initiation from an image-magick object
$sig_obj = new Image::Signature $image_object;
# calculation of signature
$sig_object_A->signature();
# comparison of two signature
$sig_object_A->compare($sig_object_B);
Image signature is something that can be capable of describing properties of an image without knowing the entire picture. It is analogous to index of texts. Signatures are produced using various algorithms, including color histograms, texture properties, local and global attributes, etc. This module is aimed at being able to implement some practical, general-purpose, and easy-to-implement algorithms for producing signatures. With signatures, one can develop further applications, such as image retrieval systems. Fortunately, with the ImageMagick backend, multiple formats of images are supported.
Since I'm just a newbie in image processing, currently, only color histogram and gray-level moments are implemented, and the modules are poorly documented. The code is entirely written in PERL, and so it may be inevitably slow. The module will be expanded and upgraded in the future with the growth of my knowledge if it grows.
The argument can be an image file or an ImageMagick object.
$sig_obj = new Image::Signature $arg;
Derives image signature.
The current methods available are color histograms and gray-level moment.
$sig_obj->color_histogram;
$sig_obj->gray_moment;
Compares the similarity between two image objects.
$sig_objA->compare($sig_objB);
GD, Image::Magick
Must be many. Please report them to me.
xern <xern@cpan.org>
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
| Image-Signature documentation | view source | Contained in the Image-Signature distribution. |