Borrar filtros
Borrar filtros

Level Set method for Image segmentation in a Video - continuous image segmentation.

1 visualización (últimos 30 días)
I am using the code given by Chunming Li , the link for the same is attached below.
The code is used for image segmentation only on a single image and uses Distance Regularization Level Set function. I want to add an additional function in this which gives us level set contour for every frame in the video i.e every window in the video. And the video should be easy and continous in detecting objects.
If anyone could please help me out with it, I will be grateful.
Thank you in advance.
Regards

Respuestas (1)

Moksh
Moksh el 20 de Sept. de 2023
Hi Ankrutee,
I understand that you can perform the segmentation technique on single images using Distance Regularization Level Set function and would now like to perform this technique on every frame of a video file.
One approach to achieve this is by iterating through the frames of the video and applying the desired level set function. You can use the “readFrame” function in MATLAB for performing this task.
Here is an example code:
% Read the video file
v = VideoReader("Sample.mp4");
while hasFrame(v)
frame = readFrame(v);
%% Now use the desired Level Set functions
end
For more information about the above used functions please refer to the following documentation:
Hope this helps!
Best Regards,
Moksh Aggarwal

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by