Effacer les filtres
Effacer les filtres

IDS uEye camera control in .NET framework.

8 vues (au cours des 30 derniers jours)
Yao Qiu
Yao Qiu le 24 Sep 2019
Commenté : Yiyu Zhou le 12 Nov 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

Réponse acceptée

Yiyu Zhou
Yiyu Zhou le 12 Nov 2019
cam.Size.Subsampling.Set( bitor(uc480.Defines.SubsamplingMode.Vertical2X, uc480.Defines.SubsamplingMode.Horizontal2X) )
  2 commentaires
Yao Qiu
Yao Qiu le 12 Nov 2019
Thanks for your answer, is the 'uc480' the camera ID? Can I substitute the 'uc480' with 'uEye'?
Yiyu Zhou
Yiyu Zhou le 12 Nov 2019
Yes. The trick is bitor()

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Support Package for IP Cameras dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by