HDL Code Generation for Phase Correlation

5 views (last 30 days)
Ashton
Ashton on 17 Feb 2014
Edited: Ashton on 17 Feb 2014
I have the matlab codes for phase correlation given two images. And I would like to convert this code to VHDL codes but i have very little knowledge on VHDL. Can anyone assist? Thank you.
image1 = rgb2gray(imread('image1.jpg'));
image2 = rgb2gray(imread('image2.jpg')); F1 = fft2(image1);
F2 = fft2(image2);
conj_F2 = conj(F2); % complex conjugate of F2
FFTR = F1.*conj_F2;
magFFTR = abs(FFTR);
FFTRN = (FFTR./magFFTR); % calculate cross-power spectrum
result = ifft2(double(FFTRN));

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!