| Input Image | Operations | Output Image |
|---|---|---|
| ying.rgb (320x640, color) (saved using capture from SGI) |
Converted to TIFF using imgworks (converted to JPG using xv for display) |
![]() |
![]() |
Convert to Grayscale [R,G,B] = tiffread('ying.tif'); I = rgb2gray(R,G,B); |
![]() |
![]() |
Rescale the image I2 = imresize(I, .5, 'nearest'); |
![]() |
![]() |
Cropping an image.. II = imcrop(I2); (xv wasn't particularly friendly dealing with smaller images..) |
![]() |
| Input Image (Rescaled Grayimage) |
Operations | Output Image |
|---|---|---|
![]() |
Historgram Equalization J = histeq(I2); |
![]() |
![]() |
Grayscale Levels... [x,map] = gray2ind(J,2); 2 levels |
![]() |
4 levels |
![]() |
|
8 levels |
![]() |
|
16 levels |
![]() |
|
32 levels |
![]() |
|
![]() |
A "blue" color Map [x,map] = gray2ind(J,256); A = hot(256); colmap = A; colmap(:,3) = A(:,1); colmap(:,2) = A(:,2); colmap(:,1) = A(:,2); imshow(x,colmap); Thought I should do a little color mapping too |
![]() |
| Input Image (Rescaled Grayimage) |
Some Filtering Operations | Output Image |
|---|---|---|
![]() |
Average h = fspecial('average',[5 5]); I3 = filter2(h, I2); |
![]() |
![]() |
Edge (Sobel) BW = edge(I2,'sobel'); |
![]() |
![]() |
or Sobel? h = fspecial('sobel'); I3 = filter2(h, I2); |
![]() |
h = fspecial('sobel'); I3 = filter2(h', I2); |
![]() |
|
Sum of the above two.. |
![]() |
| Input Image (Rescaled Grayimage) |
Some BW Operations | Output Image |
|---|---|---|
![]() |
Skeleton bwskel= bwmorph(bw,'skel',Inf); |
![]() |
![]() |
Thin... bwthin= bwmorph(bw,'thin',Inf); |
![]() |
![]() |
Region of interest.. Average filter ![]() |
![]() |