LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to combine IMAQ datatypewith normal datatype

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?

 

im_fus.png

 

I appreciate any help.

Regards,

Marcin

0 Kudos
Message 1 of 6
(3,400 Views)

Hi bikekowal,

                    The VI that you have pasted is very small to see.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 2 of 6
(3,398 Views)

Here you have it in full size. BTW you can use the previous one in your LabView - just paste it.

 

im_fus.png

0 Kudos
Message 3 of 6
(3,396 Views)

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,

 

 

CLA, CLED
0 Kudos
Message 4 of 6
(3,377 Views)

Hi bikekowal!

 

Did you manage to try out the VIs that I attached? 

Did thes solve your problem?

 

Thanks for your reply!

 

Best regards, 

CLA, CLED
0 Kudos
Message 5 of 6
(3,362 Views)

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

0 Kudos
Message 6 of 6
(3,357 Views)