Dynamic pixel data list. More...
Functions | |
cvbbool_t | AddPixel (PIXELLIST PixelList, const double *Components) |
Adds the Pixel consisting of the given Components to the end of the given PixelList. | |
cvbbool_t | ListPixel (PIXELLIST PixelList, cvbval_t Index, cvbval_t &X, cvbval_t &Y, cvbval_t &Z) |
Gets a Pixel's X, Y and Z __Component__s from the given PixelList at the given Index. | |
cvbbool_t | ListPixelEx (PIXELLIST PixelList, cvbval_t Index, double *Components) |
Gets a Pixel's __Component__s from the PixelList at the given Index. | |
cvbbool_t | ModifyListPixel (PIXELLIST PixelList, cvbval_t Index, const double *Components) |
Sets the Components of a Pixel in the PixelList at the given Index. | |
cvbval_t | PixelListCount (PIXELLIST PixelList) |
Gets the number of __Pixel__s in the given PixelList. | |
cvbdim_t | PixelListDimension (PIXELLIST PixelList) |
Gets the number of __Component__s in the given PixelList. | |
cvbbool_t | RemoveAllPixels (PIXELLIST PixelList) |
Clears the PixelList. | |
cvbbool_t | RemovePixel (PIXELLIST PixelList, cvbval_t Index) |
Removes a single entry from the PixelList at the given Index. | |
cvbbool_t | TruncatePixelList (PIXELLIST PixelList, cvbval_t Size) |
Resizes the PixelList to have at most the given Size. | |
Dynamic pixel data list.
A pixel list's Pixel consists of at least two components x and y, which are accessible via index 0 and 1 via ListPixelEx. Optionally up to 254 user defined data components can be added. The number of components is specified at the pixel list's creation via the Dimension parameter of CreatePixelList. The Dimension cannot be changed afterwards and every Pixel in the pixel list then has Dimension __Component__s.
If a CVB function returns a PIXELLIST see its documentation about the presence and meaning of additional __Component__s.
cvbbool_t AddPixel | ( | PIXELLIST | PixelList, |
const double * | Components ) |
Adds the Pixel consisting of the given Components to the end of the given PixelList.
[in] | PixelList | Pixel list handle of object to which the Pixel is added. |
[in] | Components | Pointer to array of __Component__s. Must have at least PixelListDimension elements. |
cvbbool_t ListPixel | ( | PIXELLIST | PixelList, |
cvbval_t | Index, | ||
cvbval_t & | X, | ||
cvbval_t & | Y, | ||
cvbval_t & | Z ) |
Gets a Pixel's X, Y and Z __Component__s from the given PixelList at the given Index.
This form interprets the Pixel Component__s as x, y and z. Often the z __Component is used for the __Pixel__s value (e.g. intensity for gray value images).
[in] | PixelList | Pixel list handle of object to retrieve the Pixel __Component__s from. |
[in] | Index | Index of the Pixel in the PixelList to be retrieved. Valid range is [0 .. PixelListCount[ (exclusive). |
[out] | X | Variable to receive the x component. |
[out] | Y | Variable to receive the y component. |
[out] | Z | Variable to receive the z component (maybe pixel value). |
cvbbool_t ListPixelEx | ( | PIXELLIST | PixelList, |
cvbval_t | Index, | ||
double * | Components ) |
Gets a Pixel's __Component__s from the PixelList at the given Index.
The Component__s at index 0 is x and the one at index 1 is y. Any other available __Component is custom and dependent on the function that created the IPixelList PIXELLIST.
[in] | PixelList | Pixel list handle of object to retrieve the pixel components from. |
[in] | Index | Index of the Pixel in the PixelLIst to be retrieved. Valid range is [0 .. PixelListCount[ (exclusive). |
[out] | Components | Pointer to a double array to be filled with the Pixel's components. Must have at least PixelListDimension elements. |
cvbbool_t ModifyListPixel | ( | PIXELLIST | PixelList, |
cvbval_t | Index, | ||
const double * | Components ) |
Sets the Components of a Pixel in the PixelList at the given Index.
This overwrites all the Components of the Pixel at the given Index.
[in] | PixelList | Pixel list handle of object to be modified. |
[in] | Index | Index of the Pixel to be modified. Range is [0 .. PixelListCount[ (exclusive). |
[in] | Components | Pointer to array of __Component__s to be set. Must have at least PixelListDimension elements. |
cvbval_t PixelListCount | ( | PIXELLIST | PixelList | ) |
cvbdim_t PixelListDimension | ( | PIXELLIST | PixelList | ) |
Gets the number of __Component__s in the given PixelList.
An IPixelList contains __Pixel__s defined at least through a coordinate pair (x and y). It may also contain up to 254 custom components with arbitrary interpretation.
[in] | PixelList | Pixel list handle of object to query. |
cvbbool_t RemoveAllPixels | ( | PIXELLIST | PixelList | ) |
Clears the PixelList.
After calling this function PixelListCount returns 0.
[in] | PixelList | Pixel list handle of object to clear. |
cvbbool_t RemovePixel | ( | PIXELLIST | PixelList, |
cvbval_t | Index ) |
Removes a single entry from the PixelList at the given Index.
[in] | PixelList | Pixel list handle of object to remove from. |
[in] | Index | Index in PixelList where to the remove the pixel. |
cvbbool_t TruncatePixelList | ( | PIXELLIST | PixelList, |
cvbval_t | Size ) |
Resizes the PixelList to have at most the given Size.
[in] | PixelList | Pixel list handle of object to resize. |
[in] | Size | Positive number of pixels to be at most in the PixelList. |
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.