Used to hold a list of image objects.
More...
Used to hold a list of image objects.
- Examples
- StereoAcquisition.cpp, and StereoGPIO.cpp.
◆ ImageList() [1/2]
◆ ~ImageList()
◆ ImageList() [2/2]
◆ Add()
Adds a copy of an image object.
- Parameters
-
| image | An image object to be added to this list. |
Implements IImageList.
◆ Append()
Appends a copy of the image list.
- Parameters
-
| list | Another ImageList object, whose elements are added to this list. |
Implements IImageList.
◆ Clear()
Clears the list of images and destroys their corresponding reference counted objects.
This is necessary in order to clean up the parent interface. It is important that the camera list is destroyed or is cleared before calling system->ReleaseInstance() or else the call to system->ReleaseInstance() will result in an error message thrown that a reference to the camera is still held.
- See also
- System::ReleaseInstance()
Implements IImageList.
◆ GetByIndex()
| ImagePtr GetByIndex |
( |
unsigned int |
index | ) |
const |
|
virtual |
Returns a pointer to an image object at the "index".
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the input index is out of range.
- Parameters
-
| index | The index at which to retrieve the Image object |
- Returns
- A pointer to an image object.
Implements IImageList.
- Examples
- StereoAcquisition.cpp.
◆ GetByPayloadType()
Returns a pointer to an image object with the specified image payload type.
This function will return a NULL ImagePtr if no image with matching image payload type is found.
- Parameters
-
| payloadType | The stream index of the Image object to retrieve |
- Returns
- A pointer to a image object.
Implements IImageList.
- Examples
- StereoAcquisition.cpp.
◆ GetByPixelFormat()
Returns a pointer to the first image object with the pixel format from the list.
This function will return a NULL ImagePtr if no image with matching pixel format is found.
- Parameters
-
| pixelFormat | The pixel format of the Image object to retrieve |
- Returns
- A pointer to an image object.
Implements IImageList.
◆ GetByStreamIndex()
| ImagePtr GetByStreamIndex |
( |
const uint64_t |
streamIndex | ) |
const |
|
virtual |
Returns a pointer to an image object with the specified stream index.
This function will return a NULL ImagePtr if no image with matching stream index is found.
- Parameters
-
| streamIndex | The stream index of the Image object to retrieve |
- Returns
- A pointer to a image object.
Implements IImageList.
◆ GetSize()
| unsigned int GetSize |
( |
| ) |
const |
|
virtual |
Returns the size of the image list.
The size is the number of Image objects stored in the list.
- Returns
- An integer that represents the list size.
Implements IImageList.
- Examples
- StereoAcquisition.cpp.
◆ Load()
| static ImageList Load |
( |
const char * |
filename | ) |
|
|
static |
Creates an image list object from file.
- Parameters
-
| filename | Name of the file to load an image object from. |
- See also
- Save()
◆ operator=()
◆ operator[]() [1/2]
| ImagePtr operator[] |
( |
unsigned int |
index | ) |
|
|
virtual |
Array subscription operators.
Implements IImageList.
◆ operator[]() [2/2]
| const ImagePtr operator[] |
( |
unsigned int |
index | ) |
const |
◆ Release()
◆ RemoveByIndex()
| void RemoveByIndex |
( |
unsigned int |
index | ) |
|
|
virtual |
Removes an image at "index" and destroys its corresponding reference counted object.
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the input index is out of range.
- Parameters
-
| index | The index at which to remove the Image object |
Implements IImageList.
◆ RemoveByPayloadType()
Removes an image object with the specified payload type from the list.
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the list does not have any image with the specified payload type.
- Parameters
-
| payloadType | The payload type of the Image object to retrieve |
Implements IImageList.
◆ RemoveByPixelFormat()
Removes an image object with the image pixel format from the list.
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the list does not have any image with the specified pixel format.
- Parameters
-
| pixelFormat | The pixel format of the image object to remove |
Implements IImageList.
◆ RemoveByStreamIndex()
| void RemoveByStreamIndex |
( |
const uint64_t |
streamIndex | ) |
|
|
virtual |
Removes an image object with the stream index from the list.
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the list does not have any image with the specified stream index.
- Parameters
-
| streamIndex | The stream index of the Image object to retrieve |
Implements IImageList.
◆ Save()
| void Save |
( |
const char * |
filename | ) |
|
|
virtual |
Saves an image list as an object to a file.
- Parameters
-
| filename | Name of the file to save the current image list object to. It is recommended to use the file extension 'sil'. |
- See also
- Load()
Implements IImageList.
The documentation for this class was generated from the following file: