Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

RGB color is strange and green colored saturated

$
0
0

@bemoregt wrote:

HI, All.

//--------------------------------------------------------------
void ofApp::setup(){

decoder.decode("/Users/mun/Desktop/cat.gif");

file = decoder.getFile();

}
//--------------------------------------------------------------
void ofApp::draw(){

float normalX = float(ofGetMouseX()) /ofGetWidth();
file.drawFrame(normalX * file.getNumFrames(),
               0,0,file.getWidth()*2,  file.getHeight()*2);

}

I’ve tested ofxGIFDecoder addon.
But, Like above picture, RGB color is strange and green colored saturated for all gif files.

So, I want to Color Convert.
But, This code use ofxGif file structure instead of ofImage or cv::Mat.
So I cant convert color.
And, Unfortunately, ofxGifDecoder site doesn’t have issue board.

How can I rearrange the color for GIF files in this code?

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles