formation of the image from matrix of doubles

  • Follow


Lets say i have a matrix G, that matrix contains different double values. How exactly image function creates image out of it? 

lets say my colormap is colormap(jet(256)), now what formulas are used by image function in order to derive R,G,B components for each element of my double matrix?
0
Reply Ernest 11/3/2010 3:37:04 PM


"Ernest Milenko" <badshnaps@gmail.com> wrote in message 
news:iarvj0$2cu$1@fred.mathworks.com...
> Lets say i have a matrix G, that matrix contains different double values. 
> How exactly image function creates image out of it?
> lets say my colormap is colormap(jet(256)), now what formulas are used by 
> image function in order to derive R,G,B components for each element of my 
> double matrix?

Read the description of the CData property for image objects for a 
description of how MATLAB uses your image data (potentially in conjunction 
with the figure colormap) to determine what colors to display.

http://www.mathworks.com/help/techdoc/ref/image_props.html#CData

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com 

0
Reply Steven_Lord 11/3/2010 4:37:07 PM


1 Replies
179 Views

(page loaded in 0.035 seconds)

Similiar Articles:













7/26/2012 6:14:16 PM


Reply: