LOGREMAP_CVIP

logremap_cvip() -Logarithmic remapping of an image data.

Contents

SYNTAX

[ realImage, phaseImage ] = logremap_cvip( inputImage, band)

Input Parameters include:

Output Parameters include :

DESCRIPTION

The function performs the logarithmic remapping of an input image. The input image can be either real image or complex image. If complex, the function computes real image and phase phase, returns two log remapped images. If the input image is multi-band image,the user has option to select single band for remap and return the remapped version of that band only. Or the user can select all bands by not passing band parameter during the function call. After logarithmic remapping, the histograms of the image are stretched for better display.

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

% Read image

  I = imread('butterfly.tif');

% complex image

 fftimg = fft_cvip(I ,[]);



% magnitude Image and all bands are selected (default)

  M = logremap_cvip(fftimg);

% select red band only

  band = 'r';

% magnitude image M1 and phase image P1

 [M1,P1] = logremap_cvip(fftimg,band);

% Display input image

 figure;imshow(I);title('Input Image');

% Display output image

 figure;imshow(M1,[]);title('Magnitude Image');

 figure;imshow(P1,[]);title('Phase Image');

CREDITS

Author:Norsang Lama, March 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website