PDL-OpenCV

 view release on metacpan or  search on metacpan

GENERATED/PDL/OpenCV.pm  view on Meta::CPAN

#
# GENERATED WITH PDL::PP! Don't modify!
#
package PDL::OpenCV;

our @EXPORT_OK = qw( cubeRoot fastAtan2 borderInterpolate copyMakeBorder add subtract multiply divide divide2 scaleAdd addWeighted convertScaleAbs convertFp16 LUT sumElems countNonZero findNonZero mean meanStdDev norm norm2 PSNR batchDistance normali...
our %EXPORT_TAGS = (Func=>\@EXPORT_OK);

use PDL::Core;
use PDL::Exporter;
use DynaLoader;


   our $VERSION = '0.001';
   our @ISA = ( 'PDL::Exporter','DynaLoader' );
   push @PDL::Core::PP, __PACKAGE__;
   bootstrap PDL::OpenCV $VERSION;






#line 5 "opencv.pd"

use strict;
use warnings;

=head1 NAME

PDL::OpenCV - PDL interface to OpenCV

=head1 SYNOPSIS

  use PDL::OpenCV::Videoio; # ucfirsted name of the OpenCV "module"
  my $vfile='t/frames.avi';
  my $vc = PDL::OpenCV::VideoCapture->new; # name of the OpenCV class
  die "Failed to open $vfile" if !$vc->open($vfile);
  my ($frame, $res) = $vc->read;
  die "Failed to read" if !$res;
  my $writer = PDL::OpenCV::VideoWriter->new;
  # note 4th arg is an OpenCV "Size" - PDL upgrades array-ref to ndarray
  $writer->open($outfile, PDL::OpenCV::VideoWriter::fourcc('M','P','4','V'), 20, [map $frame->dim($_), 1,2], 1);
  while ($res) {
    $writer->write($frame);
    # and/or display it, or feed it to a Tracker, or...
    ($frame, $res) = $vc->read;
  }

=head1 DESCRIPTION

Use PDL::OpenCV to call OpenCV functions on your data using Perl/PDL.

As can be seen above, this distribution is structured to very closely
match the structure of OpenCV v4 itself. That means the submodules
match the "classes" and/or "modules" in OpenCV, with the obvious exception
of the C<Mat> class which needs special handling to thinly wrap ndarrays
going into and coming back from OpenCV.

=head1 BINDING NOTES

This includes method/function names which are exactly the same
as in OpenCV, without being modified for the common Perl idiom
of snake_casing. This is intended to make the OpenCV documentation
trivially easy to use for the PDL binding (where a binding exists),
including available tutorials.



( run in 0.963 second using v1.01-cache-2.11-cpan-71847e10f99 )