windows / mac compatibility of file saving #6

Closed
opened 2018-11-11 17:40:10 +01:00 by gauthiier · 0 comments
Owner

Author: @heavyside Posted at: 23.02.2012 09:48

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

Author: @heavyside Posted at: 23.02.2012 09:48 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
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Reference: gauthiier/RefractiveIndex#6
No description provided.