Skip to content

Commit

Permalink
fix rotated pixels reallocation
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Mar 7, 2012
1 parent 3c0a24e commit 620b3d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FaceSubstitution/src/testApp.cpp
Expand Up @@ -164,8 +164,8 @@ void testApp::update() {
video->update();
if(video->isFrameNew()) {
if(numInputRotation90!=0 && numInputRotation90!=2){
if(video->getWidth()!=rotatedInput.getWidth()){
rotatedInput.allocate(video->getWidth(),video->getHeight(),3);
if(video->getWidth()!=rotatedInput.getHeight()){
rotatedInput.allocate(video->getHeight(),video->getWidth(),3);
}
video->getPixelsRef().rotate90To(rotatedInput,numInputRotation90);
if(gui.showInput){
Expand Down

0 comments on commit 620b3d9

Please sign in to comment.