Usenet.com

www.Usenet.com

Group Index

Sci Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Smoothing?



DaveWilson wrote:

> Final pester i promise :p
> 
> Have i said thankyou for all your help by the way???
> 
> if not...thankyou very much for your time and paitience.
> 
> Can we just go back to the origanal edge detector.....
> 
> // allocate working array
> double* pWork = new double [my_image.width * my_image.length];
> 
> why the pointer?? couldn't you use a standard array and force the data
> from a double to an int?
 
This would only be possible if you have a fixed image size. Variable sizes
require the array to be initialized at runtime, so you need a pointer here.
Of course you could use a int* instead of double*, but this will only make
sense for very large and/or volumetric images ( because of memory usage and
performance issues).

-- 
Dipl.-Inform. Hendrik Belitz
Central Laboratory of Electronics
Research Center Juelich



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.