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
sana iqbal (2021). Image Subtraction (https://www.mathworks.com/matlabcentral/fileexchange/48959-image-subtraction), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!