added vid grab to IResponse
This commit is contained in:
parent
2bd7704f38
commit
51c71bdc15
@ -189,6 +189,7 @@ void RefractiveIndex::state_analysis()
|
||||
void RefractiveIndex::update()
|
||||
{
|
||||
state_analysis();
|
||||
|
||||
/*
|
||||
RefractiveIndex::_vidGrabber.grabFrame(); // get a new frame from the camera
|
||||
|
||||
|
||||
@ -200,6 +200,13 @@ void IResponseAnalysis::save_cb(Timer& timer)
|
||||
{
|
||||
_save_cnt++;
|
||||
|
||||
RefractiveIndex::_vidGrabber.grabFrame(); // get a new frame from the camera
|
||||
|
||||
if (RefractiveIndex::_vidGrabber.isFrameNew())
|
||||
{
|
||||
RefractiveIndex::_pixels = RefractiveIndex::_vidGrabber.getPixelsRef(); //get ofPixels from the camera
|
||||
}
|
||||
|
||||
cout << "IResponseAnalysis::saving...\n";
|
||||
|
||||
string file_name = ofToString(_save_cnt,2)+"_"+ ofToString(c,2)+"_"+ofToString(_run_cnt,2)+".jpg";
|
||||
|
||||
@ -278,7 +278,6 @@ void ShadowScapesAnalysis::save_cb(Timer& timer)
|
||||
RefractiveIndex::_pixels = RefractiveIndex::_vidGrabber.getPixelsRef(); //get ofPixels from the camera
|
||||
}
|
||||
|
||||
|
||||
cout << "ShadowScapesAnalysis::saving...\n";
|
||||
|
||||
string file_name;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user