[SciPy-user] maximum_filter1d size parameter

Rick Giuly rgiuly@gmail....
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 
know...

Regards

-Rick

josef.pktd@gmail.com wrote:
> On Sun, Mar 8, 2009 at 6:25 PM, Rick Giuly <rgiuly@gmail.com> wrote:
>> Thanks Josef, that explains it. What I will probably do is use a size
>> twice as large as the number of rows.
>>
>> -Rick
> 
> 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)
> 
> Josef
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-user mailing list