write initial video frame

This commit is contained in:
2026-05-25 14:15:05 -07:00
parent cb9debf976
commit 0b63cb4874
+1
View File
@@ -15,6 +15,7 @@ function [obj] = run(obj)
% Capture reference frame size; used to resize frames that deviate % Capture reference frame size; used to resize frames that deviate
% due to figure reflow during plot updates (e.g. in headless mode). % due to figure reflow during plot updates (e.g. in headless mode).
I_ref = getframe(obj.f); I_ref = getframe(obj.f);
v.writeVideo(I_ref);
videoFrameSize = [size(I_ref.cdata, 2), size(I_ref.cdata, 1)]; videoFrameSize = [size(I_ref.cdata, 2), size(I_ref.cdata, 1)];
end end
end end