<< return to Pixycam.com

User Tools

Site Tools


wiki:v3:general_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:v3:general_api [2018/09/26 19:04]
pixycam
wiki:v3:general_api [2018/09/26 19:07] (current)
pixycam
Line 48: Line 48:
 === int8_t getResolution() === === int8_t getResolution() ===
  
-getResolution() gets the width and height of the frames used by the current program. ​ After calling this function, the width and height can be found in the **frameWidth** and **frameHeight** member variables. ​ Note, calling changeProg() will call getResolution() automatically. ​However, ​Pixy2 will automatically change programs if, for example, you call ccc.getBlocks() from the color connected components program followed by line.getMainFeatures() from the line tracking program. ​ These automatic program changes will not update **frameWidth** and **frameHeight** member variables. ​ +getResolution() gets the width and height of the frames used by the current program. ​ After calling this function, the width and height can be found in the **frameWidth** and **frameHeight** member variables. ​ Note, calling changeProg() will call getResolution() automatically ​and update **frameWidth** and **frameHeight**  
 + 
 + 
 +Pixy2 will automatically change programs if, for example, you call ccc.getBlocks() from the color connected components program followed by line.getMainFeatures() from the line tracking program. ​ These "automatic program changes" ​will not update **frameWidth** and **frameHeight** member variables.
  
  
wiki/v3/general_api.1537988653.txt.gz · Last modified: 2018/09/26 19:04 by pixycam