Sometimes you need to be able to manually count objects or regions in an image. (You may want to validate an automatic count, for instance.) This tool facilitates that task by allowing you to mark objects with cursor clicks. Then you can tally and delete them.
Operates on current image object
Activates and operates on image imgHandle
task (optional input) may be:
'Clear' (deletes existing marks)
'Count' (returns the count of existing marks)
'Mark' (Default; return to marking task)
Brett Shoelson (2020). markPoints (https://www.mathworks.com/matlabcentral/fileexchange/33123-markpoints), MATLAB Central File Exchange. Retrieved .
It actually works fine. The reason I couldn't make it work was because I was working on a image that had been overlayed with plots. Sorry for the first comment.
Lasse, your feedback isn't very helpful to me. I use this function frequently, and can assure you that it _does_ work. Perhaps you can tell me why you think it's not working, or why it's buggy, and let me take a look?
This file has been downloaded hundreds of times. Is anyone else finding it to be buggy or nonfunctional? If there are bugs to be fixed or improvements to be made, I'd like the opportunity to fix/make them.
Buggy. Slow and counting does not actually work.