IDS uEye camera control in .NET framework.

4 ビュー (過去 30 日間)
Yao Qiu
Yao Qiu 2019 年 9 月 24 日
コメント済み: Yiyu Zhou 2019 年 11 月 12 日
Hello, I am using the .NET framework with MATLAB to program the IDS ueye camera, but now I have problems with following issues:
I wanted to do the subsampling in both horizontal and vertical orientation, but from the uEye .NET manual, there is no options for subsampling in both orientation, here is the provided instruction from the manual:
cam.Size.Subsampling.Set(uEye.Defines.SubsamplingMode mode)
parameter mode options:
uEye.Defines.SubsamplingMode.Vertical2X
uEye.Defines.SubsamplingMode.Horizontal2X
uEye.Defines.SubsamplingMode.Vertical3X
uEye.Defines.SubsamplingMode.Horizontal3X
uEye.Defines.SubsamplingMode.Vertical4X
uEye.Defines.SubsamplingMode.Horizontal4X
uEye.Defines.SubsamplingMode.Vertical5X
uEye.Defines.SubsamplingMode.Horizontal5X
uEye.Defines.SubsamplingMode.Vertical6X
uEye.Defines.SubsamplingMode.Horizontal6X
IuEye.Defines.SubsamplingMode.Vertical8X
uEye.Defines.SubsamplingMode.Horizontal8X
uEye.Defines.SubsamplingMode.Vertical16X
uEye.Defines.SubsamplingMode.Horizontal16X
uEye.Defines.SubsamplingMode.Disable
There is no other options,but it says that the two parameters Vertical and Horizontal can be linked by logical OR, I tried to do that but failed and here is the error:
cam.Size.Subsampling.Set(uEye.Defines.SubsamplingMode.Vertical4X|uEye.Defines.SubsamplingMode.Horizontal4X);
Error : Undefined operator '|' for input arguments of type 'uEye.Defines.SubsamplingMode'.
cam.Size.Subsampling.Set(uEye.Defines.SubsamplingMode.Vertical4X | Horizontal4X);
Error : Undefined function or variable 'Horizontal4X'.
So do you know how to solve this problem? I am looking foward to you answer and I would be very appreciated about that

採用された回答

Yiyu Zhou
Yiyu Zhou 2019 年 11 月 12 日
cam.Size.Subsampling.Set( bitor(uc480.Defines.SubsamplingMode.Vertical2X, uc480.Defines.SubsamplingMode.Horizontal2X) )
  2 件のコメント
Yao Qiu
Yao Qiu 2019 年 11 月 12 日
Thanks for your answer, is the 'uc480' the camera ID? Can I substitute the 'uc480' with 'uEye'?
Yiyu Zhou
Yiyu Zhou 2019 年 11 月 12 日
Yes. The trick is bitor()

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for IP Cameras についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by