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.

Help me to convert bitmap images into binary format using Visual C++

Status
Not open for further replies.

mtv

Newbie level 6
Joined
Oct 13, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,382
hi.. i need help to convert bitmap images into binary format.. im using visual c++.. can i get some sourcecodes? i really need it for my project.. thank u...

any sourcecodes to process image such as segmentation will be very helpful to me.. thank u!!
 

drwho78

Full Member level 3
Joined
Dec 31, 1999
Messages
163
Helped
10
Reputation
20
Reaction score
5
Trophy points
1,298
Activity points
1,143
Re: binary images

Bitmap images are already in binary format. What are you looking for exactly? Are you trying to convert bitmap to other formats like GIF, JPG, etc?
 

    mtv

    Points: 2
    Helpful Answer Positive Rating

mtv

Newbie level 6
Joined
Oct 13, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,382
Re: binary images

actualy im doin my project on character recognition using neural network.. but i don know what kind of weight i need to use to train the images.. so i thought of converting it to binary value then use it as the weight to represent each character.. can help me?
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
637
Reputation
1,272
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,178
binary images

Still not clear. Bitmap images already contain binary data, as drwho78 said.

Maybe you are trying to write a program that decodes the image file format. That depends on the image type. If that's true, then try this web page:
https://www.wotsit.org/search.asp?s=graphics
 

    mtv

    Points: 2
    Helpful Answer Positive Rating

mtv

Newbie level 6
Joined
Oct 13, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,382
Re: binary images

yeah, i am doin a program on character recognition.. i've got bitmap images of the characters .. i need to convert them to binary in order recognize..

or is there any other way to make this easier? really appreciate ur help... thank u!
 

banh

Advanced Member level 1
Joined
Dec 16, 2004
Messages
458
Helped
17
Reputation
34
Reaction score
5
Trophy points
1,298
Activity points
3,937
Re: binary images

mtv said:
yeah, i am doin a program on character recognition.. i've got bitmap images of the characters .. i need to convert them to binary in order recognize..

or is there any other way to make this easier? really appreciate ur help... thank u!

i think you need to convert from RGB to YUV. what you need may be just the Y component which is equivalent to grayscale.. U,V are color components.

from the Y component, you can convert to binary by having threshold (e.g. above 127 -> 1, below 127 ->0). you can search for some other methods which may use more than 1 threshold.

for RGB <->YUV conversion formula:
https://www.cse.msu.edu/~cbowen/docs/yuvtorgb.html
 

    mtv

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top