CourseWare Wiki
Search
Log In
b181
help
common
kamera_matlab_chameleon_en
Warning
This page is located in archive.
Differences
This shows you the differences between two versions of the page.
View differences:
Side by Side
Inline
Go
Link to this comparison view
Both sides previous revision
Previous revision
2022/10/25 12:27 wagnelib [Camera Control (Python)]
2022/10/25 12:24 wagnelib [Camera Control (Python)]
2022/10/25 12:10 wagnelib [Camera control (ROS)]
2021/10/20 13:48 wagnelib [Camera control (ROS)]
2021/10/20 13:48 wagnelib [Camera control (Matlab on Linux)]
2021/10/20 13:44 wagnelib
2021/10/20 13:43 wagnelib
2021/10/20 13:43 wagnelib [Camera control (Matlab on Linux)]
2021/10/20 13:41 wagnelib
2021/10/20 13:38 wagnelib [Camera control (Matlab on Linux)]
2021/10/20 13:38 wagnelib [Camera control (Matlab on Linux)]
2021/10/20 11:54 wagnelib [Camera control (ROS)]
2021/10/20 11:52 wagnelib [Camera control (ROS)]
2021/10/20 11:52 wagnelib [Camera control (ROS)]
2021/10/20 11:51 wagnelib [Camera control (ROS)]
2021/10/20 11:22 wagnelib [Camera control (ROS)]
2021/10/20 11:06 wagnelib
2018/02/03 10:49 external edit
2014/02/19 13:36 zimmerk
2014/02/19 13:34 zimmerk [Camera control]
2014/02/19 13:32 zimmerk [Camera control]
2014/02/19 13:30 zimmerk [USB camera Chameleon]
2014/02/19 11:42 zimmerk [Parameter Settings]
2014/02/19 11:12 zimmerk [Parameter Settings]
2014/02/19 10:36 zimmerk [Parameter Settings]
2014/02/19 10:26 zimmerk [Nastavení parametrů kamery]
2014/02/19 09:58 zimmerk
2014/02/19 09:52 zimmerk
2014/02/18 15:37 zimmerk
2014/02/18 15:27 zimmerk
2014/02/18 15:19 zimmerk created
Go
Next revision
Previous revision
2022/10/25 12:27 wagnelib [Camera Control (Python)]
2022/10/25 12:24 wagnelib [Camera Control (Python)]
2022/10/25 12:10 wagnelib [Camera control (ROS)]
2021/10/20 13:48 wagnelib [Camera control (ROS)]
2021/10/20 13:48 wagnelib [Camera control (Matlab on Linux)]
2021/10/20 13:44 wagnelib
2021/10/20 13:43 wagnelib
2021/10/20 13:43 wagnelib [Camera control (Matlab on Linux)]
2021/10/20 13:41 wagnelib
2021/10/20 13:38 wagnelib [Camera control (Matlab on Linux)]
2021/10/20 13:38 wagnelib [Camera control (Matlab on Linux)]
2021/10/20 11:54 wagnelib [Camera control (ROS)]
2021/10/20 11:52 wagnelib [Camera control (ROS)]
2021/10/20 11:52 wagnelib [Camera control (ROS)]
2021/10/20 11:51 wagnelib [Camera control (ROS)]
2021/10/20 11:22 wagnelib [Camera control (ROS)]
2021/10/20 11:06 wagnelib
2018/02/03 10:49 external edit
2014/02/19 13:36 zimmerk
2014/02/19 13:34 zimmerk [Camera control]
2014/02/19 13:32 zimmerk [Camera control]
2014/02/19 13:30 zimmerk [USB camera Chameleon]
2014/02/19 11:42 zimmerk [Parameter Settings]
2014/02/19 11:12 zimmerk [Parameter Settings]
2014/02/19 10:36 zimmerk [Parameter Settings]
2014/02/19 10:26 zimmerk [Nastavení parametrů kamery]
2014/02/19 09:58 zimmerk
2014/02/19 09:52 zimmerk
2014/02/18 15:37 zimmerk
2014/02/18 15:27 zimmerk
2014/02/18 15:19 zimmerk created
Go
Next revision
Both sides next revision
help:common:kamera_matlab_chameleon_en [2014/02/19 11:42]
zimmerk
[Parameter Settings]
help:common:kamera_matlab_chameleon_en [2014/02/19 13:34]
zimmerk
[Camera control]
Line 1:
Line 1:
==== USB camera Chameleon ====
==== USB camera Chameleon ====
-
Camera Chameleon is digital USB 2.0 camera //[[http://www.ptgrey.com/products/chameleon/Chameleon_datasheet.pdf|Chameleon]]//
produced
by [[http://www.ptgrey.com|PointGrey]].
+
Camera Chameleon is digital USB 2.0 camera //[[http://www.ptgrey.com/products/chameleon/Chameleon_datasheet.pdf|Chameleon]]//
manufactued
by [[http://www.ptgrey.com|PointGrey]].
==== Camera control ====
==== Camera control ====
Line 6:
Line 6:
- Camera can be accessed as follows <code>vid = videoinput('winvideo',1,'Y800_1280x960');</code>
- Camera can be accessed as follows <code>vid = videoinput('winvideo',1,'Y800_1280x960');</code>
-
- If you need to change capturing parameters (the default setting is fully automatic camera), the following script sets the manual control:: <code>inspect(getselectedsource(vid));</code> or the following command sets a
property
value: <code>set(getselectedsource(vid), 'PropertyName', 'PropertyValue');</code> If you need to determine the current value of the parameter it is possible to use the command <code>get(getselectedsource(vid), 'PropertyName');</code> Useful information can be obtained by calling <code>propoinfo(getselectedsource(vid), 'PropertyName');</code> **<fc #FF0000>NOTE:</fc> Most of the parameters influencing the image capturing can be set only when capturing is off (before calling "start(vid)").**
+
- If you need to change capturing parameters (the default setting is fully automatic camera), the following script sets the manual control:: <code>inspect(getselectedsource(vid));</code> or the following command sets a
parameter
value: <code>set(getselectedsource(vid), 'PropertyName', 'PropertyValue');</code> If you need to determine the current value of the parameter it is possible to use the command <code>get(getselectedsource(vid), 'PropertyName');</code> Useful information can be obtained by calling <code>propoinfo(getselectedsource(vid), 'PropertyName');</code> **<fc #FF0000>NOTE:</fc> Most of the parameters influencing the image capturing can be set only when capturing is off (before calling "start(vid)").**
- Capturing of the endless video stream is initiated by the following commands <code>set(vid,'TriggerRepeat',Inf);
- Capturing of the endless video stream is initiated by the following commands <code>set(vid,'TriggerRepeat',Inf);
vid.FrameGrabInterval = 1;
vid.FrameGrabInterval = 1;
start(vid);</code>
start(vid);</code>
-
-
Reading a
frame from the buffer
is as follows
<code>im = getdata(vid,1);</code>
+
-
The following command reads one
frame from the
current
buffer <code>im = getdata(vid,1);</code>
- The camera provides video in RAW format, therefore [[http://en.wikipedia.org/wiki/Bayer_filter|debayering]] is needed. This can be done for example by using the following commands. We could not figure out how to change the white balance for blue channel in the MATLAB environment, therefore blue channel must be multiplied by an appropriate value <code>im_debay(:,:,1) = im(2:2:end,1:2:end);
- The camera provides video in RAW format, therefore [[http://en.wikipedia.org/wiki/Bayer_filter|debayering]] is needed. This can be done for example by using the following commands. We could not figure out how to change the white balance for blue channel in the MATLAB environment, therefore blue channel must be multiplied by an appropriate value <code>im_debay(:,:,1) = im(2:2:end,1:2:end);
im_debay(:,:,2) = im(1:2:end,1:2:end)/2 + im(2:2:end,2:2:end)/2;
im_debay(:,:,2) = im(1:2:end,1:2:end)/2 + im(2:2:end,2:2:end)/2;
im_debay(:,:,3) = 6.5 * im(1:2:end,2:2:end);</code>
im_debay(:,:,3) = 6.5 * im(1:2:end,2:2:end);</code>
-
-
Evetually
, you can clear the memory by the following commands <code>stop(vid);
+
-
Eventually
, you can clear the memory by the following commands <code>stop(vid);
delete(vid);</code>
delete(vid);</code>
help/common/kamera_matlab_chameleon_en.txt
· Last modified: 2022/10/25 12:27 by
wagnelib