SMIL 1.1.1
|
Functions | |
RES_T | getHttpFile (const char *url, const char *outfilename) |
Get a file from an URL. | |
string | getHttpFile (const char *url) |
Get a file from an URL. | |
template<class T > | |
RES_T | read (const char *filename, Image< T > &image) |
Read image file. | |
template<class T > | |
RES_T | read (const vector< string > fileList, Image< T > &image) |
Read a stack of 2D images and convert then into a 3D image. | |
template<class T > | |
RES_T | write (const Image< T > &image, const char *filename) |
Write image into file. | |
template<class T > | |
RES_T | write (const Image< T > &image, const vector< string > fileList) |
Write a 3D image as a stack of 2D image files. | |
RES_T | getFileInfo (const char *filename, ImageFileInfo &fInfo) |
Get information about an image file. | |
BaseImage * | createFromFile (const char *filename) |
createFromFile TBD | |
template<class T > | |
RES_T | readRAW (const char *filename, size_t width, size_t height, size_t depth, Image< T > &image) |
Get an image saved in a RAW format. | |
template<class T > | |
RES_T | writeRAW (Image< T > &image, const char *filename) |
Save an image in a RAW format. | |
RES_T getHttpFile | ( | const char * | url, |
const char * | outfilename | ||
) |
Get a file from an URL.
[in] | url | : URL where to get the file |
[in] | outfilename | : name of the file where to save the file |
string getHttpFile | ( | const char * | url | ) |
Get a file from an URL.
Download file data into a string buffer.
[in] | url | : URL where to get the file |
RES_T read | ( | const char * | filename, |
Image< T > & | image | ||
) |
Read image file.
[in] | filename | : filename (with path) to read |
[out] | image | : output image |
Example
RES_T read | ( | const vector< string > | fileList, |
Image< T > & | image | ||
) |
Read a stack of 2D images and convert then into a 3D image.
[in] | fileList | : list of 2D image files to read |
[out] | image | : output image |
RES_T write | ( | const Image< T > & | image, |
const char * | filename | ||
) |
Write image into file.
[in] | image | : image to write to file |
[in] | filename | : file name |
RES_T write | ( | const Image< T > & | image, |
const vector< string > | fileList | ||
) |
Write a 3D image as a stack of 2D image files.
The file list must contain the same number of filenames as the 3D image depth.
[in] | image | : image to write to file |
[in] | fileList | : list of filenames. |
Example:
RES_T getFileInfo | ( | const char * | filename, |
ImageFileInfo & | fInfo | ||
) |
Get information about an image file.
[in] | filename | : filename |
[out] | fInfo | : struct ImageFileInfo with image information |
RES_T readRAW | ( | const char * | filename, |
size_t | width, | ||
size_t | height, | ||
size_t | depth, | ||
Image< T > & | image | ||
) |
Get an image saved in a RAW format.
[in] | filename | : file name |
[in] | width,height,depth | : image dimensions |
[out] | image | : output image |
Example
RES_T writeRAW | ( | Image< T > & | image, |
const char * | filename | ||
) |
Save an image in a RAW format.
[in] | image | : input image |
[in] | filename | : file name |