|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: general image tracking commands
I had a problem with my BinaryImage file because they released a new update for WindRiver on Feb. 4 with additional functions in this class. Have you already gotten that update?
|
|
#2
|
||||
|
||||
|
Re: general image tracking commands
yes, i have, but my main point of interest is how to do the %Area/(Particle & Holes' Area) criteria
|
|
#3
|
||||
|
||||
|
Re: general image tracking commands
bool AxisCamera::IsFreshImage ( )
Return true if the latest image from the camera has not been retrieved by calling GetImage() yet. Returns: true if the image has not been retrieved yet. Im having trouble believing this.. can someone confirm? |
|
#4
|
||||
|
||||
|
Re: general image tracking commands
Yes, according to the source code of the WPILib, IsFreshImage() returns the member variable m_freshImage. This variable is set by the UpdatePublicImageFromCamera() function in the camera task and cleared when you call GetImage(). So yes, once an image is available, as long as you haven't retrieved it by calling GetImage, it will remain "fresh".
|
|
#5
|
||||
|
||||
|
Re: general image tracking commands
Thankyou! XD
|
|
#6
|
||||
|
||||
|
Re: general image tracking commands
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|