<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251987</link>
    <title>MATLAB Central Newsreader - creating an image</title>
    <description>Feed for thread: creating an image</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 22 May 2009 17:52:02 -0400</pubDate>
      <title>creating an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251987#651719</link>
      <author>Dominic </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I have a struct with struct.x, struct.y and struct.value and want to create an image, where (struct.x,struct.y) represent the pixel and the value is interpreted as color or intensity in grey scale. &lt;br&gt;
&lt;br&gt;
Is it better to have an 3D Array or doesn't it matter. The size of the picture is usually 512x512.&lt;br&gt;
&lt;br&gt;
cheers,&lt;br&gt;
Dominic</description>
    </item>
    <item>
      <pubDate>Fri, 22 May 2009 18:45:04 -0400</pubDate>
      <title>Re: creating an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251987#651742</link>
      <author>Sadik </author>
      <description>If the values are intensities, you need a 2D matrix &lt;br&gt;
&lt;br&gt;
im2D&lt;br&gt;
&lt;br&gt;
which will satisfy:&lt;br&gt;
&lt;br&gt;
im2D(x,y) = value;&lt;br&gt;
&lt;br&gt;
But if you are going to use color, then you could have a 3D matrix satisfying:&lt;br&gt;
&lt;br&gt;
im3D(x,y,1) = redValue;&lt;br&gt;
im3D(x,y,2) = greenValue;&lt;br&gt;
im3D(x,y,3) = blueValue;&lt;br&gt;
&lt;br&gt;
where value = [redValue,greenValue,blueValue];&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Dominic &quot; &amp;lt;dom_awf@hotmail.com&amp;gt; wrote in message &amp;lt;gv6oo2$6t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have a struct with struct.x, struct.y and struct.value and want to create an image, where (struct.x,struct.y) represent the pixel and the value is interpreted as color or intensity in grey scale. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is it better to have an 3D Array or doesn't it matter. The size of the picture is usually 512x512.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; cheers,&lt;br&gt;
&amp;gt; Dominic</description>
    </item>
  </channel>
</rss>

