![]() |
BoundingRect Height
Hello, does anyone know how to get the BoundingRect Height data for a particle in the vision analysis. My team used a vector<particleanalysisreport> but all we could find was boundingRect which did not tell us anything.
|
Re: BoundingRect Height
Sure thing. When you get the vector back, I'll assume (for the moment) that you can iterate through the vector and get the ParticleAnalysisReport objects back...
Code:
ParticleAnalysisReport& par = (*vPAR)[i];That's the ticket. bob |
Re: BoundingRect Height
The definition of Rect is in WPILib\nivision.h
Code:
typedef struct Rect_struct { |
Re: BoundingRect Height
Thanks Mike for the official word. :-)
bob |
Re: BoundingRect Height
Thanks for the help. If I know a particle location in the vector like
int particle vector->at(particle); //particle is the particle number i want is the correct sysntax to get the boundingrect height ParticleAnalysisReport& par = (*vector)[particle]; int h= par.boundingRect.height; |
Re: BoundingRect Height
Code:
ParticleAnalysisReport *p; |
| All times are GMT -5. The time now is 13:06. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi