MakeMoviedx (ImageEM & ImageQLSI classes method)
MakeMoviedx

MakeMoviedx
Make a movie from a series of image objects

Synthax

% prototypes
objList.makeMoviedx(videoName)
objList.makeMoviedx(videoName, Name, Value)

% examples
objList.makeMoviedx('movie/bacteria.avi')
objList.makeMoviedx('movie/bacteria.avi', )
objList.makeMoviedx('movie/bacteria.avi','theta',0,'phi',0,'rate',2,'zrange',[-10 10])

Description

The MakeMoviedx method creates an .avi movie from an ImageEM or ImageQLSI object array. Two inputs are required, the image object array IM and the path/name of the movie file to be created videoname. It calls the method opendx, from the same class.


Many Name-value options can be specified to change the rendering.

  • 'persp' (default: 1)

    With 'persp' set to 1, the video uses the opendx method to create a nice 3D rendering of the image. Set this option to 0 to cancel this effect.

  • 'phi' (default: 45) and 'theta' (default: 45)

    Position of the camera in (theta, phi). (0,0) corresponds to the top view.

  • 'ampl' (default: 3)

    sets the magnitude of the 3D visual topography

  • 'zrange'

    2-vector setting the limits of the \(z\) axis.

  • 'colorMap' (default: Parula)

    Color map.

  • 'title'

    Title to display on the movie, if any.

  • 'factor' (default: 1)

    Correction factor to the OPD, for instance 5.55e-3 to convert the OPD into DM.

  • 'label' (default: 'Optical path difference (nm)')

    Label to put on the color scale.

  • 'imType' (default: 'OPD')

    Cell array of the images of the object to be displayed within the figure of the movie, side by side: 'OPD', 'T', 'DWx', 'DWy', 'Ph'.

  • 'axisDisplay' (default: true)

    Display the axes or not.

  • 'rate' (default: 25)

    Video rate in frames per second.

  • 'frameTime' (default: [])

    Time between successive frames. If specified, the time is displayed on each frame.

  • 'timeUnit' (default: s)

    Unit of the time to be displayed. Can be 's', 'min' or 'h'.

  • 'timeFontSize' (default: [])

    Set the font size displayed on the movie.

  • 'timeFontColor' (default: [0, 0, 0])

    Set the color of the displayed time label. By default it is black, but depending on the colormap of the image, it may be necessary to use a brighter color. White is [1, 1, 1].

  • 'timeSize'

    If the default size is not appropriate, choose a specific one using this option. 16 can be a good starting value.