error in converting image to binary

1 次查看(过去 30 天)
FIR
FIR 2012-3-1
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

回答(2 个)

Pugazhendhi
Pugazhendhi 2012-3-1
First convert to grayscale(rgb2gray) then use im2bw

Walter Roberson
Walter Roberson 2012-3-1
See graythresh()

类别

Help CenterFile Exchange 中查找有关 Import, Export, and Conversion 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by