ofImage ofxOpenCV

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

    image1.load("D:/2.bmp");
    image1.mirror(FALSE, TRUE);
    image1.resize(512, 512);
    image1.crop(10, 10, 256, 256);
    image1.saveImage("D:/after.png", OF_IMAGE_QUALITY_BEST);

}

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

//--------------------------------------------------------------
void ofApp::draw(){
    image1.draw(0, 0);

}

댓글

  1. #pragma once

    #include "ofMain.h"
    #include "ofxOpenCV.h"

    class ofApp : public ofBaseApp{

    public:
    void setup();
    void update();
    void draw();

    ofImage image1;

    };

    답글삭제

댓글 쓰기

이 블로그의 인기 게시물

2D FFT of Gray Image by AForge

Draw Circle on PictureBox when Button Click - Winform