[SciPy-user] ndimage.convolve and NaN...
Mon Jul 2 07:47:53 CDT 2007
this is'nt a solution,but you might try replacing NaN by 0.That would ensure
that they have no effect on the surrounding pixels.
Edges work fine because of padding.
NaN's will always widen "holes".You might work around this,but there's no
On 7/2/07, fred <firstname.lastname@example.org> wrote:
> I want to apply a convolution on a 2D array data, which has a few NaN.
> Works quite fine, but "holes" (ie NaN) are widened by the convolution.
> By the way, as edges are processed correctly, I wonder if it could
> possible to process the holes
> like the edges, ie without widening them.
> Any clue are welcome.
> SciPy-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user