an image shoud be divided into several blocks of 8 by 8 pixel

4 commentaires

ROSE MARY KATIKALA
ROSE MARY KATIKALA le 9 Fév 2017
Modifié(e) : Image Analyst le 9 Fév 2017
  1. Read the image.
  2. Image is divided in to sub-blocks of size M x N
  3. For each sub block, standard deviation is calculated to increase intensity of image object.
  4. Global threshold is applied for each sub block which has standard deviation as greater than one.
  5. The above process is repeated for each and every sub block of entire image.
Help me out for this.
Image Analyst
Image Analyst le 9 Fév 2017
You never ran my demos I attached below, did you?
ROSE MARY KATIKALA
ROSE MARY KATIKALA le 10 Fév 2017
done but for road detection project i just need to make an image of 0's n 1's of roaads and non roads parts... how can i do that? can u give me a clear explanation.. im beginner in matlab so..
Walter Roberson
Walter Roberson le 10 Fév 2017
You should open a new question for that, showing some sample images, and showing the work you have done.

Connectez-vous pour commenter.

 Réponse acceptée

Anushka
Anushka le 16 Juin 2015
Modifié(e) : Walter Roberson le 10 Fév 2017
J = imresize(M1, [256 256]);
[r c]=size(J);
bs=32; % Block Size (32x32)
nob=64 % Total number of 32x32 Blocks
% Dividing the image into 32x32 Blocks
kk=0;
l=0;
[F]=zeros(1,64);
%[B0]=zeros(32,32);
for i=1:(r/bs)
for j=1:(c/bs)
B0=J((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs),3);
end
kk=kk+(r/bs);
end
% And to get the RGB values I used the following code
for x=1:32
for y=1:32
R=B0(x,y,1);
G=B0(x,y,2);
B=B0(x,y,3);
end
end

Plus de réponses (1)

Catégories

En savoir plus sur Image Processing and Computer Vision dans Centre d'aide et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by