Hello,
what I want to do is just load an image and change its contrast…
I tried this to load the image
ofImage loader;
ofxCvGrayscaleImage image;
float w;
float h;
loader.loadImage("image.jpg");
image.allocate(loader.getWidth(), loader.getHeight());
image.setFromPixels(loader.getPixels(),loader.getWidth(), loader.getHeight());
w = image.getWidth() * 1;
h = image.getHeight() * 1;
but I only get part of the picture displayed and not in ‘good’ resolution
am I doing something wrong ?