double HMatrixFourRe[ImageHeight * ImageWidth]; double HMatrixFourIm[ImageHeight * ImageWidth]; double Denominator; Fourier(HMatrix, HMatrixFourRe, HMatrixFourIm, ImageWidth, ImageHeight, ImageWidth, ImageHeight); double WxFourRe[ImageHeight * ImageWidth]; double WxFourIm[ImageHeight * ImageWidth]; double WyFourRe[ImageHeight * ImageWidth]; double WyFourIm[ImageHeight * ImageWidth]; double Delta[ImageWidth * ImageHeight]; if(ImageIRe == NULL) { ImageIRe = new double[ImageHeight * ImageWidth]; ImageIIm = new double[ImageHeight * ImageWidth]; Fourier(ImageI, ImageIRe, ImageIIm, ImageWidth, ImageHeight, ImageWidth, ImageHeight); } Fourier(Wx, WxFourRe, WxFourIm, ImageWidth, ImageHeight, ImageWidth, ImageHeight); Fourier(Wy, WyFourRe, WyFourIm, ImageWidth, ImageHeight, ImageWidth, ImageHeight); double ImageLFourReDerXL[ImageHeight * ImageWidth]; double ImageLFourImDerXL[ImageHeight * ImageWidth]; //dx Fourier(ImageLXDerivate, ImageLFourReDerXL, ImageLFourImDerXL, ImageWidth, ImageHeight, ImageWidth, ImageHeight); double ImageLFourReDerYL[ImageHeight * ImageWidth]; double ImageLFourImDerYL[ImageHeight * ImageWidth]; //dy Fourier(ImageLYDerivate, ImageLFourImDerYL, ImageLFourReDerYL, ImageWidth, ImageHeight, ImageWidth, ImageHeight);
double ColumnIn[ArrInHeight];for(long row = 0; row < ArrInHeight; row++){ ColumnIn[row] = ArrIn[row * ArrInWidth + col]; //здесь возникает ошибка}
C++ (Qt)std::vector<double> ImageLFourReDerYL[ImageHeight * ImageWidth];std::vector<double> ImageLFourImDerYL[ImageHeight * ImageWidth]; //dyFourier(ImageLYDerivate, &ImageLFourImDerYL[0], &ImageLFourReDerYL[0], ImageWidth, ImageHeight, ImageWidth, ImageHeight);
if(ImageIRe == NULL) { ImageIRe = new double[ImageHeight * ImageWidth]; ImageIIm = new double[ImageHeight * ImageWidth]; Fourier(ImageI, ImageIRe, ImageIIm, ImageWidth, ImageHeight, ImageWidth, ImageHeight); }
C++ (Qt)size_t totalSize = ImageHeight * ImageWidth;if (ImageIRe.size() != totalSize) { ImageIRe.resize(totalSize); ImageIIm.resize(totalSize); Fourier(ImageI, &ImageIRe[0], &ImageIIm[0], ImageWidth, ImageHeight, ImageWidth, ImageHeight); }
double Array[512 * 512]