/mnt/FILES/CODE/OF/OF_100_64B_GCC6/apps/myApps/myApp/src/myApp.cpp: In member function ‘ofFloatImage ofApp::processImg(ofFloatImage)’:
/mnt/FILES/CODE/OF/OF_100_64B_GCC6/apps/myApps/myApp/src/myApp.cpp:276:44: error: cannot bind non-const lvalue reference of type ‘ofPixels_<unsigned char>&’ to an rvalue of type ‘ofPixels_<unsigned char>’
276 | tempPixels.pasteInto(processImg.getPixels(), 0,0 );
no unfortunately the problem persist with the proposed solution (which is not the way it should be done btw)
ofPixels & tempPixels = img.getPixels();
/mnt/FILES/CODE/OF/OF_100_64B_GCC6/apps/myApps/myApp/src/myApp.cpp: In member function ‘ofFloatImage ofApp::processImg(ofFloatImage)’:
/mnt/FILES/CODE/OF/OF_100_64B_GCC6/apps/myApps/myApp/src/myApp.cpp:275:57: error: cannot bind non-const lvalue reference of type ‘ofPixels&’ {aka ‘ofPixels_<unsigned char>&’} to an rvalue of type ‘ofPixels’ {aka ‘ofPixels_<unsigned char>’}
275 | ofPixels & processImgtempPixels = processImg.getPixels();
The following code works but it forces to create ofPixels instances and then recreate the original image.