Article View: sci.image.processing
Article #557Re: image processing loops: a c programming question
From: Thomas M. Breuel
Date: Sun, 23 Aug 1992 00:36
Date: Sun, 23 Aug 1992 00:36
19 lines
1551 bytes
1551 bytes
In article <1992Aug22.051723.28817@msc.cornell.edu> maynard@tamar.msc.cornell.edu (Maynard J. Handley) writes: Why not do what I do and have the best of both worlds? Allocate one long array of nx*ny doubles, then an array of nx double*s, each of which points to the appropriate section of the previous array. Operations that naturally run across the entire array can be coded like that, and operations that make use of the 2Dness of the array can be coded like that. You also have something you can pass to Fortran. I posted C code for this in this very group about a week ago... Of course I wrap it up in a C++ class to hide the ugly details of creating and destroying the objects each time I use them. C++ code for implementing template arrays in this way is available from "maya.idiap.ch:pub/tmb/array.shar". Thomas.
Technical Details
Message-ID:
<TMB.92Aug22203603@arolla.idiap.ch>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!tmbReferences:
<SLEHAR.92Aug7111245@kendall.bu.edu> <ben.714157437@galaxy> <1992Aug22.051723.28817@msc.cornell.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!tmb From: tmb@arolla.idiap.ch (Thomas M. Breuel) Newsgroups: sci.image.processing Subject: Re: image processing loops: a c programming question Message-ID: <TMB.92Aug22203603@arolla.idiap.ch> Date: 23 Aug 92 00:36:03 GMT References: <SLEHAR.92Aug7111245@kendall.bu.edu> <ben.714157437@galaxy> <1992Aug22.051723.28817@msc.cornell.edu> Sender: news@ai.mit.edu Reply-To: tmb@idiap.ch Distribution: sci.image.processing Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle Perceptive) Lines: 19 In-reply-to: maynard@tamar.msc.cornell.edu's message of 22 Aug 92 05:17:23 GMT