Log in

View Full Version : Function to Call Percent Size?


Team1710
13-02-2009, 16:51
Is there a function in the WPI Library in a class somewhere that allows me to call the percent size of the target being processed? I need to use it to calculate range.

Thanks!

MattD
13-02-2009, 17:28
The ParticleAnalysisReport structure has a field called particleToImagePercent. You'd use it the same way you'd look at the x and y coordinates.

double percent = par->particleToImagePercent;

Team1710
13-02-2009, 18:23
Do you need to initialize or include anything before you call that function?