Remove falsely detected foreground (image segmentation)

3 vues (au cours des 30 derniers jours)
Yousra Ashfaq
Yousra Ashfaq le 6 Juin 2023
Commenté : Image Analyst le 8 Juin 2023
Hi,
I am working on moving object detection in video compressed domain. I have extracted compressed domain features from VVC reference software to create an image(frame).
However, the extracted image falsely detects some part of the background as foreground. For example, in a paragliding video, due to the movement of the camera the slightly changing background(trees) is also beaing detected as foreground. I want to eliminate that part and just have the segmentated image of the person in the parachute. As shown in 0001.png.
The orginal image, extracted image, binary image, morphologically closed image are as follows:
It seems to be the right way to go since it gets rid of the unwanted trees but for some reason the paragliding person is not fully detected.
I tried to change the value for the length in strel in imopen from 9 to 10, 12, 16, etc. but it gives me an error
bw = imopen(bw, strel('line', 9, 90));
Error using ~=
Matrix dimensions must agree.
Error in imseg_y (line 61)
bw(L~=ind) = 0;
I even tried to change the value for
bw = bwareaopen(bw, 100);
I changed it 500, 250, etc. I get the same error as above, no matter what value I choose.
Can anyone please help correctly detect the foreground while removing the falsely detected foreground?
Looking forward to everyone's suggestions! :)
P.S. I have attached my code for reference.

Réponses (1)

Image Analyst
Image Analyst le 7 Juin 2023
  2 commentaires
Yousra Ashfaq
Yousra Ashfaq le 7 Juin 2023
Thank you @Image Analyst. :) I have looked up research papers on google scholar and I have gone through their algorithms. I was wondering if you could give any suggestions based on my code and the problem I am facing here.
Image Analyst
Image Analyst le 8 Juin 2023
I find it hard to believe out of all those papers you read, that this algorithm was the best. What paper was it from?
If you have the Computer Vision Toolbox, there are functions to detect foregrounds and moving objects:

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by