HDL Code Generation for Phase Correlation
5 views (last 30 days)
Show older comments
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));
0 Comments
Answers (0)
See Also
Categories
Find more on Linear Prediction in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!