MATLAB Answers

FIR
0

error in converting image to binary

Asked by FIR
on 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

  0 Comments

Tags

Products

No products are associated with this question.

2 Answers

Answer by Pugazhendhi
on 1 Mar 2012

First convert to grayscale(rgb2gray) then use im2bw

  1 Comment

FIR
on 1 Mar 2012

I tried but getting same result


Answer by Walter Roberson
on 1 Mar 2012

See graythresh()

  0 Comments


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!