I was trying to run the skeletonization and skeleton pruning software from
skeletonization and skeleton pruning
and getting the following errors. I used matlab 2015a .Authors claimed that it runs on matlab 7.0. Please help me to correct it.i just want to see the output. Anyone can suggest a pseudocode for Skeletonization and Skeleton Pruning in simple way?
Error in SkeletonGrow1 (line 42)
skltn(i,j) = CheckSkeleton1(bw,dist,lab,i,j,ro,mark);
Error in div_skeleton_new (line 51)
bw=SkeletonGrow1(I0,ro,mark);
Error in Test (line 6)
[bw,I0,x,y,x1,y1,aa,bb]=div_skeleton_new(4,1,bw,15);
first two errors are due to same function (CheckSkeleton1). The number of arguments are different in both calls. Tweek it, do check readme file or contact author.
Related
I am quite new to matlab/programming in general and am trying to learn how to use the package "OMP Analysis" from geomar to figure out source water masses (https://www.mathworks.com/matlabcentral/fileexchange/1334-omp-analysis). So far I've only tried running the test data provided in the package. I select the "interactive(listing)" option, select extended water mass analysis, then don't change anything else. Everything works fine until I get to the final prompt, "Do you want to see more graphic output?". I input "y" and get the following error message:
Index exceeds matrix dimensions.
Error in contour2 (line 27)
para=A(st,:);
Error in omp2 (line 272)
contour2
Error in omp2int (line 454)
omp2
Error while evaluating DestroyedObject Callback.
From what I can tell the error is originating in that one line from contour2 and then messing up subsequent commands. The dimension of A is a 2x204 double and the dimension of st is a 204x1 double.
Any help in figuring out this problem would be greatly appreciated!
I am a novice when it comes to the topic of Structure From Motion. I have been trying to follow the tutorial here in the MathWorks webpage for SFM: LINK.
However, after running the code, I get this error message:
Warning: Maximum number of trials reached. Consider increasing the maximum
distance or decreasing the desired confidence.
> In vision.internal.ransac.msac (line 136)
In estimateEssentialMatrix (line 161)
In helperEstimateRelativePose (line 43)
In PERFORM_SFM (line 70)
Error using helperEstimateRelativePose (line 70)
Unable to compute the Essential matrix
Error in PERFORM_SFM (line 70)
[relativeOrient, relativeLoc, inlierIdx] = helperEstimateRelativePose(...
Could someone help me understand why this is happening? Could someone provide me an different approach?
I just managed to solve this same error. In my case, it seems I was using too many images, so the resulting equation system was overdetermined and, therefore, the matrix could not be computed. I just tested with a number of images similar to the example (6, in my case) and enough camera movement from frame to frame, and it works like it should.
Hope this helps.
As #Ander Biguri said, consider increasing the maximum distance or decreasing the desired confidence. You can do this by modifying the Matlab built-in function helperEstimateRelativePose.m: line 43. Then you can add as many images as you want. After modification, it should look like this:
[E, inlierIdx] = estimateEssentialMatrix(matchedPoints1, matchedPoints2,...
cameraParams, 'Confidence', 50, 'MaxDistance', 5);
But be careful editing the built-in functions. In my case, I modified the function and saved into another folder by another name and add that folder into path.
I hope this will help someone.
I am working on support vector regression for aerospace applications. I need to implement SVR in MATLAB. On the internet, I found this link, which gives detailed information with examples. When I try running the example codes in matlab, I am getting this error,
Error using classreg.learning.FitTemplate/fillIfNeeded (line 604)
OptimizeHyperparameters is not a valid parameter name.
Error in classreg.learning.FitTemplate.make (line 124)
temp = fillIfNeeded(temp,type);
Error in RegressionSVM.template (line 349)
temp = classreg.learning.FitTemplate.make('SVM','type','regression',varargin{:});
Error in RegressionSVM.fit (line 343)
temp = RegressionSVM.template(varargin{:});
Error in fitrsvm (line 235)
obj = RegressionSVM.fit(X,Y,varargin{:});
I am using MATLAB R2016a. Kindly let me know, how to solve this issue.
I had a similar issue today. Just upgrade Matlab to Matlab 2016b and it should work. Maybe it's a new parameter that they just introduced.
I use osx mavericks with 2014a. To get a crisp screen I have updated the JRE and done the fix to the help-menu as described in the answer from 17 May here http://www.mathworks.com/matlabcentral/answers/102946-why-does-the-matlab-desktop-look-blurry-when-using-matlab-8-2-r2013b-on-my-mac-with-retina-display
This includes following the instructions from Mathworks http://www.mathworks.com/support/bugreports/870843
Maybe that is the reason for the error below but it is not certain as I had never tried the profiler on 2014a before I did the fix.
The Error:
When I try to click any function to get a detailed profiler report I get the following error:
Error using flip
Too many input arguments.
Error in flipud (line 14)
x = flip(x,1);
Error in profview>makefilepage (line 723)
sortedDataList = flipud(sortedDataList);
Error in profview (line 70)
s = makefilepage(profileInfo,idx, busyLineSortKeyStr2Num(busyLineSortKey));
Do you have your own function called flip on your MATLAB path? There is a new function shipping with MATLAB called flip which the profiler is trying to use.
http://www.mathworks.com/help/matlab/ref/flip.html
Try which -all flip - if you have a version on there, try removing it to see if that fixes things.
Using the adftest function in MATLAB's econometrics toolbox, I'm receiving the following error:
>> [h1,pVal1] = adftest(y1,'model','ARD')
Error using lagmatrix (line 25)
lagmatrix: wrong # of input arguments
Error in adftest>runReg (line 705)
yLags = lagmatrix(y,0:(testLags+1));
Error in adftest (line 417)
testReg = runReg(i,y,testT,testLags,testModel,needRegOut);
y1 is a <41x1> vector of doubles.
Has anyone received this error or have any thoughts on what the issue is? I am using this code right out of the box so I'm not sure what is going on. I'd post to MATLAB's site, but it is down for maintenance.
This is either a bug in Matlab, in which case you should submit it on the Matlab support site. Before you do that, you should check that you don't have a function lagmatrix on your path that shadows the built-in function. Type
which lagmatrix
on the command line. If the path does not point to your Matlab installation, you should move lagmatrix off the Matlab search path.
Also note that y1 should not contain all NaN, or be otherwise degenerate, so you may want to check the function using the sample data as suggested in the help to be sure it's a bug and not just your data.
I had the same problem with this function. In my case, the problem was the function lagmatrix (older version) in my MATLAB path and the adftest function was the newest version. The soluction was delete the older version of lagmatrix.