473,385 Members | 1,764 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,385 software developers and data experts.

dilation erosion bitmap

Hi!
Im lookin for a code in C wchich would handle the subject, I searched
all the web and didnt find nothing. I need to make a lap-mpi wersion of
the opening and closing. I need only the code for dilation and erosion
- for my class i nedd to implement it into an lap-mpi wersion. my
proffessor said I would find the code for opening and closing a bitmap
on the net but i just cant find any, so im asking you guys if anyone
could slip it here i would be moust thankfull.

Adam.

Jan 15 '07 #1
6 7053
"Adam" writes:
Im lookin for a code in C wchich would handle the subject, I searched
all the web and didnt find nothing. I need to make a lap-mpi wersion of
the opening and closing. I need only the code for dilation and erosion
- for my class i nedd to implement it into an lap-mpi wersion. my
proffessor said I would find the code for opening and closing a bitmap
on the net but i just cant find any, so im asking you guys if anyone
could slip it here i would be moust thankfull.
I detest instructors who say things like that, of course it is on the net,
*everything* is on the net! That doesn't mean one can find it without going
crazy.

Bitmap is a technique, it is not a definitive reference to something unique.
My guess is that the reference is to a .bmp file, is that so? lap-mpi means
nothing to me or the vast majority of people in the world. If you do mean
..bmp try something like <bmp display codeand variations on this theme on a
net search.

There is some information WRT .bmp files on this link.

http://www.wotsit.org/search.asp?s=graphics
Jan 15 '07 #2
Adam wrote:
>
Im lookin for a code in C wchich would handle the subject, I searched
all the web and didnt find nothing. I need to make a lap-mpi wersion of
the opening and closing. I need only the code for dilation and erosion
- for my class i nedd to implement it into an lap-mpi wersion. my
proffessor said I would find the code for opening and closing a bitmap
on the net but i just cant find any, so im asking you guys if anyone
could slip it here i would be moust thankfull.
#include <stdio.h>

void bitmap(void *bitmaptr) {
if (!bitmaptr) puts("Code for bitmap here");
}

void erosion(void *erosionp) {
bitmap(erosionp);
puts("code for erosion here");
}

void dilation(void *dilation) {
erosion(dilation);
puts("Baby is not yet ready");
}

int main(void) {
dilation(NULL);
return 0;
}

Should compile and run immediately. Meets all the specifications.

--
"The power of the Executive to cast a man into prison without
formulating any charge known to the law, and particularly to
deny him the judgement of his peers, is in the highest degree
odious and is the foundation of all totalitarian government
whether Nazi or Communist." -- W. Churchill, Nov 21, 1943
Jan 15 '07 #3
Adam wrote:
Hi!
Im lookin for a code in C wchich would handle the subject, I searched
all the web and didnt find nothing. I need to make a lap-mpi wersion of
the opening and closing. I need only the code for dilation and erosion
- for my class i nedd to implement it into an lap-mpi wersion. my
proffessor said I would find the code for opening and closing a bitmap
on the net but i just cant find any, so im asking you guys if anyone
could slip it here i would be moust thankfull.

Adam.
The following is a popular library to process image files in various
formats:
<http://www.imagemagick.org/>

Jan 15 '07 #4

osmium napisal(a):
"Adam" writes:
Im lookin for a code in C wchich would handle the subject, I searched
all the web and didnt find nothing. I need to make a lap-mpi wersion of
the opening and closing. I need only the code for dilation and erosion
- for my class i nedd to implement it into an lap-mpi wersion. my
proffessor said I would find the code for opening and closing a bitmap
on the net but i just cant find any, so im asking you guys if anyone
could slip it here i would be moust thankfull.

I detest instructors who say things like that, of course it is on the net,
*everything* is on the net! That doesn't mean one can find it without going
crazy.

Bitmap is a technique, it is not a definitive reference to something unique.
My guess is that the reference is to a .bmp file, is that so? lap-mpi means
nothing to me or the vast majority of people in the world. If you do mean
.bmp try something like <bmp display codeand variations on this theme on a
net search.

There is some information WRT .bmp files on this link.

