필터 지우기
필터 지우기

Spectrogram Image Filtering, Colorbar

조회 수: 3 (최근 30일)
B
B 2013년 3월 27일
댓글: yash patel 2021년 9월 18일
This is a weird question but here goes. I have created a spectrogram using MATLAB's built in function. Basically I want to be able to filter the spectrogram to change the intensity levels. I also need this change to be reflected in the colorbar. For example, if I save the spectrogram as a jpeg and filter that image, the entire image is filtered including the axes, titles, and the colorbar. I want to be able to just filter the spectrogram and have the changes in the intensity be reflected in the colorbar. Any ideas? Should I save the figure as something else? Hopefully that makes sense.
  댓글 수: 2
PT
PT 2013년 3월 27일
What do you mean filter? Give an example.
B
B 2013년 3월 27일
I mean like a spatial filter such as the built-in average filter: fspecial('average'). I am basically trying to reduce noise by reducing the intensity of the spectrogram. I know this is very unconventional but I wanted to see if it was possible.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2013년 3월 27일
The color bar is a mapping of intensity to color. If you change the intensity, though noise reduction or filtering or any other method, then in the image it will take on the new color for that new intensity that it has. This will happen automatically (or as soon as you display the new intensity image with imshow() or imagesc()).
Use export_fig() to save. Find it in the File Exchange on the front page.
  댓글 수: 6
B
B 2013년 3월 28일
Here is my code that creates the data and the spectrogram. It only uses the signal processing toolbox.
t=0:0.1:13;
x=sin(2*pi*t);
noise=0.2*randn(size(t));
sig=x+noise;
tflog=specgram(sig,1000,128,32,31);
imagesc(abs(tflog));
yash patel
yash patel 2021년 9월 18일
do you find any answer ..i have similar problem like you.....?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by