WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

countPixels

Returns the number of pixels that match a given colour bin either for a rectangle or for the full image.
Syntax
Blackfin. countPixels(bin)
Blackfin. countPixels(bin,x1,x2,y1,y2)
Where Blackfin is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'bin'
The colour bin in the range 0 to number of bins - 1.
'x1'
Either the left or right edge of the rectangle.
'x2'
Either the left or right edge of the rectangle.
'y1'
Either the top or bottom edge of the rectangle.
'y2'
Either the top or bottom edge of the rectangle.
Returns
uint32_t

 

 

Valid XHTML 1.0 Transitional