Article View: sci.image.processing
Article #520Re: image processing loops: a c programming question
From: Ben Verwer
Date: Wed, 19 Aug 1992 23:49
Date: Wed, 19 Aug 1992 23:49
33 lines
1667 bytes
1667 bytes
stefang@isy.liu.se (Stefan Gustavson) writes:
>ben@ph.tn.tudelft.nl (Ben Verwer) writes:
>[...]
>>As for the author who proposed the function call in the innerloop: you must
>>drink lots of coffee at work :)
>[...]
>Ahem. It was me, and if I may say so, I resent your cheap blow.
>I drink a lot of coffee at work, but not for the reason you imply.
>If you call sizeof() a function call, you can't really be a very
>experienced programmer. sizeof() evaluates at compile time to a
>constant. And I was really only making a joke. Remember?
>Did my last posting get lost before you saw it? I _have_ tried my
>examples too, you know.
Sorry, I'll be more specific, though I don't know why you thought I
was speaking of you.
I was speaking about the posting in which wyc@bucrsb.bu.edu (Yecheng Wu) wrote:
>One solution to the messy problem is to make some functions to do
>the offset calculation. For example, we can PutPixel and
>GetPixel() here. They should look like:
>BYTE GetPixel(BYTE *ImageBuf, long RowOffset, long Col)
>{
> return ImageBuf[RowOffset+Col];
>}
Ben
Technical Details
Message-ID:
<ben.714268190@galaxy>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!dutrun2!galaxy!benReferences:
<SLEHAR.92Aug7111245@kendall.bu.edu> <ben.714157437@galaxy> <stefang.714225838@isy>Show Full Headers
Complete Article Headers
Newsgroups: sci.image.processing Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!dutrun2!galaxy!ben From: ben@ph.tn.tudelft.nl (Ben Verwer) Subject: Re: image processing loops: a c programming question Message-ID: <ben.714268190@galaxy> Sender: news@dutrun2.tudelft.nl (UseNet News System) Nntp-Posting-Host: ph.tn.tudelft.nl Organization: Delft University of Technology References: <SLEHAR.92Aug7111245@kendall.bu.edu> <ben.714157437@galaxy> <stefang.714225838@isy> Distribution: sci.image.processing Date: Wed, 19 Aug 1992 23:49:50 GMT Lines: 33