<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[cimg] komischer Wert]]></title><description><![CDATA[<p>Hi,</p>
<p>ich lese ein Bild ein und will dann den Pixelwert an Stelle 100, 50 (z.b.) auslesen. Sobald ich aber folgenden Code starte kommt nur ein komisches Zeichen und nicht der Wert.</p>
<pre><code>CImg&lt;unsigned char&gt; image(&quot;1.jpg&quot;);
cout &lt;&lt; image(100,50) &lt;&lt; endl;
</code></pre>
<p>Vielleicht kann mir jemand helfen.<br />
Danke schon mal!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/282884/cimg-komischer-wert</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 21:52:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/282884.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Feb 2011 17:28:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [cimg] komischer Wert on Mon, 28 Feb 2011 17:28:24 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich lese ein Bild ein und will dann den Pixelwert an Stelle 100, 50 (z.b.) auslesen. Sobald ich aber folgenden Code starte kommt nur ein komisches Zeichen und nicht der Wert.</p>
<pre><code>CImg&lt;unsigned char&gt; image(&quot;1.jpg&quot;);
cout &lt;&lt; image(100,50) &lt;&lt; endl;
</code></pre>
<p>Vielleicht kann mir jemand helfen.<br />
Danke schon mal!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027747</guid><dc:creator><![CDATA[Loredana]]></dc:creator><pubDate>Mon, 28 Feb 2011 17:28:24 GMT</pubDate></item><item><title><![CDATA[Reply to [cimg] komischer Wert on Mon, 28 Feb 2011 17:31:07 GMT]]></title><description><![CDATA[<p>Probiers mit:</p>
<pre><code class="language-cpp">cout &lt;&lt; static_cast&lt;int&gt;(image(100,50)) &lt;&lt; endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2027749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027749</guid><dc:creator><![CDATA[ghj]]></dc:creator><pubDate>Mon, 28 Feb 2011 17:31:07 GMT</pubDate></item><item><title><![CDATA[Reply to [cimg] komischer Wert on Mon, 28 Feb 2011 17:46:15 GMT]]></title><description><![CDATA[<p>danke jetzt klappt es!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027757</guid><dc:creator><![CDATA[Loredana]]></dc:creator><pubDate>Mon, 28 Feb 2011 17:46:15 GMT</pubDate></item><item><title><![CDATA[Reply to [cimg] komischer Wert on Mon, 28 Feb 2011 17:51:09 GMT]]></title><description><![CDATA[<p>andere Frage noch:</p>
<p>Wenn ich</p>
<pre><code>if(image(x,y) == 0)
</code></pre>
<p>versuche, dann scheint er den Wert nicht wirklich darauf zu überprüfen ob er 0 ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027759</guid><dc:creator><![CDATA[Loredana]]></dc:creator><pubDate>Mon, 28 Feb 2011 17:51:09 GMT</pubDate></item><item><title><![CDATA[Reply to [cimg] komischer Wert on Mon, 28 Feb 2011 18:07:42 GMT]]></title><description><![CDATA[<p>Woher willst du das wissen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2027766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2027766</guid><dc:creator><![CDATA[ghj]]></dc:creator><pubDate>Mon, 28 Feb 2011 18:07:42 GMT</pubDate></item></channel></rss>