Untitled

 avatar
unknown
plain_text
a year ago
372 B
3
Indexable
        frame = readFrame(v);
        foregroundMask = detectForeground(frame, backgroundModel);
        
        % Prepare an output image with a dark background
        outputImage = frame .* uint8(repmat(foregroundMask, [1, 1, 3]));
        
        % Display the output image
        imshow(outputImage); title('Detected Objects with Dark Background'); drawnow;
Editor is loading...
Leave a Comment