Effacer les filtres
Effacer les filtres

How i can calculate row wise avg of an image??

4 vues (au cours des 30 derniers jours)
Sohel Ahammed
Sohel Ahammed le 30 Juin 2015
Commenté : Thorsten le 30 Juin 2015
temp1 = double(imread('im1.JPG')); %img1.jpg is a 240*20 pixels in size;
%expected output 240 rows with single column with avg or mean ;
output= mean(temp1,240)

Réponse acceptée

Thorsten
Thorsten le 30 Juin 2015
output = mean(temp1, 2);
  4 commentaires
Stephen23
Stephen23 le 30 Juin 2015
Modifié(e) : Stephen23 le 30 Juin 2015
Thorsten
Thorsten le 30 Juin 2015
I interpreted 240*20 as row x column; if it is x * y, you can use Stephen's code or simply
output = mean(temp1);

Connectez-vous pour commenter.

Plus de réponses (0)

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