HSV colour space for video processing

조회 수: 11 (최근 30일)
Zeynep Irem Cakirca
Zeynep Irem Cakirca 2020년 7월 10일
답변: Image Analyst 2020년 7월 10일
I want to process a video in HSV colour space. For the saturation values of videos. How can I do the conversion between rgb to hsv videos? I am new on these topics maybe the question is so simple but I really want to do it. I tried to work on frames and also don't know how can I reconstruct a video from processed frames. Could you help me about these topics ?

답변 (1개)

Image Analyst
Image Analyst 2020년 7월 10일
You can do this
thisFrame = read(videoObject, k); % Get k'th frame.
hsvImage = rgb2hsv(thisFrame);
saturationImage = hsvImage(:, :, 2);
See attached demo where I track a green Sharpie pen using Saturation.

Community Treasure Hunt

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

Start Hunting!

Translated by