필터 지우기
필터 지우기

IDS uEye camera control in .NET framework.

조회 수: 8 (최근 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 CenterFile Exchange에서 MATLAB 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