SlideShare a Scribd company logo
RESOLUTION PROJECT (SAMPLE ASSIGNMENT)
Our online Tutors are available 24*7 to provide Help with Help with Resolution Project
Homework/Assignment or a long term Graduate/Undergraduate Help with Resolution
Project. Our Tutors being experienced and proficient in Help with Resolution Project
ensure to provide high quality Help with Resolution Project Homework Help. Upload
your Help with Resolution Project Assignment at ‘Submit Your Assignment’ button or
email it to . You can use our ‘Live Chat’ option
to schedule an Online Tutoring session with our Help with Resolution Project Tutors.
This sample assignment Use Fourier interpolation to increase sampling of an image. Also
includes an optional filter.
finterp(f,newsize,apod)
function f1 = finterp(f,newsize,apod)
% NEWIMAGE = finterp(IMAGE,NEWSIZE,APOD)
% Resizes the image IMAGE using Fourier interpolation.
%
% NEWSIZE is the desired size of the interpolated image. This can be a
% 2-element vector for non-square images. If NEWSIZE is a scalar, the
% output image will be square (i.e. NEWSIZE=256 will create a 256x256 image).
%
% APOD is an optional parameter to apodize the image (by a Hanning filter)
% to reduce ringing in the output image
% APOD = 0 or blank (DEFAULT) -- no apodization
% 0 < APOD < 1 -- Apodize
%
% The Hanning filter is = 1 for x<xL
% = 0 for x>xH
% between xL and xH, the filter transmission is a half-cycle of cos^2
% For this function, xH is assumed to be the highest frequency in f, and
% xL = APOD * xH
%
% Michael Hawks, Department of Engineering Physics, Air Force Institute of
% Technology
% 5 July 2013
if nargin<3, apod=0;
elseif apod>=1, error('ERROR: APOD must be between 0 and 1');
end
if ndims(f)~=2, error('ERROR: FINTERP only defined for 2-D arrays'); beep; end
newsize=[1,1].*newsize; % ensure newsize is 2D -- if input is one number, this makes a
info@assignmentpedia.com
square array
if any(size(f)>newsize), f1=f; return; end;
maxI = max(max(f));
minI = min(min(f));
pad = newsize - size(f); % number of elements to add
pad1 = floor(pad/2); % portion to add to right/top
pad2 = pad - pad1; % remainder add to left/bottom
F = fft2(f);
Fpad = padarray(fftshift(F),pad1,'pre');
Fpad = padarray(Fpad,pad2,'post');
if apod>0
[Nx,Ny]=size(Fpad);
H = 0.5.*size(F); % use this as the high-freq cutoff (from -H to +H)
if isodd(Nx); x = -floor(Nx/2):floor(Nx/2);
else x = -((Nx/2)-1):(Nx/2);
end
if isodd(Ny); y = -floor(Ny/2):floor(Ny/2);
else y = -((Ny/2)-1):(Ny/2);
end
filt = hanning(x,apod*H(1),H(1))' * hanning(y,apod*H(2),H(2));
Fpad = Fpad.*filt;
end
ft = ifft2(ifftshift(Fpad));
f1 = (ft.*conj(ft)).^0.5; % assume we want a real-valued image out, but asymmetric padding
could add an
% imaginary componenet so we approximate by SQRT(F F*)
% rescale/normalize the image. This is kind of a hack, but it should take
% care of everything
f1 = f1 - min(min(f1)); f1 = f1./max(max(f1));
f1 = f1 .* maxI + minI;
% ...............
function i = isodd(x)
i = ( floor(x/2) ~= (x/2) );
% ...............
function f = hanning(x,xL,xH)
if ndims(squeeze(x))==1, x=1:x; dx=1;
else dx=abs(x(2)-x(1));
end
f=zeros(1,length(x));
if x(1) >= 0; % one-sided filter
jL = find(abs(x-xL)<dx,1); if isnan(jL); jL=1; end
jH = find(abs(x-xH)<dx,1); if isnan(jH); jH=length(x); end
f(1:jL)=1;
f(jH:end)=0;
k = jL:jH; f(k)=0.5 + 0.5*cos(pi*(k-jL)/(jH-jL));
else
j1 = find(abs(x+xL)<dx,1); if isnan(j1); j1=1; end
j2 = find(abs(x-xL)<dx,1); if isnan(j2); j2=length(x); end
j3 = find(abs(x+xH)<dx,1); if isnan(j3); j3=1; end
j4 = find(abs(x-xH)<dx,1); if isnan(j4); j4=length(x); end
f(1:j3)=0;
f(j4:end)=0;
f(j1:j2)=1;
k = j2:j4; f(k)=0.5 + 0.5*cos(pi*(k-j2)/(j4-j2));
k = j3:j1; f(k)=0.5 - 0.5*cos(pi*(k-j3)/(j3-j1));
end
visit us at www.assignmentpedia.com or email us at info@assignmentpedia.com or call us at +1 520 8371215

More Related Content

Similar to Resolution project (20)

