diff --git a/Imgcodecs/funclist.pl b/Imgcodecs/funclist.pl index 1f5fc9f..d28e974 100644 --- a/Imgcodecs/funclist.pl +++ b/Imgcodecs/funclist.pl @@ -1,4 +1,13 @@ ( +['','imencode','@brief Encodes an image into a memory buffer. + +The function imencode compresses the image and stores it in the memory buffer that is resized to fit the +result. See cv::imwrite for the list of supported formats and flags description. + +@param ext File extension that defines the output format. +@param img Image to be written. +@param buf Output buffer resized to fit the compressed image. +@param params Format-specific parameters. See cv::imwrite and cv::ImwriteFlags.',0,'bool',['String','ext','',['/C','/Ref']],['Mat','img','',[]],['vector_uchar','buf','',['/O','/Ref']],['vector_int','params','std::vector()',['/C','/Ref']]], ['','imread','@brief Loads an image from a file. @anchor imread diff --git a/genpp.pl b/genpp.pl index 1f923f3..5a2867f 100644 --- a/genpp.pl +++ b/genpp.pl @@ -22,6 +22,7 @@ 'Mat()' => ['PDL->zeroes(sbyte,0,0,0)',], 'Point()' => ['empty(sbyte)',], 'Ptr()' => ['empty(float)','0'], + 'std::vector()' => ['empty(long)',], 'Size()' => ['empty(sbyte)',], false => [0,0], # perl, C true => [1,1], @@ -62,7 +63,9 @@ sub new { if ($self->{is_vector}) { $self->{fixeddims} = 1 if my $spec = $DIMTYPES{$nonvector_type}; $self->{use_comp} = 1 if $self->{is_output}; - @$self{qw(pdltype type_c)} = ($spec ? $CTYPE2PDL{$spec->[0][0]} : $nonvector_type, ('vector_'x$self->{is_vector})."${nonvector_type}Wrapper *", + @$self{qw(pdltype type_c)} = ( + $spec ? $CTYPE2PDL{$spec->[0][0]} : $self->{type_pp}, + ('vector_'x$self->{is_vector})."${nonvector_type}Wrapper *", ); @$self{qw(is_other naive_otherpar use_comp pdltype)} = (1,1,1,'') if $STAYWRAPPED{$nonvector_type} || $self->{is_vector} > 1; return $self; diff --git a/maint/genlists b/maint/genlists index 72dbf46..f96ca3e 100755 --- a/maint/genlists +++ b/maint/genlists @@ -51,6 +51,7 @@ my %force = map +($_=>1), qw( cv.normalize cv.minMaxLoc cv.imread + cv.imencode cv.imshow cv.waitKey cv.namedWindow