Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RSF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
RSF
Commits
d0cbfa54
Commit
d0cbfa54
authored
3 weeks ago
by
ac
Browse files
Options
Downloads
Patches
Plain Diff
avi2mp4
parent
aa2f6d38
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MATLAB/clusterExamples/avi2mp4.m
+40
-0
40 additions, 0 deletions
src/MATLAB/clusterExamples/avi2mp4.m
with
40 additions
and
0 deletions
src/MATLAB/clusterExamples/avi2mp4.m
0 → 100644
+
40
−
0
View file @
d0cbfa54
target = 'metricEmbeddings.tif';
outfile = ['RSF.mp4'];
set(figure(1),'units','normalized','outerposition',[0 0 1 1])
nFrames = length(imfinfo(target));
sliceThickness = 100;
v = VideoWriter(outfile,"MPEG-4");
v.Quality=100;
v.open()
for Z = 1:nFrames
im = imread(target,Z);
clf
imagesc(im)
hold on;set(gca,'XTick',[],'YTick',[]);axis equal
xlim([1,size(im,2)])
ylim([1,size(im,1)])
text(10,10,['Z = ' num2str(Z) ':' num2str(Z+2*sliceThickness)],'FontSize',10,'Color','w')
text(200-5,10,['denoised input'],'FontSize',10,'Color','w','HorizontalAlignment','right')
text(400-5,10,['bright blob (5\mum)'],'FontSize',10,'Color','w','HorizontalAlignment','right')
text(600-5,10,['dark tube maxima'],'FontSize',10,'Color','w','HorizontalAlignment','right')
text(200-5,210,['input image'],'FontSize',10,'Color','w','HorizontalAlignment','right')
text(400-5,210,['dark blob (5\mum)'],'FontSize',10,'Color','w','HorizontalAlignment','right')
text(600-5,210,['dark tube'],'FontSize',10,'Color','w','HorizontalAlignment','right')
drawnow
f = getframe(gca);
v.writeVideo(f)
end
close(v)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment