Package esys :: Package pyvisi :: Module movie :: Class Movie
[hide private]
[frames] | no frames]

Class Movie

Class that creates a file called 'make_movie' by default (if a parameter file name is not speficied) which contains a list of parameters required by the 'ppmtompeg' command to generate a movie from a series of images.


Attention: A movie cannot be generated from postscript (.ps) images.

Instance Methods [hide private]
 
__generateParameterFile(self)
Write the list of parameters into the file.
 
__init__(self, parameter_file='make_movie')
Initialise the generation of the movie.
 
__retrieveConversionCommand(self)
Retrieve the conversion command (depending on the image format) required by the 'ppmtompeg' command.
 
__retrieveFirstImageDetails(self)
Retrieve the first image name details.
 
__retrieveLastImageDetails(self)
Retrieve the last image name details.
 
__splitInput(self)
Split the image label (i.e.
 
imageList(self, input_directory, image_list)
The image list from which the movie is to be generated from.
 
imageRange(self, input_directory, first_image, last_image)
The image range from which the movie is to be generated from.
 
makeMovie(self, movie)
Generate the movie.
Method Details [hide private]

__init__(self, parameter_file='make_movie')
(Constructor)

 

Initialise the generation of the movie. If a parameter file name is supplied, the file will not be deleted once the movie has been generated. Otherwise, the temporary parameter file created will automatically be removed at the end.

Parameters:
  • parameter_file (String) - Name of the file containing the list of parameters required by the 'ppmtompeg' command.

__splitInput(self)

 

Split the image label (i.e. temp-0001.jpg) to separate the image name (i.e. temp-0001) and image format (i.e. jpg).

imageList(self, input_directory, image_list)

 

The image list from which the movie is to be generated from.

Parameters:
  • input_directory (String) - Directory in which the series of images can be found
  • image_list (List) - List of images name (including the extension)

imageRange(self, input_directory, first_image, last_image)

 

The image range from which the movie is to be generated from.

Parameters:
  • input_directory (String) - Directory in which the series of images can be found
  • first_image (String) - First image name (including the extension)
  • last_image (String) - Last image name (including the extension)

makeMovie(self, movie)

 

Generate the movie.

Parameters:
  • movie (String) - Movie name (including the .mpg extension)