<?xml version='1.0' encoding='utf-8'?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Comments on RealTime 3D in MatLab</title>
    <link>https://3d.syne.net/2008/01/23/realtime-3d-in-matlab/</link>
    <description>Archived discussion from 3D Photography. Comments are closed.</description>
    <item>
      <title>mostafa on RealTime 3D in MatLab</title>
      <link>https://3d.syne.net/2008/01/23/realtime-3d-in-matlab/#comment-2757</link>
      <guid isPermaLink="false">http://3d.syne.net/?p=15#comment-2757</guid>
      <dc:creator>mostafa</dc:creator>
      <pubDate>Mon, 18 Apr 2011 19:06:24 GMT</pubDate>
      <content:encoded>&lt;p&gt;hi tnx very much!good luck&lt;/p&gt;
</content:encoded>
    </item>
    <item>
      <title>zia on RealTime 3D in MatLab</title>
      <link>https://3d.syne.net/2008/01/23/realtime-3d-in-matlab/#comment-2470</link>
      <guid isPermaLink="false">http://3d.syne.net/?p=15#comment-2470</guid>
      <dc:creator>zia</dc:creator>
      <pubDate>Tue, 14 Dec 2010 13:10:41 GMT</pubDate>
      <content:encoded>&lt;p&gt;1.hello !!&lt;br /&gt;
though this post is really old &lt;/p&gt;
&lt;p&gt;but its amazing that i found it &lt;/p&gt;
&lt;p&gt;i wanna do the same thing &lt;/p&gt;
&lt;p&gt;i wrote a coede but it seems it has problems if you would please send me your code or have a look on my code and tell me what’s the mistake with it&lt;/p&gt;
&lt;p&gt;this is my code ::::&lt;/p&gt;
&lt;p&gt;clear all&lt;br /&gt;
close all&lt;br /&gt;
clc;&lt;br /&gt;
vid = videoinput(‘winvideo’,1, ‘YUY2_640×480′);&lt;br /&gt;
vid1 = videoinput(‘winvideo’,2, ‘YUY2_640×480′);&lt;br /&gt;
% to convert to rgb colors&lt;br /&gt;
vid.ReturnedColorSpace = ‘rgb’;&lt;br /&gt;
vid1.ReturnedColorSpace = ‘rgb’;&lt;br /&gt;
set(vid,’FramesPerTrigger’,1);&lt;br /&gt;
set(vid1,’FramesPerTrigger’,1);&lt;/p&gt;
&lt;p&gt;while (1)&lt;br /&gt;
start(vid);&lt;br /&gt;
start(vid1);&lt;/p&gt;
&lt;p&gt;%retrieves all the frames acquired at the last trigger&lt;br /&gt;
data = getdata(vid);&lt;br /&gt;
data1 = getdata(vid1);&lt;br /&gt;
%processes the color channels of the videos&lt;br /&gt;
data(:,:,1)=0;&lt;br /&gt;
data1(:,:,2:3)=0;&lt;br /&gt;
%to display them in one video&lt;br /&gt;
result=data+data1&lt;br /&gt;
imshow(result);&lt;br /&gt;
drawnow;&lt;br /&gt;
end&lt;br /&gt;
stop(vid),delete(vid),clear vid;&lt;br /&gt;
::::&lt;br /&gt;
hope you can help me&lt;/p&gt;
</content:encoded>
    </item>
  </channel>
</rss>
