How's the right syntax for setting camera parameters
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to set other parameters for my Basler acA1600-60gm camera. I'm using the GigE-functionality of the Image Akquisition App of Matlab:
%
% Initialisierung Kamera
imaqreset;
% Setzt alle Einstellungen bezüglich der imaq-Module zurück
gigecamlist;
% Zeigt alle GigE-Kameras an
cam = gigecam;
% Erzeugt ein gigecam-Objekt mit den Namen cam
As next I want to change the area of interest. As you see I tried several functions:
cam.AutoFunctionAOIHeight.SetValue = 500
% Setzen der Y-Breite (Höhe des Bildes)
cam.AutoFunctionAOIWidth.SetValue = [ int32(500) ]
% Setzen der X-Breite (Breite des Bildes)
cam.AutoFunctionAOIOffsetX.SetValue = [ int32(200) ]
% Setzen des X-Offsets (Koordinate der linken oberen Ecke der AoI bezogen
% auf Gesamtsensor
cam.AutoFunctionAOIOffsetY.SetValue = [ int32(300) ]
% Setzen des Y-Offsets (Koordinate der linken oberen Ecke der AoI bezogen auf Gesamtsensor
But I get the following error:
Warning: Struct field assignment overwrites a value with class
"int32". See MATLAB R14SP2 Release Notes, Assigning Nonstructure
Variables As Structures Displays Warning, for details.
> In A1_Bildaufnahme_GigE (line 25)
Error using A1_Bildaufnahme_GigE (line 25)
AutoFunctionAOIHeight should be numeric.
The parameters are presented like followed:
get(cam)
AcquisitionFrameRateAbs = 10
AcquisitionFrameRateEnable = False
AcquisitionStatusSelector = FrameTriggerWait
ActionCommandCount = 1
ActionDeviceKey = 0
ActionGroupKey = 0
ActionGroupMask = 0
ActionSelector = 1
AutoExposureTimeAbsLowerLimit = 35
AutoExposureTimeAbsUpperLimit = 350000
AutoFunctionAOIHeight = 600
AutoFunctionAOIOffsetX = 1
AutoFunctionAOIOffsetY = 1
AutoFunctionAOISelector = AOI1
AutoFunctionAOIUsageIntensity = True
AutoFunctionAOIUsageRedLightCorrection = (Currently not accessible)
AutoFunctionAOIUsageWhiteBalance = False
AutoFunctionAOIWidth = 1600
......
What's the right syntax for setting a new area of interest?
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur GigE Vision Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!