Cv::Histogram - Perl extension for OpenCV Histogram
use Cv::Histogram;
$hist = Cv::Histogram->new($sizes, $type, $ranges, $uniform); $hist = Cv::Histogram->new($sizes, $type); $hist2 = $hist1->new;
$hist->type $hist->bins $hist->ranges # alias of CvHistogram.thresh
$hist->CalcBackProject(\@image, $back_project);
$hist->CalcBackProjectPatch(\@image, $dst, $patch_size, $method, $factor);
$hist->calc(\@image, $accumulate, $mask); $hist->calc(\@image);
$hist1->CalcProbDensity($hist2, $dst_hist, $scale); $hist1->CalcProbDensity($hist2, $dst_hist);
$hist->clear;
$hist1->compare($hist2, $method);
$src->copy($dst); $dst = $src->copy;
$hist->minMaxLoc(my $min_value, my $max_value, my $min_idx, my $max_idx); $hist->minMaxLoc(my $min_value, my $max_value);
$hist->normalize($factor);
$hist->setRanges(\@ranges, $uniform); $hist->setRanges(\@ranges);
$hist->thresh($threshold);
$hist->calcPGH($contour);
$value = $hist->query($idx0); $value = $hist->query($idx0, $idx1); $value = $hist->query($idx0, $idx1, $idx2); $value = $hist->query(\@idx);
$value = $hist->get($idx0); $value = $hist->get($idx0, $idx1); $value = $hist->get($idx0, $idx1, $idx2); $value = $hist->get(\@idx);
None by default.
http://github.com/obuk/Cv-Olive
MASUDA Yuta <yuta.cpan@gmail.com>
Copyright (c) 2013 by MASUDA Yuta.
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Cv, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cv
CPAN shell
perl -MCPAN -e shell install Cv
For more information on module installation, please visit the detailed CPAN module installation guide.