Untitled
unknown
plain_text
2 years ago
372 B
6
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