how to calculate mean and standard deviation, from the image then subtracted from the original image iteratively using matlab ?
조회 수: 3 (최근 30일)
이전 댓글 표시
Is it meant to be the local statistical features mean and standard deviation. or it mean by mean filter or standard deviation fitter
댓글 수: 0
채택된 답변
Image Analyst
2021년 10월 22일
For local mean, use imfilter, or conv2()
kernel = ones(5)/25;
localMeanImage = conv2(double(grayImage), kernel, 'same');
For local standard deviation, use stdfilt
localSDImage = stdfilt(grayImage, ones(5));
댓글 수: 0
추가 답변 (1개)
yanqi liu
2021년 10월 23일
local statistical features mean and standard deviation. or it mean by mean filter or standard deviation fitter
sir,may be use blockproc to process, such as
clc; clear all;
im = imread('cameraman.tif');
fun = @(block_struct) [mean2(block_struct.data) std2(block_struct.data)];
res = blockproc(double(im),[64 64],fun);
disp(res)
댓글 수: 2
Image Analyst
2021년 10월 23일
@safa, show your code. Because I don't see %{ in her code. In your code you have a %{ to start a big chunk of code as a comment, but you never have a %} to tell it where you want all those lines of code to stop being a comment. Search for %{ and %} in your code. Do you see the same number of each of them?
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!