We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ofImage img; ofxCvColorImage cvimg; ofImage roiImg; void testApp::setup(){ ofSetDataPathRoot("E:/Program Files/of_v0.8.0_vs_release/examples/graphics/imageLoaderExample/bin/data/images/"); img.loadImage("gears.gif"); cvimg.allocate(img.getWidth(),img.getHeight()); roiImg.allocate(100,100,OF_IMAGE_COLOR); } //-------------------------------------------------------------- void testApp::update(){ cvimg.setFromPixels(img.getPixelsRef()); cvimg.setROI(0,0,100,100); roiImg.setFromPixels(cvimg.getRoiPixelsRef()); ; =>>0.80 BUG!! of0.74 no problem cvimg.resetROI(); } //-------------------------------------------------------------- void testApp::draw(){ cvimg.draw(0,0); roiImg.draw(320,240); }
roiPixel width = 0,height = 0 channels = 0 bAllocated =false pixelsOwner = false
[ofGLUtils: error ] ofGetGlFormatAndType(): internal format not recognized, returning GL_RGBA
void ofTexture::loadData(const ofPixels & pix){ ofSetPixelStorei(pix.getWidth(),pix.getBytesPerChannel(),pix.getNumChannels()); loadData(pix.getPixels(), pix.getWidth(), pix.getHeight(), ofGetGlFormat(pix), ofGetGlType(pix)); =>>cout error... }
The text was updated successfully, but these errors were encountered:
Found the bug, and solved with this PR
Sorry, something went wrong.
@HalfdanJ
hi,doing really no problem?
of0.74 is bRoiPixelsDirty not bPixelsDirty ...
doing so will be better? ... cvimg.resetROI(); cvimg.flagImageChanged(); ...
1fc72a0
Merge pull request #2705 from HalfdanJ/master
692c1ca
Fixes typo in ofxCvImage that broke getRoiPixelsRef, fixes #2520
No branches or pull requests
roiPixel width = 0,height = 0 channels = 0 bAllocated =false pixelsOwner = false
[ofGLUtils: error ] ofGetGlFormatAndType(): internal format not recognized, returning GL_RGBA
void ofTexture::loadData(const ofPixels & pix){
ofSetPixelStorei(pix.getWidth(),pix.getBytesPerChannel(),pix.getNumChannels());
loadData(pix.getPixels(), pix.getWidth(), pix.getHeight(), ofGetGlFormat(pix), ofGetGlType(pix)); =>>cout error...
}
The text was updated successfully, but these errors were encountered: