Wednesday, October 13, 2010

[Matlab] How does the imagesc work

The Matlab function imagesc automatically scales the data matrices to be displayed as a colored figure. The actual color depends on the color map used.

How does the scaling work? Actually, it is just a linear scaling which maps the original data values to the color map indices. 

A blog post from Steve explained it detailedly, which can be found

The equation used to scale the data matrices is 

Posted via email from Troy's posterous

No comments:

Post a Comment