image thumbnail

Image Subtraction

version (1.18 KB) by sana iqbal
image subtraction is done by using background and foreground image.


Updated 06 Jan 2015

View License

1. reading background image then foreground image
2. converting both images from rgb to hsv
3. bixoring background and foreground image
4. converting rgb to grayscale
5. reading rows and coloumns of image
6. conveting it to binary image
7. applying median filter to remove noise
8. labeling boundary
9. removing noise

Cite As

sana iqbal (2022). Image Subtraction (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!