Skip to content

Commit

Permalink
handle bool parameters right
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 27, 2023
1 parent f9c87c9 commit 682b579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions funclist.pl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion genpp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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) = @_;
Expand Down

0 comments on commit 682b579

Please sign in to comment.