Purchase Solution

Code for reading Raster Data (Resubmit)

Not what you're looking for?

Ask Custom Question

Dear Champake Mendis, MEngSc (IP),

Many thanks for your reply, but I would like to resubmit. Please note that I have segmented my character as (10x10) pixels number plates 8-bit. When I used the code provided by Bill Green, TEST.bmp 20 row by 20 column BMP image, I found the right and expected result. However, when I tried to use my own Bitmap characters, for example LetterD I got result which when compared to the actual pixel values in Photoshop, they are completely different. I have attached a folder for you to see. Furthermore, I got the size of the file as 0 and the vector size as -1078. Why? I am using Visual C++ . Please look at it again.

Reading filename LetterD.bmp
Width: 10
Height: 10
File Size: 0
# Colors: 256
Vector Size: -1078

LetterD (Result using the program) LetterD (Result from Photoshop)

(0, 0) = 255 (0, 0) = 255
(0, 1) = 0 (0, 1) =255
(0, 2) = 0 (0, 2) =255
(0, 3) = 0 (0, 3) =255
(0, 4) = 0 (0, 4) = 255
(0, 5) = 0 (0, 5) = 255
(0, 6) = 0 (0, 6) = 255
(0, 7) = 0 (0, 7) = 255
(0, 8) = 255 (0, 8) = 255
(0, 9) = 255 (0, 9) = 255
: :
: :
(2, 9) = 255 (2, 9) =0
: :
(9, 6) = 255 (9, 6) =255
(9, 7) = 255 (9, 7) =255
(9, 8) = 255 (9, 8) = 255
(9, 9) = 255

Attachments
Purchase this Solution

Solution provided by:
Education
  • BSc (Hons), University of Colombo - Sri Lanka
  • MEngSc, University of Melbourne
  • Certificate IV in Training & Assessment , Australian Business Council
Recent Feedback
  • "Thank you!"
  • "Thank you."
  • "Thanks a lot for you help and support"
  • "Sorry about the late payment but the assignment was sufficient and appreciated. Good work"
  • "Great description! Thank you for your quick response."
Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Javscript Basics

Quiz on basics of javascript programming language.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic Networking Questions

This quiz consists of some basic networking questions.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.