12-24-2013 01:10 AM
For MathScript RT, a general guideline to improve performance is NOT to use for loop, especially nested for loop. Alway try to change for loop into vector operation. You probably could use find to replace the for loop in your code, for example
d(find(S>=1)) = 255;
12-24-2013 02:55 AM
hello,
Thank you...i'll try it out...i was also wondering whether it would be better if i implemented find function in the node to get d image or simply output the S image and compute the d image in labview using maybe a threshold function?