Simultaneously horizontal and vertical subsampling in CMOS camera

조회 수: 2 (최근 30일)
shabnam
shabnam 2019년 1월 2일
댓글: Yiyu Zhou 2019년 11월 12일
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

채택된 답변

Walter Roberson
Walter Roberson 2019년 1월 2일
cam.Size.Subsampling.Set( bitor(uc480.Defines.SubsamplingMode.Vertical2X, uc480.Defines.SubsamplingMode.Horizontal2X) )
  댓글 수: 2
shabnam
shabnam 2019년 1월 2일
Thank you Wlater, it works!
Yiyu Zhou
Yiyu Zhou 2019년 11월 12일
Hello, do you know how to change the Area of Interest (AOI) in MATLAB? Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Camera Views에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by