how to detect shadows in an image

I have an image which is given below
How can i detect the cast shadow by using a bounding box?????? (A rectangular box must be moved throughout the img searching for a shadow and when it detects a shadow,the box must be fixed there@ the shadow)

1 Comment

Maybe its correct create a background image that contain only the shadow? I'm trying to do that 'background = imopen(grayImage,se)'; where se=strel('disk',15);

Sign in to comment.

Asked:

on 28 Jan 2016

Commented:

on 11 May 2022

Community Treasure Hunt

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

Start Hunting!