Respected sir/madam,
I have a little problem to the implementation of dll files in Labview and I wish to get some assistance for the same to implement some of third party dll files.
Brief description of the problem:
As I see that to create a dll file generally VC++ is used in Lab view, But most of the times it is tedious to create complex applications in VC++ to create dll files, so I’ve used Matlab (version used 6.5) as a medium since it also uses the same C/C++ classes to compile programs and they are much simpler to use compared to VC++ to code, so I have created some dll files and generated C++ files as well with Matlab.
I have attached the same with this mail.
Please help me how do I link this dll file with Labview.
Brief description of the program:
AIM: To find the phase correlation between two images.
1. Read the two images.
2. Get the sizes (width *height) from the images say w1, h1, w2, h2 are the resulting values.
3. Let max be the maximum value among w1, h1, w2, h2.
4. Divide max by 2 (i.e. max/2).
5. Round off the resulting value to next integer.
6. Multiply by 2, let the final value be “size”.
EX: max=213
Max/2=106.5
Round off to next integer=107 multiply by 2=214
7. Compute the 2D FFT of size “size” from step 3.
8. formula used :
{fft1*conj (fft2)} / | {fft1*conj (fft2)} | = ARRAY
9. Get the maximum value from the array.
Note: parameters passed to Matlab as an array
Ex: imag1=’image1.ext’
Imag2=’image2.ext’