Why doesn't it work?
i have the dll like this:
But in Labview(see attachment ResMap.vi) ,it will be overlap, how can i do it right? (I mean, what's wrong with the data typ converting?)
void __declspec(dllexport) __stdcall ResMap(float *ResMap,int imgwidth, int imgheight)
{
double dotpitch,e_pixel,d,e_degree,f_eye_cpd,dpp,f_eye_cpp;
dotpitch = Wd / imgwidth;
for (int x=0;x<imgwidth;x++)
for(int y=0;y<imgheight;y++)
{
e_pixel =sqrt((double)((x-imgwidth/2)^2 + (y-imgheight/2)^2));
... ...
f_eye_cpp = f_eye_cpd * dpp;
ResMap[x+imgwidth*y]= (float)f_eye_cpp;
... ...
}
}