Skip to content

Commit

Permalink
High pass and blur also fixed for Windows, albeit sloppily
Browse files Browse the repository at this point in the history
  • Loading branch information
robotconscience committed Jul 23, 2013
1 parent 122a4cd commit 8106de9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addons/ofxTSPS/libs/ofxTSPS/src/PeopleTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,15 +886,19 @@ namespace ofxTSPS {
cv::blur(dst, dst, cv::Size((p_Settings->highpassNoise * 2 )+1, (p_Settings->highpassNoise * 2 )+1));
}

ofxCv::toOf( dst, grayDiff );
static ofImage temp;
ofxCv::toOf( dst, temp );
grayDiff.setFromPixels( temp.getPixelsRef() );
//grayDiff.update();
}

// blur filter
if(p_Settings->bSmooth){
cv::Mat mat = ofxCv::toCv(grayDiff);
cv::blur(mat, mat, cv::Size((p_Settings->smooth * 2) + 1, (p_Settings->smooth * 2) + 1));
ofxCv::toOf( mat, grayDiff);
static ofImage temp;
ofxCv::toOf( mat, temp );
grayDiff.setFromPixels( temp.getPixelsRef() );
}

//-----------------------
Expand Down

0 comments on commit 8106de9

Please sign in to comment.