Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i add rows and columns next to my image, so i can place a textoverlay on the blank rows/pixels?

Hello,

Topic = Problem,

found out that there is an SetImageSize Function in the Vision Development Module, but maybe there is some other way to do this with the Vision Builder 2009 SP1 and/or LabView 8.5 without the VDM?

 

Thanks!

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

Hi,

i tried to build a little custom VI (see noChangeOk.png) and it works fine, as long as i dont change the size of the image.

 

If i try to add something to the X/Y resolution the output image has the correct size, but is completly black (See anyChangeImageBroken.png)?

 

Any solutions for that?

 

Thank you!

Download All
0 Kudos
Message 2 of 6
(3,465 Views)

The only solution I know is to create a new image that is the larger size that you want, then use ImageToImage to paste the old image into the new image.

 

Setting the image size directly either erases the image or rearranges it into garbage.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 3 of 6
(3,460 Views)

It looks like there is no ImageToImage.vi available in labview without the development module.

(The Search only returns ImageToArray and ColorImageToArray).

 

Any solutions available without the devkit?

0 Kudos
Message 4 of 6
(3,447 Views)

It won't be very efficient, but you can convert the image to an array, use the LabVIEW array primitives to add the band you want for overlay, then use array to image to convert the array back to an image and the overlay functions to overlay text into the band you added.

 

-Christophe

0 Kudos
Message 5 of 6
(3,425 Views)

Thanks ChristopheC, but there is no ArrayToImage available. Maybe this cant be done without the devkit 😞

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