<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fast 3D Stereo Vision</title>
	<atom:link href="http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/</link>
	<description>life, business, consulting, and computer vision</description>
	<lastBuildDate>Tue, 07 Feb 2012 12:43:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Piet</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1942</link>
		<dc:creator>Piet</dc:creator>
		<pubDate>Tue, 25 Oct 2011 08:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1942</guid>
		<description>Hi Shawn, 

Great work. I really like the excellent performance of your code.

However I have two questions concerning the function “stereo.m”:

1)	In line 59  
“pd = shift_image(pixel_dsp,5);             %-- shift to match i1” 
the disparity map is shifted by 5 pixel. As far as I understood the disparity map should already be aligned according to image i1. So why does one still need to shift the disparity map?

2) The subfunction  “function I = shift_image(I,shift)”  (line 98) does not shift the image for a parameter setting of shift=1. In fact it provides the same result as shift=0. Does the subfunction need some modification?

I hope you have some time to take a look at my questions.</description>
		<content:encoded><![CDATA[<p>Hi Shawn, </p>
<p>Great work. I really like the excellent performance of your code.</p>
<p>However I have two questions concerning the function “stereo.m”:</p>
<p>1)	In line 59<br />
“pd = shift_image(pixel_dsp,5);             %&#8211; shift to match i1”<br />
the disparity map is shifted by 5 pixel. As far as I understood the disparity map should already be aligned according to image i1. So why does one still need to shift the disparity map?</p>
<p>2) The subfunction  “function I = shift_image(I,shift)”  (line 98) does not shift the image for a parameter setting of shift=1. In fact it provides the same result as shift=0. Does the subfunction need some modification?</p>
<p>I hope you have some time to take a look at my questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K A</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1803</link>
		<dc:creator>K A</dc:creator>
		<pubDate>Tue, 17 May 2011 17:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1803</guid>
		<description>Hi, 
What paper did you use to do this code, Segment-based stereo matching using beleif propagation and self-adopting  dissimilarity measure, or another paper?? If so, can you tell me which, and its link, if possible??

