ImageCollection Class Documentation
class ImageCollectionNamespace:datalogics_interface
Detailed Description
An image collection can hold multiple images, created from an image file.
The full set of images in the collection can be saved to a single image file, but only as a .tif image file. For any other file type (JPG, PNG, and so on), the collection can only be saved as one image object per file.
Referenced by
Constructor & Destructor Documentation
ImageCollection
ImageCollection()Create an empty image collection, which can have Image objects added to it.
ImageCollection
ImageCollection(const std::string & file_name)Parameters
file_name: const std::string &
Create an empty image collection, which can have Image objects added to it.
ImageCollection
ImageCollection(ImageCollection && )Parameters
~ImageCollection
~ImageCollection()Member Function Documentation
append
void append(Image image)Parameters
image: Imagethe Image object to be inserted.
Returns:
voidInsert the given Image object at the end of the ImageCollection.
get_count
int get_count()Returns:
intThe count of Image objects in the collection.
Gets the number of Image objects in this collection.
get_image
Image get_image(int index)Parameters
index: intthe index of the Image to be retrieved.
Returns:
Imagethe Image object at the specified index.
Retrieve the Image object at the specified index. Note that an exception will be generated if an index is given which is out of range.
operator=
ImageCollection & operator=(ImageCollection && )Parameters
Returns:
ImageCollection &save
void save(const std::string & filename, ImageType type)Parameters
filename: const std::string &the file which to save the image.
type: ImageTypethe image type to which to be saved. NOTE: The resolution of the first Image in the collection is used as the target Resolution for saving. (Support for saving multiple, different resolutions isn't available)
Returns:
voidSave the images in the collection to the specified file and image type. Multiple images can only be save to an image type of TIFF, otherwise an exception will be thrown.
save
void save(const std::string & filename, ImageType type, const ImageSaveParams & params)Parameters
filename: const std::string &the file which to save the image.
type: ImageTypethe image type to which to be saved. NOTE: The resolution of the first Image in the collection is used as the target Resolution for saving. (Support for saving multiple, different resolutions isn't available)
params: const ImageSaveParams &
Returns:
voidSave the images in the collection to the specified file and image type. Multiple images can only be save to an image type of TIFF, otherwise an exception will be thrown.