Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SME with Matlab #7

Open
nkapadia27 opened this issue Jan 18, 2018 · 1 comment
Open

Using SME with Matlab #7

nkapadia27 opened this issue Jan 18, 2018 · 1 comment

Comments

@nkapadia27
Copy link

I'm having issues using the Matlab code on a single-channel file. Whenever I try running the program I get the error:

"To RESHAPE the number of elements must not change.

Error in Main_SME_method_SML (line 62)
edgeflag=reshape(idx,[size(Img,1) size(Img,2)]);

Error in SME_demo_single_channel (line 64)
[zprojf1,qzr2,classmap,idmaxini,cost,WW,C1,C2,C3]=Main_SME_method_SML(Img1,nametex2);"

Also, initally I got the error:
"Undefined function or variable 'find_sigma'.

Error in Main_SME_method_SML (line 9)
sigma=find_sigma(Img)

Error in SME_demo_single_channel (line 64)
[zprojf1,qzr2,classmap,idmaxini,cost,WW,C1,C2,C3]=Main_SME_method_SML(Img1,nametex2);"

But I fixed this one by changing line 9 from find_sigma to find_sigma_SML.

I can run the FIJI plugin just fine with same image stack.

@Shihav
Copy link
Collaborator

Shihav commented Feb 2, 2018

Corrected. And tested on Matlab 2010, Matlab 2013, Matlab 2017b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants