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 Center および File ExchangeCamera Views についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by