Notice! This document is currently in Archived status.
The content of this document may be incorrect or out dated.

8bit Script

>>% Read in the image in tiff format
>> [r,g,b] = tiffread('img14.tif');
>>
>> % Convert to range [1,256]
>> g = 255*g+1;
>>
>>
>> % Display Image
>> image(g)
>>


>>8bit.wrong
>>


>>
>>% First fix axis
>> axis('image')
>>
>> % Construct colormap
>> cmap = [0:255 ; 0:255; 0:255]'/255;
>>
>> % Set colomap
>> colormap(cmap);
>>
>>


>>8bit.correct
>>

 

Last modified: 2007/03/20 17:12:16.078000 GMT-4 by Unknown
Created: 2007/03/20 17:12:16.078000 GMT-4 by brian.r.brinegar.1.

Categories

Search

Type in a few keywords describing what information you are looking for in the text box below.

Admin Options: Edit this Document