Clear Filters
Clear Filters

Need help to run the Matlab code

1 view (last 30 days)
Ahmad
Ahmad on 27 Apr 2024
Commented: Voss on 28 Apr 2024
Hello,
I am new to Matlab and I need to run the github repository code (https://github.com/singhdeepak-15/IMAGE_SEGMENT_ABC). But I am getting a lot of errors may be I am not running it correctly. Moreover, the output image is also not being displayed.
Can anyone help me in this regard?
Thank you
  2 Comments
John D'Errico
John D'Errico on 27 Apr 2024
How can we possibly help you in this? We don't see the errors you get. Your question is very vague. Yes, you get a lot of errors. But if you have no clue how to use MATLAB, or even install the package, then you could have made infinitely many errors. And Answers is not a place where we can give you hands on, real time tutoring.
So, first, spend some time and learn to use MATLAB! That will surely involve doing some of the basic tutorials. I'm sorry, but real people do real the manuals.
Next, if you still have problems, then contact the author, as the one person who knows the tool the very best and is most likely to be able to help you.
If you STILL have problems, ask a specific direct question about a specific part of the code on Answers. Show the lines in question.
DGM
DGM on 27 Apr 2024
Edited: DGM on 27 Apr 2024
I have no idea what you tried to do or what error you got, but you do need at least both Image Processing Toolbox and Wavelet Toolbox. I don't have Wavelet Toolbox, so I can't run this.
There aren't many useful comments in the code, though there are lots of commented-out dead code. Other than that, the only documentation appears to be the short, nondescriptive list of typical parameter values in the README. I haven't seen the paper it's based on, but maybe it would be helpful.
I guess what I'm saying is that it shouldn't seem surprising to find it confusing or buggy.

Sign in to comment.

Accepted Answer

Voss
Voss on 27 Apr 2024
"No. of Bees" must be a positive even number. "Dim" mut be 1 or 2. "Iteration" must be a positive integer. "Run" must be a positive integer.
Within those constraints, ABC and ABC+GA both seem to run without error and produce a result, with the images I tested them on. There are probably other constraints; I didn't look at the code much. (And I didn't run Preprocess since I don't have Wavelet Toolbox.)
Hope that helps.

More Answers (0)

Categories

Find more on AI for Signals and Images in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!