ofImage resize is so inefficient,any ideas?

if image size is large,resize is so slow,any ideas?
@arturo

If you only want it for rendering, just use OpenGL to scale it. If you need to store it back to RAM you can also render it smaller and then use ofTexture::readToPixels but that might not be that much faster.

yeah,but i need make big photo small,and do something with it for processing much more fast…

one option is that you might try using opencv to resize the image. I know with opencv for example, there are different interpolations that can be faster / slower such as nearest neighbor, linear, bilinear, etc

thx

may be this is ok:

ofFbo fbo;
fbo.allocate(src.getWidth()/8,src.getHeight()/8);
fbo.begin();
ofScale(1.0/8,1.0/8);
src.draw(0,0);
fbo.end();

ofPixels pix;
fbo.readToPixels(pix);

dst.setFromPixels(pix);