![]() |
general image tracking commands
Hello- simple playing around with wrappers
I have two errors highlighted in red and would appreciate a nudge in the right direction(they're different instances of the same error). Also, I'd love some more simple commands examples like this: particularly the one which uses a particle filter to add or remove particles based on %Area/(Particle & Holes' Area) which is in the NI Vision Assistant. One last:There are many references to reading and writing image files. Is this only necessary in Java or when making an example which uses pictures from the a folder, e.g., 'vision images' in the project? Thankyou for any help! Code:
#include "WPILib.h" |
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?
|
Re: general image tracking commands
yes, i have, but my main point of interest is how to do the %Area/(Particle & Holes' Area) criteria
|
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? |
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".
|
Re: general image tracking commands
Thankyou! XD
|
Re: general image tracking commands
Quote:
|
| All times are GMT -5. The time now is 17:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi