error in converting image to binary

1 vue (au cours des 30 derniers jours)
FIR
FIR le 1 Mar 2012
I have a rgb image inwhich the image consists of two persons,i want to make the background black and persons in white colour,i tried im2bw but i get only whit backgroubf,no image duisplayed ,please help

Réponses (2)

Pugazhendhi
Pugazhendhi le 1 Mar 2012
First convert to grayscale(rgb2gray) then use im2bw
  1 commentaire
FIR
FIR le 1 Mar 2012
I tried but getting same result

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 1 Mar 2012
See graythresh()

Catégories

En savoir plus sur Import, Export, and Conversion dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by