Thanks for your help</description>
		<content:encoded><![CDATA[<p>Hi,<br />
What paper did you use to do this code, Segment-based stereo matching using beleif propagation and self-adopting  dissimilarity measure, or another paper?? If so, can you tell me which, and its link, if possible??</p>
<p>Thanks for your help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mazdak</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1701</link>
		<dc:creator>Mazdak</dc:creator>
		<pubDate>Thu, 21 Apr 2011 00:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1701</guid>
		<description>hi shawn
Nice work.Shawn plzz Guide how can i set Maxs and mins Accuratelly.Any specific method to calculate that.I m not getting Good Results plzzzzz help me outtt</description>
		<content:encoded><![CDATA[<p>hi shawn<br />
Nice work.Shawn plzz Guide how can i set Maxs and mins Accuratelly.Any specific method to calculate that.I m not getting Good Results plzzzzz help me outtt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mazdak</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1700</link>
		<dc:creator>Mazdak</dc:creator>
		<pubDate>Thu, 21 Apr 2011 00:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1700</guid>
		<description>hi shawn
Nice work.shawn can u plz guide how can i set maxs and mins accurately according to pick .Any way to find that .i m not getting good resultsss..helpp meeeee outttttt</description>
		<content:encoded><![CDATA[<p>hi shawn<br />
Nice work.shawn can u plz guide how can i set maxs and mins accurately according to pick .Any way to find that .i m not getting good resultsss..helpp meeeee outttttt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hmanshu</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1493</link>
		<dc:creator>Hmanshu</dc:creator>
		<pubDate>Wed, 02 Mar 2011 21:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1493</guid>
		<description>hello shawn….
I am working on project 3D object recognition using stereovision.
I am having problems in getting the disparity map. can u please tell me how to select the maximum disparity value. Is their some formula to get it.
And one thing, what should be the maximum distance between the two cameras while making a stereo vision system….
Please help me…..i am dying to have results….
thank u….</description>
		<content:encoded><![CDATA[<p>hello shawn….<br />
I am working on project 3D object recognition using stereovision.<br />
I am having problems in getting the disparity map. can u please tell me how to select the maximum disparity value. Is their some formula to get it.<br />
And one thing, what should be the maximum distance between the two cameras while making a stereo vision system….<br />
Please help me…..i am dying to have results….<br />
thank u….</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fuhanh</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1485</link>
		<dc:creator>Fuhanh</dc:creator>
		<pubDate>Sun, 27 Feb 2011 13:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1485</guid>
		<description>hi
i have looked ur blog long time...It is a good work...at least i think so...
rencently i am focusing on stereo matching about Belief Propagation ...so do you have touched this method? i have some confused things ...
would you give me an email address.....thx
best wishes...</description>
		<content:encoded><![CDATA[<p>hi<br />
i have looked ur blog long time&#8230;It is a good work&#8230;at least i think so&#8230;<br />
rencently i am focusing on stereo matching about Belief Propagation &#8230;so do you have touched this method? i have some confused things &#8230;<br />
would you give me an email address&#8230;..thx<br />
best wishes&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gorkem</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1443</link>
		<dc:creator>Gorkem</dc:creator>
		<pubDate>Thu, 18 Nov 2010 17:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1443</guid>
		<description>Hey Shawn,

May I ask you why there are many wrong small regions at the top right of tsukuba image and can you guess any method to just conceal these errors?
Thanks</description>
		<content:encoded><![CDATA[<p>Hey Shawn,</p>
<p>May I ask you why there are many wrong small regions at the top right of tsukuba image and can you guess any method to just conceal these errors?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Phan</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1414</link>
		<dc:creator>Ray Phan</dc:creator>
		<pubDate>Sat, 21 Aug 2010 05:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1414</guid>
		<description>@Sonia:  It sounds like you don&#039;t have MEX properly setup.  The main reason why is because when it tries to execute the MEX command, the error outputs indicate that it can&#039;t find MEX, which is only found after you set MEX up.  MEX requires that MATLAB knows which C/C++ compiler that you&#039;re using.  In the MATLAB command prompt, type in the following (without quotes) &quot;mex -setup&quot;, and go from there.  You need to have a C/C++ compiler installed on your computer, or you won&#039;t be able to run the code.  Once you do that, run the compile_edison_wrapper again so that the code compiles on your 64-bit machine.  It should work after.  I&#039;m running Windows 7 64-bit Ultimate, and the code works fine with me.

@Joseph:  The original EDISON code is actually poorly written.  It can get a bit obfuscated.  However, the labelling is actually not too bad.  Once the mean shift segmentation algorithm finishes, be sure to save all of the centroids for each cluster that has been identified.  Once you&#039;ve identified all of the centroids, look for points where the joint Euclidean distance (both colour and distance to the centroid) is less than some number (I chose 0.5).  If a point&#039;s distance is less than this amount, it belongs to that cluster.  Basically, use a loop, have a variable that stores a centroid at a particular iteration, then loop through all points in the image and check to see if points are close to the centroid in question.  This brute force technique takes a very long time, so the EDISON authors use efficient nearest neighbour techniques to decrease the amount of time that this executes.

Hope this helps,
- Ray.</description>
		<content:encoded><![CDATA[<p>@Sonia:  It sounds like you don&#8217;t have MEX properly setup.  The main reason why is because when it tries to execute the MEX command, the error outputs indicate that it can&#8217;t find MEX, which is only found after you set MEX up.  MEX requires that MATLAB knows which C/C++ compiler that you&#8217;re using.  In the MATLAB command prompt, type in the following (without quotes) &#8220;mex -setup&#8221;, and go from there.  You need to have a C/C++ compiler installed on your computer, or you won&#8217;t be able to run the code.  Once you do that, run the compile_edison_wrapper again so that the code compiles on your 64-bit machine.  It should work after.  I&#8217;m running Windows 7 64-bit Ultimate, and the code works fine with me.</p>
<p>@Joseph:  The original EDISON code is actually poorly written.  It can get a bit obfuscated.  However, the labelling is actually not too bad.  Once the mean shift segmentation algorithm finishes, be sure to save all of the centroids for each cluster that has been identified.  Once you&#8217;ve identified all of the centroids, look for points where the joint Euclidean distance (both colour and distance to the centroid) is less than some number (I chose 0.5).  If a point&#8217;s distance is less than this amount, it belongs to that cluster.  Basically, use a loop, have a variable that stores a centroid at a particular iteration, then loop through all points in the image and check to see if points are close to the centroid in question.  This brute force technique takes a very long time, so the EDISON authors use efficient nearest neighbour techniques to decrease the amount of time that this executes.</p>
<p>Hope this helps,<br />
- Ray.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1411</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Wed, 18 Aug 2010 13:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1411</guid>
		<description>Thanks a lot for your helpful code. I am wondering if it is possible to extract the labelling code from the segmentation code.

 I look forward to hearing from you soon

thanks for your help.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your helpful code. I am wondering if it is possible to extract the labelling code from the segmentation code.</p>
<p> I look forward to hearing from you soon</p>
<p>thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sonia</title>
		<link>http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/comment-page-1/#comment-1410</link>
		<dc:creator>Sonia</dc:creator>
		<pubDate>Tue, 17 Aug 2010 11:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.shawnlankton.com/2008/04/stereo-vision-update-with-new-code/#comment-1410</guid>
		<description>Hi, thanks for your code.

Can you tell me how can I compile with 64 bits so that the code is running?

Because when I try to run &quot;demo&quot;, I have this error :

??? Undefined function or method &#039;edison_wrapper_mex&#039; for input arguments of type &#039;struct&#039;.

Error in ==&gt; edison_wrapper at 64
        [fimage labels modes regSize grad conf]  = edison_wrapper_mex(fim, rgbim, p);

Error in ==&gt; msseg at 42
  [fimg labels modes regsize grad conf] = edison_wrapper(I,@RGB2Luv, ...

Error in ==&gt; total_stereo at 58
    [segs labels] = msseg(i1,hs,hr,M);  %-- mean shift segmentation

Error in ==&gt; demo at 16
[d p s l] = total_stereo(i1,i2, hs,hr,M,mins, maxs);

And when I run &quot;compile_edison_wrapper&quot;
I have this error:

C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: &#039;edison_wrapper_mex.cpp&#039; not found. 
 
??? Error using ==&gt; mex at 218
Unable to complete successfully.

Error in ==&gt; compile_edison_wrapper at 5
mex -O edison_wrapper_mex.cpp ...

I don&#039;t know what I must change here

mex -O edison_wrapper_mex.cpp ...
    segm/ms.cpp  segm/msImageProcessor.cpp segm/msSysPrompt.cpp segm/RAList.cpp segm/rlist.cpp ...
    edge/BgEdge.cpp edge/BgImage.cpp edge/BgGlobalFc.cpp edge/BgEdgeList.cpp edge/BgEdgeDetect.cpp
fprintf(1, &#039;Done edison_wraper compilation\n&#039;);

so that the code run with 64 bits !!!!!!!!!!!

Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Hi, thanks for your code.</p>
<p>Can you tell me how can I compile with 64 bits so that the code is running?</p>
<p>Because when I try to run &#8220;demo&#8221;, I have this error :</p>
<p>??? Undefined function or method &#8216;edison_wrapper_mex&#8217; for input arguments of type &#8216;struct&#8217;.</p>
<p>Error in ==&gt; edison_wrapper at 64<br />
        [fimage labels modes regSize grad conf]  = edison_wrapper_mex(fim, rgbim, p);</p>
<p>Error in ==&gt; msseg at 42<br />
  [fimg labels modes regsize grad conf] = edison_wrapper(I,@RGB2Luv, &#8230;</p>
<p>Error in ==&gt; total_stereo at 58<br />
    [segs labels] = msseg(i1,hs,hr,M);  %&#8211; mean shift segmentation</p>
<p>Error in ==&gt; demo at 16<br />
[d p s l] = total_stereo(i1,i2, hs,hr,M,mins, maxs);</p>
<p>And when I run &#8220;compile_edison_wrapper&#8221;<br />
I have this error:</p>
<p>C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: &#8216;edison_wrapper_mex.cpp&#8217; not found. </p>
<p>??? Error using ==&gt; mex at 218<br />
Unable to complete successfully.</p>
<p>Error in ==&gt; compile_edison_wrapper at 5<br />
mex -O edison_wrapper_mex.cpp &#8230;</p>
<p>I don&#8217;t know what I must change here</p>
<p>mex -O edison_wrapper_mex.cpp &#8230;<br />
    segm/ms.cpp  segm/msImageProcessor.cpp segm/msSysPrompt.cpp segm/RAList.cpp segm/rlist.cpp &#8230;<br />
    edge/BgEdge.cpp edge/BgImage.cpp edge/BgGlobalFc.cpp edge/BgEdgeList.cpp edge/BgEdgeDetect.cpp<br />
fprintf(1, &#8216;Done edison_wraper compilation\n&#8217;);</p>
<p>so that the code run with 64 bits !!!!!!!!!!!</p>
<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

