Please, note that deleting the DPSO and FODPSO is irrelevant. As long as you choose 'pso' as method it won't influence at all.
The example given in the header should work on any image:
Iout = segmentation(I,4,'pso')
If you're having a problem working with a specific image just send it to me to firstname.lastname@example.org and I'll try to check what's going on.
09 Nov 2013
Multiple Image Segmentation using PSO, DPSO, FO-DPSO and exhaustive methods.
I already try your coding and it give me a good result for the first try but after that it cannot give a result. I need your help. Can you please give me the coding for image segmentation using PSO only. the one that u have uploaded having some problem when i try to delete the DPSO and FODPSO. Please email me the code email@example.com and may God bless you for helping other people.