File Exchange

image thumbnail

Extract Red Objects from Aerial Image

version (2.02 MB) by Husam Aldahiyat
A very simple and short example on image processing.


Updated 26 Mar 2010

View Version History

View License

Given an aerial image of a city block this program extracts all objects deemed "red". It is simple and short and should help those wanting to get a foot in image processing.

Cite As

Husam Aldahiyat (2021). Extract Red Objects from Aerial Image (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)


hey, thanks.
But, i have images for different cars, and want to extract the (license plate) for this cars each one alone.
i need to help me in this problem.


Its not applicable for larger images !!!

Leo Kay

Thank you



Husam Aldahiyat

Hey, Image Analyst, your submission is more flexible and robust, but it is much more complex and longer (and harder to understand). This submission simply introduces a couple of IPT commands and their usage, and uses a thresholding technique different than other algorithms (but easier to understand for complete beginners).

The red objects are meant to be small, since the code helps you identify things that can't be seen with your eyes. As a result it isn't %100 accurate, but it works for its smiple purpose.

Image Analyst

This looks like a simpler, less flexible and robust version of this prior submission:
And it doesn't use a good sample image because the red objects aren't large enough to be visible. An image with larger red objects would improve this.

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

Inspired by: SimpleColorDetection()

Community Treasure Hunt

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

Start Hunting!