Warning
This page is located in archive.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
help:common:kamera_matlab_chameleon_en [2014/02/19 13:32]
zimmerk [Camera control]
help:common:kamera_matlab_chameleon_en [2014/02/19 13:36]
zimmerk
Line 10: Line 10:
 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>​
  
 ==== Parameter Settings ==== ==== Parameter Settings ====
  
-As described above, it is possible to set some camera parameters in the MATLAB environment. These parameters influence the image provided by the camera, and they are therefore important for the successful use of the camera. Description of paremeters in the camera documentation is very limited. Therefore, we conducted a limited survey and testing in order to determine the possibility set the capturing parameters.+As described above, it is possible to set some camera parameters in the MATLAB environment. These parameters influence the image provided by the camera, and they are therefore important for the successful use of the camera. Description of paremeters in the camera documentation is very limited. Therefore, we conducted a limited survey and testing in order to determine the possibility ​to set the capturing parameters.
  
 Unfortunately MATLAB interface allows to adjust only a limited number of parameters. The following parameters can be set: Unfortunately MATLAB interface allows to adjust only a limited number of parameters. The following parameters can be set:
help/common/kamera_matlab_chameleon_en.txt · Last modified: 2022/10/25 12:27 by wagnelib