Is it normal, when applying gaussian oder median filter to image-profile, the counts increase significantly?

1 view (last 30 days)
Hello everyone,
I've got a huge problem right now. I'm analyzing some images in Matlab and do create average verticle profiles from the center of the image therefore. When applying a median filter or a gaussian filter to it, the peak/counts increases significantly up to 10%. Is this normal for these kind of filter and is there any other filtering option?
This is how I use them:
for j = 1:numofim
ImStack_filter(:,:,j) = medfilt2(ImStack_filter(:,:,j),[med_filt_size med_filt_size]);
end
for j = 1:numofim
ImStack_filter(:,:,j) = imgaussfilt(ImStack_filter(:,:,j),sigma);
end
Sigma and med_filt_size are the variables in there to adjust to filters.
i hope anyone can help me.
Thank you

Answers (0)

Community Treasure Hunt

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

Start Hunting!