See Question.pdf

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

function [ mag_out, phase_out ] = AmpPhaseDFT( inputimage )
    X = inputimage;
    [nRow, nCol, nDim] = size( X );
    if nDim ~= 1
       error('input image is not grayscale')      
    if nRow ~= 128 || nCol ~= 128
       warning('input image is not 128x128')      
       X = imresize( X, [128, 128] );
       nRow = 128;
       nCol = 128;
    if ~isa(X,'double')
       warning('input image is not double precision')
       X = im2double( X );...

This is only a preview of the solution. Please use the purchase button to see the entire solution


or free if you
register a new account!

Related Homework Solutions

Get help from a qualified tutor
Live Chats