Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Matlab image processing doubt

Status
Not open for further replies.

abhigopal

Member level 3
Joined
Dec 21, 2004
Messages
61
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
624
Hi,

I have an image matrix. I want to convert all the pixel values to binary values for processing. How do i do this?? Is there some kind of quantization format available??

Thanks
Abhi
 

tofinhk

Member level 1
Joined
Apr 6, 2004
Messages
36
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,288
Activity points
380
What do you mean by converting pixel values to binary values?
if there is a 8-bit image, you got a value 129 from a pixel, then you want to change it to 1000 0001??

If so, what you need is a function change from decimal to binary, but not a image processing problem. As I remember, there is a function called dec2bin, you may check about it.

HTH
 

h_ghanei

Newbie level 4
Joined
Oct 22, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,340
You should use these functions in the order:

imread
double or im2double
dec2bin
 

abishek

Member level 1
Joined
Oct 9, 2005
Messages
37
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Activity points
1,658
the inbuilt function in matlab dec2bin should do the job
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top