<?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: Consider multibandread for reading your data</title>
	<atom:link href="http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/</link>
	<description>Steve Eddins manages the Image &#38; Geospatial development team at The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.</description>
	<lastBuildDate>Sat, 11 Feb 2012 18:27:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Giulia</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24825</link>
		<dc:creator>Giulia</dc:creator>
		<pubDate>Wed, 01 Feb 2012 13:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24825</guid>
		<description>sorry..

fread(fid,(1:(rows*cols*bands)),&#039;double&#039;,&#039;ieee-le&#039;);
..
im4 = multibandread(&#039;prova.raw&#039;, [441 476 160], ...
                    &#039;double&#039;, 0, &#039;bsq&#039;, &#039;ieee-le&#039;, ...
                    {&#039;Band&#039;, &#039;Direct&#039;} );
imshow(im4);
</description>
		<content:encoded><![CDATA[<p>sorry..</p>
<p>fread(fid,(1:(rows*cols*bands)),&#8217;double&#8217;,'ieee-le&#8217;);<br />
..<br />
im4 = multibandread(&#8216;prova.raw&#8217;, [441 476 160], &#8230;<br />
                    &#8216;double&#8217;, 0, &#8216;bsq&#8217;, &#8216;ieee-le&#8217;, &#8230;<br />
                    {&#8216;Band&#8217;, &#8216;Direct&#8217;} );<br />
imshow(im4);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giulia</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24824</link>
		<dc:creator>Giulia</dc:creator>
		<pubDate>Wed, 01 Feb 2012 13:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24824</guid>
		<description>Hi!I&#039;m using multibandread function for reading raw image.I followed mathworks examples: defined my dataset, instead of using fwrite, I used: 
...
 
but i&#039;ve some problems on fread: Invalid size. Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi!I&#8217;m using multibandread function for reading raw image.I followed mathworks examples: defined my dataset, instead of using fwrite, I used:<br />
&#8230;</p>
<p>but i&#8217;ve some problems on fread: Invalid size. Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fran</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24807</link>
		<dc:creator>Fran</dc:creator>
		<pubDate>Tue, 24 Jan 2012 19:45:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24807</guid>
		<description>Hi Steve

I am trying to open a .dat image (I also have the .hdr file) in matlab apparently I succeed in reading it, but when I show it it is completely white (I can see some pixels in slightly different color, but most of it white). The header file says that is int16 data, could this be the problem?
Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Steve</p>
<p>I am trying to open a .dat image (I also have the .hdr file) in matlab apparently I succeed in reading it, but when I show it it is completely white (I can see some pixels in slightly different color, but most of it white). The header file says that is int16 data, could this be the problem?<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sukuchha</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24770</link>
		<dc:creator>sukuchha</dc:creator>
		<pubDate>Sat, 31 Dec 2011 21:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24770</guid>
		<description>@Ajith 

you can only three bands one at a time. so have to use

imshow(image_tile1(:,:,1:3)) for viewing first three bands for example !</description>
		<content:encoded><![CDATA[<p>@Ajith </p>
<p>you can only three bands one at a time. so have to use</p>
<p>imshow(image_tile1(:,:,1:3)) for viewing first three bands for example !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajith Joseph</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24637</link>
		<dc:creator>Ajith Joseph</dc:creator>
		<pubDate>Tue, 15 Nov 2011 03:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24637</guid>
		<description>Hi Steve

I am trying to view a hyperspectral image in MATLAB using multibandread and then using imageshow command as shown below, but I am getting the following error:
??? Error using ==&gt; imageDisplayValidateParams&gt;validateCData at 114
Unsupported dimension

Error in ==&gt; imageDisplayValidateParams at 31
common_args.CData = validateCData(common_args.CData,image_type);

Please could you help me figure it out.Thanks in advance

&lt;pre&gt;
image_tile1 = multibandread(&#039;Image Processing Project\M3G20090107T130225_u2_rdn_img&#039;,[11739,304,85],&#039;float&#039;,0,&#039;bil&#039;,&#039;ieee-le&#039;,{&#039;Row&#039;,&#039;Range&#039;,[25 500]});
imshow(image_tile1)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Steve</p>
<p>I am trying to view a hyperspectral image in MATLAB using multibandread and then using imageshow command as shown below, but I am getting the following error:<br />
??? Error using ==&gt; imageDisplayValidateParams&gt;validateCData at 114<br />
Unsupported dimension</p>
<p>Error in ==&gt; imageDisplayValidateParams at 31<br />
common_args.CData = validateCData(common_args.CData,image_type);</p>
<p>Please could you help me figure it out.Thanks in advance</p>
<pre>
image_tile1 = multibandread('Image Processing Project\M3G20090107T130225_u2_rdn_img',[11739,304,85],'float',0,'bil','ieee-le',{'Row','Range',[25 500]});
imshow(image_tile1)
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24438</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 25 Aug 2011 20:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24438</guid>
		<description>TJ&#8212;I don&#039;t think imagesc is appropriate for displaying an RGB truecolor image. Try using image instead.</description>
		<content:encoded><![CDATA[<p>TJ&mdash;I don&#8217;t think imagesc is appropriate for displaying an RGB truecolor image. Try using image instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24437</link>
		<dc:creator>TJ</dc:creator>
		<pubDate>Thu, 25 Aug 2011 20:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24437</guid>
		<description>I am having a problem where I read an image cube using multibandread() but then imagesc() colors aren&#039;t correct.  My cube is really 10 bit but saved as 16 bit.  Here is my code...

bands = [55 90 146]; %these are the RGB bands

a = multibandread(&#039;sample1.cub&#039;,[1119 1272 292],&#039;uint16&#039;,0,&#039;bil&#039;,&#039;ieee-be&#039;,{&#039;band&#039;,&#039;direct&#039;,bands});

a = a/(2^16-1); %have to normalize for imagesc()
imagesc(a);</description>
		<content:encoded><![CDATA[<p>I am having a problem where I read an image cube using multibandread() but then imagesc() colors aren&#8217;t correct.  My cube is really 10 bit but saved as 16 bit.  Here is my code&#8230;</p>
<p>bands = [55 90 146]; %these are the RGB bands</p>
<p>a = multibandread(&#8216;sample1.cub&#8217;,[1119 1272 292],&#8217;uint16&#8242;,0,&#8217;bil&#8217;,'ieee-be&#8217;,{&#8216;band&#8217;,'direct&#8217;,bands});</p>
<p>a = a/(2^16-1); %have to normalize for imagesc()<br />
imagesc(a);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24212</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 17 May 2011 12:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24212</guid>
		<description>Aditi&#8212;You have to know. This information is often in the header or is available from the source that provided the image. Or, if you know the number of columns and rows, you can try to guess the number of bands based on the size of the file.</description>
		<content:encoded><![CDATA[<p>Aditi&mdash;You have to know. This information is often in the header or is available from the source that provided the image. Or, if you know the number of columns and rows, you can try to guess the number of bands based on the size of the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditi</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24209</link>
		<dc:creator>Aditi</dc:creator>
		<pubDate>Tue, 17 May 2011 10:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24209</guid>
		<description>hey steve i wanted to ask as to how to find how many bands are present an image so that i can work with multibandread function...</description>
		<content:encoded><![CDATA[<p>hey steve i wanted to ask as to how to find how many bands are present an image so that i can work with multibandread function&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mo</title>
		<link>http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24191</link>
		<dc:creator>Mo</dc:creator>
		<pubDate>Tue, 10 May 2011 15:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2009/02/06/consider-multibandread-for-reading-your-data/#comment-24191</guid>
		<description>Steve . you are the man. its work once i changed  the band. but i have changed the band from 3 to 2 to 1 all of them work. what does that mean?</description>
		<content:encoded><![CDATA[<p>Steve . you are the man. its work once i changed  the band. but i have changed the band from 3 to 2 to 1 all of them work. what does that mean?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

