Group CImageList¶
The functions in this section provide access to information, objects, and functionality of image lists. This includes updating, size and image retrieval, and clearance.
Public Functions¶
Public Functions Documentation¶
function spinImageListAppend¶
Appends all the images from one image list to another
See also: spinError
Parameters:
hImageListBaseThe image list to receive the otherhImageListToAppendThe image list to add to the other
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListClear¶
Clears a image list
See also: spinError
Parameters:
hImageListThe image list to clear
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListCreateEmpty¶
Creates an empty image list (image lists created this way must be destroyed)
See also: spinError
Parameters:
phImageListThe image list handle pointer in which the empty image list is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListDestroy¶
Destroys a image list
See also: spinError
Parameters:
hImageListThe image list to destroy
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListGet¶
Retrieves a image from a image list using an index. This function will return a SPINNAKER_ERR_INVALID_PARAMETER error if the input index is out of range.
See also: spinError
Parameters:
hImageListThe image list of the image to retrieveindexThe index of the imagephImageThe image handle pointer in which the image is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListGetByPixelFormat¶
spinImageListGetByPixelFormat (
spinImageList hImageList,
spinPixelFormatEnums pixelFormat,
spinImage * phImage
)
Retrieves an image from a image list given its pixel format. This function will return a NULL spinImage pointer if no matching image pixel format is found.
See also: spinError
Parameters:
hImageListThe image list of the image to retrievepixelFormatThe pixel format of the image to retrievephImageThe image handle pointer in which the image is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListGetByStreamIndex¶
spinImageListGetByStreamIndex (
spinImageList hImageList,
uint64_t streamIndex,
spinImage * phImage
)
Retrieves a image from a image list given its stream index. This function will return a NULL spinImage pointer if no matching image stream index is found.
See also: spinError
Parameters:
hImageListThe image list of the image to retrievestreamIndexThe stream index of the image to retrievephImageThe image handle pointer in which the image is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListGetImagesByPixelFormat¶
spinImageListGetImagesByPixelFormat (
spinImageList hImageList,
spinPixelFormatEnums pixelFormat,
spinImageList * hImageListReturn
)
Returns an image list containing images matching pixel format. This function will retrieve an empty list if no match is found.
See also: spinError
Parameters:
hImageListThe image list of the image to retrievepixelFormatThe pixel format of the image to retrievehImageListReturnThe image list that is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListGetSize¶
Retrieves the number of images in an image list
See also: spinError
Parameters:
hImageListThe image list where the images to be counted arepSizeThe unsigned integer pointer in which the number of images is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListLoad¶
Creates an image list object from file.
See also: spinImageListSave()
See also: spinError
Parameters:
phImageListThe image list handle pointer in which the empty image list is returnedfileNameName of the file to load an image object from.
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListRelease¶
function spinImageListRemove¶
Removes a image from a image list using its index
See also: spinError
Parameters:
hImageListThe image list of the camera to removeindexThe index of the image to remove
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListRemoveByPixelFormat¶
Removes a image from a image list using its pixel format
See also: spinError
Parameters:
hImageListThe image list of the image to removepixelFormatThe pixel format of the image to remove
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListRemoveByStreamIndex¶
Removes a image from a image list using its stream index
See also: spinError
Parameters:
hImageListThe image list of the image to removestreamIndexThe stream index of the image to remove
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinImageListSave¶
Saves an image list as an object to a file.
See also: spinImageListLoad()
See also: spinError
Parameters:
hImageListThe image list of the image to removefileNameName of the file to save the current image list object to. It is recommended to use the file extension 'sil'.
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error