diff --git a/funclist.pl b/funclist.pl index 070b878..9397482 100644 --- a/funclist.pl +++ b/funclist.pl @@ -1,4 +1,8 @@ ( +['','batchDistance','@brief naive nearest neighbor finder + +see http://en.wikipedia.org/wiki/Nearest_neighbor_search +@todo document',0,'void',['Mat','src1','',[]],['Mat','src2','',[]],['Mat','dist','',['/O']],['int','dtype','',[]],['Mat','nidx','',['/O']],['int','normType','NORM_L2',[]],['int','K','0',[]],['Mat','mask','Mat()',[]],['int','update','0',[]],['bool','crosscheck','false',[]]], ['','minMaxLoc','@brief Finds the global minimum and maximum in an array. The function cv::minMaxLoc finds the minimum and maximum element values and their positions. The diff --git a/genpp.pl b/genpp.pl index 80b3d0d..adcbdf3 100644 --- a/genpp.pl +++ b/genpp.pl @@ -57,7 +57,7 @@ sub c_input { $self->{name}.($compmode?'_LOCAL':'') if !$self->{dimless}; ($self->{type} =~ /\*$/ ? '&' : ''). - ($compmode ? "(($self->{pdltype}*)($self->{name}->data))[0]" : "\$$self->{name}()") + ($compmode ? "(($self->{type_c}*)($self->{name}->data))[0]" : "\$$self->{name}()") } sub par { my ($self) = @_;