Guest User

Untitled

a guest
Feb 22nd, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. void MainWindow::showResult()
  2. {
  3.     MaskedImage = QImage(OutWidth,OutHeight,QImage::Format_ARGB32);
  4.     for(int x = 0; x < OutWidth; x++)
  5.     {
  6.         for(int y = 0; y < OutHeight; y++)
  7.         {
  8.             double greyValue = final[y * OutWidth + x][0];
  9.             MaskedImage.setPixel(x,y,*reinterpret_cast<uint*>(&greyValue));
  10.             //MaskedImage.setPixel(x,y,greyValue);
  11.         }
  12.     }
  13.     ui->label_FFT->setPixmap(QPixmap::fromImage(MaskedImage));
  14. }
Advertisement
Add Comment
Please, Sign In to add comment