What is your question? "Image detection" is a very ambiguous term. what do you want to detect? Do you have the vision toolkit?
(You don't mention MathScript, but you are asking in the MathScript forum)
Do you already have the code in matlab, but are trying to run it using MathScript?
Are you trying to rewrite your program it in plain LabVIEW?
What does the program actually do?