Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Real-time scaling of images

kbc2842 -

If you're using the Vision Development Module to do your processing, you can use imaqGrab() instead and get an Image*, which you can then pass to imaqScale().  If you're planning on using a different analysis toolkit, try setting the attributes IMG_ATTR_VSCALE and IMG_ATTR_HSCALE to 2 - I believe this will give you a scaled-down image, but I'm not an expert on NI-IMAQ.

Hope that helps!

Greg Stoll
Vision R&D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 11 of 13
(1,242 Views)

Thanks for your reply. Currently i am not using any analysis tool. I am just using Visual Studio C++ as my development environment. Let me see how i can use some analysis tools.

by the way thanks again!

0 Kudos
Message 12 of 13
(1,230 Views)

Thanks Gregstoll. This line " imaqScale(image, image, 2, 2, IMAQ_SCALE_SMALLER, IMAQ_NO_RECT); "solved the problem.

 

I had to use LabWindows/CVI ide as it has the best support for the CVI library and so it was easy to do with it.

 

I then converted the project to Visual C++ using the converter wizard.

Message Edited by kbv2842 on 08-13-2008 11:02 AM
Message Edited by kbv2842 on 08-13-2008 11:03 AM
0 Kudos
Message 13 of 13
(1,211 Views)