<?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: OpenCV cvLoadImage IOError</title>
	<atom:link href="http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=opencv-cvloadimage-ioerror</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 23:42:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Joseph Gutierrez</title>
		<link>http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/comment-page-1/#comment-50959</link>
		<dc:creator>Joseph Gutierrez</dc:creator>
		<pubDate>Thu, 03 Dec 2009 19:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/#comment-50959</guid>
		<description>LOL! This happened to me with video streaming players. Somehow I corrupted the original video when sending it to the client. All I got was &quot;video not found error&quot;. Two days of debugging and troubleshooting. finally found it using a hex compare. Original file with streamed file. The header was corrupted.</description>
		<content:encoded><![CDATA[<p>LOL! This happened to me with video streaming players. Somehow I corrupted the original video when sending it to the client. All I got was &#8220;video not found error&#8221;. Two days of debugging and troubleshooting. finally found it using a hex compare. Original file with streamed file. The header was corrupted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Rasa</title>
		<link>http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/comment-page-1/#comment-50957</link>
		<dc:creator>Tony Rasa</dc:creator>
		<pubDate>Thu, 03 Dec 2009 18:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/#comment-50957</guid>
		<description>&lt;a href=&quot;#comment-50956&quot; rel=&quot;nofollow&quot;&gt;@John Sonmez&lt;/a&gt; 
LOL!  Yes, yes it is.  

I picked that image as a placeholder for facebook or twitter or some such social network long time ago, with the intent of replacing it with something else... and just haven&#039;t gotten around to it yet.  

AND, I&#039;m in the process of moving some code from Python to Visual C   to see if that makes any of my problems go away, or just generates new one...</description>
		<content:encoded><![CDATA[<p><a href="#comment-50956" rel="nofollow">@John Sonmez</a><br />
LOL!  Yes, yes it is.  </p>
<p>I picked that image as a placeholder for facebook or twitter or some such social network long time ago, with the intent of replacing it with something else&#8230; and just haven&#8217;t gotten around to it yet.  </p>
<p>AND, I&#8217;m in the process of moving some code from Python to Visual C   to see if that makes any of my problems go away, or just generates new one&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Sonmez</title>
		<link>http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/comment-page-1/#comment-50956</link>
		<dc:creator>John Sonmez</dc:creator>
		<pubDate>Thu, 03 Dec 2009 18:37:21 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/#comment-50956</guid>
		<description>&lt;a href=&quot;#comment-50953&quot; rel=&quot;nofollow&quot;&gt;@Tony Rasa&lt;/a&gt; 

If your avatar General Zod?</description>
		<content:encoded><![CDATA[<p><a href="#comment-50953" rel="nofollow">@Tony Rasa</a> </p>
<p>If your avatar General Zod?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Rasa</title>
		<link>http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/comment-page-1/#comment-50953</link>
		<dc:creator>Tony Rasa</dc:creator>
		<pubDate>Thu, 03 Dec 2009 17:33:24 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/#comment-50953</guid>
		<description>Example code from openCV source, taken wildly out of context, and with numerous syntax liberties added for blog publishing:
&lt;pre&gt;
// gets called by loadImage()
ImageDecoder findDecoder( const string&amp; filename ) {
  FILE* f= fopen( filename.c_str(), &quot;rb&quot; );
  if( !f )
    // NB: can&#039;t open file = empty ImageDecoder
    return ImageDecoder(); 

  // ..bunch of stuff happens.. and then..

  for( i = 0; i [ decoders.size(); i   ) {
    if( decoders[i].checkSignature(signature) )
      // NB: all good, return correct decoder
      return decoders[i].newDecoder();
  }
  // NB: couldn&#039;t find decoder due to bad data,
  // **take same action as if the file couldnt be opened**
  return ImageDecoder();
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Example code from openCV source, taken wildly out of context, and with numerous syntax liberties added for blog publishing:</p>
<pre>
// gets called by loadImage()
ImageDecoder findDecoder( const string&#038; filename ) {
  FILE* f= fopen( filename.c_str(), "rb" );
  if( !f )
    // NB: can't open file = empty ImageDecoder
    return ImageDecoder(); 

  // ..bunch of stuff happens.. and then..

  for( i = 0; i [ decoders.size(); i   ) {
    if( decoders[i].checkSignature(signature) )
      // NB: all good, return correct decoder
      return decoders[i].newDecoder();
  }
  // NB: couldn't find decoder due to bad data,
  // **take same action as if the file couldnt be opened**
  return ImageDecoder();
}</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Rasa</title>
		<link>http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/comment-page-1/#comment-50952</link>
		<dc:creator>Tony Rasa</dc:creator>
		<pubDate>Thu, 03 Dec 2009 17:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/#comment-50952</guid>
		<description>&lt;a href=&quot;#comment-50951&quot; rel=&quot;nofollow&quot;&gt;@John Sonmez&lt;/a&gt; 
While I agree with you that this layer-on-layer stuff makes debugging tough, the underlying lack-of-meaningful-error issue was due the typical error handling in the granddaddy of static languages, C - &quot;if (!whatever) return 0;&quot; 

The python wrapper just echos the [non-helpful] ERRNO and message it got from C.</description>
		<content:encoded><![CDATA[<p><a href="#comment-50951" rel="nofollow">@John Sonmez</a><br />
While I agree with you that this layer-on-layer stuff makes debugging tough, the underlying lack-of-meaningful-error issue was due the typical error handling in the granddaddy of static languages, C &#8211; &#8220;if (!whatever) return 0;&#8221; </p>
<p>The python wrapper just echos the [non-helpful] ERRNO and message it got from C.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Sonmez</title>
		<link>http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/comment-page-1/#comment-50951</link>
		<dc:creator>John Sonmez</dc:creator>
		<pubDate>Thu, 03 Dec 2009 16:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/12/03/opencv-cvloadimage-ioerror/#comment-50951</guid>
		<description>A similar issue helped me make the choice for between using Watir or Watin/Watij.  The main problem I had with using Watir was that debugging Ruby code is somewhat difficult when you are using someone else&#039;s library.  Its very difficult to determine where exactly is the uninformative error message coming from.  With the Java and C# versions of the WatiX framework, even though some of the syntax is not as easy, the errors messages are much more clear and down to a lower level.  Perhaps its just my understanding of Java and C# over Ruby, but for me the choice came down to errors like the one you posted above.  There is a major trade-off between static and dynamically typed languages when it comes to debugging and # of reasons why something can go wrong.</description>
		<content:encoded><![CDATA[<p>A similar issue helped me make the choice for between using Watir or Watin/Watij.  The main problem I had with using Watir was that debugging Ruby code is somewhat difficult when you are using someone else&#8217;s library.  Its very difficult to determine where exactly is the uninformative error message coming from.  With the Java and C# versions of the WatiX framework, even though some of the syntax is not as easy, the errors messages are much more clear and down to a lower level.  Perhaps its just my understanding of Java and C# over Ruby, but for me the choice came down to errors like the one you posted above.  There is a major trade-off between static and dynamically typed languages when it comes to debugging and # of reasons why something can go wrong.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

