Continue to Site

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
 

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
 

You should use these functions in the order:

imread
double or im2double
dec2bin
 

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

Back
Top