answersLogoWhite

0


Best Answer

high pass filterin with gaussian

User Avatar

Wiki User

โˆ™ 12y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

โˆ™ 11mo ago

Here is a MATLAB program for implementing a high-pass filter using a Gaussian kernel:

% Read the input image
inputImage = imread('input.png');

% Convert the input image to grayscale
grayImage = rgb2gray(inputImage);

% Apply the Gaussian filter
gaussianImage = imgaussfilt(grayImage);

% Subtract the original image from the filtered image to obtain the high-pass filtered image
highPassImage = grayImage - gaussianImage;

% Display the input image and the high-pass filtered image
subplot(1,2,1);
imshow(grayImage);
title('Input Image');

subplot(1,2,2);
imshow(highPassImage);
title('High-Pass Filtered Image');

Make sure to replace 'input.png' with the path to your input image file.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Matlab program for high pass filter using gaussian?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does matlab talk?

Yes, it is possible to make matlab talk in Windows using a simple program that can be downloaded here: http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=15890&objectType=FILE If you are using a mac, or unix then there may be other ways to make matlab talk, but the basic code will be quite similar. Have fun. Ed


How to generate multi component sine wave signal by using matlab program?

Generating Sine and Cosine Signals (Use updated lab)


How do you make graph from an equation in Matlab?

Initially, the equation can be directly realized using Matlab source code. Then various inputs can be applied to it. These values can easily be plotted on a graph using plot or stem command in Matlab.


How do you implement awgn in MATLAB without using awgn function?

no way... use awgn function in matlab


How to do a password using vhdl?

A VHDL program can be written to provide a password in the following ways.Using FPGA:Your program can be dumped into a FPGA. This works as per the program written. As the code is burned into it, the user can not see the code. Now, within your program you can have a conditional statement which serves as your password. For example,if (c=ramarav) then...................................................................Using CPLD:It also works in the similar manner.Using a GUI:We can implement a graphical user interface, but the easier way is to take the help of MATLAB tool. We can implement our VHDL code in MATLAB tool and it serves the purpose.


How do you call matlab from java?

You can MATLAB from Java by using the matlabcontrol library available at link1. A walkthrough to get you started can be found at link2


Convolution in matlab using for loop?

There are a lot of convolution functions in matlab, mostly in the signal processing toolbox, so it depends on what you want to do. Matlab has extensive help files available online.


How do you modulate in matlab without using matlab tools?

You would have to write your own code for a modulation (Matlab has a convolution function not in the tools), otherwise you can use its built in function in the signal processing toolbox.


Interpolation program using matlab?

To create an interpolation program using MATLAB, you can use the built-in functions such as interp1 or interp2 for one-dimensional or two-dimensional interpolation, respectively. These functions allow you to specify the input data points and the desired interpolation method (e.g., linear, cubic, spline) to generate interpolated values. You can then use the interpolated values for further analysis or visualization tasks.


How do you convert sequence of images to video in matlab?

You can do this by selecting the sequence of images you want to animate and then using the Matlab's function called "im2frame". This will result in a video.


How do you determine determinant of matrix using matlab?

d = det(x);


How do you blur in Photoshop elements?

You can easily add blur using depth of Field in Guided Edit or from Filter > Blur > Gaussian Blur, Motion Blur... When using blur filter from Filter menu first duplicate layer with image, apply blur filter then create layer mask and use Gradient Tool on layer mask (set foreground background colors to black/white) to restrict blur only to some areas of the image.