That is one option - and by far the fastest! - to get to your 640x480 image. Keep in mind, however, what the description cited by @rtp_derahs hinted at with the pixel skipping: The
map function (based on the C-API function
CreateImageMap will only drop pixels when downscaling (or insert duplicates when upscaling). This is by far the fasted approach you can choose - but it unfortunately also won’t yield pretty images.
If you value quality higher than speed, have a look at the resize functions (
ResizeImage from the CVFoundation.dll if you are using the C-API,
cvb.foundation.resize in CVBpy etc…). This one will let you select an interpolation method (linear is usually a good trade-off between quality and speed) and yield pictures that looke nicer and have fewer rescaling artifacts than what
map yields. It is part of the Foundation Package, so it’s unfortunately not covered by the CameraSuite/ImageManager license.
If the latter is a serious limitation, have a look at
CreateMatrixTransformedImage (C-API). This - combined with a scaling matrix - will have the same effect (applying a linear interpolation as it goes). In CVBpy this maps to the
matrix_transform member function of the image object.
By the way: I see that CVBpy might have been an assumption on @rtp_derahs 's side - not sure what you are actually using. If you let us know the programm language you’re using it’s easier for us to give helpful pointers