Effects Of Reducing   Spatial Resolution
Spatial Resolution Equivalent to reduction in sampling rate. Due to the reduction in sampling rate, image size gets reduced. Check board effect. Image reshaping is done for clear view of check board effect.
Input Image
After Reducing Sampling Rate… INPUT 256 X 256 Factor-2 Factor-4
Effects After Reshaping….
Cont…
Program Flow Get image & Reduction factor. Reduce the sampling rate accordingly. Reshape the resultant image back to its original size.
Program.. clc; clear all; close all; %GET IMAGE,REDUCTION FACTOR & CONVERT TO GRAY SCALE s=input('Enter image location:','s');  factor=input('Enter reduction factor:'); inp_img=imread(s); check_rgb=isrgb(inp_img); if check_rgb==1 gry_map=rgb2gray(inp_img); else gry_map=imread(s); end gry_size=size(gry_map); inp_width=gry_size(1,1); inp_height=gry_size(1,2); figure(1); imshow(gry_map); title(['GIVEN INPUT IMAGE : ',num2str(inp_width),'x',num2str(inp_height)]);
Cont… %REDUCING SAMPLING RATE for i=0:(inp_width/factor)-1 for j=0:(inp_height/factor)-1 out(i+1,j+1)=gry_map(factor*i+1,factor*j+1); end end out_size=size(out); out_width=out_size(1,1); out_height=out_size(1,2); figure(2); imshow(out); title(['Resized Image']);
Cont.. %RESHAPING for i=0:out_width-1 for j=0:out_height-1 for x=0:factor-1 for y=0:factor-1 final_out(factor*i+x+1,factor*j+y+1)=out(i+1,j+1); end end end end figure(3); imshow(final_out); out_size=size(out); final_out_size=size(final_out); disp(final_out_size); final_out_width=final_out_size(1,1); final_out_height=final_out_size(1,2); title(['AFTER REDUCING SPATIAL RESOLUTION BY FACTOR :',num2str(factor)]);

image processing-spatial resolution

  • 1.
    Effects Of Reducing Spatial Resolution
  • 2.
    Spatial Resolution Equivalentto reduction in sampling rate. Due to the reduction in sampling rate, image size gets reduced. Check board effect. Image reshaping is done for clear view of check board effect.
  • 3.
  • 4.
    After Reducing SamplingRate… INPUT 256 X 256 Factor-2 Factor-4
  • 5.
  • 6.
  • 7.
    Program Flow Getimage & Reduction factor. Reduce the sampling rate accordingly. Reshape the resultant image back to its original size.
  • 8.
    Program.. clc; clearall; close all; %GET IMAGE,REDUCTION FACTOR & CONVERT TO GRAY SCALE s=input('Enter image location:','s'); factor=input('Enter reduction factor:'); inp_img=imread(s); check_rgb=isrgb(inp_img); if check_rgb==1 gry_map=rgb2gray(inp_img); else gry_map=imread(s); end gry_size=size(gry_map); inp_width=gry_size(1,1); inp_height=gry_size(1,2); figure(1); imshow(gry_map); title(['GIVEN INPUT IMAGE : ',num2str(inp_width),'x',num2str(inp_height)]);
  • 9.
    Cont… %REDUCING SAMPLINGRATE for i=0:(inp_width/factor)-1 for j=0:(inp_height/factor)-1 out(i+1,j+1)=gry_map(factor*i+1,factor*j+1); end end out_size=size(out); out_width=out_size(1,1); out_height=out_size(1,2); figure(2); imshow(out); title(['Resized Image']);
  • 10.
    Cont.. %RESHAPING fori=0:out_width-1 for j=0:out_height-1 for x=0:factor-1 for y=0:factor-1 final_out(factor*i+x+1,factor*j+y+1)=out(i+1,j+1); end end end end figure(3); imshow(final_out); out_size=size(out); final_out_size=size(final_out); disp(final_out_size); final_out_width=final_out_size(1,1); final_out_height=final_out_size(1,2); title(['AFTER REDUCING SPATIAL RESOLUTION BY FACTOR :',num2str(factor)]);