#include <ncutImage.h>
Public Member Functions | |
virtual Image< ELEMENT_TYPE > * | operator[] (unsigned long) |
virtual const Image< ELEMENT_TYPE > * | operator[] (unsigned long) const |
unsigned int | width () const |
Get the with of the images. | |
unsigned int | height () const |
Get the height of the images. | |
unsigned int | nChl () const |
Get the number of channels of the images. | |
unsigned int | length () const |
Get the length of the sequence. | |
virtual int | pushThrough (const Image< ELEMENT_TYPE > &frame) |
Push a frame onto the sequence and pop the first frame. | |
virtual int | pushFrame (const Image< ELEMENT_TYPE > &frame) |
Push a frame to the back of the sequence. | |
virtual void | popFrame () |
Pop the last frame of the sequence. | |
virtual int | clear () |
Remove all frames from the sequence. | |
Sequence () | |
Sequence empty constructor | |
Sequence (const Sequence &clone) | |
Sequence copy constructor. | |
virtual | ~Sequence () |
Sequence destructor. | |
virtual Sequence & | operator= (const Sequence &clone) |
Sequence assignment operator. | |
Protected Member Functions | |
bool | validateFrame (const Image< ELEMENT_TYPE > &frame) |
Checks if a frame can be added to this sequence. | |
Protected Attributes | |
std::deque< Image< ELEMENT_TYPE > * > | frames_ |
unsigned int | width_ |
unsigned int | height_ |
unsigned int | nChl_ |
Sequence
is the base class for PNGSequence
and BSISequence
. It stores pointers to a sequence images. Sequence
is a small wrapper around a STL deque containing pointers to all Sequence
s in the sequence, providing additional information, such as width, height and length, and special sequence manipulation functions.
|
Sequence empty constructor
Creates an empty |
|
Sequence copy constructor.
|
|
Remove all frames from the sequence.
Reimplemented in ncut::BSISequence. |
|
Get the height of the images.
|
|
Get the length of the sequence.
|
|
Get the number of channels of the images.
|
|
Sequence assignment operator.
|
|
Pop the last frame of the sequence. Deletes the last frame and removes it from the sequence. This does nothing if the sequence is empty. Reimplemented in ncut::PNGSequence, and ncut::BSISequence. |
|
Push a frame to the back of the sequence.
Image to the back of the sequence. The length of the sequence is increased by one. Only images of the same dimension as all other images in the sequence are accepted.
Reimplemented in ncut::PNGSequence, and ncut::BSISequence. |
|
Push a frame onto the sequence and pop the first frame.
Image onto the sequence and removes the first frame of the sequence. The length of the sequence remains unchanged. Only images of the same dimension as all other images in the sequence are accepted.
Reimplemented in ncut::PNGSequence, and ncut::BSISequence. |
|
Checks if a frame can be added to this sequence.
|
|
Get the with of the images.
|
|
Contains pointers to all images in this sequence. All images are owned by |
|
The height of all images in this sequence. |
|
The number of channels of all images in this sequence. |
|
The width of all images in this sequence. |