http://www.wotsit.org/search.asp?s=graphics
Yes its a .bmp file uncompressed in grayscale. And its not lap-mpi but
lam-mpi (Local area multicomputer lam-mpi.org) my bad sorry for that.
Its about sending parts of the image to the same program active on
different computers in the network. Thats the important part of my
work, and thats why i dont nedd to write my own opening and closing
algorithm, just find one thats ready and put it into my program.

Jan 15 '07 #5

On Mon, 15 Jan 2007, Adam wrote:
>
Im lookin for a code in C wchich would handle the subject, I searched
all the web and didnt find nothing. I need to make a lap-mpi wersion of
the opening and closing. I need only the code for dilation and erosion
- for my class i nedd to implement it into an lap-mpi wersion. my
proffessor said I would find the code for opening and closing a bitmap
on the net but i just cant find any, so im asking you guys if anyone
could slip it here i would be moust thankfull.
Requests for source code aren't topical here (where the subject is
the C /language/ itself, not things written in it); better places to
ask include the catchall comp.programming and the comp.graphics.*
hierarchy.
But I'll suggest an alternative to ImageMagick anyway:
http://www.contrib.andrew.cmu.edu/~a...re/ImageFmtc.c
http://www.contrib.andrew.cmu.edu/~a...re/ImageFmtc.h
Simpler interface, no library woes.

HTH,
-Arthur
Jan 15 '07 #6

Arthur J. O'Dwyer napisal(a):
On Mon, 15 Jan 2007, Adam wrote:

Im lookin for a code in C wchich would handle the subject, I searched
all the web and didnt find nothing. I need to make a lap-mpi wersion of
the opening and closing. I need only the code for dilation and erosion
- for my class i nedd to implement it into an lap-mpi wersion. my
proffessor said I would find the code for opening and closing a bitmap
on the net but i just cant find any, so im asking you guys if anyone
could slip it here i would be moust thankfull.

Requests for source code aren't topical here (where the subject is
the C /language/ itself, not things written in it); better places to
ask include the catchall comp.programming and the comp.graphics.*
hierarchy.
But I'll suggest an alternative to ImageMagick anyway:
http://www.contrib.andrew.cmu.edu/~a...re/ImageFmtc.c
http://www.contrib.andrew.cmu.edu/~a...re/ImageFmtc.h
Simpler interface, no library woes.

HTH,
-Arthur
Thanks for the reply, i'll try those groups.

Jan 15 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sharon | last post by:
I encountered a strange behavior when doing ‘new Bitmap’: The following code works fine and the given bitmap file is shown on the PictureBox (the m_DrawArea) in the correct bitmap sizes: ...
5
by: Lance | last post by:
I need to create a Drawing.Bitmap from an array of integer values. My current technique creates a bitmap that eventually becomes corrupt (i.e., the bitmap's pixels change to a different color...
2
by: active | last post by:
I find Bitmap.Save works for WMF files but Bitmap.FromFile does not. If I use FromFile on a WMF file that came with VS I get an exception. If I use it on a WMF file created with Bitmap.Save I...
7
by: Fir5tSight | last post by:
Hi All, I used the following code in C#: using System.Drawing; //blah blah blah Bitmap bmp = new Bitmap();
14
by: eliss.carmine | last post by:
I'm using TCP/IP to send a Bitmap object over Sockets. This is my first time using C# at all so I don't know if this is the "right" way to do it. I've already found out several times the way I was...
8
by: Joergen Bech | last post by:
Suppose I have Dim bm As New Bitmap(16, 16,Imaging.PixelFormat.Format8bppIndexed) I cannot use Dim g As Graphics = Graphics.FromImage(bmdest) Dim hdc As IntPtr = g.GetHdc() as the...
6
by: \Frank\ | last post by:
I trying to learn what a Bitmap is. Not a Managed Bitmap Object but one that, for example, comes from the clipboard with CF_BITMAP. I'm guessing that a CompatableBitmap is an array of indices...
2
by: Peter Oliphant | last post by:
I want to create a new Bitmap which is a portion of an existing Bitmap. For example, if I have a Bitmap that is 100x100 in size I might want to create a new Bitmap that is equivalent to the one...
5
by: =?Utf-8?B?QVRU?= | last post by:
I have a bitmap of 100X100. On the load, the bitmap is created by a function (createimage()). On my OnPaint, I draw the image back to the screen (e.Graphics.DrawImage( bitmap, destrect)). Now,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.