View Single Post
  #3   Spotlight this post!  
Unread 04-04-2016, 08:40 AM
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: How to lower image pixels in straight NIVision code.

You can use imaqScale or imaqResize. imaqScale will change your image width and height to a factor or multiple of the original width and height, while imaqResize will change it to any arbitrary size. I would recommend imaqScale because I'd assume it's faster.

Also, you don't need to keep deleting and recreating Image objects (as in your second code snippet). You can use the same image object multiple times for camera capture with IMAQdx

Last edited by euhlmann : 04-04-2016 at 08:51 AM.
Reply With Quote