DOCX
1 of 6 LAB 5 IMAGE FILTERING ECE180 Introduction to.docx
mercysuttle
 
PDF
Digital image processing using matlab: filters (detail)
thanh nguyen
 
PDF
Test
Kinni MEW
 
PDF
E251014
jcbp_peru
 
PDF
Digital image processing using matlab: basic transformations, filters and ope...
thanh nguyen
 
PDF
ECE 565 Project1
?? ?
 
PDF
Instance-based learning (aka Case-based or Memory-based or non-parametric)
guestfee8698
 
PPTX
Online Signal Processing Assignment Help
Matlab Assignment Experts
 
DOCX
E E 458 Project 003
Chad Weiss
 
PPTX
Basic image processing techniques
Heikham Anandkumar Singh
 
PDF
Project2
?? ?
 
PPT
10780340.ppt
fgjf3
 
PPTX
Digital Image Processing (Lab 08)
Moe Moe Myint
 
PDF
DIP_Manual.pdf
NetraBahadurKatuwal
 
PDF
Matlab intro
fvijayami
 
PPTX
Dip day1&2
nakarthik91
 
PPTX
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
Shajun Nisha
 
PDF
13 fourierfiltrationen
hoailinhtinh
 
1 of 6 LAB 5 IMAGE FILTERING ECE180 Introduction to.docx
mercysuttle
 
Digital image processing using matlab: filters (detail)
thanh nguyen
 
Test
Kinni MEW
 
E251014
jcbp_peru
 
Digital image processing using matlab: basic transformations, filters and ope...
thanh nguyen
 
ECE 565 Project1
?? ?
 
Instance-based learning (aka Case-based or Memory-based or non-parametric)
guestfee8698
 
Online Signal Processing Assignment Help
Matlab Assignment Experts
 
E E 458 Project 003
Chad Weiss
 
Basic image processing techniques
Heikham Anandkumar Singh
 
Project2
?? ?
 
10780340.ppt
fgjf3
 
Digital Image Processing (Lab 08)
Moe Moe Myint
 
DIP_Manual.pdf
NetraBahadurKatuwal
 
Matlab intro
fvijayami
 
Dip day1&2
nakarthik91
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
Shajun Nisha
 
13 fourierfiltrationen
hoailinhtinh
 

More from Assignmentpedia (20)

PDF
Parallel computing homework help
Assignmentpedia
 
PDF
Network costing analysis
Assignmentpedia
 
PDF
Matlab simulation project
Assignmentpedia
 
PDF
Matlab programming project
Assignmentpedia
 
PDF
Links design
Assignmentpedia
 
PDF
Image processing project using matlab
Assignmentpedia
 
PDF
Help with root locus homework1
Assignmentpedia
 
PDF
Transmitter subsystem
Assignmentpedia
 
PDF
Computer Networks Homework Help
Assignmentpedia
 
PDF
Theory of computation homework help
Assignmentpedia
 
PDF
Econometrics Homework Help
Assignmentpedia
 
PDF
Video Codec
Assignmentpedia
 
PDF
Radar Spectral Analysis
Assignmentpedia
 
PDF
Pi Controller
Assignmentpedia
 
PDF
Help With Digital Communication Project
Assignmentpedia
 
PDF
Fpga Design Project
Assignmentpedia
 
PDF
Filter Implementation And Evaluation Project
Assignmentpedia
 
PDF
Doppler Processing Project
Assignmentpedia
 
PDF
Distributed Radar Tracking Simulation Project
Assignmentpedia
 
PDF
Distributed Radar Tracking Simulation Project
Assignmentpedia
 
Parallel computing homework help
Assignmentpedia
 
Network costing analysis
Assignmentpedia
 
Matlab simulation project
Assignmentpedia
 
Matlab programming project
Assignmentpedia
 
Links design
Assignmentpedia
 
Image processing project using matlab
Assignmentpedia
 
Help with root locus homework1
Assignmentpedia
 
Transmitter subsystem
Assignmentpedia
 
Computer Networks Homework Help
Assignmentpedia
 
Theory of computation homework help
Assignmentpedia
 
Econometrics Homework Help
Assignmentpedia
 
Video Codec
Assignmentpedia
 
Radar Spectral Analysis
Assignmentpedia
 
Pi Controller
Assignmentpedia
 
Help With Digital Communication Project
Assignmentpedia
 
Fpga Design Project
Assignmentpedia
 
Filter Implementation And Evaluation Project
Assignmentpedia
 
Doppler Processing Project
Assignmentpedia
 
Distributed Radar Tracking Simulation Project
Assignmentpedia
 
Distributed Radar Tracking Simulation Project
Assignmentpedia
 
Ad

Recently uploaded (20)

PPTX
How to Manage Access Rights & User Types in Odoo 18
Celine George
 
PPTX
How to Manage Promotions in Odoo 18 Sales
Celine George
 
PDF
'' IMPORTANCE OF EXCLUSIVE BREAST FEEDING ''
SHAHEEN SHAIKH
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PPTX
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
PDF
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
PDF
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
How to Manage Access Rights & User Types in Odoo 18
Celine George
 
