error in converting image to binary

조회 수: 4 (최근 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
  댓글 수: 1
FIR
FIR 2012년 3월 1일
I tried but getting same result

댓글을 달려면 로그인하십시오.


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