@antocreo wrote:
Hi,
I have several sets of real time stream of data (float) that I need to manage. (face tracking)
each set counts a variable number of features (e.g. set "Brows" includes 5 features "BrowsUpL, BrowsDownL, BrowsUpR, etc..)I am using a vector to store the stream of data for each set. By doing this however my vector keeps on filling with floats of the individual feature and I need to cycle it according to the number of feature for each set. in other words, every n inputs the vector should be cleared and start again
(I hope it's clear so far)
My feeling is that what I am doing is too mechanic and I am wondering if there is a more efficient way to do so.
Here is the code and I hope this makes sense for someone?
Cheers
if(faceShift.getFound()) { for (int i =0; i<browsData.size(); i++) { if (browsData[i]>=0) { ofDrawBitmapString(browsName[i] + " " + ofToString(browsData[i]), 10, i*20+80); } } } //clearing the vectors every cycle //browsFeatCount is the number of features in the set "Brows" if (browsData.size()%browsFeatCount==0) { browsData.clear(); browsName.clear(); }
Posts: 2
Participants: 2