File Exchange

image thumbnail


version (2.05 KB) by Yoram Tal
Simulation of Photoshop's magic wand tool.


Updated 14 Oct 2004

No License

A function which simulates Photoshop's magic wand tool. It allows selecting of connected groups of pixels whose colors are within a predefined tolerance of some reference pixels.

Both image and reference pixels may be interactively obtained. The current version is based on Phung's magicwand, but it is much faster and interactive.

Cite As

Yoram Tal (2020). magicwand2 (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)



Your segmentation method is a lot faster than my initial naive approach. This ended up working well for both selection and group size classification routines.



It is really useful with good performance. Good job ;)

Jay McDougal

Nice script with good performance. Great for interactive region masking.

Wenjing Jia

It is a lot faster than Phung's version! and it is indeed more user-friendly as well! Thank you so much!

eyez of soul iori

i have not even seen it but i suppose it may be a good one.

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Simulating Photoshop's magic wand tool

Inspired: Image Manipulation Toolbox