SlideShare une entreprise Scribd logo
1  sur  3
Télécharger pour lire hors ligne
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

Contenu connexe

Plus de 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 HelpAssignmentpedia
 
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 HelpAssignmentpedia
 
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
 

Plus de 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
 

Dernier

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Dernier (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

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