How to Manage Promotions in Odoo 18 Sales
Celine George
 
'' IMPORTANCE OF EXCLUSIVE BREAST FEEDING ''
SHAHEEN SHAIKH
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
Dimensions of Societal Planning in Commonism
StefanMz
 
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
Ad

Resolution project

  • 1. RESOLUTION PROJECT (SAMPLE ASSIGNMENT) Our online Tutors are available 24*7 to provide Help with Help with Resolution Project Homework/Assignment or a long term Graduate/Undergraduate Help with Resolution Project. Our Tutors being experienced and proficient in Help with Resolution Project ensure to provide high quality Help with Resolution Project Homework Help. Upload your Help with Resolution Project Assignment at ‘Submit Your Assignment’ button or email it to . You can use our ‘Live Chat’ option to schedule an Online Tutoring session with our Help with Resolution Project Tutors. This sample assignment Use Fourier interpolation to increase sampling of an image. Also includes an optional filter. finterp(f,newsize,apod) function f1 = finterp(f,newsize,apod) % NEWIMAGE = finterp(IMAGE,NEWSIZE,APOD) % Resizes the image IMAGE using Fourier interpolation. % % NEWSIZE is the desired size of the interpolated image. This can be a % 2-element vector for non-square images. If NEWSIZE is a scalar, the % output image will be square (i.e. NEWSIZE=256 will create a 256x256 image). % % APOD is an optional parameter to apodize the image (by a Hanning filter) % to reduce ringing in the output image % APOD = 0 or blank (DEFAULT) -- no apodization % 0 < APOD < 1 -- Apodize % % The Hanning filter is = 1 for x<xL % = 0 for x>xH % between xL and xH, the filter transmission is a half-cycle of cos^2 % For this function, xH is assumed to be the highest frequency in f, and % xL = APOD * xH % % Michael Hawks, Department of Engineering Physics, Air Force Institute of % Technology % 5 July 2013 if nargin<3, apod=0; elseif apod>=1, error('ERROR: APOD must be between 0 and 1'); end if ndims(f)~=2, error('ERROR: FINTERP only defined for 2-D arrays'); beep; end newsize=[1,1].*newsize; % ensure newsize is 2D -- if input is one number, this makes a [email protected]
  • 2. square array if any(size(f)>newsize), f1=f; return; end; maxI = max(max(f)); minI = min(min(f)); pad = newsize - size(f); % number of elements to add pad1 = floor(pad/2); % portion to add to right/top pad2 = pad - pad1; % remainder add to left/bottom F = fft2(f); Fpad = padarray(fftshift(F),pad1,'pre'); Fpad = padarray(Fpad,pad2,'post'); if apod>0 [Nx,Ny]=size(Fpad); H = 0.5.*size(F); % use this as the high-freq cutoff (from -H to +H) if isodd(Nx); x = -floor(Nx/2):floor(Nx/2); else x = -((Nx/2)-1):(Nx/2); end if isodd(Ny); y = -floor(Ny/2):floor(Ny/2); else y = -((Ny/2)-1):(Ny/2); end filt = hanning(x,apod*H(1),H(1))' * hanning(y,apod*H(2),H(2)); Fpad = Fpad.*filt; end ft = ifft2(ifftshift(Fpad)); f1 = (ft.*conj(ft)).^0.5; % assume we want a real-valued image out, but asymmetric padding could add an % imaginary componenet so we approximate by SQRT(F F*) % rescale/normalize the image. This is kind of a hack, but it should take % care of everything f1 = f1 - min(min(f1)); f1 = f1./max(max(f1)); f1 = f1 .* maxI + minI; % ............... function i = isodd(x) i = ( floor(x/2) ~= (x/2) ); % ............... function f = hanning(x,xL,xH)
  • 3. if ndims(squeeze(x))==1, x=1:x; dx=1; else dx=abs(x(2)-x(1)); end f=zeros(1,length(x)); if x(1) >= 0; % one-sided filter jL = find(abs(x-xL)<dx,1); if isnan(jL); jL=1; end jH = find(abs(x-xH)<dx,1); if isnan(jH); jH=length(x); end f(1:jL)=1; f(jH:end)=0; k = jL:jH; f(k)=0.5 + 0.5*cos(pi*(k-jL)/(jH-jL)); else j1 = find(abs(x+xL)<dx,1); if isnan(j1); j1=1; end j2 = find(abs(x-xL)<dx,1); if isnan(j2); j2=length(x); end j3 = find(abs(x+xH)<dx,1); if isnan(j3); j3=1; end j4 = find(abs(x-xH)<dx,1); if isnan(j4); j4=length(x); end f(1:j3)=0; f(j4:end)=0; f(j1:j2)=1; k = j2:j4; f(k)=0.5 + 0.5*cos(pi*(k-j2)/(j4-j2)); k = j3:j1; f(k)=0.5 - 0.5*cos(pi*(k-j3)/(j3-j1)); end visit us at www.assignmentpedia.com or email us at [email protected] or call us at +1 520 8371215