Simulating Photoshop's magic wand tool

This function simulates the functionality of Photoshop's magic wand tool.
5.5K Downloads
Updated 2 Apr 2004

No License

The function (written entirely in MATLAB) allows the selection of connected pixels whose colors are within a defined tolerance of reference pixels.

Cite As

Son Lam Phung (2025). Simulating Photoshop's magic wand tool (https://www.mathworks.com/matlabcentral/fileexchange/4698-simulating-photoshop-s-magic-wand-tool), MATLAB Central File Exchange. Retrieved .

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

Inspired by: magicwand

Inspired: magicwand2

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0