Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions caltag.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@
I = im2single( I );
[imgHeight,imgWidth] = size( I );
if max( [factor(imgHeight),factor(imgWidth)] ) > 21
disp( 'Warning: image dimensions have large prime factors' );
disp( 'adaptivethresh is fastest on image dimensions with small factors' );
%disp( 'Warning: image dimensions have large prime factors' );
%disp( 'adaptivethresh is fastest on image dimensions with small factors' );
end
normMatrix = [ 2/imgHeight, 0, -1; 0, 2/imgWidth, -1; 0 0 1 ];
if debug
Expand Down Expand Up @@ -1001,7 +1001,7 @@
% dir is a unit vector
function line = fitline( points )
points = points(~isnan(points(:,1)),:);
if size( points, 2 ) < 2
if ((size( points, 2 ) < 2) || isempty(points)) % TODO: pull request to github?
line = [];
return;
end
Expand Down
Empty file modified license-kovesi.html
100755 → 100644
Empty file.
3 changes: 2 additions & 1 deletion ransac.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
Octave = exist('OCTAVE_VERSION','var') ~= 0;

% Test number of parameters
error ( nargchk ( 6, 9, nargin ) );
%error ( nargchk ( 6, 9, nargin ) );
narginchk(6,9);

if nargin < 9; maxTrials = 1000; end;
if nargin < 8; maxDataTrials = 100; end;
Expand Down