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

More from Assignmentpedia

Network costing analysis
Network costing analysisNetwork costing analysis
Network costing analysisAssignmentpedia
 
Matlab simulation project
Matlab simulation projectMatlab simulation project
Matlab simulation projectAssignmentpedia
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming projectAssignmentpedia
 
Image processing project using matlab
Image processing project using matlabImage processing project using matlab
Image processing project using matlabAssignmentpedia
 
Help with root locus homework1
Help with root locus homework1Help with root locus homework1
Help with root locus homework1Assignmentpedia
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework Help
Assignmentpedia
 
Theory of computation homework help
Theory of computation homework helpTheory of computation homework help
Theory of computation homework helpAssignmentpedia
 
Econometrics Homework Help
Econometrics Homework HelpEconometrics Homework Help
Econometrics Homework Help
Assignmentpedia
 
Help With Digital Communication Project
Help With  Digital Communication ProjectHelp With  Digital Communication Project
Help With Digital Communication ProjectAssignmentpedia
 
Filter Implementation And Evaluation Project
Filter Implementation And Evaluation ProjectFilter Implementation And Evaluation Project
Filter Implementation And Evaluation ProjectAssignmentpedia
 
Doppler Processing Project
Doppler Processing ProjectDoppler Processing Project
Doppler Processing ProjectAssignmentpedia
 
Distributed Radar Tracking Simulation Project
Distributed Radar Tracking Simulation ProjectDistributed Radar Tracking Simulation Project
Distributed Radar Tracking Simulation ProjectAssignmentpedia
 
Distributed Radar Tracking Simulation Project
Distributed Radar Tracking Simulation ProjectDistributed Radar Tracking Simulation Project
Distributed Radar Tracking Simulation ProjectAssignmentpedia
 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal ProcessingAssignmentpedia
 

More from Assignmentpedia (20)

Network costing analysis
Network costing analysisNetwork costing analysis
Network costing analysis
 
Matlab simulation project
Matlab simulation projectMatlab simulation project
Matlab simulation project
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming project
 
Links design
Links designLinks design
Links design
 
Image processing project using matlab
Image processing project using matlabImage processing project using matlab
Image processing project using matlab
 
Help with root locus homework1
Help with root locus homework1Help with root locus homework1
Help with root locus homework1
 
Transmitter subsystem
Transmitter subsystemTransmitter subsystem
Transmitter subsystem
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework Help
 
Theory of computation homework help
Theory of computation homework helpTheory of computation homework help
Theory of computation homework help
 
Econometrics Homework Help
Econometrics Homework HelpEconometrics Homework Help
Econometrics Homework Help
 
Video Codec
Video CodecVideo Codec
Video Codec
 
Radar Spectral Analysis
Radar Spectral AnalysisRadar Spectral Analysis
Radar Spectral Analysis
 
Pi Controller
Pi ControllerPi Controller
Pi Controller
 
Help With Digital Communication Project
Help With  Digital Communication ProjectHelp With  Digital Communication Project
Help With Digital Communication Project
 
Fpga Design Project
Fpga Design ProjectFpga Design Project
Fpga Design Project
 
Filter Implementation And Evaluation Project
Filter Implementation And Evaluation ProjectFilter Implementation And Evaluation Project
Filter Implementation And Evaluation Project
 
Doppler Processing Project
Doppler Processing ProjectDoppler Processing Project
Doppler Processing Project
 
Distributed Radar Tracking Simulation Project
Distributed Radar Tracking Simulation ProjectDistributed Radar Tracking Simulation Project
Distributed Radar Tracking Simulation Project
 
Distributed Radar Tracking Simulation Project
Distributed Radar Tracking Simulation ProjectDistributed Radar Tracking Simulation Project
Distributed Radar Tracking Simulation Project
 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal Processing
 

Recently uploaded

The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

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 info@assignmentpedia.com
  • 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 info@assignmentpedia.com or call us at +1 520 8371215