Re: Presence of logical ones around a pixel in a certain direction and distance



If the radius stays the same for each pixel, then for a
given
angular sector, the relative offsets of the pixels to be
examined
will be the same for each pixel to be examined. One could
therefor
pre-calculate the relative offsets for each of the
angular sectors,
and then as one stepped through the various pixels, it
would become
a straightforward "add absolute index of current pixel to
relative indices and access the array at those locations"
and process
the resulting vector.

That would be true for the angles as well, and is the
method I initially considered. However the problem occurs
when you specify a point near the edge of the matrix.
Handling this case might negate any performance gains you
get by precomputing any "mask".
.



Relevant Pages

  • Re: Data in table, may need to convert to columns with OFFSET?
    ... I should have known that array formulae were ... I used that to then create a pivot table from my data to find max, min, ... Biff Wrote: ... A2:A7 for the angles and B1:F1 for the energies. ...
    (microsoft.public.excel.misc)
  • Average and Variance of a periodic angles
    ... I'm trying to compute the average of an array of angles, ... avg = atan2(avgy, avgx); ... Now my problem comes in when trying to calculate the variance. ...
    (sci.math.num-analysis)
  • Can this be automation compatible?
    ... lpTitles Pointer to the number of titles in the DVD ... Chapters Pointer to an array of chapters per title. ... Angles Pointer to an array of angles per title. ...
    (microsoft.public.win32.programmer.ole)
  • Re: Average and Variance of a periodic angles
    ... The problem is the data in an array of angles ... and the data is periodic in 2.0 pi radians. ... One way is to use the iterative formulae for mean and variance ...
    (sci.math.num-analysis)

Loading