SHARE
TWEET

Untitled

a guest Apr 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void brightnesschange()
  2. {
  3.     char fname[MAX_PATH];
  4.     int offset = 50;
  5.     while (openFileDlg(fname))
  6.     {
  7.         Mat src = imread(fname, CV_LOAD_IMAGE_GRAYSCALE);
  8.         Mat aux = src.clone(); //scalar(255) - background alb
  9.         int vec[256];
  10.         int gout;
  11.  
  12.         for (int i = 0; i < src.rows; i++)
  13.         {
  14.             for (int j = 0; j < src.cols; j++)
  15.             {
  16.  
  17.                 src.at<uchar>(i, j) + 50;
  18.  
  19.             }
  20.         }
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top