I have a color image created in Vision which contains red and blue corresponding to the highest and lowest values, respectively, in the image. Is there a simple and convenient way to create a colorbar for showing, which colors correspond to which value (like the command "colorbar" in MatLab)?
You can use the Intensity Graph's color ramp in LabVIEW and hide the intensity graph by changing it's color to transparent. Then in LabVIEW, you can use the property node of the graph to access it's color ramp and set the colors. Here's a quick example that creates the color ramp you described:
Very cute and no memory required... If you need more accurate LUT on your color bar table you can wire the same attribute node with the imaq LUT after separating the different components. Therefore follow the example of color array table and watch how a LUT is created in imaq examples (values are multiples of hex 100 and hex 1000 and hex). This also work very nice to plot ".dat" files (float format or other) in an intensity graph with imaq LUT to compare it with images linked with the same LUT. see jpg files to see IG to lut and lut to IG