<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HiBlog: HiRISE Team Blog &#187; IRB</title>
	<atom:link href="http://hirise.lpl.arizona.edu/HiBlog/tag/irb/feed/" rel="self" type="application/rss+xml" />
	<link>http://hirise.lpl.arizona.edu/HiBlog</link>
	<description>High Resolution Imaging Science Experiment</description>
	<lastBuildDate>Tue, 08 Nov 2011 23:39:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New, Improved Color</title>
		<link>http://hirise.lpl.arizona.edu/HiBlog/2008/04/10/new-improved-color/</link>
		<comments>http://hirise.lpl.arizona.edu/HiBlog/2008/04/10/new-improved-color/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 05:20:26 +0000</pubDate>
		<dc:creator>GuyMac</dc:creator>
				<category><![CDATA[Color]]></category>
		<category><![CDATA[Downlink]]></category>
		<category><![CDATA[HiRISE]]></category>
		<category><![CDATA[Images & Science]]></category>
		<category><![CDATA[algorithms]]></category>
		<category><![CDATA[color bands]]></category>
		<category><![CDATA[Extras]]></category>
		<category><![CDATA[image processing]]></category>
		<category><![CDATA[IRB]]></category>
		<category><![CDATA[JP2]]></category>
		<category><![CDATA[NOMAP]]></category>
		<category><![CDATA[quicklook]]></category>
		<category><![CDATA[RDR]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[stretch]]></category>

		<guid isPermaLink="false">http://hirise.lpl.arizona.edu/HiBlog/?p=173</guid>
		<description><![CDATA[Today, our software group provided a set of major updates to our downlink operations team. It was the first major update in many months. One of the most anticipated features is smarter &#8220;stretch&#8221; algorithm for our color products (RDR Extras). As discussed in a previous post, a stretch (in image processing terms), is a mapping [...]]]></description>
			<content:encoded><![CDATA[<p>Today, our software group provided a set of major updates to our downlink operations team. It was the first major update in many months. One of the most anticipated features is smarter &#8220;stretch&#8221; algorithm for our color products (RDR Extras). As discussed in a previous post, a stretch (in image processing terms), is a mapping between one range of pixel values and another. In our case, it provides our viewers with a better-looking image up-front, with less need to adjust parameters in display software such as IAS (though this is still often very helpful when zoomed in). As always, the full range of original data is preserved in the RDR JP2.</p>
<p>Our former algorithm for the NOMAP and Quicklook products said that the pixel values above the brightest 0.1% and below the darkest 0.1% would be mapped to the extreme values, with a linear fit in between. For a majority of images, this was a good choice that showed excellent contrast but prevented too much saturation. </p>
<p>However, 0.1% (a thousandth) of a two Gigapixel image is still two million pixels. So if there were a particularly bright spot, like a rocky outcrop amid a field of dunes, or a particularly dark spot, like a cavern opening in a plain of boulders, then all the saturation would occur in that one area, washing it out completely, and lowering contrast everywhere else in the image. So the algorithm needed to be more adaptable. After a good deal of experimentation, the algorithm we settled on looks at the brightest and darkest pixels in a thumbnail version of the image, and uses those values for the extremes, instead of the values at 0.1%. We shrink a copy of each color band to 1/11th the original scale. Pixel values in the original below the darkest in the thumbnail are mapped to pure black, while pixel values above the highest are mapped to pure white. The stretched bands are then merged to make the color image. Hence, a bright or dark spot smaller than 1/11th x 1/11th of the image size will no longer dominate the stretch.</p>
<p>What this ultimately means is, our RDR Extras now show more detail in areas that would be completely washed out by the old algorithm. </p>
<p>For example, in this &#8216;cave&#8217; image, the left is from the original RGB.NOMAP.JP2, while the right is the same product using the new algorithm. As you can see, previously you could not tell if there was a floor to the hole or if it sloped away to greater depths.</p>
<p><a href='/HiBlog/wp-content/uploads/2008/04/psp_005770_1745_rgb_crop.png' title='psp_005770_1745_rgb_crop.png'><img src='/HiBlog/wp-content/uploads/2008/04/psp_005770_1745_rgb_crop_t.png' alt='psp_005770_1745_rgb_crop.png' width='525'/></a></p>
<p>The new algorithm is used strictly for the JP2&#8217;s; the browse and thumb are already scaled down enough that it would not make a substantial difference with them. The new algorithm went into effect today; coincidentally we just started orbit 8000. Images with the new stretch will likely appear in upcoming weekly releases and we plan to reprocess everything with this change (and improved calibration)  during the summer.</p>
<p><span id="more-173"></span></p>
<p>Here is a more specific description of our old and new stretch algorithms.</p>
<hr />
<h3>Old Algorithm</h3>
<p>Determine the min and max DN value corresponding to the following cumulative<br />
percents into the histogram.</p>
<table border="1" cellpadding="7" cellspacing="0">
<tr>
<th>Product Type</th>
<th>JP2 Product</th>
<th>Low %</th>
<th>High %</th>
</tr>
<tr>
<th rowspan="5">Extras</th>
<th>RED.NOMAP</th>
<td>           0.1  </td>
<td>   99.99</td>
</tr>
<tr>
<th>IRB.NOMAP</th>
<td>           0.1   </td>
<td>  99.99</td>
</tr>
<tr>
<th>RGB.NOMAP</th>
<td>           0.1   </td>
<td>  99.99</td>
</tr>
<tr>
<th>RED RDR Quicklook</th>
<td>   0.1   </td>
<td>  99.99</td>
</tr>
<tr>
<th>Color RDR Quicklook</th>
<td> 0.1   </td>
<td>  99.99</td>
</tr>
<tr>
<th rowspan="2">RDR</th>
<th>RED RDR</th>
<td>             0.0001 </td>
<td> 99.9999</td>
</tr>
<tr>
<th>Color RDR</th>
<td>           0.0001 </td>
<td> 99.9999</td>
</tr>
</table>
<p>For the full RDRs, the stretch is linear and the output is 10-bit and<br />
preserves the special pixel values: 0 = NULL, 1 = Low Representation Saturation, 2 = Low Instrument Saturation , 1022 = High Instrument Saturation, 1023 = High Representation Saturation.</p>
<p>For everything else, the stretch is linear, 8-bits per band and each band<br />
is done independently. Special pixels are not preserved.</p>
<hr />
<h3>New Algorithm</h3>
<p>The JPG products (browse and thumb) are be made with the original algorithm, with the following exception.</p>
<ul>
<li>The Color JPGs use the same stretch as the IRB JPGs. (Otherwise, the black area around the rotated image change the stretch).
</li>
</ul>
<p>The JP2 products are stretched as described above, with the following changes:</p>
<ul>
<li>The min and max for the stretch are determined not from a cumulative percentage<br />
but from the min and max DN taken by reducing the image or band by a factor of</p>
<p>    <tt>11 * ( binning / binning of red band )</tt></p>
<p>. The reduction averages pixels. </li>
</ul>
<hr />
<h4>Notes</h4>
<ol>
<li>Due to PDS format restrictions, the 3 bands of the color RDR (IR-RED-BG) are not<br />
stretched independently.</li>
<li>The ISIS applications hirdrgen and isis2raw are used for stretching. The latter for<br />
RDR quicklooks and NOMAPs.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://hirise.lpl.arizona.edu/HiBlog/2008/04/10/new-improved-color/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get Hi(RISE) on color!</title>
		<link>http://hirise.lpl.arizona.edu/HiBlog/2007/10/18/get-hirise-on-color/</link>
		<comments>http://hirise.lpl.arizona.edu/HiBlog/2007/10/18/get-hirise-on-color/#comments</comments>
		<pubDate>Thu, 18 Oct 2007 20:48:17 +0000</pubDate>
		<dc:creator>Percy</dc:creator>
				<category><![CDATA[Color]]></category>
		<category><![CDATA[Downlink]]></category>
		<category><![CDATA[HiRISE]]></category>
		<category><![CDATA[BG]]></category>
		<category><![CDATA[color band]]></category>
		<category><![CDATA[coregistering]]></category>
		<category><![CDATA[false color]]></category>
		<category><![CDATA[grayscale]]></category>
		<category><![CDATA[HiPI]]></category>
		<category><![CDATA[IR]]></category>
		<category><![CDATA[IRB]]></category>
		<category><![CDATA[pixels]]></category>
		<category><![CDATA[RED]]></category>
		<category><![CDATA[spectrum]]></category>
		<category><![CDATA[synthetic blue]]></category>
		<category><![CDATA[true color]]></category>
		<category><![CDATA[wavelength]]></category>

		<guid isPermaLink="false">http://hirise.lpl.arizona.edu/HiBlog/?p=106</guid>
		<description><![CDATA[Each HiRISE image has a color strip in the central portion of the image. That strip is comprised of three color wavelengths, blue-green, red and near infrared. Let&#8217;s clarify some terms first. RED refers to the visible wavelength portion of the spectrum in which the full-width HiRISE images are taken. These look black and white, [...]]]></description>
			<content:encoded><![CDATA[<p>Each HiRISE image has a color strip in the central portion of the image. That strip is comprised of three color wavelengths, blue-green, red and near infrared. Let&#8217;s clarify some terms first. RED refers to the visible wavelength portion of the spectrum in which the full-width HiRISE images are taken. These look black and white, not red, because they are displayed in grayscale. But we call them RED images. The other two colors seen by the HiRISE camera are in the visible blue-green (called BG) and invisible near infrared (often called NIR, but we refer to it here as IR). </p>
<p><a href='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/color_spectrum.jpg' title='color_spectrum.jpg'><img src='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/color_spectrum.jpg' alt='color_spectrum.jpg' /></a></p>
<p>The magic happens when we succeed at coregistering the IR and BG to the RED parts of the image to produce the center strip, false color images. More about this in an upcoming post. The maximum width of a color image is 4048 pixels. Some HiRISE images are 100,000 pixels long, which makes for a very long skinny image. These are affectionately dubbed &#8220;color noodles&#8221; by the HiPI (PI=Principle Investigator).</p>
<p>The image below illustrates where the color portion of the image is located. The zoomed in part of the same image just shows more clearly how the colors can offer more detailed geologic information than is available in the RED (black and white) image. For detailed information about the use of the color products and how they can be interpreted for scientific purposes, please refer to <a href="http://hirise.lpl.arizona.edu/pdf/color-products.pdf">&#8220;Information for Scientific Users of HiRISE Color Products&#8221;</a></p>
<p><a href='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/psp_002809_1965_colorstrip_small.jpg' title='psp_002809_1965_colorstrip_small.jpg'><img src='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/psp_002809_1965_colorstrip_small.jpg' alt='psp_002809_1965_colorstrip_small.jpg' /></a></p>
<p><a href='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/psp_002809_1965_crop.jpg' title='psp_002809_1965_crop.jpg'><img src='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/psp_002809_1965_crop.jpg' alt='psp_002809_1965_crop.jpg' /></a></p>
<p><strong>Is this what Mars really looks like?</strong> The images are not true color. The three color images taken by HiRISE are coregistered and stacked on top of each other. Then each color layer is assigned to red, blue or green, because those are the colors that are projected on your screen. So you can see how the word &#8220;color&#8221; becomes quite confusing. First, red is black and white. Then, we have all those I&#8217;s R&#8217;s and G&#8217;s and B&#8217;s! The color in HiRISE color products is really false color, because we are assigning a visible color to one that is invisible to human eyes. Also, there are only three wavelengths of light, not the full visible spectrum we are used to seeing. The RGB products are more similar to &#8220;natural&#8221; color. Even with HiRISE&#8217;s limited color capability, there is still an incredible amount of information gained by having the two extra wavelengths.</p>
<p><strong>Why is there a garish green strip along the right side of the color image (left side in the nomap products)?</strong> You will notice this in some of the HiRISE color products. It will be apparent in the IRB, but not the RGB products. This is due to one half of the IR10 CCD  having electronics issues during the earlier part of the mission. This problem was resolved for most cases, so that later images have both channels of IR10 &#8212; no green strip. Some of the earlier images were also able to be reprocessed to restore the missing IR information. </p>
<p><strong>What is the difference between &#8220;RGB&#8221; and &#8220;IRB&#8221;?</strong> The RGB products are different than the IRB products in that the IR channel has been replaced by a &#8220;synthetic blue&#8221; layer that creates an image that is somewhat closer to natural color. In many of the images, the infrared band does not contribute a lot of information. The bands in this product have also been stretched to provide better contrast. In other words, the RGB images are more aesthetic. The IRB product is a science product. It contains the IR, RED and BG layers.</p>
<p>In the <a href="http://hirise.lpl.arizona.edu/support/">IAS viewer</a>, you can turn the bands on and off to see what information each one contributes to a particular image. Use this button <a href='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/ias_band_button.jpg' title='ias_band_button.jpg'><img src='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/ias_band_button.jpg' alt='ias_band_button.jpg' /></a> to switch from color to grayscale. This dialogue will also allow you to switch the color assigned to each band. The way the images are stacked in the HiRISE images goes like this:</p>
<p><a href='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/layer_scheme.jpg' title='layer_scheme.jpg'><img src='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/layer_scheme.jpg' alt='layer_scheme.jpg' /></a></p>
<p>Changing two bands to display the same color will show what kind of information is contributed by each band.</p>
<p>Below is a detail from PSP_004052_2045 showing the IRB color overlaid on the RED image. It is a beautiful example of how the color available in HiRISE images gives us new information that aids in interpreting the images. They are also just plain beautiful. </p>
<p><a href='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/psp_004052_2045_detail.jpg' title='psp_004052_2045_detail.jpg'><img src='http://hirise.lpl.arizona.edu/HiBlog/wp-content/uploads/2007/10/psp_004052_2045_detail.jpg' alt='psp_004052_2045_detail.jpg' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://hirise.lpl.arizona.edu/HiBlog/2007/10/18/get-hirise-on-color/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

