hi all,
i use CImg for my image processing work. I had written a small piece of code which is follows:
#include "../CImg.h"
#include <iostream>
using namespace std;
using namespace cimg_library;
int main(int argc,char**argv)
{
CImg<int> img(argv[1]);
CImgDisplay disp;
disp.assign(img);
while(!disp.is_closed)
disp.wait();
return 0;
}
Now i want to select an area from the displayed image. Can some one tell me how to select an area from displayed image and store the selected pixels, and display the selected region in different display window. If some one can provide code, it will be of great help to me.
Thank you all