Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IPI_ImageBorderSize prototype missing

I am using IMAQ Vision for LabWindows/CVI toolkit. A tool function IPI_ImageBorderSize (as described on page 14-34 of the manual) does not have a prototype defined in Imaq_CVI.h file. Therefore, my guess is that this function doesn't really exist. Is there a patch or work around that I can use to achieve the same result?
0 Kudos
Message 1 of 3
(3,132 Views)
This functionality was fixed in Vision 5 and later. The IPI_ImageBorderSize function has been replaced by imaqSetBorderSize and imaqGetBorderSize. As a workaround to set the border size, you can create a new image and set the border size there. Then copy to old image into the new image.

-Brent
0 Kudos
Message 2 of 3
(3,132 Views)
Thanks for your response Brent. I have found out through trial and error that if you use the IPI_Copy function, it will overwrite the border size assignment of the destination to be the same as the source image border size. Therefore one has to copy the image to an array and then from the array back to an image definition with the correct border size.
0 Kudos
Message 3 of 3
(3,132 Views)