??? Error: File: imMosaic.m Line: 78 Column: 9
Unbalanced or unexpected parenthesis or bracket.
should be written as for Matlab 2009
[M3, N3, ~] = size(img21);
[M2, N2, ~] = size(img21);
Dear John,
Regarding my previous comment, I found out that for that specific test the function performs relatively better if i change line 204
iu = [true;any(diff(xhat),2)];
to
iu = [true;any(abs(diff(xhat))>1,2)];
I also have a hunch that the sortrows (based on the 1st dimension column) on line 199 could be improved to take into account all possible column order permutations. I tried to do it but got into some complications and gave up.
Comment only
04 Jun 2012
Consolidator
Consolidates common elements in x (may be n-dimensional), aggregating corresponding y.
Dear John,
Your consolidator function proved to be really indispensable for my Delaunay triangulations. However when I tried to test it with a set of points perturbed around 5 centers within an uncertainty radius I couldn't retrieve the initial centers.
unc=0.2;
mat_i=[1 0 0; 1 2 0; 0 3 0; 1 1 0; 2 1 2];
mat_all=mat_i;
for i=1:100
mat_all=[mat_all; mat_i+(rand(size(mat_i))-0.5)*unc;];
end
mat_c = consolidator(mat_all,[],[],unc);
For one realization the last two rows of mat_c end up to be:
1.917 0.900 2.067
2.006 1.001 2.000
which is inconsistent with the tolerance (0.2). Is this an expected result or is there something wrong with my test?
Thank you
Comment only
09 Feb 2012
Consolidator
Consolidates common elements in x (may be n-dimensional), aggregating corresponding y.
Beautiful function. More beautiful when you use it in conjuction with cellfun. Exactly what I was looking for.
Mathworks, please be humble and include this function in MATLAB and pay appropriate fee for the creator.
Thanks John
Comment only