There is no function available to explicity check if an image is binary, since it is just an 8-bit image after thresholding. You can write a function to go through the pixel values and see if there are only two values (0 and 1), which will tell you if it is binary. Otherwise, simply catch the error and apply the thresholding before running the binary processing functions.
Julie S.
Applications Engineer
National Instruments