Simultaneously horizontal and vertical subsampling in CMOS camera

Hi
I have a CMOS camera with image matrix size 1216*1936. This code reduces the size:
cam.Size.Subsampling.Set(uc480.Defines.SubsamplingMode.Vertical2X)
But I want to reduce the size both in vertical and horizontal directions. Apparently I should use logical OR but with this code dosen't do that and still works for one dimension:
cam.Size.Subsampling.Set(uc480.Defines.SubsamplingMode.Vertical2X)|cam.Size.Subsampling.Set(uc480.Defines.SubsamplingMode.Horizontal2X)
Would you please help me with that
Thanks

 Respuesta aceptada

cam.Size.Subsampling.Set( bitor(uc480.Defines.SubsamplingMode.Vertical2X, uc480.Defines.SubsamplingMode.Horizontal2X) )

2 comentarios

Thank you Wlater, it works!
Hello, do you know how to change the Area of Interest (AOI) in MATLAB? Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Support Package for USB Webcams en Centro de ayuda y File Exchange.

Preguntada:

el 2 de En. de 2019

Comentada:

el 12 de Nov. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by