I am trying to do learn image processing using matlab..
I find tutorials here http://www.bogotobogo.com/Matlab/Matlab_Tutorial_Digital_Image_Processing_2_RGB_Indexed_Color_Info.php
Below program explains converting true color rgb image into index image and show the difference between mapping the index image into various levels.
code
I find tutorials here http://www.bogotobogo.com/Matlab/Matlab_Tutorial_Digital_Image_Processing_2_RGB_Indexed_Color_Info.php
Below program explains converting true color rgb image into index image and show the difference between mapping the index image into various levels.
code
- image = imread('Sun.jpg');
- figure('name','Original Image')
- imshow(image);
- [IND,map] = rgb2ind(image,32);
- figure('name','image with 32 index')
- imshow(IND),colormap(map);
- [ind_132,map_132] = rgb2ind(image,132);
- figure('name','image with 132 index')
- imshow(ind_132),colormap(map_132);
results
Original Image
Image with 32 Index
Image with 132 Index
No comments:
Post a Comment