473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Matrix for bitmap

Hello. I have some difficulties.I would like to load a bmp image on a matrix.I don't know how to open and read the black white bmp image and then output the values . For example: supose the *.bmp size16*16
[16][16]= {
{ 0,235,59,219,15,231,55,215,2,232,56,217,12,229,52, 213},
{128,64,187,123,143,79,183,119,130,66,184,120,140, 76,180,116},
{33,192,16,251,47,207,31,247,34,194,18,248,44,204, 28,244},
{161,97,144,80,175,111,159,95,162,98,146,82,172,10 8,156,92},
{8,225,48,208,5,239,63,223,10,226,50,210,6,236,60, 220},
{136,72,176,112,133,69,191,127,138,74,178,114,134, 70,188,124},
{41,200,24,240,36,197,20,255,42,202,26,242,38,198, 22,252},
{169,105,152,88,164,100,148,84,170,106,154,90,166, 102,150,86},
{3,233,57,216,13,228,53,212,1,234,58,218,14,230,54 ,214},
{131,67,185,121,141,77,181,117,129,65,186,122,142, 78,182,118},
{35,195,19,249,45,205,29,245,32,193,17,250,46,206, 30,246},
{163,99,147,83,173,109,157,93,160,96,145,81,174,11 0,158,94},
{11,227,51,211,7,237,61,221,9,224,49,209,4,238,62, 222},
{139,75,179,115,135,71,189,125,137,73,177,113,132, 68,190,126},
{43,203,27,243,39,199,23,253,40,201,25,241,37,196, 21,254},
{171,107,155,91,167,103,151,87,168,104,153,89,165, 101,149,85},
This is what I have produced.Is there anyone who can help me?
Oct 9 '07 #1
1 1088
weaknessforcats
9,208 Expert Mod 8TB
Are you using Windows?

If so, read this.
Oct 10 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ben Ingram | last post by:
Hi all, I am writing a template matrix class in which the template parameters are the number of rows and number of columns. There are a number of reasons why this is an appropriate tradeoff for...
5
by: Jason | last post by:
Hello. I am trying to learn how operator overloading works so I wrote a simple class to help me practice. I understand the basic opertoar overload like + - / *, but when I try to overload more...
4
by: Harry | last post by:
Hello, I am using a 2-dimensional matrix for image manipulation and recognition. The x-axes is image.width pixels long and the y-axes image.height. All fields have a RGB integer value. To store...
1
by: Wayne Shu | last post by:
Hi everyone: I'm looking forward to a wonderful matrix class library! Does someone like to introduce a to me? It should satisfy the following demands: 1. Open Source. 2. Efficient. 3. Support...
2
by: DarrenWeber | last post by:
Below is a module (matrix.py) with a class to implement some basic matrix operations on a 2D list. Some things puzzle me about the best way to do this (please don't refer to scipy, numpy and...
0
by: DarrenWeber | last post by:
# Copyright (C) 2007 Darren Lee Weber # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free...
1
by: nash83 | last post by:
Hello.I am just starting to use c++ and I have already some difficulties.I am working with intel c++ compiler 7.I would like to load a bmp image on a matrix.I only can open and read its...
2
by: Marco Biagioni | last post by:
After i've tried to update a vb 6.0 project to vb.net, using visual studio utility,i can't read correctly data bytes from a .bmp file to insert them in a matrix to operate on. Using vb 6.0 the...
2
by: Marco Biagioni | last post by:
After i've tried to update a vb 6.0 project to vb.net, using visual studio utility,i can't read correctly data bytes from a .bmp file to insert them in a matrix to operate on. Using vb 6.0 the...
6
by: ProtossLee | last post by:
Hi, I am currently working on a project for image processing. a double matrix m1(1300X1000) need to be converted into bitmap and displayed on screen. so far I've made the following code: For i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.