Borrar filtros
Borrar filtros

how to zoom and pan using getframe()

4 visualizaciones (últimos 30 días)
jnaumann
jnaumann el 21 de En. de 2015
Respondida: Image Analyst el 21 de En. de 2015
Hi,
I am trying to make a movie by scanning around a 3D plot and then zooming in a and panning towards a part of the object. It works fine using the axes vis3d funtion until i try and pan. I am using the code below but it starts to get a bit jumpy - Does anyone know a way to achieve this while keeping the object in one position.
axes vis3d
for i=91:140
zoom(1.05)
ax=gca;
zlim(ax,zlim-140)
mov(i)=getframe(gcf);
hold off
end

Respuestas (1)

Image Analyst
Image Analyst el 21 de En. de 2015
Attached is the zooming and panning code that The Mathworks gave me. You use an imscrollpanel control.

Categorías

Más información sobre Visual Exploration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by