[SciPy-user] maximum_filter1d size parameter
Sun Mar 8 20:12:01 CDT 2009
Zach and Josef, thank you both for the suggestions. I believe a.max(0)
is what I really wanted.
What I'm trying to do is make a "maximum image" from two images (The new
image should have the maximum from the two input images at every pixel).
If I stack two 2D images (forming a 3D array) I figure I can use max(0)
to get what I want. If there is a better way to do this, please let me
> On Sun, Mar 8, 2009 at 6:25 PM, Rick Giuly <firstname.lastname@example.org> wrote:
>> Thanks Josef, that explains it. What I will probably do is use a size
>> twice as large as the number of rows.
> But then you are just replacing the elements of the array by the
> column max. If that is your intention, then you could replace it
> directly: a[:,:] = a.max(0)
> SciPy-user mailing list
More information about the SciPy-user