Filter löschen
Filter löschen

How can we apply the standard deviation?

2 Ansichten (letzte 30 Tage)
wissa amer
wissa amer am 17 Mär. 2014
Beantwortet: Dishant Arora am 18 Mär. 2014
In the following code image was divided into 8 * 8 blocks
Image=rgb2gray(imread('1.jpg')); [m n]=size(Image);
Nbrx = floor(m./8); Nbry = floor(n./8); Nd=1;
for i=1:Nbrx
for j=1:Nbry
Mat=Image((i-1)*8+1:i*8,(j-1)*8+1:j*8);
subplot(Nbrx,Nbry,Nd); imshow(Mat)
Nd=Nd+1;
end
end
How can we apply the standard deviation on each block

Antworten (1)

Dishant Arora
Dishant Arora am 18 Mär. 2014
doc blockproc
It operates given function on an image block by block, so will get rid of the code you wrote above to partition the image. And std gives standard deviation.

Community Treasure Hunt

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

Start Hunting!

Translated by