IDS uEye camera control in .NET framework.
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yao Qiu
el 24 de Sept. de 2019
Comentada: Yiyu Zhou
el 12 de Nov. de 2019
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
0 comentarios
Respuesta aceptada
Yiyu Zhou
el 12 de Nov. de 2019
cam.Size.Subsampling.Set( bitor(uc480.Defines.SubsamplingMode.Vertical2X, uc480.Defines.SubsamplingMode.Horizontal2X) )
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Support Package for IP Cameras en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!