08-13-2012 07:06 AM
Hi,
I have a problem with connecting data from IMAQ (particularly Threshold.vi) with numerical image data. In this VI I want to pass the data from AutoBThreshold 2 to the ArraySize. In general, I have a problem with IMAQ output datatype because I cannot make any numerical operations with these data. Is there any other way to get a binary image without using IMAQ Threshold functions or is there a way to connect the two blocks I mentioned before?
I appreciate any help.
Regards,
Marcin
08-13-2012 07:29 AM
Hi bikekowal,
The VI that you have pasted is very small to see.
08-13-2012 07:48 AM
Here you have it in full size. BTW you can use the previous one in your LabView - just paste it.
08-14-2012 07:32 AM
Hi bikekowal!
If I unserstand you properly, you would like to convert an image file into binary image.
For this purpose I found a solution on NI Community:
https://decibel.ni.com/content/docs/DOC-8735
I managed to create a binary image using the VI attached to the solution above.
Why would you like to connect array size to the Image Dst Out of the Treshold VI? Would you like to calculate the resolution of your image?
I created an example for you too, using the AutoBThreshold 2 VI. The two solutions returned the same result by me.
If you have any questions, feel free to post them.
Best regards,
08-17-2012 06:50 AM
Hi bikekowal!
Did you manage to try out the VIs that I attached?
Did thes solve your problem?
Thanks for your reply!
Best regards,
08-17-2012 01:02 PM
Hi,
Sorry for not replying. The problem was a little bit different. What I was looking for was actually really simple. I was looking for a way to connect a thresholding VI with a array subset. And the solution is IMAQ ImageToArray VI. So we can say the problem is solved.
regards,
Marcin