04-25-2017 11:08 AM
Then use the picture functions to get only the image part.
Ben
04-25-2017 11:09 AM
It might be worth going back to your original plan, but fixing the data flow problem.
Remember that if a wire goes to two or more destinations, then YOU DON'T KNOW which one will execute first.
If you don't care, that's fine, but if you DO care, you have to ensure the execution order somehow.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-25-2017 11:09 AM
Thanks for all your kind replies!
I am sure Image subset will do the job, but I've already lost information after the invoke note. As you can see from the picture shown above, the size of the original image is 6420*7480 pixels. Now the size of the saved image after invoke node is only 725*566 pixels without compression. This is not ideal for my later analysis. No information should be filtered during the collection stage.
04-25-2017 11:30 AM
The image displayed in IMAQ Ctrl is a 16 bit gray scale image. If you saved the image successfully, you should be able to load and display it with IMAQ.
Not sure about Windows 10, but previous Windows can only display 8 bit gray scale image. Most image applications don't support 16 bit gray scale images.
If you use Invoke Node to save the image, you will get an 8 bit image, which might not be the same as displayed.
You lost over 99% of gray scale levels when convert from 16 to 8 bit. The image quality depends on the conversion method. IMAQ does the conversion for you automatically before display.
A screen capture should give you an 8 bit image looks exactly the same as displayed.
04-26-2017 03:12 AM
Thanks for you reply! What I need is to save the image with good brightness contrast to see the features in image, but without losing any information. So convert it from 16 bit to 8 bit is not ideal. I need to process the image data later in Matlab for analysis.
Cheers.
04-26-2017 07:48 AM
I agree - the INVOKE NODE method is not ideal for such a large picture.
I'm unclear as to whether you tried your original plan (using IMAQ save) with the data flow problem fixed.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-26-2017 09:30 AM
Don't convert then.
Stick with IMAQ, save to 16 bit image for later use.
04-27-2017 04:39 AM
Sadly no. I remove the disposal function from the program, now the data should only go to Display and IMAQ write file 2, but still the saved image is pretty dim. I also tried save the image from the display, still does not help.
04-27-2017 05:38 AM
04-27-2017 06:32 AM
I don't know IMAQ, so I'm out of my element.
here's something to try:
If you know ahead of time how big your image is, then set another IMAGE indicator to that size and feed your image to it. Then use the INVOKE NODE, set it to 16-bit depth and save from there.
I don't think you can hide the huge image (invisible), but you can put it on another tab that isn't showing all of it.
That should give you a 16-bit image of the real size.
Blog for (mostly LabVIEW) programmers: Tips And Tricks