gauthiier/RefractiveIndex — Issue #6: windows / mac compatibility of file saving
Author: heavyside
Created: 2012-02-23 09:48:19+00:00
State: open

need to add...

if (ON OSX)
image.setFromPixels(cvGrayDiff1.getPixels(), cvGrayDiff1.width, cvGrayDiff1.height, OF_IMAGE_COLOR);
// or else (i think) we get bad access errors...

if (ON WINDOWS)
image.setFromPixels(cvGrayDiff1.getPixels(), cvGrayDiff1.width, cvGrayDiff1.height, OF_IMAGE_GRAYSCALE);
// or else we get black frames