Download presentation
Presentation is loading. Please wait.
1
Color Visualization in Matlab
Announcement: We do not have class in Wednesday (11/20) . You will work on the project III and bring questions to Friday’s class. In Friday’s class, we will schedule your presentation for choices either Monday (11/25) or Wednesday (11/27). Monday, 11/18/2002
2
Visualization of FEM Results
Pixel: The smallest image-forming unit of a video display. Displacement field
3
Create a Figure Window figure(‘Position’,[left,bottom,width,height])
4
Example
5
Additive Color
6
RGB Color Model [red,green,blue] [0,1,0] [0,1,1] [1,1,1] [1,1,0]
[0,0,1] [1,0,1] [1,0,0]
7
Color Cube
8
Example ny=60; nx=20; figure ('Position', [100, 100, ny, nx*3]);
colormap([1 0 0; 0 1 0; 0 0 1]) imageMatrix = [ones(nx,ny) ones(nx,ny)*2 ones(nx,ny)*3]; image(imageMatrix) axis equal off ny Example nx
9
Hue-Saturation-Value colormap
HSV is used in conjunction with colormap to specify a colormap which varies the hue component of the hue-saturation-value color model. The colors begin with red, pass through yellow, green, cyan, blue, magenta, and return to red. The map is particularly appropriate for displaying periodic functions.
10
HSV Color Example figure ('Position', [100, 100, 256, 50]);
colormap(hsv(256)); imageMatrix = zeros(50,256); for ix=1:50 for iy=1:256 imageMatrix(ix,iy) = iy; end image(imageMatrix) axis equal off
11
Understanding Colormaps
12
Color Assignment
13
Mapping Rule
14
Visualization of FEM Results
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.