Re: Presence of logical ones around a pixel in a certain direction and distance
- From: "helper " <spamless@xxxxxxxxxx>
- Date: Tue, 13 May 2008 00:07:05 +0000 (UTC)
If the radius stays the same for each pixel, then for agiven
angular sector, the relative offsets of the pixels to beexamined
will be the same for each pixel to be examined. One couldtherefor
pre-calculate the relative offsets for each of theangular sectors,
and then as one stepped through the various pixels, itwould become
a straightforward "add absolute index of current pixel toand process
relative indices and access the array at those locations"
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".
.
- References:
- Prev by Date: Re: Listbox mousedown problems
- Next by Date: Re: time and frequency domain
- Previous by thread: Re: Presence of logical ones around a pixel in a certain direction and distance
- Next by thread: Re: Presence of logical ones around a pixel in a certain direction and distance
- Index(es):
Relevant Pages
|
Loading