PFNC buffer class implementing the IPFNCBuffer interface. More...
Inherits object.
Public Member Functions | |
cvb.PFNCBuffer | from_object (Union[cvb.Image] obj) |
Create a PFNC buffer from a compatible object. More... | |
int | increment (self, int index) |
Gets the increment to the next element in the given dimension. More... | |
int | length (self, int index) |
Gets the number of elements in the given dimension. More... | |
Properties | |
pfnc_value = property | |
int: Gets the PFNC value (format identifier) of this buffer. | |
rank = property | |
int: Gets the number of dimensions of this buffer. | |
PFNC buffer class implementing the IPFNCBuffer interface.
cvb.PFNCBuffer from_object | ( | Union[cvb.Image] | obj | ) |
Create a PFNC buffer from a compatible object.
obj : Union[cvb.Image] Source object.
cvb.PFNCBuffer A PFNC buffer containing the data of the specified object.
int increment | ( | self, | |
int | index | ||
) |
Gets the increment to the next element in the given dimension.
For a 2d image dimension 0 would be the x-increment (offset to next pixel) and dimension 1 would be the y-increment (offset to next line). The maximal dimension is the rank - 1.
index : int Zero-based dimension to access.
int Increment variable to receive the offset to the next element in the given dimension in bytes.
int length | ( | self, | |
int | index | ||
) |
Gets the number of elements in the given dimension.
index : int Zero-based dimension to access.
int Number of elements in the given dimension.