08-21-2007 05:33 PM
08-21-2007 06:09 PM
08-22-2007 02:36 AM
08-22-2007
09:42 AM
- last edited on
01-28-2025
12:19 PM
by
Content Cleaner
Hi Ruz,
Thanks for posting to the NI forums! Why don't you do the image processing with LabVIEW VIs? That would remove the ActiveX transfer of data between programs, and reduce your execution time. These VIs are available with the Vision Development Module. Also, you could inline a .m script file with the MathScript functionality in LabVIEW, which would also remove the data transfer.
Regards,
08-22-2007 10:54 AM
Hi. In response to...
"The conversion of the integer data to float data at the Matlab terminal costs time, specially when having huge arrays. "
Yes, I would agree with that. However, the Matlab Script Node in Labview does not have the ability to change the input type to an 8 bit type.
Unless you know of a way ?
08-22-2007
11:15 AM
- last edited on
01-28-2025
12:19 PM
by
Content Cleaner
Hi Maclean.
You stated.
Thanks for posting to the NI forums! Why don't you do the image processing with LabVIEW VIs? That would remove the ActiveX transfer of data between programs, and reduce your execution time. These VIs are available with the Vision Development Module. Also, you could inline a .m script file with the MathScript functionality in LabVIEW, which would also remove the data transfer.
I am not using the image processing VI's because they have limited functionality and variety compared with matlab. In my case I am trying to do a histogram equalization, but labview only allow me to do a normal distribution one, whereas in matlab I can do an "tiled version" of histogram equalization which gives much better results.
Mathscript is nice, but I am trying to use built-in matlab functions. I could attempt to code the algorithm from scratch, but the function source code in matlab is not public.
What are your feelings on converting the labview acquisition of images in matlab to .mex functions? From what I am reading this can be done with the Math Interface toolkit and claims to be able to speed up this sort of processing.
08-23-2007 01:56 PM
08-27-2007 03:33 PM
Hi MacLean,
Is it possible that I can give you the VIs to convert for me ? I want to test it out first before I purchase the math interface toolkit for 500.
Please advise,
Ruz
08-28-2007 01:49 PM
08-28-2007 06:34 PM