Effacer les filtres
Effacer les filtres

the below code changes rgb image to grey ,can the same partision done without changing the image to grey??

2 vues (au cours des 30 derniers jours)
dataTop = rgb2gray(data(1:240, :,:));
dataMiddle = rgb2gray(data(241:480, :, :));
dataBottom = rgb2gray(data(481:end, :, :));

Réponse acceptée

Image Analyst
Image Analyst le 4 Avr 2013
Modifié(e) : Image Analyst le 4 Avr 2013
I'm not sure of the question. You cannot do the same thing by doing something different, obviously. So you can't change the image to gray without changing the image to gray. If you don't want to call rgb2gray(), then don't.
  9 commentaires
vishnu andavar
vishnu andavar le 5 Avr 2013
sir,its like after diving into three,i need to check if any red object is present in all 3 sections,if yes in section then that section 1 motor should work,can this be done??

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by